From 5ecc06c4ecfb6d40db39d8dc81daf50ca40d3708 Mon Sep 17 00:00:00 2001 From: saithsab877 Date: Thu, 15 Aug 2024 02:40:21 +0500 Subject: [PATCH 1/6] fix(search-filter): clear button not working all search filter --- .../SideBar/FilterSearch/__tests__/index.tsx | 27 +++++++++++++++++++ .../App/SideBar/FilterSearch/index.tsx | 24 +++++++++++++---- 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/src/components/App/SideBar/FilterSearch/__tests__/index.tsx b/src/components/App/SideBar/FilterSearch/__tests__/index.tsx index 74aab140f..2e961f6ee 100644 --- a/src/components/App/SideBar/FilterSearch/__tests__/index.tsx +++ b/src/components/App/SideBar/FilterSearch/__tests__/index.tsx @@ -176,4 +176,31 @@ describe('FilterSearch Component', () => { expect(screen.queryByText('Type')).not.toBeInTheDocument() }) + + it('should reset Source Nodes, Hops, and Max Results to default values when "Clear" button is clicked', async () => { + renderComponent() + + const type1Pill = screen.getByText('Type1') + fireEvent.click(type1Pill) + + const hopsCheckbox = screen.getByLabelText('2 hops away') + fireEvent.click(hopsCheckbox) + + const maxResultsSlider = screen.getByTestId('max-results-slider') + fireEvent.mouseDown(maxResultsSlider) + fireEvent.mouseUp(maxResultsSlider, { clientX: 50 }) + + const sourceNodesSlider = screen.getByTestId('source-nodes-slider') + fireEvent.mouseDown(sourceNodesSlider) + fireEvent.mouseUp(sourceNodesSlider, { clientX: 20 }) + + const clearButton = screen.getByText('Clear') + fireEvent.click(clearButton) + + waitFor(() => { + expect(screen.getByLabelText('Direct relationship')).toBeChecked() + expect(screen.getByTestId('max-results-slider')).toHaveValue(30) + expect(screen.getByTestId('source-nodes-slider')).toHaveValue(10) + }) + }) }) diff --git a/src/components/App/SideBar/FilterSearch/index.tsx b/src/components/App/SideBar/FilterSearch/index.tsx index cac765fee..945420f63 100644 --- a/src/components/App/SideBar/FilterSearch/index.tsx +++ b/src/components/App/SideBar/FilterSearch/index.tsx @@ -18,6 +18,13 @@ type Props = { anchorEl: HTMLElement | null } +const defaultValues = { + selectedTypes: [] as string[], + hops: 1, + sourceNodes: 10, + maxResults: 30, +} + export const FilterSearch = ({ showAllSchemas, setShowAllSchemas, schemaAll, anchorEl }: Props) => { const handleSchemaTypeClick = (type: string) => { setSelectedTypes((prevSelectedTypes) => @@ -26,13 +33,20 @@ export const FilterSearch = ({ showAllSchemas, setShowAllSchemas, schemaAll, anc } const { setFilters } = useDataStore((s) => s) - const [selectedTypes, setSelectedTypes] = useState([]) - const [hops, setHops] = useState(1) - const [sourceNodes, setSourceNodes] = useState(10) - const [maxResults, setMaxResults] = useState(30) + const [selectedTypes, setSelectedTypes] = useState(defaultValues.selectedTypes) + const [hops, setHops] = useState(defaultValues.hops) + const [sourceNodes, setSourceNodes] = useState(defaultValues.sourceNodes) + const [maxResults, setMaxResults] = useState(defaultValues.maxResults) + + const resetToDefaultValues = () => { + setSelectedTypes(defaultValues.selectedTypes) + setHops(defaultValues.hops) + setSourceNodes(defaultValues.sourceNodes) + setMaxResults(defaultValues.maxResults) + } const handleClear = async () => { - setSelectedTypes([]) + resetToDefaultValues() } const handleViewMoreClick = () => { From a1718c63ca06e7eabf635225ab165f96fd82378e Mon Sep 17 00:00:00 2001 From: Shoaibdev7 Date: Wed, 4 Sep 2024 09:30:31 -0700 Subject: [PATCH 2/6] fix(blue-print): overflow blue print modal --- src/components/ModalsContainer/BlueprintModal/Body/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ModalsContainer/BlueprintModal/Body/index.tsx b/src/components/ModalsContainer/BlueprintModal/Body/index.tsx index 3210aff65..7e2b63058 100644 --- a/src/components/ModalsContainer/BlueprintModal/Body/index.tsx +++ b/src/components/ModalsContainer/BlueprintModal/Body/index.tsx @@ -259,6 +259,7 @@ const InnerEditorWrapper = styled.div` height: 100%; overflow-y: auto; padding: 16px; + max-height: calc(90vh - 20px); ` const Container = styled(Flex)` From 45619615e04afa399607d21a00b50769902a9d21 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Wed, 4 Sep 2024 21:26:46 +0000 Subject: [PATCH 3/6] ci: automatic build fixes --- .../assets/{CheckIcon-dfb703bb.js => CheckIcon-3a73121d.js} | 2 +- .../{ClipLoader-1aa08d13.js => ClipLoader-c4c3d020.js} | 2 +- .../{DailyMotion-84a7f911.js => DailyMotion-2c69ea9c.js} | 2 +- .../{DeleteIcon-b54e2d75.js => DeleteIcon-580f7113.js} | 2 +- build/assets/{Facebook-2dbbf335.js => Facebook-47020356.js} | 2 +- .../{FilePlayer-b7607631.js => FilePlayer-3a9881cf.js} | 2 +- ...ontrolLabel-3d0c31ee.js => FormControlLabel-b4f67dac.js} | 2 +- build/assets/{InfoIcon-109ca23e.js => InfoIcon-dd2e04fe.js} | 2 +- build/assets/{Kaltura-a8362464.js => Kaltura-7ccdd12e.js} | 2 +- .../assets/{MergeIcon-a902b7ab.js => MergeIcon-c1c5911f.js} | 2 +- build/assets/{Mixcloud-c33d9740.js => Mixcloud-b4e5ff02.js} | 2 +- ...odeCircleIcon-b5c03892.js => NodeCircleIcon-bfb09d34.js} | 2 +- build/assets/{PlusIcon-6b486ee1.js => PlusIcon-4d3aaca0.js} | 2 +- build/assets/{Popover-695cd614.js => Popover-619582c9.js} | 2 +- build/assets/{Preview-84407155.js => Preview-a6576b17.js} | 2 +- .../{SearchIcon-f9577115.js => SearchIcon-2879dc36.js} | 2 +- build/assets/{Skeleton-0399e71a.js => Skeleton-926f190e.js} | 2 +- .../{SoundCloud-4b283593.js => SoundCloud-da045835.js} | 2 +- build/assets/{Stack-805fc768.js => Stack-b37dd094.js} | 2 +- .../{Streamable-5066e689.js => Streamable-8f623a9e.js} | 2 +- build/assets/{Tabs-7dfb5100.js => Tabs-832e46f5.js} | 2 +- ...reaAutosize-592bcdfa.js => TextareaAutosize-4ce1e768.js} | 2 +- build/assets/{Twitch-fbd03c7b.js => Twitch-ff79e490.js} | 2 +- .../{Typography-22d8fe78.js => Typography-d70fa287.js} | 2 +- build/assets/{Vidyard-4952029a.js => Vidyard-0abeeec9.js} | 2 +- build/assets/{Vimeo-256e7694.js => Vimeo-f49a6342.js} | 2 +- build/assets/{Wistia-e060aee4.js => Wistia-bb92c7cf.js} | 2 +- build/assets/{YouTube-7a58a7e3.js => YouTube-10e3fc02.js} | 2 +- ...{createSvgIcon-25f2bcd2.js => createSvgIcon-b3dd03d1.js} | 2 +- build/assets/{index-387222b3.js => index-12293453.js} | 2 +- build/assets/{index-2fa35172.js => index-185eb85f.js} | 2 +- build/assets/{index-952f2915.js => index-22bb9878.js} | 2 +- build/assets/{index-9dcee299.js => index-238373e6.js} | 2 +- build/assets/{index-271a89e7.js => index-26bde52f.js} | 4 ++-- build/assets/{index-9846c56f.js => index-453237c9.js} | 2 +- build/assets/{index-3ac4a96b.js => index-5f9e041e.js} | 2 +- build/assets/{index-0981f4c0.js => index-65b91810.js} | 2 +- build/assets/{index-5b1d270d.js => index-66983695.js} | 2 +- build/assets/{index-7b79a484.js => index-6d901b61.js} | 2 +- build/assets/{index-187da08e.js => index-6f7942fe.js} | 2 +- build/assets/{index-8471b4a2.js => index-78bcec08.js} | 2 +- build/assets/{index-15b14845.js => index-7b8a22d4.js} | 2 +- build/assets/{index-4dcb538c.js => index-82036184.js} | 2 +- build/assets/{index-c08f2230.js => index-82b2aee7.js} | 2 +- build/assets/{index-aa58e574.js => index-aa07e3c0.js} | 6 +++--- build/assets/{index-eba53aa4.js => index-b9d6353c.js} | 3 ++- build/assets/{index-c01e0510.js => index-d2627d6e.js} | 2 +- build/assets/{index-94120e48.js => index-dc9b4183.js} | 2 +- build/assets/{index-6a9c7a82.js => index-e85ff846.js} | 2 +- build/assets/{index-2ee922cf.js => index-f332f0c0.js} | 2 +- build/assets/{index-e82f6bc9.js => index-faf9ee00.js} | 2 +- build/assets/{index-82133494.js => index-fdc6b6de.js} | 2 +- .../assets/{index.esm-5af45bb6.js => index.esm-1996df7a.js} | 2 +- .../{useSlotProps-1ba44fef.js => useSlotProps-0f0c60ff.js} | 2 +- build/index.html | 2 +- 55 files changed, 59 insertions(+), 58 deletions(-) rename build/assets/{CheckIcon-dfb703bb.js => CheckIcon-3a73121d.js} (92%) rename build/assets/{ClipLoader-1aa08d13.js => ClipLoader-c4c3d020.js} (97%) rename build/assets/{DailyMotion-84a7f911.js => DailyMotion-2c69ea9c.js} (95%) rename build/assets/{DeleteIcon-b54e2d75.js => DeleteIcon-580f7113.js} (96%) rename build/assets/{Facebook-2dbbf335.js => Facebook-47020356.js} (96%) rename build/assets/{FilePlayer-b7607631.js => FilePlayer-3a9881cf.js} (98%) rename build/assets/{FormControlLabel-3d0c31ee.js => FormControlLabel-b4f67dac.js} (94%) rename build/assets/{InfoIcon-109ca23e.js => InfoIcon-dd2e04fe.js} (97%) rename build/assets/{Kaltura-a8362464.js => Kaltura-7ccdd12e.js} (95%) rename build/assets/{MergeIcon-a902b7ab.js => MergeIcon-c1c5911f.js} (98%) rename build/assets/{Mixcloud-c33d9740.js => Mixcloud-b4e5ff02.js} (95%) rename build/assets/{NodeCircleIcon-b5c03892.js => NodeCircleIcon-bfb09d34.js} (91%) rename build/assets/{PlusIcon-6b486ee1.js => PlusIcon-4d3aaca0.js} (94%) rename build/assets/{Popover-695cd614.js => Popover-619582c9.js} (99%) rename build/assets/{Preview-84407155.js => Preview-a6576b17.js} (97%) rename build/assets/{SearchIcon-f9577115.js => SearchIcon-2879dc36.js} (95%) rename build/assets/{Skeleton-0399e71a.js => Skeleton-926f190e.js} (97%) rename build/assets/{SoundCloud-4b283593.js => SoundCloud-da045835.js} (95%) rename build/assets/{Stack-805fc768.js => Stack-b37dd094.js} (99%) rename build/assets/{Streamable-5066e689.js => Streamable-8f623a9e.js} (95%) rename build/assets/{Tabs-7dfb5100.js => Tabs-832e46f5.js} (98%) rename build/assets/{TextareaAutosize-592bcdfa.js => TextareaAutosize-4ce1e768.js} (91%) rename build/assets/{Twitch-fbd03c7b.js => Twitch-ff79e490.js} (95%) rename build/assets/{Typography-22d8fe78.js => Typography-d70fa287.js} (93%) rename build/assets/{Vidyard-4952029a.js => Vidyard-0abeeec9.js} (95%) rename build/assets/{Vimeo-256e7694.js => Vimeo-f49a6342.js} (96%) rename build/assets/{Wistia-e060aee4.js => Wistia-bb92c7cf.js} (96%) rename build/assets/{YouTube-7a58a7e3.js => YouTube-10e3fc02.js} (97%) rename build/assets/{createSvgIcon-25f2bcd2.js => createSvgIcon-b3dd03d1.js} (97%) rename build/assets/{index-387222b3.js => index-12293453.js} (96%) rename build/assets/{index-2fa35172.js => index-185eb85f.js} (64%) rename build/assets/{index-952f2915.js => index-22bb9878.js} (90%) rename build/assets/{index-9dcee299.js => index-238373e6.js} (92%) rename build/assets/{index-271a89e7.js => index-26bde52f.js} (99%) rename build/assets/{index-9846c56f.js => index-453237c9.js} (99%) rename build/assets/{index-3ac4a96b.js => index-5f9e041e.js} (99%) rename build/assets/{index-0981f4c0.js => index-65b91810.js} (92%) rename build/assets/{index-5b1d270d.js => index-66983695.js} (98%) rename build/assets/{index-7b79a484.js => index-6d901b61.js} (98%) rename build/assets/{index-187da08e.js => index-6f7942fe.js} (99%) rename build/assets/{index-8471b4a2.js => index-78bcec08.js} (99%) rename build/assets/{index-15b14845.js => index-7b8a22d4.js} (91%) rename build/assets/{index-4dcb538c.js => index-82036184.js} (93%) rename build/assets/{index-c08f2230.js => index-82b2aee7.js} (99%) rename build/assets/{index-aa58e574.js => index-aa07e3c0.js} (97%) rename build/assets/{index-eba53aa4.js => index-b9d6353c.js} (98%) rename build/assets/{index-c01e0510.js => index-d2627d6e.js} (64%) rename build/assets/{index-94120e48.js => index-dc9b4183.js} (91%) rename build/assets/{index-6a9c7a82.js => index-e85ff846.js} (92%) rename build/assets/{index-2ee922cf.js => index-f332f0c0.js} (91%) rename build/assets/{index-e82f6bc9.js => index-faf9ee00.js} (85%) rename build/assets/{index-82133494.js => index-fdc6b6de.js} (96%) rename build/assets/{index.esm-5af45bb6.js => index.esm-1996df7a.js} (98%) rename build/assets/{useSlotProps-1ba44fef.js => useSlotProps-0f0c60ff.js} (94%) diff --git a/build/assets/CheckIcon-dfb703bb.js b/build/assets/CheckIcon-3a73121d.js similarity index 92% rename from build/assets/CheckIcon-dfb703bb.js rename to build/assets/CheckIcon-3a73121d.js index fd7350801..ae8a2ade7 100644 --- a/build/assets/CheckIcon-dfb703bb.js +++ b/build/assets/CheckIcon-3a73121d.js @@ -1 +1 @@ -import{j as C}from"./index-9846c56f.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-453237c9.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-1aa08d13.js b/build/assets/ClipLoader-c4c3d020.js similarity index 97% rename from build/assets/ClipLoader-1aa08d13.js rename to build/assets/ClipLoader-c4c3d020.js index 6c4f10283..17ef17f8f 100644 --- a/build/assets/ClipLoader-1aa08d13.js +++ b/build/assets/ClipLoader-c4c3d020.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-9846c56f.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-453237c9.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-84a7f911.js b/build/assets/DailyMotion-2c69ea9c.js similarity index 95% rename from build/assets/DailyMotion-84a7f911.js rename to build/assets/DailyMotion-2c69ea9c.js index c9b94473d..1f75fe4c6 100644 --- a/build/assets/DailyMotion-84a7f911.js +++ b/build/assets/DailyMotion-2c69ea9c.js @@ -1 +1 @@ -import{n as P,r as v}from"./index-9846c56f.js";import{u as D,p as O}from"./index-271a89e7.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{n as P,r as v}from"./index-453237c9.js";import{u as D,p as O}from"./index-26bde52f.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-b54e2d75.js b/build/assets/DeleteIcon-580f7113.js similarity index 96% rename from build/assets/DeleteIcon-b54e2d75.js rename to build/assets/DeleteIcon-580f7113.js index 97a850270..7e889910b 100644 --- a/build/assets/DeleteIcon-b54e2d75.js +++ b/build/assets/DeleteIcon-580f7113.js @@ -1 +1 @@ -import{j as e}from"./index-9846c56f.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-453237c9.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-2dbbf335.js b/build/assets/Facebook-47020356.js similarity index 96% rename from build/assets/Facebook-2dbbf335.js rename to build/assets/Facebook-47020356.js index 6300d9d96..a5a409d2e 100644 --- a/build/assets/Facebook-2dbbf335.js +++ b/build/assets/Facebook-47020356.js @@ -1 +1 @@ -import{n as _,r as P}from"./index-9846c56f.js";import{u as g,p as m}from"./index-271a89e7.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{n as _,r as P}from"./index-453237c9.js";import{u as g,p as m}from"./index-26bde52f.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-b7607631.js b/build/assets/FilePlayer-3a9881cf.js similarity index 98% rename from build/assets/FilePlayer-b7607631.js rename to build/assets/FilePlayer-3a9881cf.js index dce94718c..f9bf702bf 100644 --- a/build/assets/FilePlayer-b7607631.js +++ b/build/assets/FilePlayer-3a9881cf.js @@ -1 +1 @@ -import{n as b,r as _}from"./index-9846c56f.js";import{u as O,p as A}from"./index-271a89e7.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{n as b,r as _}from"./index-453237c9.js";import{u as O,p as A}from"./index-26bde52f.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/build/assets/FormControlLabel-3d0c31ee.js b/build/assets/FormControlLabel-b4f67dac.js similarity index 94% rename from build/assets/FormControlLabel-3d0c31ee.js rename to build/assets/FormControlLabel-b4f67dac.js index dab0bfd87..04062b467 100644 --- a/build/assets/FormControlLabel-3d0c31ee.js +++ b/build/assets/FormControlLabel-b4f67dac.js @@ -1 +1 @@ -import{b as z,g as A,s as B,_ as d,i as V,r as j,a as D,j as f,c as T,e as _,d as O,u as X}from"./index-9846c56f.js";import{u as Y,a as W,f as Z,S as ee}from"./Stack-805fc768.js";import{p as oe}from"./index-aa58e574.js";import{T as M}from"./Typography-22d8fe78.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${_(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 U=r.target.checked;H(U),P&&P(r,U)};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}),E=ae(N);return f.jsxs(re,d({component:"span",className:T(E.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:E.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${_(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${_(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}; +import{b as z,g as A,s as B,_ as d,i as V,r as j,a as D,j as f,c as T,e as _,d as O,u as X}from"./index-453237c9.js";import{u as Y,a as W,f as Z,S as ee}from"./Stack-b37dd094.js";import{p as oe}from"./index-aa07e3c0.js";import{T as M}from"./Typography-d70fa287.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${_(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 U=r.target.checked;H(U),P&&P(r,U)};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}),E=ae(N);return f.jsxs(re,d({component:"span",className:T(E.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:E.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${_(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${_(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/InfoIcon-109ca23e.js b/build/assets/InfoIcon-dd2e04fe.js similarity index 97% rename from build/assets/InfoIcon-109ca23e.js rename to build/assets/InfoIcon-dd2e04fe.js index c0e2687ec..5013acaa0 100644 --- a/build/assets/InfoIcon-109ca23e.js +++ b/build/assets/InfoIcon-dd2e04fe.js @@ -1 +1 @@ -import{j as C}from"./index-9846c56f.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.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"})})]})});export{r as I}; +import{j as C}from"./index-453237c9.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.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"})})]})});export{r as I}; diff --git a/build/assets/Kaltura-a8362464.js b/build/assets/Kaltura-7ccdd12e.js similarity index 95% rename from build/assets/Kaltura-a8362464.js rename to build/assets/Kaltura-7ccdd12e.js index 1d4c45a38..05febbef3 100644 --- a/build/assets/Kaltura-a8362464.js +++ b/build/assets/Kaltura-7ccdd12e.js @@ -1 +1 @@ -import{n as y,r as f}from"./index-9846c56f.js";import{u as _,p as m}from"./index-271a89e7.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{n as y,r as f}from"./index-453237c9.js";import{u as _,p as m}from"./index-26bde52f.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-a902b7ab.js b/build/assets/MergeIcon-c1c5911f.js similarity index 98% rename from build/assets/MergeIcon-a902b7ab.js rename to build/assets/MergeIcon-c1c5911f.js index b92da5760..60de1b5f5 100644 --- a/build/assets/MergeIcon-a902b7ab.js +++ b/build/assets/MergeIcon-c1c5911f.js @@ -1 +1 @@ -import{j as C}from"./index-9846c56f.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-453237c9.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-c33d9740.js b/build/assets/Mixcloud-b4e5ff02.js similarity index 95% rename from build/assets/Mixcloud-c33d9740.js rename to build/assets/Mixcloud-b4e5ff02.js index 723968554..1228636c4 100644 --- a/build/assets/Mixcloud-c33d9740.js +++ b/build/assets/Mixcloud-b4e5ff02.js @@ -1 +1 @@ -import{n as _,r as f}from"./index-9846c56f.js";import{u as m,p as g}from"./index-271a89e7.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{n as _,r as f}from"./index-453237c9.js";import{u as m,p as g}from"./index-26bde52f.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-b5c03892.js b/build/assets/NodeCircleIcon-bfb09d34.js similarity index 91% rename from build/assets/NodeCircleIcon-b5c03892.js rename to build/assets/NodeCircleIcon-bfb09d34.js index 489f2e25c..d047583f0 100644 --- a/build/assets/NodeCircleIcon-b5c03892.js +++ b/build/assets/NodeCircleIcon-bfb09d34.js @@ -1,4 +1,4 @@ -import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-9846c56f.js";import{I as i}from"./index-aa58e574.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="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(i)` +import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-453237c9.js";import{I as i}from"./index-aa07e3c0.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="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(i)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/PlusIcon-6b486ee1.js b/build/assets/PlusIcon-4d3aaca0.js similarity index 94% rename from build/assets/PlusIcon-6b486ee1.js rename to build/assets/PlusIcon-4d3aaca0.js index 7658fb399..7691b83b2 100644 --- a/build/assets/PlusIcon-6b486ee1.js +++ b/build/assets/PlusIcon-4d3aaca0.js @@ -1 +1 @@ -import{j as s}from"./index-9846c56f.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-453237c9.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/Popover-695cd614.js b/build/assets/Popover-619582c9.js similarity index 99% rename from build/assets/Popover-695cd614.js rename to build/assets/Popover-619582c9.js index ec07521c3..1765b6901 100644 --- a/build/assets/Popover-695cd614.js +++ b/build/assets/Popover-619582c9.js @@ -1 +1 @@ -import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ac as Xe}from"./index-9846c56f.js";import{w as et,x as Ve,e as ae,f as Le,t as _e,g as Be}from"./index-aa58e574.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-1ba44fef.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; +import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ac as Xe}from"./index-453237c9.js";import{w as et,x as Ve,e as ae,f as Le,t as _e,g as Be}from"./index-aa07e3c0.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-0f0c60ff.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; diff --git a/build/assets/Preview-84407155.js b/build/assets/Preview-a6576b17.js similarity index 97% rename from build/assets/Preview-84407155.js rename to build/assets/Preview-a6576b17.js index 4681ac36b..8c2a96b7b 100644 --- a/build/assets/Preview-84407155.js +++ b/build/assets/Preview-a6576b17.js @@ -1 +1 @@ -import{n as y,r as b}from"./index-9846c56f.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{n as y,r as b}from"./index-453237c9.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-f9577115.js b/build/assets/SearchIcon-2879dc36.js similarity index 95% rename from build/assets/SearchIcon-f9577115.js rename to build/assets/SearchIcon-2879dc36.js index 84e24e843..17c2b1e54 100644 --- a/build/assets/SearchIcon-f9577115.js +++ b/build/assets/SearchIcon-2879dc36.js @@ -1 +1 @@ -import{j as C}from"./index-9846c56f.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-453237c9.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-0399e71a.js b/build/assets/Skeleton-926f190e.js similarity index 97% rename from build/assets/Skeleton-0399e71a.js rename to build/assets/Skeleton-926f190e.js index c09d24cef..14a79750e 100644 --- a/build/assets/Skeleton-0399e71a.js +++ b/build/assets/Skeleton-926f190e.js @@ -1,4 +1,4 @@ -import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-9846c56f.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` +import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-453237c9.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-4b283593.js b/build/assets/SoundCloud-da045835.js similarity index 95% rename from build/assets/SoundCloud-4b283593.js rename to build/assets/SoundCloud-da045835.js index 8d5bde8e3..a6ae7487f 100644 --- a/build/assets/SoundCloud-4b283593.js +++ b/build/assets/SoundCloud-da045835.js @@ -1 +1 @@ -import{n as P,r as g}from"./index-9846c56f.js";import{u as b,p as v}from"./index-271a89e7.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(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,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/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"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{n as P,r as g}from"./index-453237c9.js";import{u as b,p as v}from"./index-26bde52f.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(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,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/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"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-805fc768.js b/build/assets/Stack-b37dd094.js similarity index 99% rename from build/assets/Stack-805fc768.js rename to build/assets/Stack-b37dd094.js index f6e36230c..be4ae7d57 100644 --- a/build/assets/Stack-805fc768.js +++ b/build/assets/Stack-b37dd094.js @@ -1 +1 @@ -import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-9846c56f.js";import{o as et,u as It}from"./useSlotProps-1ba44fef.js";import{d as qt}from"./Popover-695cd614.js";import{e as tt,f as rt}from"./index-aa58e574.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 Vo({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 zt=["sx"],Xt=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,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(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=Lt(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=Vt(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 B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,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 V(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];!V(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},{});!V(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&&V(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 Le(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!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(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 Ve(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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B: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=B,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===B||(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===B||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 Mr(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 Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,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 Lr(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 Vr(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:V(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(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(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 B: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?Ve(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,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*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 zr(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,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,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[B,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,B].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=Ve(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"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],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?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=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=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe: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:Xe,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)||!V(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=V(t),n=V(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)),V(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 L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.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=It({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(qt,{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=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({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}))}),No=Ro;function Ho({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 Uo(){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=Me("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=Be({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 L=Se(k,["Select"])?k.props.input:k;L&&So(L.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:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; +import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-453237c9.js";import{o as et,u as It}from"./useSlotProps-0f0c60ff.js";import{d as qt}from"./Popover-619582c9.js";import{e as tt,f as rt}from"./index-aa07e3c0.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 Vo({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 zt=["sx"],Xt=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,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(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=Lt(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=Vt(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 B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,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 V(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];!V(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},{});!V(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&&V(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 Le(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!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(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 Ve(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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B: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=B,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===B||(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===B||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 Mr(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 Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,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 Lr(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 Vr(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:V(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(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(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 B: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?Ve(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,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*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 zr(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,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,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[B,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,B].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=Ve(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"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],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?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=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=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe: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:Xe,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)||!V(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=V(t),n=V(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)),V(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 L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.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=It({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(qt,{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=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({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}))}),No=Ro;function Ho({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 Uo(){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=Me("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=Be({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 L=Se(k,["Select"])?k.props.input:k;L&&So(L.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:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; diff --git a/build/assets/Streamable-5066e689.js b/build/assets/Streamable-8f623a9e.js similarity index 95% rename from build/assets/Streamable-5066e689.js rename to build/assets/Streamable-8f623a9e.js index b4c055da6..f63e9966e 100644 --- a/build/assets/Streamable-5066e689.js +++ b/build/assets/Streamable-8f623a9e.js @@ -1 +1 @@ -import{n as m,r as f}from"./index-9846c56f.js";import{u as _,p as b}from"./index-271a89e7.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{n as m,r as f}from"./index-453237c9.js";import{u as _,p as b}from"./index-26bde52f.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-7dfb5100.js b/build/assets/Tabs-832e46f5.js similarity index 98% rename from build/assets/Tabs-7dfb5100.js rename to build/assets/Tabs-832e46f5.js index d33ddd555..26dcf4a78 100644 --- a/build/assets/Tabs-7dfb5100.js +++ b/build/assets/Tabs-832e46f5.js @@ -1 +1 @@ -import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ac as Lt}from"./index-9846c56f.js";import{p as Nt,f as Zt,g as ut}from"./index-aa58e574.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-1ba44fef.js";import{c as Ft}from"./createSvgIcon-25f2bcd2.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 St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),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 S.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"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,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=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(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 S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let 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 St({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=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots: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:$}),[vt,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 v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),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?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.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?S.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=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,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=S.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&&!vt&&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",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v: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 S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; +import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ac as Lt}from"./index-453237c9.js";import{p as Nt,f as Zt,g as ut}from"./index-aa07e3c0.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-0f0c60ff.js";import{c as Ft}from"./createSvgIcon-b3dd03d1.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 St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),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 S.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"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,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=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(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 S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let 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 St({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=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots: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:$}),[vt,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 v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),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?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.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?S.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=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,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=S.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&&!vt&&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",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v: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 S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; diff --git a/build/assets/TextareaAutosize-592bcdfa.js b/build/assets/TextareaAutosize-4ce1e768.js similarity index 91% rename from build/assets/TextareaAutosize-592bcdfa.js rename to build/assets/TextareaAutosize-4ce1e768.js index 135cc90ff..c831a7b45 100644 --- a/build/assets/TextareaAutosize-592bcdfa.js +++ b/build/assets/TextareaAutosize-4ce1e768.js @@ -1,2 +1,2 @@ -import{r as o,a as L,j as v,_ as b,h as I}from"./index-9846c56f.js";import{e as D,f as T}from"./index-aa58e574.js";import{a as F,d as P}from"./useSlotProps-1ba44fef.js";const U=["onChange","maxRows","minRows","style","value"];function w(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 J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(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,a as L,j as v,_ as b,h as I}from"./index-453237c9.js";import{e as D,f as T}from"./index-aa07e3c0.js";import{a as F,d as P}from"./useSlotProps-0f0c60ff.js";const U=["onChange","maxRows","minRows","style","value"];function w(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 J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(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,m=w(n.paddingBottom)+w(n.paddingTop),a=w(n.borderBottomWidth)+w(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 j=s+(g==="border-box"?m+a:0),B=Math.abs(s-u)<=1;return{outerHeightStyle:j,overflow:B}},[x,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||I.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=P(i),g=p.current,m=F(g);m.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),m.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const _=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:_,ref:N,rows:h,style:b({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:b({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{J as T}; diff --git a/build/assets/Twitch-fbd03c7b.js b/build/assets/Twitch-ff79e490.js similarity index 95% rename from build/assets/Twitch-fbd03c7b.js rename to build/assets/Twitch-ff79e490.js index 4bab8647f..f57cdc442 100644 --- a/build/assets/Twitch-fbd03c7b.js +++ b/build/assets/Twitch-ff79e490.js @@ -1 +1 @@ -import{n as w,r as D}from"./index-9846c56f.js";import{u as C,p as N}from"./index-271a89e7.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,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),...o.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})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{n as w,r as D}from"./index-453237c9.js";import{u as C,p as N}from"./index-26bde52f.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,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),...o.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})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-22d8fe78.js b/build/assets/Typography-d70fa287.js similarity index 93% rename from build/assets/Typography-22d8fe78.js rename to build/assets/Typography-d70fa287.js index d5d09c66f..a4f342091 100644 --- a/build/assets/Typography-22d8fe78.js +++ b/build/assets/Typography-d70fa287.js @@ -1 +1 @@ -import{b as T,g as B,s as W,e as u,_ as s,r as C,u as M,a as R,j as P,c as j,d as U}from"./index-9846c56f.js";import{e as _}from"./Stack-805fc768.js";function N(a){return T("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return U(i,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=A(n.color),o=_(s({},n,{color:e})),{align:p="inherit",className:i,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:e,className:i,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,i)},x))}),V=D;export{V as T}; +import{b as T,g as B,s as W,e as u,_ as s,r as C,u as M,a as R,j as P,c as j,d as U}from"./index-453237c9.js";import{e as _}from"./Stack-b37dd094.js";function N(a){return T("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return U(i,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=A(n.color),o=_(s({},n,{color:e})),{align:p="inherit",className:i,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:e,className:i,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,i)},x))}),V=D;export{V as T}; diff --git a/build/assets/Vidyard-4952029a.js b/build/assets/Vidyard-0abeeec9.js similarity index 95% rename from build/assets/Vidyard-4952029a.js rename to build/assets/Vidyard-0abeeec9.js index 1aa00f8c4..7407a2d94 100644 --- a/build/assets/Vidyard-4952029a.js +++ b/build/assets/Vidyard-0abeeec9.js @@ -1 +1 @@ -import{n as g,r as v}from"./index-9846c56f.js";import{u as b,p as O}from"./index-271a89e7.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{n as g,r as v}from"./index-453237c9.js";import{u as b,p as O}from"./index-26bde52f.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-256e7694.js b/build/assets/Vimeo-f49a6342.js similarity index 96% rename from build/assets/Vimeo-256e7694.js rename to build/assets/Vimeo-f49a6342.js index 2d46c77c9..f683b5940 100644 --- a/build/assets/Vimeo-256e7694.js +++ b/build/assets/Vimeo-f49a6342.js @@ -1 +1 @@ -import{n as d,r as f}from"./index-9846c56f.js";import{u as m,p as _}from"./index-271a89e7.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{n as d,r as f}from"./index-453237c9.js";import{u as m,p as _}from"./index-26bde52f.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-e060aee4.js b/build/assets/Wistia-bb92c7cf.js similarity index 96% rename from build/assets/Wistia-e060aee4.js rename to build/assets/Wistia-bb92c7cf.js index 9c8e7408f..8c2203bb9 100644 --- a/build/assets/Wistia-e060aee4.js +++ b/build/assets/Wistia-bb92c7cf.js @@ -1 +1 @@ -import{n as m,r as g}from"./index-9846c56f.js";import{u as v,p as w}from"./index-271a89e7.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{n as m,r as g}from"./index-453237c9.js";import{u as v,p as w}from"./index-26bde52f.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-7a58a7e3.js b/build/assets/YouTube-10e3fc02.js similarity index 97% rename from build/assets/YouTube-7a58a7e3.js rename to build/assets/YouTube-10e3fc02.js index 4c0a8b710..892214c75 100644 --- a/build/assets/YouTube-7a58a7e3.js +++ b/build/assets/YouTube-10e3fc02.js @@ -1 +1 @@ -import{n as U,r as I}from"./index-9846c56f.js";import{u as L,p as Y}from"./index-271a89e7.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{n as U,r as I}from"./index-453237c9.js";import{u as L,p as Y}from"./index-26bde52f.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-25f2bcd2.js b/build/assets/createSvgIcon-b3dd03d1.js similarity index 97% rename from build/assets/createSvgIcon-25f2bcd2.js rename to build/assets/createSvgIcon-b3dd03d1.js index 8c943f469..2fd43b38f 100644 --- a/build/assets/createSvgIcon-25f2bcd2.js +++ b/build/assets/createSvgIcon-b3dd03d1.js @@ -1 +1 @@ -import{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-9846c56f.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{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-453237c9.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-387222b3.js b/build/assets/index-12293453.js similarity index 96% rename from build/assets/index-387222b3.js rename to build/assets/index-12293453.js index 06c04fc05..788124477 100644 --- a/build/assets/index-387222b3.js +++ b/build/assets/index-12293453.js @@ -1,4 +1,4 @@ -import{ai as m,o as s,q as r,ag as o,F as d,O as w,r as y,j as e}from"./index-9846c56f.js";import{k as v}from"./index-aa58e574.js";const k=m` +import{ai as m,o as s,q as r,ag as o,F as d,O as w,r as y,j as e}from"./index-453237c9.js";import{k as v}from"./index-aa07e3c0.js";const k=m` 0% { transform: scale(0.8); } diff --git a/build/assets/index-2fa35172.js b/build/assets/index-185eb85f.js similarity index 64% rename from build/assets/index-2fa35172.js rename to build/assets/index-185eb85f.js index ed9ac80ac..9f164c075 100644 --- a/build/assets/index-2fa35172.js +++ b/build/assets/index-185eb85f.js @@ -1,4 +1,4 @@ -import{o as i,j as t,q as a}from"./index-9846c56f.js";import{f as n}from"./index.esm-5af45bb6.js";import{y as e}from"./index-aa58e574.js";const r=i.div` +import{o as i,j as t,q as a}from"./index-453237c9.js";import{f as n}from"./index.esm-1996df7a.js";import{y as e}from"./index-aa07e3c0.js";const r=i.div` display: Flex; justify-content: center; align-items: center; diff --git a/build/assets/index-952f2915.js b/build/assets/index-22bb9878.js similarity index 90% rename from build/assets/index-952f2915.js rename to build/assets/index-22bb9878.js index 4fb747669..f775a72fe 100644 --- a/build/assets/index-952f2915.js +++ b/build/assets/index-22bb9878.js @@ -1,4 +1,4 @@ -import{r as p,a7 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-9846c56f.js";import{k as B,i as E,F as N,B as k}from"./index-aa58e574.js";import{B as M}from"./index-387222b3.js";import{u as w}from"./index-e82f6bc9.js";import{S as O,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-b5c03892.js";import{A as X,O as H,T as W}from"./index-187da08e.js";import{C as q}from"./ClipLoader-1aa08d13.js";import"./Stack-805fc768.js";import"./useSlotProps-1ba44fef.js";import"./Popover-695cd614.js";import"./createSvgIcon-25f2bcd2.js";import"./TextareaAutosize-592bcdfa.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);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(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({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(U,{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(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` +import{r as p,a7 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-453237c9.js";import{k as B,i as E,F as N,B as k}from"./index-aa07e3c0.js";import{B as M}from"./index-12293453.js";import{u as w}from"./index-faf9ee00.js";import{S as O,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-bfb09d34.js";import{A as X,O as H,T as W}from"./index-6f7942fe.js";import{C as q}from"./ClipLoader-c4c3d020.js";import"./Stack-b37dd094.js";import"./useSlotProps-0f0c60ff.js";import"./Popover-619582c9.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);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(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({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(U,{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(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-9dcee299.js b/build/assets/index-238373e6.js similarity index 92% rename from build/assets/index-9dcee299.js rename to build/assets/index-238373e6.js index 3c2cacd5e..084c538a9 100644 --- a/build/assets/index-9dcee299.js +++ b/build/assets/index-238373e6.js @@ -1,4 +1,4 @@ -import{j as e,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-9846c56f.js";import{B as R}from"./index-387222b3.js";import{S as I}from"./Skeleton-0399e71a.js";import{C as z}from"./ClipLoader-1aa08d13.js";import{B as j}from"./index-aa58e574.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,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-453237c9.js";import{B as R}from"./index-12293453.js";import{S as I}from"./Skeleton-926f190e.js";import{C as z}from"./ClipLoader-c4c3d020.js";import{B as j}from"./index-aa07e3c0.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-271a89e7.js b/build/assets/index-26bde52f.js similarity index 99% rename from build/assets/index-271a89e7.js rename to build/assets/index-26bde52f.js index 945533b5a..17ad045dc 100644 --- a/build/assets/index-271a89e7.js +++ b/build/assets/index-26bde52f.js @@ -1,4 +1,4 @@ -import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg,s as jr,i as o4,e as vn,f as of,u as Ug,a as $d,c as Kr,d as Wg,ac as Id,ad as s4,ae as l4,af as Yg,o as H,q as L,ag as Vg,G as Hl,F,B as Sn,J as Ji,ah as Gg,T as ht,ai as u4,aj as c4,v as Fn,A as At,ak as Lo,al as Bt,am as f4,n as st,z as No,E as qg,an as Kg,O as sf,K as d4,ao as h4,ap as Ro,aq as Qi,ar as _n,as as Xg,at as Dd,au as ea,av as Te,R as U,aw as p4,ax as Zg,ay as m4,az as Jg,aA as y4,aB as g4,aC as v4,aD as Bo,aE as Ld,aF as Qg,aG as ev,aH as x4,aI as b4,aJ as w4,aK as Ul,aL as S4,aM as _4,P as Oe,aN as O4,aO as k4,aP as C4,y as qt,aQ as Xp,a4 as P4,C as rn,aR as A4,aS as j4,p as T4,aT as E4}from"./index-9846c56f.js";import{v as Qr,d as M4,e as lf,f as $4,g as uc,h as Nd,i as I4,F as D4,b as tv,A as In,T as ta,j as ji,B as Dt,k as nv,P as Wl,l as L4,m as Rd,I as rv,n as Yl}from"./index-aa58e574.js";import{S as iv}from"./SearchIcon-f9577115.js";import{c as N4,a as cc,C as Vl}from"./ClipLoader-1aa08d13.js";import{S as av}from"./Skeleton-0399e71a.js";import{P as Bd}from"./PlusIcon-6b486ee1.js";import{T as R4,r as B4,g as Zp,P as z4}from"./Popover-695cd614.js";import{o as Ns,e as fc,a as ov,d as F4,i as Rs,u as xr}from"./useSlotProps-1ba44fef.js";import{C as sv}from"./CheckIcon-dfb703bb.js";import{u as H4,F as U4,P as W4}from"./Stack-805fc768.js";import{S as Y4,F as Jp}from"./FormControlLabel-3d0c31ee.js";import{c as zd}from"./createSvgIcon-25f2bcd2.js";import{B as V4}from"./index-387222b3.js";import{u as lv}from"./index-c01e0510.js";import{b as G4,a as q4,c as K4,d as X4}from"./index.esm-5af45bb6.js";import{I as Z4}from"./InfoIcon-109ca23e.js";const Qp="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",J4=async e=>{let t=await xi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xi.keysend(Qp,e),!(t!=null&&t.success)){if(t=await xi.topup(),t||(t=await xi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await J4(t),r={amount:t,refid:e};return await zg.post("/boost",JSON.stringify(r)),n},e8=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},uv=(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=Kp.groupBy(n,a=>a.timestamp),i=Kp.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=Qr(s),f=Qr(l);return u-f}),i},t8=async e=>{await a4(async()=>{try{await xi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},n8=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},r8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},i8=r8;function a8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const o8=2;function cv(e,t){return e-t}function xa(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function e1(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}%`})}},f8=e=>e;let gs;function dc(){return gs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?gs=CSS.supports("touch-action","none"):gs=!0),gs}function d8(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=f8,step:v=1,tabIndex:b,value:O}=e,C=B.useRef(),[k,P]=B.useState(-1),[_,w]=B.useState(-1),[j,E]=B.useState(!1),I=B.useRef(0),[z,M]=H4({controlled:O,default:n??l,name:"Slider"}),D=f&&((R,q,ne)=>{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,ne)}),W=Array.isArray(z);let Y=W?z.slice().sort(cv):[z];Y=Y.map(R=>xa(R,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((R,q)=>({value:l+v*q})):o||[],X=V.map(R=>R.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:T}=M4(),[pe,ue]=B.useState(-1),$=B.useRef(),_e=lf(T,$),te=lf(m,_e),ge=R=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),R==null||(ne=R.onFocus)==null||ne.call(R,q)},Ye=R=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),R==null||(ne=R.onBlur)==null||ne.call(R,q)};$4(()=>{if(r&&$.current.contains(document.activeElement)){var R;(R=document.activeElement)==null||R.blur()}},[r]),r&&k!==-1&&P(-1),r&&pe!==-1&&ue(-1);const Me=R=>q=>{var ne;(ne=R.onChange)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-R.y)/oe:$e=(R.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=s8($e,l,s),v)Ge=u8(Ge,v,l);else{const pt=e1(X,Ge);Ge=X[pt]}Ge=xa(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=e1(Y,Ge),i&&(Ge=xa(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const pt=Ge;Ge=t1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(pt),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=uc(R=>{const q=ps(R,C);if(!q)return;if(I.current+=1,R.type==="mousemove"&&R.buttons===0){Ae(R);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});ms({sliderRef:$,activeIndex:se,setActive:P}),M(ne),!j&&I.current>o8&&E(!0),D&&!ys(ne,z)&&D(R,ne,se)}),Ae=uc(R=>{const q=ps(R,C);if(E(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});P(-1),R.type==="touchend"&&w(-1),d&&d(R,ne),C.current=void 0,xe()}),he=uc(R=>{if(r)return;dc()||R.preventDefault();const q=R.changedTouches[0];q!=null&&(C.current=q.identifier);const ne=ps(R,C);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});ms({sliderRef:$,activeIndex:Re,setActive:P}),M(oe),D&&!ys(oe,z)&&D(R,oe,Re)}I.current=0;const se=Ns($.current);se.addEventListener("touchmove",ee),se.addEventListener("touchend",Ae)}),xe=B.useCallback(()=>{const R=Ns($.current);R.removeEventListener("mousemove",ee),R.removeEventListener("mouseup",Ae),R.removeEventListener("touchmove",ee),R.removeEventListener("touchend",Ae)},[Ae,ee]);B.useEffect(()=>{const{current:R}=$;return R.addEventListener("touchstart",he,{passive:dc()}),()=>{R.removeEventListener("touchstart",he,{passive:dc()}),xe()}},[xe,he]),B.useEffect(()=>{r&&xe()},[r,xe]);const He=R=>q=>{var ne;if((ne=R.onMouseDown)==null||ne.call(R,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ps(q,C);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({finger:se});ms({sliderRef:$,activeIndex:ke,setActive:P}),M(Re),D&&!ys(Re,z)&&D(q,Re,ke)}I.current=0;const oe=Ns($.current);oe.addEventListener("mousemove",ee),oe.addEventListener("mouseup",Ae)},rt=Ws(W?Y[0]:l,l,s),ft=Ws(Y[Y.length-1],l,s)-rt,en=(R={})=>{const q=fc(R),ne={onMouseDown:He(q||{})},se=we({},q,ne);return we({},R,{ref:te},se)},Ue=R=>q=>{var ne;(ne=R.onMouseOver)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=R=>q=>{var ne;(ne=R.onMouseLeave)==null||ne.call(R,q),w(-1)};return{active:k,axis:de,axisProps:c8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(R={})=>{var q;const ne=fc(R),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=we({},ne,se);return we({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:we({},i8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:en,getThumbProps:(R={})=>{const q=fc(R),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return we({},R,q,ne)},marks:V,open:_,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:R=>({pointerEvents:k!==-1&&k!==R?"none":void 0})}}const h8=zd(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"),p8=zd(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"),m8=zd(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 y8(e){return Hg("MuiCheckbox",e)}const g8=Fg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),hc=g8,v8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],x8=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${vn(r)}`,`size${vn(i)}`]},o=Wg(a,y8,t);return we({},t,o)},b8=jr(Y4,{shouldForwardProp:e=>o4(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})=>we({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})`:of(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${hc.checked}, &.${hc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${hc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),w8=y.jsx(p8,{}),S8=y.jsx(h8,{}),_8=y.jsx(m8,{}),O8=B.forwardRef(function(t,n){var r,i;const a=Ug({props:t,name:"MuiCheckbox"}),{checkedIcon:o=w8,color:s="primary",icon:l=S8,indeterminate:u=!1,indeterminateIcon:f=_8,inputProps:d,size:h="medium",className:m}=a,g=$d(a,v8),v=u?f:l,b=u?f:o,O=we({},a,{color:s,indeterminate:u,size:h}),C=x8(O);return y.jsx(b8,we({type:"checkbox",inputProps:we({"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:Kr(C.root,m)},g,{classes:C}))}),k8=O8,C8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function P8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=ov(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 A8(e){return typeof e=="function"?e():e}function vs(e,t,n){const r=A8(n),i=P8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const j8=B.forwardRef(function(t,n){const r=Id(),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:C,style:k,timeout:P=a,TransitionComponent:_=R4}=t,w=$d(t,C8),j=B.useRef(null),E=lf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},z=I((G,Q)=>{vs(f,G,u),B4(G),m&&m(G,Q)}),M=I((G,Q)=>{const T=Zp({timeout:P,style:k,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",we({},T)),G.style.transition=r.transitions.create("transform",we({},T)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(C),Y=I(G=>{const Q=Zp({timeout:P,style:k,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),vs(f,G,u),b&&b(G)}),V=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),X=G=>{o&&o(j.current,G)},Z=B.useCallback(()=>{j.current&&vs(f,j.current,u)},[f,u]);return B.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=F4(()=>{j.current&&vs(f,j.current,u)}),Q=ov(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),B.useEffect(()=>{h||Z()},[h,Z]),y.jsx(_,we({nodeRef:j,onEnter:z,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:P},w,{children:(G,Q)=>B.cloneElement(l,we({ref:E,style:we({visibility:G==="exited"&&!h?"hidden":void 0},k,l.props.style)},Q))}))}),Ti=j8,T8=e=>!e||!Rs(e),E8=T8;function M8(e){return Hg("MuiSlider",e)}const $8=Fg("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=$8,I8=e=>{const{open:t}=e;return{offset:Kr(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function D8(e){const{children:t,className:n,value:r}=e,i=I8(e);return t?B.cloneElement(t,{className:Kr(t.props.className)},y.jsxs(B.Fragment,{children:[t.props.children,y.jsx("span",{className:Kr(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const L8=["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 n1(e){return e}const N8=jr("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})=>we({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"&&we({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"&&we({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"}}})),R8=jr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>we({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})),B8=jr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?s4(e.palette[t.color].main,.62):l4(e.palette[t.color].main,.5);return we({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})}),z8=jr("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})=>we({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":we({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)`:of(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)`:of(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),F8=jr(D8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>we({[`&.${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"})),H8=jr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Yg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>we({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})),U8=jr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Yg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>we({},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})),W8=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 Wg(u,M8,o)},Y8=({children:e})=>e,V8=B.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,O,C,k,P,_,w,j,E,I,z;const M=Ug({props:t,name:"MuiSlider"}),W=Id().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:T="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=n1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=n1}=M,en=$d(M,L8),Ue=we({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:T,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:tn,getThumbProps:Cn,open:R,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:pt}=d8(we({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=W8(Ue),Lt=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:N8,ai=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:R8,Lr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:B8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:z8,ca=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:F8,oi=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:H8,fr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:U8,si=(O=(C=xe==null?void 0:xe.input)!=null?C:G.Input)!=null?O:"input",dr=(k=he==null?void 0:he.root)!=null?k:Q.root,hr=(P=he==null?void 0:he.rail)!=null?P:Q.rail,pr=(_=he==null?void 0:he.track)!=null?_:Q.track,fa=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,mr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Hu=(E=he==null?void 0:he.mark)!=null?E:Q.mark,Nr=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,li=(z=he==null?void 0:he.input)!=null?z:Q.input,ce=xr({elementType:Lt,getSlotProps:it,externalSlotProps:dr,externalForwardedProps:en,additionalProps:we({},E8(Lt)&&{as:Z}),ownerState:we({},Ue,dr==null?void 0:dr.ownerState),className:[Ie.root,ue]}),Uu=xr({elementType:ai,externalSlotProps:hr,ownerState:Ue,className:Ie.rail}),Wu=xr({elementType:Lr,externalSlotProps:pr,additionalProps:{style:we({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:we({},Ue,pr==null?void 0:pr.ownerState),className:Ie.track}),Et=xr({elementType:qe,getSlotProps:Cn,externalSlotProps:fa,ownerState:we({},Ue,fa==null?void 0:fa.ownerState),className:Ie.thumb}),da=xr({elementType:ca,externalSlotProps:mr,ownerState:we({},Ue,mr==null?void 0:mr.ownerState),className:Ie.valueLabel}),Be=xr({elementType:oi,externalSlotProps:Hu,ownerState:Ue,className:Ie.mark}),Vn=xr({elementType:fr,externalSlotProps:Nr,ownerState:Ue,className:Ie.markLabel}),Yu=xr({elementType:si,getSlotProps:tn,externalSlotProps:li,ownerState:Ue});return y.jsxs(Lt,we({},ce,{children:[y.jsx(ai,we({},Uu)),y.jsx(Lr,we({},Wu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Ws(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(B.Fragment,{children:[y.jsx(oi,we({"data-index":Je},Be,!Rs(oi)&&{markActive:mt},{style:we({},lt,Be.style),className:Kr(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(fr,we({"aria-hidden":!0,"data-index":Je},Vn,!Rs(fr)&&{markLabelActive:mt},{style:we({},lt,Vn.style),className:Kr(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Ws(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?Y8:ca;return y.jsx(mt,we({},!Rs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:R===Je||q===Je||rt==="on",disabled:_e},da,{children:y.jsx(qe,we({"data-index":Je},Et,{className:Kr(Ie.thumb,Et.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:we({},lt,pt(Je),Et.style),children:y.jsx(si,we({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Yu))}))}),Je)})]}))}),Gl=V8,G8=(e,t="down")=>{const n=Id(),[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},q8=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function K8(e){return e.tldr_topic??e.name}var Ys=globalThis&&globalThis.__assign||function(){return Ys=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"})})]})}),Q8=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"})})]})}),e9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` +import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg,s as jr,i as o4,e as vn,f as of,u as Ug,a as $d,c as Kr,d as Wg,ac as Id,ad as s4,ae as l4,af as Yg,o as H,q as L,ag as Vg,G as Hl,F,B as Sn,J as Ji,ah as Gg,T as ht,ai as u4,aj as c4,v as Fn,A as At,ak as Lo,al as Bt,am as f4,n as st,z as No,E as qg,an as Kg,O as sf,K as d4,ao as h4,ap as Ro,aq as Qi,ar as _n,as as Xg,at as Dd,au as ea,av as Te,R as U,aw as p4,ax as Zg,ay as m4,az as Jg,aA as y4,aB as g4,aC as v4,aD as Bo,aE as Ld,aF as Qg,aG as ev,aH as x4,aI as b4,aJ as w4,aK as Ul,aL as S4,aM as _4,P as Oe,aN as O4,aO as k4,aP as C4,y as qt,aQ as Xp,a4 as P4,C as rn,aR as A4,aS as j4,p as T4,aT as E4}from"./index-453237c9.js";import{v as Qr,d as M4,e as lf,f as $4,g as uc,h as Nd,i as I4,F as D4,b as tv,A as In,T as ta,j as ji,B as Dt,k as nv,P as Wl,l as L4,m as Rd,I as rv,n as Yl}from"./index-aa07e3c0.js";import{S as iv}from"./SearchIcon-2879dc36.js";import{c as N4,a as cc,C as Vl}from"./ClipLoader-c4c3d020.js";import{S as av}from"./Skeleton-926f190e.js";import{P as Bd}from"./PlusIcon-4d3aaca0.js";import{T as R4,r as B4,g as Zp,P as z4}from"./Popover-619582c9.js";import{o as Ns,e as fc,a as ov,d as F4,i as Rs,u as xr}from"./useSlotProps-0f0c60ff.js";import{C as sv}from"./CheckIcon-3a73121d.js";import{u as H4,F as U4,P as W4}from"./Stack-b37dd094.js";import{S as Y4,F as Jp}from"./FormControlLabel-b4f67dac.js";import{c as zd}from"./createSvgIcon-b3dd03d1.js";import{B as V4}from"./index-12293453.js";import{u as lv}from"./index-d2627d6e.js";import{b as G4,a as q4,c as K4,d as X4}from"./index.esm-1996df7a.js";import{I as Z4}from"./InfoIcon-dd2e04fe.js";const Qp="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",J4=async e=>{let t=await xi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xi.keysend(Qp,e),!(t!=null&&t.success)){if(t=await xi.topup(),t||(t=await xi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await J4(t),r={amount:t,refid:e};return await zg.post("/boost",JSON.stringify(r)),n},e8=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},uv=(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=Kp.groupBy(n,a=>a.timestamp),i=Kp.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=Qr(s),f=Qr(l);return u-f}),i},t8=async e=>{await a4(async()=>{try{await xi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},n8=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},r8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},i8=r8;function a8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const o8=2;function cv(e,t){return e-t}function xa(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function e1(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}%`})}},f8=e=>e;let gs;function dc(){return gs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?gs=CSS.supports("touch-action","none"):gs=!0),gs}function d8(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=f8,step:v=1,tabIndex:b,value:O}=e,C=B.useRef(),[k,P]=B.useState(-1),[_,w]=B.useState(-1),[j,E]=B.useState(!1),I=B.useRef(0),[z,M]=H4({controlled:O,default:n??l,name:"Slider"}),D=f&&((R,q,ne)=>{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,ne)}),W=Array.isArray(z);let Y=W?z.slice().sort(cv):[z];Y=Y.map(R=>xa(R,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((R,q)=>({value:l+v*q})):o||[],X=V.map(R=>R.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:T}=M4(),[pe,ue]=B.useState(-1),$=B.useRef(),_e=lf(T,$),te=lf(m,_e),ge=R=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),R==null||(ne=R.onFocus)==null||ne.call(R,q)},Ye=R=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),R==null||(ne=R.onBlur)==null||ne.call(R,q)};$4(()=>{if(r&&$.current.contains(document.activeElement)){var R;(R=document.activeElement)==null||R.blur()}},[r]),r&&k!==-1&&P(-1),r&&pe!==-1&&ue(-1);const Me=R=>q=>{var ne;(ne=R.onChange)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-R.y)/oe:$e=(R.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=s8($e,l,s),v)Ge=u8(Ge,v,l);else{const pt=e1(X,Ge);Ge=X[pt]}Ge=xa(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=e1(Y,Ge),i&&(Ge=xa(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const pt=Ge;Ge=t1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(pt),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=uc(R=>{const q=ps(R,C);if(!q)return;if(I.current+=1,R.type==="mousemove"&&R.buttons===0){Ae(R);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});ms({sliderRef:$,activeIndex:se,setActive:P}),M(ne),!j&&I.current>o8&&E(!0),D&&!ys(ne,z)&&D(R,ne,se)}),Ae=uc(R=>{const q=ps(R,C);if(E(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});P(-1),R.type==="touchend"&&w(-1),d&&d(R,ne),C.current=void 0,xe()}),he=uc(R=>{if(r)return;dc()||R.preventDefault();const q=R.changedTouches[0];q!=null&&(C.current=q.identifier);const ne=ps(R,C);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});ms({sliderRef:$,activeIndex:Re,setActive:P}),M(oe),D&&!ys(oe,z)&&D(R,oe,Re)}I.current=0;const se=Ns($.current);se.addEventListener("touchmove",ee),se.addEventListener("touchend",Ae)}),xe=B.useCallback(()=>{const R=Ns($.current);R.removeEventListener("mousemove",ee),R.removeEventListener("mouseup",Ae),R.removeEventListener("touchmove",ee),R.removeEventListener("touchend",Ae)},[Ae,ee]);B.useEffect(()=>{const{current:R}=$;return R.addEventListener("touchstart",he,{passive:dc()}),()=>{R.removeEventListener("touchstart",he,{passive:dc()}),xe()}},[xe,he]),B.useEffect(()=>{r&&xe()},[r,xe]);const He=R=>q=>{var ne;if((ne=R.onMouseDown)==null||ne.call(R,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ps(q,C);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({finger:se});ms({sliderRef:$,activeIndex:ke,setActive:P}),M(Re),D&&!ys(Re,z)&&D(q,Re,ke)}I.current=0;const oe=Ns($.current);oe.addEventListener("mousemove",ee),oe.addEventListener("mouseup",Ae)},rt=Ws(W?Y[0]:l,l,s),ft=Ws(Y[Y.length-1],l,s)-rt,en=(R={})=>{const q=fc(R),ne={onMouseDown:He(q||{})},se=we({},q,ne);return we({},R,{ref:te},se)},Ue=R=>q=>{var ne;(ne=R.onMouseOver)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=R=>q=>{var ne;(ne=R.onMouseLeave)==null||ne.call(R,q),w(-1)};return{active:k,axis:de,axisProps:c8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(R={})=>{var q;const ne=fc(R),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=we({},ne,se);return we({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:we({},i8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:en,getThumbProps:(R={})=>{const q=fc(R),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return we({},R,q,ne)},marks:V,open:_,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:R=>({pointerEvents:k!==-1&&k!==R?"none":void 0})}}const h8=zd(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"),p8=zd(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"),m8=zd(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 y8(e){return Hg("MuiCheckbox",e)}const g8=Fg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),hc=g8,v8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],x8=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${vn(r)}`,`size${vn(i)}`]},o=Wg(a,y8,t);return we({},t,o)},b8=jr(Y4,{shouldForwardProp:e=>o4(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})=>we({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})`:of(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${hc.checked}, &.${hc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${hc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),w8=y.jsx(p8,{}),S8=y.jsx(h8,{}),_8=y.jsx(m8,{}),O8=B.forwardRef(function(t,n){var r,i;const a=Ug({props:t,name:"MuiCheckbox"}),{checkedIcon:o=w8,color:s="primary",icon:l=S8,indeterminate:u=!1,indeterminateIcon:f=_8,inputProps:d,size:h="medium",className:m}=a,g=$d(a,v8),v=u?f:l,b=u?f:o,O=we({},a,{color:s,indeterminate:u,size:h}),C=x8(O);return y.jsx(b8,we({type:"checkbox",inputProps:we({"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:Kr(C.root,m)},g,{classes:C}))}),k8=O8,C8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function P8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=ov(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 A8(e){return typeof e=="function"?e():e}function vs(e,t,n){const r=A8(n),i=P8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const j8=B.forwardRef(function(t,n){const r=Id(),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:C,style:k,timeout:P=a,TransitionComponent:_=R4}=t,w=$d(t,C8),j=B.useRef(null),E=lf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},z=I((G,Q)=>{vs(f,G,u),B4(G),m&&m(G,Q)}),M=I((G,Q)=>{const T=Zp({timeout:P,style:k,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",we({},T)),G.style.transition=r.transitions.create("transform",we({},T)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(C),Y=I(G=>{const Q=Zp({timeout:P,style:k,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),vs(f,G,u),b&&b(G)}),V=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),X=G=>{o&&o(j.current,G)},Z=B.useCallback(()=>{j.current&&vs(f,j.current,u)},[f,u]);return B.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=F4(()=>{j.current&&vs(f,j.current,u)}),Q=ov(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),B.useEffect(()=>{h||Z()},[h,Z]),y.jsx(_,we({nodeRef:j,onEnter:z,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:P},w,{children:(G,Q)=>B.cloneElement(l,we({ref:E,style:we({visibility:G==="exited"&&!h?"hidden":void 0},k,l.props.style)},Q))}))}),Ti=j8,T8=e=>!e||!Rs(e),E8=T8;function M8(e){return Hg("MuiSlider",e)}const $8=Fg("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=$8,I8=e=>{const{open:t}=e;return{offset:Kr(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function D8(e){const{children:t,className:n,value:r}=e,i=I8(e);return t?B.cloneElement(t,{className:Kr(t.props.className)},y.jsxs(B.Fragment,{children:[t.props.children,y.jsx("span",{className:Kr(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const L8=["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 n1(e){return e}const N8=jr("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})=>we({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"&&we({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"&&we({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"}}})),R8=jr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>we({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})),B8=jr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?s4(e.palette[t.color].main,.62):l4(e.palette[t.color].main,.5);return we({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})}),z8=jr("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})=>we({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":we({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)`:of(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)`:of(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),F8=jr(D8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>we({[`&.${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"})),H8=jr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Yg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>we({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})),U8=jr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Yg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>we({},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})),W8=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 Wg(u,M8,o)},Y8=({children:e})=>e,V8=B.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,O,C,k,P,_,w,j,E,I,z;const M=Ug({props:t,name:"MuiSlider"}),W=Id().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:T="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=n1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=n1}=M,en=$d(M,L8),Ue=we({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:T,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:tn,getThumbProps:Cn,open:R,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:pt}=d8(we({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=W8(Ue),Lt=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:N8,ai=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:R8,Lr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:B8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:z8,ca=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:F8,oi=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:H8,fr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:U8,si=(O=(C=xe==null?void 0:xe.input)!=null?C:G.Input)!=null?O:"input",dr=(k=he==null?void 0:he.root)!=null?k:Q.root,hr=(P=he==null?void 0:he.rail)!=null?P:Q.rail,pr=(_=he==null?void 0:he.track)!=null?_:Q.track,fa=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,mr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Hu=(E=he==null?void 0:he.mark)!=null?E:Q.mark,Nr=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,li=(z=he==null?void 0:he.input)!=null?z:Q.input,ce=xr({elementType:Lt,getSlotProps:it,externalSlotProps:dr,externalForwardedProps:en,additionalProps:we({},E8(Lt)&&{as:Z}),ownerState:we({},Ue,dr==null?void 0:dr.ownerState),className:[Ie.root,ue]}),Uu=xr({elementType:ai,externalSlotProps:hr,ownerState:Ue,className:Ie.rail}),Wu=xr({elementType:Lr,externalSlotProps:pr,additionalProps:{style:we({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:we({},Ue,pr==null?void 0:pr.ownerState),className:Ie.track}),Et=xr({elementType:qe,getSlotProps:Cn,externalSlotProps:fa,ownerState:we({},Ue,fa==null?void 0:fa.ownerState),className:Ie.thumb}),da=xr({elementType:ca,externalSlotProps:mr,ownerState:we({},Ue,mr==null?void 0:mr.ownerState),className:Ie.valueLabel}),Be=xr({elementType:oi,externalSlotProps:Hu,ownerState:Ue,className:Ie.mark}),Vn=xr({elementType:fr,externalSlotProps:Nr,ownerState:Ue,className:Ie.markLabel}),Yu=xr({elementType:si,getSlotProps:tn,externalSlotProps:li,ownerState:Ue});return y.jsxs(Lt,we({},ce,{children:[y.jsx(ai,we({},Uu)),y.jsx(Lr,we({},Wu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Ws(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(B.Fragment,{children:[y.jsx(oi,we({"data-index":Je},Be,!Rs(oi)&&{markActive:mt},{style:we({},lt,Be.style),className:Kr(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(fr,we({"aria-hidden":!0,"data-index":Je},Vn,!Rs(fr)&&{markLabelActive:mt},{style:we({},lt,Vn.style),className:Kr(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Ws(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?Y8:ca;return y.jsx(mt,we({},!Rs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:R===Je||q===Je||rt==="on",disabled:_e},da,{children:y.jsx(qe,we({"data-index":Je},Et,{className:Kr(Ie.thumb,Et.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:we({},lt,pt(Je),Et.style),children:y.jsx(si,we({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Yu))}))}),Je)})]}))}),Gl=V8,G8=(e,t="down")=>{const n=Id(),[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},q8=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function K8(e){return e.tldr_topic??e.name}var Ys=globalThis&&globalThis.__assign||function(){return Ys=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"})})]})}),Q8=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"})})]})}),e9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -1880,7 +1880,7 @@ ${({disabled:e})=>e&&Vg` `,UK=H.audio` height: 0; width: 0; -`,WK=()=>{const e=qt(),{setPlayingNode:t}=Yl(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(cK,{});case"data_series":return y.jsx(sq,{});case"tribe_message":return y.jsx(oK,{});case"Tweet":return y.jsx(bK,{});case"topic":return y.jsx(xK,{});case"show":return y.jsx(vK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(G2,{});case"document":return y.jsx(RK,{});case"episode":return y.jsx(tK,{},e.ref_id);case"image":return y.jsx(aK,{});default:return y.jsx(PK,{})}},YK=B.memo(WK);var VK=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&&GK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?Mg:qK;o(a,r),a.onload||Mg(a,r),i.appendChild(a)};function GK(e,t){for(var n in t)e.setAttribute(n,t[n])}function Mg(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 qK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var KK=function(t){return XK(t)&&!ZK(t)};function XK(e){return!!e&&typeof e=="object"}function ZK(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eX(e)}var JK=typeof Symbol=="function"&&Symbol.for,QK=JK?Symbol.for("react.element"):60103;function eX(e){return e.$$typeof===QK}function tX(e){return Array.isArray(e)?[]:{}}function Do(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zi(tX(e),e,t):e}function nX(e,t,n){return e.concat(t).map(function(r){return Do(r,n)})}function rX(e,t){if(!t.customMerge)return Zi;var n=t.customMerge(e);return typeof n=="function"?n:Zi}function iX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $g(e){return Object.keys(e).concat(iX(e))}function q2(e,t){try{return t in e}catch{return!1}}function aX(e,t){return q2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function oX(e,t,n){var r={};return n.isMergeableObject(e)&&$g(e).forEach(function(i){r[i]=Do(e[i],n)}),$g(t).forEach(function(i){aX(e,i)||(q2(e,i)&&n.isMergeableObject(t[i])?r[i]=rX(i,n)(e[i],t[i],n):r[i]=Do(t[i],n))}),r}function Zi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nX,n.isMergeableObject=n.isMergeableObject||KK,n.cloneUnlessOtherwiseSpecified=Do;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):oX(e,t,n):Do(t,n)}Zi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zi(r,i,n)},{})};var sX=Zi,K2=sX,lX=Object.create,Nu=Object.defineProperty,uX=Object.getOwnPropertyDescriptor,cX=Object.getOwnPropertyNames,fX=Object.getPrototypeOf,dX=Object.prototype.hasOwnProperty,hX=(e,t)=>{for(var n in t)Nu(e,n,{get:t[n],enumerable:!0})},X2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cX(t))!dX.call(e,i)&&i!==n&&Nu(e,i,{get:()=>t[i],enumerable:!(r=uX(t,i))||r.enumerable});return e},op=(e,t,n)=>(n=e!=null?lX(fX(e)):{},X2(t||!e||!e.__esModule?Nu(n,"default",{value:e,enumerable:!0}):n,e)),pX=e=>X2(Nu({},"__esModule",{value:!0}),e),Z2={};hX(Z2,{callPlayer:()=>TX,getConfig:()=>AX,getSDK:()=>PX,isBlobUrl:()=>MX,isMediaStream:()=>EX,lazy:()=>vX,omit:()=>jX,parseEndTime:()=>OX,parseStartTime:()=>_X,queryString:()=>CX,randomString:()=>kX,supportsWebKitPresentationMode:()=>$X});var Ru=pX(Z2),mX=op(B),yX=op(VK),gX=op(K2);const vX=e=>mX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),xX=/[?&#](?:start|t)=([0-9hms]+)/,bX=/[?&#]end=([0-9hms]+)/,jd=/(\d+)(h|m|s)/g,wX=/^\d+$/;function J2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(jd))return SX(r);if(wX.test(r))return parseInt(r)}}function SX(e){let t=0,n=jd.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=jd.exec(e)}return t}function _X(e){return J2(e,xX)}function OX(e){return J2(e,bX)}function kX(){return Math.random().toString(36).substr(2,5)}function CX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function nf(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 gi={},PX=function(t,n,r=null,i=()=>!0,a=yX.default){const o=nf(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(gi[t]){gi[t].push({resolve:s,reject:l});return}gi[t]=[{resolve:s,reject:l}];const u=f=>{gi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(nf(n))}}a(t,f=>{f?(gi[t].forEach(d=>d.reject(f)),gi[t]=null):r||u(nf(n))})})};function AX(e,t){return(0,gX.default)(t.config,e.config)}function jX(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 TX(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 EX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function MX(e){return/^blob:/.test(e)}function $X(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var sp=Object.defineProperty,IX=Object.getOwnPropertyDescriptor,DX=Object.getOwnPropertyNames,LX=Object.prototype.hasOwnProperty,NX=(e,t)=>{for(var n in t)sp(e,n,{get:t[n],enumerable:!0})},RX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of DX(t))!LX.call(e,i)&&i!==n&&sp(e,i,{get:()=>t[i],enumerable:!(r=IX(t,i))||r.enumerable});return e},BX=e=>RX(sp({},"__esModule",{value:!0}),e),Q2={};NX(Q2,{AUDIO_EXTENSIONS:()=>lp,DASH_EXTENSIONS:()=>dw,FLV_EXTENSIONS:()=>hw,HLS_EXTENSIONS:()=>cp,MATCH_URL_DAILYMOTION:()=>lw,MATCH_URL_FACEBOOK:()=>nw,MATCH_URL_FACEBOOK_WATCH:()=>rw,MATCH_URL_KALTURA:()=>fw,MATCH_URL_MIXCLOUD:()=>uw,MATCH_URL_SOUNDCLOUD:()=>ew,MATCH_URL_STREAMABLE:()=>iw,MATCH_URL_TWITCH_CHANNEL:()=>sw,MATCH_URL_TWITCH_VIDEO:()=>ow,MATCH_URL_VIDYARD:()=>cw,MATCH_URL_VIMEO:()=>tw,MATCH_URL_WISTIA:()=>aw,MATCH_URL_YOUTUBE:()=>Td,VIDEO_EXTENSIONS:()=>up,canPlay:()=>FX});var zX=BX(Q2),Ig=Ru;const Td=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ew=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,tw=/vimeo\.com\/(?!progressive_redirect).+/,nw=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,rw=/^https?:\/\/fb\.watch\/.+$/,iw=/streamable\.com\/([a-z0-9]+)$/,aw=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ow=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,sw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,lw=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,uw=/mixcloud\.com\/([^/]+\/[^/]+)/,cw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,fw=/^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-_].*)$/,lp=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,up=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,cp=/\.(m3u8)($|\?)/i,dw=/\.(mpd)($|\?)/i,hw=/\.(flv)($|\?)/i,Ed=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Ed(t)||Ed(t.src))return!0;return!1}return(0,Ig.isMediaStream)(e)||(0,Ig.isBlobUrl)(e)?!0:lp.test(e)||up.test(e)||cp.test(e)||dw.test(e)||hw.test(e)},FX={youtube:e=>e instanceof Array?e.every(t=>Td.test(t)):Td.test(e),soundcloud:e=>ew.test(e)&&!lp.test(e),vimeo:e=>tw.test(e)&&!up.test(e)&&!cp.test(e),facebook:e=>nw.test(e)||rw.test(e),streamable:e=>iw.test(e),wistia:e=>aw.test(e),twitch:e=>ow.test(e)||sw.test(e),dailymotion:e=>lw.test(e),mixcloud:e=>uw.test(e),vidyard:e=>cw.test(e),kaltura:e=>fw.test(e),file:Ed};var fp=Object.defineProperty,HX=Object.getOwnPropertyDescriptor,UX=Object.getOwnPropertyNames,WX=Object.prototype.hasOwnProperty,YX=(e,t)=>{for(var n in t)fp(e,n,{get:t[n],enumerable:!0})},VX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UX(t))!WX.call(e,i)&&i!==n&&fp(e,i,{get:()=>t[i],enumerable:!(r=HX(t,i))||r.enumerable});return e},GX=e=>VX(fp({},"__esModule",{value:!0}),e),pw={};YX(pw,{default:()=>KX});var qX=GX(pw),nn=Ru,Xt=zX,KX=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./YouTube-7a58a7e3.js").then(e=>e.Y),["assets/YouTube-7a58a7e3.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./SoundCloud-4b283593.js").then(e=>e.S),["assets/SoundCloud-4b283593.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vimeo-256e7694.js").then(e=>e.V),["assets/Vimeo-256e7694.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Facebook-2dbbf335.js").then(e=>e.F),["assets/Facebook-2dbbf335.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Streamable-5066e689.js").then(e=>e.S),["assets/Streamable-5066e689.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Wistia-e060aee4.js").then(e=>e.W),["assets/Wistia-e060aee4.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Twitch-fbd03c7b.js").then(e=>e.T),["assets/Twitch-fbd03c7b.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./DailyMotion-84a7f911.js").then(e=>e.D),["assets/DailyMotion-84a7f911.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Mixcloud-c33d9740.js").then(e=>e.M),["assets/Mixcloud-c33d9740.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vidyard-4952029a.js").then(e=>e.V),["assets/Vidyard-4952029a.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Kaltura-a8362464.js").then(e=>e.K),["assets/Kaltura-a8362464.js","assets/index-9846c56f.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-b7607631.js").then(e=>e.F),["assets/FilePlayer-b7607631.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]))}],Dg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function XX(e,t){return!!(e===t||Dg(e)&&Dg(t))}function ZX(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Bu(e,n,{get:t[n],enumerable:!0})},yw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sZ(t))!uZ.call(e,i)&&i!==n&&Bu(e,i,{get:()=>t[i],enumerable:!(r=oZ(t,i))||r.enumerable});return e},fZ=(e,t,n)=>(n=e!=null?aZ(lZ(e)):{},yw(t||!e||!e.__esModule?Bu(n,"default",{value:e,enumerable:!0}):n,e)),dZ=e=>yw(Bu({},"__esModule",{value:!0}),e),gw={};cZ(gw,{defaultProps:()=>mZ,propTypes:()=>pZ});var vw=dZ(gw),hZ=fZ(j4);const{string:Ut,bool:Wt,number:vi,array:rf,oneOfType:Ma,shape:pn,object:Yt,func:wt,node:Lg}=hZ.default,pZ={url:Ma([Ut,rf,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:vi,muted:Wt,playbackRate:vi,width:Ma([Ut,vi]),height:Ma([Ut,vi]),style:Yt,progressInterval:vi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:Ma([Wt,Ut,Yt]),playIcon:Lg,previewTabIndex:vi,fallback:Lg,oEmbedUrl:Ut,wrapper:Ma([Ut,wt,pn({render:wt.isRequired})]),config:pn({soundcloud:pn({options:Yt}),youtube:pn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:pn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:pn({params:Yt}),vimeo:pn({playerOptions:Yt,title:Ut}),file:pn({attributes:Yt,tracks:rf,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:pn({options:Yt,playerId:Ut,customControls:rf}),mixcloud:pn({options:Yt}),twitch:pn({options:Yt,playerId:Ut}),vidyard:pn({options:Yt})}),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=()=>{},mZ={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 yZ=Object.create,Qo=Object.defineProperty,gZ=Object.getOwnPropertyDescriptor,vZ=Object.getOwnPropertyNames,xZ=Object.getPrototypeOf,bZ=Object.prototype.hasOwnProperty,wZ=(e,t,n)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SZ=(e,t)=>{for(var n in t)Qo(e,n,{get:t[n],enumerable:!0})},xw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vZ(t))!bZ.call(e,i)&&i!==n&&Qo(e,i,{get:()=>t[i],enumerable:!(r=gZ(t,i))||r.enumerable});return e},bw=(e,t,n)=>(n=e!=null?yZ(xZ(e)):{},xw(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e)),_Z=e=>xw(Qo({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(wZ(e,typeof t!="symbol"?t+"":t,n),n),ww={};SZ(ww,{default:()=>zu});var OZ=_Z(ww),Ng=bw(B),kZ=bw(mw),Sw=vw,CZ=Ru;const PZ=5e3;class zu extends Ng.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,kZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,CZ.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},PZ));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?Ng.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(zu,"displayName","Player");vt(zu,"propTypes",Sw.propTypes);vt(zu,"defaultProps",Sw.defaultProps);var AZ=Object.create,es=Object.defineProperty,jZ=Object.getOwnPropertyDescriptor,TZ=Object.getOwnPropertyNames,EZ=Object.getPrototypeOf,MZ=Object.prototype.hasOwnProperty,$Z=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IZ=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},_w=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TZ(t))!MZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=jZ(t,i))||r.enumerable});return e},ts=(e,t,n)=>(n=e!=null?AZ(EZ(e)):{},_w(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),DZ=e=>_w(es({},"__esModule",{value:!0}),e),gt=(e,t,n)=>($Z(e,typeof t!="symbol"?t+"":t,n),n),Ow={};IZ(Ow,{createReactPlayer:()=>WZ});var LZ=DZ(Ow),bi=ts(B),NZ=ts(K2),af=ts(eZ),Rg=ts(mw),Na=vw,kw=Ru,RZ=ts(OZ);const BZ=(0,kw.lazy)(()=>rn(()=>import("./Preview-84407155.js").then(e=>e.P),["assets/Preview-84407155.js","assets/index-9846c56f.js","assets/index-a2878e02.css"])),zZ=typeof window<"u"&&window.document,FZ=typeof Bt<"u"&&Bt.window&&Bt.window.document,HZ=Object.keys(Na.propTypes),UZ=zZ||FZ?bi.Suspense:()=>null,$a=[],WZ=(e,t)=>{var n;return n=class extends bi.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,af.default)(r=>{for(const i of[...$a,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,af.default)((r,i)=>{const{config:a}=this.props;return NZ.default.all([Na.defaultProps.config,Na.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,af.default)(r=>(0,kw.omit)(this.props,HZ))),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 bi.default.createElement(RZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Rg.default)(this.props,r)||!(0,Rg.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 bi.default.createElement(BZ,{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 bi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},bi.default.createElement(UZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Na.propTypes),gt(n,"defaultProps",Na.defaultProps),gt(n,"addCustomPlayer",r=>{$a.push(r)}),gt(n,"removeCustomPlayers",()=>{$a.length=0}),gt(n,"canPlay",r=>{for(const i of[...$a,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...$a,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var YZ=Object.create,Fu=Object.defineProperty,VZ=Object.getOwnPropertyDescriptor,GZ=Object.getOwnPropertyNames,qZ=Object.getPrototypeOf,KZ=Object.prototype.hasOwnProperty,XZ=(e,t)=>{for(var n in t)Fu(e,n,{get:t[n],enumerable:!0})},Cw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of GZ(t))!KZ.call(e,i)&&i!==n&&Fu(e,i,{get:()=>t[i],enumerable:!(r=VZ(t,i))||r.enumerable});return e},ZZ=(e,t,n)=>(n=e!=null?YZ(qZ(e)):{},Cw(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e)),JZ=e=>Cw(Fu({},"__esModule",{value:!0}),e),Pw={};XZ(Pw,{default:()=>nJ});var QZ=JZ(Pw),Md=ZZ(qX),eJ=LZ;const tJ=Md.default[Md.default.length-1];var nJ=(0,eJ.createReactPlayer)(Md.default,tJ);const rJ=st(QZ),iJ=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"})})]}),aJ=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"})})]}),oJ=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"})})]})}),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_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"})]})]})}),Bg=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}`},lJ=({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,C)=>{const k=Array.isArray(C)?C[0]:C;f(k),o(O,k),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(mJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(uJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(dJ,{onClick:n,size:"small",children:e?y.jsx(Wl,{}):y.jsx(Rd,{})}),y.jsxs(yJ,{direction:"row",children:[y.jsx("span",{children:Bg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:Bg(i)})]}),y.jsxs(hJ,{direction:"row",px:9,children:[y.jsx(Gl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(cJ,{onClick:b,children:d?y.jsx(fJ,{children:y.jsx(sJ,{})}):y.jsx(oJ,{})})]}),y.jsx(pJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(iJ,{}):y.jsx(aJ,{})})]})]})},uJ=H(F)` +`,WK=()=>{const e=qt(),{setPlayingNode:t}=Yl(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(cK,{});case"data_series":return y.jsx(sq,{});case"tribe_message":return y.jsx(oK,{});case"Tweet":return y.jsx(bK,{});case"topic":return y.jsx(xK,{});case"show":return y.jsx(vK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(G2,{});case"document":return y.jsx(RK,{});case"episode":return y.jsx(tK,{},e.ref_id);case"image":return y.jsx(aK,{});default:return y.jsx(PK,{})}},YK=B.memo(WK);var VK=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&&GK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?Mg:qK;o(a,r),a.onload||Mg(a,r),i.appendChild(a)};function GK(e,t){for(var n in t)e.setAttribute(n,t[n])}function Mg(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 qK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var KK=function(t){return XK(t)&&!ZK(t)};function XK(e){return!!e&&typeof e=="object"}function ZK(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eX(e)}var JK=typeof Symbol=="function"&&Symbol.for,QK=JK?Symbol.for("react.element"):60103;function eX(e){return e.$$typeof===QK}function tX(e){return Array.isArray(e)?[]:{}}function Do(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zi(tX(e),e,t):e}function nX(e,t,n){return e.concat(t).map(function(r){return Do(r,n)})}function rX(e,t){if(!t.customMerge)return Zi;var n=t.customMerge(e);return typeof n=="function"?n:Zi}function iX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $g(e){return Object.keys(e).concat(iX(e))}function q2(e,t){try{return t in e}catch{return!1}}function aX(e,t){return q2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function oX(e,t,n){var r={};return n.isMergeableObject(e)&&$g(e).forEach(function(i){r[i]=Do(e[i],n)}),$g(t).forEach(function(i){aX(e,i)||(q2(e,i)&&n.isMergeableObject(t[i])?r[i]=rX(i,n)(e[i],t[i],n):r[i]=Do(t[i],n))}),r}function Zi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nX,n.isMergeableObject=n.isMergeableObject||KK,n.cloneUnlessOtherwiseSpecified=Do;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):oX(e,t,n):Do(t,n)}Zi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zi(r,i,n)},{})};var sX=Zi,K2=sX,lX=Object.create,Nu=Object.defineProperty,uX=Object.getOwnPropertyDescriptor,cX=Object.getOwnPropertyNames,fX=Object.getPrototypeOf,dX=Object.prototype.hasOwnProperty,hX=(e,t)=>{for(var n in t)Nu(e,n,{get:t[n],enumerable:!0})},X2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cX(t))!dX.call(e,i)&&i!==n&&Nu(e,i,{get:()=>t[i],enumerable:!(r=uX(t,i))||r.enumerable});return e},op=(e,t,n)=>(n=e!=null?lX(fX(e)):{},X2(t||!e||!e.__esModule?Nu(n,"default",{value:e,enumerable:!0}):n,e)),pX=e=>X2(Nu({},"__esModule",{value:!0}),e),Z2={};hX(Z2,{callPlayer:()=>TX,getConfig:()=>AX,getSDK:()=>PX,isBlobUrl:()=>MX,isMediaStream:()=>EX,lazy:()=>vX,omit:()=>jX,parseEndTime:()=>OX,parseStartTime:()=>_X,queryString:()=>CX,randomString:()=>kX,supportsWebKitPresentationMode:()=>$X});var Ru=pX(Z2),mX=op(B),yX=op(VK),gX=op(K2);const vX=e=>mX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),xX=/[?&#](?:start|t)=([0-9hms]+)/,bX=/[?&#]end=([0-9hms]+)/,jd=/(\d+)(h|m|s)/g,wX=/^\d+$/;function J2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(jd))return SX(r);if(wX.test(r))return parseInt(r)}}function SX(e){let t=0,n=jd.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=jd.exec(e)}return t}function _X(e){return J2(e,xX)}function OX(e){return J2(e,bX)}function kX(){return Math.random().toString(36).substr(2,5)}function CX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function nf(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 gi={},PX=function(t,n,r=null,i=()=>!0,a=yX.default){const o=nf(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(gi[t]){gi[t].push({resolve:s,reject:l});return}gi[t]=[{resolve:s,reject:l}];const u=f=>{gi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(nf(n))}}a(t,f=>{f?(gi[t].forEach(d=>d.reject(f)),gi[t]=null):r||u(nf(n))})})};function AX(e,t){return(0,gX.default)(t.config,e.config)}function jX(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 TX(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 EX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function MX(e){return/^blob:/.test(e)}function $X(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var sp=Object.defineProperty,IX=Object.getOwnPropertyDescriptor,DX=Object.getOwnPropertyNames,LX=Object.prototype.hasOwnProperty,NX=(e,t)=>{for(var n in t)sp(e,n,{get:t[n],enumerable:!0})},RX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of DX(t))!LX.call(e,i)&&i!==n&&sp(e,i,{get:()=>t[i],enumerable:!(r=IX(t,i))||r.enumerable});return e},BX=e=>RX(sp({},"__esModule",{value:!0}),e),Q2={};NX(Q2,{AUDIO_EXTENSIONS:()=>lp,DASH_EXTENSIONS:()=>dw,FLV_EXTENSIONS:()=>hw,HLS_EXTENSIONS:()=>cp,MATCH_URL_DAILYMOTION:()=>lw,MATCH_URL_FACEBOOK:()=>nw,MATCH_URL_FACEBOOK_WATCH:()=>rw,MATCH_URL_KALTURA:()=>fw,MATCH_URL_MIXCLOUD:()=>uw,MATCH_URL_SOUNDCLOUD:()=>ew,MATCH_URL_STREAMABLE:()=>iw,MATCH_URL_TWITCH_CHANNEL:()=>sw,MATCH_URL_TWITCH_VIDEO:()=>ow,MATCH_URL_VIDYARD:()=>cw,MATCH_URL_VIMEO:()=>tw,MATCH_URL_WISTIA:()=>aw,MATCH_URL_YOUTUBE:()=>Td,VIDEO_EXTENSIONS:()=>up,canPlay:()=>FX});var zX=BX(Q2),Ig=Ru;const Td=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ew=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,tw=/vimeo\.com\/(?!progressive_redirect).+/,nw=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,rw=/^https?:\/\/fb\.watch\/.+$/,iw=/streamable\.com\/([a-z0-9]+)$/,aw=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ow=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,sw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,lw=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,uw=/mixcloud\.com\/([^/]+\/[^/]+)/,cw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,fw=/^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-_].*)$/,lp=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,up=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,cp=/\.(m3u8)($|\?)/i,dw=/\.(mpd)($|\?)/i,hw=/\.(flv)($|\?)/i,Ed=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Ed(t)||Ed(t.src))return!0;return!1}return(0,Ig.isMediaStream)(e)||(0,Ig.isBlobUrl)(e)?!0:lp.test(e)||up.test(e)||cp.test(e)||dw.test(e)||hw.test(e)},FX={youtube:e=>e instanceof Array?e.every(t=>Td.test(t)):Td.test(e),soundcloud:e=>ew.test(e)&&!lp.test(e),vimeo:e=>tw.test(e)&&!up.test(e)&&!cp.test(e),facebook:e=>nw.test(e)||rw.test(e),streamable:e=>iw.test(e),wistia:e=>aw.test(e),twitch:e=>ow.test(e)||sw.test(e),dailymotion:e=>lw.test(e),mixcloud:e=>uw.test(e),vidyard:e=>cw.test(e),kaltura:e=>fw.test(e),file:Ed};var fp=Object.defineProperty,HX=Object.getOwnPropertyDescriptor,UX=Object.getOwnPropertyNames,WX=Object.prototype.hasOwnProperty,YX=(e,t)=>{for(var n in t)fp(e,n,{get:t[n],enumerable:!0})},VX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UX(t))!WX.call(e,i)&&i!==n&&fp(e,i,{get:()=>t[i],enumerable:!(r=HX(t,i))||r.enumerable});return e},GX=e=>VX(fp({},"__esModule",{value:!0}),e),pw={};YX(pw,{default:()=>KX});var qX=GX(pw),nn=Ru,Xt=zX,KX=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./YouTube-10e3fc02.js").then(e=>e.Y),["assets/YouTube-10e3fc02.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./SoundCloud-da045835.js").then(e=>e.S),["assets/SoundCloud-da045835.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vimeo-f49a6342.js").then(e=>e.V),["assets/Vimeo-f49a6342.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Facebook-47020356.js").then(e=>e.F),["assets/Facebook-47020356.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Streamable-8f623a9e.js").then(e=>e.S),["assets/Streamable-8f623a9e.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Wistia-bb92c7cf.js").then(e=>e.W),["assets/Wistia-bb92c7cf.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Twitch-ff79e490.js").then(e=>e.T),["assets/Twitch-ff79e490.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./DailyMotion-2c69ea9c.js").then(e=>e.D),["assets/DailyMotion-2c69ea9c.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Mixcloud-b4e5ff02.js").then(e=>e.M),["assets/Mixcloud-b4e5ff02.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vidyard-0abeeec9.js").then(e=>e.V),["assets/Vidyard-0abeeec9.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Kaltura-7ccdd12e.js").then(e=>e.K),["assets/Kaltura-7ccdd12e.js","assets/index-453237c9.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-3a9881cf.js").then(e=>e.F),["assets/FilePlayer-3a9881cf.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))}],Dg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function XX(e,t){return!!(e===t||Dg(e)&&Dg(t))}function ZX(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Bu(e,n,{get:t[n],enumerable:!0})},yw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sZ(t))!uZ.call(e,i)&&i!==n&&Bu(e,i,{get:()=>t[i],enumerable:!(r=oZ(t,i))||r.enumerable});return e},fZ=(e,t,n)=>(n=e!=null?aZ(lZ(e)):{},yw(t||!e||!e.__esModule?Bu(n,"default",{value:e,enumerable:!0}):n,e)),dZ=e=>yw(Bu({},"__esModule",{value:!0}),e),gw={};cZ(gw,{defaultProps:()=>mZ,propTypes:()=>pZ});var vw=dZ(gw),hZ=fZ(j4);const{string:Ut,bool:Wt,number:vi,array:rf,oneOfType:Ma,shape:pn,object:Yt,func:wt,node:Lg}=hZ.default,pZ={url:Ma([Ut,rf,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:vi,muted:Wt,playbackRate:vi,width:Ma([Ut,vi]),height:Ma([Ut,vi]),style:Yt,progressInterval:vi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:Ma([Wt,Ut,Yt]),playIcon:Lg,previewTabIndex:vi,fallback:Lg,oEmbedUrl:Ut,wrapper:Ma([Ut,wt,pn({render:wt.isRequired})]),config:pn({soundcloud:pn({options:Yt}),youtube:pn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:pn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:pn({params:Yt}),vimeo:pn({playerOptions:Yt,title:Ut}),file:pn({attributes:Yt,tracks:rf,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:pn({options:Yt,playerId:Ut,customControls:rf}),mixcloud:pn({options:Yt}),twitch:pn({options:Yt,playerId:Ut}),vidyard:pn({options:Yt})}),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=()=>{},mZ={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 yZ=Object.create,Qo=Object.defineProperty,gZ=Object.getOwnPropertyDescriptor,vZ=Object.getOwnPropertyNames,xZ=Object.getPrototypeOf,bZ=Object.prototype.hasOwnProperty,wZ=(e,t,n)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SZ=(e,t)=>{for(var n in t)Qo(e,n,{get:t[n],enumerable:!0})},xw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vZ(t))!bZ.call(e,i)&&i!==n&&Qo(e,i,{get:()=>t[i],enumerable:!(r=gZ(t,i))||r.enumerable});return e},bw=(e,t,n)=>(n=e!=null?yZ(xZ(e)):{},xw(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e)),_Z=e=>xw(Qo({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(wZ(e,typeof t!="symbol"?t+"":t,n),n),ww={};SZ(ww,{default:()=>zu});var OZ=_Z(ww),Ng=bw(B),kZ=bw(mw),Sw=vw,CZ=Ru;const PZ=5e3;class zu extends Ng.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,kZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,CZ.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},PZ));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?Ng.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(zu,"displayName","Player");vt(zu,"propTypes",Sw.propTypes);vt(zu,"defaultProps",Sw.defaultProps);var AZ=Object.create,es=Object.defineProperty,jZ=Object.getOwnPropertyDescriptor,TZ=Object.getOwnPropertyNames,EZ=Object.getPrototypeOf,MZ=Object.prototype.hasOwnProperty,$Z=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IZ=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},_w=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TZ(t))!MZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=jZ(t,i))||r.enumerable});return e},ts=(e,t,n)=>(n=e!=null?AZ(EZ(e)):{},_w(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),DZ=e=>_w(es({},"__esModule",{value:!0}),e),gt=(e,t,n)=>($Z(e,typeof t!="symbol"?t+"":t,n),n),Ow={};IZ(Ow,{createReactPlayer:()=>WZ});var LZ=DZ(Ow),bi=ts(B),NZ=ts(K2),af=ts(eZ),Rg=ts(mw),Na=vw,kw=Ru,RZ=ts(OZ);const BZ=(0,kw.lazy)(()=>rn(()=>import("./Preview-a6576b17.js").then(e=>e.P),["assets/Preview-a6576b17.js","assets/index-453237c9.js","assets/index-a2878e02.css"])),zZ=typeof window<"u"&&window.document,FZ=typeof Bt<"u"&&Bt.window&&Bt.window.document,HZ=Object.keys(Na.propTypes),UZ=zZ||FZ?bi.Suspense:()=>null,$a=[],WZ=(e,t)=>{var n;return n=class extends bi.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,af.default)(r=>{for(const i of[...$a,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,af.default)((r,i)=>{const{config:a}=this.props;return NZ.default.all([Na.defaultProps.config,Na.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,af.default)(r=>(0,kw.omit)(this.props,HZ))),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 bi.default.createElement(RZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Rg.default)(this.props,r)||!(0,Rg.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 bi.default.createElement(BZ,{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 bi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},bi.default.createElement(UZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Na.propTypes),gt(n,"defaultProps",Na.defaultProps),gt(n,"addCustomPlayer",r=>{$a.push(r)}),gt(n,"removeCustomPlayers",()=>{$a.length=0}),gt(n,"canPlay",r=>{for(const i of[...$a,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...$a,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var YZ=Object.create,Fu=Object.defineProperty,VZ=Object.getOwnPropertyDescriptor,GZ=Object.getOwnPropertyNames,qZ=Object.getPrototypeOf,KZ=Object.prototype.hasOwnProperty,XZ=(e,t)=>{for(var n in t)Fu(e,n,{get:t[n],enumerable:!0})},Cw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of GZ(t))!KZ.call(e,i)&&i!==n&&Fu(e,i,{get:()=>t[i],enumerable:!(r=VZ(t,i))||r.enumerable});return e},ZZ=(e,t,n)=>(n=e!=null?YZ(qZ(e)):{},Cw(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e)),JZ=e=>Cw(Fu({},"__esModule",{value:!0}),e),Pw={};XZ(Pw,{default:()=>nJ});var QZ=JZ(Pw),Md=ZZ(qX),eJ=LZ;const tJ=Md.default[Md.default.length-1];var nJ=(0,eJ.createReactPlayer)(Md.default,tJ);const rJ=st(QZ),iJ=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"})})]}),aJ=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"})})]}),oJ=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"})})]})}),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_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"})]})]})}),Bg=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}`},lJ=({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,C)=>{const k=Array.isArray(C)?C[0]:C;f(k),o(O,k),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(mJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(uJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(dJ,{onClick:n,size:"small",children:e?y.jsx(Wl,{}):y.jsx(Rd,{})}),y.jsxs(yJ,{direction:"row",children:[y.jsx("span",{children:Bg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:Bg(i)})]}),y.jsxs(hJ,{direction:"row",px:9,children:[y.jsx(Gl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(cJ,{onClick:b,children:d?y.jsx(fJ,{children:y.jsx(sJ,{})}):y.jsx(oJ,{})})]}),y.jsx(pJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(iJ,{}):y.jsx(aJ,{})})]})]})},uJ=H(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` diff --git a/build/assets/index-9846c56f.js b/build/assets/index-453237c9.js similarity index 99% rename from build/assets/index-9846c56f.js rename to build/assets/index-453237c9.js index e8dc26991..e199c82bb 100644 --- a/build/assets/index-9846c56f.js +++ b/build/assets/index-453237c9.js @@ -665,4 +665,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-aa58e574.js").then(o=>o.E),["assets/index-aa58e574.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 $,useAppStore as A,useDataStore as B,__vitePreload as C,media as D,useAiSummaryStore as E,Flex as F,useNavigate as G,Stats as H,useSearchParams as I,useUserStore as J,useFeatureFlagStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useSelectedNodeRelativeIds as U,forceSimulation as V,We as W,forceCollide as X,forceCenter as Y,forceManyBody as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceLink as a0,NODE_RELATIVE_HIGHLIGHT_COLORS as a1,useHoveredNode as a2,useNodeTypes as a3,lottie as a4,fetchNodeEdges as a5,NodesIcon as a6,lodashExports as a7,addToGlobalForE2e as a8,api as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,distExports$1 as aa,executeIfProd as ab,useTheme as ac,lighten as ad,darken as ae,slotShouldForwardProp as af,Ce as ag,useHasAiChatsResponseLoading as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-aa07e3c0.js").then(o=>o.E),["assets/index-aa07e3c0.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 $,useAppStore as A,useDataStore as B,__vitePreload as C,media as D,useAiSummaryStore as E,Flex as F,useNavigate as G,Stats as H,useSearchParams as I,useUserStore as J,useFeatureFlagStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useSelectedNodeRelativeIds as U,forceSimulation as V,We as W,forceCollide as X,forceCenter as Y,forceManyBody as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceLink as a0,NODE_RELATIVE_HIGHLIGHT_COLORS as a1,useHoveredNode as a2,useNodeTypes as a3,lottie as a4,fetchNodeEdges as a5,NodesIcon as a6,lodashExports as a7,addToGlobalForE2e as a8,api as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,distExports$1 as aa,executeIfProd as ab,useTheme as ac,lighten as ad,darken as ae,slotShouldForwardProp as af,Ce as ag,useHasAiChatsResponseLoading as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; diff --git a/build/assets/index-3ac4a96b.js b/build/assets/index-5f9e041e.js similarity index 99% rename from build/assets/index-3ac4a96b.js rename to build/assets/index-5f9e041e.js index f20b41d12..7ca3ec12d 100644 --- a/build/assets/index-3ac4a96b.js +++ b/build/assets/index-5f9e041e.js @@ -1,4 +1,4 @@ -import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-9846c56f.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{s as _t,c as Ad}from"./index-aa58e574.js";var Pc={exports:{}},Gr={};/** +import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-453237c9.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{s as _t,c as Ad}from"./index-aa07e3c0.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-0981f4c0.js b/build/assets/index-65b91810.js similarity index 92% rename from build/assets/index-0981f4c0.js rename to build/assets/index-65b91810.js index a3407ca92..257972a20 100644 --- a/build/assets/index-0981f4c0.js +++ b/build/assets/index-65b91810.js @@ -1,4 +1,4 @@ -import{o as s,q as l,F as n,p as w,j as e,t as G,v as C,T as S,r as f,A as v,aU as A,aV as b,aW as I,J as B,O as y}from"./index-9846c56f.js";import{B as z}from"./index-387222b3.js";import{u as M,G as k,C as D,l as E,o as R,B as T,i as W,F}from"./index-aa58e574.js";import{C as $}from"./ClipLoader-1aa08d13.js";import{T as j}from"./index-5b1d270d.js";import{S as P}from"./index-2fa35172.js";import{e as V}from"./index.esm-5af45bb6.js";import{T as L,a as N}from"./Tabs-7dfb5100.js";import"./InfoIcon-109ca23e.js";import"./useSlotProps-1ba44fef.js";import"./createSvgIcon-25f2bcd2.js";const O={split:e.jsx(k,{}),force:e.jsx(D,{}),sphere:e.jsx(E,{}),earth:e.jsx(R,{})},Y=()=>{const[i,p]=w(M(t=>[t.graphStyle,t.setGraphStyle])),r=t=>{p(t)};return e.jsx(q,{direction:"column",children:G.map(t=>e.jsx(n,{className:C("icon",{active:i===t}),onClick:()=>r(t),children:O[t]},t))})},q=s(n).attrs({direction:"row",align:"center",justify:"space-between"})` +import{o as s,q as l,F as n,p as w,j as e,t as G,v as C,T as S,r as f,A as v,aU as A,aV as b,aW as I,J as B,O as y}from"./index-453237c9.js";import{B as z}from"./index-12293453.js";import{u as M,G as k,C as D,l as E,o as R,B as T,i as W,F}from"./index-aa07e3c0.js";import{C as $}from"./ClipLoader-c4c3d020.js";import{T as j}from"./index-66983695.js";import{S as P}from"./index-185eb85f.js";import{e as V}from"./index.esm-1996df7a.js";import{T as L,a as N}from"./Tabs-832e46f5.js";import"./InfoIcon-dd2e04fe.js";import"./useSlotProps-0f0c60ff.js";import"./createSvgIcon-b3dd03d1.js";const O={split:e.jsx(k,{}),force:e.jsx(D,{}),sphere:e.jsx(E,{}),earth:e.jsx(R,{})},Y=()=>{const[i,p]=w(M(t=>[t.graphStyle,t.setGraphStyle])),r=t=>{p(t)};return e.jsx(q,{direction:"column",children:G.map(t=>e.jsx(n,{className:C("icon",{active:i===t}),onClick:()=>r(t),children:O[t]},t))})},q=s(n).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${l.appearanceBg}; diff --git a/build/assets/index-5b1d270d.js b/build/assets/index-66983695.js similarity index 98% rename from build/assets/index-5b1d270d.js rename to build/assets/index-66983695.js index 8994e22e8..b581a7375 100644 --- a/build/assets/index-5b1d270d.js +++ b/build/assets/index-66983695.js @@ -1,4 +1,4 @@ -import{r as I,h as fe,n as de,o as N,q as S,j as E,F as L,T as pe}from"./index-9846c56f.js";import{h as he,z as ge,D as ve}from"./index-aa58e574.js";import{e as me}from"./index.esm-5af45bb6.js";import{I as xe}from"./InfoIcon-109ca23e.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,_=ne(k),Pe=fe,K=ne(ke);function B(){return(B=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&d=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&dS[e]}; background: transparent; diff --git a/build/assets/index-7b79a484.js b/build/assets/index-6d901b61.js similarity index 98% rename from build/assets/index-7b79a484.js rename to build/assets/index-6d901b61.js index e72102b6a..bb8bdb37d 100644 --- a/build/assets/index-7b79a484.js +++ b/build/assets/index-6d901b61.js @@ -1,4 +1,4 @@ -import{r as h,b as Y,g as q,s as F,_ as N,u as Q,a as K,j as e,c as X,d as J,e as P,ad as ut,f as oe,ae as gt,o as d,q as x,T as L,F as g,O as E,ba as ft,ag as te,R as ne,B as ae,aa as mt,bb as bt,bc as Ge,v as re,bd as Ze,a7 as je,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,K as St,Q as $t}from"./index-9846c56f.js";import{B as ce}from"./index-387222b3.js";import{P as kt}from"./PlusIcon-6b486ee1.js";import{B as W,I as Z,k as ee,i as ye,F as we}from"./index-aa58e574.js";import{T as Me,s as U,a as Qe,S as Ke,A as ve,N as Xe,F as Je,b as et,E as _t,D as Lt,c as tt,Q as st,V as ot,d as Mt}from"./NodeCircleIcon-b5c03892.js";import{C as M}from"./ClipLoader-1aa08d13.js";import{f as Nt,g as Bt,h as zt,a as It}from"./index.esm-5af45bb6.js";import{P as Te,a as Rt}from"./Popover-695cd614.js";import{S as nt}from"./SearchIcon-f9577115.js";import{I as Et,A as Se,O as rt,T as it}from"./index-187da08e.js";import{B as At,T as Ot}from"./index-5b1d270d.js";import{D as Ft}from"./DeleteIcon-b54e2d75.js";import{E as Ht,M as Ne,A as Wt}from"./MergeIcon-a902b7ab.js";import{u as I}from"./index-e82f6bc9.js";import{C as at}from"./CheckIcon-dfb703bb.js";import{T as Be}from"./Typography-22d8fe78.js";import{T as Pt,a as Ut}from"./Tabs-7dfb5100.js";import"./useSlotProps-1ba44fef.js";import"./Stack-805fc768.js";import"./createSvgIcon-25f2bcd2.js";import"./TextareaAutosize-592bcdfa.js";import"./InfoIcon-109ca23e.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=F("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=K(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:X(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Kt(t){return Y("MuiTableBody",t)}q("MuiTableBody",["root"]);const Xt=["className","component"],Jt=t=>{const{classes:s}=t;return J({root:["root"]},Kt,s)},es=F("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=K(r,Xt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:X(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=F("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,b as Y,g as q,s as F,_ as N,u as Q,a as K,j as e,c as X,d as J,e as P,ad as ut,f as oe,ae as gt,o as d,q as x,T as L,F as g,O as E,ba as ft,ag as te,R as ne,B as ae,aa as mt,bb as bt,bc as Ge,v as re,bd as Ze,a7 as je,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,K as St,Q as $t}from"./index-453237c9.js";import{B as ce}from"./index-12293453.js";import{P as kt}from"./PlusIcon-4d3aaca0.js";import{B as W,I as Z,k as ee,i as ye,F as we}from"./index-aa07e3c0.js";import{T as Me,s as U,a as Qe,S as Ke,A as ve,N as Xe,F as Je,b as et,E as _t,D as Lt,c as tt,Q as st,V as ot,d as Mt}from"./NodeCircleIcon-bfb09d34.js";import{C as M}from"./ClipLoader-c4c3d020.js";import{f as Nt,g as Bt,h as zt,a as It}from"./index.esm-1996df7a.js";import{P as Te,a as Rt}from"./Popover-619582c9.js";import{S as nt}from"./SearchIcon-2879dc36.js";import{I as Et,A as Se,O as rt,T as it}from"./index-6f7942fe.js";import{B as At,T as Ot}from"./index-66983695.js";import{D as Ft}from"./DeleteIcon-580f7113.js";import{E as Ht,M as Ne,A as Wt}from"./MergeIcon-c1c5911f.js";import{u as I}from"./index-faf9ee00.js";import{C as at}from"./CheckIcon-3a73121d.js";import{T as Be}from"./Typography-d70fa287.js";import{T as Pt,a as Ut}from"./Tabs-832e46f5.js";import"./useSlotProps-0f0c60ff.js";import"./Stack-b37dd094.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";import"./InfoIcon-dd2e04fe.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=F("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=K(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:X(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Kt(t){return Y("MuiTableBody",t)}q("MuiTableBody",["root"]);const Xt=["className","component"],Jt=t=>{const{classes:s}=t;return J({root:["root"]},Kt,s)},es=F("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=K(r,Xt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:X(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=F("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=K(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:$}),O=ls(A);let B=null;return m&&(B=m==="asc"?"ascending":"descending"),e.jsx(cs,N({as:y,ref:n,className:X(O.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=F("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=K(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:X(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=F("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=K(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:X(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}; diff --git a/build/assets/index-187da08e.js b/build/assets/index-6f7942fe.js similarity index 99% rename from build/assets/index-187da08e.js rename to build/assets/index-6f7942fe.js index 0ca8f12af..12e3c2c9f 100644 --- a/build/assets/index-187da08e.js +++ b/build/assets/index-6f7942fe.js @@ -1,4 +1,4 @@ -import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ac as Tt,af as Nt,o as At,q as je,F as zt}from"./index-9846c56f.js";import{g as xo,t as Dt,e as lo,p as Uo,f as pt,I as ft,T as Et}from"./index-aa58e574.js";import{u as fo,a as so,f as io,i as bt,b as Bt,P as No,F as jt,S as Wt}from"./Stack-805fc768.js";import{a as gt,b as _t,P as Ut,c as Ht}from"./Popover-695cd614.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-1ba44fef.js";import{c as Ao}from"./createSvgIcon-25f2bcd2.js";import{T as Vt}from"./TextareaAutosize-592bcdfa.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.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=p.useRef({});return p.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=Ao(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:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}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:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.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*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.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:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Dt(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]: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":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(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}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({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,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&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=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),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:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,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${O(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${O(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=p.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:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(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,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,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${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(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${O(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=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=lo(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}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${O(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:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,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=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=lo(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{bt(N)?ze&&ze():_e&&_e()},[ze,_e]);pt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,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=Ao(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"]),A=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"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,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[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.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,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.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,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.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(ft,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(ft,{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(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.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(gt,{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",[`& .${A.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"},[`&.${A.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"},[`&.${A.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),[`&.${A.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}},[`&.${A.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,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=gt,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&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:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="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":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,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:I},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&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,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=dt(Qo||(Qo=So` +import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ac as Tt,af as Nt,o as At,q as je,F as zt}from"./index-453237c9.js";import{g as xo,t as Dt,e as lo,p as Uo,f as pt,I as ft,T as Et}from"./index-aa07e3c0.js";import{u as fo,a as so,f as io,i as bt,b as Bt,P as No,F as jt,S as Wt}from"./Stack-b37dd094.js";import{a as gt,b as _t,P as Ut,c as Ht}from"./Popover-619582c9.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-0f0c60ff.js";import{c as Ao}from"./createSvgIcon-b3dd03d1.js";import{T as Vt}from"./TextareaAutosize-4ce1e768.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.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=p.useRef({});return p.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=Ao(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:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}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:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.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*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.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:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Dt(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]: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":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(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}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({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,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&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=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),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:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,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${O(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${O(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=p.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:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(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,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,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${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(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${O(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=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=lo(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}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${O(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:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,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=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=lo(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{bt(N)?ze&&ze():_e&&_e()},[ze,_e]);pt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,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=Ao(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"]),A=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"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,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[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.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,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.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,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.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(ft,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(ft,{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(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.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(gt,{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",[`& .${A.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"},[`&.${A.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"},[`&.${A.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),[`&.${A.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}},[`&.${A.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,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=gt,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&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:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="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":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,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:I},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&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,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=dt(Qo||(Qo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-8471b4a2.js b/build/assets/index-78bcec08.js similarity index 99% rename from build/assets/index-8471b4a2.js rename to build/assets/index-78bcec08.js index 89cadced4..5cc473360 100644 --- a/build/assets/index-8471b4a2.js +++ b/build/assets/index-78bcec08.js @@ -1,4 +1,4 @@ -import{j as e,O as r,G as F,E as I,B as V,A as _,K as A,J as $,Q as U,T as s,o as l,q as C,F as a}from"./index-9846c56f.js";import{C as O}from"./index-aa58e574.js";const T=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"})})]}),G=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"})})]}),z=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"})}),E=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"})})]}),D=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"})})]}),J=()=>{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=F(),{resetAiSummaryAnswer:g,setNewLoading:w}=I(),{abortFetchData:j,resetGraph:b}=V(n=>n),{setUniverseQuestionIsOpen:k,setSidebarOpen:f,setShowCollapseButton:v,sidebarIsOpen:H}=_(n=>n),{customSchemaFeatureFlag:M,userFeedbackFeatureFlag:L,chatInterfaceFeatureFlag:y}=A(n=>n),[c]=$(n=>[n.isAdmin]),S=U(),Z=()=>{w(null),j(),g(),b(),m("/")},B=()=>{k(),f(!H),v(!1)};return e.jsxs(Q,{children:[e.jsx(R,{onClick:Z,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),y?e.jsxs(i,{onClick:B,children:[e.jsx(o,{children:e.jsx(E,{})}),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(G,{})}),e.jsx(s,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:h,children:[e.jsx(o,{children:e.jsx(T,{})}),e.jsx(s,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(o,{children:e.jsx(D,{})}),e.jsx(s,{children:"Source Table"})]}),M&&c?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(o,{children:e.jsx(O,{})}),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"})]}),L&&S?e.jsxs(W,{"data-testid":"feedback-modal",onClick:u,children:[e.jsx(o,{children:e.jsx(z,{})}),e.jsx(s,{children:"Send Feedback"})]}):null]})},Q=l(a).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{j as e,O as r,G as F,E as I,B as V,A as _,K as A,J as $,Q as U,T as s,o as l,q as C,F as a}from"./index-453237c9.js";import{C as O}from"./index-aa07e3c0.js";const T=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"})})]}),G=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"})})]}),z=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"})}),E=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"})})]}),D=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"})})]}),J=()=>{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=F(),{resetAiSummaryAnswer:g,setNewLoading:w}=I(),{abortFetchData:j,resetGraph:b}=V(n=>n),{setUniverseQuestionIsOpen:k,setSidebarOpen:f,setShowCollapseButton:v,sidebarIsOpen:H}=_(n=>n),{customSchemaFeatureFlag:M,userFeedbackFeatureFlag:L,chatInterfaceFeatureFlag:y}=A(n=>n),[c]=$(n=>[n.isAdmin]),S=U(),Z=()=>{w(null),j(),g(),b(),m("/")},B=()=>{k(),f(!H),v(!1)};return e.jsxs(Q,{children:[e.jsx(R,{onClick:Z,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),y?e.jsxs(i,{onClick:B,children:[e.jsx(o,{children:e.jsx(E,{})}),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(G,{})}),e.jsx(s,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:h,children:[e.jsx(o,{children:e.jsx(T,{})}),e.jsx(s,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(o,{children:e.jsx(D,{})}),e.jsx(s,{children:"Source Table"})]}),M&&c?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(o,{children:e.jsx(O,{})}),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"})]}),L&&S?e.jsxs(W,{"data-testid":"feedback-modal",onClick:u,children:[e.jsx(o,{children:e.jsx(z,{})}),e.jsx(s,{children:"Send Feedback"})]}):null]})},Q=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-15b14845.js b/build/assets/index-7b8a22d4.js similarity index 91% rename from build/assets/index-15b14845.js rename to build/assets/index-7b8a22d4.js index 439ef469d..d35c70e04 100644 --- a/build/assets/index-15b14845.js +++ b/build/assets/index-7b8a22d4.js @@ -1,4 +1,4 @@ -import{j as e,o as r,q as y,T as S,F as n,O as g,K as q,y as k,aW as G,r as l,bk as O,bi as P,B as K}from"./index-9846c56f.js";import{B as Y}from"./index-387222b3.js";import{T as J,i as Q,F as X,B as F}from"./index-aa58e574.js";import{T as B}from"./index-5b1d270d.js";import{S as Z}from"./Skeleton-0399e71a.js";import{C as ee}from"./ClipLoader-1aa08d13.js";import"./index.esm-5af45bb6.js";import"./InfoIcon-109ca23e.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}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),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(J,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{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,o as r,q as y,T as S,F as n,O as g,K as q,y as k,aW as G,r as l,bk as O,bi as P,B as K}from"./index-453237c9.js";import{B as Y}from"./index-12293453.js";import{T as J,i as Q,F as X,B as F}from"./index-aa07e3c0.js";import{T as B}from"./index-66983695.js";import{S as Z}from"./Skeleton-926f190e.js";import{C as ee}from"./ClipLoader-c4c3d020.js";import"./index.esm-1996df7a.js";import"./InfoIcon-dd2e04fe.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}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),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(J,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{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'; diff --git a/build/assets/index-4dcb538c.js b/build/assets/index-82036184.js similarity index 93% rename from build/assets/index-4dcb538c.js rename to build/assets/index-82036184.js index 7bb110f16..34c6188a6 100644 --- a/build/assets/index-4dcb538c.js +++ b/build/assets/index-82036184.js @@ -1,4 +1,4 @@ -import{a9 as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,K as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ab as ae,aa as ce,b6 as le}from"./index-9846c56f.js";import{B as C,h as de,i as pe,F as me}from"./index-aa58e574.js";import{B as xe}from"./index-387222b3.js";import{S as ue}from"./index-2fa35172.js";import{e as he}from"./index.esm-5af45bb6.js";import{C as fe}from"./CheckIcon-dfb703bb.js";import{C as W}from"./ClipLoader-1aa08d13.js";import{n as z,A as ye,O as ge,i as je}from"./index-187da08e.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-5b1d270d.js";import{c as we}from"./index-64f1c910.js";import"./Stack-805fc768.js";import"./useSlotProps-1ba44fef.js";import"./Popover-695cd614.js";import"./createSvgIcon-25f2bcd2.js";import"./TextareaAutosize-592bcdfa.js";import"./three.module-2ce81f73.js";import"./InfoIcon-109ca23e.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(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{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"})` +import{a9 as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,K as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ab as ae,aa as ce,b6 as le}from"./index-453237c9.js";import{B as C,h as de,i as pe,F as me}from"./index-aa07e3c0.js";import{B as xe}from"./index-12293453.js";import{S as ue}from"./index-185eb85f.js";import{e as he}from"./index.esm-1996df7a.js";import{C as fe}from"./CheckIcon-3a73121d.js";import{C as W}from"./ClipLoader-c4c3d020.js";import{n as z,A as ye,O as ge,i as je}from"./index-6f7942fe.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-66983695.js";import{c as we}from"./index-64f1c910.js";import"./Stack-b37dd094.js";import"./useSlotProps-0f0c60ff.js";import"./Popover-619582c9.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";import"./three.module-2ce81f73.js";import"./InfoIcon-dd2e04fe.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(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{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}; diff --git a/build/assets/index-c08f2230.js b/build/assets/index-82b2aee7.js similarity index 99% rename from build/assets/index-c08f2230.js rename to build/assets/index-82b2aee7.js index d152b5366..be97eb3f7 100644 --- a/build/assets/index-c08f2230.js +++ b/build/assets/index-82b2aee7.js @@ -1,4 +1,4 @@ -import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,E as ef,y as Jt,p as nt,U as bo,v as du,V as tf,X as sf,Y as nf,Z as rf,a0 as of,a1 as af,a2 as cf,a3 as lf,a4 as uf,O as $o,a5 as hf,a6 as df,a7 as ff,a8 as pf,M as mf}from"./index-9846c56f.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-3ac4a96b.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,T as tl,A as Jf,b as ep,O as tp,c as sp}from"./index-aa58e574.js";import{T as np}from"./TextareaAutosize-592bcdfa.js";import{D as ip}from"./DeleteIcon-b54e2d75.js";import{M as rp,a as op}from"./index.esm-5af45bb6.js";import{u as ap}from"./index-c01e0510.js";import{M as cp,A as lp,E as up}from"./MergeIcon-a902b7ab.js";import{P as hp}from"./PlusIcon-6b486ee1.js";import{P as dp}from"./Popover-695cd614.js";import{C as fp}from"./ClipLoader-1aa08d13.js";import"./useSlotProps-1ba44fef.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?b.useEffect:b.useLayoutEffect;function _p(n){const e=typeof n=="function"?pp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(g=>g+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let 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=b.useRef(o);sl(()=>{const g=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(g);return e.getState()!==m.current&&g(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const gp=_p(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.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=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={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 Af,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,Ar=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),Ar.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),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,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}=ge(),[p,g]=b.useState(!1),[v,S]=b.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],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),_=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new Tp(l,_.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,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.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){E.x=Math.max(x.x,B.clientX),E.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=`${E.x-C.x}px`,k.style.height=`${E.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 Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);wp(Te,z)||(z=Te,S({object:o(Te)}))}}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]),b.createElement("group",$a({ref:_,onClick:T,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:y},a),b.createElement(kp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),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(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! +import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,E as ef,y as Jt,p as nt,U as bo,v as du,V as tf,X as sf,Y as nf,Z as rf,a0 as of,a1 as af,a2 as cf,a3 as lf,a4 as uf,O as $o,a5 as hf,a6 as df,a7 as ff,a8 as pf,M as mf}from"./index-453237c9.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-5f9e041e.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,T as tl,A as Jf,b as ep,O as tp,c as sp}from"./index-aa07e3c0.js";import{T as np}from"./TextareaAutosize-4ce1e768.js";import{D as ip}from"./DeleteIcon-580f7113.js";import{M as rp,a as op}from"./index.esm-1996df7a.js";import{u as ap}from"./index-d2627d6e.js";import{M as cp,A as lp,E as up}from"./MergeIcon-c1c5911f.js";import{P as hp}from"./PlusIcon-4d3aaca0.js";import{P as dp}from"./Popover-619582c9.js";import{C as fp}from"./ClipLoader-c4c3d020.js";import"./useSlotProps-0f0c60ff.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?b.useEffect:b.useLayoutEffect;function _p(n){const e=typeof n=="function"?pp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(g=>g+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let 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=b.useRef(o);sl(()=>{const g=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(g);return e.getState()!==m.current&&g(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const gp=_p(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.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=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={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 Af,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,Ar=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),Ar.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),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,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}=ge(),[p,g]=b.useState(!1),[v,S]=b.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],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),_=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new Tp(l,_.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,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.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){E.x=Math.max(x.x,B.clientX),E.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=`${E.x-C.x}px`,k.style.height=`${E.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 Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);wp(Te,z)||(z=Te,S({object:o(Te)}))}}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]),b.createElement("group",$a({ref:_,onClick:T,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:y},a),b.createElement(kp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),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(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu diff --git a/build/assets/index-aa58e574.js b/build/assets/index-aa07e3c0.js similarity index 97% rename from build/assets/index-aa58e574.js rename to build/assets/index-aa07e3c0.js index 0425c78c0..2bf1f5b0c 100644 --- a/build/assets/index-aa58e574.js +++ b/build/assets/index-aa07e3c0.js @@ -1,4 +1,4 @@ -import{r as d,R as h,_ as Z,a as Fn,c as We,j as T,g as Or,k as Xo,s as Wt,u as Pr,b as Zo,d as Qo,e as Te,f as en,h as Jo,i as jl,l as Ll,m as ga,$ as Fl,P as ce,n as zl,W as Nl,o as pe,p as ei,q as J,F as ee,t as Vl,v as Bl,w as ti,x as ma,L as Wl,y as ba,z as ya,A as Ar,B as ni,T as Ae,S as Hl,C as ze,D as Ul,E as va,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-9846c56f.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=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};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function Yn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Pi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Ai;const ou={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 iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Ai),Ai=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ii=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(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 pu(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]),T.jsx("span",{className:p,style:g,children:T.jsx("span",{className:m})})}const xu=Or("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Di,Mi,ji,Li;const xo=550,Eu=80,$u=Xo(Di||(Di=Dr` +import{r as d,R as h,_ as Z,a as Fn,c as We,j as T,g as Or,k as Xo,s as Wt,u as Pr,b as Zo,d as Qo,e as Te,f as en,h as Jo,i as jl,l as Ll,m as ga,$ as Fl,P as ce,n as zl,W as Nl,o as pe,p as ei,q as J,F as ee,t as Vl,v as Bl,w as ti,x as ma,L as Wl,y as ba,z as ya,A as Ar,B as ni,T as Ae,S as Hl,C as ze,D as Ul,E as va,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-453237c9.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=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};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function Yn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Pi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Ai;const ou={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 iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Ai),Ai=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ii=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(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 pu(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]),T.jsx("span",{className:p,style:g,children:T.jsx("span",{className:m})})}const xu=Or("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Di,Mi,ji,Li;const xo=550,Eu=80,$u=Xo(Di||(Di=Dr` 0% { transform: scale(0); opacity: 0.1; @@ -338,7 +338,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 65px; right: 55px; z-index: 100; -`,Vy=()=>{const e=d.useContext(Hl);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(()=>ze(()=>import("./index-0981f4c0.js"),["assets/index-0981f4c0.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/ClipLoader-1aa08d13.js","assets/index-5b1d270d.js","assets/index.esm-5af45bb6.js","assets/InfoIcon-109ca23e.js","assets/index-2fa35172.js","assets/Tabs-7dfb5100.js","assets/useSlotProps-1ba44fef.js","assets/createSvgIcon-25f2bcd2.js"]).then(({SettingsModal:e})=>({default:e}))),Ky=d.lazy(()=>ze(()=>import("./index-82133494.js"),["assets/index-82133494.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/index-2fa35172.js","assets/index.esm-5af45bb6.js","assets/CheckIcon-dfb703bb.js","assets/ClipLoader-1aa08d13.js","assets/index-5b1d270d.js","assets/InfoIcon-109ca23e.js"]).then(({AddContentModal:e})=>({default:e}))),Gy=d.lazy(()=>ze(()=>import("./index-4dcb538c.js"),["assets/index-4dcb538c.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/index-2fa35172.js","assets/index.esm-5af45bb6.js","assets/CheckIcon-dfb703bb.js","assets/ClipLoader-1aa08d13.js","assets/index-187da08e.js","assets/Stack-805fc768.js","assets/useSlotProps-1ba44fef.js","assets/Popover-695cd614.js","assets/createSvgIcon-25f2bcd2.js","assets/TextareaAutosize-592bcdfa.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-5b1d270d.js","assets/InfoIcon-109ca23e.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Yy=d.lazy(()=>ze(()=>import("./index-7b79a484.js"),["assets/index-7b79a484.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/PlusIcon-6b486ee1.js","assets/NodeCircleIcon-b5c03892.js","assets/ClipLoader-1aa08d13.js","assets/index.esm-5af45bb6.js","assets/Popover-695cd614.js","assets/useSlotProps-1ba44fef.js","assets/SearchIcon-f9577115.js","assets/index-187da08e.js","assets/Stack-805fc768.js","assets/createSvgIcon-25f2bcd2.js","assets/TextareaAutosize-592bcdfa.js","assets/index-5b1d270d.js","assets/InfoIcon-109ca23e.js","assets/DeleteIcon-b54e2d75.js","assets/MergeIcon-a902b7ab.js","assets/index-e82f6bc9.js","assets/CheckIcon-dfb703bb.js","assets/Typography-22d8fe78.js","assets/Tabs-7dfb5100.js"]).then(({SourcesTableModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-15b14845.js"),["assets/index-15b14845.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/index-5b1d270d.js","assets/index.esm-5af45bb6.js","assets/InfoIcon-109ca23e.js","assets/Skeleton-0399e71a.js","assets/ClipLoader-1aa08d13.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-9dcee299.js"),["assets/index-9dcee299.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/Skeleton-0399e71a.js","assets/ClipLoader-1aa08d13.js"]).then(({RemoveNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-2ee922cf.js"),["assets/index-2ee922cf.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/NodeCircleIcon-b5c03892.js","assets/index-187da08e.js","assets/Stack-805fc768.js","assets/useSlotProps-1ba44fef.js","assets/Popover-695cd614.js","assets/createSvgIcon-25f2bcd2.js","assets/TextareaAutosize-592bcdfa.js","assets/ClipLoader-1aa08d13.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-952f2915.js"),["assets/index-952f2915.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/index-e82f6bc9.js","assets/NodeCircleIcon-b5c03892.js","assets/index-187da08e.js","assets/Stack-805fc768.js","assets/useSlotProps-1ba44fef.js","assets/Popover-695cd614.js","assets/createSvgIcon-25f2bcd2.js","assets/TextareaAutosize-592bcdfa.js","assets/ClipLoader-1aa08d13.js"]).then(({MergeNodeModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-6a9c7a82.js"),["assets/index-6a9c7a82.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/index-5b1d270d.js","assets/index.esm-5af45bb6.js","assets/InfoIcon-109ca23e.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-187da08e.js","assets/Stack-805fc768.js","assets/useSlotProps-1ba44fef.js","assets/Popover-695cd614.js","assets/createSvgIcon-25f2bcd2.js","assets/TextareaAutosize-592bcdfa.js","assets/ClipLoader-1aa08d13.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ev=d.lazy(()=>ze(()=>import("./index-eba53aa4.js"),["assets/index-eba53aa4.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/index-187da08e.js","assets/Stack-805fc768.js","assets/useSlotProps-1ba44fef.js","assets/Popover-695cd614.js","assets/createSvgIcon-25f2bcd2.js","assets/TextareaAutosize-592bcdfa.js","assets/index-5b1d270d.js","assets/index.esm-5af45bb6.js","assets/InfoIcon-109ca23e.js","assets/ClipLoader-1aa08d13.js","assets/DeleteIcon-b54e2d75.js","assets/PlusIcon-6b486ee1.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/FormControlLabel-3d0c31ee.js","assets/Typography-22d8fe78.js","assets/index-3ac4a96b.js"]).then(({BlueprintModal:e})=>({default:e}))),tv=d.lazy(()=>ze(()=>import("./index-94120e48.js"),["assets/index-94120e48.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-387222b3.js","assets/index-2fa35172.js","assets/index.esm-5af45bb6.js","assets/index-5b1d270d.js","assets/InfoIcon-109ca23e.js"]).then(({UserFeedBackModal:e})=>({default:e}))),nv=()=>T.jsxs(T.Fragment,{children:[T.jsx(Gy,{}),T.jsx(Ky,{}),T.jsx(Uy,{}),T.jsx(qy,{}),T.jsx(Xy,{}),T.jsx(Yy,{}),T.jsx(Zy,{}),T.jsx(Jy,{}),T.jsx(ev,{}),T.jsx(Qy,{}),T.jsx(tv,{})]}),rv=()=>{const e=Ar(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=va(),{abortFetchData:r}=ni(s=>s),o=Kl();if(!e)return null;const i=()=>{n(null),r(),t(),o("/")};return T.jsxs(ov,{children:[T.jsxs(iv,{onClick:i,children:[T.jsx(T.Fragment,{children:e.title&&T.jsx(Ae,{className:"title",color:"white",children:e.title})}),T.jsx(Ae,{className:"subtitle",children:"Second Brain"})]}),T.jsx(Gl,{})]})},ov=pe(ee).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,Vy=()=>{const e=d.useContext(Hl);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(()=>ze(()=>import("./index-65b91810.js"),["assets/index-65b91810.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/ClipLoader-c4c3d020.js","assets/index-66983695.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js","assets/index-185eb85f.js","assets/Tabs-832e46f5.js","assets/useSlotProps-0f0c60ff.js","assets/createSvgIcon-b3dd03d1.js"]).then(({SettingsModal:e})=>({default:e}))),Ky=d.lazy(()=>ze(()=>import("./index-fdc6b6de.js"),["assets/index-fdc6b6de.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-185eb85f.js","assets/index.esm-1996df7a.js","assets/CheckIcon-3a73121d.js","assets/ClipLoader-c4c3d020.js","assets/index-66983695.js","assets/InfoIcon-dd2e04fe.js"]).then(({AddContentModal:e})=>({default:e}))),Gy=d.lazy(()=>ze(()=>import("./index-82036184.js"),["assets/index-82036184.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-185eb85f.js","assets/index.esm-1996df7a.js","assets/CheckIcon-3a73121d.js","assets/ClipLoader-c4c3d020.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-66983695.js","assets/InfoIcon-dd2e04fe.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Yy=d.lazy(()=>ze(()=>import("./index-6d901b61.js"),["assets/index-6d901b61.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/PlusIcon-4d3aaca0.js","assets/NodeCircleIcon-bfb09d34.js","assets/ClipLoader-c4c3d020.js","assets/index.esm-1996df7a.js","assets/Popover-619582c9.js","assets/useSlotProps-0f0c60ff.js","assets/SearchIcon-2879dc36.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/index-66983695.js","assets/InfoIcon-dd2e04fe.js","assets/DeleteIcon-580f7113.js","assets/MergeIcon-c1c5911f.js","assets/index-faf9ee00.js","assets/CheckIcon-3a73121d.js","assets/Typography-d70fa287.js","assets/Tabs-832e46f5.js"]).then(({SourcesTableModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-7b8a22d4.js"),["assets/index-7b8a22d4.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-66983695.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js","assets/Skeleton-926f190e.js","assets/ClipLoader-c4c3d020.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-238373e6.js"),["assets/index-238373e6.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/Skeleton-926f190e.js","assets/ClipLoader-c4c3d020.js"]).then(({RemoveNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-f332f0c0.js"),["assets/index-f332f0c0.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/NodeCircleIcon-bfb09d34.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/ClipLoader-c4c3d020.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-22bb9878.js"),["assets/index-22bb9878.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-faf9ee00.js","assets/NodeCircleIcon-bfb09d34.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/ClipLoader-c4c3d020.js"]).then(({MergeNodeModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-e85ff846.js"),["assets/index-e85ff846.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-66983695.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/ClipLoader-c4c3d020.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ev=d.lazy(()=>ze(()=>import("./index-b9d6353c.js"),["assets/index-b9d6353c.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/index-66983695.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js","assets/ClipLoader-c4c3d020.js","assets/DeleteIcon-580f7113.js","assets/PlusIcon-4d3aaca0.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/FormControlLabel-b4f67dac.js","assets/Typography-d70fa287.js","assets/index-5f9e041e.js"]).then(({BlueprintModal:e})=>({default:e}))),tv=d.lazy(()=>ze(()=>import("./index-dc9b4183.js"),["assets/index-dc9b4183.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-185eb85f.js","assets/index.esm-1996df7a.js","assets/index-66983695.js","assets/InfoIcon-dd2e04fe.js"]).then(({UserFeedBackModal:e})=>({default:e}))),nv=()=>T.jsxs(T.Fragment,{children:[T.jsx(Gy,{}),T.jsx(Ky,{}),T.jsx(Uy,{}),T.jsx(qy,{}),T.jsx(Xy,{}),T.jsx(Yy,{}),T.jsx(Zy,{}),T.jsx(Jy,{}),T.jsx(ev,{}),T.jsx(Qy,{}),T.jsx(tv,{})]}),rv=()=>{const e=Ar(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=va(),{abortFetchData:r}=ni(s=>s),o=Kl();if(!e)return null;const i=()=>{n(null),r(),t(),o("/")};return T.jsxs(ov,{children:[T.jsxs(iv,{onClick:i,children:[T.jsx(T.Fragment,{children:e.title&&T.jsx(Ae,{className:"title",color:"white",children:e.title})}),T.jsx(Ae,{className:"subtitle",children:"Second Brain"})]}),T.jsx(Gl,{})]})},ov=pe(ee).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; position: absolute; top: 0px; @@ -435,4 +435,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${J.white}; font-size: 12px; opacity: 0.5; -`,_v=d.lazy(()=>ze(()=>import("./index-8471b4a2.js"),["assets/index-8471b4a2.js","assets/index-9846c56f.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),Sv=d.lazy(()=>ze(()=>import("./index-c08f2230.js"),["assets/index-c08f2230.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/index-3ac4a96b.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-592bcdfa.js","assets/useSlotProps-1ba44fef.js","assets/DeleteIcon-b54e2d75.js","assets/index.esm-5af45bb6.js","assets/index-c01e0510.js","assets/MergeIcon-a902b7ab.js","assets/PlusIcon-6b486ee1.js","assets/Popover-695cd614.js","assets/ClipLoader-1aa08d13.js"]).then(({Universe:e})=>({default:e}))),Tv=d.lazy(()=>ze(()=>import("./index-271a89e7.js").then(e=>e.i),["assets/index-271a89e7.js","assets/index-9846c56f.js","assets/index-a2878e02.css","assets/SearchIcon-f9577115.js","assets/ClipLoader-1aa08d13.js","assets/Skeleton-0399e71a.js","assets/PlusIcon-6b486ee1.js","assets/Popover-695cd614.js","assets/useSlotProps-1ba44fef.js","assets/CheckIcon-dfb703bb.js","assets/Stack-805fc768.js","assets/FormControlLabel-3d0c31ee.js","assets/Typography-22d8fe78.js","assets/createSvgIcon-25f2bcd2.js","assets/index-387222b3.js","assets/index-c01e0510.js","assets/index.esm-5af45bb6.js","assets/InfoIcon-109ca23e.js"]).then(({SideBar:e})=>({default:e}))),kv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(F=>[F.setBudget,F.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c,universeQuestionIsOpen:l,setUniverseQuestionIsOpen:u}=Ar(F=>F),f=Wy(F=>F.setTeachMeAnswer),{fetchData:p,setCategoryFilter:g,setAbortRequests:m,addNewNode:b,splashDataLoading:w}=ni(F=>F),{setAiSummaryAnswer:v,getKeyExist:y,aiRefId:$}=va(F=>F),S=ya(),[_,E]=Xl(F=>[F.realtimeGraphFeatureFlag,F.chatInterfaceFeatureFlag]),C=Vy(),R=Jb({mode:"onChange"}),{setValue:L}=R;d.useEffect(()=>{L("search",t??""),c(!1),S(null),a(!1),s(t??""),f(""),g(null)},[t,g,s,a,S,f,c,L]),d.useEffect(()=>{(async()=>{await p(n,m),o(!0),i?await Ql(n):S(null)})()},[i,p,n,m,o,S]);const M=d.useCallback(()=>{r("INCREMENT")},[r]),z=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{answer:F.answer,answerLoading:!1})},[v]),A=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{audio_en:F.audio_EN})},[v]),N=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{questions:F.relevant_questions.map(G=>G.question),questionsLoading:!1})},[v]),j=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{sources:F.sources.map(G=>G.ref_id),sourcesLoading:!1})},[v]),V=d.useCallback(F=>{b(F)},[b]),B=d.useCallback(F=>{F.question&&y($)&&v($,{answerLoading:!1,entities:F.entities})},[v,y,$]);return d.useEffect(()=>(C&&(C.connect(),C.on("connect_error",F=>{console.error("Socket connection error:",F)}),C.on("newnode",M),E&&C.on("extractedentitieshook",B),E&&C.on("askquestionhook",z),E&&C.on("relevantquestionshook",N),E&&C.on("answersourceshook",j),_&&C.on("new_node_created",V),E&&C.on("answeraudiohook",A)),()=>{C&&C.off()}),[C,M,V,_,z,E,N,j,B,A]),d.useEffect(()=>{w||u()},[u,w]),T.jsxs(T.Fragment,{children:[T.jsx(ey,{}),T.jsx(cv,{}),T.jsx(dl,{hidden:!Zl}),T.jsx(d.Suspense,{fallback:T.jsx("div",{children:"Loading..."}),children:w?null:T.jsxs($v,{direction:"row",children:[T.jsxs(Fb,{...R,children:[T.jsx(_v,{}),!l&&T.jsx(Tv,{}),T.jsx(Sv,{}),T.jsx(Fy,{}),T.jsx(rv,{}),T.jsxs(Cv,{children:["v",Hy]}),T.jsx(Rl,{})]}),T.jsx(nv,{}),T.jsx(Ev,{})]})})]})},Vv=Object.freeze(Object.defineProperty({__proto__:null,App:kv},Symbol.toStringTag,{value:"Module"}));export{kl as A,Aa as B,cy as C,zv as D,Vv as E,Fb as F,ly as G,wa as I,Fy as O,gy as P,Py as T,mn as _,Lv as a,Oy as b,Fv as c,uu as d,Pi as e,ru as f,Yn as g,Br as h,Jb as i,Jl as j,hy as k,ay as l,my as m,yy as n,uy as o,xa as p,Nv as q,bp as r,Ov as s,tu as t,sy as u,eu as v,du as w,Ii as x,de as y,W as z}; +`,_v=d.lazy(()=>ze(()=>import("./index-78bcec08.js"),["assets/index-78bcec08.js","assets/index-453237c9.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),Sv=d.lazy(()=>ze(()=>import("./index-82b2aee7.js"),["assets/index-82b2aee7.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-5f9e041e.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-4ce1e768.js","assets/useSlotProps-0f0c60ff.js","assets/DeleteIcon-580f7113.js","assets/index.esm-1996df7a.js","assets/index-d2627d6e.js","assets/MergeIcon-c1c5911f.js","assets/PlusIcon-4d3aaca0.js","assets/Popover-619582c9.js","assets/ClipLoader-c4c3d020.js"]).then(({Universe:e})=>({default:e}))),Tv=d.lazy(()=>ze(()=>import("./index-26bde52f.js").then(e=>e.i),["assets/index-26bde52f.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/SearchIcon-2879dc36.js","assets/ClipLoader-c4c3d020.js","assets/Skeleton-926f190e.js","assets/PlusIcon-4d3aaca0.js","assets/Popover-619582c9.js","assets/useSlotProps-0f0c60ff.js","assets/CheckIcon-3a73121d.js","assets/Stack-b37dd094.js","assets/FormControlLabel-b4f67dac.js","assets/Typography-d70fa287.js","assets/createSvgIcon-b3dd03d1.js","assets/index-12293453.js","assets/index-d2627d6e.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js"]).then(({SideBar:e})=>({default:e}))),kv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(F=>[F.setBudget,F.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c,universeQuestionIsOpen:l,setUniverseQuestionIsOpen:u}=Ar(F=>F),f=Wy(F=>F.setTeachMeAnswer),{fetchData:p,setCategoryFilter:g,setAbortRequests:m,addNewNode:b,splashDataLoading:w}=ni(F=>F),{setAiSummaryAnswer:v,getKeyExist:y,aiRefId:$}=va(F=>F),S=ya(),[_,E]=Xl(F=>[F.realtimeGraphFeatureFlag,F.chatInterfaceFeatureFlag]),C=Vy(),R=Jb({mode:"onChange"}),{setValue:L}=R;d.useEffect(()=>{L("search",t??""),c(!1),S(null),a(!1),s(t??""),f(""),g(null)},[t,g,s,a,S,f,c,L]),d.useEffect(()=>{(async()=>{await p(n,m),o(!0),i?await Ql(n):S(null)})()},[i,p,n,m,o,S]);const M=d.useCallback(()=>{r("INCREMENT")},[r]),z=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{answer:F.answer,answerLoading:!1})},[v]),A=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{audio_en:F.audio_EN})},[v]),N=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{questions:F.relevant_questions.map(G=>G.question),questionsLoading:!1})},[v]),j=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{sources:F.sources.map(G=>G.ref_id),sourcesLoading:!1})},[v]),V=d.useCallback(F=>{b(F)},[b]),B=d.useCallback(F=>{F.question&&y($)&&v($,{answerLoading:!1,entities:F.entities})},[v,y,$]);return d.useEffect(()=>(C&&(C.connect(),C.on("connect_error",F=>{console.error("Socket connection error:",F)}),C.on("newnode",M),E&&C.on("extractedentitieshook",B),E&&C.on("askquestionhook",z),E&&C.on("relevantquestionshook",N),E&&C.on("answersourceshook",j),_&&C.on("new_node_created",V),E&&C.on("answeraudiohook",A)),()=>{C&&C.off()}),[C,M,V,_,z,E,N,j,B,A]),d.useEffect(()=>{w||u()},[u,w]),T.jsxs(T.Fragment,{children:[T.jsx(ey,{}),T.jsx(cv,{}),T.jsx(dl,{hidden:!Zl}),T.jsx(d.Suspense,{fallback:T.jsx("div",{children:"Loading..."}),children:w?null:T.jsxs($v,{direction:"row",children:[T.jsxs(Fb,{...R,children:[T.jsx(_v,{}),!l&&T.jsx(Tv,{}),T.jsx(Sv,{}),T.jsx(Fy,{}),T.jsx(rv,{}),T.jsxs(Cv,{children:["v",Hy]}),T.jsx(Rl,{})]}),T.jsx(nv,{}),T.jsx(Ev,{})]})})]})},Vv=Object.freeze(Object.defineProperty({__proto__:null,App:kv},Symbol.toStringTag,{value:"Module"}));export{kl as A,Aa as B,cy as C,zv as D,Vv as E,Fb as F,ly as G,wa as I,Fy as O,gy as P,Py as T,mn as _,Lv as a,Oy as b,Fv as c,uu as d,Pi as e,ru as f,Yn as g,Br as h,Jb as i,Jl as j,hy as k,ay as l,my as m,yy as n,uy as o,xa as p,Nv as q,bp as r,Ov as s,tu as t,sy as u,eu as v,du as w,Ii as x,de as y,W as z}; diff --git a/build/assets/index-eba53aa4.js b/build/assets/index-b9d6353c.js similarity index 98% rename from build/assets/index-eba53aa4.js rename to build/assets/index-b9d6353c.js index 3f11f0848..20e7d7930 100644 --- a/build/assets/index-eba53aa4.js +++ b/build/assets/index-b9d6353c.js @@ -1,4 +1,4 @@ -import{r as x,b as Ht,g as Ut,s as Oe,_ as U,u as Zt,ac as go,a as Xt,j as o,c as Kt,bo as Ue,bp as pt,d as qt,e as me,f as vt,ad as bo,ae as yo,b9 as ft,o as z,T as ee,F as w,aW as We,q as $,bq as wo,br as et,bs as jo,b8 as Qt,O as Jt,a9 as Ye,aV as he,a0 as Ct,Z as Et,Y as Pt,X as Tt,V as vo,M as Co,ao as Mt}from"./index-9846c56f.js";import{B as Eo}from"./index-387222b3.js";import{i as ht,B as Se,F as eo,k as mt,q as Po,h as To,I as Mo,r as Ao,b as to}from"./index-aa58e574.js";import{A as Me,O as Oo,a as At,N as oo}from"./index-187da08e.js";import{T as He}from"./index-5b1d270d.js";import{C as le}from"./ClipLoader-1aa08d13.js";import{D as no}from"./DeleteIcon-b54e2d75.js";import{P as so}from"./PlusIcon-6b486ee1.js";import{p as dt,c as So,g as _o}from"./index-44e303ef.js";import{e as ko}from"./Stack-805fc768.js";import{S as $o,F as Io}from"./FormControlLabel-3d0c31ee.js";import{g as No,m as zo,u as J,b as Ze,t as ut,T as ro,i as io,H as Ro,j as Ot,C as Lo,P as Bo,k as Vo}from"./index-3ac4a96b.js";import{Z as Do,_ as Fo,E as Go,V as N,$ as pe,a0 as fe,a1 as St,P as De,a2 as Fe,a3 as _t,a as K,a4 as Wo,G as Yo,C as Ho}from"./three.module-2ce81f73.js";import"./Popover-695cd614.js";import"./useSlotProps-1ba44fef.js";import"./createSvgIcon-25f2bcd2.js";import"./TextareaAutosize-592bcdfa.js";import"./index.esm-5af45bb6.js";import"./InfoIcon-109ca23e.js";import"./Typography-22d8fe78.js";const Uo=x.createContext(),kt=Uo;function Zo(t){return Ht("MuiGrid",t)}const Xo=[0,1,2,3,4,5,6,7,8,9,10],Ko=["column-reverse","column","row-reverse","row"],qo=["nowrap","wrap-reverse","wrap"],Te=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Qo=Ut("MuiGrid",["root","container","item","zeroMinWidth",...Xo.map(t=>`spacing-xs-${t}`),...Ko.map(t=>`direction-xs-${t}`),...qo.map(t=>`wrap-xs-${t}`),...Te.map(t=>`grid-xs-${t}`),...Te.map(t=>`grid-sm-${t}`),...Te.map(t=>`grid-md-${t}`),...Te.map(t=>`grid-lg-${t}`),...Te.map(t=>`grid-xl-${t}`)]),Ae=Qo,Jo=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xe(t){const n=parseFloat(t);return`${n}${String(t).replace(String(n),"")||"px"}`}function en({theme:t,ownerState:n}){let s;return t.breakpoints.keys.reduce((e,i)=>{let l={};if(n[i]&&(s=n[i]),!s)return e;if(s===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Ue({values:n.columns,breakpoints:t.breakpoints.values}),a=typeof d=="object"?d[i]:d;if(a==null)return e;const c=`${Math.round(s/a*1e8)/1e6}%`;let j={};if(n.container&&n.item&&n.columnSpacing!==0){const u=t.spacing(n.columnSpacing);if(u!=="0px"){const h=`calc(${c} + ${xe(u)})`;j={flexBasis:h,maxWidth:h}}}l=U({flexBasis:c,flexGrow:0,maxWidth:c},j)}return t.breakpoints.values[i]===0?Object.assign(e,l):e[t.breakpoints.up(i)]=l,e},{})}function tn({theme:t,ownerState:n}){const s=Ue({values:n.direction,breakpoints:t.breakpoints.values});return pt({theme:t},s,e=>{const i={flexDirection:e};return e.indexOf("column")===0&&(i[`& > .${Ae.item}`]={maxWidth:"none"}),i})}function ao({breakpoints:t,values:n}){let s="";Object.keys(n).forEach(i=>{s===""&&n[i]!==0&&(s=i)});const e=Object.keys(t).sort((i,l)=>t[i]-t[l]);return e.slice(0,e.indexOf(s))}function on({theme:t,ownerState:n}){const{container:s,rowSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{marginTop:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingTop:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{marginTop:0,[`& > .${Ae.item}`]:{paddingTop:0}}})}return i}function nn({theme:t,ownerState:n}){const{container:s,columnSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{width:`calc(100% + ${xe(u)})`,marginLeft:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingLeft:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Ae.item}`]:{paddingLeft:0}}})}return i}function sn(t,n,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return n.forEach(i=>{const l=t[i];Number(l)>0&&e.push(s[`spacing-${i}-${String(l)}`])}),e}const rn=Oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t,{container:e,direction:i,item:l,spacing:d,wrap:a,zeroMinWidth:c,breakpoints:j}=s;let u=[];e&&(u=sn(d,j,n));const h=[];return j.forEach(m=>{const g=s[m];g&&h.push(n[`grid-${m}-${String(g)}`])}),[n.root,e&&n.container,l&&n.item,c&&n.zeroMinWidth,...u,i!=="row"&&n[`direction-xs-${String(i)}`],a!=="wrap"&&n[`wrap-xs-${String(a)}`],...h]}})(({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}),tn,on,nn,en);function an(t,n){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return n.forEach(e=>{const i=t[e];if(Number(i)>0){const l=`spacing-${e}-${String(i)}`;s.push(l)}}),s}const cn=t=>{const{classes:n,container:s,direction:e,item:i,spacing:l,wrap:d,zeroMinWidth:a,breakpoints:c}=t;let j=[];s&&(j=an(l,c));const u=[];c.forEach(m=>{const g=t[m];g&&u.push(`grid-${m}-${String(g)}`)});const h={root:["root",s&&"container",i&&"item",a&&"zeroMinWidth",...j,e!=="row"&&`direction-xs-${String(e)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...u]};return qt(h,Zo,n)},ln=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiGrid"}),{breakpoints:i}=go(),l=ko(e),{className:d,columns:a,columnSpacing:c,component:j="div",container:u=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:b=0,wrap:y="wrap",zeroMinWidth:P=!1}=l,C=Xt(l,Jo),v=g||b,O=c||b,A=x.useContext(kt),E=u?a||12:A,I={},V=U({},C);i.keys.forEach(f=>{C[f]!=null&&(I[f]=C[f],delete V[f])});const R=U({},l,{columns:E,container:u,direction:h,item:m,rowSpacing:v,columnSpacing:O,wrap:y,zeroMinWidth:P,spacing:b},I,{breakpoints:i.keys}),F=cn(R);return o.jsx(kt.Provider,{value:E,children:o.jsx(rn,U({ownerState:R,className:Kt(F.root,d),as:j,ref:s},V))})}),ie=ln;function dn(t){return Ht("MuiSwitch",t)}const un=Ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=un,pn=["className","color","edge","size","sx"],fn=t=>{const{classes:n,edge:s,size:e,color:i,checked:l,disabled:d}=t,a={root:["root",s&&`edge${me(s)}`,`size${me(e)}`],switchBase:["switchBase",`color${me(i)}`,l&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=qt(a,dn,n);return U({},n,c)},hn=Oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.edge&&n[`edge${me(s.edge)}`],n[`size${me(s.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,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),mn=Oe($o,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.switchBase,{[`& .${H.input}`]:n.input},s.color!=="default"&&n[`color${me(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:n})=>U({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${t.palette.mode==="light"?bo(t.palette[n.color].main,.62):yo(t.palette[n.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})),xn=Oe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,n)=>n.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}`})),gn=Oe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,n)=>n.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),bn=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiSwitch"}),{className:i,color:l="primary",edge:d=!1,size:a="medium",sx:c}=e,j=Xt(e,pn),u=U({},e,{color:l,edge:d,size:a}),h=fn(u),m=o.jsx(gn,{className:h.thumb,ownerState:u});return o.jsxs(hn,{className:Kt(h.root,i),sx:c,ownerState:u,children:[o.jsx(mn,U({type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:u},j,{classes:U({},h,{root:h.switchBase})})),o.jsx(xn,{className:h.track,ownerState:u})]})}),co=bn,yn={type:"",parent:""},$t=({onSelect:t,dataTestId:n,edgeLink:s,hideSelectAll:e})=>{const i=ht({mode:"onChange",defaultValues:yn}),{watch:l,setValue:d}=i,[a,c]=x.useState([]),[j,u]=x.useState(!1),h=y=>{d("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},m=y=>y.charAt(0).toUpperCase()+y.slice(1);x.useEffect(()=>{(async()=>{u(!0);try{const C=(await ft()).schemas.filter(O=>!O.is_deleted&&O.type).map(O=>(O==null?void 0:O.type)==="thing"?{label:"No Parent",value:O.type}:{label:m(O.type),value:O.type});c(e?C:[{label:"Select all",value:"all"},...C]),s&&d("parent",s)}catch(P){console.warn(P)}finally{u(!1)}})()},[s,d,e]);const g=l("parent"),b=()=>{const y=a==null?void 0:a.find(P=>P.value===g);if(y)return y;if(s)return{label:s,value:s}};return o.jsx(Me,{dataTestId:n,disabled:!!s,isLoading:j,onSelect:h,options:a||Oo,selectedValue:b()})},wn=({selectedType:t,setSelectedFromNode:n,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:i,selectedToNode:l})=>{const d=l==="all",a=i==="all";return o.jsxs(w,{children:[o.jsx(w,{align:"center",direction:"row",justify:"space-between",mb:35,children:o.jsx(w,{align:"center",direction:"row",children:o.jsx(jn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Source"})}),o.jsx($t,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:d,onSelect:n})]}),o.jsxs(w,{mb:10,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Edge Name"})}),o.jsx(w,{mb:12,children:o.jsx(He,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...We},value:t})})]}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Destination"})}),o.jsx($t,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:a,onSelect:s})]})]})},jn=z(ee)` +import{r as x,b as Ht,g as Ut,s as Oe,_ as U,u as Zt,ac as go,a as Xt,j as o,c as Kt,bo as Ue,bp as pt,d as qt,e as me,f as vt,ad as bo,ae as yo,b9 as ft,o as z,T as ee,F as w,aW as We,q as $,bq as wo,br as et,bs as jo,b8 as Qt,O as Jt,a9 as Ye,aV as he,a0 as Ct,Z as Et,Y as Pt,X as Tt,V as vo,M as Co,ao as Mt}from"./index-453237c9.js";import{B as Eo}from"./index-12293453.js";import{i as ht,B as Se,F as eo,k as mt,q as Po,h as To,I as Mo,r as Ao,b as to}from"./index-aa07e3c0.js";import{A as Me,O as Oo,a as At,N as oo}from"./index-6f7942fe.js";import{T as He}from"./index-66983695.js";import{C as le}from"./ClipLoader-c4c3d020.js";import{D as no}from"./DeleteIcon-580f7113.js";import{P as so}from"./PlusIcon-4d3aaca0.js";import{p as dt,c as So,g as _o}from"./index-44e303ef.js";import{e as ko}from"./Stack-b37dd094.js";import{S as $o,F as Io}from"./FormControlLabel-b4f67dac.js";import{g as No,m as zo,u as J,b as Ze,t as ut,T as ro,i as io,H as Ro,j as Ot,C as Lo,P as Bo,k as Vo}from"./index-5f9e041e.js";import{Z as Do,_ as Fo,E as Go,V as N,$ as pe,a0 as fe,a1 as St,P as De,a2 as Fe,a3 as _t,a as K,a4 as Wo,G as Yo,C as Ho}from"./three.module-2ce81f73.js";import"./Popover-619582c9.js";import"./useSlotProps-0f0c60ff.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";import"./index.esm-1996df7a.js";import"./InfoIcon-dd2e04fe.js";import"./Typography-d70fa287.js";const Uo=x.createContext(),kt=Uo;function Zo(t){return Ht("MuiGrid",t)}const Xo=[0,1,2,3,4,5,6,7,8,9,10],Ko=["column-reverse","column","row-reverse","row"],qo=["nowrap","wrap-reverse","wrap"],Te=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Qo=Ut("MuiGrid",["root","container","item","zeroMinWidth",...Xo.map(t=>`spacing-xs-${t}`),...Ko.map(t=>`direction-xs-${t}`),...qo.map(t=>`wrap-xs-${t}`),...Te.map(t=>`grid-xs-${t}`),...Te.map(t=>`grid-sm-${t}`),...Te.map(t=>`grid-md-${t}`),...Te.map(t=>`grid-lg-${t}`),...Te.map(t=>`grid-xl-${t}`)]),Ae=Qo,Jo=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xe(t){const n=parseFloat(t);return`${n}${String(t).replace(String(n),"")||"px"}`}function en({theme:t,ownerState:n}){let s;return t.breakpoints.keys.reduce((e,i)=>{let l={};if(n[i]&&(s=n[i]),!s)return e;if(s===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Ue({values:n.columns,breakpoints:t.breakpoints.values}),a=typeof d=="object"?d[i]:d;if(a==null)return e;const c=`${Math.round(s/a*1e8)/1e6}%`;let j={};if(n.container&&n.item&&n.columnSpacing!==0){const u=t.spacing(n.columnSpacing);if(u!=="0px"){const h=`calc(${c} + ${xe(u)})`;j={flexBasis:h,maxWidth:h}}}l=U({flexBasis:c,flexGrow:0,maxWidth:c},j)}return t.breakpoints.values[i]===0?Object.assign(e,l):e[t.breakpoints.up(i)]=l,e},{})}function tn({theme:t,ownerState:n}){const s=Ue({values:n.direction,breakpoints:t.breakpoints.values});return pt({theme:t},s,e=>{const i={flexDirection:e};return e.indexOf("column")===0&&(i[`& > .${Ae.item}`]={maxWidth:"none"}),i})}function ao({breakpoints:t,values:n}){let s="";Object.keys(n).forEach(i=>{s===""&&n[i]!==0&&(s=i)});const e=Object.keys(t).sort((i,l)=>t[i]-t[l]);return e.slice(0,e.indexOf(s))}function on({theme:t,ownerState:n}){const{container:s,rowSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{marginTop:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingTop:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{marginTop:0,[`& > .${Ae.item}`]:{paddingTop:0}}})}return i}function nn({theme:t,ownerState:n}){const{container:s,columnSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{width:`calc(100% + ${xe(u)})`,marginLeft:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingLeft:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Ae.item}`]:{paddingLeft:0}}})}return i}function sn(t,n,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return n.forEach(i=>{const l=t[i];Number(l)>0&&e.push(s[`spacing-${i}-${String(l)}`])}),e}const rn=Oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t,{container:e,direction:i,item:l,spacing:d,wrap:a,zeroMinWidth:c,breakpoints:j}=s;let u=[];e&&(u=sn(d,j,n));const h=[];return j.forEach(m=>{const g=s[m];g&&h.push(n[`grid-${m}-${String(g)}`])}),[n.root,e&&n.container,l&&n.item,c&&n.zeroMinWidth,...u,i!=="row"&&n[`direction-xs-${String(i)}`],a!=="wrap"&&n[`wrap-xs-${String(a)}`],...h]}})(({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}),tn,on,nn,en);function an(t,n){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return n.forEach(e=>{const i=t[e];if(Number(i)>0){const l=`spacing-${e}-${String(i)}`;s.push(l)}}),s}const cn=t=>{const{classes:n,container:s,direction:e,item:i,spacing:l,wrap:d,zeroMinWidth:a,breakpoints:c}=t;let j=[];s&&(j=an(l,c));const u=[];c.forEach(m=>{const g=t[m];g&&u.push(`grid-${m}-${String(g)}`)});const h={root:["root",s&&"container",i&&"item",a&&"zeroMinWidth",...j,e!=="row"&&`direction-xs-${String(e)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...u]};return qt(h,Zo,n)},ln=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiGrid"}),{breakpoints:i}=go(),l=ko(e),{className:d,columns:a,columnSpacing:c,component:j="div",container:u=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:b=0,wrap:y="wrap",zeroMinWidth:P=!1}=l,C=Xt(l,Jo),v=g||b,O=c||b,A=x.useContext(kt),E=u?a||12:A,I={},V=U({},C);i.keys.forEach(f=>{C[f]!=null&&(I[f]=C[f],delete V[f])});const R=U({},l,{columns:E,container:u,direction:h,item:m,rowSpacing:v,columnSpacing:O,wrap:y,zeroMinWidth:P,spacing:b},I,{breakpoints:i.keys}),F=cn(R);return o.jsx(kt.Provider,{value:E,children:o.jsx(rn,U({ownerState:R,className:Kt(F.root,d),as:j,ref:s},V))})}),ie=ln;function dn(t){return Ht("MuiSwitch",t)}const un=Ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=un,pn=["className","color","edge","size","sx"],fn=t=>{const{classes:n,edge:s,size:e,color:i,checked:l,disabled:d}=t,a={root:["root",s&&`edge${me(s)}`,`size${me(e)}`],switchBase:["switchBase",`color${me(i)}`,l&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=qt(a,dn,n);return U({},n,c)},hn=Oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.edge&&n[`edge${me(s.edge)}`],n[`size${me(s.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,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),mn=Oe($o,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.switchBase,{[`& .${H.input}`]:n.input},s.color!=="default"&&n[`color${me(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:n})=>U({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${t.palette.mode==="light"?bo(t.palette[n.color].main,.62):yo(t.palette[n.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})),xn=Oe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,n)=>n.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}`})),gn=Oe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,n)=>n.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),bn=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiSwitch"}),{className:i,color:l="primary",edge:d=!1,size:a="medium",sx:c}=e,j=Xt(e,pn),u=U({},e,{color:l,edge:d,size:a}),h=fn(u),m=o.jsx(gn,{className:h.thumb,ownerState:u});return o.jsxs(hn,{className:Kt(h.root,i),sx:c,ownerState:u,children:[o.jsx(mn,U({type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:u},j,{classes:U({},h,{root:h.switchBase})})),o.jsx(xn,{className:h.track,ownerState:u})]})}),co=bn,yn={type:"",parent:""},$t=({onSelect:t,dataTestId:n,edgeLink:s,hideSelectAll:e})=>{const i=ht({mode:"onChange",defaultValues:yn}),{watch:l,setValue:d}=i,[a,c]=x.useState([]),[j,u]=x.useState(!1),h=y=>{d("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},m=y=>y.charAt(0).toUpperCase()+y.slice(1);x.useEffect(()=>{(async()=>{u(!0);try{const C=(await ft()).schemas.filter(O=>!O.is_deleted&&O.type).map(O=>(O==null?void 0:O.type)==="thing"?{label:"No Parent",value:O.type}:{label:m(O.type),value:O.type});c(e?C:[{label:"Select all",value:"all"},...C]),s&&d("parent",s)}catch(P){console.warn(P)}finally{u(!1)}})()},[s,d,e]);const g=l("parent"),b=()=>{const y=a==null?void 0:a.find(P=>P.value===g);if(y)return y;if(s)return{label:s,value:s}};return o.jsx(Me,{dataTestId:n,disabled:!!s,isLoading:j,onSelect:h,options:a||Oo,selectedValue:b()})},wn=({selectedType:t,setSelectedFromNode:n,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:i,selectedToNode:l})=>{const d=l==="all",a=i==="all";return o.jsxs(w,{children:[o.jsx(w,{align:"center",direction:"row",justify:"space-between",mb:35,children:o.jsx(w,{align:"center",direction:"row",children:o.jsx(jn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Source"})}),o.jsx($t,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:d,onSelect:n})]}),o.jsxs(w,{mb:10,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Edge Name"})}),o.jsx(w,{mb:12,children:o.jsx(He,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...We},value:t})})]}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Destination"})}),o.jsx($t,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:a,onSelect:s})]})]})},jn=z(ee)` font-size: 22px; font-weight: 600; `,vn=({onCancel:t,edgeLinkData:n,setGraphLoading:s})=>{var I,V,R;const e=ht({mode:"onChange"}),{setValue:i,getValues:l}=e,[d,a]=x.useState(!1),[c,j]=x.useState(!1),[u,h]=x.useState(""),[m,g]=x.useState(""),[b,y]=x.useState(""),P=e.watch("type");x.useEffect(()=>{i("type",n==null?void 0:n.edgeType)},[n==null?void 0:n.edgeType,i]),x.useEffect(()=>{h(P)},[P]);const C=e.handleSubmit(async F=>{a(!0),s(!0);const f={source:m,target:b,edge_type:F.type},_={ref_id:n==null?void 0:n.refId,edge_type:F.type};try{if(n!=null&&n.refId)await wo(_);else if(b&&m)if(m==="all"||b==="all"){const k=(await ft()).schemas.filter(W=>!W.is_deleted&&W.type).map(W=>W.type);m==="all"?await Promise.all(k.map(W=>et({...f,source:W}))):b==="all"&&await Promise.all(k.map(W=>et({...f,target:W})))}else await et(f)}catch(D){console.warn("API Error:",D)}finally{a(!1),s(!1),g(""),y(""),t()}}),v=(V=(I=l())==null?void 0:I.type)==null?void 0:V.trim(),O=v&&((R=n==null?void 0:n.edgeType)==null?void 0:R.trim())!==v,A=n!=null&&n.refId?d||!O:d||!b||!m||!u,E=async()=>{j(!0),s(!0);try{n!=null&&n.refId&&await jo(n==null?void 0:n.refId)}catch(F){console.warn("API Error:",F)}finally{j(!1),s(!1),g(""),y(""),t()}};return o.jsx(eo,{...e,children:o.jsxs("form",{id:"add-type-form",onSubmit:C,children:[o.jsx(wn,{edgeLinkData:n,selectedFromNode:m,selectedToNode:b,selectedType:u,setSelectedFromNode:g,setSelectedToNode:y}),o.jsxs(w,{direction:"row",justify:"space-between",mt:20,children:[(n==null?void 0:n.refId)&&o.jsx(w,{direction:"column",children:o.jsxs(En,{color:"secondary",disabled:c,onClick:E,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",c&&o.jsxs(It,{children:[o.jsx(le,{color:$.lightGray,size:12})," "]})]})}),o.jsxs(Cn,{color:"secondary",disabled:A,onClick:C,size:"large",variant:"contained",children:["Confirm",d&&o.jsxs(It,{children:[o.jsx(le,{color:$.lightGray,size:12})," "]})]})]})]})})},Cn=z(Se)` @@ -256,6 +256,7 @@ import{r as x,b as Ht,g as Ut,s as Oe,_ as U,u as Zt,ac as go,a as Xt,j as o,c a height: 100%; overflow-y: auto; padding: 16px; + max-height: calc(90vh - 20px); `,bs=z(w)` flex: 1 1 100%; `,ys=()=>{const{close:t}=Jt("blueprintGraph"),n=()=>{t()};return o.jsx(Eo,{background:"black",id:"blueprintGraph",kind:"full",preventOutsideClose:!0,children:o.jsx(xs,{Close:n})})},Fs=x.memo(ys);export{Fs as BlueprintModal}; diff --git a/build/assets/index-c01e0510.js b/build/assets/index-d2627d6e.js similarity index 64% rename from build/assets/index-c01e0510.js rename to build/assets/index-d2627d6e.js index 1c87838c0..5e63da1b7 100644 --- a/build/assets/index-c01e0510.js +++ b/build/assets/index-d2627d6e.js @@ -1 +1 @@ -import{p as o}from"./index-9846c56f.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{p as o}from"./index-453237c9.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-94120e48.js b/build/assets/index-dc9b4183.js similarity index 91% rename from build/assets/index-94120e48.js rename to build/assets/index-dc9b4183.js index c779455ca..9902ca7b3 100644 --- a/build/assets/index-94120e48.js +++ b/build/assets/index-dc9b4183.js @@ -1,4 +1,4 @@ -import{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,a9 as j}from"./index-9846c56f.js";import{B as C,i as S,F as y}from"./index-aa58e574.js";import{B as k}from"./index-387222b3.js";import{S as v}from"./index-2fa35172.js";import{T as F}from"./index-5b1d270d.js";import"./index.esm-5af45bb6.js";import"./InfoIcon-109ca23e.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{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,a9 as j}from"./index-453237c9.js";import{B as C,i as S,F as y}from"./index-aa07e3c0.js";import{B as k}from"./index-12293453.js";import{S as v}from"./index-185eb85f.js";import{T as F}from"./index-66983695.js";import"./index.esm-1996df7a.js";import"./InfoIcon-dd2e04fe.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'; diff --git a/build/assets/index-6a9c7a82.js b/build/assets/index-e85ff846.js similarity index 92% rename from build/assets/index-6a9c7a82.js rename to build/assets/index-e85ff846.js index 78febb117..3cce2335e 100644 --- a/build/assets/index-6a9c7a82.js +++ b/build/assets/index-e85ff846.js @@ -1,4 +1,4 @@ -import{o as v,q,T as F,F as n,r as x,j as e,aW as K,b8 as $,K as J,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-9846c56f.js";import{h as V,B as E,i as N,F as ee}from"./index-aa58e574.js";import{B as te}from"./index-387222b3.js";import{T as re}from"./index-5b1d270d.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-187da08e.js";import{C as Y}from"./ClipLoader-1aa08d13.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-5af45bb6.js";import"./InfoIcon-109ca23e.js";import"./three.module-2ce81f73.js";import"./Stack-805fc768.js";import"./useSlotProps-1ba44fef.js";import"./Popover-695cd614.js";import"./createSvgIcon-25f2bcd2.js";import"./TextareaAutosize-592bcdfa.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,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(Y,{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?{...K,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{o as v,q,T as F,F as n,r as x,j as e,aW as K,b8 as $,K as J,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-453237c9.js";import{h as V,B as E,i as N,F as ee}from"./index-aa07e3c0.js";import{B as te}from"./index-12293453.js";import{T as re}from"./index-66983695.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-6f7942fe.js";import{C as Y}from"./ClipLoader-c4c3d020.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-1996df7a.js";import"./InfoIcon-dd2e04fe.js";import"./three.module-2ce81f73.js";import"./Stack-b37dd094.js";import"./useSlotProps-0f0c60ff.js";import"./Popover-619582c9.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,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(Y,{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?{...K,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'; diff --git a/build/assets/index-2ee922cf.js b/build/assets/index-f332f0c0.js similarity index 91% rename from build/assets/index-2ee922cf.js rename to build/assets/index-f332f0c0.js index 4b1935189..55ead7ff3 100644 --- a/build/assets/index-2ee922cf.js +++ b/build/assets/index-f332f0c0.js @@ -1,4 +1,4 @@ -import{r,j as e,bf as F,a7 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-9846c56f.js";import{B as z}from"./index-387222b3.js";import{k as D,i as M,F as Y,B as P}from"./index-aa58e574.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-b5c03892.js";import{A as L,O as V,T as W}from"./index-187da08e.js";import{C as _}from"./ClipLoader-1aa08d13.js";import"./Stack-805fc768.js";import"./useSlotProps-1ba44fef.js";import"./Popover-695cd614.js";import"./createSvgIcon-25f2bcd2.js";import"./TextareaAutosize-592bcdfa.js";const $=({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 E(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)||V,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($,{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(q,{})})]})]})]})},Q=l.div` +import{r,j as e,bf as F,a7 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-453237c9.js";import{B as z}from"./index-12293453.js";import{k as D,i as M,F as Y,B as P}from"./index-aa07e3c0.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-bfb09d34.js";import{A as L,O as V,T as W}from"./index-6f7942fe.js";import{C as _}from"./ClipLoader-c4c3d020.js";import"./Stack-b37dd094.js";import"./useSlotProps-0f0c60ff.js";import"./Popover-619582c9.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";const $=({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 E(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)||V,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($,{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(q,{})})]})]})]})},Q=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-e82f6bc9.js b/build/assets/index-faf9ee00.js similarity index 85% rename from build/assets/index-e82f6bc9.js rename to build/assets/index-faf9ee00.js index 47895d1ad..37d65e2b0 100644 --- a/build/assets/index-e82f6bc9.js +++ b/build/assets/index-faf9ee00.js @@ -1 +1 @@ -import{w as f,bk as m}from"./index-9846c56f.js";import{D as y}from"./NodeCircleIcon-b5c03892.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{w as f,bk as m}from"./index-453237c9.js";import{D as y}from"./NodeCircleIcon-bfb09d34.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-82133494.js b/build/assets/index-fdc6b6de.js similarity index 96% rename from build/assets/index-82133494.js rename to build/assets/index-fdc6b6de.js index 90ec76543..005538536 100644 --- a/build/assets/index-82133494.js +++ b/build/assets/index-fdc6b6de.js @@ -1,4 +1,4 @@ -import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,aa as se,b5 as ne,b6 as oe,a9 as re,b7 as ie,N as ae}from"./index-9846c56f.js";import{B as w,i as ce,F as le}from"./index-aa58e574.js";import{B as de}from"./index-387222b3.js";import{S as ue}from"./index-2fa35172.js";import{e as xe}from"./index.esm-5af45bb6.js";import{C as he}from"./CheckIcon-dfb703bb.js";import{C as ge}from"./ClipLoader-1aa08d13.js";import{T as z}from"./index-5b1d270d.js";import"./InfoIcon-109ca23e.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,aa as se,b5 as ne,b6 as oe,a9 as re,b7 as ie,N as ae}from"./index-453237c9.js";import{B as w,i as ce,F as le}from"./index-aa07e3c0.js";import{B as de}from"./index-12293453.js";import{S as ue}from"./index-185eb85f.js";import{e as xe}from"./index.esm-1996df7a.js";import{C as he}from"./CheckIcon-3a73121d.js";import{C as ge}from"./ClipLoader-c4c3d020.js";import{T as z}from"./index-66983695.js";import"./InfoIcon-dd2e04fe.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${l.GRAY7}; diff --git a/build/assets/index.esm-5af45bb6.js b/build/assets/index.esm-1996df7a.js similarity index 98% rename from build/assets/index.esm-5af45bb6.js rename to build/assets/index.esm-1996df7a.js index b4cce9549..5fb25a680 100644 --- a/build/assets/index.esm-5af45bb6.js +++ b/build/assets/index.esm-1996df7a.js @@ -1 +1 @@ -import{R as c}from"./index-9846c56f.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{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),f=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),d=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,f,a);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:f,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},f,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; +import{_ as r,a as h}from"./index-453237c9.js";import{e as w}from"./index-aa07e3c0.js";function A(e,o=166){let t;function n(...s){const i=()=>{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),f=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),d=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,f,a);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:f,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},f,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; diff --git a/build/index.html b/build/index.html index d24033855..ff60cbdb2 100644 --- a/build/index.html +++ b/build/index.html @@ -22,7 +22,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Second Brain - + From 847892099de1cc47d7d8a10fa22d073dcf78c5d5 Mon Sep 17 00:00:00 2001 From: Shoaibdev7 Date: Thu, 5 Sep 2024 11:27:52 -0700 Subject: [PATCH 4/6] fix(audio-section): hide audio en section --- src/components/App/SideBar/SelectedNodeView/Default/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/App/SideBar/SelectedNodeView/Default/index.tsx b/src/components/App/SideBar/SelectedNodeView/Default/index.tsx index aced1a0fb..62c216eef 100644 --- a/src/components/App/SideBar/SelectedNodeView/Default/index.tsx +++ b/src/components/App/SideBar/SelectedNodeView/Default/index.tsx @@ -118,7 +118,7 @@ const NodeDetail = ({ label, value, hasAudio, isPlaying, togglePlay }: Props) => const isLong = (value as string).length > 140 const searchTerm = useAppStore((s) => s.currentSearch) - if (!value) { + if (!value || label === 'Audio EN') { return null } From 20e5f465663abf8e20c8f40f7eceddb1dbce9dd0 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 5 Sep 2024 19:56:03 +0000 Subject: [PATCH 5/6] ci: automatic build fixes --- .../assets/{CheckIcon-3a73121d.js => CheckIcon-78afa5f1.js} | 2 +- .../{ClipLoader-c4c3d020.js => ClipLoader-a0c1d0d5.js} | 2 +- .../{DailyMotion-2c69ea9c.js => DailyMotion-c471f5ba.js} | 2 +- .../{DeleteIcon-580f7113.js => DeleteIcon-b904bd34.js} | 2 +- build/assets/{Facebook-47020356.js => Facebook-f0725fd9.js} | 2 +- .../{FilePlayer-3a9881cf.js => FilePlayer-4a5e2615.js} | 2 +- ...ontrolLabel-b4f67dac.js => FormControlLabel-dd6fa8a1.js} | 2 +- build/assets/{InfoIcon-dd2e04fe.js => InfoIcon-35720818.js} | 2 +- build/assets/{Kaltura-7ccdd12e.js => Kaltura-f277dadd.js} | 2 +- .../assets/{MergeIcon-c1c5911f.js => MergeIcon-32b40892.js} | 2 +- build/assets/{Mixcloud-b4e5ff02.js => Mixcloud-14342f0f.js} | 2 +- ...odeCircleIcon-bfb09d34.js => NodeCircleIcon-4410772f.js} | 2 +- build/assets/{PlusIcon-4d3aaca0.js => PlusIcon-f79d966c.js} | 2 +- build/assets/{Popover-619582c9.js => Popover-aff34d88.js} | 2 +- build/assets/{Preview-a6576b17.js => Preview-15830368.js} | 2 +- .../{SearchIcon-2879dc36.js => SearchIcon-61a39fc4.js} | 2 +- build/assets/{Skeleton-926f190e.js => Skeleton-e4541980.js} | 2 +- .../{SoundCloud-da045835.js => SoundCloud-7fcb0b13.js} | 2 +- build/assets/{Stack-b37dd094.js => Stack-76b9b130.js} | 2 +- .../{Streamable-8f623a9e.js => Streamable-eb269619.js} | 2 +- build/assets/{Tabs-832e46f5.js => Tabs-e60acdc7.js} | 2 +- ...reaAutosize-4ce1e768.js => TextareaAutosize-ed8bfc98.js} | 2 +- build/assets/{Twitch-ff79e490.js => Twitch-997a6dd4.js} | 2 +- .../{Typography-d70fa287.js => Typography-2d560971.js} | 2 +- build/assets/{Vidyard-0abeeec9.js => Vidyard-1cb28f51.js} | 2 +- build/assets/{Vimeo-f49a6342.js => Vimeo-ff6f785f.js} | 2 +- build/assets/{Wistia-bb92c7cf.js => Wistia-f8cd0254.js} | 2 +- build/assets/{YouTube-10e3fc02.js => YouTube-c62bab1c.js} | 2 +- ...{createSvgIcon-b3dd03d1.js => createSvgIcon-bd0d8dc7.js} | 2 +- build/assets/{index-6d901b61.js => index-0494f451.js} | 2 +- build/assets/{index-78bcec08.js => index-0a4c6ec3.js} | 2 +- build/assets/{index-d2627d6e.js => index-1477a4a5.js} | 2 +- build/assets/{index-82b2aee7.js => index-166b6403.js} | 2 +- build/assets/{index-7b8a22d4.js => index-17ed309d.js} | 2 +- build/assets/{index-453237c9.js => index-20244629.js} | 2 +- build/assets/{index-22bb9878.js => index-306d154d.js} | 2 +- build/assets/{index-dc9b4183.js => index-3fc7a58d.js} | 2 +- build/assets/{index-b9d6353c.js => index-5d1ac3c2.js} | 2 +- build/assets/{index-fdc6b6de.js => index-5dc8bdba.js} | 2 +- build/assets/{index-66983695.js => index-68ed2d99.js} | 2 +- build/assets/{index-faf9ee00.js => index-6bd8a92b.js} | 2 +- build/assets/{index-82036184.js => index-7978898a.js} | 2 +- build/assets/{index-f332f0c0.js => index-81b1cbe5.js} | 2 +- build/assets/{index-aa07e3c0.js => index-922a0411.js} | 6 +++--- build/assets/{index-185eb85f.js => index-a1bce07a.js} | 2 +- build/assets/{index-5f9e041e.js => index-b9333c3d.js} | 2 +- build/assets/{index-6f7942fe.js => index-bb4ca660.js} | 2 +- build/assets/{index-65b91810.js => index-bce8e63a.js} | 2 +- build/assets/{index-26bde52f.js => index-c49ebc93.js} | 6 +++--- build/assets/{index-238373e6.js => index-ce0d9b71.js} | 2 +- build/assets/{index-e85ff846.js => index-f8e07c95.js} | 2 +- build/assets/{index-12293453.js => index-fb1d223f.js} | 2 +- .../assets/{index.esm-1996df7a.js => index.esm-120f9454.js} | 2 +- .../{useSlotProps-0f0c60ff.js => useSlotProps-4a56e8a6.js} | 2 +- build/index.html | 2 +- 55 files changed, 59 insertions(+), 59 deletions(-) rename build/assets/{CheckIcon-3a73121d.js => CheckIcon-78afa5f1.js} (92%) rename build/assets/{ClipLoader-c4c3d020.js => ClipLoader-a0c1d0d5.js} (97%) rename build/assets/{DailyMotion-2c69ea9c.js => DailyMotion-c471f5ba.js} (95%) rename build/assets/{DeleteIcon-580f7113.js => DeleteIcon-b904bd34.js} (96%) rename build/assets/{Facebook-47020356.js => Facebook-f0725fd9.js} (96%) rename build/assets/{FilePlayer-3a9881cf.js => FilePlayer-4a5e2615.js} (98%) rename build/assets/{FormControlLabel-b4f67dac.js => FormControlLabel-dd6fa8a1.js} (94%) rename build/assets/{InfoIcon-dd2e04fe.js => InfoIcon-35720818.js} (97%) rename build/assets/{Kaltura-7ccdd12e.js => Kaltura-f277dadd.js} (95%) rename build/assets/{MergeIcon-c1c5911f.js => MergeIcon-32b40892.js} (98%) rename build/assets/{Mixcloud-b4e5ff02.js => Mixcloud-14342f0f.js} (95%) rename build/assets/{NodeCircleIcon-bfb09d34.js => NodeCircleIcon-4410772f.js} (91%) rename build/assets/{PlusIcon-4d3aaca0.js => PlusIcon-f79d966c.js} (94%) rename build/assets/{Popover-619582c9.js => Popover-aff34d88.js} (99%) rename build/assets/{Preview-a6576b17.js => Preview-15830368.js} (97%) rename build/assets/{SearchIcon-2879dc36.js => SearchIcon-61a39fc4.js} (95%) rename build/assets/{Skeleton-926f190e.js => Skeleton-e4541980.js} (97%) rename build/assets/{SoundCloud-da045835.js => SoundCloud-7fcb0b13.js} (95%) rename build/assets/{Stack-b37dd094.js => Stack-76b9b130.js} (99%) rename build/assets/{Streamable-8f623a9e.js => Streamable-eb269619.js} (95%) rename build/assets/{Tabs-832e46f5.js => Tabs-e60acdc7.js} (98%) rename build/assets/{TextareaAutosize-4ce1e768.js => TextareaAutosize-ed8bfc98.js} (91%) rename build/assets/{Twitch-ff79e490.js => Twitch-997a6dd4.js} (95%) rename build/assets/{Typography-d70fa287.js => Typography-2d560971.js} (93%) rename build/assets/{Vidyard-0abeeec9.js => Vidyard-1cb28f51.js} (95%) rename build/assets/{Vimeo-f49a6342.js => Vimeo-ff6f785f.js} (96%) rename build/assets/{Wistia-bb92c7cf.js => Wistia-f8cd0254.js} (96%) rename build/assets/{YouTube-10e3fc02.js => YouTube-c62bab1c.js} (97%) rename build/assets/{createSvgIcon-b3dd03d1.js => createSvgIcon-bd0d8dc7.js} (97%) rename build/assets/{index-6d901b61.js => index-0494f451.js} (98%) rename build/assets/{index-78bcec08.js => index-0a4c6ec3.js} (99%) rename build/assets/{index-d2627d6e.js => index-1477a4a5.js} (64%) rename build/assets/{index-82b2aee7.js => index-166b6403.js} (99%) rename build/assets/{index-7b8a22d4.js => index-17ed309d.js} (91%) rename build/assets/{index-453237c9.js => index-20244629.js} (99%) rename build/assets/{index-22bb9878.js => index-306d154d.js} (90%) rename build/assets/{index-dc9b4183.js => index-3fc7a58d.js} (91%) rename build/assets/{index-b9d6353c.js => index-5d1ac3c2.js} (98%) rename build/assets/{index-fdc6b6de.js => index-5dc8bdba.js} (96%) rename build/assets/{index-66983695.js => index-68ed2d99.js} (98%) rename build/assets/{index-faf9ee00.js => index-6bd8a92b.js} (85%) rename build/assets/{index-82036184.js => index-7978898a.js} (93%) rename build/assets/{index-f332f0c0.js => index-81b1cbe5.js} (91%) rename build/assets/{index-aa07e3c0.js => index-922a0411.js} (97%) rename build/assets/{index-185eb85f.js => index-a1bce07a.js} (64%) rename build/assets/{index-5f9e041e.js => index-b9333c3d.js} (99%) rename build/assets/{index-6f7942fe.js => index-bb4ca660.js} (99%) rename build/assets/{index-65b91810.js => index-bce8e63a.js} (92%) rename build/assets/{index-26bde52f.js => index-c49ebc93.js} (99%) rename build/assets/{index-238373e6.js => index-ce0d9b71.js} (92%) rename build/assets/{index-e85ff846.js => index-f8e07c95.js} (92%) rename build/assets/{index-12293453.js => index-fb1d223f.js} (96%) rename build/assets/{index.esm-1996df7a.js => index.esm-120f9454.js} (98%) rename build/assets/{useSlotProps-0f0c60ff.js => useSlotProps-4a56e8a6.js} (94%) diff --git a/build/assets/CheckIcon-3a73121d.js b/build/assets/CheckIcon-78afa5f1.js similarity index 92% rename from build/assets/CheckIcon-3a73121d.js rename to build/assets/CheckIcon-78afa5f1.js index ae8a2ade7..1c2b1e3f8 100644 --- a/build/assets/CheckIcon-3a73121d.js +++ b/build/assets/CheckIcon-78afa5f1.js @@ -1 +1 @@ -import{j as C}from"./index-453237c9.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-20244629.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-c4c3d020.js b/build/assets/ClipLoader-a0c1d0d5.js similarity index 97% rename from build/assets/ClipLoader-c4c3d020.js rename to build/assets/ClipLoader-a0c1d0d5.js index 17ef17f8f..0a65b678d 100644 --- a/build/assets/ClipLoader-c4c3d020.js +++ b/build/assets/ClipLoader-a0c1d0d5.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-453237c9.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-20244629.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-2c69ea9c.js b/build/assets/DailyMotion-c471f5ba.js similarity index 95% rename from build/assets/DailyMotion-2c69ea9c.js rename to build/assets/DailyMotion-c471f5ba.js index 1f75fe4c6..8fee2c7ab 100644 --- a/build/assets/DailyMotion-2c69ea9c.js +++ b/build/assets/DailyMotion-c471f5ba.js @@ -1 +1 @@ -import{n as P,r as v}from"./index-453237c9.js";import{u as D,p as O}from"./index-26bde52f.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{n as P,r as v}from"./index-20244629.js";import{u as D,p as O}from"./index-c49ebc93.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-580f7113.js b/build/assets/DeleteIcon-b904bd34.js similarity index 96% rename from build/assets/DeleteIcon-580f7113.js rename to build/assets/DeleteIcon-b904bd34.js index 7e889910b..ead3f0343 100644 --- a/build/assets/DeleteIcon-580f7113.js +++ b/build/assets/DeleteIcon-b904bd34.js @@ -1 +1 @@ -import{j as e}from"./index-453237c9.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-20244629.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-47020356.js b/build/assets/Facebook-f0725fd9.js similarity index 96% rename from build/assets/Facebook-47020356.js rename to build/assets/Facebook-f0725fd9.js index a5a409d2e..2138d0b98 100644 --- a/build/assets/Facebook-47020356.js +++ b/build/assets/Facebook-f0725fd9.js @@ -1 +1 @@ -import{n as _,r as P}from"./index-453237c9.js";import{u as g,p as m}from"./index-26bde52f.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{n as _,r as P}from"./index-20244629.js";import{u as g,p as m}from"./index-c49ebc93.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-3a9881cf.js b/build/assets/FilePlayer-4a5e2615.js similarity index 98% rename from build/assets/FilePlayer-3a9881cf.js rename to build/assets/FilePlayer-4a5e2615.js index f9bf702bf..e7a460a69 100644 --- a/build/assets/FilePlayer-3a9881cf.js +++ b/build/assets/FilePlayer-4a5e2615.js @@ -1 +1 @@ -import{n as b,r as _}from"./index-453237c9.js";import{u as O,p as A}from"./index-26bde52f.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{n as b,r as _}from"./index-20244629.js";import{u as O,p as A}from"./index-c49ebc93.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/build/assets/FormControlLabel-b4f67dac.js b/build/assets/FormControlLabel-dd6fa8a1.js similarity index 94% rename from build/assets/FormControlLabel-b4f67dac.js rename to build/assets/FormControlLabel-dd6fa8a1.js index 04062b467..2268d8f3f 100644 --- a/build/assets/FormControlLabel-b4f67dac.js +++ b/build/assets/FormControlLabel-dd6fa8a1.js @@ -1 +1 @@ -import{b as z,g as A,s as B,_ as d,i as V,r as j,a as D,j as f,c as T,e as _,d as O,u as X}from"./index-453237c9.js";import{u as Y,a as W,f as Z,S as ee}from"./Stack-b37dd094.js";import{p as oe}from"./index-aa07e3c0.js";import{T as M}from"./Typography-d70fa287.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${_(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 U=r.target.checked;H(U),P&&P(r,U)};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}),E=ae(N);return f.jsxs(re,d({component:"span",className:T(E.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:E.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${_(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${_(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}; +import{b as z,g as A,s as B,_ as d,i as V,r as j,a as D,j as f,c as T,e as _,d as O,u as X}from"./index-20244629.js";import{u as Y,a as W,f as Z,S as ee}from"./Stack-76b9b130.js";import{p as oe}from"./index-922a0411.js";import{T as M}from"./Typography-2d560971.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${_(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 U=r.target.checked;H(U),P&&P(r,U)};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}),E=ae(N);return f.jsxs(re,d({component:"span",className:T(E.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:E.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${_(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${_(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/InfoIcon-dd2e04fe.js b/build/assets/InfoIcon-35720818.js similarity index 97% rename from build/assets/InfoIcon-dd2e04fe.js rename to build/assets/InfoIcon-35720818.js index 5013acaa0..bf6308df8 100644 --- a/build/assets/InfoIcon-dd2e04fe.js +++ b/build/assets/InfoIcon-35720818.js @@ -1 +1 @@ -import{j as C}from"./index-453237c9.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.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"})})]})});export{r as I}; +import{j as C}from"./index-20244629.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.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"})})]})});export{r as I}; diff --git a/build/assets/Kaltura-7ccdd12e.js b/build/assets/Kaltura-f277dadd.js similarity index 95% rename from build/assets/Kaltura-7ccdd12e.js rename to build/assets/Kaltura-f277dadd.js index 05febbef3..2be918b74 100644 --- a/build/assets/Kaltura-7ccdd12e.js +++ b/build/assets/Kaltura-f277dadd.js @@ -1 +1 @@ -import{n as y,r as f}from"./index-453237c9.js";import{u as _,p as m}from"./index-26bde52f.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{n as y,r as f}from"./index-20244629.js";import{u as _,p as m}from"./index-c49ebc93.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-c1c5911f.js b/build/assets/MergeIcon-32b40892.js similarity index 98% rename from build/assets/MergeIcon-c1c5911f.js rename to build/assets/MergeIcon-32b40892.js index 60de1b5f5..0c3c49df2 100644 --- a/build/assets/MergeIcon-c1c5911f.js +++ b/build/assets/MergeIcon-32b40892.js @@ -1 +1 @@ -import{j as C}from"./index-453237c9.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-20244629.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-b4e5ff02.js b/build/assets/Mixcloud-14342f0f.js similarity index 95% rename from build/assets/Mixcloud-b4e5ff02.js rename to build/assets/Mixcloud-14342f0f.js index 1228636c4..d8fea3fb9 100644 --- a/build/assets/Mixcloud-b4e5ff02.js +++ b/build/assets/Mixcloud-14342f0f.js @@ -1 +1 @@ -import{n as _,r as f}from"./index-453237c9.js";import{u as m,p as g}from"./index-26bde52f.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{n as _,r as f}from"./index-20244629.js";import{u as m,p as g}from"./index-c49ebc93.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-bfb09d34.js b/build/assets/NodeCircleIcon-4410772f.js similarity index 91% rename from build/assets/NodeCircleIcon-bfb09d34.js rename to build/assets/NodeCircleIcon-4410772f.js index d047583f0..d0d8816c5 100644 --- a/build/assets/NodeCircleIcon-bfb09d34.js +++ b/build/assets/NodeCircleIcon-4410772f.js @@ -1,4 +1,4 @@ -import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-453237c9.js";import{I as i}from"./index-aa07e3c0.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="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(i)` +import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-20244629.js";import{I as i}from"./index-922a0411.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="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(i)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/PlusIcon-4d3aaca0.js b/build/assets/PlusIcon-f79d966c.js similarity index 94% rename from build/assets/PlusIcon-4d3aaca0.js rename to build/assets/PlusIcon-f79d966c.js index 7691b83b2..b5151395e 100644 --- a/build/assets/PlusIcon-4d3aaca0.js +++ b/build/assets/PlusIcon-f79d966c.js @@ -1 +1 @@ -import{j as s}from"./index-453237c9.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-20244629.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/Popover-619582c9.js b/build/assets/Popover-aff34d88.js similarity index 99% rename from build/assets/Popover-619582c9.js rename to build/assets/Popover-aff34d88.js index 1765b6901..c5160cc8a 100644 --- a/build/assets/Popover-619582c9.js +++ b/build/assets/Popover-aff34d88.js @@ -1 +1 @@ -import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ac as Xe}from"./index-453237c9.js";import{w as et,x as Ve,e as ae,f as Le,t as _e,g as Be}from"./index-aa07e3c0.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-0f0c60ff.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; +import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ac as Xe}from"./index-20244629.js";import{w as et,x as Ve,e as ae,f as Le,t as _e,g as Be}from"./index-922a0411.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-4a56e8a6.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; diff --git a/build/assets/Preview-a6576b17.js b/build/assets/Preview-15830368.js similarity index 97% rename from build/assets/Preview-a6576b17.js rename to build/assets/Preview-15830368.js index 8c2a96b7b..bb3e63f50 100644 --- a/build/assets/Preview-a6576b17.js +++ b/build/assets/Preview-15830368.js @@ -1 +1 @@ -import{n as y,r as b}from"./index-453237c9.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{n as y,r as b}from"./index-20244629.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-2879dc36.js b/build/assets/SearchIcon-61a39fc4.js similarity index 95% rename from build/assets/SearchIcon-2879dc36.js rename to build/assets/SearchIcon-61a39fc4.js index 17c2b1e54..d6f03f016 100644 --- a/build/assets/SearchIcon-2879dc36.js +++ b/build/assets/SearchIcon-61a39fc4.js @@ -1 +1 @@ -import{j as C}from"./index-453237c9.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-20244629.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-926f190e.js b/build/assets/Skeleton-e4541980.js similarity index 97% rename from build/assets/Skeleton-926f190e.js rename to build/assets/Skeleton-e4541980.js index 14a79750e..ac03d30ff 100644 --- a/build/assets/Skeleton-926f190e.js +++ b/build/assets/Skeleton-e4541980.js @@ -1,4 +1,4 @@ -import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-453237c9.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` +import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-20244629.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-da045835.js b/build/assets/SoundCloud-7fcb0b13.js similarity index 95% rename from build/assets/SoundCloud-da045835.js rename to build/assets/SoundCloud-7fcb0b13.js index a6ae7487f..df82cbf77 100644 --- a/build/assets/SoundCloud-da045835.js +++ b/build/assets/SoundCloud-7fcb0b13.js @@ -1 +1 @@ -import{n as P,r as g}from"./index-453237c9.js";import{u as b,p as v}from"./index-26bde52f.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(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,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/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"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{n as P,r as g}from"./index-20244629.js";import{u as b,p as v}from"./index-c49ebc93.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(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,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/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"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-b37dd094.js b/build/assets/Stack-76b9b130.js similarity index 99% rename from build/assets/Stack-b37dd094.js rename to build/assets/Stack-76b9b130.js index be4ae7d57..b9240990a 100644 --- a/build/assets/Stack-b37dd094.js +++ b/build/assets/Stack-76b9b130.js @@ -1 +1 @@ -import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-453237c9.js";import{o as et,u as It}from"./useSlotProps-0f0c60ff.js";import{d as qt}from"./Popover-619582c9.js";import{e as tt,f as rt}from"./index-aa07e3c0.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 Vo({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 zt=["sx"],Xt=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,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(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=Lt(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=Vt(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 B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,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 V(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];!V(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},{});!V(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&&V(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 Le(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!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(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 Ve(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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B: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=B,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===B||(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===B||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 Mr(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 Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,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 Lr(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 Vr(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:V(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(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(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 B: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?Ve(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,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*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 zr(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,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,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[B,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,B].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=Ve(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"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],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?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=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=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe: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:Xe,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)||!V(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=V(t),n=V(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)),V(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 L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.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=It({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(qt,{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=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({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}))}),No=Ro;function Ho({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 Uo(){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=Me("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=Be({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 L=Se(k,["Select"])?k.props.input:k;L&&So(L.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:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; +import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-20244629.js";import{o as et,u as It}from"./useSlotProps-4a56e8a6.js";import{d as qt}from"./Popover-aff34d88.js";import{e as tt,f as rt}from"./index-922a0411.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 Vo({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 zt=["sx"],Xt=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,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(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=Lt(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=Vt(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 B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,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 V(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];!V(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},{});!V(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&&V(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 Le(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!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(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 Ve(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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B: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=B,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===B||(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===B||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 Mr(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 Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,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 Lr(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 Vr(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:V(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(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(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 B: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?Ve(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,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*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 zr(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,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,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[B,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,B].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=Ve(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"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],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?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=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=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe: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:Xe,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)||!V(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=V(t),n=V(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)),V(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 L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.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=It({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(qt,{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=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({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}))}),No=Ro;function Ho({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 Uo(){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=Me("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=Be({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 L=Se(k,["Select"])?k.props.input:k;L&&So(L.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:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; diff --git a/build/assets/Streamable-8f623a9e.js b/build/assets/Streamable-eb269619.js similarity index 95% rename from build/assets/Streamable-8f623a9e.js rename to build/assets/Streamable-eb269619.js index f63e9966e..ba4b059c8 100644 --- a/build/assets/Streamable-8f623a9e.js +++ b/build/assets/Streamable-eb269619.js @@ -1 +1 @@ -import{n as m,r as f}from"./index-453237c9.js";import{u as _,p as b}from"./index-26bde52f.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{n as m,r as f}from"./index-20244629.js";import{u as _,p as b}from"./index-c49ebc93.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-832e46f5.js b/build/assets/Tabs-e60acdc7.js similarity index 98% rename from build/assets/Tabs-832e46f5.js rename to build/assets/Tabs-e60acdc7.js index 26dcf4a78..7f24ed94b 100644 --- a/build/assets/Tabs-832e46f5.js +++ b/build/assets/Tabs-e60acdc7.js @@ -1 +1 @@ -import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ac as Lt}from"./index-453237c9.js";import{p as Nt,f as Zt,g as ut}from"./index-aa07e3c0.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-0f0c60ff.js";import{c as Ft}from"./createSvgIcon-b3dd03d1.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 St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),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 S.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"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,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=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(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 S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let 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 St({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=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots: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:$}),[vt,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 v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),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?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.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?S.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=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,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=S.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&&!vt&&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",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v: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 S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; +import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ac as Lt}from"./index-20244629.js";import{p as Nt,f as Zt,g as ut}from"./index-922a0411.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-4a56e8a6.js";import{c as Ft}from"./createSvgIcon-bd0d8dc7.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 St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),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 S.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"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,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=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(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 S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let 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 St({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=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots: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:$}),[vt,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 v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),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?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.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?S.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=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,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=S.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&&!vt&&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",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v: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 S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; diff --git a/build/assets/TextareaAutosize-4ce1e768.js b/build/assets/TextareaAutosize-ed8bfc98.js similarity index 91% rename from build/assets/TextareaAutosize-4ce1e768.js rename to build/assets/TextareaAutosize-ed8bfc98.js index c831a7b45..6c334ec67 100644 --- a/build/assets/TextareaAutosize-4ce1e768.js +++ b/build/assets/TextareaAutosize-ed8bfc98.js @@ -1,2 +1,2 @@ -import{r as o,a as L,j as v,_ as b,h as I}from"./index-453237c9.js";import{e as D,f as T}from"./index-aa07e3c0.js";import{a as F,d as P}from"./useSlotProps-0f0c60ff.js";const U=["onChange","maxRows","minRows","style","value"];function w(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 J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(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,a as L,j as v,_ as b,h as I}from"./index-20244629.js";import{e as D,f as T}from"./index-922a0411.js";import{a as F,d as P}from"./useSlotProps-4a56e8a6.js";const U=["onChange","maxRows","minRows","style","value"];function w(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 J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(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,m=w(n.paddingBottom)+w(n.paddingTop),a=w(n.borderBottomWidth)+w(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 j=s+(g==="border-box"?m+a:0),B=Math.abs(s-u)<=1;return{outerHeightStyle:j,overflow:B}},[x,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||I.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=P(i),g=p.current,m=F(g);m.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),m.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const _=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:_,ref:N,rows:h,style:b({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:b({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{J as T}; diff --git a/build/assets/Twitch-ff79e490.js b/build/assets/Twitch-997a6dd4.js similarity index 95% rename from build/assets/Twitch-ff79e490.js rename to build/assets/Twitch-997a6dd4.js index f57cdc442..2ffdfbd97 100644 --- a/build/assets/Twitch-ff79e490.js +++ b/build/assets/Twitch-997a6dd4.js @@ -1 +1 @@ -import{n as w,r as D}from"./index-453237c9.js";import{u as C,p as N}from"./index-26bde52f.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,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),...o.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})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{n as w,r as D}from"./index-20244629.js";import{u as C,p as N}from"./index-c49ebc93.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,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),...o.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})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-d70fa287.js b/build/assets/Typography-2d560971.js similarity index 93% rename from build/assets/Typography-d70fa287.js rename to build/assets/Typography-2d560971.js index a4f342091..779eac76d 100644 --- a/build/assets/Typography-d70fa287.js +++ b/build/assets/Typography-2d560971.js @@ -1 +1 @@ -import{b as T,g as B,s as W,e as u,_ as s,r as C,u as M,a as R,j as P,c as j,d as U}from"./index-453237c9.js";import{e as _}from"./Stack-b37dd094.js";function N(a){return T("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return U(i,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=A(n.color),o=_(s({},n,{color:e})),{align:p="inherit",className:i,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:e,className:i,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,i)},x))}),V=D;export{V as T}; +import{b as T,g as B,s as W,e as u,_ as s,r as C,u as M,a as R,j as P,c as j,d as U}from"./index-20244629.js";import{e as _}from"./Stack-76b9b130.js";function N(a){return T("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return U(i,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=A(n.color),o=_(s({},n,{color:e})),{align:p="inherit",className:i,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:e,className:i,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,i)},x))}),V=D;export{V as T}; diff --git a/build/assets/Vidyard-0abeeec9.js b/build/assets/Vidyard-1cb28f51.js similarity index 95% rename from build/assets/Vidyard-0abeeec9.js rename to build/assets/Vidyard-1cb28f51.js index 7407a2d94..76e4bd62d 100644 --- a/build/assets/Vidyard-0abeeec9.js +++ b/build/assets/Vidyard-1cb28f51.js @@ -1 +1 @@ -import{n as g,r as v}from"./index-453237c9.js";import{u as b,p as O}from"./index-26bde52f.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{n as g,r as v}from"./index-20244629.js";import{u as b,p as O}from"./index-c49ebc93.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-f49a6342.js b/build/assets/Vimeo-ff6f785f.js similarity index 96% rename from build/assets/Vimeo-f49a6342.js rename to build/assets/Vimeo-ff6f785f.js index f683b5940..6fbff1bcc 100644 --- a/build/assets/Vimeo-f49a6342.js +++ b/build/assets/Vimeo-ff6f785f.js @@ -1 +1 @@ -import{n as d,r as f}from"./index-453237c9.js";import{u as m,p as _}from"./index-26bde52f.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{n as d,r as f}from"./index-20244629.js";import{u as m,p as _}from"./index-c49ebc93.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-bb92c7cf.js b/build/assets/Wistia-f8cd0254.js similarity index 96% rename from build/assets/Wistia-bb92c7cf.js rename to build/assets/Wistia-f8cd0254.js index 8c2203bb9..75925e47f 100644 --- a/build/assets/Wistia-bb92c7cf.js +++ b/build/assets/Wistia-f8cd0254.js @@ -1 +1 @@ -import{n as m,r as g}from"./index-453237c9.js";import{u as v,p as w}from"./index-26bde52f.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{n as m,r as g}from"./index-20244629.js";import{u as v,p as w}from"./index-c49ebc93.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-10e3fc02.js b/build/assets/YouTube-c62bab1c.js similarity index 97% rename from build/assets/YouTube-10e3fc02.js rename to build/assets/YouTube-c62bab1c.js index 892214c75..bba3804b9 100644 --- a/build/assets/YouTube-10e3fc02.js +++ b/build/assets/YouTube-c62bab1c.js @@ -1 +1 @@ -import{n as U,r as I}from"./index-453237c9.js";import{u as L,p as Y}from"./index-26bde52f.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{n as U,r as I}from"./index-20244629.js";import{u as L,p as Y}from"./index-c49ebc93.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-b3dd03d1.js b/build/assets/createSvgIcon-bd0d8dc7.js similarity index 97% rename from build/assets/createSvgIcon-b3dd03d1.js rename to build/assets/createSvgIcon-bd0d8dc7.js index 2fd43b38f..e115807b7 100644 --- a/build/assets/createSvgIcon-b3dd03d1.js +++ b/build/assets/createSvgIcon-bd0d8dc7.js @@ -1 +1 @@ -import{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-453237c9.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{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-20244629.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-6d901b61.js b/build/assets/index-0494f451.js similarity index 98% rename from build/assets/index-6d901b61.js rename to build/assets/index-0494f451.js index bb8bdb37d..ea45d37a0 100644 --- a/build/assets/index-6d901b61.js +++ b/build/assets/index-0494f451.js @@ -1,4 +1,4 @@ -import{r as h,b as Y,g as q,s as F,_ as N,u as Q,a as K,j as e,c as X,d as J,e as P,ad as ut,f as oe,ae as gt,o as d,q as x,T as L,F as g,O as E,ba as ft,ag as te,R as ne,B as ae,aa as mt,bb as bt,bc as Ge,v as re,bd as Ze,a7 as je,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,K as St,Q as $t}from"./index-453237c9.js";import{B as ce}from"./index-12293453.js";import{P as kt}from"./PlusIcon-4d3aaca0.js";import{B as W,I as Z,k as ee,i as ye,F as we}from"./index-aa07e3c0.js";import{T as Me,s as U,a as Qe,S as Ke,A as ve,N as Xe,F as Je,b as et,E as _t,D as Lt,c as tt,Q as st,V as ot,d as Mt}from"./NodeCircleIcon-bfb09d34.js";import{C as M}from"./ClipLoader-c4c3d020.js";import{f as Nt,g as Bt,h as zt,a as It}from"./index.esm-1996df7a.js";import{P as Te,a as Rt}from"./Popover-619582c9.js";import{S as nt}from"./SearchIcon-2879dc36.js";import{I as Et,A as Se,O as rt,T as it}from"./index-6f7942fe.js";import{B as At,T as Ot}from"./index-66983695.js";import{D as Ft}from"./DeleteIcon-580f7113.js";import{E as Ht,M as Ne,A as Wt}from"./MergeIcon-c1c5911f.js";import{u as I}from"./index-faf9ee00.js";import{C as at}from"./CheckIcon-3a73121d.js";import{T as Be}from"./Typography-d70fa287.js";import{T as Pt,a as Ut}from"./Tabs-832e46f5.js";import"./useSlotProps-0f0c60ff.js";import"./Stack-b37dd094.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";import"./InfoIcon-dd2e04fe.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=F("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=K(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:X(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Kt(t){return Y("MuiTableBody",t)}q("MuiTableBody",["root"]);const Xt=["className","component"],Jt=t=>{const{classes:s}=t;return J({root:["root"]},Kt,s)},es=F("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=K(r,Xt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:X(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=F("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,b as Y,g as q,s as F,_ as N,u as Q,a as K,j as e,c as X,d as J,e as P,ad as ut,f as oe,ae as gt,o as d,q as x,T as L,F as g,O as E,ba as ft,ag as te,R as ne,B as ae,aa as mt,bb as bt,bc as Ge,v as re,bd as Ze,a7 as je,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,K as St,Q as $t}from"./index-20244629.js";import{B as ce}from"./index-fb1d223f.js";import{P as kt}from"./PlusIcon-f79d966c.js";import{B as W,I as Z,k as ee,i as ye,F as we}from"./index-922a0411.js";import{T as Me,s as U,a as Qe,S as Ke,A as ve,N as Xe,F as Je,b as et,E as _t,D as Lt,c as tt,Q as st,V as ot,d as Mt}from"./NodeCircleIcon-4410772f.js";import{C as M}from"./ClipLoader-a0c1d0d5.js";import{f as Nt,g as Bt,h as zt,a as It}from"./index.esm-120f9454.js";import{P as Te,a as Rt}from"./Popover-aff34d88.js";import{S as nt}from"./SearchIcon-61a39fc4.js";import{I as Et,A as Se,O as rt,T as it}from"./index-bb4ca660.js";import{B as At,T as Ot}from"./index-68ed2d99.js";import{D as Ft}from"./DeleteIcon-b904bd34.js";import{E as Ht,M as Ne,A as Wt}from"./MergeIcon-32b40892.js";import{u as I}from"./index-6bd8a92b.js";import{C as at}from"./CheckIcon-78afa5f1.js";import{T as Be}from"./Typography-2d560971.js";import{T as Pt,a as Ut}from"./Tabs-e60acdc7.js";import"./useSlotProps-4a56e8a6.js";import"./Stack-76b9b130.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";import"./InfoIcon-35720818.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=F("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=K(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:X(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Kt(t){return Y("MuiTableBody",t)}q("MuiTableBody",["root"]);const Xt=["className","component"],Jt=t=>{const{classes:s}=t;return J({root:["root"]},Kt,s)},es=F("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=K(r,Xt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:X(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=F("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=K(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:$}),O=ls(A);let B=null;return m&&(B=m==="asc"?"ascending":"descending"),e.jsx(cs,N({as:y,ref:n,className:X(O.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=F("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=K(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:X(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=F("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=K(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:X(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}; diff --git a/build/assets/index-78bcec08.js b/build/assets/index-0a4c6ec3.js similarity index 99% rename from build/assets/index-78bcec08.js rename to build/assets/index-0a4c6ec3.js index 5cc473360..63f93dceb 100644 --- a/build/assets/index-78bcec08.js +++ b/build/assets/index-0a4c6ec3.js @@ -1,4 +1,4 @@ -import{j as e,O as r,G as F,E as I,B as V,A as _,K as A,J as $,Q as U,T as s,o as l,q as C,F as a}from"./index-453237c9.js";import{C as O}from"./index-aa07e3c0.js";const T=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"})})]}),G=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"})})]}),z=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"})}),E=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"})})]}),D=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"})})]}),J=()=>{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=F(),{resetAiSummaryAnswer:g,setNewLoading:w}=I(),{abortFetchData:j,resetGraph:b}=V(n=>n),{setUniverseQuestionIsOpen:k,setSidebarOpen:f,setShowCollapseButton:v,sidebarIsOpen:H}=_(n=>n),{customSchemaFeatureFlag:M,userFeedbackFeatureFlag:L,chatInterfaceFeatureFlag:y}=A(n=>n),[c]=$(n=>[n.isAdmin]),S=U(),Z=()=>{w(null),j(),g(),b(),m("/")},B=()=>{k(),f(!H),v(!1)};return e.jsxs(Q,{children:[e.jsx(R,{onClick:Z,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),y?e.jsxs(i,{onClick:B,children:[e.jsx(o,{children:e.jsx(E,{})}),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(G,{})}),e.jsx(s,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:h,children:[e.jsx(o,{children:e.jsx(T,{})}),e.jsx(s,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(o,{children:e.jsx(D,{})}),e.jsx(s,{children:"Source Table"})]}),M&&c?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(o,{children:e.jsx(O,{})}),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"})]}),L&&S?e.jsxs(W,{"data-testid":"feedback-modal",onClick:u,children:[e.jsx(o,{children:e.jsx(z,{})}),e.jsx(s,{children:"Send Feedback"})]}):null]})},Q=l(a).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{j as e,O as r,G as F,E as I,B as V,A as _,K as A,J as $,Q as U,T as s,o as l,q as C,F as a}from"./index-20244629.js";import{C as O}from"./index-922a0411.js";const T=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"})})]}),G=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"})})]}),z=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"})}),E=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"})})]}),D=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"})})]}),J=()=>{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=F(),{resetAiSummaryAnswer:g,setNewLoading:w}=I(),{abortFetchData:j,resetGraph:b}=V(n=>n),{setUniverseQuestionIsOpen:k,setSidebarOpen:f,setShowCollapseButton:v,sidebarIsOpen:H}=_(n=>n),{customSchemaFeatureFlag:M,userFeedbackFeatureFlag:L,chatInterfaceFeatureFlag:y}=A(n=>n),[c]=$(n=>[n.isAdmin]),S=U(),Z=()=>{w(null),j(),g(),b(),m("/")},B=()=>{k(),f(!H),v(!1)};return e.jsxs(Q,{children:[e.jsx(R,{onClick:Z,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),y?e.jsxs(i,{onClick:B,children:[e.jsx(o,{children:e.jsx(E,{})}),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(G,{})}),e.jsx(s,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:h,children:[e.jsx(o,{children:e.jsx(T,{})}),e.jsx(s,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(o,{children:e.jsx(D,{})}),e.jsx(s,{children:"Source Table"})]}),M&&c?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(o,{children:e.jsx(O,{})}),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"})]}),L&&S?e.jsxs(W,{"data-testid":"feedback-modal",onClick:u,children:[e.jsx(o,{children:e.jsx(z,{})}),e.jsx(s,{children:"Send Feedback"})]}):null]})},Q=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-d2627d6e.js b/build/assets/index-1477a4a5.js similarity index 64% rename from build/assets/index-d2627d6e.js rename to build/assets/index-1477a4a5.js index 5e63da1b7..a63e4ba73 100644 --- a/build/assets/index-d2627d6e.js +++ b/build/assets/index-1477a4a5.js @@ -1 +1 @@ -import{p as o}from"./index-453237c9.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{p as o}from"./index-20244629.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-82b2aee7.js b/build/assets/index-166b6403.js similarity index 99% rename from build/assets/index-82b2aee7.js rename to build/assets/index-166b6403.js index be97eb3f7..f9dc1ef19 100644 --- a/build/assets/index-82b2aee7.js +++ b/build/assets/index-166b6403.js @@ -1,4 +1,4 @@ -import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,E as ef,y as Jt,p as nt,U as bo,v as du,V as tf,X as sf,Y as nf,Z as rf,a0 as of,a1 as af,a2 as cf,a3 as lf,a4 as uf,O as $o,a5 as hf,a6 as df,a7 as ff,a8 as pf,M as mf}from"./index-453237c9.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-5f9e041e.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,T as tl,A as Jf,b as ep,O as tp,c as sp}from"./index-aa07e3c0.js";import{T as np}from"./TextareaAutosize-4ce1e768.js";import{D as ip}from"./DeleteIcon-580f7113.js";import{M as rp,a as op}from"./index.esm-1996df7a.js";import{u as ap}from"./index-d2627d6e.js";import{M as cp,A as lp,E as up}from"./MergeIcon-c1c5911f.js";import{P as hp}from"./PlusIcon-4d3aaca0.js";import{P as dp}from"./Popover-619582c9.js";import{C as fp}from"./ClipLoader-c4c3d020.js";import"./useSlotProps-0f0c60ff.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?b.useEffect:b.useLayoutEffect;function _p(n){const e=typeof n=="function"?pp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(g=>g+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let 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=b.useRef(o);sl(()=>{const g=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(g);return e.getState()!==m.current&&g(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const gp=_p(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.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=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={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 Af,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,Ar=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),Ar.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),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,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}=ge(),[p,g]=b.useState(!1),[v,S]=b.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],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),_=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new Tp(l,_.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,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.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){E.x=Math.max(x.x,B.clientX),E.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=`${E.x-C.x}px`,k.style.height=`${E.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 Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);wp(Te,z)||(z=Te,S({object:o(Te)}))}}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]),b.createElement("group",$a({ref:_,onClick:T,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:y},a),b.createElement(kp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),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(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! +import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,E as ef,y as Jt,p as nt,U as bo,v as du,V as tf,X as sf,Y as nf,Z as rf,a0 as of,a1 as af,a2 as cf,a3 as lf,a4 as uf,O as $o,a5 as hf,a6 as df,a7 as ff,a8 as pf,M as mf}from"./index-20244629.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-b9333c3d.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,T as tl,A as Jf,b as ep,O as tp,c as sp}from"./index-922a0411.js";import{T as np}from"./TextareaAutosize-ed8bfc98.js";import{D as ip}from"./DeleteIcon-b904bd34.js";import{M as rp,a as op}from"./index.esm-120f9454.js";import{u as ap}from"./index-1477a4a5.js";import{M as cp,A as lp,E as up}from"./MergeIcon-32b40892.js";import{P as hp}from"./PlusIcon-f79d966c.js";import{P as dp}from"./Popover-aff34d88.js";import{C as fp}from"./ClipLoader-a0c1d0d5.js";import"./useSlotProps-4a56e8a6.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?b.useEffect:b.useLayoutEffect;function _p(n){const e=typeof n=="function"?pp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(g=>g+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let 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=b.useRef(o);sl(()=>{const g=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(g);return e.getState()!==m.current&&g(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const gp=_p(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.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=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={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 Af,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,Ar=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),Ar.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),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,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}=ge(),[p,g]=b.useState(!1),[v,S]=b.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],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),_=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new Tp(l,_.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,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.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){E.x=Math.max(x.x,B.clientX),E.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=`${E.x-C.x}px`,k.style.height=`${E.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 Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);wp(Te,z)||(z=Te,S({object:o(Te)}))}}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]),b.createElement("group",$a({ref:_,onClick:T,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:y},a),b.createElement(kp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),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(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu diff --git a/build/assets/index-7b8a22d4.js b/build/assets/index-17ed309d.js similarity index 91% rename from build/assets/index-7b8a22d4.js rename to build/assets/index-17ed309d.js index d35c70e04..d3869bb31 100644 --- a/build/assets/index-7b8a22d4.js +++ b/build/assets/index-17ed309d.js @@ -1,4 +1,4 @@ -import{j as e,o as r,q as y,T as S,F as n,O as g,K as q,y as k,aW as G,r as l,bk as O,bi as P,B as K}from"./index-453237c9.js";import{B as Y}from"./index-12293453.js";import{T as J,i as Q,F as X,B as F}from"./index-aa07e3c0.js";import{T as B}from"./index-66983695.js";import{S as Z}from"./Skeleton-926f190e.js";import{C as ee}from"./ClipLoader-c4c3d020.js";import"./index.esm-1996df7a.js";import"./InfoIcon-dd2e04fe.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}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),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(J,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{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,o as r,q as y,T as S,F as n,O as g,K as q,y as k,aW as G,r as l,bk as O,bi as P,B as K}from"./index-20244629.js";import{B as Y}from"./index-fb1d223f.js";import{T as J,i as Q,F as X,B as F}from"./index-922a0411.js";import{T as B}from"./index-68ed2d99.js";import{S as Z}from"./Skeleton-e4541980.js";import{C as ee}from"./ClipLoader-a0c1d0d5.js";import"./index.esm-120f9454.js";import"./InfoIcon-35720818.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}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),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(J,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{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'; diff --git a/build/assets/index-453237c9.js b/build/assets/index-20244629.js similarity index 99% rename from build/assets/index-453237c9.js rename to build/assets/index-20244629.js index e199c82bb..cdc15a11a 100644 --- a/build/assets/index-453237c9.js +++ b/build/assets/index-20244629.js @@ -665,4 +665,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-aa07e3c0.js").then(o=>o.E),["assets/index-aa07e3c0.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 $,useAppStore as A,useDataStore as B,__vitePreload as C,media as D,useAiSummaryStore as E,Flex as F,useNavigate as G,Stats as H,useSearchParams as I,useUserStore as J,useFeatureFlagStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useSelectedNodeRelativeIds as U,forceSimulation as V,We as W,forceCollide as X,forceCenter as Y,forceManyBody as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceLink as a0,NODE_RELATIVE_HIGHLIGHT_COLORS as a1,useHoveredNode as a2,useNodeTypes as a3,lottie as a4,fetchNodeEdges as a5,NodesIcon as a6,lodashExports as a7,addToGlobalForE2e as a8,api as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,distExports$1 as aa,executeIfProd as ab,useTheme as ac,lighten as ad,darken as ae,slotShouldForwardProp as af,Ce as ag,useHasAiChatsResponseLoading as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-922a0411.js").then(o=>o.E),["assets/index-922a0411.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 $,useAppStore as A,useDataStore as B,__vitePreload as C,media as D,useAiSummaryStore as E,Flex as F,useNavigate as G,Stats as H,useSearchParams as I,useUserStore as J,useFeatureFlagStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useSelectedNodeRelativeIds as U,forceSimulation as V,We as W,forceCollide as X,forceCenter as Y,forceManyBody as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceLink as a0,NODE_RELATIVE_HIGHLIGHT_COLORS as a1,useHoveredNode as a2,useNodeTypes as a3,lottie as a4,fetchNodeEdges as a5,NodesIcon as a6,lodashExports as a7,addToGlobalForE2e as a8,api as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,distExports$1 as aa,executeIfProd as ab,useTheme as ac,lighten as ad,darken as ae,slotShouldForwardProp as af,Ce as ag,useHasAiChatsResponseLoading as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; diff --git a/build/assets/index-22bb9878.js b/build/assets/index-306d154d.js similarity index 90% rename from build/assets/index-22bb9878.js rename to build/assets/index-306d154d.js index f775a72fe..1efac6d88 100644 --- a/build/assets/index-22bb9878.js +++ b/build/assets/index-306d154d.js @@ -1,4 +1,4 @@ -import{r as p,a7 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-453237c9.js";import{k as B,i as E,F as N,B as k}from"./index-aa07e3c0.js";import{B as M}from"./index-12293453.js";import{u as w}from"./index-faf9ee00.js";import{S as O,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-bfb09d34.js";import{A as X,O as H,T as W}from"./index-6f7942fe.js";import{C as q}from"./ClipLoader-c4c3d020.js";import"./Stack-b37dd094.js";import"./useSlotProps-0f0c60ff.js";import"./Popover-619582c9.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);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(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({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(U,{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(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` +import{r as p,a7 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-20244629.js";import{k as B,i as E,F as N,B as k}from"./index-922a0411.js";import{B as M}from"./index-fb1d223f.js";import{u as w}from"./index-6bd8a92b.js";import{S as O,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-4410772f.js";import{A as X,O as H,T as W}from"./index-bb4ca660.js";import{C as q}from"./ClipLoader-a0c1d0d5.js";import"./Stack-76b9b130.js";import"./useSlotProps-4a56e8a6.js";import"./Popover-aff34d88.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);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(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({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(U,{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(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-dc9b4183.js b/build/assets/index-3fc7a58d.js similarity index 91% rename from build/assets/index-dc9b4183.js rename to build/assets/index-3fc7a58d.js index 9902ca7b3..e304dafb9 100644 --- a/build/assets/index-dc9b4183.js +++ b/build/assets/index-3fc7a58d.js @@ -1,4 +1,4 @@ -import{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,a9 as j}from"./index-453237c9.js";import{B as C,i as S,F as y}from"./index-aa07e3c0.js";import{B as k}from"./index-12293453.js";import{S as v}from"./index-185eb85f.js";import{T as F}from"./index-66983695.js";import"./index.esm-1996df7a.js";import"./InfoIcon-dd2e04fe.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{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,a9 as j}from"./index-20244629.js";import{B as C,i as S,F as y}from"./index-922a0411.js";import{B as k}from"./index-fb1d223f.js";import{S as v}from"./index-a1bce07a.js";import{T as F}from"./index-68ed2d99.js";import"./index.esm-120f9454.js";import"./InfoIcon-35720818.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'; diff --git a/build/assets/index-b9d6353c.js b/build/assets/index-5d1ac3c2.js similarity index 98% rename from build/assets/index-b9d6353c.js rename to build/assets/index-5d1ac3c2.js index 20e7d7930..36628ce6b 100644 --- a/build/assets/index-b9d6353c.js +++ b/build/assets/index-5d1ac3c2.js @@ -1,4 +1,4 @@ -import{r as x,b as Ht,g as Ut,s as Oe,_ as U,u as Zt,ac as go,a as Xt,j as o,c as Kt,bo as Ue,bp as pt,d as qt,e as me,f as vt,ad as bo,ae as yo,b9 as ft,o as z,T as ee,F as w,aW as We,q as $,bq as wo,br as et,bs as jo,b8 as Qt,O as Jt,a9 as Ye,aV as he,a0 as Ct,Z as Et,Y as Pt,X as Tt,V as vo,M as Co,ao as Mt}from"./index-453237c9.js";import{B as Eo}from"./index-12293453.js";import{i as ht,B as Se,F as eo,k as mt,q as Po,h as To,I as Mo,r as Ao,b as to}from"./index-aa07e3c0.js";import{A as Me,O as Oo,a as At,N as oo}from"./index-6f7942fe.js";import{T as He}from"./index-66983695.js";import{C as le}from"./ClipLoader-c4c3d020.js";import{D as no}from"./DeleteIcon-580f7113.js";import{P as so}from"./PlusIcon-4d3aaca0.js";import{p as dt,c as So,g as _o}from"./index-44e303ef.js";import{e as ko}from"./Stack-b37dd094.js";import{S as $o,F as Io}from"./FormControlLabel-b4f67dac.js";import{g as No,m as zo,u as J,b as Ze,t as ut,T as ro,i as io,H as Ro,j as Ot,C as Lo,P as Bo,k as Vo}from"./index-5f9e041e.js";import{Z as Do,_ as Fo,E as Go,V as N,$ as pe,a0 as fe,a1 as St,P as De,a2 as Fe,a3 as _t,a as K,a4 as Wo,G as Yo,C as Ho}from"./three.module-2ce81f73.js";import"./Popover-619582c9.js";import"./useSlotProps-0f0c60ff.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";import"./index.esm-1996df7a.js";import"./InfoIcon-dd2e04fe.js";import"./Typography-d70fa287.js";const Uo=x.createContext(),kt=Uo;function Zo(t){return Ht("MuiGrid",t)}const Xo=[0,1,2,3,4,5,6,7,8,9,10],Ko=["column-reverse","column","row-reverse","row"],qo=["nowrap","wrap-reverse","wrap"],Te=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Qo=Ut("MuiGrid",["root","container","item","zeroMinWidth",...Xo.map(t=>`spacing-xs-${t}`),...Ko.map(t=>`direction-xs-${t}`),...qo.map(t=>`wrap-xs-${t}`),...Te.map(t=>`grid-xs-${t}`),...Te.map(t=>`grid-sm-${t}`),...Te.map(t=>`grid-md-${t}`),...Te.map(t=>`grid-lg-${t}`),...Te.map(t=>`grid-xl-${t}`)]),Ae=Qo,Jo=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xe(t){const n=parseFloat(t);return`${n}${String(t).replace(String(n),"")||"px"}`}function en({theme:t,ownerState:n}){let s;return t.breakpoints.keys.reduce((e,i)=>{let l={};if(n[i]&&(s=n[i]),!s)return e;if(s===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Ue({values:n.columns,breakpoints:t.breakpoints.values}),a=typeof d=="object"?d[i]:d;if(a==null)return e;const c=`${Math.round(s/a*1e8)/1e6}%`;let j={};if(n.container&&n.item&&n.columnSpacing!==0){const u=t.spacing(n.columnSpacing);if(u!=="0px"){const h=`calc(${c} + ${xe(u)})`;j={flexBasis:h,maxWidth:h}}}l=U({flexBasis:c,flexGrow:0,maxWidth:c},j)}return t.breakpoints.values[i]===0?Object.assign(e,l):e[t.breakpoints.up(i)]=l,e},{})}function tn({theme:t,ownerState:n}){const s=Ue({values:n.direction,breakpoints:t.breakpoints.values});return pt({theme:t},s,e=>{const i={flexDirection:e};return e.indexOf("column")===0&&(i[`& > .${Ae.item}`]={maxWidth:"none"}),i})}function ao({breakpoints:t,values:n}){let s="";Object.keys(n).forEach(i=>{s===""&&n[i]!==0&&(s=i)});const e=Object.keys(t).sort((i,l)=>t[i]-t[l]);return e.slice(0,e.indexOf(s))}function on({theme:t,ownerState:n}){const{container:s,rowSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{marginTop:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingTop:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{marginTop:0,[`& > .${Ae.item}`]:{paddingTop:0}}})}return i}function nn({theme:t,ownerState:n}){const{container:s,columnSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{width:`calc(100% + ${xe(u)})`,marginLeft:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingLeft:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Ae.item}`]:{paddingLeft:0}}})}return i}function sn(t,n,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return n.forEach(i=>{const l=t[i];Number(l)>0&&e.push(s[`spacing-${i}-${String(l)}`])}),e}const rn=Oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t,{container:e,direction:i,item:l,spacing:d,wrap:a,zeroMinWidth:c,breakpoints:j}=s;let u=[];e&&(u=sn(d,j,n));const h=[];return j.forEach(m=>{const g=s[m];g&&h.push(n[`grid-${m}-${String(g)}`])}),[n.root,e&&n.container,l&&n.item,c&&n.zeroMinWidth,...u,i!=="row"&&n[`direction-xs-${String(i)}`],a!=="wrap"&&n[`wrap-xs-${String(a)}`],...h]}})(({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}),tn,on,nn,en);function an(t,n){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return n.forEach(e=>{const i=t[e];if(Number(i)>0){const l=`spacing-${e}-${String(i)}`;s.push(l)}}),s}const cn=t=>{const{classes:n,container:s,direction:e,item:i,spacing:l,wrap:d,zeroMinWidth:a,breakpoints:c}=t;let j=[];s&&(j=an(l,c));const u=[];c.forEach(m=>{const g=t[m];g&&u.push(`grid-${m}-${String(g)}`)});const h={root:["root",s&&"container",i&&"item",a&&"zeroMinWidth",...j,e!=="row"&&`direction-xs-${String(e)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...u]};return qt(h,Zo,n)},ln=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiGrid"}),{breakpoints:i}=go(),l=ko(e),{className:d,columns:a,columnSpacing:c,component:j="div",container:u=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:b=0,wrap:y="wrap",zeroMinWidth:P=!1}=l,C=Xt(l,Jo),v=g||b,O=c||b,A=x.useContext(kt),E=u?a||12:A,I={},V=U({},C);i.keys.forEach(f=>{C[f]!=null&&(I[f]=C[f],delete V[f])});const R=U({},l,{columns:E,container:u,direction:h,item:m,rowSpacing:v,columnSpacing:O,wrap:y,zeroMinWidth:P,spacing:b},I,{breakpoints:i.keys}),F=cn(R);return o.jsx(kt.Provider,{value:E,children:o.jsx(rn,U({ownerState:R,className:Kt(F.root,d),as:j,ref:s},V))})}),ie=ln;function dn(t){return Ht("MuiSwitch",t)}const un=Ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=un,pn=["className","color","edge","size","sx"],fn=t=>{const{classes:n,edge:s,size:e,color:i,checked:l,disabled:d}=t,a={root:["root",s&&`edge${me(s)}`,`size${me(e)}`],switchBase:["switchBase",`color${me(i)}`,l&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=qt(a,dn,n);return U({},n,c)},hn=Oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.edge&&n[`edge${me(s.edge)}`],n[`size${me(s.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,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),mn=Oe($o,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.switchBase,{[`& .${H.input}`]:n.input},s.color!=="default"&&n[`color${me(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:n})=>U({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${t.palette.mode==="light"?bo(t.palette[n.color].main,.62):yo(t.palette[n.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})),xn=Oe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,n)=>n.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}`})),gn=Oe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,n)=>n.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),bn=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiSwitch"}),{className:i,color:l="primary",edge:d=!1,size:a="medium",sx:c}=e,j=Xt(e,pn),u=U({},e,{color:l,edge:d,size:a}),h=fn(u),m=o.jsx(gn,{className:h.thumb,ownerState:u});return o.jsxs(hn,{className:Kt(h.root,i),sx:c,ownerState:u,children:[o.jsx(mn,U({type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:u},j,{classes:U({},h,{root:h.switchBase})})),o.jsx(xn,{className:h.track,ownerState:u})]})}),co=bn,yn={type:"",parent:""},$t=({onSelect:t,dataTestId:n,edgeLink:s,hideSelectAll:e})=>{const i=ht({mode:"onChange",defaultValues:yn}),{watch:l,setValue:d}=i,[a,c]=x.useState([]),[j,u]=x.useState(!1),h=y=>{d("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},m=y=>y.charAt(0).toUpperCase()+y.slice(1);x.useEffect(()=>{(async()=>{u(!0);try{const C=(await ft()).schemas.filter(O=>!O.is_deleted&&O.type).map(O=>(O==null?void 0:O.type)==="thing"?{label:"No Parent",value:O.type}:{label:m(O.type),value:O.type});c(e?C:[{label:"Select all",value:"all"},...C]),s&&d("parent",s)}catch(P){console.warn(P)}finally{u(!1)}})()},[s,d,e]);const g=l("parent"),b=()=>{const y=a==null?void 0:a.find(P=>P.value===g);if(y)return y;if(s)return{label:s,value:s}};return o.jsx(Me,{dataTestId:n,disabled:!!s,isLoading:j,onSelect:h,options:a||Oo,selectedValue:b()})},wn=({selectedType:t,setSelectedFromNode:n,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:i,selectedToNode:l})=>{const d=l==="all",a=i==="all";return o.jsxs(w,{children:[o.jsx(w,{align:"center",direction:"row",justify:"space-between",mb:35,children:o.jsx(w,{align:"center",direction:"row",children:o.jsx(jn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Source"})}),o.jsx($t,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:d,onSelect:n})]}),o.jsxs(w,{mb:10,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Edge Name"})}),o.jsx(w,{mb:12,children:o.jsx(He,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...We},value:t})})]}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Destination"})}),o.jsx($t,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:a,onSelect:s})]})]})},jn=z(ee)` +import{r as x,b as Ht,g as Ut,s as Oe,_ as U,u as Zt,ac as go,a as Xt,j as o,c as Kt,bo as Ue,bp as pt,d as qt,e as me,f as vt,ad as bo,ae as yo,b9 as ft,o as z,T as ee,F as w,aW as We,q as $,bq as wo,br as et,bs as jo,b8 as Qt,O as Jt,a9 as Ye,aV as he,a0 as Ct,Z as Et,Y as Pt,X as Tt,V as vo,M as Co,ao as Mt}from"./index-20244629.js";import{B as Eo}from"./index-fb1d223f.js";import{i as ht,B as Se,F as eo,k as mt,q as Po,h as To,I as Mo,r as Ao,b as to}from"./index-922a0411.js";import{A as Me,O as Oo,a as At,N as oo}from"./index-bb4ca660.js";import{T as He}from"./index-68ed2d99.js";import{C as le}from"./ClipLoader-a0c1d0d5.js";import{D as no}from"./DeleteIcon-b904bd34.js";import{P as so}from"./PlusIcon-f79d966c.js";import{p as dt,c as So,g as _o}from"./index-44e303ef.js";import{e as ko}from"./Stack-76b9b130.js";import{S as $o,F as Io}from"./FormControlLabel-dd6fa8a1.js";import{g as No,m as zo,u as J,b as Ze,t as ut,T as ro,i as io,H as Ro,j as Ot,C as Lo,P as Bo,k as Vo}from"./index-b9333c3d.js";import{Z as Do,_ as Fo,E as Go,V as N,$ as pe,a0 as fe,a1 as St,P as De,a2 as Fe,a3 as _t,a as K,a4 as Wo,G as Yo,C as Ho}from"./three.module-2ce81f73.js";import"./Popover-aff34d88.js";import"./useSlotProps-4a56e8a6.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";import"./index.esm-120f9454.js";import"./InfoIcon-35720818.js";import"./Typography-2d560971.js";const Uo=x.createContext(),kt=Uo;function Zo(t){return Ht("MuiGrid",t)}const Xo=[0,1,2,3,4,5,6,7,8,9,10],Ko=["column-reverse","column","row-reverse","row"],qo=["nowrap","wrap-reverse","wrap"],Te=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Qo=Ut("MuiGrid",["root","container","item","zeroMinWidth",...Xo.map(t=>`spacing-xs-${t}`),...Ko.map(t=>`direction-xs-${t}`),...qo.map(t=>`wrap-xs-${t}`),...Te.map(t=>`grid-xs-${t}`),...Te.map(t=>`grid-sm-${t}`),...Te.map(t=>`grid-md-${t}`),...Te.map(t=>`grid-lg-${t}`),...Te.map(t=>`grid-xl-${t}`)]),Ae=Qo,Jo=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xe(t){const n=parseFloat(t);return`${n}${String(t).replace(String(n),"")||"px"}`}function en({theme:t,ownerState:n}){let s;return t.breakpoints.keys.reduce((e,i)=>{let l={};if(n[i]&&(s=n[i]),!s)return e;if(s===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Ue({values:n.columns,breakpoints:t.breakpoints.values}),a=typeof d=="object"?d[i]:d;if(a==null)return e;const c=`${Math.round(s/a*1e8)/1e6}%`;let j={};if(n.container&&n.item&&n.columnSpacing!==0){const u=t.spacing(n.columnSpacing);if(u!=="0px"){const h=`calc(${c} + ${xe(u)})`;j={flexBasis:h,maxWidth:h}}}l=U({flexBasis:c,flexGrow:0,maxWidth:c},j)}return t.breakpoints.values[i]===0?Object.assign(e,l):e[t.breakpoints.up(i)]=l,e},{})}function tn({theme:t,ownerState:n}){const s=Ue({values:n.direction,breakpoints:t.breakpoints.values});return pt({theme:t},s,e=>{const i={flexDirection:e};return e.indexOf("column")===0&&(i[`& > .${Ae.item}`]={maxWidth:"none"}),i})}function ao({breakpoints:t,values:n}){let s="";Object.keys(n).forEach(i=>{s===""&&n[i]!==0&&(s=i)});const e=Object.keys(t).sort((i,l)=>t[i]-t[l]);return e.slice(0,e.indexOf(s))}function on({theme:t,ownerState:n}){const{container:s,rowSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{marginTop:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingTop:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{marginTop:0,[`& > .${Ae.item}`]:{paddingTop:0}}})}return i}function nn({theme:t,ownerState:n}){const{container:s,columnSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{width:`calc(100% + ${xe(u)})`,marginLeft:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingLeft:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Ae.item}`]:{paddingLeft:0}}})}return i}function sn(t,n,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return n.forEach(i=>{const l=t[i];Number(l)>0&&e.push(s[`spacing-${i}-${String(l)}`])}),e}const rn=Oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t,{container:e,direction:i,item:l,spacing:d,wrap:a,zeroMinWidth:c,breakpoints:j}=s;let u=[];e&&(u=sn(d,j,n));const h=[];return j.forEach(m=>{const g=s[m];g&&h.push(n[`grid-${m}-${String(g)}`])}),[n.root,e&&n.container,l&&n.item,c&&n.zeroMinWidth,...u,i!=="row"&&n[`direction-xs-${String(i)}`],a!=="wrap"&&n[`wrap-xs-${String(a)}`],...h]}})(({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}),tn,on,nn,en);function an(t,n){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return n.forEach(e=>{const i=t[e];if(Number(i)>0){const l=`spacing-${e}-${String(i)}`;s.push(l)}}),s}const cn=t=>{const{classes:n,container:s,direction:e,item:i,spacing:l,wrap:d,zeroMinWidth:a,breakpoints:c}=t;let j=[];s&&(j=an(l,c));const u=[];c.forEach(m=>{const g=t[m];g&&u.push(`grid-${m}-${String(g)}`)});const h={root:["root",s&&"container",i&&"item",a&&"zeroMinWidth",...j,e!=="row"&&`direction-xs-${String(e)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...u]};return qt(h,Zo,n)},ln=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiGrid"}),{breakpoints:i}=go(),l=ko(e),{className:d,columns:a,columnSpacing:c,component:j="div",container:u=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:b=0,wrap:y="wrap",zeroMinWidth:P=!1}=l,C=Xt(l,Jo),v=g||b,O=c||b,A=x.useContext(kt),E=u?a||12:A,I={},V=U({},C);i.keys.forEach(f=>{C[f]!=null&&(I[f]=C[f],delete V[f])});const R=U({},l,{columns:E,container:u,direction:h,item:m,rowSpacing:v,columnSpacing:O,wrap:y,zeroMinWidth:P,spacing:b},I,{breakpoints:i.keys}),F=cn(R);return o.jsx(kt.Provider,{value:E,children:o.jsx(rn,U({ownerState:R,className:Kt(F.root,d),as:j,ref:s},V))})}),ie=ln;function dn(t){return Ht("MuiSwitch",t)}const un=Ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=un,pn=["className","color","edge","size","sx"],fn=t=>{const{classes:n,edge:s,size:e,color:i,checked:l,disabled:d}=t,a={root:["root",s&&`edge${me(s)}`,`size${me(e)}`],switchBase:["switchBase",`color${me(i)}`,l&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=qt(a,dn,n);return U({},n,c)},hn=Oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.edge&&n[`edge${me(s.edge)}`],n[`size${me(s.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,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),mn=Oe($o,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.switchBase,{[`& .${H.input}`]:n.input},s.color!=="default"&&n[`color${me(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:n})=>U({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${t.palette.mode==="light"?bo(t.palette[n.color].main,.62):yo(t.palette[n.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})),xn=Oe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,n)=>n.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}`})),gn=Oe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,n)=>n.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),bn=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiSwitch"}),{className:i,color:l="primary",edge:d=!1,size:a="medium",sx:c}=e,j=Xt(e,pn),u=U({},e,{color:l,edge:d,size:a}),h=fn(u),m=o.jsx(gn,{className:h.thumb,ownerState:u});return o.jsxs(hn,{className:Kt(h.root,i),sx:c,ownerState:u,children:[o.jsx(mn,U({type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:u},j,{classes:U({},h,{root:h.switchBase})})),o.jsx(xn,{className:h.track,ownerState:u})]})}),co=bn,yn={type:"",parent:""},$t=({onSelect:t,dataTestId:n,edgeLink:s,hideSelectAll:e})=>{const i=ht({mode:"onChange",defaultValues:yn}),{watch:l,setValue:d}=i,[a,c]=x.useState([]),[j,u]=x.useState(!1),h=y=>{d("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},m=y=>y.charAt(0).toUpperCase()+y.slice(1);x.useEffect(()=>{(async()=>{u(!0);try{const C=(await ft()).schemas.filter(O=>!O.is_deleted&&O.type).map(O=>(O==null?void 0:O.type)==="thing"?{label:"No Parent",value:O.type}:{label:m(O.type),value:O.type});c(e?C:[{label:"Select all",value:"all"},...C]),s&&d("parent",s)}catch(P){console.warn(P)}finally{u(!1)}})()},[s,d,e]);const g=l("parent"),b=()=>{const y=a==null?void 0:a.find(P=>P.value===g);if(y)return y;if(s)return{label:s,value:s}};return o.jsx(Me,{dataTestId:n,disabled:!!s,isLoading:j,onSelect:h,options:a||Oo,selectedValue:b()})},wn=({selectedType:t,setSelectedFromNode:n,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:i,selectedToNode:l})=>{const d=l==="all",a=i==="all";return o.jsxs(w,{children:[o.jsx(w,{align:"center",direction:"row",justify:"space-between",mb:35,children:o.jsx(w,{align:"center",direction:"row",children:o.jsx(jn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Source"})}),o.jsx($t,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:d,onSelect:n})]}),o.jsxs(w,{mb:10,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Edge Name"})}),o.jsx(w,{mb:12,children:o.jsx(He,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...We},value:t})})]}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Destination"})}),o.jsx($t,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:a,onSelect:s})]})]})},jn=z(ee)` font-size: 22px; font-weight: 600; `,vn=({onCancel:t,edgeLinkData:n,setGraphLoading:s})=>{var I,V,R;const e=ht({mode:"onChange"}),{setValue:i,getValues:l}=e,[d,a]=x.useState(!1),[c,j]=x.useState(!1),[u,h]=x.useState(""),[m,g]=x.useState(""),[b,y]=x.useState(""),P=e.watch("type");x.useEffect(()=>{i("type",n==null?void 0:n.edgeType)},[n==null?void 0:n.edgeType,i]),x.useEffect(()=>{h(P)},[P]);const C=e.handleSubmit(async F=>{a(!0),s(!0);const f={source:m,target:b,edge_type:F.type},_={ref_id:n==null?void 0:n.refId,edge_type:F.type};try{if(n!=null&&n.refId)await wo(_);else if(b&&m)if(m==="all"||b==="all"){const k=(await ft()).schemas.filter(W=>!W.is_deleted&&W.type).map(W=>W.type);m==="all"?await Promise.all(k.map(W=>et({...f,source:W}))):b==="all"&&await Promise.all(k.map(W=>et({...f,target:W})))}else await et(f)}catch(D){console.warn("API Error:",D)}finally{a(!1),s(!1),g(""),y(""),t()}}),v=(V=(I=l())==null?void 0:I.type)==null?void 0:V.trim(),O=v&&((R=n==null?void 0:n.edgeType)==null?void 0:R.trim())!==v,A=n!=null&&n.refId?d||!O:d||!b||!m||!u,E=async()=>{j(!0),s(!0);try{n!=null&&n.refId&&await jo(n==null?void 0:n.refId)}catch(F){console.warn("API Error:",F)}finally{j(!1),s(!1),g(""),y(""),t()}};return o.jsx(eo,{...e,children:o.jsxs("form",{id:"add-type-form",onSubmit:C,children:[o.jsx(wn,{edgeLinkData:n,selectedFromNode:m,selectedToNode:b,selectedType:u,setSelectedFromNode:g,setSelectedToNode:y}),o.jsxs(w,{direction:"row",justify:"space-between",mt:20,children:[(n==null?void 0:n.refId)&&o.jsx(w,{direction:"column",children:o.jsxs(En,{color:"secondary",disabled:c,onClick:E,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",c&&o.jsxs(It,{children:[o.jsx(le,{color:$.lightGray,size:12})," "]})]})}),o.jsxs(Cn,{color:"secondary",disabled:A,onClick:C,size:"large",variant:"contained",children:["Confirm",d&&o.jsxs(It,{children:[o.jsx(le,{color:$.lightGray,size:12})," "]})]})]})]})})},Cn=z(Se)` diff --git a/build/assets/index-fdc6b6de.js b/build/assets/index-5dc8bdba.js similarity index 96% rename from build/assets/index-fdc6b6de.js rename to build/assets/index-5dc8bdba.js index 005538536..e29de4b19 100644 --- a/build/assets/index-fdc6b6de.js +++ b/build/assets/index-5dc8bdba.js @@ -1,4 +1,4 @@ -import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,aa as se,b5 as ne,b6 as oe,a9 as re,b7 as ie,N as ae}from"./index-453237c9.js";import{B as w,i as ce,F as le}from"./index-aa07e3c0.js";import{B as de}from"./index-12293453.js";import{S as ue}from"./index-185eb85f.js";import{e as xe}from"./index.esm-1996df7a.js";import{C as he}from"./CheckIcon-3a73121d.js";import{C as ge}from"./ClipLoader-c4c3d020.js";import{T as z}from"./index-66983695.js";import"./InfoIcon-dd2e04fe.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,aa as se,b5 as ne,b6 as oe,a9 as re,b7 as ie,N as ae}from"./index-20244629.js";import{B as w,i as ce,F as le}from"./index-922a0411.js";import{B as de}from"./index-fb1d223f.js";import{S as ue}from"./index-a1bce07a.js";import{e as xe}from"./index.esm-120f9454.js";import{C as he}from"./CheckIcon-78afa5f1.js";import{C as ge}from"./ClipLoader-a0c1d0d5.js";import{T as z}from"./index-68ed2d99.js";import"./InfoIcon-35720818.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${l.GRAY7}; diff --git a/build/assets/index-66983695.js b/build/assets/index-68ed2d99.js similarity index 98% rename from build/assets/index-66983695.js rename to build/assets/index-68ed2d99.js index b581a7375..c96fa5e3c 100644 --- a/build/assets/index-66983695.js +++ b/build/assets/index-68ed2d99.js @@ -1,4 +1,4 @@ -import{r as I,h as fe,n as de,o as N,q as S,j as E,F as L,T as pe}from"./index-453237c9.js";import{h as he,z as ge,D as ve}from"./index-aa07e3c0.js";import{e as me}from"./index.esm-1996df7a.js";import{I as xe}from"./InfoIcon-dd2e04fe.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,_=ne(k),Pe=fe,K=ne(ke);function B(){return(B=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&d=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&dS[e]}; background: transparent; diff --git a/build/assets/index-faf9ee00.js b/build/assets/index-6bd8a92b.js similarity index 85% rename from build/assets/index-faf9ee00.js rename to build/assets/index-6bd8a92b.js index 37d65e2b0..dfd477941 100644 --- a/build/assets/index-faf9ee00.js +++ b/build/assets/index-6bd8a92b.js @@ -1 +1 @@ -import{w as f,bk as m}from"./index-453237c9.js";import{D as y}from"./NodeCircleIcon-bfb09d34.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{w as f,bk as m}from"./index-20244629.js";import{D as y}from"./NodeCircleIcon-4410772f.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-82036184.js b/build/assets/index-7978898a.js similarity index 93% rename from build/assets/index-82036184.js rename to build/assets/index-7978898a.js index 34c6188a6..3434d2fb5 100644 --- a/build/assets/index-82036184.js +++ b/build/assets/index-7978898a.js @@ -1,4 +1,4 @@ -import{a9 as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,K as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ab as ae,aa as ce,b6 as le}from"./index-453237c9.js";import{B as C,h as de,i as pe,F as me}from"./index-aa07e3c0.js";import{B as xe}from"./index-12293453.js";import{S as ue}from"./index-185eb85f.js";import{e as he}from"./index.esm-1996df7a.js";import{C as fe}from"./CheckIcon-3a73121d.js";import{C as W}from"./ClipLoader-c4c3d020.js";import{n as z,A as ye,O as ge,i as je}from"./index-6f7942fe.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-66983695.js";import{c as we}from"./index-64f1c910.js";import"./Stack-b37dd094.js";import"./useSlotProps-0f0c60ff.js";import"./Popover-619582c9.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";import"./three.module-2ce81f73.js";import"./InfoIcon-dd2e04fe.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(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{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"})` +import{a9 as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,K as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ab as ae,aa as ce,b6 as le}from"./index-20244629.js";import{B as C,h as de,i as pe,F as me}from"./index-922a0411.js";import{B as xe}from"./index-fb1d223f.js";import{S as ue}from"./index-a1bce07a.js";import{e as he}from"./index.esm-120f9454.js";import{C as fe}from"./CheckIcon-78afa5f1.js";import{C as W}from"./ClipLoader-a0c1d0d5.js";import{n as z,A as ye,O as ge,i as je}from"./index-bb4ca660.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-68ed2d99.js";import{c as we}from"./index-64f1c910.js";import"./Stack-76b9b130.js";import"./useSlotProps-4a56e8a6.js";import"./Popover-aff34d88.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";import"./three.module-2ce81f73.js";import"./InfoIcon-35720818.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(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{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}; diff --git a/build/assets/index-f332f0c0.js b/build/assets/index-81b1cbe5.js similarity index 91% rename from build/assets/index-f332f0c0.js rename to build/assets/index-81b1cbe5.js index 55ead7ff3..956149878 100644 --- a/build/assets/index-f332f0c0.js +++ b/build/assets/index-81b1cbe5.js @@ -1,4 +1,4 @@ -import{r,j as e,bf as F,a7 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-453237c9.js";import{B as z}from"./index-12293453.js";import{k as D,i as M,F as Y,B as P}from"./index-aa07e3c0.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-bfb09d34.js";import{A as L,O as V,T as W}from"./index-6f7942fe.js";import{C as _}from"./ClipLoader-c4c3d020.js";import"./Stack-b37dd094.js";import"./useSlotProps-0f0c60ff.js";import"./Popover-619582c9.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";const $=({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 E(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)||V,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($,{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(q,{})})]})]})]})},Q=l.div` +import{r,j as e,bf as F,a7 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-20244629.js";import{B as z}from"./index-fb1d223f.js";import{k as D,i as M,F as Y,B as P}from"./index-922a0411.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-4410772f.js";import{A as L,O as V,T as W}from"./index-bb4ca660.js";import{C as _}from"./ClipLoader-a0c1d0d5.js";import"./Stack-76b9b130.js";import"./useSlotProps-4a56e8a6.js";import"./Popover-aff34d88.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";const $=({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 E(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)||V,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($,{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(q,{})})]})]})]})},Q=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-aa07e3c0.js b/build/assets/index-922a0411.js similarity index 97% rename from build/assets/index-aa07e3c0.js rename to build/assets/index-922a0411.js index 2bf1f5b0c..baae0e128 100644 --- a/build/assets/index-aa07e3c0.js +++ b/build/assets/index-922a0411.js @@ -1,4 +1,4 @@ -import{r as d,R as h,_ as Z,a as Fn,c as We,j as T,g as Or,k as Xo,s as Wt,u as Pr,b as Zo,d as Qo,e as Te,f as en,h as Jo,i as jl,l as Ll,m as ga,$ as Fl,P as ce,n as zl,W as Nl,o as pe,p as ei,q as J,F as ee,t as Vl,v as Bl,w as ti,x as ma,L as Wl,y as ba,z as ya,A as Ar,B as ni,T as Ae,S as Hl,C as ze,D as Ul,E as va,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-453237c9.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=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};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function Yn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Pi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Ai;const ou={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 iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Ai),Ai=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ii=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(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 pu(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]),T.jsx("span",{className:p,style:g,children:T.jsx("span",{className:m})})}const xu=Or("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Di,Mi,ji,Li;const xo=550,Eu=80,$u=Xo(Di||(Di=Dr` +import{r as d,R as h,_ as Z,a as Fn,c as We,j as T,g as Or,k as Xo,s as Wt,u as Pr,b as Zo,d as Qo,e as Te,f as en,h as Jo,i as jl,l as Ll,m as ga,$ as Fl,P as ce,n as zl,W as Nl,o as pe,p as ei,q as J,F as ee,t as Vl,v as Bl,w as ti,x as ma,L as Wl,y as ba,z as ya,A as Ar,B as ni,T as Ae,S as Hl,C as ze,D as Ul,E as va,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-20244629.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=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};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function Yn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Pi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Ai;const ou={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 iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Ai),Ai=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ii=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(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 pu(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]),T.jsx("span",{className:p,style:g,children:T.jsx("span",{className:m})})}const xu=Or("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Di,Mi,ji,Li;const xo=550,Eu=80,$u=Xo(Di||(Di=Dr` 0% { transform: scale(0); opacity: 0.1; @@ -338,7 +338,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 65px; right: 55px; z-index: 100; -`,Vy=()=>{const e=d.useContext(Hl);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(()=>ze(()=>import("./index-65b91810.js"),["assets/index-65b91810.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/ClipLoader-c4c3d020.js","assets/index-66983695.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js","assets/index-185eb85f.js","assets/Tabs-832e46f5.js","assets/useSlotProps-0f0c60ff.js","assets/createSvgIcon-b3dd03d1.js"]).then(({SettingsModal:e})=>({default:e}))),Ky=d.lazy(()=>ze(()=>import("./index-fdc6b6de.js"),["assets/index-fdc6b6de.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-185eb85f.js","assets/index.esm-1996df7a.js","assets/CheckIcon-3a73121d.js","assets/ClipLoader-c4c3d020.js","assets/index-66983695.js","assets/InfoIcon-dd2e04fe.js"]).then(({AddContentModal:e})=>({default:e}))),Gy=d.lazy(()=>ze(()=>import("./index-82036184.js"),["assets/index-82036184.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-185eb85f.js","assets/index.esm-1996df7a.js","assets/CheckIcon-3a73121d.js","assets/ClipLoader-c4c3d020.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-66983695.js","assets/InfoIcon-dd2e04fe.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Yy=d.lazy(()=>ze(()=>import("./index-6d901b61.js"),["assets/index-6d901b61.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/PlusIcon-4d3aaca0.js","assets/NodeCircleIcon-bfb09d34.js","assets/ClipLoader-c4c3d020.js","assets/index.esm-1996df7a.js","assets/Popover-619582c9.js","assets/useSlotProps-0f0c60ff.js","assets/SearchIcon-2879dc36.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/index-66983695.js","assets/InfoIcon-dd2e04fe.js","assets/DeleteIcon-580f7113.js","assets/MergeIcon-c1c5911f.js","assets/index-faf9ee00.js","assets/CheckIcon-3a73121d.js","assets/Typography-d70fa287.js","assets/Tabs-832e46f5.js"]).then(({SourcesTableModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-7b8a22d4.js"),["assets/index-7b8a22d4.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-66983695.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js","assets/Skeleton-926f190e.js","assets/ClipLoader-c4c3d020.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-238373e6.js"),["assets/index-238373e6.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/Skeleton-926f190e.js","assets/ClipLoader-c4c3d020.js"]).then(({RemoveNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-f332f0c0.js"),["assets/index-f332f0c0.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/NodeCircleIcon-bfb09d34.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/ClipLoader-c4c3d020.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-22bb9878.js"),["assets/index-22bb9878.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-faf9ee00.js","assets/NodeCircleIcon-bfb09d34.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/ClipLoader-c4c3d020.js"]).then(({MergeNodeModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-e85ff846.js"),["assets/index-e85ff846.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-66983695.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/ClipLoader-c4c3d020.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ev=d.lazy(()=>ze(()=>import("./index-b9d6353c.js"),["assets/index-b9d6353c.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-6f7942fe.js","assets/Stack-b37dd094.js","assets/useSlotProps-0f0c60ff.js","assets/Popover-619582c9.js","assets/createSvgIcon-b3dd03d1.js","assets/TextareaAutosize-4ce1e768.js","assets/index-66983695.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js","assets/ClipLoader-c4c3d020.js","assets/DeleteIcon-580f7113.js","assets/PlusIcon-4d3aaca0.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/FormControlLabel-b4f67dac.js","assets/Typography-d70fa287.js","assets/index-5f9e041e.js"]).then(({BlueprintModal:e})=>({default:e}))),tv=d.lazy(()=>ze(()=>import("./index-dc9b4183.js"),["assets/index-dc9b4183.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-12293453.js","assets/index-185eb85f.js","assets/index.esm-1996df7a.js","assets/index-66983695.js","assets/InfoIcon-dd2e04fe.js"]).then(({UserFeedBackModal:e})=>({default:e}))),nv=()=>T.jsxs(T.Fragment,{children:[T.jsx(Gy,{}),T.jsx(Ky,{}),T.jsx(Uy,{}),T.jsx(qy,{}),T.jsx(Xy,{}),T.jsx(Yy,{}),T.jsx(Zy,{}),T.jsx(Jy,{}),T.jsx(ev,{}),T.jsx(Qy,{}),T.jsx(tv,{})]}),rv=()=>{const e=Ar(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=va(),{abortFetchData:r}=ni(s=>s),o=Kl();if(!e)return null;const i=()=>{n(null),r(),t(),o("/")};return T.jsxs(ov,{children:[T.jsxs(iv,{onClick:i,children:[T.jsx(T.Fragment,{children:e.title&&T.jsx(Ae,{className:"title",color:"white",children:e.title})}),T.jsx(Ae,{className:"subtitle",children:"Second Brain"})]}),T.jsx(Gl,{})]})},ov=pe(ee).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,Vy=()=>{const e=d.useContext(Hl);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(()=>ze(()=>import("./index-bce8e63a.js"),["assets/index-bce8e63a.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/ClipLoader-a0c1d0d5.js","assets/index-68ed2d99.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js","assets/index-a1bce07a.js","assets/Tabs-e60acdc7.js","assets/useSlotProps-4a56e8a6.js","assets/createSvgIcon-bd0d8dc7.js"]).then(({SettingsModal:e})=>({default:e}))),Ky=d.lazy(()=>ze(()=>import("./index-5dc8bdba.js"),["assets/index-5dc8bdba.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-a1bce07a.js","assets/index.esm-120f9454.js","assets/CheckIcon-78afa5f1.js","assets/ClipLoader-a0c1d0d5.js","assets/index-68ed2d99.js","assets/InfoIcon-35720818.js"]).then(({AddContentModal:e})=>({default:e}))),Gy=d.lazy(()=>ze(()=>import("./index-7978898a.js"),["assets/index-7978898a.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-a1bce07a.js","assets/index.esm-120f9454.js","assets/CheckIcon-78afa5f1.js","assets/ClipLoader-a0c1d0d5.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-68ed2d99.js","assets/InfoIcon-35720818.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Yy=d.lazy(()=>ze(()=>import("./index-0494f451.js"),["assets/index-0494f451.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/PlusIcon-f79d966c.js","assets/NodeCircleIcon-4410772f.js","assets/ClipLoader-a0c1d0d5.js","assets/index.esm-120f9454.js","assets/Popover-aff34d88.js","assets/useSlotProps-4a56e8a6.js","assets/SearchIcon-61a39fc4.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/index-68ed2d99.js","assets/InfoIcon-35720818.js","assets/DeleteIcon-b904bd34.js","assets/MergeIcon-32b40892.js","assets/index-6bd8a92b.js","assets/CheckIcon-78afa5f1.js","assets/Typography-2d560971.js","assets/Tabs-e60acdc7.js"]).then(({SourcesTableModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-17ed309d.js"),["assets/index-17ed309d.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-68ed2d99.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js","assets/Skeleton-e4541980.js","assets/ClipLoader-a0c1d0d5.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-ce0d9b71.js"),["assets/index-ce0d9b71.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/Skeleton-e4541980.js","assets/ClipLoader-a0c1d0d5.js"]).then(({RemoveNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-81b1cbe5.js"),["assets/index-81b1cbe5.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/NodeCircleIcon-4410772f.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/ClipLoader-a0c1d0d5.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-306d154d.js"),["assets/index-306d154d.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-6bd8a92b.js","assets/NodeCircleIcon-4410772f.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/ClipLoader-a0c1d0d5.js"]).then(({MergeNodeModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-f8e07c95.js"),["assets/index-f8e07c95.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-68ed2d99.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/ClipLoader-a0c1d0d5.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ev=d.lazy(()=>ze(()=>import("./index-5d1ac3c2.js"),["assets/index-5d1ac3c2.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/index-68ed2d99.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js","assets/ClipLoader-a0c1d0d5.js","assets/DeleteIcon-b904bd34.js","assets/PlusIcon-f79d966c.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/FormControlLabel-dd6fa8a1.js","assets/Typography-2d560971.js","assets/index-b9333c3d.js"]).then(({BlueprintModal:e})=>({default:e}))),tv=d.lazy(()=>ze(()=>import("./index-3fc7a58d.js"),["assets/index-3fc7a58d.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-a1bce07a.js","assets/index.esm-120f9454.js","assets/index-68ed2d99.js","assets/InfoIcon-35720818.js"]).then(({UserFeedBackModal:e})=>({default:e}))),nv=()=>T.jsxs(T.Fragment,{children:[T.jsx(Gy,{}),T.jsx(Ky,{}),T.jsx(Uy,{}),T.jsx(qy,{}),T.jsx(Xy,{}),T.jsx(Yy,{}),T.jsx(Zy,{}),T.jsx(Jy,{}),T.jsx(ev,{}),T.jsx(Qy,{}),T.jsx(tv,{})]}),rv=()=>{const e=Ar(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=va(),{abortFetchData:r}=ni(s=>s),o=Kl();if(!e)return null;const i=()=>{n(null),r(),t(),o("/")};return T.jsxs(ov,{children:[T.jsxs(iv,{onClick:i,children:[T.jsx(T.Fragment,{children:e.title&&T.jsx(Ae,{className:"title",color:"white",children:e.title})}),T.jsx(Ae,{className:"subtitle",children:"Second Brain"})]}),T.jsx(Gl,{})]})},ov=pe(ee).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; position: absolute; top: 0px; @@ -435,4 +435,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${J.white}; font-size: 12px; opacity: 0.5; -`,_v=d.lazy(()=>ze(()=>import("./index-78bcec08.js"),["assets/index-78bcec08.js","assets/index-453237c9.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),Sv=d.lazy(()=>ze(()=>import("./index-82b2aee7.js"),["assets/index-82b2aee7.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/index-5f9e041e.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-4ce1e768.js","assets/useSlotProps-0f0c60ff.js","assets/DeleteIcon-580f7113.js","assets/index.esm-1996df7a.js","assets/index-d2627d6e.js","assets/MergeIcon-c1c5911f.js","assets/PlusIcon-4d3aaca0.js","assets/Popover-619582c9.js","assets/ClipLoader-c4c3d020.js"]).then(({Universe:e})=>({default:e}))),Tv=d.lazy(()=>ze(()=>import("./index-26bde52f.js").then(e=>e.i),["assets/index-26bde52f.js","assets/index-453237c9.js","assets/index-a2878e02.css","assets/SearchIcon-2879dc36.js","assets/ClipLoader-c4c3d020.js","assets/Skeleton-926f190e.js","assets/PlusIcon-4d3aaca0.js","assets/Popover-619582c9.js","assets/useSlotProps-0f0c60ff.js","assets/CheckIcon-3a73121d.js","assets/Stack-b37dd094.js","assets/FormControlLabel-b4f67dac.js","assets/Typography-d70fa287.js","assets/createSvgIcon-b3dd03d1.js","assets/index-12293453.js","assets/index-d2627d6e.js","assets/index.esm-1996df7a.js","assets/InfoIcon-dd2e04fe.js"]).then(({SideBar:e})=>({default:e}))),kv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(F=>[F.setBudget,F.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c,universeQuestionIsOpen:l,setUniverseQuestionIsOpen:u}=Ar(F=>F),f=Wy(F=>F.setTeachMeAnswer),{fetchData:p,setCategoryFilter:g,setAbortRequests:m,addNewNode:b,splashDataLoading:w}=ni(F=>F),{setAiSummaryAnswer:v,getKeyExist:y,aiRefId:$}=va(F=>F),S=ya(),[_,E]=Xl(F=>[F.realtimeGraphFeatureFlag,F.chatInterfaceFeatureFlag]),C=Vy(),R=Jb({mode:"onChange"}),{setValue:L}=R;d.useEffect(()=>{L("search",t??""),c(!1),S(null),a(!1),s(t??""),f(""),g(null)},[t,g,s,a,S,f,c,L]),d.useEffect(()=>{(async()=>{await p(n,m),o(!0),i?await Ql(n):S(null)})()},[i,p,n,m,o,S]);const M=d.useCallback(()=>{r("INCREMENT")},[r]),z=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{answer:F.answer,answerLoading:!1})},[v]),A=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{audio_en:F.audio_EN})},[v]),N=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{questions:F.relevant_questions.map(G=>G.question),questionsLoading:!1})},[v]),j=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{sources:F.sources.map(G=>G.ref_id),sourcesLoading:!1})},[v]),V=d.useCallback(F=>{b(F)},[b]),B=d.useCallback(F=>{F.question&&y($)&&v($,{answerLoading:!1,entities:F.entities})},[v,y,$]);return d.useEffect(()=>(C&&(C.connect(),C.on("connect_error",F=>{console.error("Socket connection error:",F)}),C.on("newnode",M),E&&C.on("extractedentitieshook",B),E&&C.on("askquestionhook",z),E&&C.on("relevantquestionshook",N),E&&C.on("answersourceshook",j),_&&C.on("new_node_created",V),E&&C.on("answeraudiohook",A)),()=>{C&&C.off()}),[C,M,V,_,z,E,N,j,B,A]),d.useEffect(()=>{w||u()},[u,w]),T.jsxs(T.Fragment,{children:[T.jsx(ey,{}),T.jsx(cv,{}),T.jsx(dl,{hidden:!Zl}),T.jsx(d.Suspense,{fallback:T.jsx("div",{children:"Loading..."}),children:w?null:T.jsxs($v,{direction:"row",children:[T.jsxs(Fb,{...R,children:[T.jsx(_v,{}),!l&&T.jsx(Tv,{}),T.jsx(Sv,{}),T.jsx(Fy,{}),T.jsx(rv,{}),T.jsxs(Cv,{children:["v",Hy]}),T.jsx(Rl,{})]}),T.jsx(nv,{}),T.jsx(Ev,{})]})})]})},Vv=Object.freeze(Object.defineProperty({__proto__:null,App:kv},Symbol.toStringTag,{value:"Module"}));export{kl as A,Aa as B,cy as C,zv as D,Vv as E,Fb as F,ly as G,wa as I,Fy as O,gy as P,Py as T,mn as _,Lv as a,Oy as b,Fv as c,uu as d,Pi as e,ru as f,Yn as g,Br as h,Jb as i,Jl as j,hy as k,ay as l,my as m,yy as n,uy as o,xa as p,Nv as q,bp as r,Ov as s,tu as t,sy as u,eu as v,du as w,Ii as x,de as y,W as z}; +`,_v=d.lazy(()=>ze(()=>import("./index-0a4c6ec3.js"),["assets/index-0a4c6ec3.js","assets/index-20244629.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),Sv=d.lazy(()=>ze(()=>import("./index-166b6403.js"),["assets/index-166b6403.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-b9333c3d.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-ed8bfc98.js","assets/useSlotProps-4a56e8a6.js","assets/DeleteIcon-b904bd34.js","assets/index.esm-120f9454.js","assets/index-1477a4a5.js","assets/MergeIcon-32b40892.js","assets/PlusIcon-f79d966c.js","assets/Popover-aff34d88.js","assets/ClipLoader-a0c1d0d5.js"]).then(({Universe:e})=>({default:e}))),Tv=d.lazy(()=>ze(()=>import("./index-c49ebc93.js").then(e=>e.i),["assets/index-c49ebc93.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/SearchIcon-61a39fc4.js","assets/ClipLoader-a0c1d0d5.js","assets/Skeleton-e4541980.js","assets/PlusIcon-f79d966c.js","assets/Popover-aff34d88.js","assets/useSlotProps-4a56e8a6.js","assets/CheckIcon-78afa5f1.js","assets/Stack-76b9b130.js","assets/FormControlLabel-dd6fa8a1.js","assets/Typography-2d560971.js","assets/createSvgIcon-bd0d8dc7.js","assets/index-fb1d223f.js","assets/index-1477a4a5.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js"]).then(({SideBar:e})=>({default:e}))),kv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(F=>[F.setBudget,F.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c,universeQuestionIsOpen:l,setUniverseQuestionIsOpen:u}=Ar(F=>F),f=Wy(F=>F.setTeachMeAnswer),{fetchData:p,setCategoryFilter:g,setAbortRequests:m,addNewNode:b,splashDataLoading:w}=ni(F=>F),{setAiSummaryAnswer:v,getKeyExist:y,aiRefId:$}=va(F=>F),S=ya(),[_,E]=Xl(F=>[F.realtimeGraphFeatureFlag,F.chatInterfaceFeatureFlag]),C=Vy(),R=Jb({mode:"onChange"}),{setValue:L}=R;d.useEffect(()=>{L("search",t??""),c(!1),S(null),a(!1),s(t??""),f(""),g(null)},[t,g,s,a,S,f,c,L]),d.useEffect(()=>{(async()=>{await p(n,m),o(!0),i?await Ql(n):S(null)})()},[i,p,n,m,o,S]);const M=d.useCallback(()=>{r("INCREMENT")},[r]),z=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{answer:F.answer,answerLoading:!1})},[v]),A=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{audio_en:F.audio_EN})},[v]),N=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{questions:F.relevant_questions.map(G=>G.question),questionsLoading:!1})},[v]),j=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{sources:F.sources.map(G=>G.ref_id),sourcesLoading:!1})},[v]),V=d.useCallback(F=>{b(F)},[b]),B=d.useCallback(F=>{F.question&&y($)&&v($,{answerLoading:!1,entities:F.entities})},[v,y,$]);return d.useEffect(()=>(C&&(C.connect(),C.on("connect_error",F=>{console.error("Socket connection error:",F)}),C.on("newnode",M),E&&C.on("extractedentitieshook",B),E&&C.on("askquestionhook",z),E&&C.on("relevantquestionshook",N),E&&C.on("answersourceshook",j),_&&C.on("new_node_created",V),E&&C.on("answeraudiohook",A)),()=>{C&&C.off()}),[C,M,V,_,z,E,N,j,B,A]),d.useEffect(()=>{w||u()},[u,w]),T.jsxs(T.Fragment,{children:[T.jsx(ey,{}),T.jsx(cv,{}),T.jsx(dl,{hidden:!Zl}),T.jsx(d.Suspense,{fallback:T.jsx("div",{children:"Loading..."}),children:w?null:T.jsxs($v,{direction:"row",children:[T.jsxs(Fb,{...R,children:[T.jsx(_v,{}),!l&&T.jsx(Tv,{}),T.jsx(Sv,{}),T.jsx(Fy,{}),T.jsx(rv,{}),T.jsxs(Cv,{children:["v",Hy]}),T.jsx(Rl,{})]}),T.jsx(nv,{}),T.jsx(Ev,{})]})})]})},Vv=Object.freeze(Object.defineProperty({__proto__:null,App:kv},Symbol.toStringTag,{value:"Module"}));export{kl as A,Aa as B,cy as C,zv as D,Vv as E,Fb as F,ly as G,wa as I,Fy as O,gy as P,Py as T,mn as _,Lv as a,Oy as b,Fv as c,uu as d,Pi as e,ru as f,Yn as g,Br as h,Jb as i,Jl as j,hy as k,ay as l,my as m,yy as n,uy as o,xa as p,Nv as q,bp as r,Ov as s,tu as t,sy as u,eu as v,du as w,Ii as x,de as y,W as z}; diff --git a/build/assets/index-185eb85f.js b/build/assets/index-a1bce07a.js similarity index 64% rename from build/assets/index-185eb85f.js rename to build/assets/index-a1bce07a.js index 9f164c075..0230ecbc4 100644 --- a/build/assets/index-185eb85f.js +++ b/build/assets/index-a1bce07a.js @@ -1,4 +1,4 @@ -import{o as i,j as t,q as a}from"./index-453237c9.js";import{f as n}from"./index.esm-1996df7a.js";import{y as e}from"./index-aa07e3c0.js";const r=i.div` +import{o as i,j as t,q as a}from"./index-20244629.js";import{f as n}from"./index.esm-120f9454.js";import{y as e}from"./index-922a0411.js";const r=i.div` display: Flex; justify-content: center; align-items: center; diff --git a/build/assets/index-5f9e041e.js b/build/assets/index-b9333c3d.js similarity index 99% rename from build/assets/index-5f9e041e.js rename to build/assets/index-b9333c3d.js index 7ca3ec12d..aa967e2af 100644 --- a/build/assets/index-5f9e041e.js +++ b/build/assets/index-b9333c3d.js @@ -1,4 +1,4 @@ -import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-453237c9.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{s as _t,c as Ad}from"./index-aa07e3c0.js";var Pc={exports:{}},Gr={};/** +import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-20244629.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{s as _t,c as Ad}from"./index-922a0411.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-6f7942fe.js b/build/assets/index-bb4ca660.js similarity index 99% rename from build/assets/index-6f7942fe.js rename to build/assets/index-bb4ca660.js index 12e3c2c9f..e01d38a11 100644 --- a/build/assets/index-6f7942fe.js +++ b/build/assets/index-bb4ca660.js @@ -1,4 +1,4 @@ -import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ac as Tt,af as Nt,o as At,q as je,F as zt}from"./index-453237c9.js";import{g as xo,t as Dt,e as lo,p as Uo,f as pt,I as ft,T as Et}from"./index-aa07e3c0.js";import{u as fo,a as so,f as io,i as bt,b as Bt,P as No,F as jt,S as Wt}from"./Stack-b37dd094.js";import{a as gt,b as _t,P as Ut,c as Ht}from"./Popover-619582c9.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-0f0c60ff.js";import{c as Ao}from"./createSvgIcon-b3dd03d1.js";import{T as Vt}from"./TextareaAutosize-4ce1e768.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.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=p.useRef({});return p.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=Ao(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:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}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:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.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*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.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:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Dt(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]: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":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(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}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({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,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&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=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),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:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,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${O(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${O(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=p.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:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(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,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,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${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(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${O(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=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=lo(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}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${O(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:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,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=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=lo(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{bt(N)?ze&&ze():_e&&_e()},[ze,_e]);pt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,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=Ao(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"]),A=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"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,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[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.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,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.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,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.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(ft,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(ft,{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(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.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(gt,{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",[`& .${A.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"},[`&.${A.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"},[`&.${A.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),[`&.${A.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}},[`&.${A.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,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=gt,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&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:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="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":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,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:I},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&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,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=dt(Qo||(Qo=So` +import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ac as Tt,af as Nt,o as At,q as je,F as zt}from"./index-20244629.js";import{g as xo,t as Dt,e as lo,p as Uo,f as pt,I as ft,T as Et}from"./index-922a0411.js";import{u as fo,a as so,f as io,i as bt,b as Bt,P as No,F as jt,S as Wt}from"./Stack-76b9b130.js";import{a as gt,b as _t,P as Ut,c as Ht}from"./Popover-aff34d88.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-4a56e8a6.js";import{c as Ao}from"./createSvgIcon-bd0d8dc7.js";import{T as Vt}from"./TextareaAutosize-ed8bfc98.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.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=p.useRef({});return p.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=Ao(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:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}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:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.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*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.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:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Dt(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]: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":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(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}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({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,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&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=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),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:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,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${O(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${O(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=p.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:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(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,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,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${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(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${O(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=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=lo(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}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${O(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:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,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=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=lo(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{bt(N)?ze&&ze():_e&&_e()},[ze,_e]);pt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,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=Ao(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"]),A=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"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,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[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.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,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.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,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.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(ft,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(ft,{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(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.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(gt,{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",[`& .${A.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"},[`&.${A.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"},[`&.${A.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),[`&.${A.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}},[`&.${A.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,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=gt,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&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:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="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":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,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:I},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&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,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=dt(Qo||(Qo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-65b91810.js b/build/assets/index-bce8e63a.js similarity index 92% rename from build/assets/index-65b91810.js rename to build/assets/index-bce8e63a.js index 257972a20..e2dc369bb 100644 --- a/build/assets/index-65b91810.js +++ b/build/assets/index-bce8e63a.js @@ -1,4 +1,4 @@ -import{o as s,q as l,F as n,p as w,j as e,t as G,v as C,T as S,r as f,A as v,aU as A,aV as b,aW as I,J as B,O as y}from"./index-453237c9.js";import{B as z}from"./index-12293453.js";import{u as M,G as k,C as D,l as E,o as R,B as T,i as W,F}from"./index-aa07e3c0.js";import{C as $}from"./ClipLoader-c4c3d020.js";import{T as j}from"./index-66983695.js";import{S as P}from"./index-185eb85f.js";import{e as V}from"./index.esm-1996df7a.js";import{T as L,a as N}from"./Tabs-832e46f5.js";import"./InfoIcon-dd2e04fe.js";import"./useSlotProps-0f0c60ff.js";import"./createSvgIcon-b3dd03d1.js";const O={split:e.jsx(k,{}),force:e.jsx(D,{}),sphere:e.jsx(E,{}),earth:e.jsx(R,{})},Y=()=>{const[i,p]=w(M(t=>[t.graphStyle,t.setGraphStyle])),r=t=>{p(t)};return e.jsx(q,{direction:"column",children:G.map(t=>e.jsx(n,{className:C("icon",{active:i===t}),onClick:()=>r(t),children:O[t]},t))})},q=s(n).attrs({direction:"row",align:"center",justify:"space-between"})` +import{o as s,q as l,F as n,p as w,j as e,t as G,v as C,T as S,r as f,A as v,aU as A,aV as b,aW as I,J as B,O as y}from"./index-20244629.js";import{B as z}from"./index-fb1d223f.js";import{u as M,G as k,C as D,l as E,o as R,B as T,i as W,F}from"./index-922a0411.js";import{C as $}from"./ClipLoader-a0c1d0d5.js";import{T as j}from"./index-68ed2d99.js";import{S as P}from"./index-a1bce07a.js";import{e as V}from"./index.esm-120f9454.js";import{T as L,a as N}from"./Tabs-e60acdc7.js";import"./InfoIcon-35720818.js";import"./useSlotProps-4a56e8a6.js";import"./createSvgIcon-bd0d8dc7.js";const O={split:e.jsx(k,{}),force:e.jsx(D,{}),sphere:e.jsx(E,{}),earth:e.jsx(R,{})},Y=()=>{const[i,p]=w(M(t=>[t.graphStyle,t.setGraphStyle])),r=t=>{p(t)};return e.jsx(q,{direction:"column",children:G.map(t=>e.jsx(n,{className:C("icon",{active:i===t}),onClick:()=>r(t),children:O[t]},t))})},q=s(n).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${l.appearanceBg}; diff --git a/build/assets/index-26bde52f.js b/build/assets/index-c49ebc93.js similarity index 99% rename from build/assets/index-26bde52f.js rename to build/assets/index-c49ebc93.js index 17ad045dc..c363619c6 100644 --- a/build/assets/index-26bde52f.js +++ b/build/assets/index-c49ebc93.js @@ -1,4 +1,4 @@ -import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg,s as jr,i as o4,e as vn,f as of,u as Ug,a as $d,c as Kr,d as Wg,ac as Id,ad as s4,ae as l4,af as Yg,o as H,q as L,ag as Vg,G as Hl,F,B as Sn,J as Ji,ah as Gg,T as ht,ai as u4,aj as c4,v as Fn,A as At,ak as Lo,al as Bt,am as f4,n as st,z as No,E as qg,an as Kg,O as sf,K as d4,ao as h4,ap as Ro,aq as Qi,ar as _n,as as Xg,at as Dd,au as ea,av as Te,R as U,aw as p4,ax as Zg,ay as m4,az as Jg,aA as y4,aB as g4,aC as v4,aD as Bo,aE as Ld,aF as Qg,aG as ev,aH as x4,aI as b4,aJ as w4,aK as Ul,aL as S4,aM as _4,P as Oe,aN as O4,aO as k4,aP as C4,y as qt,aQ as Xp,a4 as P4,C as rn,aR as A4,aS as j4,p as T4,aT as E4}from"./index-453237c9.js";import{v as Qr,d as M4,e as lf,f as $4,g as uc,h as Nd,i as I4,F as D4,b as tv,A as In,T as ta,j as ji,B as Dt,k as nv,P as Wl,l as L4,m as Rd,I as rv,n as Yl}from"./index-aa07e3c0.js";import{S as iv}from"./SearchIcon-2879dc36.js";import{c as N4,a as cc,C as Vl}from"./ClipLoader-c4c3d020.js";import{S as av}from"./Skeleton-926f190e.js";import{P as Bd}from"./PlusIcon-4d3aaca0.js";import{T as R4,r as B4,g as Zp,P as z4}from"./Popover-619582c9.js";import{o as Ns,e as fc,a as ov,d as F4,i as Rs,u as xr}from"./useSlotProps-0f0c60ff.js";import{C as sv}from"./CheckIcon-3a73121d.js";import{u as H4,F as U4,P as W4}from"./Stack-b37dd094.js";import{S as Y4,F as Jp}from"./FormControlLabel-b4f67dac.js";import{c as zd}from"./createSvgIcon-b3dd03d1.js";import{B as V4}from"./index-12293453.js";import{u as lv}from"./index-d2627d6e.js";import{b as G4,a as q4,c as K4,d as X4}from"./index.esm-1996df7a.js";import{I as Z4}from"./InfoIcon-dd2e04fe.js";const Qp="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",J4=async e=>{let t=await xi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xi.keysend(Qp,e),!(t!=null&&t.success)){if(t=await xi.topup(),t||(t=await xi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await J4(t),r={amount:t,refid:e};return await zg.post("/boost",JSON.stringify(r)),n},e8=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},uv=(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=Kp.groupBy(n,a=>a.timestamp),i=Kp.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=Qr(s),f=Qr(l);return u-f}),i},t8=async e=>{await a4(async()=>{try{await xi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},n8=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},r8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},i8=r8;function a8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const o8=2;function cv(e,t){return e-t}function xa(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function e1(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}%`})}},f8=e=>e;let gs;function dc(){return gs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?gs=CSS.supports("touch-action","none"):gs=!0),gs}function d8(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=f8,step:v=1,tabIndex:b,value:O}=e,C=B.useRef(),[k,P]=B.useState(-1),[_,w]=B.useState(-1),[j,E]=B.useState(!1),I=B.useRef(0),[z,M]=H4({controlled:O,default:n??l,name:"Slider"}),D=f&&((R,q,ne)=>{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,ne)}),W=Array.isArray(z);let Y=W?z.slice().sort(cv):[z];Y=Y.map(R=>xa(R,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((R,q)=>({value:l+v*q})):o||[],X=V.map(R=>R.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:T}=M4(),[pe,ue]=B.useState(-1),$=B.useRef(),_e=lf(T,$),te=lf(m,_e),ge=R=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),R==null||(ne=R.onFocus)==null||ne.call(R,q)},Ye=R=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),R==null||(ne=R.onBlur)==null||ne.call(R,q)};$4(()=>{if(r&&$.current.contains(document.activeElement)){var R;(R=document.activeElement)==null||R.blur()}},[r]),r&&k!==-1&&P(-1),r&&pe!==-1&&ue(-1);const Me=R=>q=>{var ne;(ne=R.onChange)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-R.y)/oe:$e=(R.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=s8($e,l,s),v)Ge=u8(Ge,v,l);else{const pt=e1(X,Ge);Ge=X[pt]}Ge=xa(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=e1(Y,Ge),i&&(Ge=xa(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const pt=Ge;Ge=t1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(pt),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=uc(R=>{const q=ps(R,C);if(!q)return;if(I.current+=1,R.type==="mousemove"&&R.buttons===0){Ae(R);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});ms({sliderRef:$,activeIndex:se,setActive:P}),M(ne),!j&&I.current>o8&&E(!0),D&&!ys(ne,z)&&D(R,ne,se)}),Ae=uc(R=>{const q=ps(R,C);if(E(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});P(-1),R.type==="touchend"&&w(-1),d&&d(R,ne),C.current=void 0,xe()}),he=uc(R=>{if(r)return;dc()||R.preventDefault();const q=R.changedTouches[0];q!=null&&(C.current=q.identifier);const ne=ps(R,C);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});ms({sliderRef:$,activeIndex:Re,setActive:P}),M(oe),D&&!ys(oe,z)&&D(R,oe,Re)}I.current=0;const se=Ns($.current);se.addEventListener("touchmove",ee),se.addEventListener("touchend",Ae)}),xe=B.useCallback(()=>{const R=Ns($.current);R.removeEventListener("mousemove",ee),R.removeEventListener("mouseup",Ae),R.removeEventListener("touchmove",ee),R.removeEventListener("touchend",Ae)},[Ae,ee]);B.useEffect(()=>{const{current:R}=$;return R.addEventListener("touchstart",he,{passive:dc()}),()=>{R.removeEventListener("touchstart",he,{passive:dc()}),xe()}},[xe,he]),B.useEffect(()=>{r&&xe()},[r,xe]);const He=R=>q=>{var ne;if((ne=R.onMouseDown)==null||ne.call(R,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ps(q,C);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({finger:se});ms({sliderRef:$,activeIndex:ke,setActive:P}),M(Re),D&&!ys(Re,z)&&D(q,Re,ke)}I.current=0;const oe=Ns($.current);oe.addEventListener("mousemove",ee),oe.addEventListener("mouseup",Ae)},rt=Ws(W?Y[0]:l,l,s),ft=Ws(Y[Y.length-1],l,s)-rt,en=(R={})=>{const q=fc(R),ne={onMouseDown:He(q||{})},se=we({},q,ne);return we({},R,{ref:te},se)},Ue=R=>q=>{var ne;(ne=R.onMouseOver)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=R=>q=>{var ne;(ne=R.onMouseLeave)==null||ne.call(R,q),w(-1)};return{active:k,axis:de,axisProps:c8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(R={})=>{var q;const ne=fc(R),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=we({},ne,se);return we({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:we({},i8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:en,getThumbProps:(R={})=>{const q=fc(R),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return we({},R,q,ne)},marks:V,open:_,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:R=>({pointerEvents:k!==-1&&k!==R?"none":void 0})}}const h8=zd(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"),p8=zd(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"),m8=zd(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 y8(e){return Hg("MuiCheckbox",e)}const g8=Fg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),hc=g8,v8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],x8=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${vn(r)}`,`size${vn(i)}`]},o=Wg(a,y8,t);return we({},t,o)},b8=jr(Y4,{shouldForwardProp:e=>o4(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})=>we({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})`:of(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${hc.checked}, &.${hc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${hc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),w8=y.jsx(p8,{}),S8=y.jsx(h8,{}),_8=y.jsx(m8,{}),O8=B.forwardRef(function(t,n){var r,i;const a=Ug({props:t,name:"MuiCheckbox"}),{checkedIcon:o=w8,color:s="primary",icon:l=S8,indeterminate:u=!1,indeterminateIcon:f=_8,inputProps:d,size:h="medium",className:m}=a,g=$d(a,v8),v=u?f:l,b=u?f:o,O=we({},a,{color:s,indeterminate:u,size:h}),C=x8(O);return y.jsx(b8,we({type:"checkbox",inputProps:we({"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:Kr(C.root,m)},g,{classes:C}))}),k8=O8,C8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function P8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=ov(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 A8(e){return typeof e=="function"?e():e}function vs(e,t,n){const r=A8(n),i=P8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const j8=B.forwardRef(function(t,n){const r=Id(),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:C,style:k,timeout:P=a,TransitionComponent:_=R4}=t,w=$d(t,C8),j=B.useRef(null),E=lf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},z=I((G,Q)=>{vs(f,G,u),B4(G),m&&m(G,Q)}),M=I((G,Q)=>{const T=Zp({timeout:P,style:k,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",we({},T)),G.style.transition=r.transitions.create("transform",we({},T)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(C),Y=I(G=>{const Q=Zp({timeout:P,style:k,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),vs(f,G,u),b&&b(G)}),V=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),X=G=>{o&&o(j.current,G)},Z=B.useCallback(()=>{j.current&&vs(f,j.current,u)},[f,u]);return B.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=F4(()=>{j.current&&vs(f,j.current,u)}),Q=ov(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),B.useEffect(()=>{h||Z()},[h,Z]),y.jsx(_,we({nodeRef:j,onEnter:z,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:P},w,{children:(G,Q)=>B.cloneElement(l,we({ref:E,style:we({visibility:G==="exited"&&!h?"hidden":void 0},k,l.props.style)},Q))}))}),Ti=j8,T8=e=>!e||!Rs(e),E8=T8;function M8(e){return Hg("MuiSlider",e)}const $8=Fg("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=$8,I8=e=>{const{open:t}=e;return{offset:Kr(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function D8(e){const{children:t,className:n,value:r}=e,i=I8(e);return t?B.cloneElement(t,{className:Kr(t.props.className)},y.jsxs(B.Fragment,{children:[t.props.children,y.jsx("span",{className:Kr(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const L8=["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 n1(e){return e}const N8=jr("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})=>we({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"&&we({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"&&we({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"}}})),R8=jr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>we({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})),B8=jr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?s4(e.palette[t.color].main,.62):l4(e.palette[t.color].main,.5);return we({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})}),z8=jr("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})=>we({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":we({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)`:of(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)`:of(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),F8=jr(D8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>we({[`&.${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"})),H8=jr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Yg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>we({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})),U8=jr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Yg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>we({},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})),W8=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 Wg(u,M8,o)},Y8=({children:e})=>e,V8=B.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,O,C,k,P,_,w,j,E,I,z;const M=Ug({props:t,name:"MuiSlider"}),W=Id().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:T="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=n1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=n1}=M,en=$d(M,L8),Ue=we({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:T,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:tn,getThumbProps:Cn,open:R,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:pt}=d8(we({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=W8(Ue),Lt=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:N8,ai=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:R8,Lr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:B8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:z8,ca=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:F8,oi=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:H8,fr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:U8,si=(O=(C=xe==null?void 0:xe.input)!=null?C:G.Input)!=null?O:"input",dr=(k=he==null?void 0:he.root)!=null?k:Q.root,hr=(P=he==null?void 0:he.rail)!=null?P:Q.rail,pr=(_=he==null?void 0:he.track)!=null?_:Q.track,fa=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,mr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Hu=(E=he==null?void 0:he.mark)!=null?E:Q.mark,Nr=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,li=(z=he==null?void 0:he.input)!=null?z:Q.input,ce=xr({elementType:Lt,getSlotProps:it,externalSlotProps:dr,externalForwardedProps:en,additionalProps:we({},E8(Lt)&&{as:Z}),ownerState:we({},Ue,dr==null?void 0:dr.ownerState),className:[Ie.root,ue]}),Uu=xr({elementType:ai,externalSlotProps:hr,ownerState:Ue,className:Ie.rail}),Wu=xr({elementType:Lr,externalSlotProps:pr,additionalProps:{style:we({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:we({},Ue,pr==null?void 0:pr.ownerState),className:Ie.track}),Et=xr({elementType:qe,getSlotProps:Cn,externalSlotProps:fa,ownerState:we({},Ue,fa==null?void 0:fa.ownerState),className:Ie.thumb}),da=xr({elementType:ca,externalSlotProps:mr,ownerState:we({},Ue,mr==null?void 0:mr.ownerState),className:Ie.valueLabel}),Be=xr({elementType:oi,externalSlotProps:Hu,ownerState:Ue,className:Ie.mark}),Vn=xr({elementType:fr,externalSlotProps:Nr,ownerState:Ue,className:Ie.markLabel}),Yu=xr({elementType:si,getSlotProps:tn,externalSlotProps:li,ownerState:Ue});return y.jsxs(Lt,we({},ce,{children:[y.jsx(ai,we({},Uu)),y.jsx(Lr,we({},Wu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Ws(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(B.Fragment,{children:[y.jsx(oi,we({"data-index":Je},Be,!Rs(oi)&&{markActive:mt},{style:we({},lt,Be.style),className:Kr(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(fr,we({"aria-hidden":!0,"data-index":Je},Vn,!Rs(fr)&&{markLabelActive:mt},{style:we({},lt,Vn.style),className:Kr(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Ws(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?Y8:ca;return y.jsx(mt,we({},!Rs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:R===Je||q===Je||rt==="on",disabled:_e},da,{children:y.jsx(qe,we({"data-index":Je},Et,{className:Kr(Ie.thumb,Et.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:we({},lt,pt(Je),Et.style),children:y.jsx(si,we({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Yu))}))}),Je)})]}))}),Gl=V8,G8=(e,t="down")=>{const n=Id(),[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},q8=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function K8(e){return e.tldr_topic??e.name}var Ys=globalThis&&globalThis.__assign||function(){return Ys=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"})})]})}),Q8=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"})})]})}),e9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` +import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg,s as jr,i as o4,e as vn,f as of,u as Ug,a as $d,c as Kr,d as Wg,ac as Id,ad as s4,ae as l4,af as Yg,o as H,q as L,ag as Vg,G as Hl,F,B as Sn,J as Ji,ah as Gg,T as ht,ai as u4,aj as c4,v as Fn,A as At,ak as Lo,al as Bt,am as f4,n as st,z as No,E as qg,an as Kg,O as sf,K as d4,ao as h4,ap as Ro,aq as Qi,ar as _n,as as Xg,at as Dd,au as ea,av as Te,R as U,aw as p4,ax as Zg,ay as m4,az as Jg,aA as y4,aB as g4,aC as v4,aD as Bo,aE as Ld,aF as Qg,aG as ev,aH as x4,aI as b4,aJ as w4,aK as Ul,aL as S4,aM as _4,P as Oe,aN as O4,aO as k4,aP as C4,y as qt,aQ as Xp,a4 as P4,C as rn,aR as A4,aS as j4,p as T4,aT as E4}from"./index-20244629.js";import{v as Qr,d as M4,e as lf,f as $4,g as uc,h as Nd,i as I4,F as D4,b as tv,A as In,T as ta,j as ji,B as Dt,k as nv,P as Wl,l as L4,m as Rd,I as rv,n as Yl}from"./index-922a0411.js";import{S as iv}from"./SearchIcon-61a39fc4.js";import{c as N4,a as cc,C as Vl}from"./ClipLoader-a0c1d0d5.js";import{S as av}from"./Skeleton-e4541980.js";import{P as Bd}from"./PlusIcon-f79d966c.js";import{T as R4,r as B4,g as Zp,P as z4}from"./Popover-aff34d88.js";import{o as Ns,e as fc,a as ov,d as F4,i as Rs,u as xr}from"./useSlotProps-4a56e8a6.js";import{C as sv}from"./CheckIcon-78afa5f1.js";import{u as H4,F as U4,P as W4}from"./Stack-76b9b130.js";import{S as Y4,F as Jp}from"./FormControlLabel-dd6fa8a1.js";import{c as zd}from"./createSvgIcon-bd0d8dc7.js";import{B as V4}from"./index-fb1d223f.js";import{u as lv}from"./index-1477a4a5.js";import{b as G4,a as q4,c as K4,d as X4}from"./index.esm-120f9454.js";import{I as Z4}from"./InfoIcon-35720818.js";const Qp="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",J4=async e=>{let t=await xi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xi.keysend(Qp,e),!(t!=null&&t.success)){if(t=await xi.topup(),t||(t=await xi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await J4(t),r={amount:t,refid:e};return await zg.post("/boost",JSON.stringify(r)),n},e8=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},uv=(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=Kp.groupBy(n,a=>a.timestamp),i=Kp.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=Qr(s),f=Qr(l);return u-f}),i},t8=async e=>{await a4(async()=>{try{await xi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},n8=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},r8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},i8=r8;function a8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const o8=2;function cv(e,t){return e-t}function xa(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function e1(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}%`})}},f8=e=>e;let gs;function dc(){return gs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?gs=CSS.supports("touch-action","none"):gs=!0),gs}function d8(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=f8,step:v=1,tabIndex:b,value:O}=e,C=B.useRef(),[k,P]=B.useState(-1),[_,w]=B.useState(-1),[j,E]=B.useState(!1),I=B.useRef(0),[z,M]=H4({controlled:O,default:n??l,name:"Slider"}),D=f&&((R,q,ne)=>{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,ne)}),W=Array.isArray(z);let Y=W?z.slice().sort(cv):[z];Y=Y.map(R=>xa(R,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((R,q)=>({value:l+v*q})):o||[],X=V.map(R=>R.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:T}=M4(),[pe,ue]=B.useState(-1),$=B.useRef(),_e=lf(T,$),te=lf(m,_e),ge=R=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),R==null||(ne=R.onFocus)==null||ne.call(R,q)},Ye=R=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),R==null||(ne=R.onBlur)==null||ne.call(R,q)};$4(()=>{if(r&&$.current.contains(document.activeElement)){var R;(R=document.activeElement)==null||R.blur()}},[r]),r&&k!==-1&&P(-1),r&&pe!==-1&&ue(-1);const Me=R=>q=>{var ne;(ne=R.onChange)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-R.y)/oe:$e=(R.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=s8($e,l,s),v)Ge=u8(Ge,v,l);else{const pt=e1(X,Ge);Ge=X[pt]}Ge=xa(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=e1(Y,Ge),i&&(Ge=xa(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const pt=Ge;Ge=t1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(pt),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=uc(R=>{const q=ps(R,C);if(!q)return;if(I.current+=1,R.type==="mousemove"&&R.buttons===0){Ae(R);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});ms({sliderRef:$,activeIndex:se,setActive:P}),M(ne),!j&&I.current>o8&&E(!0),D&&!ys(ne,z)&&D(R,ne,se)}),Ae=uc(R=>{const q=ps(R,C);if(E(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});P(-1),R.type==="touchend"&&w(-1),d&&d(R,ne),C.current=void 0,xe()}),he=uc(R=>{if(r)return;dc()||R.preventDefault();const q=R.changedTouches[0];q!=null&&(C.current=q.identifier);const ne=ps(R,C);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});ms({sliderRef:$,activeIndex:Re,setActive:P}),M(oe),D&&!ys(oe,z)&&D(R,oe,Re)}I.current=0;const se=Ns($.current);se.addEventListener("touchmove",ee),se.addEventListener("touchend",Ae)}),xe=B.useCallback(()=>{const R=Ns($.current);R.removeEventListener("mousemove",ee),R.removeEventListener("mouseup",Ae),R.removeEventListener("touchmove",ee),R.removeEventListener("touchend",Ae)},[Ae,ee]);B.useEffect(()=>{const{current:R}=$;return R.addEventListener("touchstart",he,{passive:dc()}),()=>{R.removeEventListener("touchstart",he,{passive:dc()}),xe()}},[xe,he]),B.useEffect(()=>{r&&xe()},[r,xe]);const He=R=>q=>{var ne;if((ne=R.onMouseDown)==null||ne.call(R,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ps(q,C);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({finger:se});ms({sliderRef:$,activeIndex:ke,setActive:P}),M(Re),D&&!ys(Re,z)&&D(q,Re,ke)}I.current=0;const oe=Ns($.current);oe.addEventListener("mousemove",ee),oe.addEventListener("mouseup",Ae)},rt=Ws(W?Y[0]:l,l,s),ft=Ws(Y[Y.length-1],l,s)-rt,en=(R={})=>{const q=fc(R),ne={onMouseDown:He(q||{})},se=we({},q,ne);return we({},R,{ref:te},se)},Ue=R=>q=>{var ne;(ne=R.onMouseOver)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=R=>q=>{var ne;(ne=R.onMouseLeave)==null||ne.call(R,q),w(-1)};return{active:k,axis:de,axisProps:c8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(R={})=>{var q;const ne=fc(R),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=we({},ne,se);return we({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:we({},i8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:en,getThumbProps:(R={})=>{const q=fc(R),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return we({},R,q,ne)},marks:V,open:_,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:R=>({pointerEvents:k!==-1&&k!==R?"none":void 0})}}const h8=zd(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"),p8=zd(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"),m8=zd(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 y8(e){return Hg("MuiCheckbox",e)}const g8=Fg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),hc=g8,v8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],x8=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${vn(r)}`,`size${vn(i)}`]},o=Wg(a,y8,t);return we({},t,o)},b8=jr(Y4,{shouldForwardProp:e=>o4(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})=>we({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})`:of(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${hc.checked}, &.${hc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${hc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),w8=y.jsx(p8,{}),S8=y.jsx(h8,{}),_8=y.jsx(m8,{}),O8=B.forwardRef(function(t,n){var r,i;const a=Ug({props:t,name:"MuiCheckbox"}),{checkedIcon:o=w8,color:s="primary",icon:l=S8,indeterminate:u=!1,indeterminateIcon:f=_8,inputProps:d,size:h="medium",className:m}=a,g=$d(a,v8),v=u?f:l,b=u?f:o,O=we({},a,{color:s,indeterminate:u,size:h}),C=x8(O);return y.jsx(b8,we({type:"checkbox",inputProps:we({"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:Kr(C.root,m)},g,{classes:C}))}),k8=O8,C8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function P8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=ov(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 A8(e){return typeof e=="function"?e():e}function vs(e,t,n){const r=A8(n),i=P8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const j8=B.forwardRef(function(t,n){const r=Id(),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:C,style:k,timeout:P=a,TransitionComponent:_=R4}=t,w=$d(t,C8),j=B.useRef(null),E=lf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},z=I((G,Q)=>{vs(f,G,u),B4(G),m&&m(G,Q)}),M=I((G,Q)=>{const T=Zp({timeout:P,style:k,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",we({},T)),G.style.transition=r.transitions.create("transform",we({},T)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(C),Y=I(G=>{const Q=Zp({timeout:P,style:k,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),vs(f,G,u),b&&b(G)}),V=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),X=G=>{o&&o(j.current,G)},Z=B.useCallback(()=>{j.current&&vs(f,j.current,u)},[f,u]);return B.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=F4(()=>{j.current&&vs(f,j.current,u)}),Q=ov(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),B.useEffect(()=>{h||Z()},[h,Z]),y.jsx(_,we({nodeRef:j,onEnter:z,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:P},w,{children:(G,Q)=>B.cloneElement(l,we({ref:E,style:we({visibility:G==="exited"&&!h?"hidden":void 0},k,l.props.style)},Q))}))}),Ti=j8,T8=e=>!e||!Rs(e),E8=T8;function M8(e){return Hg("MuiSlider",e)}const $8=Fg("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=$8,I8=e=>{const{open:t}=e;return{offset:Kr(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function D8(e){const{children:t,className:n,value:r}=e,i=I8(e);return t?B.cloneElement(t,{className:Kr(t.props.className)},y.jsxs(B.Fragment,{children:[t.props.children,y.jsx("span",{className:Kr(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const L8=["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 n1(e){return e}const N8=jr("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})=>we({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"&&we({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"&&we({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"}}})),R8=jr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>we({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})),B8=jr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?s4(e.palette[t.color].main,.62):l4(e.palette[t.color].main,.5);return we({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})}),z8=jr("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})=>we({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":we({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)`:of(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)`:of(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),F8=jr(D8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>we({[`&.${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"})),H8=jr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Yg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>we({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})),U8=jr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Yg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>we({},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})),W8=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 Wg(u,M8,o)},Y8=({children:e})=>e,V8=B.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,O,C,k,P,_,w,j,E,I,z;const M=Ug({props:t,name:"MuiSlider"}),W=Id().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:T="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=n1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=n1}=M,en=$d(M,L8),Ue=we({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:T,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:tn,getThumbProps:Cn,open:R,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:pt}=d8(we({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=W8(Ue),Lt=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:N8,ai=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:R8,Lr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:B8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:z8,ca=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:F8,oi=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:H8,fr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:U8,si=(O=(C=xe==null?void 0:xe.input)!=null?C:G.Input)!=null?O:"input",dr=(k=he==null?void 0:he.root)!=null?k:Q.root,hr=(P=he==null?void 0:he.rail)!=null?P:Q.rail,pr=(_=he==null?void 0:he.track)!=null?_:Q.track,fa=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,mr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Hu=(E=he==null?void 0:he.mark)!=null?E:Q.mark,Nr=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,li=(z=he==null?void 0:he.input)!=null?z:Q.input,ce=xr({elementType:Lt,getSlotProps:it,externalSlotProps:dr,externalForwardedProps:en,additionalProps:we({},E8(Lt)&&{as:Z}),ownerState:we({},Ue,dr==null?void 0:dr.ownerState),className:[Ie.root,ue]}),Uu=xr({elementType:ai,externalSlotProps:hr,ownerState:Ue,className:Ie.rail}),Wu=xr({elementType:Lr,externalSlotProps:pr,additionalProps:{style:we({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:we({},Ue,pr==null?void 0:pr.ownerState),className:Ie.track}),Et=xr({elementType:qe,getSlotProps:Cn,externalSlotProps:fa,ownerState:we({},Ue,fa==null?void 0:fa.ownerState),className:Ie.thumb}),da=xr({elementType:ca,externalSlotProps:mr,ownerState:we({},Ue,mr==null?void 0:mr.ownerState),className:Ie.valueLabel}),Be=xr({elementType:oi,externalSlotProps:Hu,ownerState:Ue,className:Ie.mark}),Vn=xr({elementType:fr,externalSlotProps:Nr,ownerState:Ue,className:Ie.markLabel}),Yu=xr({elementType:si,getSlotProps:tn,externalSlotProps:li,ownerState:Ue});return y.jsxs(Lt,we({},ce,{children:[y.jsx(ai,we({},Uu)),y.jsx(Lr,we({},Wu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Ws(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(B.Fragment,{children:[y.jsx(oi,we({"data-index":Je},Be,!Rs(oi)&&{markActive:mt},{style:we({},lt,Be.style),className:Kr(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(fr,we({"aria-hidden":!0,"data-index":Je},Vn,!Rs(fr)&&{markLabelActive:mt},{style:we({},lt,Vn.style),className:Kr(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Ws(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?Y8:ca;return y.jsx(mt,we({},!Rs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:R===Je||q===Je||rt==="on",disabled:_e},da,{children:y.jsx(qe,we({"data-index":Je},Et,{className:Kr(Ie.thumb,Et.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:we({},lt,pt(Je),Et.style),children:y.jsx(si,we({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Yu))}))}),Je)})]}))}),Gl=V8,G8=(e,t="down")=>{const n=Id(),[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},q8=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function K8(e){return e.tldr_topic??e.name}var Ys=globalThis&&globalThis.__assign||function(){return Ys=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"})})]})}),Q8=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"})})]})}),e9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -1756,7 +1756,7 @@ ${({disabled:e})=>e&&Vg` opacity: 75%; `,CK=H(Dt)` width: 100%; -`,PK=()=>{var f,d,h;const e=qt(),t=B.useRef(null),{currentPlayingAudio:n,setCurrentPlayingAudio:r}=At(m=>m),[i,a]=B.useState(!1);B.useEffect(()=>{const m=t.current,g=()=>{r(null),a(!1)};return m&&m.addEventListener("ended",g),()=>{m&&m.removeEventListener("ended",g)}},[r]);const o=()=>{n!=null&&n.current&&n.current!==t.current&&(n.current.pause(),r(null)),t.current&&(t.current.paused?(t.current.play(),r(t),a(!0)):(t.current.pause(),r(null),a(!1)))};if(!e)return null;const s=!!e.image_url,l=!!((f=e.properties)!=null&&f.audio_EN),u=e.properties||{};return y.jsxs(DK,{children:[s?y.jsx(MK,{children:y.jsx("img",{alt:"img_a11y",onError:m=>{m.currentTarget.src="generic_placeholder_img.png",m.currentTarget.className="default-img"},src:(d=e.properties)==null?void 0:d.image_url})}):null,y.jsxs(TK,{grow:1,justify:"flex-start",pt:s?0:8,shrink:1,children:[y.jsx(F,{ml:24,mt:20,style:{width:"fit-content"},children:y.jsx(ta,{type:e.node_type||""})}),y.jsx(EK,{children:Object.entries(u).filter(([m])=>m!=="media_url"&&m!=="link").map(([m,g])=>y.jsx(jK,{hasAudio:l,isPlaying:i,label:AK(m),togglePlay:o,value:g},m))})]}),l&&((h=e.properties)==null?void 0:h.audio_EN)&&y.jsx(NK,{ref:t,src:e.properties.audio_EN,children:y.jsx("track",{kind:"captions"})})]})},AK=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),jK=({label:e,value:t,hasAudio:n,isPlaying:r,togglePlay:i})=>{const a=t.length>140,o=At(s=>s.currentSearch);return t?y.jsxs(y.Fragment,{children:[y.jsxs($K,{className:Fn("node-detail",{"node-detail__long":a}),children:[y.jsxs(ht,{className:"node-detail__label",children:[e,e==="Text"&&n&&y.jsx(LK,{onClick:i,children:r?y.jsx(pv,{}):y.jsx(mv,{})})]}),y.jsx(ht,{className:"node-detail__value",children:$n(String(t),o)})]}),y.jsx(IK,{})]}):null},TK=H(F)` +`,PK=()=>{var f,d,h;const e=qt(),t=B.useRef(null),{currentPlayingAudio:n,setCurrentPlayingAudio:r}=At(m=>m),[i,a]=B.useState(!1);B.useEffect(()=>{const m=t.current,g=()=>{r(null),a(!1)};return m&&m.addEventListener("ended",g),()=>{m&&m.removeEventListener("ended",g)}},[r]);const o=()=>{n!=null&&n.current&&n.current!==t.current&&(n.current.pause(),r(null)),t.current&&(t.current.paused?(t.current.play(),r(t),a(!0)):(t.current.pause(),r(null),a(!1)))};if(!e)return null;const s=!!e.image_url,l=!!((f=e.properties)!=null&&f.audio_EN),u=e.properties||{};return y.jsxs(DK,{children:[s?y.jsx(MK,{children:y.jsx("img",{alt:"img_a11y",onError:m=>{m.currentTarget.src="generic_placeholder_img.png",m.currentTarget.className="default-img"},src:(d=e.properties)==null?void 0:d.image_url})}):null,y.jsxs(TK,{grow:1,justify:"flex-start",pt:s?0:8,shrink:1,children:[y.jsx(F,{ml:24,mt:20,style:{width:"fit-content"},children:y.jsx(ta,{type:e.node_type||""})}),y.jsx(EK,{children:Object.entries(u).filter(([m])=>m!=="media_url"&&m!=="link").map(([m,g])=>y.jsx(jK,{hasAudio:l,isPlaying:i,label:AK(m),togglePlay:o,value:g},m))})]}),l&&((h=e.properties)==null?void 0:h.audio_EN)&&y.jsx(NK,{ref:t,src:e.properties.audio_EN,children:y.jsx("track",{kind:"captions"})})]})},AK=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),jK=({label:e,value:t,hasAudio:n,isPlaying:r,togglePlay:i})=>{const a=t.length>140,o=At(s=>s.currentSearch);return!t||e==="Audio EN"?null:y.jsxs(y.Fragment,{children:[y.jsxs($K,{className:Fn("node-detail",{"node-detail__long":a}),children:[y.jsxs(ht,{className:"node-detail__label",children:[e,e==="Text"&&n&&y.jsx(LK,{onClick:i,children:r?y.jsx(pv,{}):y.jsx(mv,{})})]}),y.jsx(ht,{className:"node-detail__value",children:$n(String(t),o)})]}),y.jsx(IK,{})]})},TK=H(F)` overflow: auto; width: 100%; flex-grow: 1; @@ -1880,7 +1880,7 @@ ${({disabled:e})=>e&&Vg` `,UK=H.audio` height: 0; width: 0; -`,WK=()=>{const e=qt(),{setPlayingNode:t}=Yl(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(cK,{});case"data_series":return y.jsx(sq,{});case"tribe_message":return y.jsx(oK,{});case"Tweet":return y.jsx(bK,{});case"topic":return y.jsx(xK,{});case"show":return y.jsx(vK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(G2,{});case"document":return y.jsx(RK,{});case"episode":return y.jsx(tK,{},e.ref_id);case"image":return y.jsx(aK,{});default:return y.jsx(PK,{})}},YK=B.memo(WK);var VK=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&&GK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?Mg:qK;o(a,r),a.onload||Mg(a,r),i.appendChild(a)};function GK(e,t){for(var n in t)e.setAttribute(n,t[n])}function Mg(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 qK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var KK=function(t){return XK(t)&&!ZK(t)};function XK(e){return!!e&&typeof e=="object"}function ZK(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eX(e)}var JK=typeof Symbol=="function"&&Symbol.for,QK=JK?Symbol.for("react.element"):60103;function eX(e){return e.$$typeof===QK}function tX(e){return Array.isArray(e)?[]:{}}function Do(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zi(tX(e),e,t):e}function nX(e,t,n){return e.concat(t).map(function(r){return Do(r,n)})}function rX(e,t){if(!t.customMerge)return Zi;var n=t.customMerge(e);return typeof n=="function"?n:Zi}function iX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $g(e){return Object.keys(e).concat(iX(e))}function q2(e,t){try{return t in e}catch{return!1}}function aX(e,t){return q2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function oX(e,t,n){var r={};return n.isMergeableObject(e)&&$g(e).forEach(function(i){r[i]=Do(e[i],n)}),$g(t).forEach(function(i){aX(e,i)||(q2(e,i)&&n.isMergeableObject(t[i])?r[i]=rX(i,n)(e[i],t[i],n):r[i]=Do(t[i],n))}),r}function Zi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nX,n.isMergeableObject=n.isMergeableObject||KK,n.cloneUnlessOtherwiseSpecified=Do;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):oX(e,t,n):Do(t,n)}Zi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zi(r,i,n)},{})};var sX=Zi,K2=sX,lX=Object.create,Nu=Object.defineProperty,uX=Object.getOwnPropertyDescriptor,cX=Object.getOwnPropertyNames,fX=Object.getPrototypeOf,dX=Object.prototype.hasOwnProperty,hX=(e,t)=>{for(var n in t)Nu(e,n,{get:t[n],enumerable:!0})},X2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cX(t))!dX.call(e,i)&&i!==n&&Nu(e,i,{get:()=>t[i],enumerable:!(r=uX(t,i))||r.enumerable});return e},op=(e,t,n)=>(n=e!=null?lX(fX(e)):{},X2(t||!e||!e.__esModule?Nu(n,"default",{value:e,enumerable:!0}):n,e)),pX=e=>X2(Nu({},"__esModule",{value:!0}),e),Z2={};hX(Z2,{callPlayer:()=>TX,getConfig:()=>AX,getSDK:()=>PX,isBlobUrl:()=>MX,isMediaStream:()=>EX,lazy:()=>vX,omit:()=>jX,parseEndTime:()=>OX,parseStartTime:()=>_X,queryString:()=>CX,randomString:()=>kX,supportsWebKitPresentationMode:()=>$X});var Ru=pX(Z2),mX=op(B),yX=op(VK),gX=op(K2);const vX=e=>mX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),xX=/[?&#](?:start|t)=([0-9hms]+)/,bX=/[?&#]end=([0-9hms]+)/,jd=/(\d+)(h|m|s)/g,wX=/^\d+$/;function J2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(jd))return SX(r);if(wX.test(r))return parseInt(r)}}function SX(e){let t=0,n=jd.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=jd.exec(e)}return t}function _X(e){return J2(e,xX)}function OX(e){return J2(e,bX)}function kX(){return Math.random().toString(36).substr(2,5)}function CX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function nf(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 gi={},PX=function(t,n,r=null,i=()=>!0,a=yX.default){const o=nf(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(gi[t]){gi[t].push({resolve:s,reject:l});return}gi[t]=[{resolve:s,reject:l}];const u=f=>{gi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(nf(n))}}a(t,f=>{f?(gi[t].forEach(d=>d.reject(f)),gi[t]=null):r||u(nf(n))})})};function AX(e,t){return(0,gX.default)(t.config,e.config)}function jX(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 TX(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 EX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function MX(e){return/^blob:/.test(e)}function $X(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var sp=Object.defineProperty,IX=Object.getOwnPropertyDescriptor,DX=Object.getOwnPropertyNames,LX=Object.prototype.hasOwnProperty,NX=(e,t)=>{for(var n in t)sp(e,n,{get:t[n],enumerable:!0})},RX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of DX(t))!LX.call(e,i)&&i!==n&&sp(e,i,{get:()=>t[i],enumerable:!(r=IX(t,i))||r.enumerable});return e},BX=e=>RX(sp({},"__esModule",{value:!0}),e),Q2={};NX(Q2,{AUDIO_EXTENSIONS:()=>lp,DASH_EXTENSIONS:()=>dw,FLV_EXTENSIONS:()=>hw,HLS_EXTENSIONS:()=>cp,MATCH_URL_DAILYMOTION:()=>lw,MATCH_URL_FACEBOOK:()=>nw,MATCH_URL_FACEBOOK_WATCH:()=>rw,MATCH_URL_KALTURA:()=>fw,MATCH_URL_MIXCLOUD:()=>uw,MATCH_URL_SOUNDCLOUD:()=>ew,MATCH_URL_STREAMABLE:()=>iw,MATCH_URL_TWITCH_CHANNEL:()=>sw,MATCH_URL_TWITCH_VIDEO:()=>ow,MATCH_URL_VIDYARD:()=>cw,MATCH_URL_VIMEO:()=>tw,MATCH_URL_WISTIA:()=>aw,MATCH_URL_YOUTUBE:()=>Td,VIDEO_EXTENSIONS:()=>up,canPlay:()=>FX});var zX=BX(Q2),Ig=Ru;const Td=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ew=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,tw=/vimeo\.com\/(?!progressive_redirect).+/,nw=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,rw=/^https?:\/\/fb\.watch\/.+$/,iw=/streamable\.com\/([a-z0-9]+)$/,aw=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ow=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,sw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,lw=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,uw=/mixcloud\.com\/([^/]+\/[^/]+)/,cw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,fw=/^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-_].*)$/,lp=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,up=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,cp=/\.(m3u8)($|\?)/i,dw=/\.(mpd)($|\?)/i,hw=/\.(flv)($|\?)/i,Ed=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Ed(t)||Ed(t.src))return!0;return!1}return(0,Ig.isMediaStream)(e)||(0,Ig.isBlobUrl)(e)?!0:lp.test(e)||up.test(e)||cp.test(e)||dw.test(e)||hw.test(e)},FX={youtube:e=>e instanceof Array?e.every(t=>Td.test(t)):Td.test(e),soundcloud:e=>ew.test(e)&&!lp.test(e),vimeo:e=>tw.test(e)&&!up.test(e)&&!cp.test(e),facebook:e=>nw.test(e)||rw.test(e),streamable:e=>iw.test(e),wistia:e=>aw.test(e),twitch:e=>ow.test(e)||sw.test(e),dailymotion:e=>lw.test(e),mixcloud:e=>uw.test(e),vidyard:e=>cw.test(e),kaltura:e=>fw.test(e),file:Ed};var fp=Object.defineProperty,HX=Object.getOwnPropertyDescriptor,UX=Object.getOwnPropertyNames,WX=Object.prototype.hasOwnProperty,YX=(e,t)=>{for(var n in t)fp(e,n,{get:t[n],enumerable:!0})},VX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UX(t))!WX.call(e,i)&&i!==n&&fp(e,i,{get:()=>t[i],enumerable:!(r=HX(t,i))||r.enumerable});return e},GX=e=>VX(fp({},"__esModule",{value:!0}),e),pw={};YX(pw,{default:()=>KX});var qX=GX(pw),nn=Ru,Xt=zX,KX=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./YouTube-10e3fc02.js").then(e=>e.Y),["assets/YouTube-10e3fc02.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./SoundCloud-da045835.js").then(e=>e.S),["assets/SoundCloud-da045835.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vimeo-f49a6342.js").then(e=>e.V),["assets/Vimeo-f49a6342.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Facebook-47020356.js").then(e=>e.F),["assets/Facebook-47020356.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Streamable-8f623a9e.js").then(e=>e.S),["assets/Streamable-8f623a9e.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Wistia-bb92c7cf.js").then(e=>e.W),["assets/Wistia-bb92c7cf.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Twitch-ff79e490.js").then(e=>e.T),["assets/Twitch-ff79e490.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./DailyMotion-2c69ea9c.js").then(e=>e.D),["assets/DailyMotion-2c69ea9c.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Mixcloud-b4e5ff02.js").then(e=>e.M),["assets/Mixcloud-b4e5ff02.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vidyard-0abeeec9.js").then(e=>e.V),["assets/Vidyard-0abeeec9.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Kaltura-7ccdd12e.js").then(e=>e.K),["assets/Kaltura-7ccdd12e.js","assets/index-453237c9.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-3a9881cf.js").then(e=>e.F),["assets/FilePlayer-3a9881cf.js","assets/index-453237c9.js","assets/index-a2878e02.css"]))}],Dg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function XX(e,t){return!!(e===t||Dg(e)&&Dg(t))}function ZX(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Bu(e,n,{get:t[n],enumerable:!0})},yw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sZ(t))!uZ.call(e,i)&&i!==n&&Bu(e,i,{get:()=>t[i],enumerable:!(r=oZ(t,i))||r.enumerable});return e},fZ=(e,t,n)=>(n=e!=null?aZ(lZ(e)):{},yw(t||!e||!e.__esModule?Bu(n,"default",{value:e,enumerable:!0}):n,e)),dZ=e=>yw(Bu({},"__esModule",{value:!0}),e),gw={};cZ(gw,{defaultProps:()=>mZ,propTypes:()=>pZ});var vw=dZ(gw),hZ=fZ(j4);const{string:Ut,bool:Wt,number:vi,array:rf,oneOfType:Ma,shape:pn,object:Yt,func:wt,node:Lg}=hZ.default,pZ={url:Ma([Ut,rf,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:vi,muted:Wt,playbackRate:vi,width:Ma([Ut,vi]),height:Ma([Ut,vi]),style:Yt,progressInterval:vi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:Ma([Wt,Ut,Yt]),playIcon:Lg,previewTabIndex:vi,fallback:Lg,oEmbedUrl:Ut,wrapper:Ma([Ut,wt,pn({render:wt.isRequired})]),config:pn({soundcloud:pn({options:Yt}),youtube:pn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:pn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:pn({params:Yt}),vimeo:pn({playerOptions:Yt,title:Ut}),file:pn({attributes:Yt,tracks:rf,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:pn({options:Yt,playerId:Ut,customControls:rf}),mixcloud:pn({options:Yt}),twitch:pn({options:Yt,playerId:Ut}),vidyard:pn({options:Yt})}),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=()=>{},mZ={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 yZ=Object.create,Qo=Object.defineProperty,gZ=Object.getOwnPropertyDescriptor,vZ=Object.getOwnPropertyNames,xZ=Object.getPrototypeOf,bZ=Object.prototype.hasOwnProperty,wZ=(e,t,n)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SZ=(e,t)=>{for(var n in t)Qo(e,n,{get:t[n],enumerable:!0})},xw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vZ(t))!bZ.call(e,i)&&i!==n&&Qo(e,i,{get:()=>t[i],enumerable:!(r=gZ(t,i))||r.enumerable});return e},bw=(e,t,n)=>(n=e!=null?yZ(xZ(e)):{},xw(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e)),_Z=e=>xw(Qo({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(wZ(e,typeof t!="symbol"?t+"":t,n),n),ww={};SZ(ww,{default:()=>zu});var OZ=_Z(ww),Ng=bw(B),kZ=bw(mw),Sw=vw,CZ=Ru;const PZ=5e3;class zu extends Ng.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,kZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,CZ.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},PZ));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?Ng.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(zu,"displayName","Player");vt(zu,"propTypes",Sw.propTypes);vt(zu,"defaultProps",Sw.defaultProps);var AZ=Object.create,es=Object.defineProperty,jZ=Object.getOwnPropertyDescriptor,TZ=Object.getOwnPropertyNames,EZ=Object.getPrototypeOf,MZ=Object.prototype.hasOwnProperty,$Z=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IZ=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},_w=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TZ(t))!MZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=jZ(t,i))||r.enumerable});return e},ts=(e,t,n)=>(n=e!=null?AZ(EZ(e)):{},_w(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),DZ=e=>_w(es({},"__esModule",{value:!0}),e),gt=(e,t,n)=>($Z(e,typeof t!="symbol"?t+"":t,n),n),Ow={};IZ(Ow,{createReactPlayer:()=>WZ});var LZ=DZ(Ow),bi=ts(B),NZ=ts(K2),af=ts(eZ),Rg=ts(mw),Na=vw,kw=Ru,RZ=ts(OZ);const BZ=(0,kw.lazy)(()=>rn(()=>import("./Preview-a6576b17.js").then(e=>e.P),["assets/Preview-a6576b17.js","assets/index-453237c9.js","assets/index-a2878e02.css"])),zZ=typeof window<"u"&&window.document,FZ=typeof Bt<"u"&&Bt.window&&Bt.window.document,HZ=Object.keys(Na.propTypes),UZ=zZ||FZ?bi.Suspense:()=>null,$a=[],WZ=(e,t)=>{var n;return n=class extends bi.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,af.default)(r=>{for(const i of[...$a,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,af.default)((r,i)=>{const{config:a}=this.props;return NZ.default.all([Na.defaultProps.config,Na.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,af.default)(r=>(0,kw.omit)(this.props,HZ))),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 bi.default.createElement(RZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Rg.default)(this.props,r)||!(0,Rg.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 bi.default.createElement(BZ,{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 bi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},bi.default.createElement(UZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Na.propTypes),gt(n,"defaultProps",Na.defaultProps),gt(n,"addCustomPlayer",r=>{$a.push(r)}),gt(n,"removeCustomPlayers",()=>{$a.length=0}),gt(n,"canPlay",r=>{for(const i of[...$a,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...$a,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var YZ=Object.create,Fu=Object.defineProperty,VZ=Object.getOwnPropertyDescriptor,GZ=Object.getOwnPropertyNames,qZ=Object.getPrototypeOf,KZ=Object.prototype.hasOwnProperty,XZ=(e,t)=>{for(var n in t)Fu(e,n,{get:t[n],enumerable:!0})},Cw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of GZ(t))!KZ.call(e,i)&&i!==n&&Fu(e,i,{get:()=>t[i],enumerable:!(r=VZ(t,i))||r.enumerable});return e},ZZ=(e,t,n)=>(n=e!=null?YZ(qZ(e)):{},Cw(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e)),JZ=e=>Cw(Fu({},"__esModule",{value:!0}),e),Pw={};XZ(Pw,{default:()=>nJ});var QZ=JZ(Pw),Md=ZZ(qX),eJ=LZ;const tJ=Md.default[Md.default.length-1];var nJ=(0,eJ.createReactPlayer)(Md.default,tJ);const rJ=st(QZ),iJ=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"})})]}),aJ=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"})})]}),oJ=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"})})]})}),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_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"})]})]})}),Bg=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}`},lJ=({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,C)=>{const k=Array.isArray(C)?C[0]:C;f(k),o(O,k),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(mJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(uJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(dJ,{onClick:n,size:"small",children:e?y.jsx(Wl,{}):y.jsx(Rd,{})}),y.jsxs(yJ,{direction:"row",children:[y.jsx("span",{children:Bg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:Bg(i)})]}),y.jsxs(hJ,{direction:"row",px:9,children:[y.jsx(Gl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(cJ,{onClick:b,children:d?y.jsx(fJ,{children:y.jsx(sJ,{})}):y.jsx(oJ,{})})]}),y.jsx(pJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(iJ,{}):y.jsx(aJ,{})})]})]})},uJ=H(F)` +`,WK=()=>{const e=qt(),{setPlayingNode:t}=Yl(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(cK,{});case"data_series":return y.jsx(sq,{});case"tribe_message":return y.jsx(oK,{});case"Tweet":return y.jsx(bK,{});case"topic":return y.jsx(xK,{});case"show":return y.jsx(vK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(G2,{});case"document":return y.jsx(RK,{});case"episode":return y.jsx(tK,{},e.ref_id);case"image":return y.jsx(aK,{});default:return y.jsx(PK,{})}},YK=B.memo(WK);var VK=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&&GK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?Mg:qK;o(a,r),a.onload||Mg(a,r),i.appendChild(a)};function GK(e,t){for(var n in t)e.setAttribute(n,t[n])}function Mg(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 qK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var KK=function(t){return XK(t)&&!ZK(t)};function XK(e){return!!e&&typeof e=="object"}function ZK(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eX(e)}var JK=typeof Symbol=="function"&&Symbol.for,QK=JK?Symbol.for("react.element"):60103;function eX(e){return e.$$typeof===QK}function tX(e){return Array.isArray(e)?[]:{}}function Do(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zi(tX(e),e,t):e}function nX(e,t,n){return e.concat(t).map(function(r){return Do(r,n)})}function rX(e,t){if(!t.customMerge)return Zi;var n=t.customMerge(e);return typeof n=="function"?n:Zi}function iX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $g(e){return Object.keys(e).concat(iX(e))}function q2(e,t){try{return t in e}catch{return!1}}function aX(e,t){return q2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function oX(e,t,n){var r={};return n.isMergeableObject(e)&&$g(e).forEach(function(i){r[i]=Do(e[i],n)}),$g(t).forEach(function(i){aX(e,i)||(q2(e,i)&&n.isMergeableObject(t[i])?r[i]=rX(i,n)(e[i],t[i],n):r[i]=Do(t[i],n))}),r}function Zi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nX,n.isMergeableObject=n.isMergeableObject||KK,n.cloneUnlessOtherwiseSpecified=Do;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):oX(e,t,n):Do(t,n)}Zi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zi(r,i,n)},{})};var sX=Zi,K2=sX,lX=Object.create,Nu=Object.defineProperty,uX=Object.getOwnPropertyDescriptor,cX=Object.getOwnPropertyNames,fX=Object.getPrototypeOf,dX=Object.prototype.hasOwnProperty,hX=(e,t)=>{for(var n in t)Nu(e,n,{get:t[n],enumerable:!0})},X2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cX(t))!dX.call(e,i)&&i!==n&&Nu(e,i,{get:()=>t[i],enumerable:!(r=uX(t,i))||r.enumerable});return e},op=(e,t,n)=>(n=e!=null?lX(fX(e)):{},X2(t||!e||!e.__esModule?Nu(n,"default",{value:e,enumerable:!0}):n,e)),pX=e=>X2(Nu({},"__esModule",{value:!0}),e),Z2={};hX(Z2,{callPlayer:()=>TX,getConfig:()=>AX,getSDK:()=>PX,isBlobUrl:()=>MX,isMediaStream:()=>EX,lazy:()=>vX,omit:()=>jX,parseEndTime:()=>OX,parseStartTime:()=>_X,queryString:()=>CX,randomString:()=>kX,supportsWebKitPresentationMode:()=>$X});var Ru=pX(Z2),mX=op(B),yX=op(VK),gX=op(K2);const vX=e=>mX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),xX=/[?&#](?:start|t)=([0-9hms]+)/,bX=/[?&#]end=([0-9hms]+)/,jd=/(\d+)(h|m|s)/g,wX=/^\d+$/;function J2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(jd))return SX(r);if(wX.test(r))return parseInt(r)}}function SX(e){let t=0,n=jd.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=jd.exec(e)}return t}function _X(e){return J2(e,xX)}function OX(e){return J2(e,bX)}function kX(){return Math.random().toString(36).substr(2,5)}function CX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function nf(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 gi={},PX=function(t,n,r=null,i=()=>!0,a=yX.default){const o=nf(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(gi[t]){gi[t].push({resolve:s,reject:l});return}gi[t]=[{resolve:s,reject:l}];const u=f=>{gi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(nf(n))}}a(t,f=>{f?(gi[t].forEach(d=>d.reject(f)),gi[t]=null):r||u(nf(n))})})};function AX(e,t){return(0,gX.default)(t.config,e.config)}function jX(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 TX(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 EX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function MX(e){return/^blob:/.test(e)}function $X(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var sp=Object.defineProperty,IX=Object.getOwnPropertyDescriptor,DX=Object.getOwnPropertyNames,LX=Object.prototype.hasOwnProperty,NX=(e,t)=>{for(var n in t)sp(e,n,{get:t[n],enumerable:!0})},RX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of DX(t))!LX.call(e,i)&&i!==n&&sp(e,i,{get:()=>t[i],enumerable:!(r=IX(t,i))||r.enumerable});return e},BX=e=>RX(sp({},"__esModule",{value:!0}),e),Q2={};NX(Q2,{AUDIO_EXTENSIONS:()=>lp,DASH_EXTENSIONS:()=>dw,FLV_EXTENSIONS:()=>hw,HLS_EXTENSIONS:()=>cp,MATCH_URL_DAILYMOTION:()=>lw,MATCH_URL_FACEBOOK:()=>nw,MATCH_URL_FACEBOOK_WATCH:()=>rw,MATCH_URL_KALTURA:()=>fw,MATCH_URL_MIXCLOUD:()=>uw,MATCH_URL_SOUNDCLOUD:()=>ew,MATCH_URL_STREAMABLE:()=>iw,MATCH_URL_TWITCH_CHANNEL:()=>sw,MATCH_URL_TWITCH_VIDEO:()=>ow,MATCH_URL_VIDYARD:()=>cw,MATCH_URL_VIMEO:()=>tw,MATCH_URL_WISTIA:()=>aw,MATCH_URL_YOUTUBE:()=>Td,VIDEO_EXTENSIONS:()=>up,canPlay:()=>FX});var zX=BX(Q2),Ig=Ru;const Td=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ew=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,tw=/vimeo\.com\/(?!progressive_redirect).+/,nw=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,rw=/^https?:\/\/fb\.watch\/.+$/,iw=/streamable\.com\/([a-z0-9]+)$/,aw=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ow=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,sw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,lw=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,uw=/mixcloud\.com\/([^/]+\/[^/]+)/,cw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,fw=/^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-_].*)$/,lp=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,up=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,cp=/\.(m3u8)($|\?)/i,dw=/\.(mpd)($|\?)/i,hw=/\.(flv)($|\?)/i,Ed=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Ed(t)||Ed(t.src))return!0;return!1}return(0,Ig.isMediaStream)(e)||(0,Ig.isBlobUrl)(e)?!0:lp.test(e)||up.test(e)||cp.test(e)||dw.test(e)||hw.test(e)},FX={youtube:e=>e instanceof Array?e.every(t=>Td.test(t)):Td.test(e),soundcloud:e=>ew.test(e)&&!lp.test(e),vimeo:e=>tw.test(e)&&!up.test(e)&&!cp.test(e),facebook:e=>nw.test(e)||rw.test(e),streamable:e=>iw.test(e),wistia:e=>aw.test(e),twitch:e=>ow.test(e)||sw.test(e),dailymotion:e=>lw.test(e),mixcloud:e=>uw.test(e),vidyard:e=>cw.test(e),kaltura:e=>fw.test(e),file:Ed};var fp=Object.defineProperty,HX=Object.getOwnPropertyDescriptor,UX=Object.getOwnPropertyNames,WX=Object.prototype.hasOwnProperty,YX=(e,t)=>{for(var n in t)fp(e,n,{get:t[n],enumerable:!0})},VX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UX(t))!WX.call(e,i)&&i!==n&&fp(e,i,{get:()=>t[i],enumerable:!(r=HX(t,i))||r.enumerable});return e},GX=e=>VX(fp({},"__esModule",{value:!0}),e),pw={};YX(pw,{default:()=>KX});var qX=GX(pw),nn=Ru,Xt=zX,KX=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./YouTube-c62bab1c.js").then(e=>e.Y),["assets/YouTube-c62bab1c.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./SoundCloud-7fcb0b13.js").then(e=>e.S),["assets/SoundCloud-7fcb0b13.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vimeo-ff6f785f.js").then(e=>e.V),["assets/Vimeo-ff6f785f.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Facebook-f0725fd9.js").then(e=>e.F),["assets/Facebook-f0725fd9.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Streamable-eb269619.js").then(e=>e.S),["assets/Streamable-eb269619.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Wistia-f8cd0254.js").then(e=>e.W),["assets/Wistia-f8cd0254.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Twitch-997a6dd4.js").then(e=>e.T),["assets/Twitch-997a6dd4.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./DailyMotion-c471f5ba.js").then(e=>e.D),["assets/DailyMotion-c471f5ba.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Mixcloud-14342f0f.js").then(e=>e.M),["assets/Mixcloud-14342f0f.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vidyard-1cb28f51.js").then(e=>e.V),["assets/Vidyard-1cb28f51.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Kaltura-f277dadd.js").then(e=>e.K),["assets/Kaltura-f277dadd.js","assets/index-20244629.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-4a5e2615.js").then(e=>e.F),["assets/FilePlayer-4a5e2615.js","assets/index-20244629.js","assets/index-a2878e02.css"]))}],Dg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function XX(e,t){return!!(e===t||Dg(e)&&Dg(t))}function ZX(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Bu(e,n,{get:t[n],enumerable:!0})},yw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sZ(t))!uZ.call(e,i)&&i!==n&&Bu(e,i,{get:()=>t[i],enumerable:!(r=oZ(t,i))||r.enumerable});return e},fZ=(e,t,n)=>(n=e!=null?aZ(lZ(e)):{},yw(t||!e||!e.__esModule?Bu(n,"default",{value:e,enumerable:!0}):n,e)),dZ=e=>yw(Bu({},"__esModule",{value:!0}),e),gw={};cZ(gw,{defaultProps:()=>mZ,propTypes:()=>pZ});var vw=dZ(gw),hZ=fZ(j4);const{string:Ut,bool:Wt,number:vi,array:rf,oneOfType:Ma,shape:pn,object:Yt,func:wt,node:Lg}=hZ.default,pZ={url:Ma([Ut,rf,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:vi,muted:Wt,playbackRate:vi,width:Ma([Ut,vi]),height:Ma([Ut,vi]),style:Yt,progressInterval:vi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:Ma([Wt,Ut,Yt]),playIcon:Lg,previewTabIndex:vi,fallback:Lg,oEmbedUrl:Ut,wrapper:Ma([Ut,wt,pn({render:wt.isRequired})]),config:pn({soundcloud:pn({options:Yt}),youtube:pn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:pn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:pn({params:Yt}),vimeo:pn({playerOptions:Yt,title:Ut}),file:pn({attributes:Yt,tracks:rf,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:pn({options:Yt,playerId:Ut,customControls:rf}),mixcloud:pn({options:Yt}),twitch:pn({options:Yt,playerId:Ut}),vidyard:pn({options:Yt})}),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=()=>{},mZ={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 yZ=Object.create,Qo=Object.defineProperty,gZ=Object.getOwnPropertyDescriptor,vZ=Object.getOwnPropertyNames,xZ=Object.getPrototypeOf,bZ=Object.prototype.hasOwnProperty,wZ=(e,t,n)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SZ=(e,t)=>{for(var n in t)Qo(e,n,{get:t[n],enumerable:!0})},xw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vZ(t))!bZ.call(e,i)&&i!==n&&Qo(e,i,{get:()=>t[i],enumerable:!(r=gZ(t,i))||r.enumerable});return e},bw=(e,t,n)=>(n=e!=null?yZ(xZ(e)):{},xw(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e)),_Z=e=>xw(Qo({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(wZ(e,typeof t!="symbol"?t+"":t,n),n),ww={};SZ(ww,{default:()=>zu});var OZ=_Z(ww),Ng=bw(B),kZ=bw(mw),Sw=vw,CZ=Ru;const PZ=5e3;class zu extends Ng.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,kZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,CZ.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},PZ));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?Ng.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(zu,"displayName","Player");vt(zu,"propTypes",Sw.propTypes);vt(zu,"defaultProps",Sw.defaultProps);var AZ=Object.create,es=Object.defineProperty,jZ=Object.getOwnPropertyDescriptor,TZ=Object.getOwnPropertyNames,EZ=Object.getPrototypeOf,MZ=Object.prototype.hasOwnProperty,$Z=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IZ=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},_w=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TZ(t))!MZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=jZ(t,i))||r.enumerable});return e},ts=(e,t,n)=>(n=e!=null?AZ(EZ(e)):{},_w(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),DZ=e=>_w(es({},"__esModule",{value:!0}),e),gt=(e,t,n)=>($Z(e,typeof t!="symbol"?t+"":t,n),n),Ow={};IZ(Ow,{createReactPlayer:()=>WZ});var LZ=DZ(Ow),bi=ts(B),NZ=ts(K2),af=ts(eZ),Rg=ts(mw),Na=vw,kw=Ru,RZ=ts(OZ);const BZ=(0,kw.lazy)(()=>rn(()=>import("./Preview-15830368.js").then(e=>e.P),["assets/Preview-15830368.js","assets/index-20244629.js","assets/index-a2878e02.css"])),zZ=typeof window<"u"&&window.document,FZ=typeof Bt<"u"&&Bt.window&&Bt.window.document,HZ=Object.keys(Na.propTypes),UZ=zZ||FZ?bi.Suspense:()=>null,$a=[],WZ=(e,t)=>{var n;return n=class extends bi.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,af.default)(r=>{for(const i of[...$a,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,af.default)((r,i)=>{const{config:a}=this.props;return NZ.default.all([Na.defaultProps.config,Na.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,af.default)(r=>(0,kw.omit)(this.props,HZ))),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 bi.default.createElement(RZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Rg.default)(this.props,r)||!(0,Rg.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 bi.default.createElement(BZ,{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 bi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},bi.default.createElement(UZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Na.propTypes),gt(n,"defaultProps",Na.defaultProps),gt(n,"addCustomPlayer",r=>{$a.push(r)}),gt(n,"removeCustomPlayers",()=>{$a.length=0}),gt(n,"canPlay",r=>{for(const i of[...$a,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...$a,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var YZ=Object.create,Fu=Object.defineProperty,VZ=Object.getOwnPropertyDescriptor,GZ=Object.getOwnPropertyNames,qZ=Object.getPrototypeOf,KZ=Object.prototype.hasOwnProperty,XZ=(e,t)=>{for(var n in t)Fu(e,n,{get:t[n],enumerable:!0})},Cw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of GZ(t))!KZ.call(e,i)&&i!==n&&Fu(e,i,{get:()=>t[i],enumerable:!(r=VZ(t,i))||r.enumerable});return e},ZZ=(e,t,n)=>(n=e!=null?YZ(qZ(e)):{},Cw(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e)),JZ=e=>Cw(Fu({},"__esModule",{value:!0}),e),Pw={};XZ(Pw,{default:()=>nJ});var QZ=JZ(Pw),Md=ZZ(qX),eJ=LZ;const tJ=Md.default[Md.default.length-1];var nJ=(0,eJ.createReactPlayer)(Md.default,tJ);const rJ=st(QZ),iJ=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"})})]}),aJ=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"})})]}),oJ=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"})})]})}),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_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"})]})]})}),Bg=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}`},lJ=({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,C)=>{const k=Array.isArray(C)?C[0]:C;f(k),o(O,k),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(mJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(uJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(dJ,{onClick:n,size:"small",children:e?y.jsx(Wl,{}):y.jsx(Rd,{})}),y.jsxs(yJ,{direction:"row",children:[y.jsx("span",{children:Bg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:Bg(i)})]}),y.jsxs(hJ,{direction:"row",px:9,children:[y.jsx(Gl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(cJ,{onClick:b,children:d?y.jsx(fJ,{children:y.jsx(sJ,{})}):y.jsx(oJ,{})})]}),y.jsx(pJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(iJ,{}):y.jsx(aJ,{})})]})]})},uJ=H(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` diff --git a/build/assets/index-238373e6.js b/build/assets/index-ce0d9b71.js similarity index 92% rename from build/assets/index-238373e6.js rename to build/assets/index-ce0d9b71.js index 084c538a9..308b8c1a7 100644 --- a/build/assets/index-238373e6.js +++ b/build/assets/index-ce0d9b71.js @@ -1,4 +1,4 @@ -import{j as e,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-453237c9.js";import{B as R}from"./index-12293453.js";import{S as I}from"./Skeleton-926f190e.js";import{C as z}from"./ClipLoader-c4c3d020.js";import{B as j}from"./index-aa07e3c0.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,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-20244629.js";import{B as R}from"./index-fb1d223f.js";import{S as I}from"./Skeleton-e4541980.js";import{C as z}from"./ClipLoader-a0c1d0d5.js";import{B as j}from"./index-922a0411.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-e85ff846.js b/build/assets/index-f8e07c95.js similarity index 92% rename from build/assets/index-e85ff846.js rename to build/assets/index-f8e07c95.js index 3cce2335e..8150c923d 100644 --- a/build/assets/index-e85ff846.js +++ b/build/assets/index-f8e07c95.js @@ -1,4 +1,4 @@ -import{o as v,q,T as F,F as n,r as x,j as e,aW as K,b8 as $,K as J,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-453237c9.js";import{h as V,B as E,i as N,F as ee}from"./index-aa07e3c0.js";import{B as te}from"./index-12293453.js";import{T as re}from"./index-66983695.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-6f7942fe.js";import{C as Y}from"./ClipLoader-c4c3d020.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-1996df7a.js";import"./InfoIcon-dd2e04fe.js";import"./three.module-2ce81f73.js";import"./Stack-b37dd094.js";import"./useSlotProps-0f0c60ff.js";import"./Popover-619582c9.js";import"./createSvgIcon-b3dd03d1.js";import"./TextareaAutosize-4ce1e768.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,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(Y,{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?{...K,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{o as v,q,T as F,F as n,r as x,j as e,aW as K,b8 as $,K as J,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-20244629.js";import{h as V,B as E,i as N,F as ee}from"./index-922a0411.js";import{B as te}from"./index-fb1d223f.js";import{T as re}from"./index-68ed2d99.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-bb4ca660.js";import{C as Y}from"./ClipLoader-a0c1d0d5.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-120f9454.js";import"./InfoIcon-35720818.js";import"./three.module-2ce81f73.js";import"./Stack-76b9b130.js";import"./useSlotProps-4a56e8a6.js";import"./Popover-aff34d88.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,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(Y,{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?{...K,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'; diff --git a/build/assets/index-12293453.js b/build/assets/index-fb1d223f.js similarity index 96% rename from build/assets/index-12293453.js rename to build/assets/index-fb1d223f.js index 788124477..bce606904 100644 --- a/build/assets/index-12293453.js +++ b/build/assets/index-fb1d223f.js @@ -1,4 +1,4 @@ -import{ai as m,o as s,q as r,ag as o,F as d,O as w,r as y,j as e}from"./index-453237c9.js";import{k as v}from"./index-aa07e3c0.js";const k=m` +import{ai as m,o as s,q as r,ag as o,F as d,O as w,r as y,j as e}from"./index-20244629.js";import{k as v}from"./index-922a0411.js";const k=m` 0% { transform: scale(0.8); } diff --git a/build/assets/index.esm-1996df7a.js b/build/assets/index.esm-120f9454.js similarity index 98% rename from build/assets/index.esm-1996df7a.js rename to build/assets/index.esm-120f9454.js index 5fb25a680..5a3db5a13 100644 --- a/build/assets/index.esm-1996df7a.js +++ b/build/assets/index.esm-120f9454.js @@ -1 +1 @@ -import{R as c}from"./index-453237c9.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{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),f=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),d=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,f,a);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:f,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},f,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; +import{_ as r,a as h}from"./index-20244629.js";import{e as w}from"./index-922a0411.js";function A(e,o=166){let t;function n(...s){const i=()=>{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),f=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),d=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,f,a);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:f,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},f,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; diff --git a/build/index.html b/build/index.html index ff60cbdb2..6c51c79f0 100644 --- a/build/index.html +++ b/build/index.html @@ -22,7 +22,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Second Brain - + From a2d906bb22abc3807cb36098deb98ffb6d20567c Mon Sep 17 00:00:00 2001 From: Github Actions Date: Mon, 9 Sep 2024 16:03:02 +0000 Subject: [PATCH 6/6] ci: automatic build fixes --- ...Icon-78afa5f1.js => CheckIcon-7a9fa35b.js} | 2 +- ...der-a0c1d0d5.js => ClipLoader-da7156bc.js} | 2 +- ...on-c471f5ba.js => DailyMotion-b709b0be.js} | 2 +- ...con-b904bd34.js => DeleteIcon-46e3d4ca.js} | 2 +- ...ebook-f0725fd9.js => Facebook-420a5948.js} | 2 +- ...yer-4a5e2615.js => FilePlayer-ec8f2106.js} | 2 +- ...6fa8a1.js => FormControlLabel-5df2ea4a.js} | 2 +- ...oIcon-35720818.js => InfoIcon-b9565bf8.js} | 2 +- ...altura-f277dadd.js => Kaltura-d4541545.js} | 2 +- ...Icon-32b40892.js => MergeIcon-faa51e87.js} | 2 +- ...cloud-14342f0f.js => Mixcloud-bd469ed7.js} | 2 +- ...4410772f.js => NodeCircleIcon-c0da6b29.js} | 2 +- ...sIcon-f79d966c.js => PlusIcon-92013c0a.js} | 2 +- ...opover-aff34d88.js => Popover-92a41dd0.js} | 2 +- ...review-15830368.js => Preview-b9a866fe.js} | 2 +- ...con-61a39fc4.js => SearchIcon-2fabe9d1.js} | 2 +- ...leton-e4541980.js => Skeleton-efee6f09.js} | 2 +- ...oud-7fcb0b13.js => SoundCloud-93cb1afb.js} | 2 +- .../{Stack-76b9b130.js => Stack-179be030.js} | 2 +- ...ble-eb269619.js => Streamable-c4a3f5d1.js} | 2 +- .../{Tabs-e60acdc7.js => Tabs-a92afa02.js} | 2 +- ...8bfc98.js => TextareaAutosize-293fa137.js} | 2 +- ...{Twitch-997a6dd4.js => Twitch-dd9fe18d.js} | 2 +- ...phy-2d560971.js => Typography-f70a691a.js} | 2 +- ...idyard-1cb28f51.js => Vidyard-1e1084a1.js} | 2 +- .../{Vimeo-ff6f785f.js => Vimeo-89733b5a.js} | 2 +- ...{Wistia-f8cd0254.js => Wistia-d0de90bd.js} | 2 +- ...ouTube-c62bab1c.js => YouTube-a0f30312.js} | 2 +- ...-bd0d8dc7.js => createSvgIcon-2d6cbf8b.js} | 2 +- .../{index-5dc8bdba.js => index-0dad72e4.js} | 2 +- .../{index-b9333c3d.js => index-1274a067.js} | 2 +- .../{index-bb4ca660.js => index-1ecda1ff.js} | 2 +- .../{index-f8e07c95.js => index-455ab4cd.js} | 2 +- .../{index-c49ebc93.js => index-48de85f6.js} | 440 +++++++++--------- .../{index-306d154d.js => index-555436f8.js} | 2 +- .../{index-ce0d9b71.js => index-556c69fb.js} | 2 +- .../{index-6bd8a92b.js => index-67a17864.js} | 2 +- .../{index-5d1ac3c2.js => index-7c966c05.js} | 2 +- .../{index-68ed2d99.js => index-8870d532.js} | 2 +- .../{index-17ed309d.js => index-8b3d1b3e.js} | 2 +- .../{index-7978898a.js => index-8c987cbd.js} | 2 +- .../{index-20244629.js => index-931430a1.js} | 4 +- .../{index-3fc7a58d.js => index-9406a24e.js} | 2 +- .../{index-922a0411.js => index-9910581f.js} | 6 +- .../{index-0a4c6ec3.js => index-9f26578a.js} | 2 +- .../{index-81b1cbe5.js => index-a09c0824.js} | 2 +- .../{index-1477a4a5.js => index-c30ce896.js} | 2 +- .../{index-a1bce07a.js => index-c34ea667.js} | 2 +- .../{index-fb1d223f.js => index-d447730d.js} | 2 +- .../{index-166b6403.js => index-d5b67b5d.js} | 2 +- .../{index-0494f451.js => index-f066ce61.js} | 2 +- .../{index-bce8e63a.js => index-f8725cc4.js} | 2 +- ....esm-120f9454.js => index.esm-25778014.js} | 2 +- ...s-4a56e8a6.js => useSlotProps-1d7699bd.js} | 2 +- build/index.html | 2 +- 55 files changed, 277 insertions(+), 277 deletions(-) rename build/assets/{CheckIcon-78afa5f1.js => CheckIcon-7a9fa35b.js} (92%) rename build/assets/{ClipLoader-a0c1d0d5.js => ClipLoader-da7156bc.js} (97%) rename build/assets/{DailyMotion-c471f5ba.js => DailyMotion-b709b0be.js} (95%) rename build/assets/{DeleteIcon-b904bd34.js => DeleteIcon-46e3d4ca.js} (96%) rename build/assets/{Facebook-f0725fd9.js => Facebook-420a5948.js} (96%) rename build/assets/{FilePlayer-4a5e2615.js => FilePlayer-ec8f2106.js} (98%) rename build/assets/{FormControlLabel-dd6fa8a1.js => FormControlLabel-5df2ea4a.js} (94%) rename build/assets/{InfoIcon-35720818.js => InfoIcon-b9565bf8.js} (97%) rename build/assets/{Kaltura-f277dadd.js => Kaltura-d4541545.js} (95%) rename build/assets/{MergeIcon-32b40892.js => MergeIcon-faa51e87.js} (98%) rename build/assets/{Mixcloud-14342f0f.js => Mixcloud-bd469ed7.js} (95%) rename build/assets/{NodeCircleIcon-4410772f.js => NodeCircleIcon-c0da6b29.js} (91%) rename build/assets/{PlusIcon-f79d966c.js => PlusIcon-92013c0a.js} (94%) rename build/assets/{Popover-aff34d88.js => Popover-92a41dd0.js} (99%) rename build/assets/{Preview-15830368.js => Preview-b9a866fe.js} (97%) rename build/assets/{SearchIcon-61a39fc4.js => SearchIcon-2fabe9d1.js} (95%) rename build/assets/{Skeleton-e4541980.js => Skeleton-efee6f09.js} (97%) rename build/assets/{SoundCloud-7fcb0b13.js => SoundCloud-93cb1afb.js} (95%) rename build/assets/{Stack-76b9b130.js => Stack-179be030.js} (99%) rename build/assets/{Streamable-eb269619.js => Streamable-c4a3f5d1.js} (95%) rename build/assets/{Tabs-e60acdc7.js => Tabs-a92afa02.js} (98%) rename build/assets/{TextareaAutosize-ed8bfc98.js => TextareaAutosize-293fa137.js} (91%) rename build/assets/{Twitch-997a6dd4.js => Twitch-dd9fe18d.js} (95%) rename build/assets/{Typography-2d560971.js => Typography-f70a691a.js} (93%) rename build/assets/{Vidyard-1cb28f51.js => Vidyard-1e1084a1.js} (95%) rename build/assets/{Vimeo-ff6f785f.js => Vimeo-89733b5a.js} (96%) rename build/assets/{Wistia-f8cd0254.js => Wistia-d0de90bd.js} (96%) rename build/assets/{YouTube-c62bab1c.js => YouTube-a0f30312.js} (97%) rename build/assets/{createSvgIcon-bd0d8dc7.js => createSvgIcon-2d6cbf8b.js} (97%) rename build/assets/{index-5dc8bdba.js => index-0dad72e4.js} (96%) rename build/assets/{index-b9333c3d.js => index-1274a067.js} (99%) rename build/assets/{index-bb4ca660.js => index-1ecda1ff.js} (99%) rename build/assets/{index-f8e07c95.js => index-455ab4cd.js} (92%) rename build/assets/{index-c49ebc93.js => index-48de85f6.js} (62%) rename build/assets/{index-306d154d.js => index-555436f8.js} (90%) rename build/assets/{index-ce0d9b71.js => index-556c69fb.js} (92%) rename build/assets/{index-6bd8a92b.js => index-67a17864.js} (85%) rename build/assets/{index-5d1ac3c2.js => index-7c966c05.js} (98%) rename build/assets/{index-68ed2d99.js => index-8870d532.js} (98%) rename build/assets/{index-17ed309d.js => index-8b3d1b3e.js} (91%) rename build/assets/{index-7978898a.js => index-8c987cbd.js} (93%) rename build/assets/{index-20244629.js => index-931430a1.js} (90%) rename build/assets/{index-3fc7a58d.js => index-9406a24e.js} (91%) rename build/assets/{index-922a0411.js => index-9910581f.js} (97%) rename build/assets/{index-0a4c6ec3.js => index-9f26578a.js} (99%) rename build/assets/{index-81b1cbe5.js => index-a09c0824.js} (91%) rename build/assets/{index-1477a4a5.js => index-c30ce896.js} (64%) rename build/assets/{index-a1bce07a.js => index-c34ea667.js} (64%) rename build/assets/{index-fb1d223f.js => index-d447730d.js} (96%) rename build/assets/{index-166b6403.js => index-d5b67b5d.js} (99%) rename build/assets/{index-0494f451.js => index-f066ce61.js} (98%) rename build/assets/{index-bce8e63a.js => index-f8725cc4.js} (92%) rename build/assets/{index.esm-120f9454.js => index.esm-25778014.js} (98%) rename build/assets/{useSlotProps-4a56e8a6.js => useSlotProps-1d7699bd.js} (94%) diff --git a/build/assets/CheckIcon-78afa5f1.js b/build/assets/CheckIcon-7a9fa35b.js similarity index 92% rename from build/assets/CheckIcon-78afa5f1.js rename to build/assets/CheckIcon-7a9fa35b.js index 1c2b1e3f8..d5db284bf 100644 --- a/build/assets/CheckIcon-78afa5f1.js +++ b/build/assets/CheckIcon-7a9fa35b.js @@ -1 +1 @@ -import{j as C}from"./index-20244629.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-931430a1.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-a0c1d0d5.js b/build/assets/ClipLoader-da7156bc.js similarity index 97% rename from build/assets/ClipLoader-a0c1d0d5.js rename to build/assets/ClipLoader-da7156bc.js index 0a65b678d..c138f2800 100644 --- a/build/assets/ClipLoader-a0c1d0d5.js +++ b/build/assets/ClipLoader-da7156bc.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-20244629.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-931430a1.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-c471f5ba.js b/build/assets/DailyMotion-b709b0be.js similarity index 95% rename from build/assets/DailyMotion-c471f5ba.js rename to build/assets/DailyMotion-b709b0be.js index 8fee2c7ab..94f773765 100644 --- a/build/assets/DailyMotion-c471f5ba.js +++ b/build/assets/DailyMotion-b709b0be.js @@ -1 +1 @@ -import{n as P,r as v}from"./index-20244629.js";import{u as D,p as O}from"./index-c49ebc93.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{n as P,r as v}from"./index-931430a1.js";import{u as D,p as O}from"./index-48de85f6.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-b904bd34.js b/build/assets/DeleteIcon-46e3d4ca.js similarity index 96% rename from build/assets/DeleteIcon-b904bd34.js rename to build/assets/DeleteIcon-46e3d4ca.js index ead3f0343..fca81326c 100644 --- a/build/assets/DeleteIcon-b904bd34.js +++ b/build/assets/DeleteIcon-46e3d4ca.js @@ -1 +1 @@ -import{j as e}from"./index-20244629.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-931430a1.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-f0725fd9.js b/build/assets/Facebook-420a5948.js similarity index 96% rename from build/assets/Facebook-f0725fd9.js rename to build/assets/Facebook-420a5948.js index 2138d0b98..e3591dd11 100644 --- a/build/assets/Facebook-f0725fd9.js +++ b/build/assets/Facebook-420a5948.js @@ -1 +1 @@ -import{n as _,r as P}from"./index-20244629.js";import{u as g,p as m}from"./index-c49ebc93.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{n as _,r as P}from"./index-931430a1.js";import{u as g,p as m}from"./index-48de85f6.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-4a5e2615.js b/build/assets/FilePlayer-ec8f2106.js similarity index 98% rename from build/assets/FilePlayer-4a5e2615.js rename to build/assets/FilePlayer-ec8f2106.js index e7a460a69..bbadd4133 100644 --- a/build/assets/FilePlayer-4a5e2615.js +++ b/build/assets/FilePlayer-ec8f2106.js @@ -1 +1 @@ -import{n as b,r as _}from"./index-20244629.js";import{u as O,p as A}from"./index-c49ebc93.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; +import{n as b,r as _}from"./index-931430a1.js";import{u as O,p as A}from"./index-48de85f6.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/build/assets/FormControlLabel-dd6fa8a1.js b/build/assets/FormControlLabel-5df2ea4a.js similarity index 94% rename from build/assets/FormControlLabel-dd6fa8a1.js rename to build/assets/FormControlLabel-5df2ea4a.js index 2268d8f3f..b257b6db3 100644 --- a/build/assets/FormControlLabel-dd6fa8a1.js +++ b/build/assets/FormControlLabel-5df2ea4a.js @@ -1 +1 @@ -import{b as z,g as A,s as B,_ as d,i as V,r as j,a as D,j as f,c as T,e as _,d as O,u as X}from"./index-20244629.js";import{u as Y,a as W,f as Z,S as ee}from"./Stack-76b9b130.js";import{p as oe}from"./index-922a0411.js";import{T as M}from"./Typography-2d560971.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${_(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 U=r.target.checked;H(U),P&&P(r,U)};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}),E=ae(N);return f.jsxs(re,d({component:"span",className:T(E.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:E.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${_(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${_(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}; +import{b as z,g as A,s as B,_ as d,i as V,r as j,a as D,j as f,c as T,e as _,d as O,u as X}from"./index-931430a1.js";import{u as Y,a as W,f as Z,S as ee}from"./Stack-179be030.js";import{p as oe}from"./index-9910581f.js";import{T as M}from"./Typography-f70a691a.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${_(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 U=r.target.checked;H(U),P&&P(r,U)};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}),E=ae(N);return f.jsxs(re,d({component:"span",className:T(E.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:E.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${_(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${_(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/InfoIcon-35720818.js b/build/assets/InfoIcon-b9565bf8.js similarity index 97% rename from build/assets/InfoIcon-35720818.js rename to build/assets/InfoIcon-b9565bf8.js index bf6308df8..c971b9531 100644 --- a/build/assets/InfoIcon-35720818.js +++ b/build/assets/InfoIcon-b9565bf8.js @@ -1 +1 @@ -import{j as C}from"./index-20244629.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.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"})})]})});export{r as I}; +import{j as C}from"./index-931430a1.js";const r=i=>C.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:C.jsxs("g",{id:"info",children:[C.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:C.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_2682_970)",children:C.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"})})]})});export{r as I}; diff --git a/build/assets/Kaltura-f277dadd.js b/build/assets/Kaltura-d4541545.js similarity index 95% rename from build/assets/Kaltura-f277dadd.js rename to build/assets/Kaltura-d4541545.js index 2be918b74..a3a386ee5 100644 --- a/build/assets/Kaltura-f277dadd.js +++ b/build/assets/Kaltura-d4541545.js @@ -1 +1 @@ -import{n as y,r as f}from"./index-20244629.js";import{u as _,p as m}from"./index-c49ebc93.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{n as y,r as f}from"./index-931430a1.js";import{u as _,p as m}from"./index-48de85f6.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-32b40892.js b/build/assets/MergeIcon-faa51e87.js similarity index 98% rename from build/assets/MergeIcon-32b40892.js rename to build/assets/MergeIcon-faa51e87.js index 0c3c49df2..b9e171426 100644 --- a/build/assets/MergeIcon-32b40892.js +++ b/build/assets/MergeIcon-faa51e87.js @@ -1 +1 @@ -import{j as C}from"./index-20244629.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-931430a1.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-14342f0f.js b/build/assets/Mixcloud-bd469ed7.js similarity index 95% rename from build/assets/Mixcloud-14342f0f.js rename to build/assets/Mixcloud-bd469ed7.js index d8fea3fb9..04c2739ab 100644 --- a/build/assets/Mixcloud-14342f0f.js +++ b/build/assets/Mixcloud-bd469ed7.js @@ -1 +1 @@ -import{n as _,r as f}from"./index-20244629.js";import{u as m,p as g}from"./index-c49ebc93.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{n as _,r as f}from"./index-931430a1.js";import{u as m,p as g}from"./index-48de85f6.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-4410772f.js b/build/assets/NodeCircleIcon-c0da6b29.js similarity index 91% rename from build/assets/NodeCircleIcon-4410772f.js rename to build/assets/NodeCircleIcon-c0da6b29.js index d0d8816c5..6fd50b110 100644 --- a/build/assets/NodeCircleIcon-4410772f.js +++ b/build/assets/NodeCircleIcon-c0da6b29.js @@ -1,4 +1,4 @@ -import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-20244629.js";import{I as i}from"./index-922a0411.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="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(i)` +import{o,a$ as e,aZ as r,aY as n,j as t}from"./index-931430a1.js";import{I as i}from"./index-9910581f.js";const l={[e]:"RSS link",[r]:"Twitter Handle",[n]:"Youtube channel"},w="Sources Table",p="Queued Sources",d="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(i)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/PlusIcon-f79d966c.js b/build/assets/PlusIcon-92013c0a.js similarity index 94% rename from build/assets/PlusIcon-f79d966c.js rename to build/assets/PlusIcon-92013c0a.js index b5151395e..31d35da76 100644 --- a/build/assets/PlusIcon-f79d966c.js +++ b/build/assets/PlusIcon-92013c0a.js @@ -1 +1 @@ -import{j as s}from"./index-20244629.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-931430a1.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/Popover-aff34d88.js b/build/assets/Popover-92a41dd0.js similarity index 99% rename from build/assets/Popover-aff34d88.js rename to build/assets/Popover-92a41dd0.js index c5160cc8a..0bd88a105 100644 --- a/build/assets/Popover-aff34d88.js +++ b/build/assets/Popover-92a41dd0.js @@ -1 +1 @@ -import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ac as Xe}from"./index-20244629.js";import{w as et,x as Ve,e as ae,f as Le,t as _e,g as Be}from"./index-922a0411.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-4a56e8a6.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; +import{m as me,a as G,R as ve,b as xe,g as be,s as se,_ as g,f as Ae,r as c,u as Pe,j as A,c as ie,d as ye,h as Ze,ac as Xe}from"./index-931430a1.js";import{w as et,x as Ve,e as ae,f as Le,t as _e,g as Be}from"./index-9910581f.js";import{o as q,a as fe,e as tt,u as Ee,d as nt,i as ot}from"./useSlotProps-1d7699bd.js";function je(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function rt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const it=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=it,Ue={disabled:!1};var st=function(t){return t.scrollTop},ue="unmounted",Y="exited",J="entering",re="entered",Ne="exiting",X=function(e){et(t,e);function t(o,i){var n;n=e.call(this,o,i)||this;var s=i,a=s&&!s.isMounting?o.enter:o.appear,l;return n.appearStatus=null,o.in?a?(l=Y,n.appearStatus=J):l=re:o.unmountOnExit||o.mountOnEnter?l=ue:l=Y,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ue?{status:Y}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==J&&s!==re&&(n=J):(s===J||s===re)&&(n=Ne)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,a;return n=s=a=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:a}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===J){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this);s&&st(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Y&&this.setState({status:ue})},r.performEnter=function(i){var n=this,s=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[me.findDOMNode(this),a],d=l[0],m=l[1],E=this.getTimeouts(),C=a?E.appear:E.enter;if(!i&&!s||Ue.disabled){this.safeSetState({status:re},function(){n.props.onEntered(d)});return}this.props.onEnter(d,m),this.safeSetState({status:J},function(){n.props.onEntering(d,m),n.onTransitionEnd(C,function(){n.safeSetState({status:re},function(){n.props.onEntered(d,m)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:me.findDOMNode(this);if(!n||Ue.disabled){this.safeSetState({status:Y},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ne},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Y},function(){i.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:me.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=l[0],m=l[1];this.props.addEndListener(d,m)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ue)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=G(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ve.createElement(Ve.Provider,{value:null},typeof s=="function"?s(i,a):ve.cloneElement(ve.Children.only(s),a))},t}(ve.Component);X.contextType=Ve;X.propTypes={};function oe(){}X.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oe,onEntering:oe,onEntered:oe,onExit:oe,onExiting:oe,onExited:oe};X.UNMOUNTED=ue;X.EXITED=Y;X.ENTERING=J;X.ENTERED=re;X.EXITING=Ne;const Ye=X,Je=e=>e.scrollTop;function ge(e,t){var r,o;const{timeout:i,easing:n,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(o=s.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:s.transitionDelay}}function at(e){return xe("MuiPaper",e)}be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const lt=["className","component","elevation","square","variant"],ct=e=>{const{square:t,elevation:r,variant:o,classes:i}=e,n={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${r}`]};return ye(n,at,i)},ut=se("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return g({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&g({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ae("#fff",He(t.elevation))}, ${Ae("#fff",He(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),dt=c.forwardRef(function(t,r){const o=Pe({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:s=1,square:a=!1,variant:l="elevation"}=o,d=G(o,lt),m=g({},o,{component:n,elevation:s,square:a,variant:l}),E=ct(m);return A.jsx(ut,g({as:n,ownerState:m,className:ie(E.root,i),ref:r},d))}),ft=dt,pt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ht(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function mt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function vt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||mt(e))}function Et(e){const t=[],r=[];return Array.from(e.querySelectorAll(pt)).forEach((o,i)=>{const n=ht(o);n===-1||!vt(o)||(n===0?t.push(o):r.push({documentOrder:i,tabIndex:n,node:o}))}),r.sort((o,i)=>o.tabIndex===i.tabIndex?o.documentOrder-i.documentOrder:o.tabIndex-i.tabIndex).map(o=>o.node).concat(t)}function gt(){return!0}function xt(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:n=Et,isEnabled:s=gt,open:a}=e,l=c.useRef(!1),d=c.useRef(null),m=c.useRef(null),E=c.useRef(null),C=c.useRef(null),N=c.useRef(!1),h=c.useRef(null),S=ae(t.ref,h),y=c.useRef(null);c.useEffect(()=>{!a||!h.current||(N.current=!r)},[r,a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current);return h.current.contains(u.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),N.current&&h.current.focus()),()=>{i||(E.current&&E.current.focus&&(l.current=!0,E.current.focus()),E.current=null)}},[a]),c.useEffect(()=>{if(!a||!h.current)return;const u=q(h.current),x=R=>{y.current=R,!(o||!s()||R.key!=="Tab")&&u.activeElement===h.current&&R.shiftKey&&(l.current=!0,m.current&&m.current.focus())},b=()=>{const R=h.current;if(R===null)return;if(!u.hasFocus()||!s()||l.current){l.current=!1;return}if(R.contains(u.activeElement)||o&&u.activeElement!==d.current&&u.activeElement!==m.current)return;if(u.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!N.current)return;let D=[];if((u.activeElement===d.current||u.activeElement===m.current)&&(D=n(h.current)),D.length>0){var _,$;const H=!!((_=y.current)!=null&&_.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=D[0],L=D[D.length-1];typeof O!="string"&&typeof L!="string"&&(H?L.focus():O.focus())}else R.focus()};u.addEventListener("focusin",b),u.addEventListener("keydown",x,!0);const M=setInterval(()=>{u.activeElement&&u.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(M),u.removeEventListener("focusin",b),u.removeEventListener("keydown",x,!0)}},[r,o,i,s,a,n]);const k=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0,C.current=u.target;const x=t.props.onFocus;x&&x(u)},I=u=>{E.current===null&&(E.current=u.relatedTarget),N.current=!0};return A.jsxs(c.Fragment,{children:[A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:S,onFocus:k}),A.jsx("div",{tabIndex:a?0:-1,onFocus:I,ref:m,"data-testid":"sentinelEnd"})]})}function bt(e){return typeof e=="function"?e():e}const Pt=c.forwardRef(function(t,r){const{children:o,container:i,disablePortal:n=!1}=t,[s,a]=c.useState(null),l=ae(c.isValidElement(o)?o.ref:null,r);if(Le(()=>{n||a(bt(i)||document.body)},[i,n]),Le(()=>{if(s&&!n)return _e(r,s),()=>{_e(r,null)}},[r,s,n]),n){if(c.isValidElement(o)){const d={ref:l};return c.cloneElement(o,d)}return A.jsx(c.Fragment,{children:o})}return A.jsx(c.Fragment,{children:s&&Ze.createPortal(o,s)})});function yt(e){const t=q(e);return t.body===e?fe(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function de(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function We(e){return parseInt(fe(e).getComputedStyle(e).paddingRight,10)||0}function Tt(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||o}function ze(e,t,r,o,i){const n=[t,r,...o];[].forEach.call(e.children,s=>{const a=n.indexOf(s)===-1,l=!Tt(s);a&&l&&de(s,i)})}function ke(e,t){let r=-1;return e.some((o,i)=>t(o)?(r=i,!0):!1),r}function Rt(e,t){const r=[],o=e.container;if(!t.disableScrollLock){if(yt(o)){const s=rt(q(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${We(o)+s}px`;const a=q(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${We(l)+s}px`})}let n;if(o.parentNode instanceof DocumentFragment)n=q(o).body;else{const s=o.parentElement,a=fe(o);n=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:o}r.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{r.forEach(({value:n,el:s,property:a})=>{n?s.style.setProperty(a,n):s.style.removeProperty(a)})}}function kt(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class St{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&de(t.modalRef,!1);const i=kt(r);ze(r,t.mount,t.modalRef,i,!0);const n=ke(this.containers,s=>s.container===r);return n!==-1?(this.containers[n].modals.push(t),o):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),o)}mount(t,r){const o=ke(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[o];i.restore||(i.restore=Rt(i,r))}remove(t,r=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const i=ke(this.containers,s=>s.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(o,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&de(t.modalRef,r),ze(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=n.modals[n.modals.length-1];s.modalRef&&de(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ct(e){return typeof e=="function"?e():e}function Nt(e){return e?e.props.hasOwnProperty("in"):!1}const Mt=new St;function wt(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,manager:i=Mt,closeAfterTransition:n=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:m,rootRef:E}=e,C=c.useRef({}),N=c.useRef(null),h=c.useRef(null),S=ae(h,E),[y,k]=c.useState(!m),I=Nt(l);let u=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(u=!1);const x=()=>q(N.current),b=()=>(C.current.modalRef=h.current,C.current.mount=N.current,C.current),M=()=>{i.mount(b(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Be(()=>{const p=Ct(t)||x().body;i.add(b(),p),h.current&&M()}),D=c.useCallback(()=>i.isTopModal(b()),[i]),_=Be(p=>{N.current=p,p&&(m&&D()?M():h.current&&de(h.current,u))}),$=c.useCallback(()=>{i.remove(b(),u)},[u,i]);c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>{m?R():(!I||!n)&&$()},[m,$,I,n,R]);const H=p=>v=>{var F;(F=p.onKeyDown)==null||F.call(p,v),!(v.key!=="Escape"||v.which===229||!D())&&(r||(v.stopPropagation(),d&&d(v,"escapeKeyDown")))},O=p=>v=>{var F;(F=p.onClick)==null||F.call(p,v),v.target===v.currentTarget&&d&&d(v,"backdropClick")};return{getRootProps:(p={})=>{const v=tt(e);delete v.onTransitionEnter,delete v.onTransitionExited;const F=g({},v,p);return g({role:"presentation"},F,{onKeyDown:H(F),ref:S})},getBackdropProps:(p={})=>{const v=p;return g({"aria-hidden":!0},v,{onClick:O(v),open:m})},getTransitionProps:()=>{const p=()=>{k(!1),s&&s()},v=()=>{k(!0),a&&a(),n&&$()};return{onEnter:je(p,l==null?void 0:l.props.onEnter),onExited:je(v,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:_,isTopModal:D,exited:y,hasTransition:I}}const Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],It={entering:{opacity:1},entered:{opacity:1}},Dt=c.forwardRef(function(t,r){const o=Xe(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:n,appear:s=!0,children:a,easing:l,in:d,onEnter:m,onEntered:E,onEntering:C,onExit:N,onExited:h,onExiting:S,style:y,timeout:k=i,TransitionComponent:I=Ye}=t,u=G(t,Ot),x=c.useRef(null),b=ae(x,a.ref,r),M=T=>f=>{if(T){const p=x.current;f===void 0?T(p):T(p,f)}},R=M(C),D=M((T,f)=>{Je(T);const p=ge({style:y,timeout:k,easing:l},{mode:"enter"});T.style.webkitTransition=o.transitions.create("opacity",p),T.style.transition=o.transitions.create("opacity",p),m&&m(T,f)}),_=M(E),$=M(S),H=M(T=>{const f=ge({style:y,timeout:k,easing:l},{mode:"exit"});T.style.webkitTransition=o.transitions.create("opacity",f),T.style.transition=o.transitions.create("opacity",f),N&&N(T)}),O=M(h),L=T=>{n&&n(x.current,T)};return A.jsx(I,g({appear:s,in:d,nodeRef:x,onEnter:D,onEntered:_,onEntering:R,onExit:H,onExited:O,onExiting:$,addEndListener:L,timeout:k},u,{children:(T,f)=>c.cloneElement(a,g({style:g({opacity:0,visibility:T==="exited"&&!d?"hidden":void 0},It[T],y,a.props.style),ref:b},f))}))}),$t=Dt;function Ft(e){return xe("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const At=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Lt=e=>{const{classes:t,invisible:r}=e;return ye({root:["root",r&&"invisible"]},Ft,t)},_t=se("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>g({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Bt=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:d="div",components:m={},componentsProps:E={},invisible:C=!1,open:N,slotProps:h={},slots:S={},TransitionComponent:y=$t,transitionDuration:k}=s,I=G(s,At),u=g({},s,{component:d,invisible:C}),x=Lt(u),b=(o=h.root)!=null?o:E.root;return A.jsx(y,g({in:N,timeout:k},I,{children:A.jsx(_t,g({"aria-hidden":!0},b,{as:(i=(n=S.root)!=null?n:m.Root)!=null?i:d,className:ie(x.root,l,b==null?void 0:b.className),ownerState:g({},u,b==null?void 0:b.ownerState),classes:x,ref:r,children:a}))}))}),jt=Bt;function Ht(e){return xe("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const Ut=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wt=e=>{const{open:t,exited:r,classes:o}=e;return ye({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ht,o)},zt=se("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>g({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Kt=se(jt,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gt=c.forwardRef(function(t,r){var o,i,n,s,a,l;const d=Pe({name:"MuiModal",props:t}),{BackdropComponent:m=Kt,BackdropProps:E,className:C,closeAfterTransition:N=!1,children:h,container:S,component:y,components:k={},componentsProps:I={},disableAutoFocus:u=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:b=!1,disablePortal:M=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:_=!1,keepMounted:$=!1,onBackdropClick:H,open:O,slotProps:L,slots:T}=d,f=G(d,Ut),p=g({},d,{closeAfterTransition:N,disableAutoFocus:u,disableEnforceFocus:x,disableEscapeKeyDown:b,disablePortal:M,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:_,keepMounted:$}),{getRootProps:v,getBackdropProps:F,getTransitionProps:B,portalRef:z,isTopModal:pe,exited:U,hasTransition:he}=wt(g({},p,{rootRef:r})),V=g({},p,{exited:U}),K=Wt(V),Q={};if(h.props.tabIndex===void 0&&(Q.tabIndex="-1"),he){const{onEnter:P,onExited:w}=B();Q.onEnter=P,Q.onExited=w}const Z=(o=(i=T==null?void 0:T.root)!=null?i:k.Root)!=null?o:zt,le=(n=(s=T==null?void 0:T.backdrop)!=null?s:k.Backdrop)!=null?n:m,ce=(a=L==null?void 0:L.root)!=null?a:I.root,ee=(l=L==null?void 0:L.backdrop)!=null?l:I.backdrop,Te=Ee({elementType:Z,externalSlotProps:ce,externalForwardedProps:f,getSlotProps:v,additionalProps:{ref:r,as:y},ownerState:V,className:ie(C,ce==null?void 0:ce.className,K==null?void 0:K.root,!V.open&&V.exited&&(K==null?void 0:K.hidden))}),Re=Ee({elementType:le,externalSlotProps:ee,additionalProps:E,getSlotProps:P=>F(g({},P,{onClick:w=>{H&&H(w),P!=null&&P.onClick&&P.onClick(w)}})),className:ie(ee==null?void 0:ee.className,E==null?void 0:E.className,K==null?void 0:K.backdrop),ownerState:V});return!$&&!O&&(!he||U)?null:A.jsx(Pt,{ref:z,container:S,disablePortal:M,children:A.jsxs(Z,g({},Te,{children:[!_&&m?A.jsx(le,g({},Re)):null,A.jsx(xt,{disableEnforceFocus:x,disableAutoFocus:u,disableRestoreFocus:R,isEnabled:pe,open:O,children:c.cloneElement(h,Q)})]}))})}),qt=Gt,Xt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Me(e){return`scale(${e}, ${e**2})`}const Vt={entering:{opacity:1,transform:Me(1)},entered:{opacity:1,transform:"none"}},Se=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qe=c.forwardRef(function(t,r){const{addEndListener:o,appear:i=!0,children:n,easing:s,in:a,onEnter:l,onEntered:d,onEntering:m,onExit:E,onExited:C,onExiting:N,style:h,timeout:S="auto",TransitionComponent:y=Ye}=t,k=G(t,Xt),I=c.useRef(),u=c.useRef(),x=Xe(),b=c.useRef(null),M=ae(b,n.ref,r),R=f=>p=>{if(f){const v=b.current;p===void 0?f(v):f(v,p)}},D=R(m),_=R((f,p)=>{Je(f);const{duration:v,delay:F,easing:B}=ge({style:h,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=z):z=v,f.style.transition=[x.transitions.create("opacity",{duration:z,delay:F}),x.transitions.create("transform",{duration:Se?z:z*.666,delay:F,easing:B})].join(","),l&&l(f,p)}),$=R(d),H=R(N),O=R(f=>{const{duration:p,delay:v,easing:F}=ge({style:h,timeout:S,easing:s},{mode:"exit"});let B;S==="auto"?(B=x.transitions.getAutoHeightDuration(f.clientHeight),u.current=B):B=p,f.style.transition=[x.transitions.create("opacity",{duration:B,delay:v}),x.transitions.create("transform",{duration:Se?B:B*.666,delay:Se?v:v||B*.333,easing:F})].join(","),f.style.opacity=0,f.style.transform=Me(.75),E&&E(f)}),L=R(C),T=f=>{S==="auto"&&(I.current=setTimeout(f,u.current||0)),o&&o(b.current,f)};return c.useEffect(()=>()=>{clearTimeout(I.current)},[]),A.jsx(y,g({appear:i,in:a,nodeRef:b,onEnter:_,onEntered:$,onEntering:D,onExit:O,onExited:L,onExiting:H,addEndListener:T,timeout:S==="auto"?null:S},k,{children:(f,p)=>c.cloneElement(n,g({style:g({opacity:0,transform:Me(.75),visibility:f==="exited"&&!a?"hidden":void 0},Vt[f],h,n.props.style),ref:M},p))}))});Qe.muiSupportAuto=!0;const Yt=Qe;function Jt(e){return xe("MuiPopover",e)}be("MuiPopover",["root","paper"]);const Qt=["onEntering"],Zt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],en=["slotProps"];function Ke(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Ge(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qe(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ce(e){return typeof e=="function"?e():e}const tn=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},Jt,t)},nn=se(qt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),on=se(ft,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rn=c.forwardRef(function(t,r){var o,i,n;const s=Pe({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:E="anchorEl",children:C,className:N,container:h,elevation:S=8,marginThreshold:y=16,open:k,PaperProps:I={},slots:u,slotProps:x,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:M=Yt,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:_=!1}=s,$=G(s.TransitionProps,Qt),H=G(s,Zt),O=(o=x==null?void 0:x.paper)!=null?o:I,L=c.useRef(),T=ae(L,O.ref),f=g({},s,{anchorOrigin:d,anchorReference:E,elevation:S,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:b,TransitionComponent:M,transitionDuration:R,TransitionProps:$}),p=tn(f),v=c.useCallback(()=>{if(E==="anchorPosition")return m;const P=Ce(l),j=(P&&P.nodeType===1?P:q(L.current).body).getBoundingClientRect();return{top:j.top+Ke(j,d.vertical),left:j.left+Ge(j,d.horizontal)}},[l,d.horizontal,d.vertical,m,E]),F=c.useCallback(P=>({vertical:Ke(P,b.vertical),horizontal:Ge(P,b.horizontal)}),[b.horizontal,b.vertical]),B=c.useCallback(P=>{const w={width:P.offsetWidth,height:P.offsetHeight},j=F(w);if(E==="none")return{top:null,left:null,transformOrigin:qe(j)};const we=v();let te=we.top-j.vertical,ne=we.left-j.horizontal;const Oe=te+w.height,Ie=ne+w.width,De=fe(Ce(l)),$e=De.innerHeight-y,Fe=De.innerWidth-y;if(y!==null&&te$e){const W=Oe-$e;te-=W,j.vertical+=W}if(y!==null&&neFe){const W=Ie-Fe;ne-=W,j.horizontal+=W}return{top:`${Math.round(te)}px`,left:`${Math.round(ne)}px`,transformOrigin:qe(j)}},[l,E,v,F,y]),[z,pe]=c.useState(k),U=c.useCallback(()=>{const P=L.current;if(!P)return;const w=B(P);w.top!==null&&(P.style.top=w.top),w.left!==null&&(P.style.left=w.left),P.style.transformOrigin=w.transformOrigin,pe(!0)},[B]);c.useEffect(()=>(_&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,_,U]);const he=(P,w)=>{D&&D(P,w),U()},V=()=>{pe(!1)};c.useEffect(()=>{k&&U()}),c.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),c.useEffect(()=>{if(!k)return;const P=nt(()=>{U()}),w=fe(l);return w.addEventListener("resize",P),()=>{P.clear(),w.removeEventListener("resize",P)}},[l,k,U]);let K=R;R==="auto"&&!M.muiSupportAuto&&(K=void 0);const Q=h||(l?q(Ce(l)).body:void 0),Z=(i=u==null?void 0:u.root)!=null?i:nn,le=(n=u==null?void 0:u.paper)!=null?n:on,ce=Ee({elementType:le,externalSlotProps:g({},O,{style:z?O.style:g({},O.style,{opacity:0})}),additionalProps:{elevation:S,ref:T},ownerState:f,className:ie(p.paper,O==null?void 0:O.className)}),ee=Ee({elementType:Z,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:H,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Q,open:k},ownerState:f,className:ie(p.root,N)}),{slotProps:Te}=ee,Re=G(ee,en);return A.jsx(Z,g({},Re,!ot(Z)&&{slotProps:Te,disableScrollLock:_},{children:A.jsx(M,g({appear:!0,in:k,onEntering:he,onExited:V,timeout:K},$,{children:A.jsx(le,g({},ce,{children:C}))}))}))}),cn=rn;export{cn as P,Ye as T,ft as a,rt as b,on as c,Pt as d,ge as g,Je as r}; diff --git a/build/assets/Preview-15830368.js b/build/assets/Preview-b9a866fe.js similarity index 97% rename from build/assets/Preview-15830368.js rename to build/assets/Preview-b9a866fe.js index bb3e63f50..1483e26dd 100644 --- a/build/assets/Preview-15830368.js +++ b/build/assets/Preview-b9a866fe.js @@ -1 +1 @@ -import{n as y,r as b}from"./index-20244629.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{n as y,r as b}from"./index-931430a1.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-61a39fc4.js b/build/assets/SearchIcon-2fabe9d1.js similarity index 95% rename from build/assets/SearchIcon-61a39fc4.js rename to build/assets/SearchIcon-2fabe9d1.js index d6f03f016..2682c00ec 100644 --- a/build/assets/SearchIcon-61a39fc4.js +++ b/build/assets/SearchIcon-2fabe9d1.js @@ -1 +1 @@ -import{j as C}from"./index-20244629.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-931430a1.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-e4541980.js b/build/assets/Skeleton-efee6f09.js similarity index 97% rename from build/assets/Skeleton-e4541980.js rename to build/assets/Skeleton-efee6f09.js index ac03d30ff..2766bb951 100644 --- a/build/assets/Skeleton-e4541980.js +++ b/build/assets/Skeleton-efee6f09.js @@ -1,4 +1,4 @@ -import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-20244629.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` +import{b as x,g as y,k as b,s as R,_ as o,f as _,bm as u,r as S,u as $,a as U,j as M,c as j,d as A}from"./index-931430a1.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return x("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-7fcb0b13.js b/build/assets/SoundCloud-93cb1afb.js similarity index 95% rename from build/assets/SoundCloud-7fcb0b13.js rename to build/assets/SoundCloud-93cb1afb.js index df82cbf77..3c4761bcc 100644 --- a/build/assets/SoundCloud-7fcb0b13.js +++ b/build/assets/SoundCloud-93cb1afb.js @@ -1 +1 @@ -import{n as P,r as g}from"./index-20244629.js";import{u as b,p as v}from"./index-c49ebc93.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(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,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/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"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{n as P,r as g}from"./index-931430a1.js";import{u as b,p as v}from"./index-48de85f6.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"fractionLoaded",null),n(this,"mute",()=>{this.setVolume(0)}),n(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),n(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,a=>{this.currentTime=a.currentPosition/1e3,this.fractionLoaded=a.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,a=>this.props.onError(a))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(a=>{this.duration=a/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"})}}n(u,"displayName","SoundCloud");n(u,"canPlay",M.canPlay.soundcloud);n(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-76b9b130.js b/build/assets/Stack-179be030.js similarity index 99% rename from build/assets/Stack-76b9b130.js rename to build/assets/Stack-179be030.js index b9240990a..53296e10d 100644 --- a/build/assets/Stack-76b9b130.js +++ b/build/assets/Stack-179be030.js @@ -1 +1 @@ -import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-20244629.js";import{o as et,u as It}from"./useSlotProps-4a56e8a6.js";import{d as qt}from"./Popover-aff34d88.js";import{e as tt,f as rt}from"./index-922a0411.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 Vo({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 zt=["sx"],Xt=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,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(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=Lt(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=Vt(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 B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,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 V(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];!V(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},{});!V(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&&V(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 Le(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!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(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 Ve(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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B: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=B,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===B||(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===B||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 Mr(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 Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,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 Lr(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 Vr(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:V(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(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(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 B: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?Ve(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,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*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 zr(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,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,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[B,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,B].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=Ve(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"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],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?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=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=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe: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:Xe,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)||!V(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=V(t),n=V(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)),V(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 L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.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=It({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(qt,{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=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({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}))}),No=Ro;function Ho({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 Uo(){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=Me("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=Be({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 L=Se(k,["Select"])?k.props.input:k;L&&So(L.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:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; +import{r as E,a as ae,_ as T,bE as Tt,bF as Mt,bG as Bt,bH as Ft,bI as Wt,bp as Qe,bo as Ae,bJ as Lt,bD as Vt,bK as Nt,j as Q,bL as Ze,d as De,b as Te,g as vt,s as Me,bM as Ht,u as Be,e as mt,c as Ut}from"./index-931430a1.js";import{o as et,u as It}from"./useSlotProps-1d7699bd.js";import{d as qt}from"./Popover-92a41dd0.js";import{e as tt,f as rt}from"./index-9910581f.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 Vo({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 zt=["sx"],Xt=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,zt),{systemProps:o,otherProps:n}=Xt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Mt(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=Lt(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=Vt(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 B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,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 V(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];!V(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},{});!V(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&&V(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 Le(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!V(e)||q(e).position==="fixed"?null:e.offsetParent}function Er(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&V(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);V(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 Ve(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=Ve(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Rr(n.padding,r),h=Le(a),u=i==="y"?B: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=B,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===B||(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===B||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 Mr(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 Br={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,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 Lr(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 Vr(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:V(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(Lr(e,r)):Z(t)?Nr(t,r):je(Vr(Y(e)))}function Hr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&V(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 B: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?Ve(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,L=[B,N].indexOf(S)>=0?"y":"x";R[S]+=D[L]*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 zr(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,X){return ee.concat(U(X)===Fe?Ir(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=p[0],R=0;R=0,L=k?"width":"height",j=ue(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=k?S?H:F:S?N:B;g[L]>y[L]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(j[D]<=0),s&&G.push(j[M]<=0,j[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=p.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Xr={name:"flip",enabled:!0,phase:"main",fn:zr,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[B,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,B].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=Ve(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"?B:F,L=p==="y"?N:H,j=p==="y"?"height":"width",M=y[p],z=M+m[k],G=M-m[L],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?Le(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wt(),se=X[k],ge=X[L],_=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=M+Ee-Ie-St,jt=M+At-Ie,qe=ce(u?we(z,$t):z,M,u?K(G,jt):G);y[p]=qe,D[p]=qe-M}if(s){var ze,kt=p==="x"?B:F,Dt=p==="x"?N:H,J=y[g],ye=g==="y"?"height":"width",Xe=J+m[kt],Ye=J-m[Dt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe: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:Xe,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)||!V(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=V(t),n=V(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)),V(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 L=z=>{A(z.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{L(z)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const M=vo(C,w.current,T({placement:y},v,{modifiers:j}));return g.current(M),()=>{M.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=It({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(qt,{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=Me(Po,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ro=E.forwardRef(function(t,r){var o;const n=Ht(),a=Be({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}))}),No=Ro;function Ho({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 Uo(){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=Me("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=Be({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 L=Se(k,["Select"])?k.props.input:k;L&&So(L.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:Ut(b.root,a),ref:r},w,{children:n}))})}),Io=To,Mo=nr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),qo=Mo;export{Io as F,No as P,qo as S,Uo as a,Rt as b,Yt as e,Ho as f,dt as i,Vo as u}; diff --git a/build/assets/Streamable-eb269619.js b/build/assets/Streamable-c4a3f5d1.js similarity index 95% rename from build/assets/Streamable-eb269619.js rename to build/assets/Streamable-c4a3f5d1.js index ba4b059c8..5bfdb5317 100644 --- a/build/assets/Streamable-eb269619.js +++ b/build/assets/Streamable-c4a3f5d1.js @@ -1 +1 @@ -import{n as m,r as f}from"./index-20244629.js";import{u as _,p as b}from"./index-c49ebc93.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{n as m,r as f}from"./index-931430a1.js";import{u as _,p as b}from"./index-48de85f6.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-e60acdc7.js b/build/assets/Tabs-a92afa02.js similarity index 98% rename from build/assets/Tabs-e60acdc7.js rename to build/assets/Tabs-a92afa02.js index 7f24ed94b..d3d60e3dc 100644 --- a/build/assets/Tabs-e60acdc7.js +++ b/build/assets/Tabs-a92afa02.js @@ -1 +1 @@ -import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ac as Lt}from"./index-20244629.js";import{p as Nt,f as Zt,g as ut}from"./index-922a0411.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-4a56e8a6.js";import{c as Ft}from"./createSvgIcon-bd0d8dc7.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 St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),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 S.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"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,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=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(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 S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let 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 St({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=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots: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:$}),[vt,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 v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),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?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.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?S.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=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,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=S.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&&!vt&&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",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v: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 S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; +import{g as ft,b as pt,s as O,e as Pt,_ as b,r as c,u as ht,a as rt,c as L,j as S,d as St,ac as Lt}from"./index-931430a1.js";import{p as Nt,f as Zt,g as ut}from"./index-9910581f.js";import{d as $t,a as kt,u as lt,o as te}from"./useSlotProps-1d7699bd.js";import{c as Ft}from"./createSvgIcon-2d6cbf8b.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 St(m,oe,e)},se=O(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),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 S.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"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),Fe=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,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=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Lt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(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 S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let 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 St({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=Lt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots: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:$}),[vt,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 v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[V]:l?l[V]:0};if(isNaN(k[s])||isNaN(k[V]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[V]-f[V]);(v>=1||M>=1)&&mt(f)}}),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?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.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?S.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=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Xt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,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=S.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&&!vt&&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",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v: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 S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Ae=Pe;export{Ae as T,Fe as a}; diff --git a/build/assets/TextareaAutosize-ed8bfc98.js b/build/assets/TextareaAutosize-293fa137.js similarity index 91% rename from build/assets/TextareaAutosize-ed8bfc98.js rename to build/assets/TextareaAutosize-293fa137.js index 6c334ec67..29bcba2f2 100644 --- a/build/assets/TextareaAutosize-ed8bfc98.js +++ b/build/assets/TextareaAutosize-293fa137.js @@ -1,2 +1,2 @@ -import{r as o,a as L,j as v,_ as b,h as I}from"./index-20244629.js";import{e as D,f as T}from"./index-922a0411.js";import{a as F,d as P}from"./useSlotProps-4a56e8a6.js";const U=["onChange","maxRows","minRows","style","value"];function w(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 J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(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,a as L,j as v,_ as b,h as I}from"./index-931430a1.js";import{e as D,f as T}from"./index-9910581f.js";import{a as F,d as P}from"./useSlotProps-1d7699bd.js";const U=["onChange","maxRows","minRows","style","value"];function w(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 J=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=L(l,U),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=D(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(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,m=w(n.paddingBottom)+w(n.paddingTop),a=w(n.borderBottomWidth)+w(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 j=s+(g==="border-box"?m+a:0),B=Math.abs(s-u)<=1;return{outerHeightStyle:j,overflow:B}},[x,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||I.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=P(i),g=p.current,m=F(g);m.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),m.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const _=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:_,ref:N,rows:h,style:b({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:b({},V.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{J as T}; diff --git a/build/assets/Twitch-997a6dd4.js b/build/assets/Twitch-dd9fe18d.js similarity index 95% rename from build/assets/Twitch-997a6dd4.js rename to build/assets/Twitch-dd9fe18d.js index 2ffdfbd97..5f7444006 100644 --- a/build/assets/Twitch-997a6dd4.js +++ b/build/assets/Twitch-dd9fe18d.js @@ -1 +1 @@ -import{n as w,r as D}from"./index-20244629.js";import{u as C,p as N}from"./index-c49ebc93.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,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),...o.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})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{n as w,r as D}from"./index-931430a1.js";import{u as C,p as N}from"./index-48de85f6.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),n=(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),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:o,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),...o.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})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-2d560971.js b/build/assets/Typography-f70a691a.js similarity index 93% rename from build/assets/Typography-2d560971.js rename to build/assets/Typography-f70a691a.js index 779eac76d..5b3cfd9dc 100644 --- a/build/assets/Typography-2d560971.js +++ b/build/assets/Typography-f70a691a.js @@ -1 +1 @@ -import{b as T,g as B,s as W,e as u,_ as s,r as C,u as M,a as R,j as P,c as j,d as U}from"./index-20244629.js";import{e as _}from"./Stack-76b9b130.js";function N(a){return T("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return U(i,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=A(n.color),o=_(s({},n,{color:e})),{align:p="inherit",className:i,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:e,className:i,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,i)},x))}),V=D;export{V as T}; +import{b as T,g as B,s as W,e as u,_ as s,r as C,u as M,a as R,j as P,c as j,d as U}from"./index-931430a1.js";import{e as _}from"./Stack-179be030.js";function N(a){return T("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],E=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return U(i,N,p)},L=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},A=a=>z[a]||a,D=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=A(n.color),o=_(s({},n,{color:e})),{align:p="inherit",className:i,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:e,className:i,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,i)},x))}),V=D;export{V as T}; diff --git a/build/assets/Vidyard-1cb28f51.js b/build/assets/Vidyard-1e1084a1.js similarity index 95% rename from build/assets/Vidyard-1cb28f51.js rename to build/assets/Vidyard-1e1084a1.js index 76e4bd62d..b2d4a0f55 100644 --- a/build/assets/Vidyard-1cb28f51.js +++ b/build/assets/Vidyard-1e1084a1.js @@ -1 +1 @@ -import{n as g,r as v}from"./index-20244629.js";import{u as b,p as O}from"./index-c49ebc93.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{n as g,r as v}from"./index-931430a1.js";import{u as b,p as O}from"./index-48de85f6.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-ff6f785f.js b/build/assets/Vimeo-89733b5a.js similarity index 96% rename from build/assets/Vimeo-ff6f785f.js rename to build/assets/Vimeo-89733b5a.js index 6fbff1bcc..16992ee03 100644 --- a/build/assets/Vimeo-ff6f785f.js +++ b/build/assets/Vimeo-89733b5a.js @@ -1 +1 @@ -import{n as d,r as f}from"./index-20244629.js";import{u as m,p as _}from"./index-c49ebc93.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{n as d,r as f}from"./index-931430a1.js";import{u as m,p as _}from"./index-48de85f6.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-f8cd0254.js b/build/assets/Wistia-d0de90bd.js similarity index 96% rename from build/assets/Wistia-f8cd0254.js rename to build/assets/Wistia-d0de90bd.js index 75925e47f..80356307f 100644 --- a/build/assets/Wistia-f8cd0254.js +++ b/build/assets/Wistia-d0de90bd.js @@ -1 +1 @@ -import{n as m,r as g}from"./index-20244629.js";import{u as v,p as w}from"./index-c49ebc93.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; +import{n as m,r as g}from"./index-931430a1.js";import{u as v,p as w}from"./index-48de85f6.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-c62bab1c.js b/build/assets/YouTube-a0f30312.js similarity index 97% rename from build/assets/YouTube-c62bab1c.js rename to build/assets/YouTube-a0f30312.js index bba3804b9..5f6ac7230 100644 --- a/build/assets/YouTube-c62bab1c.js +++ b/build/assets/YouTube-a0f30312.js @@ -1 +1 @@ -import{n as U,r as I}from"./index-20244629.js";import{u as L,p as Y}from"./index-c49ebc93.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{n as U,r as I}from"./index-931430a1.js";import{u as L,p as Y}from"./index-48de85f6.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-bd0d8dc7.js b/build/assets/createSvgIcon-2d6cbf8b.js similarity index 97% rename from build/assets/createSvgIcon-bd0d8dc7.js rename to build/assets/createSvgIcon-2d6cbf8b.js index e115807b7..f0b321da7 100644 --- a/build/assets/createSvgIcon-bd0d8dc7.js +++ b/build/assets/createSvgIcon-2d6cbf8b.js @@ -1 +1 @@ -import{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-20244629.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{b as I,g as C,s as w,e as f,r as v,u as R,a as b,_ as g,j as S,c as j,d as N}from"./index-931430a1.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-5dc8bdba.js b/build/assets/index-0dad72e4.js similarity index 96% rename from build/assets/index-5dc8bdba.js rename to build/assets/index-0dad72e4.js index e29de4b19..fdfbfb2eb 100644 --- a/build/assets/index-5dc8bdba.js +++ b/build/assets/index-0dad72e4.js @@ -1,4 +1,4 @@ -import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,aa as se,b5 as ne,b6 as oe,a9 as re,b7 as ie,N as ae}from"./index-20244629.js";import{B as w,i as ce,F as le}from"./index-922a0411.js";import{B as de}from"./index-fb1d223f.js";import{S as ue}from"./index-a1bce07a.js";import{e as xe}from"./index.esm-120f9454.js";import{C as he}from"./CheckIcon-78afa5f1.js";import{C as ge}from"./ClipLoader-a0c1d0d5.js";import{T as z}from"./index-68ed2d99.js";import"./InfoIcon-35720818.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aX as B,aY as v,aZ as b,a_ as I,a$ as _,b0 as U,b1 as O,o as x,q as l,J as Z,r as g,j as e,F as n,b2 as K,T as j,b3 as X,aW as Q,O as ee,aV as f,b4 as te,aa as se,b5 as ne,b6 as oe,a9 as re,b7 as ie,N as ae}from"./index-931430a1.js";import{B as w,i as ce,F as le}from"./index-9910581f.js";import{B as de}from"./index-d447730d.js";import{S as ue}from"./index-c34ea667.js";import{e as xe}from"./index.esm-25778014.js";import{C as he}from"./CheckIcon-7a9fa35b.js";import{C as ge}from"./ClipLoader-da7156bc.js";import{T as z}from"./index-8870d532.js";import"./InfoIcon-b9565bf8.js";const R=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,fe=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,we=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,ye=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,Se=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,_e=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function $e(t){return[fe,_e,pe,we,me,je].some(i=>i.test(t))?B:Se.test(t)?v:R.test(t)?b:be.test(t)?I:ye.test(t)?_:ve.test(t)?U:O}const Ee=(t,s="")=>{const o=(s===b?R:/@(\w+)/).exec(t);return o?o[1]:null},L=t=>!!t&&[b,v,_].includes(t),Ce=({onClick:t,loading:s,type:i,error:o})=>{const r=Z(u=>u.budget),[h,d]=g.useState(10),a=L(i)?"radar":"add_node";return g.useEffect(()=>{(async()=>{try{const c=await X(a);d(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Be,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[h," sats"]})]}),e.jsxs(ze,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[K(r)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(P,{children:e.jsx(ge,{color:l.lightGray,size:12})}):e.jsxs(P,{children:[" ",e.jsx(he,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Le,{children:e.jsxs(Re,{children:[e.jsx(xe,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},ke=x(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${l.GRAY7}; diff --git a/build/assets/index-b9333c3d.js b/build/assets/index-1274a067.js similarity index 99% rename from build/assets/index-b9333c3d.js rename to build/assets/index-1274a067.js index aa967e2af..b438b6451 100644 --- a/build/assets/index-b9333c3d.js +++ b/build/assets/index-1274a067.js @@ -1,4 +1,4 @@ -import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-20244629.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{s as _t,c as Ad}from"./index-922a0411.js";var Pc={exports:{}},Gr={};/** +import{r as P,n as Cc,_ as yi,bt as _c,bu as ed,j as L,R as td,p as nd,q as Ki,bv as rd,bw as id,bx as od}from"./index-931430a1.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{s as _t,c as Ad}from"./index-9910581f.js";var Pc={exports:{}},Gr={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-bb4ca660.js b/build/assets/index-1ecda1ff.js similarity index 99% rename from build/assets/index-bb4ca660.js rename to build/assets/index-1ecda1ff.js index e01d38a11..9ea8e1bc8 100644 --- a/build/assets/index-bb4ca660.js +++ b/build/assets/index-1ecda1ff.js @@ -1,4 +1,4 @@ -import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ac as Tt,af as Nt,o as At,q as je,F as zt}from"./index-20244629.js";import{g as xo,t as Dt,e as lo,p as Uo,f as pt,I as ft,T as Et}from"./index-922a0411.js";import{u as fo,a as so,f as io,i as bt,b as Bt,P as No,F as jt,S as Wt}from"./Stack-76b9b130.js";import{a as gt,b as _t,P as Ut,c as Ht}from"./Popover-aff34d88.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-4a56e8a6.js";import{c as Ao}from"./createSvgIcon-bd0d8dc7.js";import{T as Vt}from"./TextareaAutosize-ed8bfc98.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.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=p.useRef({});return p.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=Ao(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:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}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:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.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*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.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:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Dt(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]: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":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(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}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({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,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&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=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),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:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,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${O(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${O(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=p.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:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(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,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,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${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(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${O(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=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=lo(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}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${O(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:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,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=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=lo(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{bt(N)?ze&&ze():_e&&_e()},[ze,_e]);pt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,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=Ao(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"]),A=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"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,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[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.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,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.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,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.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(ft,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(ft,{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(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.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(gt,{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",[`& .${A.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"},[`&.${A.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"},[`&.${A.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),[`&.${A.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}},[`&.${A.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,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=gt,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&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:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="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":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,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:I},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&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,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=dt(Qo||(Qo=So` +import{r as p,$ as Ot,j as f,by as wt,bz as Lt,_ as a,b as ye,g as Ie,s as w,e as O,u as Pe,a as ae,c as ne,d as $e,f as Re,bA as Mt,bB as Ft,bC as ct,k as dt,bm as ut,i as Xe,bD as To,ac as Tt,af as Nt,o as At,q as je,F as zt}from"./index-931430a1.js";import{g as xo,t as Dt,e as lo,p as Uo,f as pt,I as ft,T as Et}from"./index-9910581f.js";import{u as fo,a as so,f as io,i as bt,b as Bt,P as No,F as jt,S as Wt}from"./Stack-179be030.js";import{a as gt,b as _t,P as Ut,c as Ht}from"./Popover-92a41dd0.js";import{i as Ho,o as Fo,u as Vo}from"./useSlotProps-1d7699bd.js";import{c as Ao}from"./createSvgIcon-2d6cbf8b.js";import{T as Vt}from"./TextareaAutosize-293fa137.js";let Ko=0;function Kt(e){const[o,t]=p.useState(e),r=e||o;return p.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=p.useRef({});return p.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=Ao(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:u})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Go(m));const v=m?i.filter($=>{let h=(c||u)($);return t&&(h=h.toLowerCase()),o&&(h=Go(h)),s==="start"?h.indexOf(m)===0:h.indexOf(m)>-1}):i;return typeof r=="number"?v.slice(0,r):v}}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:u="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:$=!1,disabled:h,disabledItemsFocusable:x=!1,disableListWrap:E=!1,filterOptions:_=en,filterSelectedOptions:R=!1,freeSolo:k=!1,getOptionDisabled:y,getOptionKey:S,getOptionLabel:z=l=>{var n;return(n=l.label)!=null?n:l},groupBy:T,handleHomeEndKeys:L=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:M=!1,onChange:J,onClose:G,onHighlightChange:se,onInputChange:Q,onOpen:re,open:U,openOnFocus:F=!1,options:ie,readOnly:Se=!1,selectOnFocus:Le=!e.freeSolo,value:ue}=e,j=zo(q);let ee=z;ee=l=>{const n=z(l);return typeof n!="string"?String(n):n};const fe=p.useRef(!1),We=p.useRef(!0),Z=p.useRef(null),be=p.useRef(null),[Me,Y]=p.useState(null),[H,ze]=p.useState(-1),_e=s?0:-1,te=p.useRef(_e),[P,to]=fo({controlled:ue,default:m,name:u}),[W,xe]=fo({controlled:de,default:"",name:u,state:"inputValue"}),[Fe,ce]=p.useState(!1),Te=p.useCallback((l,n)=>{if(!(M?P.length!(R&&(M?P:[P]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ye?"":W,getOptionLabel:ee}):[],he=Gt({filteredOptions:B,value:P,inputValue:W});p.useEffect(()=>{const l=P!==he.value;Fe&&!l||k&&!l||Te(null,P)},[P,Te,Fe,he.value,k]);const Ke=me&&B.length>0&&!Se,qe=xo(l=>{l===-1?Z.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});p.useEffect(()=>{M&&H>P.length-1&&(ze(-1),qe(-1))},[P,M,H,qe]);function I(l,n){if(!be.current||l<0||l>=B.length)return-1;let g=l;for(;;){const C=be.current.querySelector(`[data-option-index="${g}"]`),K=x?!1:!C||C.disabled||C.getAttribute("aria-disabled")==="true";if(C&&C.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%B.length:g=(g-1+B.length)%B.length,g===l)return-1}}const D=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Z.current.removeAttribute("aria-activedescendant"):Z.current.setAttribute("aria-activedescendant",`${j}-option-${n}`),se&&se(l,n===-1?null:B[n],g),!be.current)return;const C=be.current.querySelector(`[role="option"].${t}-focused`);C&&(C.classList.remove(`${t}-focused`),C.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*(T?1.3:0){if(!N)return;const pe=I((()=>{const ge=B.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:E&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:E||Math.abs(n)>1?ge:0:He})(),g);if(D({index:pe,reason:C,event:l}),r&&n!=="reset")if(pe===-1)Z.current.value=W;else{const ge=ee(B[pe]);Z.current.value=ge,ge.toLowerCase().indexOf(W.toLowerCase())===0&&W.length>0&&Z.current.setSelectionRange(W.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const C=n?ee(n):"",K=g?ee(g):"";return C===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==B.length&&he.inputValue===W&&(M?P.length===he.value.length&&he.value.every((n,g)=>ee(P[g])===ee(n)):l(he.value,P))){const n=he.filteredOptions[te.current];if(n&&B.some(C=>ee(C)===ee(n)))return!0}return!1},Ze=p.useCallback(()=>{if(!N||ke())return;const l=M?P[0]:P;if(B.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=B[te.current];if(M&&n&&Lo(P,C=>oe(n,C))!==-1)return;const g=Lo(B,C=>oe(C,l));g===-1?X({diff:"reset"}):D({index:g});return}if(te.current>=B.length-1){D({index:B.length-1});return}D({index:te.current})}},[B.length,M?!1:P,R,X,D,N,W,M]),Po=xo(l=>{Dt(be,l),l&&Ze()});p.useEffect(()=>{Ze()},[Ze]);const Ae=l=>{me||(Ne(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ne(!1),G&&G(l,n))},Ue=(l,n,g,C)=>{if(M){if(P.length===n.length&&P.every((K,pe)=>K===n[pe]))return}else if(P===n)return;J&&J(l,n,g,C),to(n)},no=p.useRef(!1),eo=(l,n,g="selectOption",C="options")=>{let K=g,pe=n;if(M){pe=Array.isArray(P)?P.slice():[];const ge=Lo(pe,He=>oe(n,He));ge===-1?pe.push(n):C!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Z.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===P.length||n==="previous"&&g===-1)return-1;const C=Me.querySelector(`[data-tag-index="${g}"]`);if(!C||!C.hasAttribute("tabindex")||C.disabled||C.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!M)return;W===""&&Ge(l,"toggleInput");let g=H;H===-1?W===""&&n==="previous"&&(g=P.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===P.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),Q&&Q(l,"","clear"),Ue(l,M?[]: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":N&&L&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":N&&L&&(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}),Ae(n);break;case"PageDown":n.preventDefault(),X({diff:Xo,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ae(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ae(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&N){const g=B[te.current],C=y?y(g):!1;if(n.preventDefault(),C)return;eo(n,g,"selectOption"),r&&Z.current.setSelectionRange(Z.current.value.length,Z.current.value.length)}else k&&W!==""&&Ee===!1&&(M&&n.preventDefault(),eo(n,W,"createOption","freeSolo"));break;case"Escape":N?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(W!==""||M&&P.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(M&&!Se&&W===""&&P.length>0){const g=H===-1?P.length-1:H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break;case"Delete":if(M&&!Se&&W===""&&P.length>0&&H!==-1){const g=H,C=P.slice();C.splice(g,1),Ue(n,C,"removeOption",{option:P[g]})}break}},jo=l=>{ce(!0),F&&!fe.current&&Ae(l)},ro=l=>{if(o(be)){Z.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&N?eo(l,B[te.current],"blur"):c&&k&&W!==""?eo(l,W,"blur","freeSolo"):i&&Te(l,P),Ge(l,"blur")},Ce=l=>{const n=l.target.value;W!==n&&(xe(n),De(!1),Q&&Q(l,n,"input")),n===""?!v&&!M&&Ue(l,null,"clear"):Ae(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&D({event:l,index:n,reason:"mouse"})},Be=l=>{D({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,B[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=P.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:P[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ae(l)},wo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==j&&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=>{!h&&(W===""||!me)&&Oo(l)};let oo=k&&W.length>0;oo=oo||(M?P.length>0:P!==null);let ao=B;return T&&(ao=B.reduce((l,n,g)=>{const C=T(n);return l.length>0&&l[l.length-1].group===C?l[l.length-1].options.push(n):l.push({key:g,index:g,group:C,options:[n]}),l},[])),h&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${j}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:wo,onClick:vo}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:W,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":N?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${j}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Z,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),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:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const C=(M?P:[P]).some(pe=>pe!=null&&oe(n,pe)),K=y?y(n):!1;return{key:(g=S==null?void 0:S(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${j}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":C}},id:j,inputValue:W,value:P,dirty:oo,expanded:N&&Me,popupOpen:N,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${O(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${O(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=p.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:u=!1}=r,m=ae(r,rn),v=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:u}),$=an(v);return f.jsx(ln,a({as:d,className:ne($.root,s),ref:t,ownerState:v},m))});mt.muiSkipListHighlight=!0;const sn=mt,cn=Ao(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,u={root:["root",b,t&&"disabled",`size${O(r)}`,`color${O(s)}`,i&&"clickable",i&&`clickableColor${O(s)}`,d&&"deletable",d&&`deletableColor${O(s)}`,`${b}${O(s)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(s)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(c)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(s)}`,`deleteIcon${O(b)}Color${O(s)}`]};return $e(u,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${O(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${O(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${O(i)}`]},{[`& .${V.icon}`]:o[`iconColor${O(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${O(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${O(b)}Color${O(r)}`]},o.root,o[`size${O(i)}`],o[`color${O(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${O(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${O(r)}`],o[b],o[`${b}${O(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${O(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=p.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:u,disabled:m=!1,icon:v,label:$,onClick:h,onDelete:x,onKeyDown:E,onKeyUp:_,size:R="medium",variant:k="filled",tabIndex:y,skipFocusWhenDisabled:S=!1}=r,z=ae(r,pn),T=p.useRef(null),L=lo(T,t),q=F=>{F.stopPropagation(),x&&x(F)},le=F=>{F.currentTarget===F.target&&Yo(F)&&F.preventDefault(),E&&E(F)},de=F=>{F.currentTarget===F.target&&(x&&Yo(F)?x(F):F.key==="Escape"&&T.current&&T.current.blur()),_&&_(F)},oe=d!==!1&&h?!0:d,M=oe||x?Uo:b||"div",J=a({},r,{component:M,disabled:m,size:R,color:i,iconColor:p.isValidElement(v)&&v.props.color||i,onDelete:!!x,clickable:oe,variant:k}),G=fn(J),se=M===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},x&&{disableRipple:!0}):{};let Q=null;x&&(Q=u&&p.isValidElement(u)?p.cloneElement(u,{className:ne(u.props.className,G.deleteIcon),onClick:q}):f.jsx(cn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&p.isValidElement(s)&&(re=p.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return v&&p.isValidElement(v)&&(U=p.cloneElement(v,{className:ne(G.icon,v.props.className)})),f.jsxs(bn,a({as:M,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:h,onKeyDown:le,onKeyUp:de,ref:L,tabIndex:S&&m?-1:y,ownerState:J},se,z,{children:[re||U,f.jsx(gn,{className:ne(G.label),ownerState:J,children:$}),Q]}))}),hn=mn;function vn(e){return f.jsx(Zt,a({},e,{defaultTheme:Mt,themeId:Ft}))}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${O(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:u,multiline:m,readOnly:v,size:$,startAdornment:h,type:x}=e,E={root:["root",`color${O(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${O($)}`,m&&"multiline",h&&"adornedStart",c&&"adornedEnd",u&&"hiddenLabel",v&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return $e(E,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=p.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:u={},componentsProps:m={},defaultValue:v,disabled:$,disableInjectingGlobalStyles:h,endAdornment:x,fullWidth:E=!1,id:_,inputComponent:R="input",inputProps:k={},inputRef:y,maxRows:S,minRows:z,multiline:T=!1,name:L,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:M,onKeyUp:J,placeholder:G,readOnly:se,renderSuffix:Q,rows:re,slotProps:U={},slots:F={},startAdornment:ie,type:Se="text",value:Le}=s,ue=ae(s,yn),j=k.value!=null?k.value:Le,{current:ee}=p.useRef(j!=null),fe=p.useRef(),We=p.useCallback(N=>{},[]),Z=lo(fe,y,k.ref,We),[be,Me]=p.useState(!1),Y=so(),H=io({props:s,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Y?Y.focused:be,p.useEffect(()=>{!Y&&$&&be&&(Me(!1),q&&q())},[Y,$,be,q]);const ze=Y&&Y.onFilled,_e=Y&&Y.onEmpty,te=p.useCallback(N=>{bt(N)?ze&&ze():_e&&_e()},[ze,_e]);pt(()=>{ee&&te({value:j})},[j,te,ee]);const P=N=>{if(H.disabled){N.stopPropagation();return}oe&&oe(N),k.onFocus&&k.onFocus(N),Y&&Y.onFocus?Y.onFocus(N):Me(!0)},to=N=>{q&&q(N),k.onBlur&&k.onBlur(N),Y&&Y.onBlur?Y.onBlur(N):Me(!1)},W=(N,...B)=>{if(!ee){const he=N.target||fe.current;if(he==null)throw new Error(ct(1));te({value:he.value})}k.onChange&&k.onChange(N,...B),le&&le(N,...B)};p.useEffect(()=>{te(fe.current)},[]);const xe=N=>{fe.current&&N.currentTarget===N.target&&fe.current.focus(),de&&de(N)};let Fe=R,ce=k;T&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:S,minRows:z},ce),Fe=Vt);const Te=N=>{te(N.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};p.useEffect(()=>{Y&&Y.setAdornedStart(!!ie)},[Y,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:x,error:H.error,focused:H.focused,formControl:Y,fullWidth:E,hiddenLabel:H.hiddenLabel,multiline:T,size:H.size,startAdornment:ie,type:Se}),Ne=In(me),Ye=F.root||u.Root||Io,De=U.root||m.root||{},Ee=F.input||u.Input||$o;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(p.Fragment,{children:[!h&&$n,f.jsxs(Ye,a({},De,!Ho(Ye)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ne.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(Bt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:v,disabled:H.disabled,id:_,onAnimationStart:Te,name:L,placeholder:G,readOnly:se,required:H.required,rows:re,value:j,onKeyDown:M,onKeyUp:J,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Z,className:ne(Ne.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:W,onFocus:P}))}),x,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=Ao(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"]),A=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"],Nn=["ref"],An=["key"],zn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:u,size:m}=e,v={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${O(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return $e(v,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[{[`& .${A.tag}`]:o.tag},{[`& .${A.tag}`]:o[`tagSize${O(i)}`]},{[`& .${A.inputRoot}`]:o.inputRoot},{[`& .${A.input}`]:o.input},{[`& .${A.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${A.focused} .${A.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${A.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${A.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${A.inputRoot}`]:{flexWrap:"wrap",[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4},[`& .${A.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,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${A.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${A.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${A.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${we.root}`]:{paddingTop:19,paddingLeft:8,[`.${A.hasPopupIcon}&, .${A.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${A.hasPopupIcon}.${A.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${we.input}`]:{padding:"7px 4px"},[`& .${A.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,[`& .${A.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${we.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${A.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${A.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(ft,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jn=w(ft,{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(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${A.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(gt,{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",[`& .${A.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"},[`&.${A.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"},[`&.${A.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),[`&.${A.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}},[`&.${A.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,[`& .${A.option}`]:{paddingLeft:24}}),Gn=p.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:v=!1,ChipProps:$,className:h,clearIcon:x=Zo||(Zo=f.jsx(Jt,{fontSize:"small"})),clearOnBlur:E=!i.freeSolo,clearOnEscape:_=!1,clearText:R="Clear",closeText:k="Close",componentsProps:y={},defaultValue:S=i.multiple?[]:null,disableClearable:z=!1,disableCloseOnSelect:T=!1,disabled:L=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:M="auto",freeSolo:J=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:Q,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:F=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:Le,loading:ue=!1,loadingText:j="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Z="Open",PaperComponent:be=gt,PopperComponent:Me=No,popupIcon:Y=Jo||(Jo=f.jsx(ht,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:P,selectOnFocus:to=!i.freeSolo,size:W="medium",slotProps:xe={}}=i,Fe=ae(i,Tn),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ne,getClearProps:Ye,getTagProps:De,getListboxProps:Ee,getOptionProps:N,value:B,dirty:he,expanded:Ke,id:qe,popupOpen:I,focused:D,focusedTag:X,anchorEl:ke,setAnchorEl:Ze,inputValue:Po,groupedOptions:Ae}=tn(a({},i,{componentName:"Autocomplete"})),Ge=!z&&!L&&he&&!H,Ue=(!J||M===!0)&&M!==!1,{onMouseDown:no}=Te(),{ref:eo}=Le??{},go=Ee(),{ref:mo}=go,ho=ae(go,Nn),ko=lo(mo,eo),ro=Q||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:D,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:I,size:W}),ve=zn(Ce);let Be;if(ee&&B.length>0){const n=g=>a({className:ve.tag,disabled:L},De(g));P?Be=P(B,n,Ce):Be=B.map((g,C)=>f.jsx(hn,a({label:ro(g),size:W},n({index:C}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!D&&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:C}=n,K=ae(n,An);return f.jsx("li",a({},K,{children:ro(g)}),C)}),vo=(n,g)=>{const C=N({option:n,index:g});return wo(a({},C,{className:ve.option}),n,{selected:C["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:y.clearIndicator,oo=(s=xe.paper)!=null?s:y.paper,ao=(c=xe.popper)!=null?c:y.popper,l=(d=xe.popupIndicator)!=null?d:y.popupIndicator;return f.jsxs(p.Fragment,{children:[f.jsx(Dn,a({ref:t,className:ne(ve.root,h),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:L,fullWidth:!0,size:W==="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":R,title:R,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:x})):null,Ue?f.jsx(jn,a({},Ne(),{disabled:L,"aria-label":I?k:Z,title:I?k:Z,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Y})):null]})}),inputProps:a({className:ve.input,disabled:L,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:I},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&&Ae.length===0?f.jsx(Un,{className:ve.loading,ownerState:Ce,children:j}):null,Ae.length===0&&!J&&!ue?f.jsx(Hn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ae.length>0?f.jsx(Vn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,Le,{ref:ko,children:Ae.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((C,K)=>vo(C,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=dt(Qo||(Qo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-f8e07c95.js b/build/assets/index-455ab4cd.js similarity index 92% rename from build/assets/index-f8e07c95.js rename to build/assets/index-455ab4cd.js index 8150c923d..29955665b 100644 --- a/build/assets/index-f8e07c95.js +++ b/build/assets/index-455ab4cd.js @@ -1,4 +1,4 @@ -import{o as v,q,T as F,F as n,r as x,j as e,aW as K,b8 as $,K as J,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-20244629.js";import{h as V,B as E,i as N,F as ee}from"./index-922a0411.js";import{B as te}from"./index-fb1d223f.js";import{T as re}from"./index-68ed2d99.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-bb4ca660.js";import{C as Y}from"./ClipLoader-a0c1d0d5.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-120f9454.js";import"./InfoIcon-35720818.js";import"./three.module-2ce81f73.js";import"./Stack-76b9b130.js";import"./useSlotProps-4a56e8a6.js";import"./Popover-aff34d88.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,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(Y,{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?{...K,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{o as v,q,T as F,F as n,r as x,j as e,aW as K,b8 as $,K as J,y as U,b9 as Q,O as D,aV as z,bk as X,bn as Z}from"./index-931430a1.js";import{h as V,B as E,i as N,F as ee}from"./index-9910581f.js";import{B as te}from"./index-d447730d.js";import{T as re}from"./index-8870d532.js";import{p as W}from"./index-44e303ef.js";import{n as ne,A as G}from"./index-1ecda1ff.js";import{C as Y}from"./ClipLoader-da7156bc.js";import{c as oe}from"./index-64f1c910.js";import"./index.esm-25778014.js";import"./InfoIcon-b9565bf8.js";import"./three.module-2ce81f73.js";import"./Stack-179be030.js";import"./useSlotProps-1d7699bd.js";import"./Popover-92a41dd0.js";import"./createSvgIcon-2d6cbf8b.js";import"./TextareaAutosize-293fa137.js";const M=s=>s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," "),k=s=>s?[...s].sort((l,m)=>Number(m.required)-Number(l.required)):[],H=s=>s?s.filter(l=>l.key!=="node_key"):[],se=({handleSelectType:s,skipToStep:l,nodeType:m,selectedValues:r})=>{const[f,w]=x.useState(!1),[h,C]=x.useState(),{watch:j,formState:{isValid:t}}=V();x.useEffect(()=>{(async()=>{w(!0);const o=await $(m),T=W(o),A=H(T);C(A),w(!1)})()},[m,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(Y,{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?{...K,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'; diff --git a/build/assets/index-c49ebc93.js b/build/assets/index-48de85f6.js similarity index 62% rename from build/assets/index-c49ebc93.js rename to build/assets/index-48de85f6.js index c363619c6..a85e65b20 100644 --- a/build/assets/index-c49ebc93.js +++ b/build/assets/index-48de85f6.js @@ -1,4 +1,4 @@ -import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg,s as jr,i as o4,e as vn,f as of,u as Ug,a as $d,c as Kr,d as Wg,ac as Id,ad as s4,ae as l4,af as Yg,o as H,q as L,ag as Vg,G as Hl,F,B as Sn,J as Ji,ah as Gg,T as ht,ai as u4,aj as c4,v as Fn,A as At,ak as Lo,al as Bt,am as f4,n as st,z as No,E as qg,an as Kg,O as sf,K as d4,ao as h4,ap as Ro,aq as Qi,ar as _n,as as Xg,at as Dd,au as ea,av as Te,R as U,aw as p4,ax as Zg,ay as m4,az as Jg,aA as y4,aB as g4,aC as v4,aD as Bo,aE as Ld,aF as Qg,aG as ev,aH as x4,aI as b4,aJ as w4,aK as Ul,aL as S4,aM as _4,P as Oe,aN as O4,aO as k4,aP as C4,y as qt,aQ as Xp,a4 as P4,C as rn,aR as A4,aS as j4,p as T4,aT as E4}from"./index-20244629.js";import{v as Qr,d as M4,e as lf,f as $4,g as uc,h as Nd,i as I4,F as D4,b as tv,A as In,T as ta,j as ji,B as Dt,k as nv,P as Wl,l as L4,m as Rd,I as rv,n as Yl}from"./index-922a0411.js";import{S as iv}from"./SearchIcon-61a39fc4.js";import{c as N4,a as cc,C as Vl}from"./ClipLoader-a0c1d0d5.js";import{S as av}from"./Skeleton-e4541980.js";import{P as Bd}from"./PlusIcon-f79d966c.js";import{T as R4,r as B4,g as Zp,P as z4}from"./Popover-aff34d88.js";import{o as Ns,e as fc,a as ov,d as F4,i as Rs,u as xr}from"./useSlotProps-4a56e8a6.js";import{C as sv}from"./CheckIcon-78afa5f1.js";import{u as H4,F as U4,P as W4}from"./Stack-76b9b130.js";import{S as Y4,F as Jp}from"./FormControlLabel-dd6fa8a1.js";import{c as zd}from"./createSvgIcon-bd0d8dc7.js";import{B as V4}from"./index-fb1d223f.js";import{u as lv}from"./index-1477a4a5.js";import{b as G4,a as q4,c as K4,d as X4}from"./index.esm-120f9454.js";import{I as Z4}from"./InfoIcon-35720818.js";const Qp="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",J4=async e=>{let t=await xi.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xi.keysend(Qp,e),!(t!=null&&t.success)){if(t=await xi.topup(),t||(t=await xi.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await J4(t),r={amount:t,refid:e};return await zg.post("/boost",JSON.stringify(r)),n},e8=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},uv=(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=Kp.groupBy(n,a=>a.timestamp),i=Kp.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=Qr(s),f=Qr(l);return u-f}),i},t8=async e=>{await a4(async()=>{try{await xi.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},n8=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},r8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},i8=r8;function a8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const o8=2;function cv(e,t){return e-t}function xa(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function e1(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}%`})}},f8=e=>e;let gs;function dc(){return gs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?gs=CSS.supports("touch-action","none"):gs=!0),gs}function d8(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=f8,step:v=1,tabIndex:b,value:O}=e,C=B.useRef(),[k,P]=B.useState(-1),[_,w]=B.useState(-1),[j,E]=B.useState(!1),I=B.useRef(0),[z,M]=H4({controlled:O,default:n??l,name:"Slider"}),D=f&&((R,q,ne)=>{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,ne)}),W=Array.isArray(z);let Y=W?z.slice().sort(cv):[z];Y=Y.map(R=>xa(R,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((R,q)=>({value:l+v*q})):o||[],X=V.map(R=>R.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:T}=M4(),[pe,ue]=B.useState(-1),$=B.useRef(),_e=lf(T,$),te=lf(m,_e),ge=R=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),R==null||(ne=R.onFocus)==null||ne.call(R,q)},Ye=R=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),R==null||(ne=R.onBlur)==null||ne.call(R,q)};$4(()=>{if(r&&$.current.contains(document.activeElement)){var R;(R=document.activeElement)==null||R.blur()}},[r]),r&&k!==-1&&P(-1),r&&pe!==-1&&ue(-1);const Me=R=>q=>{var ne;(ne=R.onChange)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-R.y)/oe:$e=(R.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=s8($e,l,s),v)Ge=u8(Ge,v,l);else{const pt=e1(X,Ge);Ge=X[pt]}Ge=xa(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=e1(Y,Ge),i&&(Ge=xa(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const pt=Ge;Ge=t1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(pt),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=uc(R=>{const q=ps(R,C);if(!q)return;if(I.current+=1,R.type==="mousemove"&&R.buttons===0){Ae(R);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});ms({sliderRef:$,activeIndex:se,setActive:P}),M(ne),!j&&I.current>o8&&E(!0),D&&!ys(ne,z)&&D(R,ne,se)}),Ae=uc(R=>{const q=ps(R,C);if(E(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});P(-1),R.type==="touchend"&&w(-1),d&&d(R,ne),C.current=void 0,xe()}),he=uc(R=>{if(r)return;dc()||R.preventDefault();const q=R.changedTouches[0];q!=null&&(C.current=q.identifier);const ne=ps(R,C);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});ms({sliderRef:$,activeIndex:Re,setActive:P}),M(oe),D&&!ys(oe,z)&&D(R,oe,Re)}I.current=0;const se=Ns($.current);se.addEventListener("touchmove",ee),se.addEventListener("touchend",Ae)}),xe=B.useCallback(()=>{const R=Ns($.current);R.removeEventListener("mousemove",ee),R.removeEventListener("mouseup",Ae),R.removeEventListener("touchmove",ee),R.removeEventListener("touchend",Ae)},[Ae,ee]);B.useEffect(()=>{const{current:R}=$;return R.addEventListener("touchstart",he,{passive:dc()}),()=>{R.removeEventListener("touchstart",he,{passive:dc()}),xe()}},[xe,he]),B.useEffect(()=>{r&&xe()},[r,xe]);const He=R=>q=>{var ne;if((ne=R.onMouseDown)==null||ne.call(R,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ps(q,C);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({finger:se});ms({sliderRef:$,activeIndex:ke,setActive:P}),M(Re),D&&!ys(Re,z)&&D(q,Re,ke)}I.current=0;const oe=Ns($.current);oe.addEventListener("mousemove",ee),oe.addEventListener("mouseup",Ae)},rt=Ws(W?Y[0]:l,l,s),ft=Ws(Y[Y.length-1],l,s)-rt,en=(R={})=>{const q=fc(R),ne={onMouseDown:He(q||{})},se=we({},q,ne);return we({},R,{ref:te},se)},Ue=R=>q=>{var ne;(ne=R.onMouseOver)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=R=>q=>{var ne;(ne=R.onMouseLeave)==null||ne.call(R,q),w(-1)};return{active:k,axis:de,axisProps:c8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(R={})=>{var q;const ne=fc(R),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=we({},ne,se);return we({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:we({},i8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:en,getThumbProps:(R={})=>{const q=fc(R),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return we({},R,q,ne)},marks:V,open:_,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:R=>({pointerEvents:k!==-1&&k!==R?"none":void 0})}}const h8=zd(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"),p8=zd(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"),m8=zd(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 y8(e){return Hg("MuiCheckbox",e)}const g8=Fg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),hc=g8,v8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],x8=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${vn(r)}`,`size${vn(i)}`]},o=Wg(a,y8,t);return we({},t,o)},b8=jr(Y4,{shouldForwardProp:e=>o4(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})=>we({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})`:of(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${hc.checked}, &.${hc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${hc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),w8=y.jsx(p8,{}),S8=y.jsx(h8,{}),_8=y.jsx(m8,{}),O8=B.forwardRef(function(t,n){var r,i;const a=Ug({props:t,name:"MuiCheckbox"}),{checkedIcon:o=w8,color:s="primary",icon:l=S8,indeterminate:u=!1,indeterminateIcon:f=_8,inputProps:d,size:h="medium",className:m}=a,g=$d(a,v8),v=u?f:l,b=u?f:o,O=we({},a,{color:s,indeterminate:u,size:h}),C=x8(O);return y.jsx(b8,we({type:"checkbox",inputProps:we({"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:Kr(C.root,m)},g,{classes:C}))}),k8=O8,C8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function P8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=ov(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 A8(e){return typeof e=="function"?e():e}function vs(e,t,n){const r=A8(n),i=P8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const j8=B.forwardRef(function(t,n){const r=Id(),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:C,style:k,timeout:P=a,TransitionComponent:_=R4}=t,w=$d(t,C8),j=B.useRef(null),E=lf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},z=I((G,Q)=>{vs(f,G,u),B4(G),m&&m(G,Q)}),M=I((G,Q)=>{const T=Zp({timeout:P,style:k,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",we({},T)),G.style.transition=r.transitions.create("transform",we({},T)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(C),Y=I(G=>{const Q=Zp({timeout:P,style:k,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),vs(f,G,u),b&&b(G)}),V=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),X=G=>{o&&o(j.current,G)},Z=B.useCallback(()=>{j.current&&vs(f,j.current,u)},[f,u]);return B.useEffect(()=>{if(h||f==="down"||f==="right")return;const G=F4(()=>{j.current&&vs(f,j.current,u)}),Q=ov(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),B.useEffect(()=>{h||Z()},[h,Z]),y.jsx(_,we({nodeRef:j,onEnter:z,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:P},w,{children:(G,Q)=>B.cloneElement(l,we({ref:E,style:we({visibility:G==="exited"&&!h?"hidden":void 0},k,l.props.style)},Q))}))}),Ti=j8,T8=e=>!e||!Rs(e),E8=T8;function M8(e){return Hg("MuiSlider",e)}const $8=Fg("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=$8,I8=e=>{const{open:t}=e;return{offset:Kr(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function D8(e){const{children:t,className:n,value:r}=e,i=I8(e);return t?B.cloneElement(t,{className:Kr(t.props.className)},y.jsxs(B.Fragment,{children:[t.props.children,y.jsx("span",{className:Kr(i.offset,n),"aria-hidden":!0,children:y.jsx("span",{className:i.circle,children:y.jsx("span",{className:i.label,children:r})})})]})):null}const L8=["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 n1(e){return e}const N8=jr("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})=>we({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"&&we({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"&&we({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"}}})),R8=jr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>we({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})),B8=jr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?s4(e.palette[t.color].main,.62):l4(e.palette[t.color].main,.5);return we({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})}),z8=jr("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})=>we({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":we({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)`:of(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)`:of(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),F8=jr(D8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>we({[`&.${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"})),H8=jr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Yg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>we({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})),U8=jr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Yg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>we({},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})),W8=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 Wg(u,M8,o)},Y8=({children:e})=>e,V8=B.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,O,C,k,P,_,w,j,E,I,z;const M=Ug({props:t,name:"MuiSlider"}),W=Id().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:T="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=n1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=n1}=M,en=$d(M,L8),Ue=we({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:T,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:tn,getThumbProps:Cn,open:R,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:pt}=d8(we({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=W8(Ue),Lt=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:N8,ai=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:R8,Lr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:B8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:z8,ca=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:F8,oi=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:H8,fr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:U8,si=(O=(C=xe==null?void 0:xe.input)!=null?C:G.Input)!=null?O:"input",dr=(k=he==null?void 0:he.root)!=null?k:Q.root,hr=(P=he==null?void 0:he.rail)!=null?P:Q.rail,pr=(_=he==null?void 0:he.track)!=null?_:Q.track,fa=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,mr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Hu=(E=he==null?void 0:he.mark)!=null?E:Q.mark,Nr=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,li=(z=he==null?void 0:he.input)!=null?z:Q.input,ce=xr({elementType:Lt,getSlotProps:it,externalSlotProps:dr,externalForwardedProps:en,additionalProps:we({},E8(Lt)&&{as:Z}),ownerState:we({},Ue,dr==null?void 0:dr.ownerState),className:[Ie.root,ue]}),Uu=xr({elementType:ai,externalSlotProps:hr,ownerState:Ue,className:Ie.rail}),Wu=xr({elementType:Lr,externalSlotProps:pr,additionalProps:{style:we({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:we({},Ue,pr==null?void 0:pr.ownerState),className:Ie.track}),Et=xr({elementType:qe,getSlotProps:Cn,externalSlotProps:fa,ownerState:we({},Ue,fa==null?void 0:fa.ownerState),className:Ie.thumb}),da=xr({elementType:ca,externalSlotProps:mr,ownerState:we({},Ue,mr==null?void 0:mr.ownerState),className:Ie.valueLabel}),Be=xr({elementType:oi,externalSlotProps:Hu,ownerState:Ue,className:Ie.mark}),Vn=xr({elementType:fr,externalSlotProps:Nr,ownerState:Ue,className:Ie.markLabel}),Yu=xr({elementType:si,getSlotProps:tn,externalSlotProps:li,ownerState:Ue});return y.jsxs(Lt,we({},ce,{children:[y.jsx(ai,we({},Uu)),y.jsx(Lr,we({},Wu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Ws(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(B.Fragment,{children:[y.jsx(oi,we({"data-index":Je},Be,!Rs(oi)&&{markActive:mt},{style:we({},lt,Be.style),className:Kr(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(fr,we({"aria-hidden":!0,"data-index":Je},Vn,!Rs(fr)&&{markLabelActive:mt},{style:we({},lt,Vn.style),className:Kr(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Ws(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?Y8:ca;return y.jsx(mt,we({},!Rs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:R===Je||q===Je||rt==="on",disabled:_e},da,{children:y.jsx(qe,we({"data-index":Je},Et,{className:Kr(Ie.thumb,Et.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:we({},lt,pt(Je),Et.style),children:y.jsx(si,we({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Yu))}))}),Je)})]}))}),Gl=V8,G8=(e,t="down")=>{const n=Id(),[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},q8=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function K8(e){return e.tldr_topic??e.name}var Ys=globalThis&&globalThis.__assign||function(){return Ys=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"})})]})}),Q8=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"})})]})}),e9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` +import{a9 as Fg,aa as bi,a7 as Xp,ab as o4,r as B,_ as we,j as y,g as Hg,b as Ug,s as Tr,i as s4,e as vn,f as sf,u as Wg,a as Id,c as Xr,d as Yg,ac as Dd,ad as l4,ae as u4,af as Vg,o as H,q as L,ag as Gg,G as Ul,F,B as Sn,J as Qi,ah as qg,T as ht,ai as c4,aj as f4,v as Fn,A as At,ak as No,al as Bt,am as d4,n as st,z as Ro,E as Kg,an as Xg,O as lf,K as h4,ao as p4,ap as Bo,aq as ea,ar as _n,as as Zg,at as Ld,au as ta,av as Te,R as U,aw as m4,ax as Jg,ay as y4,az as Qg,aA as g4,aB as v4,aC as x4,aD as zo,aE as Nd,aF as ev,aG as tv,aH as b4,aI as w4,aJ as S4,aK as Wl,aL as _4,aM as O4,P as Oe,aN as k4,aO as C4,aP as P4,y as qt,aQ as Zp,a4 as A4,C as rn,aR as j4,aS as T4,p as E4,aT as M4}from"./index-931430a1.js";import{v as ei,d as $4,e as uf,f as I4,g as cc,h as Rd,i as D4,F as L4,b as nv,A as In,T as na,j as Ti,B as Dt,k as rv,P as Yl,l as N4,m as Bd,I as iv,n as Vl}from"./index-9910581f.js";import{S as av}from"./SearchIcon-2fabe9d1.js";import{c as R4,a as fc,C as Gl}from"./ClipLoader-da7156bc.js";import{S as ov}from"./Skeleton-efee6f09.js";import{P as zd}from"./PlusIcon-92013c0a.js";import{T as B4,r as z4,g as Jp,P as F4}from"./Popover-92a41dd0.js";import{o as Rs,e as dc,a as sv,d as H4,i as Bs,u as xr}from"./useSlotProps-1d7699bd.js";import{C as lv}from"./CheckIcon-7a9fa35b.js";import{u as U4,F as W4,P as Y4}from"./Stack-179be030.js";import{S as V4,F as Qp}from"./FormControlLabel-5df2ea4a.js";import{c as Fd}from"./createSvgIcon-2d6cbf8b.js";import{B as G4}from"./index-d447730d.js";import{u as uv}from"./index-c30ce896.js";import{b as q4,a as K4,c as X4,d as Z4}from"./index.esm-25778014.js";import{I as J4}from"./InfoIcon-b9565bf8.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},t8=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},n8=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)}})},r8=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},i8={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},a8=i8;function o8(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const s8=2;function fv(e,t){return e-t}function ba(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}%`})}},d8=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 h8(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=d8,step:v=1,tabIndex:b,value:O}=e,C=B.useRef(),[k,P]=B.useState(-1),[_,w]=B.useState(-1),[j,E]=B.useState(!1),I=B.useRef(0),[z,M]=U4({controlled:O,default:n??l,name:"Slider"}),D=f&&((R,q,ne)=>{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,ne)}),W=Array.isArray(z);let Y=W?z.slice().sort(fv):[z];Y=Y.map(R=>ba(R,l,s));const V=o===!0&&v!==null?[...Array(Math.floor((s-l)/v)+1)].map((R,q)=>({value:l+v*q})):o||[],X=V.map(R=>R.value),{isFocusVisibleRef:Z,onBlur:G,onFocus:Q,ref:T}=$4(),[pe,ue]=B.useState(-1),$=B.useRef(),_e=uf(T,$),te=uf(m,_e),ge=R=>q=>{var ne;const se=Number(q.currentTarget.getAttribute("data-index"));Q(q),Z.current===!0&&ue(se),w(se),R==null||(ne=R.onFocus)==null||ne.call(R,q)},Ye=R=>q=>{var ne;G(q),Z.current===!1&&ue(-1),w(-1),R==null||(ne=R.onBlur)==null||ne.call(R,q)};I4(()=>{if(r&&$.current.contains(document.activeElement)){var R;(R=document.activeElement)==null||R.blur()}},[r]),r&&k!==-1&&P(-1),r&&pe!==-1&&ue(-1);const Me=R=>q=>{var ne;(ne=R.onChange)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index")),oe=Y[se],Re=X.indexOf(oe);let ke=q.target.valueAsNumber;if(V&&v==null){const $e=X[X.length-1];ke>$e?ke=$e:ke{const{current:ne}=$,{width:se,height:oe,bottom:Re,left:ke}=ne.getBoundingClientRect();let $e;de.indexOf("vertical")===0?$e=(Re-R.y)/oe:$e=(R.x-ke)/se,de.indexOf("-reverse")!==-1&&($e=1-$e);let Ge;if(Ge=l8($e,l,s),v)Ge=c8(Ge,v,l);else{const pt=t1(X,Ge);Ge=X[pt]}Ge=ba(Ge,l,s);let kt=0;if(W){q?kt=ae.current:kt=t1(Y,Ge),i&&(Ge=ba(Ge,Y[kt-1]||-1/0,Y[kt+1]||1/0));const pt=Ge;Ge=n1({values:Y,newValue:Ge,index:kt}),i&&q||(kt=Ge.indexOf(pt),ae.current=kt)}return{newValue:Ge,activeIndex:kt}},ee=cc(R=>{const q=ms(R,C);if(!q)return;if(I.current+=1,R.type==="mousemove"&&R.buttons===0){Ae(R);return}const{newValue:ne,activeIndex:se}=ve({finger:q,move:!0});ys({sliderRef:$,activeIndex:se,setActive:P}),M(ne),!j&&I.current>s8&&E(!0),D&&!gs(ne,z)&&D(R,ne,se)}),Ae=cc(R=>{const q=ms(R,C);if(E(!1),!q)return;const{newValue:ne}=ve({finger:q,move:!0});P(-1),R.type==="touchend"&&w(-1),d&&d(R,ne),C.current=void 0,xe()}),he=cc(R=>{if(r)return;hc()||R.preventDefault();const q=R.changedTouches[0];q!=null&&(C.current=q.identifier);const ne=ms(R,C);if(ne!==!1){const{newValue:oe,activeIndex:Re}=ve({finger:ne});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",ee),se.addEventListener("touchend",Ae)}),xe=B.useCallback(()=>{const R=Rs($.current);R.removeEventListener("mousemove",ee),R.removeEventListener("mouseup",Ae),R.removeEventListener("touchmove",ee),R.removeEventListener("touchend",Ae)},[Ae,ee]);B.useEffect(()=>{const{current:R}=$;return R.addEventListener("touchstart",he,{passive:hc()}),()=>{R.removeEventListener("touchstart",he,{passive:hc()}),xe()}},[xe,he]),B.useEffect(()=>{r&&xe()},[r,xe]);const He=R=>q=>{var ne;if((ne=R.onMouseDown)==null||ne.call(R,q),r||q.defaultPrevented||q.button!==0)return;q.preventDefault();const se=ms(q,C);if(se!==!1){const{newValue:Re,activeIndex:ke}=ve({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",ee),oe.addEventListener("mouseup",Ae)},rt=Ys(W?Y[0]:l,l,s),ft=Ys(Y[Y.length-1],l,s)-rt,en=(R={})=>{const q=dc(R),ne={onMouseDown:He(q||{})},se=we({},q,ne);return we({},R,{ref:te},se)},Ue=R=>q=>{var ne;(ne=R.onMouseOver)==null||ne.call(R,q);const se=Number(q.currentTarget.getAttribute("data-index"));w(se)},Ne=R=>q=>{var ne;(ne=R.onMouseLeave)==null||ne.call(R,q),w(-1)};return{active:k,axis:de,axisProps:f8,dragging:j,focusedThumbIndex:pe,getHiddenInputProps:(R={})=>{var q;const ne=dc(R),se={onChange:Me(ne||{}),onFocus:ge(ne||{}),onBlur:Ye(ne||{})},oe=we({},ne,se);return we({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:we({},a8,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:en,getThumbProps:(R={})=>{const q=dc(R),ne={onMouseOver:Ue(q||{}),onMouseLeave:Ne(q||{})};return we({},R,q,ne)},marks:V,open:_,range:W,rootRef:te,trackLeap:ft,trackOffset:rt,values:Y,getThumbStyle:R=>({pointerEvents:k!==-1&&k!==R?"none":void 0})}}const p8=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"),m8=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"),y8=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 g8(e){return Ug("MuiCheckbox",e)}const v8=Hg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),pc=v8,x8=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],b8=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,g8,t);return we({},t,o)},w8=Tr(V4,{shouldForwardProp:e=>s4(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})=>we({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})`:sf(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}})),S8=y.jsx(m8,{}),_8=y.jsx(p8,{}),O8=y.jsx(y8,{}),k8=B.forwardRef(function(t,n){var r,i;const a=Wg({props:t,name:"MuiCheckbox"}),{checkedIcon:o=S8,color:s="primary",icon:l=_8,indeterminate:u=!1,indeterminateIcon:f=O8,inputProps:d,size:h="medium",className:m}=a,g=Id(a,x8),v=u?f:l,b=u?f:o,O=we({},a,{color:s,indeterminate:u,size:h}),C=b8(O);return y.jsx(w8,we({type:"checkbox",inputProps:we({"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(C.root,m)},g,{classes:C}))}),C8=k8,P8=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function A8(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=sv(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 j8(e){return typeof e=="function"?e():e}function xs(e,t,n){const r=j8(n),i=A8(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const T8=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:C,style:k,timeout:P=a,TransitionComponent:_=B4}=t,w=Id(t,P8),j=B.useRef(null),E=uf(l.ref,j,n),I=G=>Q=>{G&&(Q===void 0?G(j.current):G(j.current,Q))},z=I((G,Q)=>{xs(f,G,u),z4(G),m&&m(G,Q)}),M=I((G,Q)=>{const T=Jp({timeout:P,style:k,easing:d},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",we({},T)),G.style.transition=r.transitions.create("transform",we({},T)),G.style.webkitTransform="none",G.style.transform="none",v&&v(G,Q)}),D=I(g),W=I(C),Y=I(G=>{const Q=Jp({timeout:P,style:k,easing:d},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q),G.style.transition=r.transitions.create("transform",Q),xs(f,G,u),b&&b(G)}),V=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=H4(()=>{j.current&&xs(f,j.current,u)}),Q=sv(j.current);return Q.addEventListener("resize",G),()=>{G.clear(),Q.removeEventListener("resize",G)}},[f,h,u]),B.useEffect(()=>{h||Z()},[h,Z]),y.jsx(_,we({nodeRef:j,onEnter:z,onEntered:D,onEntering:M,onExit:Y,onExited:V,onExiting:W,addEndListener:X,appear:s,in:h,timeout:P},w,{children:(G,Q)=>B.cloneElement(l,we({ref:E,style:we({visibility:G==="exited"&&!h?"hidden":void 0},k,l.props.style)},Q))}))}),Ei=T8,E8=e=>!e||!Bs(e),M8=E8;function $8(e){return Ug("MuiSlider",e)}const I8=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=I8,D8=e=>{const{open:t}=e;return{offset:Xr(t&&En.valueLabelOpen),circle:En.valueLabelCircle,label:En.valueLabelLabel}};function L8(e){const{children:t,className:n,value:r}=e,i=D8(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 N8=["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 R8=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})=>we({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"&&we({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"&&we({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"}}})),B8=Tr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>we({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})),z8=Tr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?l4(e.palette[t.color].main,.62):u4(e.palette[t.color].main,.5);return we({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})}),F8=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})=>we({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":we({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)`:sf(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)`:sf(e.palette[t.color].main,.16)}`},[`&.${En.disabled}`]:{"&:hover":{boxShadow:"none"}}})),H8=Tr(L8,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>we({[`&.${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"})),U8=Tr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Vg(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>we({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})),W8=Tr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Vg(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>we({},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})),Y8=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,$8,o)},V8=({children:e})=>e,G8=B.forwardRef(function(t,n){var r,i,a,o,s,l,u,f,d,h,m,g,v,b,O,C,k,P,_,w,j,E,I,z;const M=Wg({props:t,name:"MuiSlider"}),W=Dd().direction==="rtl",{"aria-label":Y,"aria-valuetext":V,"aria-labelledby":X,component:Z="span",components:G={},componentsProps:Q={},color:T="primary",classes:pe,className:ue,disableSwap:$=!1,disabled:_e=!1,getAriaLabel:te,getAriaValueText:ge,marks:Ye=!1,max:Me=100,min:ae=0,orientation:de="horizontal",size:ve="medium",step:ee=1,scale:Ae=r1,slotProps:he,slots:xe,track:He="normal",valueLabelDisplay:rt="off",valueLabelFormat:ft=r1}=M,en=Id(M,N8),Ue=we({},M,{isRtl:W,max:Me,min:ae,classes:pe,disabled:_e,disableSwap:$,orientation:de,marks:Ye,color:T,size:ve,step:ee,scale:Ae,track:He,valueLabelDisplay:rt,valueLabelFormat:ft}),{axisProps:Ne,getRootProps:it,getHiddenInputProps:tn,getThumbProps:Cn,open:R,active:q,axis:ne,focusedThumbIndex:se,range:oe,dragging:Re,marks:ke,values:$e,trackOffset:Ge,trackLeap:kt,getThumbStyle:pt}=h8(we({},Ue,{rootRef:n}));Ue.marked=ke.length>0&&ke.some(je=>je.label),Ue.dragging=Re,Ue.focusedThumbIndex=se;const Ie=Y8(Ue),Lt=(r=(i=xe==null?void 0:xe.root)!=null?i:G.Root)!=null?r:R8,oi=(a=(o=xe==null?void 0:xe.rail)!=null?o:G.Rail)!=null?a:B8,Nr=(s=(l=xe==null?void 0:xe.track)!=null?l:G.Track)!=null?s:z8,qe=(u=(f=xe==null?void 0:xe.thumb)!=null?f:G.Thumb)!=null?u:F8,fa=(d=(h=xe==null?void 0:xe.valueLabel)!=null?h:G.ValueLabel)!=null?d:H8,si=(m=(g=xe==null?void 0:xe.mark)!=null?g:G.Mark)!=null?m:U8,fr=(v=(b=xe==null?void 0:xe.markLabel)!=null?b:G.MarkLabel)!=null?v:W8,li=(O=(C=xe==null?void 0:xe.input)!=null?C:G.Input)!=null?O:"input",dr=(k=he==null?void 0:he.root)!=null?k:Q.root,hr=(P=he==null?void 0:he.rail)!=null?P:Q.rail,pr=(_=he==null?void 0:he.track)!=null?_:Q.track,da=(w=he==null?void 0:he.thumb)!=null?w:Q.thumb,mr=(j=he==null?void 0:he.valueLabel)!=null?j:Q.valueLabel,Uu=(E=he==null?void 0:he.mark)!=null?E:Q.mark,Rr=(I=he==null?void 0:he.markLabel)!=null?I:Q.markLabel,ui=(z=he==null?void 0:he.input)!=null?z:Q.input,ce=xr({elementType:Lt,getSlotProps:it,externalSlotProps:dr,externalForwardedProps:en,additionalProps:we({},M8(Lt)&&{as:Z}),ownerState:we({},Ue,dr==null?void 0:dr.ownerState),className:[Ie.root,ue]}),Wu=xr({elementType:oi,externalSlotProps:hr,ownerState:Ue,className:Ie.rail}),Yu=xr({elementType:Nr,externalSlotProps:pr,additionalProps:{style:we({},Ne[ne].offset(Ge),Ne[ne].leap(kt))},ownerState:we({},Ue,pr==null?void 0:pr.ownerState),className:Ie.track}),Et=xr({elementType:qe,getSlotProps:Cn,externalSlotProps:da,ownerState:we({},Ue,da==null?void 0:da.ownerState),className:Ie.thumb}),ha=xr({elementType:fa,externalSlotProps:mr,ownerState:we({},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,we({},ce,{children:[y.jsx(oi,we({},Wu)),y.jsx(Nr,we({},Yu)),ke.filter(je=>je.value>=ae&&je.value<=Me).map((je,Je)=>{const Kt=Ys(je.value,ae,Me),lt=Ne[ne].offset(Kt);let mt;return He===!1?mt=$e.indexOf(je.value)!==-1:mt=He==="normal"&&(oe?je.value>=$e[0]&&je.value<=$e[$e.length-1]:je.value<=$e[0])||He==="inverted"&&(oe?je.value<=$e[0]||je.value>=$e[$e.length-1]:je.value>=$e[0]),y.jsxs(B.Fragment,{children:[y.jsx(si,we({"data-index":Je},Be,!Bs(si)&&{markActive:mt},{style:we({},lt,Be.style),className:Xr(Be.className,mt&&Ie.markActive)})),je.label!=null?y.jsx(fr,we({"aria-hidden":!0,"data-index":Je},Vn,!Bs(fr)&&{markLabelActive:mt},{style:we({},lt,Vn.style),className:Xr(Ie.markLabel,Vn.className,mt&&Ie.markLabelActive),children:je.label})):null]},Je)}),$e.map((je,Je)=>{const Kt=Ys(je,ae,Me),lt=Ne[ne].offset(Kt),mt=rt==="off"?V8:fa;return y.jsx(mt,we({},!Bs(mt)&&{valueLabelFormat:ft,valueLabelDisplay:rt,value:typeof ft=="function"?ft(Ae(je),Je):ft,index:Je,open:R===Je||q===Je||rt==="on",disabled:_e},ha,{children:y.jsx(qe,we({"data-index":Je},Et,{className:Xr(Ie.thumb,Et.className,q===Je&&Ie.active,se===Je&&Ie.focusVisible),style:we({},lt,pt(Je),Et.style),children:y.jsx(li,we({"data-index":Je,"aria-label":te?te(Je):Y,"aria-valuenow":Ae(je),"aria-labelledby":X,"aria-valuetext":ge?ge(Ae(je),Je):V,value:$e[Je]},Vu))}))}),Je)})]}))}),ql=G8,q8=(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},K8=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function X8(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"})})]})}),e9=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"})})]})}),t9=H.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -34,21 +34,21 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg color: ${L.GRAY7}; } - ${({loading:e})=>e&&Vg` + ${({loading:e})=>e&&Gg` background-image: url('https://i.gifer.com/ZZ5H.gif'); background-size: 25px 25px; background-position: right center; background-position-x: 95%; background-repeat: no-repeat; `} -`,dv=({loading:e,placeholder:t="Search",onSubmit:n})=>{const{register:r,watch:i}=Nd(),a=i("search"),o=Hl();return y.jsx(e9,{...r("search"),disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(a.trim()==="")return;if(n){n();return}const l=a.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},t9=()=>{const e=I4({mode:"onChange"}),{fetchData:t,setAbortRequests:n}=Sn(s=>s),{setBudget:r}=Ji(s=>s),{reset:i}=e,a=Gg(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(t(r,n,s),i({search:""}))});return y.jsx(hv,{children:y.jsx(D4,{...e,children:y.jsxs(n9,{children:[y.jsx(dv,{loading:a,onSubmit:o,placeholder:"Ask follow-up"}),y.jsx(r9,{"data-testid":"search-ai_action_icon",onClick:()=>{a||o()},children:a?y.jsx(i9,{color:L.lightGray,"data-testid":"loader",size:"20"}):y.jsx(iv,{})})]})})})},hv=H(F)` +`,hv=({loading:e,placeholder:t="Search",onSubmit:n})=>{const{register:r,watch:i}=Rd(),a=i("search"),o=Ul();return y.jsx(t9,{...r("search"),disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(a.trim()==="")return;if(n){n();return}const l=a.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},n9=()=>{const e=D4({mode:"onChange"}),{fetchData:t,setAbortRequests:n}=Sn(s=>s),{setBudget:r}=Qi(s=>s),{reset:i}=e,a=qg(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(t(r,n,s),i({search:""}))});return y.jsx(pv,{children:y.jsx(L4,{...e,children:y.jsxs(r9,{children:[y.jsx(hv,{loading:a,onSubmit:o,placeholder:"Ask follow-up"}),y.jsx(i9,{"data-testid":"search-ai_action_icon",onClick:()=>{a||o()},children:a?y.jsx(a9,{color:L.lightGray,"data-testid":"loader",size:"20"}):y.jsx(av,{})})]})})})},pv=H(F)` position: sticky; bottom: 0; padding: 12px; border-top: 1px solid ${L.black}; -`,n9=H(F).attrs({direction:"row",justify:"center",align:"center"})` +`,r9=H(F).attrs({direction:"row",justify:"center",align:"center"})` flex-grow: 1; -`,r9=H(F).attrs({align:"center",justify:"center",p:5})` +`,i9=H(F).attrs({align:"center",justify:"center",p:5})` font-size: 32px; color: ${L.mainBottomIcons}; cursor: pointer; @@ -60,12 +60,12 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg /* background-color: ${L.gray200}; */ } - ${hv} input:focus + & { + ${pv} input:focus + & { color: ${L.primaryBlue}; } -`,i9=H(Vl)` +`,a9=H(Gl)` margin-right: 10px; -`,pv=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),mv=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),ql=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),Fd=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),a9=H(F).attrs({direction:"column"})` +`,mv=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),yv=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),Kl=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),Hd=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),o9=H(F).attrs({direction:"column"})` padding: 24px; cursor: pointer; border-top: 1px solid #101317; @@ -89,11 +89,11 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg .title { margin: 20px 0 8px; } -`,xs=H(av)` +`,bs=H(ov)` && { background: rgba(0, 0, 0, 0.15); } -`,yv=({count:e=7})=>y.jsx(y.Fragment,{children:Array(e).fill(null).map((t,n)=>y.jsx(a9,{children:y.jsxs(F,{direction:"row",children:[y.jsx(F,{align:"center",pr:16,children:y.jsx(xs,{animation:"wave",height:64,variant:"rectangular",width:64})}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(xs,{height:10,variant:"rectangular",width:56}),y.jsx(xs,{className:"title",height:10,variant:"rectangular",width:262}),y.jsx(xs,{height:10,variant:"rectangular",width:149})]})]})},n))});H(F)` +`,gv=({count:e=7})=>y.jsx(y.Fragment,{children:Array(e).fill(null).map((t,n)=>y.jsx(o9,{children:y.jsxs(F,{direction:"row",children:[y.jsx(F,{align:"center",pr:16,children:y.jsx(bs,{animation:"wave",height:64,variant:"rectangular",width:64})}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(bs,{height:10,variant:"rectangular",width:56}),y.jsx(bs,{className:"title",height:10,variant:"rectangular",width:262}),y.jsx(bs,{height:10,variant:"rectangular",width:149})]})]})},n))});H(F)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -106,7 +106,7 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg -webkit-box-orient: vertical; overflow: hidden; white-space: normal; -`;const o9=H(ht)` +`;const s9=H(ht)` overflow: hidden; color: ${L.GRAY6}; text-overflow: ellipsis; @@ -117,7 +117,7 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg line-height: 18px; margin-right: 8px; flex-shrink: 0; -`;H(o9)` +`;H(s9)` display: flex; flex-direction: row; align-items: center; @@ -135,7 +135,7 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg height: 4px; background: ${L.GRAY6}; } -`;const s9=u4` +`;const l9=c4` 0% { background-color: ${L.SECONDARY_BLUE}; color: white; @@ -146,12 +146,12 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg color: ${L.SECONDARY_BLUE}; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } -`,l9=H.span` +`,u9=H.span` padding: 0; margin: 0; color: ${L.SECONDARY_BLUE}; background-color: transparent; - animation: ${({animate:e})=>e?s9:"none"} 0.5s ease-in-out forwards; + animation: ${({animate:e})=>e?l9:"none"} 0.5s ease-in-out forwards; animation-play-state: ${({animate:e})=>e?"running":"paused"}; &:hover { @@ -165,21 +165,21 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg border-radius: 4px; text-decoration: none; } -`;function u9(e,t,n,r,i){if(!r||r.length===0)return e;const o=r.map(f=>f.entity).filter(f=>typeof f=="string").sort((f,d)=>d.length-f.length).map(f=>c9(f)),s=new RegExp(`(${o.join("|")})`,"gi"),l=e.split(s);let u;return n<=180?u="145%":n>=250?u="10%":u="50%",y.jsx(y.Fragment,{children:l.map((f,d)=>{const h=r.find(m=>m.entity.toLowerCase()===f.toLowerCase());if(h){const m=`${h.entity}-${d}`;return y.jsx(f9,{content:h.description,positionLeft:u,children:y.jsx(l9,{animate:!!i,onClick:()=>t(f),children:f})},m)}return f})})}function c9(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const f9=H(({className:e,positionLeft:t,...n})=>y.jsx(c4,{...n,backgroundColor:L.BG2,borderRadius:"6px",className:e,color:"white",fontSize:"12px",fontWeight:"500",minWidth:"160px",mrLeft:t,padding:"10px",textAlign:"start",whiteSpace:"normal"}))` +`;function c9(e,t,n,r,i){if(!r||r.length===0)return e;const o=r.map(f=>f.entity).filter(f=>typeof f=="string").sort((f,d)=>d.length-f.length).map(f=>f9(f)),s=new RegExp(`(${o.join("|")})`,"gi"),l=e.split(s);let u;return n<=180?u="145%":n>=250?u="10%":u="50%",y.jsx(y.Fragment,{children:l.map((f,d)=>{const h=r.find(m=>m.entity.toLowerCase()===f.toLowerCase());if(h){const m=`${h.entity}-${d}`;return y.jsx(d9,{content:h.description,positionLeft:u,children:y.jsx(u9,{animate:!!i,onClick:()=>t(f),children:f})},m)}return f})})}function f9(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const d9=H(({className:e,positionLeft:t,...n})=>y.jsx(f4,{...n,backgroundColor:L.BG2,borderRadius:"6px",className:e,color:"white",fontSize:"12px",fontWeight:"500",minWidth:"160px",mrLeft:t,padding:"10px",textAlign:"start",whiteSpace:"normal"}))` & .tooltip-content { color: white; } -`,d9=H(F).attrs({direction:"column"})` +`,h9=H(F).attrs({direction:"column"})` padding: 0 1.5rem 1.5rem; gap: 1rem; overflow-wrap: break-word; white-space: normal; word-break: break-word; -`,h9=H(ht)` +`,p9=H(ht)` font-size: 14px; font-weight: 400; line-height: 19.6px; -`,p9=({answer:e,entities:t,handleLoaded:n,hasBeenRendered:r})=>{const{fetchData:i,setAbortRequests:a}=Sn(C=>C),{setBudget:o}=Ji(C=>C),[s,l]=B.useState(""),[u,f]=B.useState(t),[d,h]=B.useState(0),[m,g]=B.useState(!0);B.useEffect(()=>{let C;if(!(!e||r)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(C);g(!0),n()}},[e,s,n,r]),B.useEffect(()=>{s||r&&l(e)},[e,s,r]);const v=C=>{i(o,a,C)};B.useEffect(()=>{t&&u!==t&&f(t)},[t,u]);const b=C=>{g(!1),h(C.clientX)},O=u9(s,v,d,u,m);return y.jsx(d9,{onMouseMove:b,children:y.jsx(h9,{children:O})})},m9=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:"stacks",children:[y.jsx("mask",{id:"mask0_8417_33308",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_8417_33308)",children:y.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),y9=({questions:e})=>{const{fetchData:t,setAbortRequests:n}=Sn(o=>o),[r]=Ji(o=>[o.setBudget]),i=Gg(),a=o=>{i||o&&t(r,n,o)};return e!=null&&e.length?y.jsxs(w9,{children:[y.jsx(Ti,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(v9,{className:"heading",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(m9,{})}),y.jsx(x9,{children:"More on this"})]})}),y.jsx(Ti,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsx(F,{children:e.map(o=>y.jsxs(b9,{align:"center",className:Fn({disabled:i}),direction:"row",justify:"space-between",onClick:()=>a(o),children:[y.jsx("span",{children:o}),y.jsx(F,{className:Fn({disabled:i},"icon"),children:y.jsx(Bd,{})})]},o))})})]}):null},g9=B.memo(y9),v9=H(F)` +`,m9=({answer:e,entities:t,handleLoaded:n,hasBeenRendered:r})=>{const{fetchData:i,setAbortRequests:a}=Sn(C=>C),{setBudget:o}=Qi(C=>C),[s,l]=B.useState(""),[u,f]=B.useState(t),[d,h]=B.useState(0),[m,g]=B.useState(!0);B.useEffect(()=>{let C;if(!(!e||r)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(C);g(!0),n()}},[e,s,n,r]),B.useEffect(()=>{s||r&&l(e)},[e,s,r]);const v=C=>{i(o,a,C)};B.useEffect(()=>{t&&u!==t&&f(t)},[t,u]);const b=C=>{g(!1),h(C.clientX)},O=c9(s,v,d,u,m);return y.jsx(h9,{onMouseMove:b,children:y.jsx(p9,{children:O})})},y9=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:"stacks",children:[y.jsx("mask",{id:"mask0_8417_33308",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_8417_33308)",children:y.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),g9=({questions:e})=>{const{fetchData:t,setAbortRequests:n}=Sn(o=>o),[r]=Qi(o=>[o.setBudget]),i=qg(),a=o=>{i||o&&t(r,n,o)};return e!=null&&e.length?y.jsxs(S9,{children:[y.jsx(Ei,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(x9,{className:"heading",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(y9,{})}),y.jsx(b9,{children:"More on this"})]})}),y.jsx(Ei,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsx(F,{children:e.map(o=>y.jsxs(w9,{align:"center",className:Fn({disabled:i}),direction:"row",justify:"space-between",onClick:()=>a(o),children:[y.jsx("span",{children:o}),y.jsx(F,{className:Fn({disabled:i},"icon"),children:y.jsx(zd,{})})]},o))})})]}):null},v9=B.memo(g9),x9=H(F)` &.heading { font-weight: 600; color: ${L.white}; @@ -196,9 +196,9 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg margin-left: 16px; } } -`,x9=H.span` +`,b9=H.span` margin-top: 1px; -`,b9=H(F)` +`,w9=H(F)` color: ${L.GRAY3}; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.3); @@ -239,15 +239,15 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg color: ${L.GRAY7}; cursor: pointer; } -`,w9=H(F)` +`,S9=H(F)` padding: 0 24px 24px 24px; -`,S9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Tr=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("g",{id:"Icons 20x20",children:y.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})});function $n(e,t){const n=t!=null?String(t).trim():"";if(!n)return e;const r=new RegExp(`(${n})`,"gi"),i=e.split(r);return y.jsx(y.Fragment,{children:i.map((a,o)=>r.test(a)?y.jsx(_9,{children:a},o):a)})}const _9=H.span` +`,_9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),Er=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("g",{id:"Icons 20x20",children:y.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})});function $n(e,t){const n=t!=null?String(t).trim():"";if(!n)return e;const r=new RegExp(`(${n})`,"gi"),i=e.split(r);return y.jsx(y.Fragment,{children:i.map((a,o)=>r.test(a)?y.jsx(O9,{children:a},o):a)})}const O9=H.span` background-color: rgba(0, 123, 255, 0.4); padding: 2; margin: 0; border-radius: 3px; color: inherit; -`,gv=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),Hd=({amt:e})=>y.jsxs(O9,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(gv,{})}),y.jsx("div",{className:"value","data-testid":"boost-amt",children:e}),y.jsx("div",{className:"text",children:"sat"})]}),O9=H(F)` +`,vv=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),Ud=({amt:e})=>y.jsxs(k9,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(vv,{})}),y.jsx("div",{className:"value","data-testid":"boost-amt",children:e}),y.jsx("div",{className:"text",children:"sat"})]}),k9=H(F)` font-size: 13px; font-style: normal; font-weight: 500; @@ -268,7 +268,7 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg margin: 0 4px 0 8px; color: ${L.white}; } -`,k9=({boostCount:e,date:t,episodeTitle:n,imageUrl:r,showTitle:i,type:a,newName:o,sourceLink:s,node:l})=>{const u=At(w=>w.currentSearch),{getNodeKeysByType:f}=tv(w=>w),d=a==="show"?i:n,m=$n(String(a==="show"?"":i),u),g=a?(f(a)||"").split("-"):[],{properties:v={}}=l,[b="",O=""]=g.map(w=>v[w]||""),C=b||o,k=O||d,P=$n(String(C),u),_=$n(String(k),u);return y.jsxs(F,{align:"center",direction:"row",justify:"center",children:[r&&y.jsx(F,{align:"center",pr:16,children:y.jsx(In,{size:80,src:r,type:a||""})}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(F,{align:"center",direction:"row",children:a&&y.jsx(ta,{type:a})}),s&&y.jsx(P9,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:w=>w.stopPropagation(),target:"_blank",children:y.jsx(Tr,{})})]}),P&&y.jsx(r1,{"data-testid":"episode-name",children:P}),_&&y.jsx(r1,{"data-testid":"episode-description",children:_}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&y.jsx(vv,{children:Lo.unix(t).fromNow()}),!!m&&y.jsx(C9,{children:m}),e>0&&y.jsx(F,{style:{marginLeft:"auto"},children:y.jsx(Hd,{amt:e})})]})]})]})},r1=H(F)` +`,C9=({boostCount:e,date:t,episodeTitle:n,imageUrl:r,showTitle:i,type:a,newName:o,sourceLink:s,node:l})=>{const u=At(w=>w.currentSearch),{getNodeKeysByType:f}=nv(w=>w),d=a==="show"?i:n,m=$n(String(a==="show"?"":i),u),g=a?(f(a)||"").split("-"):[],{properties:v={}}=l,[b="",O=""]=g.map(w=>v[w]||""),C=b||o,k=O||d,P=$n(String(C),u),_=$n(String(k),u);return y.jsxs(F,{align:"center",direction:"row",justify:"center",children:[r&&y.jsx(F,{align:"center",pr:16,children:y.jsx(In,{size:80,src:r,type:a||""})}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(F,{align:"center",direction:"row",children:a&&y.jsx(na,{type:a})}),s&&y.jsx(A9,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:w=>w.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),P&&y.jsx(i1,{"data-testid":"episode-name",children:P}),_&&y.jsx(i1,{"data-testid":"episode-description",children:_}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&y.jsx(xv,{children:No.unix(t).fromNow()}),!!m&&y.jsx(P9,{children:m}),e>0&&y.jsx(F,{style:{marginLeft:"auto"},children:y.jsx(Ud,{amt:e})})]})]})]})},i1=H(F)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -282,7 +282,7 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg overflow: hidden; white-space: normal; letter-spacing: 0.2px; -`,vv=H(ht)` +`,xv=H(ht)` overflow: hidden; color: ${L.GRAY6}; text-overflow: ellipsis; @@ -322,7 +322,7 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg line-height: 24px; margin: 0; } -`;const C9=H(vv)` +`;const P9=H(xv)` align-items: center; flex-shrink: 1; overflow: hidden; @@ -356,14 +356,14 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg font-weight: 500; line-height: 17px; /* 130.769% */ } -`,P9=H.a` +`,A9=H.a` color: ${L.GRAY6}; font-size: 16px; height: 16px; display: flex; gap: 5px; align-items: center; -`,A9=({imageUrl:e,name:t,sourceLink:n,date:r})=>y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",children:[e&&y.jsx(j9,{children:y.jsx(In,{rounded:!0,size:64,src:e||"",type:"image"})}),t&&y.jsx(T9,{children:t})]}),n&&y.jsx(Ei,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:y.jsx(Tr,{})})]}),y.jsx(F,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!r&&y.jsx(ti,{children:Lo.unix(r).fromNow()})})]}),j9=H(F)` +`,j9=({imageUrl:e,name:t,sourceLink:n,date:r})=>y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",children:[e&&y.jsx(T9,{children:y.jsx(In,{rounded:!0,size:64,src:e||"",type:"image"})}),t&&y.jsx(E9,{children:t})]}),n&&y.jsx(Mi,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),y.jsx(F,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!r&&y.jsx(ni,{children:No.unix(r).fromNow()})})]}),T9=H(F)` img { width: 64px; height: 64px; @@ -371,18 +371,18 @@ import{a9 as zg,aa as xi,a7 as Kp,ab as a4,r as B,_ as we,j as y,g as Fg,b as Hg object-fit: cover; } margin-right: 16px; -`,T9=H(F)` +`,E9=H(F)` color: ${L.white}; font-family: Barlow; font-size: 13px; font-style: normal; font-weight: 600; line-height: 17px; -`,xv=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})});var bv={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bt,function(){var n;function r(){return n.apply(null,arguments)}function i(c){n=c}function a(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function o(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function s(c,p){return Object.prototype.hasOwnProperty.call(c,p)}function l(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var p;for(p in c)if(s(c,p))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function d(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function h(c,p){var x=[],S,A=c.length;for(S=0;S>>0,S;for(S=0;S0)for(x=0;xy.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})});var wv={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bt,function(){var n;function r(){return n.apply(null,arguments)}function i(c){n=c}function a(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function o(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function s(c,p){return Object.prototype.hasOwnProperty.call(c,p)}function l(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var p;for(p in c)if(s(c,p))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function d(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function h(c,p){var x=[],S,A=c.length;for(S=0;S>>0,S;for(S=0;S0)for(x=0;x=0;return(N?x?"+":"":"-")+Math.pow(10,Math.max(0,A)).toString().substr(1)+S}var pe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ue=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$={},_e={};function te(c,p,x,S){var A=S;typeof S=="string"&&(A=function(){return this[S]()}),c&&(_e[c]=A),p&&(_e[p[0]]=function(){return T(A.apply(this,arguments),p[1],p[2])}),x&&(_e[x]=function(){return this.localeData().ordinal(A.apply(this,arguments),c)})}function ge(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function Ye(c){var p=c.match(pe),x,S;for(x=0,S=p.length;x=0&&ue.test(c);)c=c.replace(ue,S),ue.lastIndex=0,x-=1;return c}var de={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ve(c){var p=this._longDateFormat[c],x=this._longDateFormat[c.toUpperCase()];return p||!x?p:(this._longDateFormat[c]=x.match(pe).map(function(S){return S==="MMMM"||S==="MM"||S==="DD"||S==="dddd"?S.slice(1):S}).join(""),this._longDateFormat[c])}var ee="Invalid date";function Ae(){return this._invalidDate}var he="%d",xe=/\d{1,2}/;function He(c){return this._ordinal.replace("%d",c)}var rt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ft(c,p,x,S){var A=this._relativeTime[x];return W(A)?A(c,p,x,S):A.replace(/%d/i,c)}function en(c,p){var x=this._relativeTime[c>0?"future":"past"];return W(x)?x(p):x.replace(/%s/i,p)}var Ue={};function Ne(c,p){var x=c.toLowerCase();Ue[x]=Ue[x+"s"]=Ue[p]=c}function it(c){return typeof c=="string"?Ue[c]||Ue[c.toLowerCase()]:void 0}function tn(c){var p={},x,S;for(S in c)s(c,S)&&(x=it(S),x&&(p[x]=c[S]));return p}var Cn={};function R(c,p){Cn[c]=p}function q(c){var p=[],x;for(x in c)s(c,x)&&p.push({unit:x,priority:Cn[x]});return p.sort(function(S,A){return S.priority-A.priority}),p}function ne(c){return c%4===0&&c%100!==0||c%400===0}function se(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function oe(c){var p=+c,x=0;return p!==0&&isFinite(p)&&(x=se(p)),x}function Re(c,p){return function(x){return x!=null?($e(this,c,x),r.updateOffset(this,p),this):ke(this,c)}}function ke(c,p){return c.isValid()?c._d["get"+(c._isUTC?"UTC":"")+p]():NaN}function $e(c,p,x){c.isValid()&&!isNaN(x)&&(p==="FullYear"&&ne(c.year())&&c.month()===1&&c.date()===29?(x=oe(x),c._d["set"+(c._isUTC?"UTC":"")+p](x,c.month(),ns(x,c.month()))):c._d["set"+(c._isUTC?"UTC":"")+p](x))}function Ge(c){return c=it(c),W(this[c])?this[c]():this}function kt(c,p){if(typeof c=="object"){c=tn(c);var x=q(c),S,A=x.length;for(S=0;S68?1900:2e3)};var gp=Re("FullYear",!0);function Uw(){return ne(this.year())}function Ww(c,p,x,S,A,N,K){var me;return c<100&&c>=0?(me=new Date(c+400,p,x,S,A,N,K),isFinite(me.getFullYear())&&me.setFullYear(c)):me=new Date(c,p,x,S,A,N,K),me}function pa(c){var p,x;return c<100&&c>=0?(x=Array.prototype.slice.call(arguments),x[0]=c+400,p=new Date(Date.UTC.apply(null,x)),isFinite(p.getUTCFullYear())&&p.setUTCFullYear(c)):p=new Date(Date.UTC.apply(null,arguments)),p}function rs(c,p,x){var S=7+p-x,A=(7+pa(c,0,S).getUTCDay()-p)%7;return-A+S-1}function vp(c,p,x,S,A){var N=(7+x-S)%7,K=rs(c,S,A),me=1+7*(p-1)+N+K,Ce,Ke;return me<=0?(Ce=c-1,Ke=ha(Ce)+me):me>ha(c)?(Ce=c+1,Ke=me-ha(c)):(Ce=c,Ke=me),{year:Ce,dayOfYear:Ke}}function ma(c,p,x){var S=rs(c.year(),p,x),A=Math.floor((c.dayOfYear()-S-1)/7)+1,N,K;return A<1?(K=c.year()-1,N=A+qn(K,p,x)):A>qn(c.year(),p,x)?(N=A-qn(c.year(),p,x),K=c.year()+1):(K=c.year(),N=A),{week:N,year:K}}function qn(c,p,x){var S=rs(c,p,x),A=rs(c+1,p,x);return(ha(c)-S+A)/7}te("w",["ww",2],"wo","week"),te("W",["WW",2],"Wo","isoWeek"),Ne("week","w"),Ne("isoWeek","W"),R("week",5),R("isoWeek",5),ce("w",qe),ce("ww",qe,Ie),ce("W",qe),ce("WW",qe,Ie),Vn(["w","ww","W","WW"],function(c,p,x,S){p[S.substr(0,1)]=oe(c)});function Yw(c){return ma(c,this._week.dow,this._week.doy).week}var Vw={dow:0,doy:6};function Gw(){return this._week.dow}function qw(){return this._week.doy}function Kw(c){var p=this.localeData().week(this);return c==null?p:this.add((c-p)*7,"d")}function Xw(c){var p=ma(this,1,4).week;return c==null?p:this.add((c-p)*7,"d")}te("d",0,"do","day"),te("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),te("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),te("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),te("e",0,0,"weekday"),te("E",0,0,"isoWeekday"),Ne("day","d"),Ne("weekday","e"),Ne("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),ce("d",qe),ce("e",qe),ce("E",qe),ce("dd",function(c,p){return p.weekdaysMinRegex(c)}),ce("ddd",function(c,p){return p.weekdaysShortRegex(c)}),ce("dddd",function(c,p){return p.weekdaysRegex(c)}),Vn(["dd","ddd","dddd"],function(c,p,x,S){var A=x._locale.weekdaysParse(c,S,x._strict);A!=null?p.d=A:b(x).invalidWeekday=c}),Vn(["d","e","E"],function(c,p,x,S){p[S]=oe(c)});function Zw(c,p){return typeof c!="string"?c:isNaN(c)?(c=p.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Jw(c,p){return typeof c=="string"?p.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Vu(c,p){return c.slice(p,7).concat(c.slice(0,p))}var Qw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),e3="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),t3=Nr,n3=Nr,r3=Nr;function i3(c,p){var x=a(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return c===!0?Vu(x,this._week.dow):c?x[c.day()]:x}function a3(c){return c===!0?Vu(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function o3(c){return c===!0?Vu(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function s3(c,p,x){var S,A,N,K=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],S=0;S<7;++S)N=g([2e3,1]).day(S),this._minWeekdaysParse[S]=this.weekdaysMin(N,"").toLocaleLowerCase(),this._shortWeekdaysParse[S]=this.weekdaysShort(N,"").toLocaleLowerCase(),this._weekdaysParse[S]=this.weekdays(N,"").toLocaleLowerCase();return x?p==="dddd"?(A=yt.call(this._weekdaysParse,K),A!==-1?A:null):p==="ddd"?(A=yt.call(this._shortWeekdaysParse,K),A!==-1?A:null):(A=yt.call(this._minWeekdaysParse,K),A!==-1?A:null):p==="dddd"?(A=yt.call(this._weekdaysParse,K),A!==-1||(A=yt.call(this._shortWeekdaysParse,K),A!==-1)?A:(A=yt.call(this._minWeekdaysParse,K),A!==-1?A:null)):p==="ddd"?(A=yt.call(this._shortWeekdaysParse,K),A!==-1||(A=yt.call(this._weekdaysParse,K),A!==-1)?A:(A=yt.call(this._minWeekdaysParse,K),A!==-1?A:null)):(A=yt.call(this._minWeekdaysParse,K),A!==-1||(A=yt.call(this._weekdaysParse,K),A!==-1)?A:(A=yt.call(this._shortWeekdaysParse,K),A!==-1?A:null))}function l3(c,p,x){var S,A,N;if(this._weekdaysParseExact)return s3.call(this,c,p,x);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),S=0;S<7;S++){if(A=g([2e3,1]).day(S),x&&!this._fullWeekdaysParse[S]&&(this._fullWeekdaysParse[S]=new RegExp("^"+this.weekdays(A,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[S]=new RegExp("^"+this.weekdaysShort(A,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[S]=new RegExp("^"+this.weekdaysMin(A,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[S]||(N="^"+this.weekdays(A,"")+"|^"+this.weekdaysShort(A,"")+"|^"+this.weekdaysMin(A,""),this._weekdaysParse[S]=new RegExp(N.replace(".",""),"i")),x&&p==="dddd"&&this._fullWeekdaysParse[S].test(c))return S;if(x&&p==="ddd"&&this._shortWeekdaysParse[S].test(c))return S;if(x&&p==="dd"&&this._minWeekdaysParse[S].test(c))return S;if(!x&&this._weekdaysParse[S].test(c))return S}}function u3(c){if(!this.isValid())return c!=null?this:NaN;var p=this._isUTC?this._d.getUTCDay():this._d.getDay();return c!=null?(c=Zw(c,this.localeData()),this.add(c-p,"d")):p}function c3(c){if(!this.isValid())return c!=null?this:NaN;var p=(this.day()+7-this.localeData()._week.dow)%7;return c==null?p:this.add(c-p,"d")}function f3(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var p=Jw(c,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function d3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=t3),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function h3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=n3),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function p3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=r3),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Gu(){function c(Ft,Qn){return Qn.length-Ft.length}var p=[],x=[],S=[],A=[],N,K,me,Ce,Ke;for(N=0;N<7;N++)K=g([2e3,1]).day(N),me=Et(this.weekdaysMin(K,"")),Ce=Et(this.weekdaysShort(K,"")),Ke=Et(this.weekdays(K,"")),p.push(me),x.push(Ce),S.push(Ke),A.push(me),A.push(Ce),A.push(Ke);p.sort(c),x.sort(c),S.sort(c),A.sort(c),this._weekdaysRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+x.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+p.join("|")+")","i")}function qu(){return this.hours()%12||12}function m3(){return this.hours()||24}te("H",["HH",2],0,"hour"),te("h",["hh",2],0,qu),te("k",["kk",2],0,m3),te("hmm",0,0,function(){return""+qu.apply(this)+T(this.minutes(),2)}),te("hmmss",0,0,function(){return""+qu.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),te("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),te("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)});function bp(c,p){te(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}bp("a",!0),bp("A",!1),Ne("hour","h"),R("hour",13);function wp(c,p){return p._meridiemParse}ce("a",wp),ce("A",wp),ce("H",qe),ce("h",qe),ce("k",qe),ce("HH",qe,Ie),ce("hh",qe,Ie),ce("kk",qe,Ie),ce("hmm",ca),ce("hmmss",oi),ce("Hmm",ca),ce("Hmmss",oi),Be(["H","HH"],lt),Be(["k","kk"],function(c,p,x){var S=oe(c);p[lt]=S===24?0:S}),Be(["a","A"],function(c,p,x){x._isPm=x._locale.isPM(c),x._meridiem=c}),Be(["h","hh"],function(c,p,x){p[lt]=oe(c),b(x).bigHour=!0}),Be("hmm",function(c,p,x){var S=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S)),b(x).bigHour=!0}),Be("hmmss",function(c,p,x){var S=c.length-4,A=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S,2)),p[Gn]=oe(c.substr(A)),b(x).bigHour=!0}),Be("Hmm",function(c,p,x){var S=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S))}),Be("Hmmss",function(c,p,x){var S=c.length-4,A=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S,2)),p[Gn]=oe(c.substr(A))});function y3(c){return(c+"").toLowerCase().charAt(0)==="p"}var g3=/[ap]\.?m?\.?/i,v3=Re("Hours",!0);function x3(c,p,x){return c>11?x?"pm":"PM":x?"am":"AM"}var Sp={calendar:G,longDateFormat:de,invalidDate:ee,ordinal:he,dayOfMonthOrdinalParse:xe,relativeTime:rt,months:$w,monthsShort:dp,week:Vw,weekdays:Qw,weekdaysMin:e3,weekdaysShort:xp,meridiemParse:g3},ut={},ya={},ga;function b3(c,p){var x,S=Math.min(c.length,p.length);for(x=0;x0;){if(A=is(N.slice(0,x).join("-")),A)return A;if(S&&S.length>=x&&b3(N,S)>=x-1)break;x--}p++}return ga}function S3(c){return c.match("^[^/\\\\]*$")!=null}function is(c){var p=null,x;if(ut[c]===void 0&&e&&e.exports&&S3(c))try{p=ga._abbr,x=f4,x("./locale/"+c),yr(p)}catch{ut[c]=null}return ut[c]}function yr(c,p){var x;return c&&(u(p)?x=Kn(c):x=Ku(c,p),x?ga=x:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),ga._abbr}function Ku(c,p){if(p!==null){var x,S=Sp;if(p.abbr=c,ut[c]!=null)D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),S=ut[c]._config;else if(p.parentLocale!=null)if(ut[p.parentLocale]!=null)S=ut[p.parentLocale]._config;else if(x=is(p.parentLocale),x!=null)S=x._config;else return ya[p.parentLocale]||(ya[p.parentLocale]=[]),ya[p.parentLocale].push({name:c,config:p}),null;return ut[c]=new X(V(S,p)),ya[c]&&ya[c].forEach(function(A){Ku(A.name,A.config)}),yr(c),ut[c]}else return delete ut[c],null}function _3(c,p){if(p!=null){var x,S,A=Sp;ut[c]!=null&&ut[c].parentLocale!=null?ut[c].set(V(ut[c]._config,p)):(S=is(c),S!=null&&(A=S._config),p=V(A,p),S==null&&(p.abbr=c),x=new X(p),x.parentLocale=ut[c],ut[c]=x),yr(c)}else ut[c]!=null&&(ut[c].parentLocale!=null?(ut[c]=ut[c].parentLocale,c===yr()&&yr(c)):ut[c]!=null&&delete ut[c]);return ut[c]}function Kn(c){var p;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return ga;if(!a(c)){if(p=is(c),p)return p;c=[c]}return w3(c)}function O3(){return Z(ut)}function Xu(c){var p,x=c._a;return x&&b(c).overflow===-2&&(p=x[Je]<0||x[Je]>11?Je:x[Kt]<1||x[Kt]>ns(x[je],x[Je])?Kt:x[lt]<0||x[lt]>24||x[lt]===24&&(x[mt]!==0||x[Gn]!==0||x[Rr]!==0)?lt:x[mt]<0||x[mt]>59?mt:x[Gn]<0||x[Gn]>59?Gn:x[Rr]<0||x[Rr]>999?Rr:-1,b(c)._overflowDayOfYear&&(pKt)&&(p=Kt),b(c)._overflowWeeks&&p===-1&&(p=Tw),b(c)._overflowWeekday&&p===-1&&(p=Ew),b(c).overflow=p),c}var k3=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,C3=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,P3=/Z|[+-]\d\d(?::?\d\d)?/,as=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Zu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],A3=/^\/?Date\((-?\d+)/i,j3=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,T3={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Op(c){var p,x,S=c._i,A=k3.exec(S)||C3.exec(S),N,K,me,Ce,Ke=as.length,Ft=Zu.length;if(A){for(b(c).iso=!0,p=0,x=Ke;pha(K)||c._dayOfYear===0)&&(b(c)._overflowDayOfYear=!0),x=pa(K,0,c._dayOfYear),c._a[Je]=x.getUTCMonth(),c._a[Kt]=x.getUTCDate()),p=0;p<3&&c._a[p]==null;++p)c._a[p]=S[p]=A[p];for(;p<7;p++)c._a[p]=S[p]=c._a[p]==null?p===2?1:0:c._a[p];c._a[lt]===24&&c._a[mt]===0&&c._a[Gn]===0&&c._a[Rr]===0&&(c._nextDay=!0,c._a[lt]=0),c._d=(c._useUTC?pa:Ww).apply(null,S),N=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[lt]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==N&&(b(c).weekdayMismatch=!0)}}function R3(c){var p,x,S,A,N,K,me,Ce,Ke;p=c._w,p.GG!=null||p.W!=null||p.E!=null?(N=1,K=4,x=ui(p.GG,c._a[je],ma(at(),1,4).year),S=ui(p.W,1),A=ui(p.E,1),(A<1||A>7)&&(Ce=!0)):(N=c._locale._week.dow,K=c._locale._week.doy,Ke=ma(at(),N,K),x=ui(p.gg,c._a[je],Ke.year),S=ui(p.w,Ke.week),p.d!=null?(A=p.d,(A<0||A>6)&&(Ce=!0)):p.e!=null?(A=p.e+N,(p.e<0||p.e>6)&&(Ce=!0)):A=N),S<1||S>qn(x,N,K)?b(c)._overflowWeeks=!0:Ce!=null?b(c)._overflowWeekday=!0:(me=vp(x,S,A,N,K),c._a[je]=me.year,c._dayOfYear=me.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function Qu(c){if(c._f===r.ISO_8601){Op(c);return}if(c._f===r.RFC_2822){kp(c);return}c._a=[],b(c).empty=!0;var p=""+c._i,x,S,A,N,K,me=p.length,Ce=0,Ke,Ft;for(A=ae(c._f,c._locale).match(pe)||[],Ft=A.length,x=0;x0&&b(c).unusedInput.push(K),p=p.slice(p.indexOf(S)+S.length),Ce+=S.length),_e[N]?(S?b(c).empty=!1:b(c).unusedTokens.push(N),Yu(N,S,c)):c._strict&&!S&&b(c).unusedTokens.push(N);b(c).charsLeftOver=me-Ce,p.length>0&&b(c).unusedInput.push(p),c._a[lt]<=12&&b(c).bigHour===!0&&c._a[lt]>0&&(b(c).bigHour=void 0),b(c).parsedDateParts=c._a.slice(0),b(c).meridiem=c._meridiem,c._a[lt]=B3(c._locale,c._a[lt],c._meridiem),Ke=b(c).era,Ke!==null&&(c._a[je]=c._locale.erasConvertYear(Ke,c._a[je])),Ju(c),Xu(c)}function B3(c,p,x){var S;return x==null?p:c.meridiemHour!=null?c.meridiemHour(p,x):(c.isPM!=null&&(S=c.isPM(x),S&&p<12&&(p+=12),!S&&p===12&&(p=0)),p)}function z3(c){var p,x,S,A,N,K,me=!1,Ce=c._f.length;if(Ce===0){b(c).invalidFormat=!0,c._d=new Date(NaN);return}for(A=0;Athis?this:c:k()});function Ap(c,p){var x,S;if(p.length===1&&a(p[0])&&(p=p[0]),!p.length)return at();for(x=p[0],S=1;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function s5(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},p;return w(c,this),c=Cp(c),c._a?(p=c._isUTC?g(c._a):at(c._a),this._isDSTShifted=this.isValid()&&J3(c._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function l5(){return this.isValid()?!this._isUTC:!1}function u5(){return this.isValid()?this._isUTC:!1}function Tp(){return this.isValid()?this._isUTC&&this._offset===0:!1}var c5=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,f5=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pn(c,p){var x=c,S=null,A,N,K;return ss(c)?x={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(x={},p?x[p]=+c:x.milliseconds=+c):(S=c5.exec(c))?(A=S[1]==="-"?-1:1,x={y:0,d:oe(S[Kt])*A,h:oe(S[lt])*A,m:oe(S[mt])*A,s:oe(S[Gn])*A,ms:oe(ec(S[Rr]*1e3))*A}):(S=f5.exec(c))?(A=S[1]==="-"?-1:1,x={y:Br(S[2],A),M:Br(S[3],A),w:Br(S[4],A),d:Br(S[5],A),h:Br(S[6],A),m:Br(S[7],A),s:Br(S[8],A)}):x==null?x={}:typeof x=="object"&&("from"in x||"to"in x)&&(K=d5(at(x.from),at(x.to)),x={},x.ms=K.milliseconds,x.M=K.months),N=new os(x),ss(c)&&s(c,"_locale")&&(N._locale=c._locale),ss(c)&&s(c,"_isValid")&&(N._isValid=c._isValid),N}Pn.fn=os.prototype,Pn.invalid=Z3;function Br(c,p){var x=c&&parseFloat(c.replace(",","."));return(isNaN(x)?0:x)*p}function Ep(c,p){var x={};return x.months=p.month()-c.month()+(p.year()-c.year())*12,c.clone().add(x.months,"M").isAfter(p)&&--x.months,x.milliseconds=+p-+c.clone().add(x.months,"M"),x}function d5(c,p){var x;return c.isValid()&&p.isValid()?(p=nc(p,c),c.isBefore(p)?x=Ep(c,p):(x=Ep(p,c),x.milliseconds=-x.milliseconds,x.months=-x.months),x):{milliseconds:0,months:0}}function Mp(c,p){return function(x,S){var A,N;return S!==null&&!isNaN(+S)&&(D(p,"moment()."+p+"(period, number) is deprecated. Please use moment()."+p+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),N=x,x=S,S=N),A=Pn(x,S),$p(this,A,c),this}}function $p(c,p,x,S){var A=p._milliseconds,N=ec(p._days),K=ec(p._months);c.isValid()&&(S=S??!0,K&&pp(c,ke(c,"Month")+K*x),N&&$e(c,"Date",ke(c,"Date")+N*x),A&&c._d.setTime(c._d.valueOf()+A*x),S&&r.updateOffset(c,N||K))}var h5=Mp(1,"add"),p5=Mp(-1,"subtract");function Ip(c){return typeof c=="string"||c instanceof String}function m5(c){return E(c)||d(c)||Ip(c)||f(c)||g5(c)||y5(c)||c===null||c===void 0}function y5(c){var p=o(c)&&!l(c),x=!1,S=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],A,N,K=S.length;for(A=0;Ax.valueOf():x.valueOf()9999?Me(x,p?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):W(Date.prototype.toISOString)?p?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Me(x,"Z")):Me(x,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function E5(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",p="",x,S,A,N;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",p="Z"),x="["+c+'("]',S=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",A="-MM-DD[T]HH:mm:ss.SSS",N=p+'[")]',this.format(x+S+A+N)}function M5(c){c||(c=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var p=Me(this,c);return this.localeData().postformat(p)}function $5(c,p){return this.isValid()&&(E(c)&&c.isValid()||at(c).isValid())?Pn({to:this,from:c}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function I5(c){return this.from(at(),c)}function D5(c,p){return this.isValid()&&(E(c)&&c.isValid()||at(c).isValid())?Pn({from:this,to:c}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function L5(c){return this.to(at(),c)}function Dp(c){var p;return c===void 0?this._locale._abbr:(p=Kn(c),p!=null&&(this._locale=p),this)}var Lp=z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Np(){return this._locale}var us=1e3,ci=60*us,cs=60*ci,Rp=(365*400+97)*24*cs;function fi(c,p){return(c%p+p)%p}function Bp(c,p,x){return c<100&&c>=0?new Date(c+400,p,x)-Rp:new Date(c,p,x).valueOf()}function zp(c,p,x){return c<100&&c>=0?Date.UTC(c+400,p,x)-Rp:Date.UTC(c,p,x)}function N5(c){var p,x;if(c=it(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?zp:Bp,c){case"year":p=x(this.year(),0,1);break;case"quarter":p=x(this.year(),this.month()-this.month()%3,1);break;case"month":p=x(this.year(),this.month(),1);break;case"week":p=x(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":p=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":p=x(this.year(),this.month(),this.date());break;case"hour":p=this._d.valueOf(),p-=fi(p+(this._isUTC?0:this.utcOffset()*ci),cs);break;case"minute":p=this._d.valueOf(),p-=fi(p,ci);break;case"second":p=this._d.valueOf(),p-=fi(p,us);break}return this._d.setTime(p),r.updateOffset(this,!0),this}function R5(c){var p,x;if(c=it(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?zp:Bp,c){case"year":p=x(this.year()+1,0,1)-1;break;case"quarter":p=x(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":p=x(this.year(),this.month()+1,1)-1;break;case"week":p=x(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":p=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":p=x(this.year(),this.month(),this.date()+1)-1;break;case"hour":p=this._d.valueOf(),p+=cs-fi(p+(this._isUTC?0:this.utcOffset()*ci),cs)-1;break;case"minute":p=this._d.valueOf(),p+=ci-fi(p,ci)-1;break;case"second":p=this._d.valueOf(),p+=us-fi(p,us)-1;break}return this._d.setTime(p),r.updateOffset(this,!0),this}function B5(){return this._d.valueOf()-(this._offset||0)*6e4}function z5(){return Math.floor(this.valueOf()/1e3)}function F5(){return new Date(this.valueOf())}function H5(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function U5(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function W5(){return this.isValid()?this.toISOString():null}function Y5(){return C(this)}function V5(){return m({},b(this))}function G5(){return b(this).overflow}function q5(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr"),te("NN",0,0,"eraAbbr"),te("NNN",0,0,"eraAbbr"),te("NNNN",0,0,"eraName"),te("NNNNN",0,0,"eraNarrow"),te("y",["y",1],"yo","eraYear"),te("y",["yy",2],0,"eraYear"),te("y",["yyy",3],0,"eraYear"),te("y",["yyyy",4],0,"eraYear"),ce("N",ic),ce("NN",ic),ce("NNN",ic),ce("NNNN",a6),ce("NNNNN",o6),Be(["N","NN","NNN","NNNN","NNNNN"],function(c,p,x,S){var A=x._locale.erasParse(c,S,x._strict);A?b(x).era=A:b(x).invalidEra=c}),ce("y",hr),ce("yy",hr),ce("yyy",hr),ce("yyyy",hr),ce("yo",s6),Be(["y","yy","yyy","yyyy"],je),Be(["yo"],function(c,p,x,S){var A;x._locale._eraYearOrdinalRegex&&(A=c.match(x._locale._eraYearOrdinalRegex)),x._locale.eraYearOrdinalParse?p[je]=x._locale.eraYearOrdinalParse(c,A):p[je]=parseInt(c,10)});function K5(c,p){var x,S,A,N=this._eras||Kn("en")._eras;for(x=0,S=N.length;x=0)return N[S]}function Z5(c,p){var x=c.since<=c.until?1:-1;return p===void 0?r(c.since).year():r(c.since).year()+(p-c.offset)*x}function J5(){var c,p,x,S=this.localeData().eras();for(c=0,p=S.length;cN&&(p=N),p6.call(this,c,p,x,S,A))}function p6(c,p,x,S,A){var N=vp(c,p,x,S,A),K=pa(N.year,0,N.dayOfYear);return this.year(K.getUTCFullYear()),this.month(K.getUTCMonth()),this.date(K.getUTCDate()),this}te("Q",0,"Qo","quarter"),Ne("quarter","Q"),R("quarter",7),ce("Q",pt),Be("Q",function(c,p){p[Je]=(oe(c)-1)*3});function m6(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}te("D",["DD",2],"Do","date"),Ne("date","D"),R("date",9),ce("D",qe),ce("DD",qe,Ie),ce("Do",function(c,p){return c?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),Be(["D","DD"],Kt),Be("Do",function(c,p){p[Kt]=oe(c.match(qe)[0])});var Hp=Re("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear"),Ne("dayOfYear","DDD"),R("dayOfYear",4),ce("DDD",fr),ce("DDDD",Lt),Be(["DDD","DDDD"],function(c,p,x){x._dayOfYear=oe(c)});function y6(c){var p=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?p:this.add(c-p,"d")}te("m",["mm",2],0,"minute"),Ne("minute","m"),R("minute",14),ce("m",qe),ce("mm",qe,Ie),Be(["m","mm"],mt);var g6=Re("Minutes",!1);te("s",["ss",2],0,"second"),Ne("second","s"),R("second",15),ce("s",qe),ce("ss",qe,Ie),Be(["s","ss"],Gn);var v6=Re("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)}),te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),te(0,["SSS",3],0,"millisecond"),te(0,["SSSS",4],0,function(){return this.millisecond()*10}),te(0,["SSSSS",5],0,function(){return this.millisecond()*100}),te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ne("millisecond","ms"),R("millisecond",16),ce("S",fr,pt),ce("SS",fr,Ie),ce("SSS",fr,Lt);var gr,Up;for(gr="SSSS";gr.length<=9;gr+="S")ce(gr,hr);function x6(c,p){p[Rr]=oe(("0."+c)*1e3)}for(gr="S";gr.length<=9;gr+="S")Be(gr,x6);Up=Re("Milliseconds",!1),te("z",0,0,"zoneAbbr"),te("zz",0,0,"zoneName");function b6(){return this._isUTC?"UTC":""}function w6(){return this._isUTC?"Coordinated Universal Time":""}var re=j.prototype;re.add=h5,re.calendar=b5,re.clone=w5,re.diff=A5,re.endOf=R5,re.format=M5,re.from=$5,re.fromNow=I5,re.to=D5,re.toNow=L5,re.get=Ge,re.invalidAt=G5,re.isAfter=S5,re.isBefore=_5,re.isBetween=O5,re.isSame=k5,re.isSameOrAfter=C5,re.isSameOrBefore=P5,re.isValid=Y5,re.lang=Lp,re.locale=Dp,re.localeData=Np,re.max=Y3,re.min=W3,re.parsingFlags=V5,re.set=kt,re.startOf=N5,re.subtract=p5,re.toArray=H5,re.toObject=U5,re.toDate=F5,re.toISOString=T5,re.inspect=E5,typeof Symbol<"u"&&Symbol.for!=null&&(re[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),re.toJSON=W5,re.toString=j5,re.unix=z5,re.valueOf=B5,re.creationData=q5,re.eraName=J5,re.eraNarrow=Q5,re.eraAbbr=e6,re.eraYear=t6,re.year=gp,re.isLeapYear=Uw,re.weekYear=l6,re.isoWeekYear=u6,re.quarter=re.quarters=m6,re.month=mp,re.daysInMonth=zw,re.week=re.weeks=Kw,re.isoWeek=re.isoWeeks=Xw,re.weeksInYear=d6,re.weeksInWeekYear=h6,re.isoWeeksInYear=c6,re.isoWeeksInISOWeekYear=f6,re.date=Hp,re.day=re.days=u3,re.weekday=c3,re.isoWeekday=f3,re.dayOfYear=y6,re.hour=re.hours=v3,re.minute=re.minutes=g6,re.second=re.seconds=v6,re.millisecond=re.milliseconds=Up,re.utcOffset=e5,re.utc=n5,re.local=r5,re.parseZone=i5,re.hasAlignedHourOffset=a5,re.isDST=o5,re.isLocal=l5,re.isUtcOffset=u5,re.isUtc=Tp,re.isUTC=Tp,re.zoneAbbr=b6,re.zoneName=w6,re.dates=z("dates accessor is deprecated. Use date instead.",Hp),re.months=z("months accessor is deprecated. Use month instead",mp),re.years=z("years accessor is deprecated. Use year instead",gp),re.zone=z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",t5),re.isDSTShifted=z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",s5);function S6(c){return at(c*1e3)}function _6(){return at.apply(null,arguments).parseZone()}function Wp(c){return c}var ze=X.prototype;ze.calendar=Q,ze.longDateFormat=ve,ze.invalidDate=Ae,ze.ordinal=He,ze.preparse=Wp,ze.postformat=Wp,ze.relativeTime=ft,ze.pastFuture=en,ze.set=Y,ze.eras=K5,ze.erasParse=X5,ze.erasConvertYear=Z5,ze.erasAbbrRegex=r6,ze.erasNameRegex=n6,ze.erasNarrowRegex=i6,ze.months=Lw,ze.monthsShort=Nw,ze.monthsParse=Bw,ze.monthsRegex=Hw,ze.monthsShortRegex=Fw,ze.week=Yw,ze.firstDayOfYear=qw,ze.firstDayOfWeek=Gw,ze.weekdays=i3,ze.weekdaysMin=o3,ze.weekdaysShort=a3,ze.weekdaysParse=l3,ze.weekdaysRegex=d3,ze.weekdaysShortRegex=h3,ze.weekdaysMinRegex=p3,ze.isPM=y3,ze.meridiem=x3;function ds(c,p,x,S){var A=Kn(),N=g().set(S,p);return A[x](N,c)}function Yp(c,p,x){if(f(c)&&(p=c,c=void 0),c=c||"",p!=null)return ds(c,p,x,"month");var S,A=[];for(S=0;S<12;S++)A[S]=ds(c,S,x,"month");return A}function oc(c,p,x,S){typeof c=="boolean"?(f(p)&&(x=p,p=void 0),p=p||""):(p=c,x=p,c=!1,f(p)&&(x=p,p=void 0),p=p||"");var A=Kn(),N=c?A._week.dow:0,K,me=[];if(x!=null)return ds(p,(x+N)%7,S,"day");for(K=0;K<7;K++)me[K]=ds(p,(K+N)%7,S,"day");return me}function O6(c,p){return Yp(c,p,"months")}function k6(c,p){return Yp(c,p,"monthsShort")}function C6(c,p,x){return oc(c,p,x,"weekdays")}function P6(c,p,x){return oc(c,p,x,"weekdaysShort")}function A6(c,p,x){return oc(c,p,x,"weekdaysMin")}yr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var p=c%10,x=oe(c%100/10)===1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th";return c+x}}),r.lang=z("moment.lang is deprecated. Use moment.locale instead.",yr),r.langData=z("moment.langData is deprecated. Use moment.localeData instead.",Kn);var Xn=Math.abs;function j6(){var c=this._data;return this._milliseconds=Xn(this._milliseconds),this._days=Xn(this._days),this._months=Xn(this._months),c.milliseconds=Xn(c.milliseconds),c.seconds=Xn(c.seconds),c.minutes=Xn(c.minutes),c.hours=Xn(c.hours),c.months=Xn(c.months),c.years=Xn(c.years),this}function Vp(c,p,x,S){var A=Pn(p,x);return c._milliseconds+=S*A._milliseconds,c._days+=S*A._days,c._months+=S*A._months,c._bubble()}function T6(c,p){return Vp(this,c,p,1)}function E6(c,p){return Vp(this,c,p,-1)}function Gp(c){return c<0?Math.floor(c):Math.ceil(c)}function M6(){var c=this._milliseconds,p=this._days,x=this._months,S=this._data,A,N,K,me,Ce;return c>=0&&p>=0&&x>=0||c<=0&&p<=0&&x<=0||(c+=Gp(sc(x)+p)*864e5,p=0,x=0),S.milliseconds=c%1e3,A=se(c/1e3),S.seconds=A%60,N=se(A/60),S.minutes=N%60,K=se(N/60),S.hours=K%24,p+=se(K/24),Ce=se(qp(p)),x+=Ce,p-=Gp(sc(Ce)),me=se(x/12),x%=12,S.days=p,S.months=x,S.years=me,this}function qp(c){return c*4800/146097}function sc(c){return c*146097/4800}function $6(c){if(!this.isValid())return NaN;var p,x,S=this._milliseconds;if(c=it(c),c==="month"||c==="quarter"||c==="year")switch(p=this._days+S/864e5,x=this._months+qp(p),c){case"month":return x;case"quarter":return x/3;case"year":return x/12}else switch(p=this._days+Math.round(sc(this._months)),c){case"week":return p/7+S/6048e5;case"day":return p+S/864e5;case"hour":return p*24+S/36e5;case"minute":return p*1440+S/6e4;case"second":return p*86400+S/1e3;case"millisecond":return Math.floor(p*864e5)+S;default:throw new Error("Unknown unit "+c)}}function I6(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+oe(this._months/12)*31536e6:NaN}function Zn(c){return function(){return this.as(c)}}var D6=Zn("ms"),L6=Zn("s"),N6=Zn("m"),R6=Zn("h"),B6=Zn("d"),z6=Zn("w"),F6=Zn("M"),H6=Zn("Q"),U6=Zn("y");function W6(){return Pn(this)}function Y6(c){return c=it(c),this.isValid()?this[c+"s"]():NaN}function zr(c){return function(){return this.isValid()?this._data[c]:NaN}}var V6=zr("milliseconds"),G6=zr("seconds"),q6=zr("minutes"),K6=zr("hours"),X6=zr("days"),Z6=zr("months"),J6=zr("years");function Q6(){return se(this.days()/7)}var Jn=Math.round,di={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function e4(c,p,x,S,A){return A.relativeTime(p||1,!!x,c,S)}function t4(c,p,x,S){var A=Pn(c).abs(),N=Jn(A.as("s")),K=Jn(A.as("m")),me=Jn(A.as("h")),Ce=Jn(A.as("d")),Ke=Jn(A.as("M")),Ft=Jn(A.as("w")),Qn=Jn(A.as("y")),vr=N<=x.ss&&["s",N]||N0,vr[4]=S,e4.apply(null,vr)}function n4(c){return c===void 0?Jn:typeof c=="function"?(Jn=c,!0):!1}function r4(c,p){return di[c]===void 0?!1:p===void 0?di[c]:(di[c]=p,c==="s"&&(di.ss=p-1),!0)}function i4(c,p){if(!this.isValid())return this.localeData().invalidDate();var x=!1,S=di,A,N;return typeof c=="object"&&(p=c,c=!1),typeof c=="boolean"&&(x=c),typeof p=="object"&&(S=Object.assign({},di,p),p.s!=null&&p.ss==null&&(S.ss=p.s-1)),A=this.localeData(),N=t4(this,!x,S,A),x&&(N=A.pastFuture(+this,N)),A.postformat(N)}var lc=Math.abs;function hi(c){return(c>0)-(c<0)||+c}function hs(){if(!this.isValid())return this.localeData().invalidDate();var c=lc(this._milliseconds)/1e3,p=lc(this._days),x=lc(this._months),S,A,N,K,me=this.asSeconds(),Ce,Ke,Ft,Qn;return me?(S=se(c/60),A=se(S/60),c%=60,S%=60,N=se(x/12),x%=12,K=c?c.toFixed(3).replace(/\.?0+$/,""):"",Ce=me<0?"-":"",Ke=hi(this._months)!==hi(me)?"-":"",Ft=hi(this._days)!==hi(me)?"-":"",Qn=hi(this._milliseconds)!==hi(me)?"-":"",Ce+"P"+(N?Ke+N+"Y":"")+(x?Ke+x+"M":"")+(p?Ft+p+"D":"")+(A||S||c?"T":"")+(A?Qn+A+"H":"")+(S?Qn+S+"M":"")+(c?Qn+K+"S":"")):"P0D"}var De=os.prototype;De.isValid=X3,De.abs=j6,De.add=T6,De.subtract=E6,De.as=$6,De.asMilliseconds=D6,De.asSeconds=L6,De.asMinutes=N6,De.asHours=R6,De.asDays=B6,De.asWeeks=z6,De.asMonths=F6,De.asQuarters=H6,De.asYears=U6,De.valueOf=I6,De._bubble=M6,De.clone=W6,De.get=Y6,De.milliseconds=V6,De.seconds=G6,De.minutes=q6,De.hours=K6,De.days=X6,De.weeks=Q6,De.months=Z6,De.years=J6,De.humanize=i4,De.toISOString=hs,De.toString=hs,De.toJSON=hs,De.locale=Dp,De.localeData=Np,De.toIsoString=z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",hs),De.lang=Lp,te("X",0,0,"unix"),te("x",0,0,"valueOf"),ce("x",pr),ce("X",Hu),Be("X",function(c,p,x){x._d=new Date(parseFloat(c)*1e3)}),Be("x",function(c,p,x){x._d=new Date(oe(c))});//! moment.js -return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.unix=S6,r.months=O6,r.isDate=d,r.locale=yr,r.invalid=k,r.duration=Pn,r.isMoment=E,r.weekdays=C6,r.parseZone=_6,r.localeData=Kn,r.isDuration=ss,r.monthsShort=k6,r.weekdaysMin=A6,r.defineLocale=Ku,r.updateLocale=_3,r.locales=O3,r.weekdaysShort=P6,r.normalizeUnits=it,r.relativeTimeRounding=n4,r.relativeTimeThreshold=r4,r.calendarFormat=x5,r.prototype=re,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})})(bv);var E9=bv.exports;const wv=st(E9),M9=({text:e,type:t,sourceLink:n,date:r})=>y.jsxs(F,{direction:"column",children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(F,{align:"center",direction:"row",children:y.jsx(ta,{type:t})}),n&&y.jsx(Ei,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:y.jsx(Tr,{})})]}),y.jsx(U9,{"data-testid":"episode-description",children:e}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(F,{align:"center",direction:"row",justify:"flex-start",children:!!r&&y.jsx(ti,{children:wv.unix(r).fromNow()})}),n&&y.jsxs(Ei,{href:n,onClick:i=>i.stopPropagation(),target:"_blank",children:[y.jsx(xv,{}),y.jsx($9,{children:n})]})]})]}),$9=H(ht)` +`+new Error().stack),x=!1}return p.apply(this,arguments)},p)}var M={};function D(c,p){r.deprecationHandler!=null&&r.deprecationHandler(c,p),M[c]||(I(p),M[c]=!0)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null;function W(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function Y(c){var p,x;for(x in c)s(c,x)&&(p=c[x],W(p)?this[x]=p:this["_"+x]=p);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function V(c,p){var x=m({},c),S;for(S in p)s(p,S)&&(o(c[S])&&o(p[S])?(x[S]={},m(x[S],c[S]),m(x[S],p[S])):p[S]!=null?x[S]=p[S]:delete x[S]);for(S in c)s(c,S)&&!s(p,S)&&o(c[S])&&(x[S]=m({},x[S]));return x}function X(c){c!=null&&this.set(c)}var Z;Object.keys?Z=Object.keys:Z=function(c){var p,x=[];for(p in c)s(c,p)&&x.push(p);return x};var G={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Q(c,p,x){var S=this._calendar[c]||this._calendar.sameElse;return W(S)?S.call(p,x):S}function T(c,p,x){var S=""+Math.abs(c),A=p-S.length,N=c>=0;return(N?x?"+":"":"-")+Math.pow(10,Math.max(0,A)).toString().substr(1)+S}var pe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ue=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$={},_e={};function te(c,p,x,S){var A=S;typeof S=="string"&&(A=function(){return this[S]()}),c&&(_e[c]=A),p&&(_e[p[0]]=function(){return T(A.apply(this,arguments),p[1],p[2])}),x&&(_e[x]=function(){return this.localeData().ordinal(A.apply(this,arguments),c)})}function ge(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function Ye(c){var p=c.match(pe),x,S;for(x=0,S=p.length;x=0&&ue.test(c);)c=c.replace(ue,S),ue.lastIndex=0,x-=1;return c}var de={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ve(c){var p=this._longDateFormat[c],x=this._longDateFormat[c.toUpperCase()];return p||!x?p:(this._longDateFormat[c]=x.match(pe).map(function(S){return S==="MMMM"||S==="MM"||S==="DD"||S==="dddd"?S.slice(1):S}).join(""),this._longDateFormat[c])}var ee="Invalid date";function Ae(){return this._invalidDate}var he="%d",xe=/\d{1,2}/;function He(c){return this._ordinal.replace("%d",c)}var rt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ft(c,p,x,S){var A=this._relativeTime[x];return W(A)?A(c,p,x,S):A.replace(/%d/i,c)}function en(c,p){var x=this._relativeTime[c>0?"future":"past"];return W(x)?x(p):x.replace(/%s/i,p)}var Ue={};function Ne(c,p){var x=c.toLowerCase();Ue[x]=Ue[x+"s"]=Ue[p]=c}function it(c){return typeof c=="string"?Ue[c]||Ue[c.toLowerCase()]:void 0}function tn(c){var p={},x,S;for(S in c)s(c,S)&&(x=it(S),x&&(p[x]=c[S]));return p}var Cn={};function R(c,p){Cn[c]=p}function q(c){var p=[],x;for(x in c)s(c,x)&&p.push({unit:x,priority:Cn[x]});return p.sort(function(S,A){return S.priority-A.priority}),p}function ne(c){return c%4===0&&c%100!==0||c%400===0}function se(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function oe(c){var p=+c,x=0;return p!==0&&isFinite(p)&&(x=se(p)),x}function Re(c,p){return function(x){return x!=null?($e(this,c,x),r.updateOffset(this,p),this):ke(this,c)}}function ke(c,p){return c.isValid()?c._d["get"+(c._isUTC?"UTC":"")+p]():NaN}function $e(c,p,x){c.isValid()&&!isNaN(x)&&(p==="FullYear"&&ne(c.year())&&c.month()===1&&c.date()===29?(x=oe(x),c._d["set"+(c._isUTC?"UTC":"")+p](x,c.month(),rs(x,c.month()))):c._d["set"+(c._isUTC?"UTC":"")+p](x))}function Ge(c){return c=it(c),W(this[c])?this[c]():this}function kt(c,p){if(typeof c=="object"){c=tn(c);var x=q(c),S,A=x.length;for(S=0;S68?1900:2e3)};var vp=Re("FullYear",!0);function Ww(){return ne(this.year())}function Yw(c,p,x,S,A,N,K){var me;return c<100&&c>=0?(me=new Date(c+400,p,x,S,A,N,K),isFinite(me.getFullYear())&&me.setFullYear(c)):me=new Date(c,p,x,S,A,N,K),me}function ma(c){var p,x;return c<100&&c>=0?(x=Array.prototype.slice.call(arguments),x[0]=c+400,p=new Date(Date.UTC.apply(null,x)),isFinite(p.getUTCFullYear())&&p.setUTCFullYear(c)):p=new Date(Date.UTC.apply(null,arguments)),p}function is(c,p,x){var S=7+p-x,A=(7+ma(c,0,S).getUTCDay()-p)%7;return-A+S-1}function xp(c,p,x,S,A){var N=(7+x-S)%7,K=is(c,S,A),me=1+7*(p-1)+N+K,Ce,Ke;return me<=0?(Ce=c-1,Ke=pa(Ce)+me):me>pa(c)?(Ce=c+1,Ke=me-pa(c)):(Ce=c,Ke=me),{year:Ce,dayOfYear:Ke}}function ya(c,p,x){var S=is(c.year(),p,x),A=Math.floor((c.dayOfYear()-S-1)/7)+1,N,K;return A<1?(K=c.year()-1,N=A+qn(K,p,x)):A>qn(c.year(),p,x)?(N=A-qn(c.year(),p,x),K=c.year()+1):(K=c.year(),N=A),{week:N,year:K}}function qn(c,p,x){var S=is(c,p,x),A=is(c+1,p,x);return(pa(c)-S+A)/7}te("w",["ww",2],"wo","week"),te("W",["WW",2],"Wo","isoWeek"),Ne("week","w"),Ne("isoWeek","W"),R("week",5),R("isoWeek",5),ce("w",qe),ce("ww",qe,Ie),ce("W",qe),ce("WW",qe,Ie),Vn(["w","ww","W","WW"],function(c,p,x,S){p[S.substr(0,1)]=oe(c)});function Vw(c){return ya(c,this._week.dow,this._week.doy).week}var Gw={dow:0,doy:6};function qw(){return this._week.dow}function Kw(){return this._week.doy}function Xw(c){var p=this.localeData().week(this);return c==null?p:this.add((c-p)*7,"d")}function Zw(c){var p=ya(this,1,4).week;return c==null?p:this.add((c-p)*7,"d")}te("d",0,"do","day"),te("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),te("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),te("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),te("e",0,0,"weekday"),te("E",0,0,"isoWeekday"),Ne("day","d"),Ne("weekday","e"),Ne("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),ce("d",qe),ce("e",qe),ce("E",qe),ce("dd",function(c,p){return p.weekdaysMinRegex(c)}),ce("ddd",function(c,p){return p.weekdaysShortRegex(c)}),ce("dddd",function(c,p){return p.weekdaysRegex(c)}),Vn(["dd","ddd","dddd"],function(c,p,x,S){var A=x._locale.weekdaysParse(c,S,x._strict);A!=null?p.d=A:b(x).invalidWeekday=c}),Vn(["d","e","E"],function(c,p,x,S){p[S]=oe(c)});function Jw(c,p){return typeof c!="string"?c:isNaN(c)?(c=p.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function Qw(c,p){return typeof c=="string"?p.weekdaysParse(c)%7||7:isNaN(c)?null:c}function Gu(c,p){return c.slice(p,7).concat(c.slice(0,p))}var e3="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),t3="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),n3=Rr,r3=Rr,i3=Rr;function a3(c,p){var x=a(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(p)?"format":"standalone"];return c===!0?Gu(x,this._week.dow):c?x[c.day()]:x}function o3(c){return c===!0?Gu(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function s3(c){return c===!0?Gu(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function l3(c,p,x){var S,A,N,K=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],S=0;S<7;++S)N=g([2e3,1]).day(S),this._minWeekdaysParse[S]=this.weekdaysMin(N,"").toLocaleLowerCase(),this._shortWeekdaysParse[S]=this.weekdaysShort(N,"").toLocaleLowerCase(),this._weekdaysParse[S]=this.weekdays(N,"").toLocaleLowerCase();return x?p==="dddd"?(A=yt.call(this._weekdaysParse,K),A!==-1?A:null):p==="ddd"?(A=yt.call(this._shortWeekdaysParse,K),A!==-1?A:null):(A=yt.call(this._minWeekdaysParse,K),A!==-1?A:null):p==="dddd"?(A=yt.call(this._weekdaysParse,K),A!==-1||(A=yt.call(this._shortWeekdaysParse,K),A!==-1)?A:(A=yt.call(this._minWeekdaysParse,K),A!==-1?A:null)):p==="ddd"?(A=yt.call(this._shortWeekdaysParse,K),A!==-1||(A=yt.call(this._weekdaysParse,K),A!==-1)?A:(A=yt.call(this._minWeekdaysParse,K),A!==-1?A:null)):(A=yt.call(this._minWeekdaysParse,K),A!==-1||(A=yt.call(this._weekdaysParse,K),A!==-1)?A:(A=yt.call(this._shortWeekdaysParse,K),A!==-1?A:null))}function u3(c,p,x){var S,A,N;if(this._weekdaysParseExact)return l3.call(this,c,p,x);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),S=0;S<7;S++){if(A=g([2e3,1]).day(S),x&&!this._fullWeekdaysParse[S]&&(this._fullWeekdaysParse[S]=new RegExp("^"+this.weekdays(A,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[S]=new RegExp("^"+this.weekdaysShort(A,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[S]=new RegExp("^"+this.weekdaysMin(A,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[S]||(N="^"+this.weekdays(A,"")+"|^"+this.weekdaysShort(A,"")+"|^"+this.weekdaysMin(A,""),this._weekdaysParse[S]=new RegExp(N.replace(".",""),"i")),x&&p==="dddd"&&this._fullWeekdaysParse[S].test(c))return S;if(x&&p==="ddd"&&this._shortWeekdaysParse[S].test(c))return S;if(x&&p==="dd"&&this._minWeekdaysParse[S].test(c))return S;if(!x&&this._weekdaysParse[S].test(c))return S}}function c3(c){if(!this.isValid())return c!=null?this:NaN;var p=this._isUTC?this._d.getUTCDay():this._d.getDay();return c!=null?(c=Jw(c,this.localeData()),this.add(c-p,"d")):p}function f3(c){if(!this.isValid())return c!=null?this:NaN;var p=(this.day()+7-this.localeData()._week.dow)%7;return c==null?p:this.add(c-p,"d")}function d3(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var p=Qw(c,this.localeData());return this.day(this.day()%7?p:p-7)}else return this.day()||7}function h3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qu.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=n3),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function p3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qu.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=r3),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function m3(c){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||qu.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=i3),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qu(){function c(Ft,Qn){return Qn.length-Ft.length}var p=[],x=[],S=[],A=[],N,K,me,Ce,Ke;for(N=0;N<7;N++)K=g([2e3,1]).day(N),me=Et(this.weekdaysMin(K,"")),Ce=Et(this.weekdaysShort(K,"")),Ke=Et(this.weekdays(K,"")),p.push(me),x.push(Ce),S.push(Ke),A.push(me),A.push(Ce),A.push(Ke);p.sort(c),x.sort(c),S.sort(c),A.sort(c),this._weekdaysRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+S.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+x.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+p.join("|")+")","i")}function Ku(){return this.hours()%12||12}function y3(){return this.hours()||24}te("H",["HH",2],0,"hour"),te("h",["hh",2],0,Ku),te("k",["kk",2],0,y3),te("hmm",0,0,function(){return""+Ku.apply(this)+T(this.minutes(),2)}),te("hmmss",0,0,function(){return""+Ku.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),te("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),te("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)});function wp(c,p){te(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),p)})}wp("a",!0),wp("A",!1),Ne("hour","h"),R("hour",13);function Sp(c,p){return p._meridiemParse}ce("a",Sp),ce("A",Sp),ce("H",qe),ce("h",qe),ce("k",qe),ce("HH",qe,Ie),ce("hh",qe,Ie),ce("kk",qe,Ie),ce("hmm",fa),ce("hmmss",si),ce("Hmm",fa),ce("Hmmss",si),Be(["H","HH"],lt),Be(["k","kk"],function(c,p,x){var S=oe(c);p[lt]=S===24?0:S}),Be(["a","A"],function(c,p,x){x._isPm=x._locale.isPM(c),x._meridiem=c}),Be(["h","hh"],function(c,p,x){p[lt]=oe(c),b(x).bigHour=!0}),Be("hmm",function(c,p,x){var S=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S)),b(x).bigHour=!0}),Be("hmmss",function(c,p,x){var S=c.length-4,A=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S,2)),p[Gn]=oe(c.substr(A)),b(x).bigHour=!0}),Be("Hmm",function(c,p,x){var S=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S))}),Be("Hmmss",function(c,p,x){var S=c.length-4,A=c.length-2;p[lt]=oe(c.substr(0,S)),p[mt]=oe(c.substr(S,2)),p[Gn]=oe(c.substr(A))});function g3(c){return(c+"").toLowerCase().charAt(0)==="p"}var v3=/[ap]\.?m?\.?/i,x3=Re("Hours",!0);function b3(c,p,x){return c>11?x?"pm":"PM":x?"am":"AM"}var _p={calendar:G,longDateFormat:de,invalidDate:ee,ordinal:he,dayOfMonthOrdinalParse:xe,relativeTime:rt,months:Iw,monthsShort:hp,week:Gw,weekdays:e3,weekdaysMin:t3,weekdaysShort:bp,meridiemParse:v3},ut={},ga={},va;function w3(c,p){var x,S=Math.min(c.length,p.length);for(x=0;x0;){if(A=as(N.slice(0,x).join("-")),A)return A;if(S&&S.length>=x&&w3(N,S)>=x-1)break;x--}p++}return va}function _3(c){return c.match("^[^/\\\\]*$")!=null}function as(c){var p=null,x;if(ut[c]===void 0&&e&&e.exports&&_3(c))try{p=va._abbr,x=d4,x("./locale/"+c),yr(p)}catch{ut[c]=null}return ut[c]}function yr(c,p){var x;return c&&(u(p)?x=Kn(c):x=Xu(c,p),x?va=x:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),va._abbr}function Xu(c,p){if(p!==null){var x,S=_p;if(p.abbr=c,ut[c]!=null)D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),S=ut[c]._config;else if(p.parentLocale!=null)if(ut[p.parentLocale]!=null)S=ut[p.parentLocale]._config;else if(x=as(p.parentLocale),x!=null)S=x._config;else return ga[p.parentLocale]||(ga[p.parentLocale]=[]),ga[p.parentLocale].push({name:c,config:p}),null;return ut[c]=new X(V(S,p)),ga[c]&&ga[c].forEach(function(A){Xu(A.name,A.config)}),yr(c),ut[c]}else return delete ut[c],null}function O3(c,p){if(p!=null){var x,S,A=_p;ut[c]!=null&&ut[c].parentLocale!=null?ut[c].set(V(ut[c]._config,p)):(S=as(c),S!=null&&(A=S._config),p=V(A,p),S==null&&(p.abbr=c),x=new X(p),x.parentLocale=ut[c],ut[c]=x),yr(c)}else ut[c]!=null&&(ut[c].parentLocale!=null?(ut[c]=ut[c].parentLocale,c===yr()&&yr(c)):ut[c]!=null&&delete ut[c]);return ut[c]}function Kn(c){var p;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return va;if(!a(c)){if(p=as(c),p)return p;c=[c]}return S3(c)}function k3(){return Z(ut)}function Zu(c){var p,x=c._a;return x&&b(c).overflow===-2&&(p=x[Je]<0||x[Je]>11?Je:x[Kt]<1||x[Kt]>rs(x[je],x[Je])?Kt:x[lt]<0||x[lt]>24||x[lt]===24&&(x[mt]!==0||x[Gn]!==0||x[Br]!==0)?lt:x[mt]<0||x[mt]>59?mt:x[Gn]<0||x[Gn]>59?Gn:x[Br]<0||x[Br]>999?Br:-1,b(c)._overflowDayOfYear&&(pKt)&&(p=Kt),b(c)._overflowWeeks&&p===-1&&(p=Ew),b(c)._overflowWeekday&&p===-1&&(p=Mw),b(c).overflow=p),c}var C3=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,P3=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,A3=/Z|[+-]\d\d(?::?\d\d)?/,os=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ju=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],j3=/^\/?Date\((-?\d+)/i,T3=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,E3={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function kp(c){var p,x,S=c._i,A=C3.exec(S)||P3.exec(S),N,K,me,Ce,Ke=os.length,Ft=Ju.length;if(A){for(b(c).iso=!0,p=0,x=Ke;ppa(K)||c._dayOfYear===0)&&(b(c)._overflowDayOfYear=!0),x=ma(K,0,c._dayOfYear),c._a[Je]=x.getUTCMonth(),c._a[Kt]=x.getUTCDate()),p=0;p<3&&c._a[p]==null;++p)c._a[p]=S[p]=A[p];for(;p<7;p++)c._a[p]=S[p]=c._a[p]==null?p===2?1:0:c._a[p];c._a[lt]===24&&c._a[mt]===0&&c._a[Gn]===0&&c._a[Br]===0&&(c._nextDay=!0,c._a[lt]=0),c._d=(c._useUTC?ma:Yw).apply(null,S),N=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[lt]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==N&&(b(c).weekdayMismatch=!0)}}function B3(c){var p,x,S,A,N,K,me,Ce,Ke;p=c._w,p.GG!=null||p.W!=null||p.E!=null?(N=1,K=4,x=ci(p.GG,c._a[je],ya(at(),1,4).year),S=ci(p.W,1),A=ci(p.E,1),(A<1||A>7)&&(Ce=!0)):(N=c._locale._week.dow,K=c._locale._week.doy,Ke=ya(at(),N,K),x=ci(p.gg,c._a[je],Ke.year),S=ci(p.w,Ke.week),p.d!=null?(A=p.d,(A<0||A>6)&&(Ce=!0)):p.e!=null?(A=p.e+N,(p.e<0||p.e>6)&&(Ce=!0)):A=N),S<1||S>qn(x,N,K)?b(c)._overflowWeeks=!0:Ce!=null?b(c)._overflowWeekday=!0:(me=xp(x,S,A,N,K),c._a[je]=me.year,c._dayOfYear=me.dayOfYear)}r.ISO_8601=function(){},r.RFC_2822=function(){};function ec(c){if(c._f===r.ISO_8601){kp(c);return}if(c._f===r.RFC_2822){Cp(c);return}c._a=[],b(c).empty=!0;var p=""+c._i,x,S,A,N,K,me=p.length,Ce=0,Ke,Ft;for(A=ae(c._f,c._locale).match(pe)||[],Ft=A.length,x=0;x0&&b(c).unusedInput.push(K),p=p.slice(p.indexOf(S)+S.length),Ce+=S.length),_e[N]?(S?b(c).empty=!1:b(c).unusedTokens.push(N),Vu(N,S,c)):c._strict&&!S&&b(c).unusedTokens.push(N);b(c).charsLeftOver=me-Ce,p.length>0&&b(c).unusedInput.push(p),c._a[lt]<=12&&b(c).bigHour===!0&&c._a[lt]>0&&(b(c).bigHour=void 0),b(c).parsedDateParts=c._a.slice(0),b(c).meridiem=c._meridiem,c._a[lt]=z3(c._locale,c._a[lt],c._meridiem),Ke=b(c).era,Ke!==null&&(c._a[je]=c._locale.erasConvertYear(Ke,c._a[je])),Qu(c),Zu(c)}function z3(c,p,x){var S;return x==null?p:c.meridiemHour!=null?c.meridiemHour(p,x):(c.isPM!=null&&(S=c.isPM(x),S&&p<12&&(p+=12),!S&&p===12&&(p=0)),p)}function F3(c){var p,x,S,A,N,K,me=!1,Ce=c._f.length;if(Ce===0){b(c).invalidFormat=!0,c._d=new Date(NaN);return}for(A=0;Athis?this:c:k()});function jp(c,p){var x,S;if(p.length===1&&a(p[0])&&(p=p[0]),!p.length)return at();for(x=p[0],S=1;Sthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function l5(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},p;return w(c,this),c=Pp(c),c._a?(p=c._isUTC?g(c._a):at(c._a),this._isDSTShifted=this.isValid()&&Q3(c._a,p.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function u5(){return this.isValid()?!this._isUTC:!1}function c5(){return this.isValid()?this._isUTC:!1}function Ep(){return this.isValid()?this._isUTC&&this._offset===0:!1}var f5=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,d5=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pn(c,p){var x=c,S=null,A,N,K;return ls(c)?x={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(x={},p?x[p]=+c:x.milliseconds=+c):(S=f5.exec(c))?(A=S[1]==="-"?-1:1,x={y:0,d:oe(S[Kt])*A,h:oe(S[lt])*A,m:oe(S[mt])*A,s:oe(S[Gn])*A,ms:oe(tc(S[Br]*1e3))*A}):(S=d5.exec(c))?(A=S[1]==="-"?-1:1,x={y:zr(S[2],A),M:zr(S[3],A),w:zr(S[4],A),d:zr(S[5],A),h:zr(S[6],A),m:zr(S[7],A),s:zr(S[8],A)}):x==null?x={}:typeof x=="object"&&("from"in x||"to"in x)&&(K=h5(at(x.from),at(x.to)),x={},x.ms=K.milliseconds,x.M=K.months),N=new ss(x),ls(c)&&s(c,"_locale")&&(N._locale=c._locale),ls(c)&&s(c,"_isValid")&&(N._isValid=c._isValid),N}Pn.fn=ss.prototype,Pn.invalid=J3;function zr(c,p){var x=c&&parseFloat(c.replace(",","."));return(isNaN(x)?0:x)*p}function Mp(c,p){var x={};return x.months=p.month()-c.month()+(p.year()-c.year())*12,c.clone().add(x.months,"M").isAfter(p)&&--x.months,x.milliseconds=+p-+c.clone().add(x.months,"M"),x}function h5(c,p){var x;return c.isValid()&&p.isValid()?(p=rc(p,c),c.isBefore(p)?x=Mp(c,p):(x=Mp(p,c),x.milliseconds=-x.milliseconds,x.months=-x.months),x):{milliseconds:0,months:0}}function $p(c,p){return function(x,S){var A,N;return S!==null&&!isNaN(+S)&&(D(p,"moment()."+p+"(period, number) is deprecated. Please use moment()."+p+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),N=x,x=S,S=N),A=Pn(x,S),Ip(this,A,c),this}}function Ip(c,p,x,S){var A=p._milliseconds,N=tc(p._days),K=tc(p._months);c.isValid()&&(S=S??!0,K&&mp(c,ke(c,"Month")+K*x),N&&$e(c,"Date",ke(c,"Date")+N*x),A&&c._d.setTime(c._d.valueOf()+A*x),S&&r.updateOffset(c,N||K))}var p5=$p(1,"add"),m5=$p(-1,"subtract");function Dp(c){return typeof c=="string"||c instanceof String}function y5(c){return E(c)||d(c)||Dp(c)||f(c)||v5(c)||g5(c)||c===null||c===void 0}function g5(c){var p=o(c)&&!l(c),x=!1,S=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],A,N,K=S.length;for(A=0;Ax.valueOf():x.valueOf()9999?Me(x,p?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):W(Date.prototype.toISOString)?p?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Me(x,"Z")):Me(x,p?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function M5(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",p="",x,S,A,N;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",p="Z"),x="["+c+'("]',S=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",A="-MM-DD[T]HH:mm:ss.SSS",N=p+'[")]',this.format(x+S+A+N)}function $5(c){c||(c=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var p=Me(this,c);return this.localeData().postformat(p)}function I5(c,p){return this.isValid()&&(E(c)&&c.isValid()||at(c).isValid())?Pn({to:this,from:c}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function D5(c){return this.from(at(),c)}function L5(c,p){return this.isValid()&&(E(c)&&c.isValid()||at(c).isValid())?Pn({from:this,to:c}).locale(this.locale()).humanize(!p):this.localeData().invalidDate()}function N5(c){return this.to(at(),c)}function Lp(c){var p;return c===void 0?this._locale._abbr:(p=Kn(c),p!=null&&(this._locale=p),this)}var Np=z("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Rp(){return this._locale}var cs=1e3,fi=60*cs,fs=60*fi,Bp=(365*400+97)*24*fs;function di(c,p){return(c%p+p)%p}function zp(c,p,x){return c<100&&c>=0?new Date(c+400,p,x)-Bp:new Date(c,p,x).valueOf()}function Fp(c,p,x){return c<100&&c>=0?Date.UTC(c+400,p,x)-Bp:Date.UTC(c,p,x)}function R5(c){var p,x;if(c=it(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?Fp:zp,c){case"year":p=x(this.year(),0,1);break;case"quarter":p=x(this.year(),this.month()-this.month()%3,1);break;case"month":p=x(this.year(),this.month(),1);break;case"week":p=x(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":p=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":p=x(this.year(),this.month(),this.date());break;case"hour":p=this._d.valueOf(),p-=di(p+(this._isUTC?0:this.utcOffset()*fi),fs);break;case"minute":p=this._d.valueOf(),p-=di(p,fi);break;case"second":p=this._d.valueOf(),p-=di(p,cs);break}return this._d.setTime(p),r.updateOffset(this,!0),this}function B5(c){var p,x;if(c=it(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(x=this._isUTC?Fp:zp,c){case"year":p=x(this.year()+1,0,1)-1;break;case"quarter":p=x(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":p=x(this.year(),this.month()+1,1)-1;break;case"week":p=x(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":p=x(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":p=x(this.year(),this.month(),this.date()+1)-1;break;case"hour":p=this._d.valueOf(),p+=fs-di(p+(this._isUTC?0:this.utcOffset()*fi),fs)-1;break;case"minute":p=this._d.valueOf(),p+=fi-di(p,fi)-1;break;case"second":p=this._d.valueOf(),p+=cs-di(p,cs)-1;break}return this._d.setTime(p),r.updateOffset(this,!0),this}function z5(){return this._d.valueOf()-(this._offset||0)*6e4}function F5(){return Math.floor(this.valueOf()/1e3)}function H5(){return new Date(this.valueOf())}function U5(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function W5(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function Y5(){return this.isValid()?this.toISOString():null}function V5(){return C(this)}function G5(){return m({},b(this))}function q5(){return b(this).overflow}function K5(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}te("N",0,0,"eraAbbr"),te("NN",0,0,"eraAbbr"),te("NNN",0,0,"eraAbbr"),te("NNNN",0,0,"eraName"),te("NNNNN",0,0,"eraNarrow"),te("y",["y",1],"yo","eraYear"),te("y",["yy",2],0,"eraYear"),te("y",["yyy",3],0,"eraYear"),te("y",["yyyy",4],0,"eraYear"),ce("N",ac),ce("NN",ac),ce("NNN",ac),ce("NNNN",o6),ce("NNNNN",s6),Be(["N","NN","NNN","NNNN","NNNNN"],function(c,p,x,S){var A=x._locale.erasParse(c,S,x._strict);A?b(x).era=A:b(x).invalidEra=c}),ce("y",hr),ce("yy",hr),ce("yyy",hr),ce("yyyy",hr),ce("yo",l6),Be(["y","yy","yyy","yyyy"],je),Be(["yo"],function(c,p,x,S){var A;x._locale._eraYearOrdinalRegex&&(A=c.match(x._locale._eraYearOrdinalRegex)),x._locale.eraYearOrdinalParse?p[je]=x._locale.eraYearOrdinalParse(c,A):p[je]=parseInt(c,10)});function X5(c,p){var x,S,A,N=this._eras||Kn("en")._eras;for(x=0,S=N.length;x=0)return N[S]}function J5(c,p){var x=c.since<=c.until?1:-1;return p===void 0?r(c.since).year():r(c.since).year()+(p-c.offset)*x}function Q5(){var c,p,x,S=this.localeData().eras();for(c=0,p=S.length;cN&&(p=N),m6.call(this,c,p,x,S,A))}function m6(c,p,x,S,A){var N=xp(c,p,x,S,A),K=ma(N.year,0,N.dayOfYear);return this.year(K.getUTCFullYear()),this.month(K.getUTCMonth()),this.date(K.getUTCDate()),this}te("Q",0,"Qo","quarter"),Ne("quarter","Q"),R("quarter",7),ce("Q",pt),Be("Q",function(c,p){p[Je]=(oe(c)-1)*3});function y6(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}te("D",["DD",2],"Do","date"),Ne("date","D"),R("date",9),ce("D",qe),ce("DD",qe,Ie),ce("Do",function(c,p){return c?p._dayOfMonthOrdinalParse||p._ordinalParse:p._dayOfMonthOrdinalParseLenient}),Be(["D","DD"],Kt),Be("Do",function(c,p){p[Kt]=oe(c.match(qe)[0])});var Up=Re("Date",!0);te("DDD",["DDDD",3],"DDDo","dayOfYear"),Ne("dayOfYear","DDD"),R("dayOfYear",4),ce("DDD",fr),ce("DDDD",Lt),Be(["DDD","DDDD"],function(c,p,x){x._dayOfYear=oe(c)});function g6(c){var p=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?p:this.add(c-p,"d")}te("m",["mm",2],0,"minute"),Ne("minute","m"),R("minute",14),ce("m",qe),ce("mm",qe,Ie),Be(["m","mm"],mt);var v6=Re("Minutes",!1);te("s",["ss",2],0,"second"),Ne("second","s"),R("second",15),ce("s",qe),ce("ss",qe,Ie),Be(["s","ss"],Gn);var x6=Re("Seconds",!1);te("S",0,0,function(){return~~(this.millisecond()/100)}),te(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),te(0,["SSS",3],0,"millisecond"),te(0,["SSSS",4],0,function(){return this.millisecond()*10}),te(0,["SSSSS",5],0,function(){return this.millisecond()*100}),te(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),te(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),te(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),te(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ne("millisecond","ms"),R("millisecond",16),ce("S",fr,pt),ce("SS",fr,Ie),ce("SSS",fr,Lt);var gr,Wp;for(gr="SSSS";gr.length<=9;gr+="S")ce(gr,hr);function b6(c,p){p[Br]=oe(("0."+c)*1e3)}for(gr="S";gr.length<=9;gr+="S")Be(gr,b6);Wp=Re("Milliseconds",!1),te("z",0,0,"zoneAbbr"),te("zz",0,0,"zoneName");function w6(){return this._isUTC?"UTC":""}function S6(){return this._isUTC?"Coordinated Universal Time":""}var re=j.prototype;re.add=p5,re.calendar=w5,re.clone=S5,re.diff=j5,re.endOf=B5,re.format=$5,re.from=I5,re.fromNow=D5,re.to=L5,re.toNow=N5,re.get=Ge,re.invalidAt=q5,re.isAfter=_5,re.isBefore=O5,re.isBetween=k5,re.isSame=C5,re.isSameOrAfter=P5,re.isSameOrBefore=A5,re.isValid=V5,re.lang=Np,re.locale=Lp,re.localeData=Rp,re.max=V3,re.min=Y3,re.parsingFlags=G5,re.set=kt,re.startOf=R5,re.subtract=m5,re.toArray=U5,re.toObject=W5,re.toDate=H5,re.toISOString=E5,re.inspect=M5,typeof Symbol<"u"&&Symbol.for!=null&&(re[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),re.toJSON=Y5,re.toString=T5,re.unix=F5,re.valueOf=z5,re.creationData=K5,re.eraName=Q5,re.eraNarrow=e6,re.eraAbbr=t6,re.eraYear=n6,re.year=vp,re.isLeapYear=Ww,re.weekYear=u6,re.isoWeekYear=c6,re.quarter=re.quarters=y6,re.month=yp,re.daysInMonth=Fw,re.week=re.weeks=Xw,re.isoWeek=re.isoWeeks=Zw,re.weeksInYear=h6,re.weeksInWeekYear=p6,re.isoWeeksInYear=f6,re.isoWeeksInISOWeekYear=d6,re.date=Up,re.day=re.days=c3,re.weekday=f3,re.isoWeekday=d3,re.dayOfYear=g6,re.hour=re.hours=x3,re.minute=re.minutes=v6,re.second=re.seconds=x6,re.millisecond=re.milliseconds=Wp,re.utcOffset=t5,re.utc=r5,re.local=i5,re.parseZone=a5,re.hasAlignedHourOffset=o5,re.isDST=s5,re.isLocal=u5,re.isUtcOffset=c5,re.isUtc=Ep,re.isUTC=Ep,re.zoneAbbr=w6,re.zoneName=S6,re.dates=z("dates accessor is deprecated. Use date instead.",Up),re.months=z("months accessor is deprecated. Use month instead",yp),re.years=z("years accessor is deprecated. Use year instead",vp),re.zone=z("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",n5),re.isDSTShifted=z("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",l5);function _6(c){return at(c*1e3)}function O6(){return at.apply(null,arguments).parseZone()}function Yp(c){return c}var ze=X.prototype;ze.calendar=Q,ze.longDateFormat=ve,ze.invalidDate=Ae,ze.ordinal=He,ze.preparse=Yp,ze.postformat=Yp,ze.relativeTime=ft,ze.pastFuture=en,ze.set=Y,ze.eras=X5,ze.erasParse=Z5,ze.erasConvertYear=J5,ze.erasAbbrRegex=i6,ze.erasNameRegex=r6,ze.erasNarrowRegex=a6,ze.months=Nw,ze.monthsShort=Rw,ze.monthsParse=zw,ze.monthsRegex=Uw,ze.monthsShortRegex=Hw,ze.week=Vw,ze.firstDayOfYear=Kw,ze.firstDayOfWeek=qw,ze.weekdays=a3,ze.weekdaysMin=s3,ze.weekdaysShort=o3,ze.weekdaysParse=u3,ze.weekdaysRegex=h3,ze.weekdaysShortRegex=p3,ze.weekdaysMinRegex=m3,ze.isPM=g3,ze.meridiem=b3;function hs(c,p,x,S){var A=Kn(),N=g().set(S,p);return A[x](N,c)}function Vp(c,p,x){if(f(c)&&(p=c,c=void 0),c=c||"",p!=null)return hs(c,p,x,"month");var S,A=[];for(S=0;S<12;S++)A[S]=hs(c,S,x,"month");return A}function sc(c,p,x,S){typeof c=="boolean"?(f(p)&&(x=p,p=void 0),p=p||""):(p=c,x=p,c=!1,f(p)&&(x=p,p=void 0),p=p||"");var A=Kn(),N=c?A._week.dow:0,K,me=[];if(x!=null)return hs(p,(x+N)%7,S,"day");for(K=0;K<7;K++)me[K]=hs(p,(K+N)%7,S,"day");return me}function k6(c,p){return Vp(c,p,"months")}function C6(c,p){return Vp(c,p,"monthsShort")}function P6(c,p,x){return sc(c,p,x,"weekdays")}function A6(c,p,x){return sc(c,p,x,"weekdaysShort")}function j6(c,p,x){return sc(c,p,x,"weekdaysMin")}yr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var p=c%10,x=oe(c%100/10)===1?"th":p===1?"st":p===2?"nd":p===3?"rd":"th";return c+x}}),r.lang=z("moment.lang is deprecated. Use moment.locale instead.",yr),r.langData=z("moment.langData is deprecated. Use moment.localeData instead.",Kn);var Xn=Math.abs;function T6(){var c=this._data;return this._milliseconds=Xn(this._milliseconds),this._days=Xn(this._days),this._months=Xn(this._months),c.milliseconds=Xn(c.milliseconds),c.seconds=Xn(c.seconds),c.minutes=Xn(c.minutes),c.hours=Xn(c.hours),c.months=Xn(c.months),c.years=Xn(c.years),this}function Gp(c,p,x,S){var A=Pn(p,x);return c._milliseconds+=S*A._milliseconds,c._days+=S*A._days,c._months+=S*A._months,c._bubble()}function E6(c,p){return Gp(this,c,p,1)}function M6(c,p){return Gp(this,c,p,-1)}function qp(c){return c<0?Math.floor(c):Math.ceil(c)}function $6(){var c=this._milliseconds,p=this._days,x=this._months,S=this._data,A,N,K,me,Ce;return c>=0&&p>=0&&x>=0||c<=0&&p<=0&&x<=0||(c+=qp(lc(x)+p)*864e5,p=0,x=0),S.milliseconds=c%1e3,A=se(c/1e3),S.seconds=A%60,N=se(A/60),S.minutes=N%60,K=se(N/60),S.hours=K%24,p+=se(K/24),Ce=se(Kp(p)),x+=Ce,p-=qp(lc(Ce)),me=se(x/12),x%=12,S.days=p,S.months=x,S.years=me,this}function Kp(c){return c*4800/146097}function lc(c){return c*146097/4800}function I6(c){if(!this.isValid())return NaN;var p,x,S=this._milliseconds;if(c=it(c),c==="month"||c==="quarter"||c==="year")switch(p=this._days+S/864e5,x=this._months+Kp(p),c){case"month":return x;case"quarter":return x/3;case"year":return x/12}else switch(p=this._days+Math.round(lc(this._months)),c){case"week":return p/7+S/6048e5;case"day":return p+S/864e5;case"hour":return p*24+S/36e5;case"minute":return p*1440+S/6e4;case"second":return p*86400+S/1e3;case"millisecond":return Math.floor(p*864e5)+S;default:throw new Error("Unknown unit "+c)}}function D6(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+oe(this._months/12)*31536e6:NaN}function Zn(c){return function(){return this.as(c)}}var L6=Zn("ms"),N6=Zn("s"),R6=Zn("m"),B6=Zn("h"),z6=Zn("d"),F6=Zn("w"),H6=Zn("M"),U6=Zn("Q"),W6=Zn("y");function Y6(){return Pn(this)}function V6(c){return c=it(c),this.isValid()?this[c+"s"]():NaN}function Fr(c){return function(){return this.isValid()?this._data[c]:NaN}}var G6=Fr("milliseconds"),q6=Fr("seconds"),K6=Fr("minutes"),X6=Fr("hours"),Z6=Fr("days"),J6=Fr("months"),Q6=Fr("years");function e4(){return se(this.days()/7)}var Jn=Math.round,hi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function t4(c,p,x,S,A){return A.relativeTime(p||1,!!x,c,S)}function n4(c,p,x,S){var A=Pn(c).abs(),N=Jn(A.as("s")),K=Jn(A.as("m")),me=Jn(A.as("h")),Ce=Jn(A.as("d")),Ke=Jn(A.as("M")),Ft=Jn(A.as("w")),Qn=Jn(A.as("y")),vr=N<=x.ss&&["s",N]||N0,vr[4]=S,t4.apply(null,vr)}function r4(c){return c===void 0?Jn:typeof c=="function"?(Jn=c,!0):!1}function i4(c,p){return hi[c]===void 0?!1:p===void 0?hi[c]:(hi[c]=p,c==="s"&&(hi.ss=p-1),!0)}function a4(c,p){if(!this.isValid())return this.localeData().invalidDate();var x=!1,S=hi,A,N;return typeof c=="object"&&(p=c,c=!1),typeof c=="boolean"&&(x=c),typeof p=="object"&&(S=Object.assign({},hi,p),p.s!=null&&p.ss==null&&(S.ss=p.s-1)),A=this.localeData(),N=n4(this,!x,S,A),x&&(N=A.pastFuture(+this,N)),A.postformat(N)}var uc=Math.abs;function pi(c){return(c>0)-(c<0)||+c}function ps(){if(!this.isValid())return this.localeData().invalidDate();var c=uc(this._milliseconds)/1e3,p=uc(this._days),x=uc(this._months),S,A,N,K,me=this.asSeconds(),Ce,Ke,Ft,Qn;return me?(S=se(c/60),A=se(S/60),c%=60,S%=60,N=se(x/12),x%=12,K=c?c.toFixed(3).replace(/\.?0+$/,""):"",Ce=me<0?"-":"",Ke=pi(this._months)!==pi(me)?"-":"",Ft=pi(this._days)!==pi(me)?"-":"",Qn=pi(this._milliseconds)!==pi(me)?"-":"",Ce+"P"+(N?Ke+N+"Y":"")+(x?Ke+x+"M":"")+(p?Ft+p+"D":"")+(A||S||c?"T":"")+(A?Qn+A+"H":"")+(S?Qn+S+"M":"")+(c?Qn+K+"S":"")):"P0D"}var De=ss.prototype;De.isValid=Z3,De.abs=T6,De.add=E6,De.subtract=M6,De.as=I6,De.asMilliseconds=L6,De.asSeconds=N6,De.asMinutes=R6,De.asHours=B6,De.asDays=z6,De.asWeeks=F6,De.asMonths=H6,De.asQuarters=U6,De.asYears=W6,De.valueOf=D6,De._bubble=$6,De.clone=Y6,De.get=V6,De.milliseconds=G6,De.seconds=q6,De.minutes=K6,De.hours=X6,De.days=Z6,De.weeks=e4,De.months=J6,De.years=Q6,De.humanize=a4,De.toISOString=ps,De.toString=ps,De.toJSON=ps,De.locale=Lp,De.localeData=Rp,De.toIsoString=z("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ps),De.lang=Np,te("X",0,0,"unix"),te("x",0,0,"valueOf"),ce("x",pr),ce("X",Uu),Be("X",function(c,p,x){x._d=new Date(parseFloat(c)*1e3)}),Be("x",function(c,p,x){x._d=new Date(oe(c))});//! moment.js +return r.version="2.29.4",i(at),r.fn=re,r.min=G3,r.max=q3,r.now=K3,r.utc=g,r.unix=_6,r.months=k6,r.isDate=d,r.locale=yr,r.invalid=k,r.duration=Pn,r.isMoment=E,r.weekdays=P6,r.parseZone=O6,r.localeData=Kn,r.isDuration=ls,r.monthsShort=C6,r.weekdaysMin=j6,r.defineLocale=Xu,r.updateLocale=O3,r.locales=k3,r.weekdaysShort=A6,r.normalizeUnits=it,r.relativeTimeRounding=r4,r.relativeTimeThreshold=i4,r.calendarFormat=b5,r.prototype=re,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})})(wv);var M9=wv.exports;const Sv=st(M9),$9=({text:e,type:t,sourceLink:n,date:r})=>y.jsxs(F,{direction:"column",children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsx(F,{align:"center",direction:"row",children:y.jsx(na,{type:t})}),n&&y.jsx(Mi,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),y.jsx(W9,{"data-testid":"episode-description",children:e}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(F,{align:"center",direction:"row",justify:"flex-start",children:!!r&&y.jsx(ni,{children:Sv.unix(r).fromNow()})}),n&&y.jsxs(Mi,{href:n,onClick:i=>i.stopPropagation(),target:"_blank",children:[y.jsx(bv,{}),y.jsx(I9,{children:n})]})]})]}),I9=H(ht)` max-width: 150px; overflow: hidden; text-overflow: ellipsis; @@ -392,7 +392,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni font-size: 12px; font-weight: 400; line-height: 18px; -`,I9=({title:e,imageUrl:t,name:n,sourceLink:r,date:i})=>y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",children:[y.jsx(D9,{children:y.jsx(In,{rounded:!0,size:64,src:t||"",type:"person"})}),(e||n)&&y.jsx(L9,{children:e||n})]}),!r&&y.jsx(Ei,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:y.jsx(Tr,{})})]}),y.jsx(F,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!i&&y.jsx(ti,{children:wv.unix(i).fromNow()})})]}),D9=H(F)` +`,D9=({title:e,imageUrl:t,name:n,sourceLink:r,date:i})=>y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",children:[y.jsx(L9,{children:y.jsx(In,{rounded:!0,size:64,src:t||"",type:"person"})}),(e||n)&&y.jsx(N9,{children:e||n})]}),!r&&y.jsx(Mi,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),y.jsx(F,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!i&&y.jsx(ni,{children:Sv.unix(i).fromNow()})})]}),L9=H(F)` img { width: 64px; height: 64px; @@ -400,14 +400,14 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni object-fit: cover; } margin-right: 16px; -`,L9=H(F)` +`,N9=H(F)` color: ${L.white}; font-family: Barlow; font-size: 13px; font-style: normal; font-weight: 600; line-height: 17px; -`,N9=({text:e,imageUrl:t,date:n,twitterHandle:r,name:i,verified:a,sourceLink:o})=>y.jsxs(F,{direction:"column",children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx(R9,{children:y.jsx(In,{rounded:!0,size:27,src:t||"",type:"person"})}),y.jsxs(F,{children:[y.jsxs(B9,{align:"center",direction:"row",children:[i,a&&y.jsx("div",{className:"verification",children:y.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),r&&y.jsxs(z9,{children:["@",r]})]})]}),o&&y.jsx(Ei,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:s=>s.stopPropagation(),target:"_blank",children:y.jsx(Tr,{})})]}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(F9,{"data-testid":"episode-description",children:e}),y.jsx(F,{"data-testid":"date-text",direction:"row",justify:"flex-start",children:!!n&&y.jsx(ti,{children:Lo.unix(n).fromNow()})})]})]}),R9=H(F)` +`,R9=({text:e,imageUrl:t,date:n,twitterHandle:r,name:i,verified:a,sourceLink:o})=>y.jsxs(F,{direction:"column",children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx(B9,{children:y.jsx(In,{rounded:!0,size:27,src:t||"",type:"person"})}),y.jsxs(F,{children:[y.jsxs(z9,{align:"center",direction:"row",children:[i,a&&y.jsx("div",{className:"verification",children:y.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),r&&y.jsxs(F9,{children:["@",r]})]})]}),o&&y.jsx(Mi,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:s=>s.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(H9,{"data-testid":"episode-description",children:e}),y.jsx(F,{"data-testid":"date-text",direction:"row",justify:"flex-start",children:!!n&&y.jsx(ni,{children:No.unix(n).fromNow()})})]})]}),B9=H(F)` img { width: 64px; height: 64px; @@ -415,7 +415,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni object-fit: cover; } margin-right: 16px; -`,B9=H(F)` +`,z9=H(F)` color: ${L.white}; font-family: Barlow; font-size: 12px; @@ -426,7 +426,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni .verification { margin-left: 4px; } -`,z9=H(F)` +`,F9=H(F)` color: ${L.GRAY7}; font-family: Barlow; font-size: 11px; @@ -434,7 +434,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni font-weight: 400; line-height: normal; letter-spacing: 0.2px; -`,F9=H(F)` +`,H9=H(F)` color: ${L.white}; font-family: Barlow; font-size: 13px; @@ -448,7 +448,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni -webkit-box-orient: vertical; overflow: hidden; white-space: normal; -`,H9=H(F).attrs({direction:"column"})` +`,U9=H(F).attrs({direction:"column"})` padding: 24px; cursor: pointer; border-top: 1px solid #101317; @@ -468,7 +468,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni .player-controls { margin-left: 4px; } -`,Ud=({boostCount:e,date:t,episodeTitle:n,imageUrl:r,showTitle:i,type:a,text:o,name:s,sourceLink:l,verified:u=!1,twitterHandle:f,className:d="episode-wrapper",onClick:h,node:m})=>{const g=At(P=>P.currentSearch),v=$n(String(o),g),b=$n(String(s),g),C=$n(String(a==="show"?"":i),g),k=["Tweet","person","guest","topic","document"];return y.jsxs(H9,{className:d,onClick:h,children:[!k.includes(a)&&y.jsx(k9,{boostCount:e,date:t,episodeTitle:n,imageUrl:r,newName:s,node:m,showTitle:i,type:a}),a==="topic"&&y.jsx(W9,{children:y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx(S9,{}),y.jsx("p",{children:C})]}),l&&y.jsx(Ei,{href:`${l}${l!=null&&l.includes("?")?"&":"?"}open=system`,onClick:P=>P.stopPropagation(),target:"_blank",children:y.jsx(Tr,{})})]}),y.jsx(F,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&y.jsx(ti,{children:Lo.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&y.jsx(I9,{date:t,imageUrl:r,name:b||"",sourceLink:l||"",title:i||""}),["image"].includes(a)&&y.jsx(A9,{date:t,imageUrl:l,name:b||"",sourceLink:l||""}),a==="Tweet"&&y.jsx(N9,{date:t,imageUrl:r,name:b||"",sourceLink:l||"",text:v||"",twitterHandle:f,verified:u}),a==="document"&&y.jsx(M9,{date:t,sourceLink:l||"",text:v||"",type:a})]})},U9=H(F)` +`,Wd=({boostCount:e,date:t,episodeTitle:n,imageUrl:r,showTitle:i,type:a,text:o,name:s,sourceLink:l,verified:u=!1,twitterHandle:f,className:d="episode-wrapper",onClick:h,node:m})=>{const g=At(P=>P.currentSearch),v=$n(String(o),g),b=$n(String(s),g),C=$n(String(a==="show"?"":i),g),k=["Tweet","person","guest","topic","document"];return y.jsxs(U9,{className:d,onClick:h,children:[!k.includes(a)&&y.jsx(C9,{boostCount:e,date:t,episodeTitle:n,imageUrl:r,newName:s,node:m,showTitle:i,type:a}),a==="topic"&&y.jsx(Y9,{children:y.jsxs(F,{grow:1,shrink:1,children:[y.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx(_9,{}),y.jsx("p",{children:C})]}),l&&y.jsx(Mi,{href:`${l}${l!=null&&l.includes("?")?"&":"?"}open=system`,onClick:P=>P.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),y.jsx(F,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&y.jsx(ni,{children:No.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&y.jsx(D9,{date:t,imageUrl:r,name:b||"",sourceLink:l||"",title:i||""}),["image"].includes(a)&&y.jsx(j9,{date:t,imageUrl:l,name:b||"",sourceLink:l||""}),a==="Tweet"&&y.jsx(R9,{date:t,imageUrl:r,name:b||"",sourceLink:l||"",text:v||"",twitterHandle:f,verified:u}),a==="document"&&y.jsx($9,{date:t,sourceLink:l||"",text:v||"",type:a})]})},W9=H(F)` font-family: Barlow; font-size: 13px; font-style: normal; @@ -482,7 +482,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni overflow: hidden; white-space: normal; letter-spacing: 0.2px; -`,ti=H(ht)` +`,ni=H(ht)` overflow: hidden; color: ${L.GRAY6}; text-overflow: ellipsis; @@ -494,7 +494,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni margin-right: 8px; flex-shrink: 0; letter-spacing: 0.2pt; -`,W9=H.div` +`,Y9=H.div` display: flex; flex-direction: row; align-items: center; @@ -522,7 +522,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni line-height: 24px; margin: 0; } -`;H(ti)` +`;H(ni)` align-items: center; flex-shrink: 1; overflow: hidden; @@ -556,18 +556,18 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni font-weight: 500; line-height: 17px; /* 130.769% */ } -`;const Ei=H.a` +`;const Mi=H.a` color: ${L.GRAY6}; font-size: 16px; height: 16px; display: flex; gap: 5px; align-items: center; -`,Y9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("g",{id:"Menu icons",children:y.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),V9=H(F)` +`,V9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("g",{id:"Menu icons",children:y.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),G9=H(F)` overflow-y: auto; overflow-x: hidden; background: ${L.body}; -`,Wd=e=>{const{properties:t,ref_id:n}=e;return{boost:(t==null?void 0:t.boost)||0,children:[],x:0,y:0,z:0,edge_count:e.edge_count||0,hidden:!1,colors:[],date:t==null?void 0:t.date,description:"",episode_title:(t==null?void 0:t.episode_title)||"",hosts:[],guests:[],id:"",image_url:t==null?void 0:t.image_url,sender_pic:"",sender_alias:"",message_content:"",keyword:!1,label:"",source_link:(t==null?void 0:t.source_link)||"",link:(t==null?void 0:t.link)||"",name:e.name,node_type:e.node_type,ref_id:n,scale:1,show_title:(t==null?void 0:t.show_title)||"",text:t==null?void 0:t.text,timestamp:"",topics:[],type:(t==null?void 0:t.type)||"",weight:0,tweet_id:t==null?void 0:t.tweet_id,posted_by:void 0,twitter_handle:t==null?void 0:t.twitter_handle,profile_picture:"",verified:t==null?void 0:t.verified,unique_id:"",properties:{},media_url:""}},G9=({sourceIds:e})=>{const t=B.useRef(null),[n,r]=B.useState(!1),{dataInitial:i}=Sn(f=>f),a=No(),o=B.useCallback(f=>{a(f)},[a]),s=()=>r(!n),l=(i==null?void 0:i.nodes.filter(f=>e.includes(f.ref_id)))||[],u=n?l:[...l].slice(0,3);return y.jsxs(X9,{children:[y.jsx(Ti,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(K9,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(Y9,{})}),y.jsx("span",{className:"tittle",children:"Sources"}),y.jsx("span",{className:"heading__count",children:e.length})]}),y.jsxs(J9,{onClick:s,children:[n?"Hide all":"Show all",n?y.jsx(Fd,{}):y.jsx(ql,{})]})]})}),n&&u.length>0&&y.jsx(V9,{ref:t,id:"search-result-list",shrink:1,children:u.map((f,d)=>{const h=Wd(f),{image_url:m,date:g,boost:v,episode_title:b,show_title:O,node_type:C,text:k,source_link:P,name:_,verified:w=!1,twitter_handle:j}=h||{};return y.jsx(Z9,{boostCount:v||0,date:g||0,episodeTitle:ji(b),imageUrl:m||"",name:_||"",node:f,onClick:()=>{o(f)},showTitle:ji(O),sourceLink:P,text:k||"",twitterHandle:j,type:C,verified:w},d.toString())})})]})},q9=B.memo(G9),K9=H(F)` +`,Yd=e=>{const{properties:t,ref_id:n}=e;return{boost:(t==null?void 0:t.boost)||0,children:[],x:0,y:0,z:0,edge_count:e.edge_count||0,hidden:!1,colors:[],date:t==null?void 0:t.date,description:"",episode_title:(t==null?void 0:t.episode_title)||"",hosts:[],guests:[],id:"",image_url:t==null?void 0:t.image_url,sender_pic:"",sender_alias:"",message_content:"",keyword:!1,label:"",source_link:(t==null?void 0:t.source_link)||"",link:(t==null?void 0:t.link)||"",name:e.name,node_type:e.node_type,ref_id:n,scale:1,show_title:(t==null?void 0:t.show_title)||"",text:t==null?void 0:t.text,timestamp:"",topics:[],type:(t==null?void 0:t.type)||"",weight:0,tweet_id:t==null?void 0:t.tweet_id,posted_by:void 0,twitter_handle:t==null?void 0:t.twitter_handle,profile_picture:"",verified:t==null?void 0:t.verified,unique_id:"",properties:{},media_url:""}},q9=({sourceIds:e})=>{const t=B.useRef(null),[n,r]=B.useState(!1),{dataInitial:i}=Sn(f=>f),a=Ro(),o=B.useCallback(f=>{a(f)},[a]),s=()=>r(!n),l=(i==null?void 0:i.nodes.filter(f=>e.includes(f.ref_id)))||[],u=n?l:[...l].slice(0,3);return y.jsxs(Z9,{children:[y.jsx(Ei,{direction:"right",in:!0,mountOnEnter:!0,children:y.jsxs(X9,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",children:[y.jsx("div",{className:"heading__icon",children:y.jsx(V9,{})}),y.jsx("span",{className:"tittle",children:"Sources"}),y.jsx("span",{className:"heading__count",children:e.length})]}),y.jsxs(Q9,{onClick:s,children:[n?"Hide all":"Show all",n?y.jsx(Hd,{}):y.jsx(Kl,{})]})]})}),n&&u.length>0&&y.jsx(G9,{ref:t,id:"search-result-list",shrink:1,children:u.map((f,d)=>{const h=Yd(f),{image_url:m,date:g,boost:v,episode_title:b,show_title:O,node_type:C,text:k,source_link:P,name:_,verified:w=!1,twitter_handle:j}=h||{};return y.jsx(J9,{boostCount:v||0,date:g||0,episodeTitle:Ti(b),imageUrl:m||"",name:_||"",node:f,onClick:()=>{o(f)},showTitle:Ti(O),sourceLink:P,text:k||"",twitterHandle:j,type:C,verified:w},d.toString())})})]})},K9=B.memo(q9),X9=H(F)` &.heading { font-weight: 600; color: ${L.white}; @@ -600,14 +600,14 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni color: ${L.white}; } } -`,X9=H(F)` +`,Z9=H(F)` border-top: 1px solid rgba(0, 0, 0, 0.3); padding-bottom: 25px; -`,Z9=H(Ud)` +`,J9=H(Wd)` &:first-child { border-top: none; } -`,J9=H(Dt)` +`,Q9=H(Dt)` &&.MuiButton-root { background-color: ${L.COLLAPSE_BUTTON}; color: ${L.white}; @@ -638,7 +638,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni height: 9px; color: white; } -`,Q9=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),eS=H(F).attrs({direction:"column"})` +`,eS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),tS=H(F).attrs({direction:"column"})` padding: 24px; cursor: pointer; background: ${L.BG1}; @@ -649,24 +649,24 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni border-radius: 50%; margin-right: 8px; } -`,ba=H(av)` +`,wa=H(ov)` && { background: #353a46; border-radius: 0.5rem; } -`,tS=H(F)` +`,nS=H(F)` gap: 1.1875rem; margin-top: 1rem; -`,nS=H.span` +`,rS=H.span` display: inline-flex; align-items: center; justify-content: center; color: white; margin-right: 0.5rem; -`,rS=H(ht)` +`,iS=H(ht)` font-weight: 600; font-size: 0.9375rem; -`,wa=8,bs=332,iS=()=>y.jsx(y.Fragment,{children:y.jsx(eS,{children:y.jsxs(F,{direction:"column",children:[y.jsxs(F,{direction:"row",children:[y.jsx(nS,{children:y.jsx(Q9,{})}),y.jsx(rS,{children:"Answer"})]}),y.jsxs(tS,{grow:1,shrink:1,children:[y.jsx(ba,{height:wa,variant:"rectangular",width:bs}),y.jsx(ba,{height:wa,variant:"rectangular",width:bs}),y.jsx(ba,{height:wa,variant:"rectangular",width:bs}),y.jsx(ba,{height:wa,variant:"rectangular",width:bs}),y.jsx(ba,{height:wa,variant:"rectangular",width:180})]})]})})}),aS=H(ht)` +`,Sa=8,ws=332,aS=()=>y.jsx(y.Fragment,{children:y.jsx(tS,{children:y.jsxs(F,{direction:"column",children:[y.jsxs(F,{direction:"row",children:[y.jsx(rS,{children:y.jsx(eS,{})}),y.jsx(iS,{children:"Answer"})]}),y.jsxs(nS,{grow:1,shrink:1,children:[y.jsx(wa,{height:Sa,variant:"rectangular",width:ws}),y.jsx(wa,{height:Sa,variant:"rectangular",width:ws}),y.jsx(wa,{height:Sa,variant:"rectangular",width:ws}),y.jsx(wa,{height:Sa,variant:"rectangular",width:ws}),y.jsx(wa,{height:Sa,variant:"rectangular",width:180})]})]})})}),oS=H(ht)` font-size: 20px; font-weight: 600; flex-grow: 1; @@ -674,13 +674,13 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni white-space: normal; word-break: break-word; margin-right: 10px; -`,oS=H(F).attrs({direction:"row",alignItems:"center"})` +`,sS=H(F).attrs({direction:"row",alignItems:"center"})` padding: 24px 10px 24px 24px; flex-shrink: 1; overflow: hidden; -`,i1=({question:e,response:t,refId:n})=>{var g;const r=B.useRef(null),[i,a]=B.useState(!1),{setAiSummaryAnswer:o}=qg(v=>v),s=B.useRef(null),{currentPlayingAudio:l,setCurrentPlayingAudio:u}=At(v=>v);B.useEffect(()=>{r.current&&r.current.scrollIntoView({behavior:"smooth"})},[]),B.useEffect(()=>{const v=s.current,b=()=>{u(null)};return v&&v.addEventListener("ended",b),()=>{v&&v.removeEventListener("ended",b)}},[u]);const f=()=>{a(!i)},d=()=>{n&&o(n,{hasBeenRendered:!0})},h=()=>{s.current&&(s.current.paused?(s.current.play(),u(s)):(s.current.pause(),u(null)))},m=()=>{l!=null&&l.current&&l.current!==s.current&&(l.current.pause(),u(null)),h()};return y.jsxs(sS,{children:[y.jsxs(oS,{children:[y.jsx(aS,{ref:r,children:e}),t.audio_en&&y.jsx(uS,{onClick:m,children:(l==null?void 0:l.current)===s.current&&!((g=s.current)!=null&&g.paused)?y.jsx(pv,{}):y.jsx(mv,{})}),y.jsx(lS,{onClick:f,children:i?y.jsx(ql,{}):y.jsx(Fd,{})})]}),!i&&y.jsxs(y.Fragment,{children:[t.answerLoading?y.jsx(iS,{}):y.jsx(p9,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>d(),hasBeenRendered:!!(t!=null&&t.hasBeenRendered)}),t.questionsLoading?y.jsx(yv,{count:1}):y.jsx(g9,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?y.jsx(q9,{sourceIds:t.sources||[]}):null]}),t.audio_en&&y.jsx(cS,{ref:s,src:t.audio_en,children:y.jsx("track",{kind:"captions"})})]})},sS=H(F).attrs({direction:"column"})` +`,a1=({question:e,response:t,refId:n})=>{var g;const r=B.useRef(null),[i,a]=B.useState(!1),{setAiSummaryAnswer:o}=Kg(v=>v),s=B.useRef(null),{currentPlayingAudio:l,setCurrentPlayingAudio:u}=At(v=>v);B.useEffect(()=>{r.current&&r.current.scrollIntoView({behavior:"smooth"})},[]),B.useEffect(()=>{const v=s.current,b=()=>{u(null)};return v&&v.addEventListener("ended",b),()=>{v&&v.removeEventListener("ended",b)}},[u]);const f=()=>{a(!i)},d=()=>{n&&o(n,{hasBeenRendered:!0})},h=()=>{s.current&&(s.current.paused?(s.current.play(),u(s)):(s.current.pause(),u(null)))},m=()=>{l!=null&&l.current&&l.current!==s.current&&(l.current.pause(),u(null)),h()};return y.jsxs(lS,{children:[y.jsxs(sS,{children:[y.jsx(oS,{ref:r,children:e}),t.audio_en&&y.jsx(cS,{onClick:m,children:(l==null?void 0:l.current)===s.current&&!((g=s.current)!=null&&g.paused)?y.jsx(mv,{}):y.jsx(yv,{})}),y.jsx(uS,{onClick:f,children:i?y.jsx(Kl,{}):y.jsx(Hd,{})})]}),!i&&y.jsxs(y.Fragment,{children:[t.answerLoading?y.jsx(aS,{}):y.jsx(m9,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>d(),hasBeenRendered:!!(t!=null&&t.hasBeenRendered)}),t.questionsLoading?y.jsx(gv,{count:1}):y.jsx(v9,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?y.jsx(K9,{sourceIds:t.sources||[]}):null]}),t.audio_en&&y.jsx(fS,{ref:s,src:t.audio_en,children:y.jsx("track",{kind:"captions"})})]})},lS=H(F).attrs({direction:"column"})` border-top: 1px solid #101317; -`,lS=H(Dt)` +`,uS=H(Dt)` &&.MuiButton-root { background-color: ${L.COLLAPSE_BUTTON}; border: none; @@ -702,7 +702,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni height: 9px; color: white; } -`,uS=H(Dt)` +`,cS=H(Dt)` &&.MuiButton-root { background-color: ${L.COLLAPSE_BUTTON}; border: none; @@ -725,14 +725,14 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni height: 12px; color: white; } -`,cS=H.audio` +`,fS=H.audio` display: none; -`,fS=390,dS=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:n,setNewLoading:r}=qg(l=>l),{abortFetchData:i,resetGraph:a}=Sn(l=>l),o=Hl(),s=()=>{r(null),i(),a(),t(),o("/")};return y.jsxs(hS,{children:[y.jsx(F,{align:"flex-start",children:y.jsx(F,{p:24,children:y.jsx(Dt,{onClick:s,startIcon:y.jsx(Q8,{}),children:"Home"})})}),y.jsx(pS,{children:y.jsxs(F,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var u;return y.jsx(i1,{question:((u=e[l])==null?void 0:u.question)||"",refId:l,response:e[l]},l)}),n&&y.jsx(i1,{question:n.question||"",refId:"",response:n})]})}),y.jsx(t9,{})]})},hS=H(F)(({theme:e})=>({position:"relative",background:L.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:fS}})),pS=H(F)` +`,dS=390,hS=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:n,setNewLoading:r}=Kg(l=>l),{abortFetchData:i,resetGraph:a}=Sn(l=>l),o=Ul(),s=()=>{r(null),i(),a(),t(),o("/")};return y.jsxs(pS,{children:[y.jsx(F,{align:"flex-start",children:y.jsx(F,{p:24,children:y.jsx(Dt,{onClick:s,startIcon:y.jsx(e9,{}),children:"Home"})})}),y.jsx(mS,{children:y.jsxs(F,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var u;return y.jsx(a1,{question:((u=e[l])==null?void 0:u.question)||"",refId:l,response:e[l]},l)}),n&&y.jsx(a1,{question:n.question||"",refId:"",response:n})]})}),y.jsx(n9,{})]})},pS=H(F)(({theme:e})=>({position:"relative",background:L.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:dS}})),mS=H(F)` overflow-y: auto; overflow-x: hidden; flex: 1; width: 100%; -`,mS=()=>{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(yS,{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(Fd,{}):y.jsx(ql,{})})]}),y.jsx(vS,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(U4,{children:i.filter(({name:h})=>h).map(({name:h,count:m})=>y.jsxs(gS,{className:Fn({active:h===n}),onClick:g=>{g.preventDefault(),f(h)},children:[y.jsx("span",{className:"icon",children:h===n?y.jsx(sv,{}):null}),y.jsx("span",{children:`${s(h)} (${m})`})]},h))})})]})},yS=H(F).attrs({direction:"row",align:"center"})` +`,yS=()=>{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(gS,{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(xS,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:u,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:y.jsx(W4,{children:i.filter(({name:h})=>h).map(({name:h,count:m})=>y.jsxs(vS,{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))})})]})},gS=H(F).attrs({direction:"row",align:"center"})` cursor: pointer; flex-grow: 1; color: ${L.GRAY6}; @@ -749,7 +749,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni .value { margin: 0 8px 0 4px; } -`,gS=H(F).attrs({direction:"row",align:"center"})` +`,vS=H(F).attrs({direction:"row",align:"center"})` font-family: Barlow; font-size: 13px; font-style: normal; @@ -769,7 +769,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni width: 9px; font-size: 10px; } -`,vS=H(z4)` +`,xS=H(F4)` .MuiPaper-root { background: ${L.BUTTON1}; min-width: 149px; @@ -778,15 +778,15 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.2); border-radius: 6px; } -`,xS=({hops:e,setHops:t})=>y.jsxs(y.Fragment,{children:[y.jsxs(Vd,{children:[y.jsx("div",{children:"Hops"}),y.jsx(Yd,{children:"Distance away from source nodes"})]}),y.jsx(Kl,{children:y.jsxs(bS,{children:[y.jsx(Jp,{control:y.jsx(a1,{checked:e===1,onChange:()=>t(1)}),label:"Direct relationship"}),y.jsx(Jp,{control:y.jsx(a1,{checked:e===2,onChange:()=>t(2)}),label:"2 hops away"})]})})]}),bS=H(F).attrs({direction:"column",align:"flex-start"})` +`,bS=({hops:e,setHops:t})=>y.jsxs(y.Fragment,{children:[y.jsxs(Gd,{children:[y.jsx("div",{children:"Hops"}),y.jsx(Vd,{children:"Distance away from source nodes"})]}),y.jsx(Xl,{children:y.jsxs(wS,{children:[y.jsx(Qp,{control:y.jsx(o1,{checked:e===1,onChange:()=>t(1)}),label:"Direct relationship"}),y.jsx(Qp,{control:y.jsx(o1,{checked:e===2,onChange:()=>t(2)}),label:"2 hops away"})]})})]}),wS=H(F).attrs({direction:"column",align:"flex-start"})` gap: 10px; -`,a1=H(k8)` +`,o1=H(C8)` && { .MuiSvgIcon-root { border-radius: 8px; } } -`,wS=({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(Vd,{children:[y.jsx("div",{children:"Max results"}),y.jsx(Yd,{children:"Total number of relationships"})]}),y.jsxs(Kl,{children:[y.jsxs(_v,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(Sv,{direction:"row",children:y.jsx(Gl,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},SS=({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(Vd,{children:[y.jsx("div",{children:"Source Nodes"}),y.jsx(Yd,{children:"Core set of nodes based on search term"})]}),y.jsxs(Kl,{children:[y.jsxs(_v,{children:[y.jsx("span",{children:"1"}),y.jsx("span",{children:e})]}),y.jsx(Sv,{direction:"row",children:y.jsx(Gl,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:1,onChange:n,size:"medium",step:1,value:e})})]})]})},_S=({showAllSchemas:e,setShowAllSchemas:t,schemaAll:n,anchorEl:r})=>{const i=P=>{f(_=>_.includes(P)?_.filter(w=>w!==P):[..._,P])},{setFilters:a,fetchData:o,setAbortRequests:s}=Sn(P=>P),[l]=Ji(P=>[P.setBudget]),[u,f]=B.useState([]),[d,h]=B.useState(1),[m,g]=B.useState(10),[v,b]=B.useState(30),O=async()=>{f([])},C=()=>{t(!0)},k=async()=>{a({node_type:u,limit:v,depth:d.toString(),top_node_count:m.toString()}),await o(l,s)};return y.jsxs(OS,{anchorEl:r,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!r,placement:"bottom-end",children:[y.jsxs(kS,{children:[y.jsx("div",{children:"Type"}),y.jsxs(CS,{children:[y.jsx(PS,{children:u.length}),y.jsx(AS,{children:"Selected"})]})]}),y.jsxs(Kl,{children:[y.jsx(ES,{children:(e?n:n.slice(0,4)).map(P=>y.jsx(MS,{isSelected:u.includes(P.type),onClick:()=>i(P==null?void 0:P.type),children:P.type},P.type))}),!e&&n.length>4&&y.jsx($S,{onClick:C,children:y.jsxs(TS,{children:[y.jsx(Bd,{})," View More"]})})]}),y.jsx(ws,{}),y.jsx(SS,{setSourceNodes:g,sourceNodes:m}),y.jsx(ws,{}),y.jsx(xS,{hops:d,setHops:h}),y.jsx(ws,{}),y.jsx(wS,{maxResults:v,setMaxResults:b}),y.jsx(ws,{}),y.jsx(jS,{children:y.jsxs(NS,{children:[y.jsxs(IS,{color:"secondary",onClick:O,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(DS,{children:y.jsx(nv,{})}),"Clear"]}),y.jsx(LS,{color:"secondary",onClick:k,size:"large",variant:"contained",children:"Show Results"})]})})]})},OS=H(W4)` +`,SS=({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})})]})]})},_S=({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},OS=({showAllSchemas:e,setShowAllSchemas:t,schemaAll:n,anchorEl:r})=>{const i=_=>{f(w=>w.includes(_)?w.filter(j=>j!==_):[...w,_])},{setFilters:a,fetchData:o,setAbortRequests:s}=Sn(_=>_),[l]=Qi(_=>[_.setBudget]),[u,f]=B.useState(br.selectedTypes),[d,h]=B.useState(br.hops),[m,g]=B.useState(br.sourceNodes),[v,b]=B.useState(br.maxResults),O=()=>{f(br.selectedTypes),h(br.hops),g(br.sourceNodes),b(br.maxResults)},C=async()=>{O()},k=()=>{t(!0)},P=async()=>{a({node_type:u,limit:v,depth:d.toString(),top_node_count:m.toString()}),await o(l,s)};return y.jsxs(kS,{anchorEl:r,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!r,placement:"bottom-end",children:[y.jsxs(CS,{children:[y.jsx("div",{children:"Type"}),y.jsxs(PS,{children:[y.jsx(AS,{children:u.length}),y.jsx(jS,{children:"Selected"})]})]}),y.jsxs(Xl,{children:[y.jsx(MS,{children:(e?n:n.slice(0,4)).map(_=>y.jsx($S,{isSelected:u.includes(_.type),onClick:()=>i(_==null?void 0:_.type),children:_.type},_.type))}),!e&&n.length>4&&y.jsx(IS,{onClick:k,children:y.jsxs(ES,{children:[y.jsx(zd,{})," View More"]})})]}),y.jsx(Ss,{}),y.jsx(_S,{setSourceNodes:g,sourceNodes:m}),y.jsx(Ss,{}),y.jsx(bS,{hops:d,setHops:h}),y.jsx(Ss,{}),y.jsx(SS,{maxResults:v,setMaxResults:b}),y.jsx(Ss,{}),y.jsx(TS,{children:y.jsxs(RS,{children:[y.jsxs(DS,{color:"secondary",onClick:C,size:"large",style:{marginRight:20},variant:"contained",children:[y.jsx(LS,{children:y.jsx(rv,{})}),"Clear"]}),y.jsx(NS,{color:"secondary",onClick:P,size:"large",variant:"contained",children:"Show Results"})]})})]})},kS=H(Y4)` &&.MuiPopper-root { background: ${L.BG2}; padding: 16px; @@ -810,7 +810,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni overflow-y: hidden; } } -`,kS=H.div` +`,CS=H.div` display: flex; justify-content: space-between; align-items: center; @@ -818,28 +818,28 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni font-family: Barlow; font-size: 18px; font-weight: 500; -`,CS=H.div` +`,PS=H.div` font-size: 13px; display: flex; align-items: center; -`,PS=H.span` - color: ${L.white}; `,AS=H.span` + color: ${L.white}; +`,jS=H.span` color: ${L.GRAY3}; margin-left: 4px; -`,Kl=H.div` +`,Xl=H.div` padding: 13px 0; position: relative; -`,jS=H.div` +`,TS=H.div` display: flex; justify-content: space-between; align-items: center; padding-top: 8px; -`,ws=H.div` +`,Ss=H.div` border: 1px solid ${L.black}; width: calc(100% + 32px); margin: 13px -16px; -`,TS=H.span` +`,ES=H.span` display: flex; justify-content: space-between; align-items: center; @@ -851,14 +851,14 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni fill: none; margin-top: 2px; } -`,ES=H(F).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,MS=H(F).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` flex-wrap: wrap; gap: 10px; max-height: 400px; overflow-y: auto; padding-right: 10px; margin-right: calc(0px - 16px); -`,MS=H(F).attrs({align:"center",direction:"row",justify:"flex-start"})` +`,$S=H(F).attrs({align:"center",direction:"row",justify:"flex-start"})` color: ${({isSelected:e})=>e?L.black:L.white}; background: ${({isSelected:e})=>e?L.white:L.BUTTON1_PRESS}; padding: 6px 10px 6px 8px; @@ -880,7 +880,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni background: ${L.white}; color: ${L.black}; } -`,$S=H.button` +`,IS=H.button` background: transparent; color: ${L.white}; border: none; @@ -899,7 +899,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni &:active { background: ${L.BUTTON1_PRESS}; } -`,IS=H(Dt)` +`,DS=H(Dt)` && { color: ${L.white}; background-color: ${L.BUTTON1}; @@ -911,7 +911,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni background-color: ${L.BUTTON1}; } } -`,DS=H.span` +`,LS=H.span` svg { width: 32px; height: 32px; @@ -919,12 +919,12 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni fill: none; margin-top: 4px; } -`,LS=H(Dt)` +`,NS=H(Dt)` && { flex: 1; padding: 2px 55px; } -`,Yd=H.div` +`,Vd=H.div` font-family: Barlow; font-size: 13px; font-weight: 500; @@ -932,13 +932,13 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni text-align: left; margin-top: 10px; color: ${L.modalAuth}; -`,Vd=H.div` +`,Gd=H.div` display: flex; flex-direction: column; font-family: Barlow; font-size: 18px; font-weight: 500; -`,Sv=H(F)` +`,_v=H(F)` margin: 10px auto; .volume-slider { @@ -965,15 +965,15 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni } } } -`,_v=H.div` +`,Ov=H.div` display: flex; flex-direction: row; justify-content: space-between; margin: 10px auto; -`,NS=H(F)` +`,RS=H(F)` flex-direction: row; margin: 0 0 6px 8px; -`,RS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),BS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),pc=[["Searching","Podcast Index"],["Finding","Transcripts"],["Loading","Audio Clips"],["Loading","Video Clips"],["Preparing","Results"]],zS=()=>{const[e,t]=B.useState(0);return B.useEffect(()=>{if(e===pc.length-1)return;const n=setTimeout(()=>t(r=>(r+1)%pc.length),2e3);return()=>clearTimeout(n)},[e]),y.jsx(FS,{direction:"column",children:pc.map((n,r)=>y.jsxs(F,{className:Fn("raw-wrapper",{show:e===r}),direction:"row",children:[y.jsx("div",{className:Fn("action"),children:n[0]}),y.jsx("div",{className:Fn("entity"),children:n[1]}),y.jsx("div",{children:y.jsx(J8,{color:L.SECONDARY_BLUE,size:2})})]},n[1]))})},FS=H(F)` +`,BS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),zS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),mc=[["Searching","Podcast Index"],["Finding","Transcripts"],["Loading","Audio Clips"],["Loading","Video Clips"],["Preparing","Results"]],FS=()=>{const[e,t]=B.useState(0);return B.useEffect(()=>{if(e===mc.length-1)return;const n=setTimeout(()=>t(r=>(r+1)%mc.length),2e3);return()=>clearTimeout(n)},[e]),y.jsx(HS,{direction:"column",children:mc.map((n,r)=>y.jsxs(F,{className:Fn("raw-wrapper",{show:e===r}),direction:"row",children:[y.jsx("div",{className:Fn("action"),children:n[0]}),y.jsx("div",{className:Fn("entity"),children:n[1]}),y.jsx("div",{children:y.jsx(Q8,{color:L.SECONDARY_BLUE,size:2})})]},n[1]))})},HS=H(F)` overflow: hidden; height: 20px; position: relative; @@ -995,7 +995,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni .entity { color: ${L.SECONDARY_BLUE}; } -`,HS=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:"browse_gallery",children:[y.jsx("mask",{id:"mask0_1360_27257",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_1360_27257)",children:y.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),US=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_2638_2680)",children:y.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),WS=()=>{const{nodeCount:e,setNodeCount:t,setBudget:n}=Ji(o=>o),{fetchData:r,setAbortRequests:i}=Sn(o=>o),a=async()=>{e<1||(await r(n,i,"",{skip_cache:"true"}),t("CLEAR"))};return y.jsx(GS,{children:y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Latest"}),y.jsx("span",{className:"heading__icon",children:y.jsx(HS,{})})]}),e?y.jsx("div",{className:"button_container",children:y.jsx(YS,{className:"button","data-testid":"see_latest_button",onClick:a,startIcon:y.jsx(US,{}),children:`See Latest (${e})`})}):null]})})},YS=H(Dt)` +`,US=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:"browse_gallery",children:[y.jsx("mask",{id:"mask0_1360_27257",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_1360_27257)",children:y.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),WS=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[y.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_2638_2680)",children:y.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),YS=()=>{const{nodeCount:e,setNodeCount:t,setBudget:n}=Qi(o=>o),{fetchData:r,setAbortRequests:i}=Sn(o=>o),a=async()=>{e<1||(await r(n,i,"",{skip_cache:"true"}),t("CLEAR"))};return y.jsx(qS,{children:y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Latest"}),y.jsx("span",{className:"heading__icon",children:y.jsx(US,{})})]}),e?y.jsx("div",{className:"button_container",children:y.jsx(VS,{className:"button","data-testid":"see_latest_button",onClick:a,startIcon:y.jsx(WS,{}),children:`See Latest (${e})`})}):null]})})},VS=H(Dt)` && { width: 100%; margin-top: 1.2rem; @@ -1004,7 +1004,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni color: ${L.GRAY6}; } } -`,VS=B.memo(WS),GS=H(F)` +`,GS=B.memo(YS),qS=H(F)` .heading-container { display: flex; flex-direction: column; @@ -1058,40 +1058,40 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni } } } -`,qS=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:n,nextPage:r}=Sn(P=>P),i=No(),{currentSearch:a,setSidebarOpen:o,setRelevanceSelected:s}=At(P=>P),[l,u]=B.useState(0),[f,d]=B.useState(0),h=Kg(),g=l*t+t,v=h&&h.length>0?h.length-1>g:!1,b=G8("sm","down"),O=B.useCallback(P=>{t8(P),n(P),s(!0),i(P),b&&o(!1)},[i,s,o,n,b]),C=()=>{r(),v&&(u(l+1),d(P=>P+1))},k=B.useMemo(()=>{if(h){const P=[...h].sort((_,w)=>(w.date||0)-(_.date||0));return a&&P.sort((_,w)=>{const j=_.node_type==="topic"&&_.name.toLowerCase()===a.toLowerCase()?1:0;return(w.node_type==="topic"&&w.name.toLowerCase()===a.toLowerCase()?1:0)-j}),P.slice(0,g)}return[]},[h,a,g]);return y.jsxs(y.Fragment,{children:[(k??[]).map(P=>{const _=Wd(P),{image_url:w,date:j,boost:E,episode_title:I,show_title:z,node_type:M,text:D,source_link:W,name:Y,verified:V=!1,twitter_handle:X}=_||{};return M?y.jsx(Ud,{boostCount:E||0,date:j||0,episodeTitle:ji(I),imageUrl:w||"",name:Y||"",node:P,onClick:()=>{O(P)},showTitle:ji(z),sourceLink:W,text:D||"",twitterHandle:X,type:M,verified:V},_.ref_id):null}),y.jsx(XS,{align:"center",background:"BG1",direction:"row",justify:"center",children:v&&y.jsx(Dt,{onClick:C,size:"medium",children:"Load More"},f)})]})},KS=B.memo(qS),XS=H(F)` +`,KS=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:n,nextPage:r}=Sn(P=>P),i=Ro(),{currentSearch:a,setSidebarOpen:o,setRelevanceSelected:s}=At(P=>P),[l,u]=B.useState(0),[f,d]=B.useState(0),h=Xg(),g=l*t+t,v=h&&h.length>0?h.length-1>g:!1,b=q8("sm","down"),O=B.useCallback(P=>{n8(P),n(P),s(!0),i(P),b&&o(!1)},[i,s,o,n,b]),C=()=>{r(),v&&(u(l+1),d(P=>P+1))},k=B.useMemo(()=>{if(h){const P=[...h].sort((_,w)=>(w.date||0)-(_.date||0));return a&&P.sort((_,w)=>{const j=_.node_type==="topic"&&_.name.toLowerCase()===a.toLowerCase()?1:0;return(w.node_type==="topic"&&w.name.toLowerCase()===a.toLowerCase()?1:0)-j}),P.slice(0,g)}return[]},[h,a,g]);return y.jsxs(y.Fragment,{children:[(k??[]).map(P=>{const _=Yd(P),{image_url:w,date:j,boost:E,episode_title:I,show_title:z,node_type:M,text:D,source_link:W,name:Y,verified:V=!1,twitter_handle:X}=_||{};return M?y.jsx(Wd,{boostCount:E||0,date:j||0,episodeTitle:Ti(I),imageUrl:w||"",name:Y||"",node:P,onClick:()=>{O(P)},showTitle:Ti(z),sourceLink:W,text:D||"",twitterHandle:X,type:M,verified:V},_.ref_id):null}),y.jsx(ZS,{align:"center",background:"BG1",direction:"row",justify:"center",children:v&&y.jsx(Dt,{onClick:C,size:"medium",children:"Load More"},f)})]})},XS=B.memo(KS),ZS=H(F)` flex: 0 0 86px; -`,ZS=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),JS=e=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:y.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_5099_7163)",children:y.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),QS=e=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1259_28)",children:y.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),e_=async()=>{const e="/get_trends";return await zg.get(e)};function t_(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const n_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,r_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i_={};function o1(e,t){return((t||i_).jsx?r_:n_).test(e)}const a_=/[ \t\n\f\r]/g;function o_(e){return typeof e=="object"?e.type==="text"?s1(e.value):!1:s1(e)}function s1(e){return e.replace(a_,"")===""}class zo{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}zo.prototype.property={};zo.prototype.normal={};zo.prototype.space=null;function Ov(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&f_.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(u1,m_);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!u1.test(a)){let o=a.replace(d_,p_);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Gd}return new i(r,t)}function p_(e){return"-"+e.toLowerCase()}function m_(e){return e.charAt(1).toUpperCase()}const y_={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},g_=Ov([Pv,Cv,Tv,Ev,u_],"html"),qd=Ov([Pv,Cv,Tv,Ev,c_],"svg");function v_(e){return e.join(" ").trim()}var Mv={},c1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,x_=/\n/g,b_=/^\s*/,w_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,S_=/^:\s*/,__=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,O_=/^[;\s]*/,k_=/^\s+|\s+$/g,C_=` -`,f1="/",d1="*",Wr="",P_="comment",A_="declaration",j_=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var v=g.match(x_);v&&(n+=v.length);var b=g.lastIndexOf(C_);r=~b?g.length-b:r+g.length}function a(){var g={line:n,column:r};return function(v){return v.position=new o(g),u(),v}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(g){var v=g.exec(e);if(v){var b=v[0];return i(b),e=e.slice(b.length),v}}function u(){l(b_)}function f(g){var v;for(g=g||[];v=d();)v!==!1&&g.push(v);return g}function d(){var g=a();if(!(f1!=e.charAt(0)||d1!=e.charAt(1))){for(var v=2;Wr!=e.charAt(v)&&(d1!=e.charAt(v)||f1!=e.charAt(v+1));)++v;if(v+=2,Wr===e.charAt(v-1))return s("End of comment missing");var b=e.slice(2,v-2);return r+=2,i(b),e=e.slice(v),r+=2,g({type:P_,comment:b})}}function h(){var g=a(),v=l(w_);if(v){if(d(),!l(S_))return s("property missing ':'");var b=l(__),O=g({type:A_,property:h1(v[0].replace(c1,Wr)),value:b?h1(b[0].replace(c1,Wr)):Wr});return l(O_),O}}function m(){var g=[];f(g);for(var v;v=h();)v!==!1&&(g.push(v),f(g));return g}return u(),m()};function h1(e){return e?e.replace(k_,Wr):Wr}var T_=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mv,"__esModule",{value:!0});var E_=T_(j_);function M_(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,E_.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}var p1=Mv.default=M_;const $_=p1.default||p1,$v=Iv("end"),Kd=Iv("start");function Iv(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function I_(e){const t=Kd(e),n=$v(e);if(t&&n)return{start:t,end:n}}function Ra(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?m1(e.position):"start"in e||"end"in e?m1(e):"line"in e||"column"in e?ff(e):""}function ff(e){return y1(e&&e.line)+":"+y1(e&&e.column)}function m1(e){return ff(e&&e.start)+"-"+ff(e&&e.end)}function y1(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Ra(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const Xd={}.hasOwnProperty,D_=new Map,L_=/[A-Z]/g,N_=/-([a-z])/g,R_=new Set(["table","tbody","thead","tfoot","tr"]),B_=new Set(["td","th"]),Dv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function z_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=q_(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=G_(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?qd:g_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Lv(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Lv(e,t,n){if(t.type==="element")return F_(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return H_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return W_(e,t,n);if(t.type==="mdxjsEsm")return U_(e,t);if(t.type==="root")return Y_(e,t,n);if(t.type==="text")return V_(e,t)}function F_(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=qd,e.schema=i),e.ancestors.push(t);const a=Rv(e,t.tagName,!1),o=K_(e,t);let s=Jd(e,t);return R_.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!o_(l):!0})),Nv(e,o,a,t),Zd(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function H_(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ga(e,t.position)}function U_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ga(e,t.position)}function W_(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=qd,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Rv(e,t.name,!0),o=X_(e,t),s=Jd(e,t);return Nv(e,o,a,t),Zd(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Y_(e,t,n){const r={};return Zd(r,Jd(e,t)),e.create(t,e.Fragment,r,n)}function V_(e,t){return t.value}function Nv(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Zd(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function G_(e,t,n){return r;function r(i,a,o,s){const u=Array.isArray(o.children)?n:t;return s?u(a,o,s):u(a,o)}}function q_(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=Kd(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function K_(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Xd.call(t.properties,i)){const a=Z_(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&B_.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function X_(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Ga(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else Ga(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Jd(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:D_;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Wn(e,e.length,0,t),e):t}const x1={}.hasOwnProperty;function o7(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ki(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const u7=Er(/\p{P}/u),Bn=Er(/[A-Za-z]/),ln=Er(/[\dA-Za-z]/),c7=Er(/[#-'*+\--9=?A-Z^-~]/);function df(e){return e!==null&&(e<32||e===127)}const hf=Er(/\d/),f7=Er(/[\dA-Fa-f]/),Fv=Er(/[!-/:-@[-`{-~]/);function be(e){return e!==null&&e<-2}function Qt(e){return e!==null&&(e<0||e===32)}function We(e){return e===-2||e===-1||e===32}function d7(e){return Fv(e)||u7(e)}const h7=Er(/\s/);function Er(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ra(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function nt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return We(l)?(e.enter(n),s(l)):t(l)}function s(l){return We(l)&&a++o))return;const j=t.events.length;let E=j,I,z;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if(I){z=t.events[E][1].end;break}I=!0}for(O(r),w=j;wk;){const _=n[P];t.containerState=_[1],_[0].exit.call(t,e)}n.length=k}function C(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function v7(e,t,n){return nt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function w1(e){if(e===null||Qt(e)||h7(e))return 1;if(d7(e))return 2}function eh(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);S1(d,-l),S1(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=yn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=yn(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=yn(u,eh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=yn(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=yn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Wn(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n0&&We(w)?nt(e,C,"linePrefix",a+1)(w):C(w)}function C(w){return w===null||be(w)?e.check(_1,v,P)(w):(e.enter("codeFlowValue"),k(w))}function k(w){return w===null||be(w)?(e.exit("codeFlowValue"),C(w)):(e.consume(w),k)}function P(w){return e.exit("codeFenced"),t(w)}function _(w,j,E){let I=0;return z;function z(V){return w.enter("lineEnding"),w.consume(V),w.exit("lineEnding"),M}function M(V){return w.enter("codeFencedFence"),We(V)?nt(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):D(V)}function D(V){return V===s?(w.enter("codeFencedFenceSequence"),W(V)):E(V)}function W(V){return V===s?(I++,w.consume(V),W):I>=o?(w.exit("codeFencedFenceSequence"),We(V)?nt(w,Y,"whitespace")(V):Y(V)):E(V)}function Y(V){return V===null||be(V)?(w.exit("codeFencedFence"),j(V)):E(V)}}}function T7(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const gc={name:"codeIndented",tokenize:M7},E7={tokenize:$7,partial:!0};function M7(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),nt(e,a,"linePrefix",4+1)(u)}function a(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):be(u)?e.attempt(E7,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||be(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function $7(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):nt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):be(o)?i(o):n(o)}}const I7={name:"codeText",tokenize:N7,resolve:D7,previous:L7};function D7(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Vv(e,t,n,r,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(O){return O===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(O),e.exit(a),h):O===null||O===32||O===41||df(O)?n(O):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(O))}function h(O){return O===62?(e.enter(a),e.consume(O),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(O))}function m(O){return O===62?(e.exit("chunkString"),e.exit(s),h(O)):O===null||O===60||be(O)?n(O):(e.consume(O),O===92?g:m)}function g(O){return O===60||O===62||O===92?(e.consume(O),m):m(O)}function v(O){return!f&&(O===null||O===41||Qt(O))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(O)):f999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):be(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||be(m)||s++>999?(e.exit("chunkString"),f(m)):(e.consume(m),l||(l=!We(m)),m===92?h:d)}function h(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function qv(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),u(h))}function u(h){return h===o?(e.exit(a),l(o)):h===null?n(h):be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||be(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:f)}function d(h){return h===o||h===92?(e.consume(h),f):f(h)}}function Ba(e,t){let n;return r;function r(i){return be(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):We(i)?nt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const W7={name:"definition",tokenize:V7},Y7={tokenize:G7,partial:!0};function V7(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),o(m)}function o(m){return Gv.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=ki(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return Qt(m)?Ba(e,u)(m):u(m)}function u(m){return Vv(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(Y7,d,d)(m)}function d(m){return We(m)?nt(e,h,"whitespace")(m):h(m)}function h(m){return m===null||be(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function G7(e,t,n){return r;function r(s){return Qt(s)?Ba(e,i)(s):n(s)}function i(s){return qv(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return We(s)?nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||be(s)?t(s):n(s)}}const q7={name:"hardBreakEscape",tokenize:K7};function K7(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return be(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const X7={name:"headingAtx",tokenize:J7,resolve:Z7};function Z7(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Wn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function J7(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||Qt(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||be(f)?(e.exit("atxHeading"),t(f)):We(f)?nt(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||Qt(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const Q7=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],k1=["pre","script","style","textarea"],eO={name:"htmlFlow",tokenize:iO,resolveTo:rO,concrete:!0},tO={tokenize:oO,partial:!0},nO={tokenize:aO,partial:!0};function rO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function iO(e,t,n){const r=this;let i,a,o,s,l;return u;function u($){return f($)}function f($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),d}function d($){return $===33?(e.consume($),h):$===47?(e.consume($),a=!0,v):$===63?(e.consume($),i=3,r.interrupt?t:T):Bn($)?(e.consume($),o=String.fromCharCode($),b):n($)}function h($){return $===45?(e.consume($),i=2,m):$===91?(e.consume($),i=5,s=0,g):Bn($)?(e.consume($),i=4,r.interrupt?t:T):n($)}function m($){return $===45?(e.consume($),r.interrupt?t:T):n($)}function g($){const _e="CDATA[";return $===_e.charCodeAt(s++)?(e.consume($),s===_e.length?r.interrupt?t:D:g):n($)}function v($){return Bn($)?(e.consume($),o=String.fromCharCode($),b):n($)}function b($){if($===null||$===47||$===62||Qt($)){const _e=$===47,te=o.toLowerCase();return!_e&&!a&&k1.includes(te)?(i=1,r.interrupt?t($):D($)):Q7.includes(o.toLowerCase())?(i=6,_e?(e.consume($),O):r.interrupt?t($):D($)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n($):a?C($):k($))}return $===45||ln($)?(e.consume($),o+=String.fromCharCode($),b):n($)}function O($){return $===62?(e.consume($),r.interrupt?t:D):n($)}function C($){return We($)?(e.consume($),C):z($)}function k($){return $===47?(e.consume($),z):$===58||$===95||Bn($)?(e.consume($),P):We($)?(e.consume($),k):z($)}function P($){return $===45||$===46||$===58||$===95||ln($)?(e.consume($),P):_($)}function _($){return $===61?(e.consume($),w):We($)?(e.consume($),_):k($)}function w($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),l=$,j):We($)?(e.consume($),w):E($)}function j($){return $===l?(e.consume($),l=null,I):$===null||be($)?n($):(e.consume($),j)}function E($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||Qt($)?_($):(e.consume($),E)}function I($){return $===47||$===62||We($)?k($):n($)}function z($){return $===62?(e.consume($),M):n($)}function M($){return $===null||be($)?D($):We($)?(e.consume($),M):n($)}function D($){return $===45&&i===2?(e.consume($),X):$===60&&i===1?(e.consume($),Z):$===62&&i===4?(e.consume($),pe):$===63&&i===3?(e.consume($),T):$===93&&i===5?(e.consume($),Q):be($)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(tO,ue,W)($)):$===null||be($)?(e.exit("htmlFlowData"),W($)):(e.consume($),D)}function W($){return e.check(nO,Y,ue)($)}function Y($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),V}function V($){return $===null||be($)?W($):(e.enter("htmlFlowData"),D($))}function X($){return $===45?(e.consume($),T):D($)}function Z($){return $===47?(e.consume($),o="",G):D($)}function G($){if($===62){const _e=o.toLowerCase();return k1.includes(_e)?(e.consume($),pe):D($)}return Bn($)&&o.length<8?(e.consume($),o+=String.fromCharCode($),G):D($)}function Q($){return $===93?(e.consume($),T):D($)}function T($){return $===62?(e.consume($),pe):$===45&&i===2?(e.consume($),T):D($)}function pe($){return $===null||be($)?(e.exit("htmlFlowData"),ue($)):(e.consume($),pe)}function ue($){return e.exit("htmlFlow"),t($)}}function aO(e,t,n){const r=this;return i;function i(o){return be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function oO(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Xl,t,n)}}const sO={name:"htmlText",tokenize:lO};function lO(e,t,n){const r=this;let i,a,o;return s;function s(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),l}function l(T){return T===33?(e.consume(T),u):T===47?(e.consume(T),_):T===63?(e.consume(T),k):Bn(T)?(e.consume(T),E):n(T)}function u(T){return T===45?(e.consume(T),f):T===91?(e.consume(T),a=0,g):Bn(T)?(e.consume(T),C):n(T)}function f(T){return T===45?(e.consume(T),m):n(T)}function d(T){return T===null?n(T):T===45?(e.consume(T),h):be(T)?(o=d,Z(T)):(e.consume(T),d)}function h(T){return T===45?(e.consume(T),m):d(T)}function m(T){return T===62?X(T):T===45?h(T):d(T)}function g(T){const pe="CDATA[";return T===pe.charCodeAt(a++)?(e.consume(T),a===pe.length?v:g):n(T)}function v(T){return T===null?n(T):T===93?(e.consume(T),b):be(T)?(o=v,Z(T)):(e.consume(T),v)}function b(T){return T===93?(e.consume(T),O):v(T)}function O(T){return T===62?X(T):T===93?(e.consume(T),O):v(T)}function C(T){return T===null||T===62?X(T):be(T)?(o=C,Z(T)):(e.consume(T),C)}function k(T){return T===null?n(T):T===63?(e.consume(T),P):be(T)?(o=k,Z(T)):(e.consume(T),k)}function P(T){return T===62?X(T):k(T)}function _(T){return Bn(T)?(e.consume(T),w):n(T)}function w(T){return T===45||ln(T)?(e.consume(T),w):j(T)}function j(T){return be(T)?(o=j,Z(T)):We(T)?(e.consume(T),j):X(T)}function E(T){return T===45||ln(T)?(e.consume(T),E):T===47||T===62||Qt(T)?I(T):n(T)}function I(T){return T===47?(e.consume(T),X):T===58||T===95||Bn(T)?(e.consume(T),z):be(T)?(o=I,Z(T)):We(T)?(e.consume(T),I):X(T)}function z(T){return T===45||T===46||T===58||T===95||ln(T)?(e.consume(T),z):M(T)}function M(T){return T===61?(e.consume(T),D):be(T)?(o=M,Z(T)):We(T)?(e.consume(T),M):I(T)}function D(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),i=T,W):be(T)?(o=D,Z(T)):We(T)?(e.consume(T),D):(e.consume(T),Y)}function W(T){return T===i?(e.consume(T),i=void 0,V):T===null?n(T):be(T)?(o=W,Z(T)):(e.consume(T),W)}function Y(T){return T===null||T===34||T===39||T===60||T===61||T===96?n(T):T===47||T===62||Qt(T)?I(T):(e.consume(T),Y)}function V(T){return T===47||T===62||Qt(T)?I(T):n(T)}function X(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):n(T)}function Z(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),G}function G(T){return We(T)?nt(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):Q(T)}function Q(T){return e.enter("htmlTextData"),o(T)}}const th={name:"labelEnd",tokenize:pO,resolveTo:hO,resolveAll:dO},uO={tokenize:mO},cO={tokenize:yO},fO={tokenize:gO};function dO(e){let t=-1;for(;++t=3&&(u===null||be(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),We(u)?nt(e,s,"whitespace")(u):s(u))}}const Zt={name:"list",tokenize:CO,continuation:{tokenize:PO},exit:jO},OO={tokenize:TO,partial:!0},kO={tokenize:AO,partial:!0};function CO(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(m){const g=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:hf(m)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Bs,n,u)(m):u(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return hf(m)&&++o<10?(e.consume(m),l):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Xl,r.interrupt?n:f,e.attempt(OO,h,d))}function f(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function d(m){return We(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function PO(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xl,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!We(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(kO,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,nt(e,e.attempt(Zt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function AO(e,t,n){const r=this;return nt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function jO(e){e.exit(this.containerState.type)}function TO(e,t,n){const r=this;return nt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!We(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const C1={name:"setextUnderline",tokenize:MO,resolveTo:EO};function EO(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function MO(e,t,n){const r=this;let i;return a;function a(u){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),We(u)?nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||be(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const $O={tokenize:IO};function IO(e){const t=this,n=e.attempt(Xl,r,e.attempt(this.parser.constructs.flowInitial,i,nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(B7,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const DO={resolveAll:Xv()},LO=Kv("string"),NO=Kv("text");function Kv(e){return{tokenize:t,resolveAll:Xv(e==="text"?RO:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(f){return u(f)?a(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),a(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const d=i[f];let h=-1;if(d)for(;++h-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function FO(e,t){let n=-1;const r=[];let i;for(;++ny.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),QS=e=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:y.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_5099_7163)",children:y.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),e_=e=>y.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[y.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:y.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1259_28)",children:y.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),t_=async()=>{const e="/get_trends";return await Fg.get(e)};function n_(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const r_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a_={};function s1(e,t){return((t||a_).jsx?i_:r_).test(e)}const o_=/[ \t\n\f\r]/g;function s_(e){return typeof e=="object"?e.type==="text"?l1(e.value):!1:l1(e)}function l1(e){return e.replace(o_,"")===""}class Fo{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Fo.prototype.property={};Fo.prototype.normal={};Fo.prototype.space=null;function kv(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&d_.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(c1,y_);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!c1.test(a)){let o=a.replace(h_,m_);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=qd}return new i(r,t)}function m_(e){return"-"+e.toLowerCase()}function y_(e){return e.charAt(1).toUpperCase()}const g_={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},v_=kv([Av,Pv,Ev,Mv,c_],"html"),Kd=kv([Av,Pv,Ev,Mv,f_],"svg");function x_(e){return e.join(" ").trim()}var $v={},f1=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,b_=/\n/g,w_=/^\s*/,S_=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,__=/^:\s*/,O_=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,k_=/^[;\s]*/,C_=/^\s+|\s+$/g,P_=` +`,d1="/",h1="*",Yr="",A_="comment",j_="declaration",T_=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var v=g.match(b_);v&&(n+=v.length);var b=g.lastIndexOf(P_);r=~b?g.length-b:r+g.length}function a(){var g={line:n,column:r};return function(v){return v.position=new o(g),u(),v}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(g){var v=new Error(t.source+":"+n+":"+r+": "+g);if(v.reason=g,v.filename=t.source,v.line=n,v.column=r,v.source=e,!t.silent)throw v}function l(g){var v=g.exec(e);if(v){var b=v[0];return i(b),e=e.slice(b.length),v}}function u(){l(w_)}function f(g){var v;for(g=g||[];v=d();)v!==!1&&g.push(v);return g}function d(){var g=a();if(!(d1!=e.charAt(0)||h1!=e.charAt(1))){for(var v=2;Yr!=e.charAt(v)&&(h1!=e.charAt(v)||d1!=e.charAt(v+1));)++v;if(v+=2,Yr===e.charAt(v-1))return s("End of comment missing");var b=e.slice(2,v-2);return r+=2,i(b),e=e.slice(v),r+=2,g({type:A_,comment:b})}}function h(){var g=a(),v=l(S_);if(v){if(d(),!l(__))return s("property missing ':'");var b=l(O_),O=g({type:j_,property:p1(v[0].replace(f1,Yr)),value:b?p1(b[0].replace(f1,Yr)):Yr});return l(k_),O}}function m(){var g=[];f(g);for(var v;v=h();)v!==!1&&(g.push(v),f(g));return g}return u(),m()};function p1(e){return e?e.replace(C_,Yr):Yr}var E_=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($v,"__esModule",{value:!0});var M_=E_(T_);function $_(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,M_.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var o=a.property,s=a.value;i?t(o,s,a):s&&(n=n||{},n[o]=s)}}),n}var m1=$v.default=$_;const I_=m1.default||m1,Iv=Dv("end"),Xd=Dv("start");function Dv(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function D_(e){const t=Xd(e),n=Iv(e);if(t&&n)return{start:t,end:n}}function Ba(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?y1(e.position):"start"in e||"end"in e?y1(e):"line"in e||"column"in e?df(e):""}function df(e){return g1(e&&e.line)+":"+g1(e&&e.column)}function y1(e){return df(e&&e.start)+"-"+df(e&&e.end)}function g1(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},o=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Ba(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const Zd={}.hasOwnProperty,L_=new Map,N_=/[A-Z]/g,R_=/-([a-z])/g,B_=new Set(["table","tbody","thead","tfoot","tr"]),z_=new Set(["td","th"]),Lv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function F_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=K_(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=q_(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Kd:v_,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Nv(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Nv(e,t,n){if(t.type==="element")return H_(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return U_(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Y_(e,t,n);if(t.type==="mdxjsEsm")return W_(e,t);if(t.type==="root")return V_(e,t,n);if(t.type==="text")return G_(e,t)}function H_(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Kd,e.schema=i),e.ancestors.push(t);const a=Bv(e,t.tagName,!1),o=X_(e,t);let s=Qd(e,t);return B_.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!s_(l):!0})),Rv(e,o,a,t),Jd(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function U_(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}qa(e,t.position)}function W_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);qa(e,t.position)}function Y_(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Kd,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Bv(e,t.name,!0),o=Z_(e,t),s=Qd(e,t);return Rv(e,o,a,t),Jd(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function V_(e,t,n){const r={};return Jd(r,Qd(e,t)),e.create(t,e.Fragment,r,n)}function G_(e,t){return t.value}function Rv(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Jd(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function q_(e,t,n){return r;function r(i,a,o,s){const u=Array.isArray(o.children)?n:t;return s?u(a,o,s):u(a,o)}}function K_(e,t){return n;function n(r,i,a,o){const s=Array.isArray(a.children),l=Xd(r);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function X_(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Zd.call(t.properties,i)){const a=J_(e,i,t.properties[i]);if(a){const[o,s]=a;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&z_.has(t.tagName)?r=s:n[o]=s}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Z_(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const o=a.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else qa(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,a=e.evaluater.evaluateExpression(s.expression)}else qa(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Qd(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:L_;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(Wn(e,e.length,0,t),e):t}const b1={}.hasOwnProperty;function s7(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const c7=Mr(/\p{P}/u),Bn=Mr(/[A-Za-z]/),ln=Mr(/[\dA-Za-z]/),f7=Mr(/[#-'*+\--9=?A-Z^-~]/);function hf(e){return e!==null&&(e<32||e===127)}const pf=Mr(/\d/),d7=Mr(/[\dA-Fa-f]/),Hv=Mr(/[!-/:-@[-`{-~]/);function be(e){return e!==null&&e<-2}function Qt(e){return e!==null&&(e<0||e===32)}function We(e){return e===-2||e===-1||e===32}function h7(e){return Hv(e)||c7(e)}const p7=Mr(/\s/);function Mr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ia(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function nt(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return We(l)?(e.enter(n),s(l)):t(l)}function s(l){return We(l)&&a++o))return;const j=t.events.length;let E=j,I,z;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){if(I){z=t.events[E][1].end;break}I=!0}for(O(r),w=j;wk;){const _=n[P];t.containerState=_[1],_[0].exit.call(t,e)}n.length=k}function C(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function x7(e,t,n){return nt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function S1(e){if(e===null||Qt(e)||p7(e))return 1;if(h7(e))return 2}function th(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);_1(d,-l),_1(h,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=yn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=yn(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=yn(u,th(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=yn(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=yn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Wn(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n0&&We(w)?nt(e,C,"linePrefix",a+1)(w):C(w)}function C(w){return w===null||be(w)?e.check(O1,v,P)(w):(e.enter("codeFlowValue"),k(w))}function k(w){return w===null||be(w)?(e.exit("codeFlowValue"),C(w)):(e.consume(w),k)}function P(w){return e.exit("codeFenced"),t(w)}function _(w,j,E){let I=0;return z;function z(V){return w.enter("lineEnding"),w.consume(V),w.exit("lineEnding"),M}function M(V){return w.enter("codeFencedFence"),We(V)?nt(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):D(V)}function D(V){return V===s?(w.enter("codeFencedFenceSequence"),W(V)):E(V)}function W(V){return V===s?(I++,w.consume(V),W):I>=o?(w.exit("codeFencedFenceSequence"),We(V)?nt(w,Y,"whitespace")(V):Y(V)):E(V)}function Y(V){return V===null||be(V)?(w.exit("codeFencedFence"),j(V)):E(V)}}}function E7(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const vc={name:"codeIndented",tokenize:$7},M7={tokenize:I7,partial:!0};function $7(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),nt(e,a,"linePrefix",4+1)(u)}function a(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):be(u)?e.attempt(M7,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||be(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function I7(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):nt(e,a,"linePrefix",4+1)(o)}function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):be(o)?i(o):n(o)}}const D7={name:"codeText",tokenize:R7,resolve:L7,previous:N7};function L7(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Gv(e,t,n,r,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(O){return O===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(O),e.exit(a),h):O===null||O===32||O===41||hf(O)?n(O):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(O))}function h(O){return O===62?(e.enter(a),e.consume(O),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(O))}function m(O){return O===62?(e.exit("chunkString"),e.exit(s),h(O)):O===null||O===60||be(O)?n(O):(e.consume(O),O===92?g:m)}function g(O){return O===60||O===62||O===92?(e.consume(O),m):m(O)}function v(O){return!f&&(O===null||O===41||Qt(O))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(O)):f999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(a),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):be(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||be(m)||s++>999?(e.exit("chunkString"),f(m)):(e.consume(m),l||(l=!We(m)),m===92?h:d)}function h(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function Kv(e,t,n,r,i,a){let o;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,l):n(h)}function l(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),u(h))}function u(h){return h===o?(e.exit(a),l(o)):h===null?n(h):be(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||be(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?d:f)}function d(h){return h===o||h===92?(e.consume(h),f):f(h)}}function za(e,t){let n;return r;function r(i){return be(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):We(i)?nt(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Y7={name:"definition",tokenize:G7},V7={tokenize:q7,partial:!0};function G7(e,t,n){const r=this;let i;return a;function a(m){return e.enter("definition"),o(m)}function o(m){return qv.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=Ci(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return Qt(m)?za(e,u)(m):u(m)}function u(m){return Gv(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(V7,d,d)(m)}function d(m){return We(m)?nt(e,h,"whitespace")(m):h(m)}function h(m){return m===null||be(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function q7(e,t,n){return r;function r(s){return Qt(s)?za(e,i)(s):n(s)}function i(s){return Kv(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return We(s)?nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||be(s)?t(s):n(s)}}const K7={name:"hardBreakEscape",tokenize:X7};function X7(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return be(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const Z7={name:"headingAtx",tokenize:Q7,resolve:J7};function J7(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Wn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Q7(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||Qt(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||be(f)?(e.exit("atxHeading"),t(f)):We(f)?nt(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||Qt(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const eO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],C1=["pre","script","style","textarea"],tO={name:"htmlFlow",tokenize:aO,resolveTo:iO,concrete:!0},nO={tokenize:sO,partial:!0},rO={tokenize:oO,partial:!0};function iO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function aO(e,t,n){const r=this;let i,a,o,s,l;return u;function u($){return f($)}function f($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),d}function d($){return $===33?(e.consume($),h):$===47?(e.consume($),a=!0,v):$===63?(e.consume($),i=3,r.interrupt?t:T):Bn($)?(e.consume($),o=String.fromCharCode($),b):n($)}function h($){return $===45?(e.consume($),i=2,m):$===91?(e.consume($),i=5,s=0,g):Bn($)?(e.consume($),i=4,r.interrupt?t:T):n($)}function m($){return $===45?(e.consume($),r.interrupt?t:T):n($)}function g($){const _e="CDATA[";return $===_e.charCodeAt(s++)?(e.consume($),s===_e.length?r.interrupt?t:D:g):n($)}function v($){return Bn($)?(e.consume($),o=String.fromCharCode($),b):n($)}function b($){if($===null||$===47||$===62||Qt($)){const _e=$===47,te=o.toLowerCase();return!_e&&!a&&C1.includes(te)?(i=1,r.interrupt?t($):D($)):eO.includes(o.toLowerCase())?(i=6,_e?(e.consume($),O):r.interrupt?t($):D($)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n($):a?C($):k($))}return $===45||ln($)?(e.consume($),o+=String.fromCharCode($),b):n($)}function O($){return $===62?(e.consume($),r.interrupt?t:D):n($)}function C($){return We($)?(e.consume($),C):z($)}function k($){return $===47?(e.consume($),z):$===58||$===95||Bn($)?(e.consume($),P):We($)?(e.consume($),k):z($)}function P($){return $===45||$===46||$===58||$===95||ln($)?(e.consume($),P):_($)}function _($){return $===61?(e.consume($),w):We($)?(e.consume($),_):k($)}function w($){return $===null||$===60||$===61||$===62||$===96?n($):$===34||$===39?(e.consume($),l=$,j):We($)?(e.consume($),w):E($)}function j($){return $===l?(e.consume($),l=null,I):$===null||be($)?n($):(e.consume($),j)}function E($){return $===null||$===34||$===39||$===47||$===60||$===61||$===62||$===96||Qt($)?_($):(e.consume($),E)}function I($){return $===47||$===62||We($)?k($):n($)}function z($){return $===62?(e.consume($),M):n($)}function M($){return $===null||be($)?D($):We($)?(e.consume($),M):n($)}function D($){return $===45&&i===2?(e.consume($),X):$===60&&i===1?(e.consume($),Z):$===62&&i===4?(e.consume($),pe):$===63&&i===3?(e.consume($),T):$===93&&i===5?(e.consume($),Q):be($)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(nO,ue,W)($)):$===null||be($)?(e.exit("htmlFlowData"),W($)):(e.consume($),D)}function W($){return e.check(rO,Y,ue)($)}function Y($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),V}function V($){return $===null||be($)?W($):(e.enter("htmlFlowData"),D($))}function X($){return $===45?(e.consume($),T):D($)}function Z($){return $===47?(e.consume($),o="",G):D($)}function G($){if($===62){const _e=o.toLowerCase();return C1.includes(_e)?(e.consume($),pe):D($)}return Bn($)&&o.length<8?(e.consume($),o+=String.fromCharCode($),G):D($)}function Q($){return $===93?(e.consume($),T):D($)}function T($){return $===62?(e.consume($),pe):$===45&&i===2?(e.consume($),T):D($)}function pe($){return $===null||be($)?(e.exit("htmlFlowData"),ue($)):(e.consume($),pe)}function ue($){return e.exit("htmlFlow"),t($)}}function oO(e,t,n){const r=this;return i;function i(o){return be(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):n(o)}function a(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function sO(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Zl,t,n)}}const lO={name:"htmlText",tokenize:uO};function uO(e,t,n){const r=this;let i,a,o;return s;function s(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),l}function l(T){return T===33?(e.consume(T),u):T===47?(e.consume(T),_):T===63?(e.consume(T),k):Bn(T)?(e.consume(T),E):n(T)}function u(T){return T===45?(e.consume(T),f):T===91?(e.consume(T),a=0,g):Bn(T)?(e.consume(T),C):n(T)}function f(T){return T===45?(e.consume(T),m):n(T)}function d(T){return T===null?n(T):T===45?(e.consume(T),h):be(T)?(o=d,Z(T)):(e.consume(T),d)}function h(T){return T===45?(e.consume(T),m):d(T)}function m(T){return T===62?X(T):T===45?h(T):d(T)}function g(T){const pe="CDATA[";return T===pe.charCodeAt(a++)?(e.consume(T),a===pe.length?v:g):n(T)}function v(T){return T===null?n(T):T===93?(e.consume(T),b):be(T)?(o=v,Z(T)):(e.consume(T),v)}function b(T){return T===93?(e.consume(T),O):v(T)}function O(T){return T===62?X(T):T===93?(e.consume(T),O):v(T)}function C(T){return T===null||T===62?X(T):be(T)?(o=C,Z(T)):(e.consume(T),C)}function k(T){return T===null?n(T):T===63?(e.consume(T),P):be(T)?(o=k,Z(T)):(e.consume(T),k)}function P(T){return T===62?X(T):k(T)}function _(T){return Bn(T)?(e.consume(T),w):n(T)}function w(T){return T===45||ln(T)?(e.consume(T),w):j(T)}function j(T){return be(T)?(o=j,Z(T)):We(T)?(e.consume(T),j):X(T)}function E(T){return T===45||ln(T)?(e.consume(T),E):T===47||T===62||Qt(T)?I(T):n(T)}function I(T){return T===47?(e.consume(T),X):T===58||T===95||Bn(T)?(e.consume(T),z):be(T)?(o=I,Z(T)):We(T)?(e.consume(T),I):X(T)}function z(T){return T===45||T===46||T===58||T===95||ln(T)?(e.consume(T),z):M(T)}function M(T){return T===61?(e.consume(T),D):be(T)?(o=M,Z(T)):We(T)?(e.consume(T),M):I(T)}function D(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),i=T,W):be(T)?(o=D,Z(T)):We(T)?(e.consume(T),D):(e.consume(T),Y)}function W(T){return T===i?(e.consume(T),i=void 0,V):T===null?n(T):be(T)?(o=W,Z(T)):(e.consume(T),W)}function Y(T){return T===null||T===34||T===39||T===60||T===61||T===96?n(T):T===47||T===62||Qt(T)?I(T):(e.consume(T),Y)}function V(T){return T===47||T===62||Qt(T)?I(T):n(T)}function X(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):n(T)}function Z(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),G}function G(T){return We(T)?nt(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):Q(T)}function Q(T){return e.enter("htmlTextData"),o(T)}}const nh={name:"labelEnd",tokenize:mO,resolveTo:pO,resolveAll:hO},cO={tokenize:yO},fO={tokenize:gO},dO={tokenize:vO};function hO(e){let t=-1;for(;++t=3&&(u===null||be(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),We(u)?nt(e,s,"whitespace")(u):s(u))}}const Zt={name:"list",tokenize:PO,continuation:{tokenize:AO},exit:TO},kO={tokenize:EO,partial:!0},CO={tokenize:jO,partial:!0};function PO(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(m){const g=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:pf(m)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(zs,n,u)(m):u(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return pf(m)&&++o<10?(e.consume(m),l):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Zl,r.interrupt?n:f,e.attempt(kO,h,d))}function f(m){return r.containerState.initialBlankLine=!0,a++,h(m)}function d(m){return We(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function AO(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Zl,i,a);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,nt(e,t,"listItemIndent",r.containerState.size+1)(s)}function a(s){return r.containerState.furtherBlankLines||!We(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(CO,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,nt(e,e.attempt(Zt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function jO(e,t,n){const r=this;return nt(e,i,"listItemIndent",r.containerState.size+1);function i(a){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(a):n(a)}}function TO(e){e.exit(this.containerState.type)}function EO(e,t,n){const r=this;return nt(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=r.events[r.events.length-1];return!We(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const P1={name:"setextUnderline",tokenize:$O,resolveTo:MO};function MO(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function $O(e,t,n){const r=this;let i;return a;function a(u){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),We(u)?nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||be(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const IO={tokenize:DO};function DO(e){const t=this,n=e.attempt(Zl,r,e.attempt(this.parser.constructs.flowInitial,i,nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(z7,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const LO={resolveAll:Zv()},NO=Xv("string"),RO=Xv("text");function Xv(e){return{tokenize:t,resolveAll:Zv(e==="text"?BO:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,o,s);return o;function o(f){return u(f)?a(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),a(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const d=i[f];let h=-1;if(d)for(;++h-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function HO(e,t){let n=-1;const r=[];let i;for(;++n0){const Re=ne.tokenStack[ne.tokenStack.length-1];(Re[1]||A1).call(ne,void 0,Re[0])}for(q.position={start:br(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:br(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function pk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mk(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Qv(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function yk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Qv(e,t);const i={src:ra(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function gk(e,t){const n={src:ra(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function vk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function xk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Qv(e,t);const i={href:ra(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function bk(e,t){const n={href:ra(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wk(e,t,n){const r=e.all(t),i=n?Sk(n):ex(t),a={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s0){const Re=ne.tokenStack[ne.tokenStack.length-1];(Re[1]||j1).call(ne,void 0,Re[0])}for(q.position={start:wr(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:wr(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function mk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yk(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ex(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function gk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ex(e,t);const i={src:ia(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function vk(e,t){const n={src:ia(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function xk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function bk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ex(e,t);const i={href:ia(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function wk(e,t){const n={href:ia(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Sk(e,t,n){const r=e.all(t),i=n?_k(n):tx(t),a={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function _k(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Kd(t.children[1]),l=$v(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Ak(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(E1(t.slice(i),i>0,!1)),a.join("")}function E1(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===j1||a===T1;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===j1||a===T1;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ek(e,t){const n={type:"text",value:Tk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Mk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const $k={blockquote:lk,break:uk,code:ck,delete:fk,emphasis:dk,footnoteReference:hk,heading:pk,html:mk,imageReference:yk,image:gk,inlineCode:vk,linkReference:xk,link:bk,listItem:wk,list:_k,paragraph:Ok,root:kk,strong:Ck,table:Pk,tableCell:jk,tableRow:Ak,text:Ek,thematicBreak:Mk,toml:Ss,yaml:Ss,definition:Ss,footnoteDefinition:Ss};function Ss(){}const tx=-1,Zl=0,Vs=1,Gs=2,nh=3,rh=4,ih=5,ah=6,nx=7,rx=8,M1=typeof self=="object"?self:globalThis,Ik=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Zl:case tx:return n(o,i);case Vs:{const s=n([],i);for(const l of o)s.push(r(l));return s}case Gs:{const s=n({},i);for(const[l,u]of o)s[r(l)]=r(u);return s}case nh:return n(new Date(o),i);case rh:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case ih:{const s=n(new Map,i);for(const[l,u]of o)s.set(r(l),r(u));return s}case ah:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case nx:{const{name:s,message:l}=o;return n(new M1[s](l),i)}case rx:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new M1[a](o),i)};return r},$1=e=>Ik(new Map,e)(0),pi="",{toString:Dk}={},{keys:Lk}=Object,Sa=e=>{const t=typeof e;if(t!=="object"||!e)return[Zl,t];const n=Dk.call(e).slice(8,-1);switch(n){case"Array":return[Vs,pi];case"Object":return[Gs,pi];case"Date":return[nh,pi];case"RegExp":return[rh,pi];case"Map":return[ih,pi];case"Set":return[ah,pi]}return n.includes("Array")?[Vs,n]:n.includes("Error")?[nx,n]:[Gs,n]},_s=([e,t])=>e===Zl&&(t==="function"||t==="symbol"),Nk=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=Sa(o);switch(s){case Zl:{let f=o;switch(l){case"bigint":s=rx,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([tx],o)}return i([s,f],o)}case Vs:{if(l)return i([l,[...o]],o);const f=[],d=i([s,f],o);for(const h of o)f.push(a(h));return d}case Gs:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const f=[],d=i([s,f],o);for(const h of Lk(o))(e||!_s(Sa(o[h])))&&f.push([a(h),a(o[h])]);return d}case nh:return i([s,o.toISOString()],o);case rh:{const{source:f,flags:d}=o;return i([s,{source:f,flags:d}],o)}case ih:{const f=[],d=i([s,f],o);for(const[h,m]of o)(e||!(_s(Sa(h))||_s(Sa(m))))&&f.push([a(h),a(m)]);return d}case ah:{const f=[],d=i([s,f],o);for(const h of o)(e||!_s(Sa(h)))&&f.push(a(h));return d}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},I1=(e,{json:t,lossy:n}={})=>{const r=[];return Nk(!(t||n),!!t,new Map,r)(e),r},qs=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?$1(I1(e,t)):structuredClone(e):(e,t)=>$1(I1(e,t));function Rk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Bk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function zk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Rk,r=e.options.footnoteBackLabel||Bk,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&g.push({type:"text",value:" "});let C=typeof n=="string"?n:n(l,m);typeof C=="string"&&(C={type:"text",value:C}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const b=f[f.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const C=b.children[b.children.length-1];C&&C.type==="text"?C.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...g)}else f.push(...g);const O={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,O),s.push(O)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...qs(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function _k(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function Ok(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Xd(t.children[1]),l=Iv(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function jk(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(M1(t.slice(i),i>0,!1)),a.join("")}function M1(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===T1||a===E1;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===T1||a===E1;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Mk(e,t){const n={type:"text",value:Ek(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function $k(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ik={blockquote:uk,break:ck,code:fk,delete:dk,emphasis:hk,footnoteReference:pk,heading:mk,html:yk,imageReference:gk,image:vk,inlineCode:xk,linkReference:bk,link:wk,listItem:Sk,list:Ok,paragraph:kk,root:Ck,strong:Pk,table:Ak,tableCell:Tk,tableRow:jk,text:Mk,thematicBreak:$k,toml:_s,yaml:_s,definition:_s,footnoteDefinition:_s};function _s(){}const nx=-1,Jl=0,Gs=1,qs=2,rh=3,ih=4,ah=5,oh=6,rx=7,ix=8,$1=typeof self=="object"?self:globalThis,Dk=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Jl:case nx:return n(o,i);case Gs:{const s=n([],i);for(const l of o)s.push(r(l));return s}case qs:{const s=n({},i);for(const[l,u]of o)s[r(l)]=r(u);return s}case rh:return n(new Date(o),i);case ih:{const{source:s,flags:l}=o;return n(new RegExp(s,l),i)}case ah:{const s=n(new Map,i);for(const[l,u]of o)s.set(r(l),r(u));return s}case oh:{const s=n(new Set,i);for(const l of o)s.add(r(l));return s}case rx:{const{name:s,message:l}=o;return n(new $1[s](l),i)}case ix:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new $1[a](o),i)};return r},I1=e=>Dk(new Map,e)(0),mi="",{toString:Lk}={},{keys:Nk}=Object,_a=e=>{const t=typeof e;if(t!=="object"||!e)return[Jl,t];const n=Lk.call(e).slice(8,-1);switch(n){case"Array":return[Gs,mi];case"Object":return[qs,mi];case"Date":return[rh,mi];case"RegExp":return[ih,mi];case"Map":return[ah,mi];case"Set":return[oh,mi]}return n.includes("Array")?[Gs,n]:n.includes("Error")?[rx,n]:[qs,n]},Os=([e,t])=>e===Jl&&(t==="function"||t==="symbol"),Rk=(e,t,n,r)=>{const i=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},a=o=>{if(n.has(o))return n.get(o);let[s,l]=_a(o);switch(s){case Jl:{let f=o;switch(l){case"bigint":s=ix,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([nx],o)}return i([s,f],o)}case Gs:{if(l)return i([l,[...o]],o);const f=[],d=i([s,f],o);for(const h of o)f.push(a(h));return d}case qs:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const f=[],d=i([s,f],o);for(const h of Nk(o))(e||!Os(_a(o[h])))&&f.push([a(h),a(o[h])]);return d}case rh:return i([s,o.toISOString()],o);case ih:{const{source:f,flags:d}=o;return i([s,{source:f,flags:d}],o)}case ah:{const f=[],d=i([s,f],o);for(const[h,m]of o)(e||!(Os(_a(h))||Os(_a(m))))&&f.push([a(h),a(m)]);return d}case oh:{const f=[],d=i([s,f],o);for(const h of o)(e||!Os(_a(h)))&&f.push(a(h));return d}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},D1=(e,{json:t,lossy:n}={})=>{const r=[];return Rk(!(t||n),!!t,new Map,r)(e),r},Ks=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?I1(D1(e,t)):structuredClone(e):(e,t)=>I1(D1(e,t));function Bk(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function zk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Fk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Bk,r=e.options.footnoteBackLabel||zk,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&g.push({type:"text",value:" "});let C=typeof n=="string"?n:n(l,m);typeof C=="string"&&(C={type:"text",value:C}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const b=f[f.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const C=b.children[b.children.length-1];C&&C.type==="text"?C.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...g)}else f.push(...g);const O={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,O),s.push(O)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ks(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const ix=function(e){if(e==null)return Wk;if(typeof e=="function")return Jl(e);if(typeof e=="object")return Array.isArray(e)?Fk(e):Hk(e);if(typeof e=="string")return Uk(e);throw new Error("Expected function, string, or object as test")};function Fk(e){const t=[];let n=-1;for(;++n":""))+")"})}return h;function h(){let m=ax,g,v,b;if((!t||a(l,u,f[f.length-1]||void 0))&&(m=Kk(n(l,f)),m[0]===D1))return m;if("children"in l&&l.children){const O=l;if(O.children&&m[0]!==Gk)for(v=(r?O.children.length:-1)+o,b=f.concat(O);v>-1&&v":""))+")"})}return h;function h(){let m=ox,g,v,b;if((!t||a(l,u,f[f.length-1]||void 0))&&(m=Xk(n(l,f)),m[0]===L1))return m;if("children"in l&&l.children){const O=l;if(O.children&&m[0]!==qk)for(v=(r?O.children.length:-1)+o,b=f.concat(O);v>-1&&v0&&n.push({type:"text",value:` -`}),n}function L1(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function N1(e,t){const n=Zk(e,t),r=n.one(e,void 0),i=zk(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function nC(e,t){return e&&"run"in e?async function(n,r){const i=N1(n,t);await e.run(i,r)}:function(n){return N1(n,t||e)}}function R1(e){if(e)throw e}var zs=Object.prototype.hasOwnProperty,sx=Object.prototype.toString,B1=Object.defineProperty,z1=Object.getOwnPropertyDescriptor,F1=function(t){return typeof Array.isArray=="function"?Array.isArray(t):sx.call(t)==="[object Array]"},H1=function(t){if(!t||sx.call(t)!=="[object Object]")return!1;var n=zs.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&zs.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||zs.call(t,i)},U1=function(t,n){B1&&n.name==="__proto__"?B1(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},W1=function(t,n){if(n==="__proto__")if(zs.call(t,n)){if(z1)return z1(t,n).value}else return;return t[n]},rC=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:oC,dirname:sC,extname:lC,join:uC,sep:"/"};function oC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Fo(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 sC(e){if(Fo(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 lC(e){Fo(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 uC(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function fC(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 Fo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dC={cwd:hC};function hC(){return"/"}function gf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pC(e){if(typeof e=="string")e=new URL(e);else if(!gf(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 mC(e)}function mC(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];yf(v)&&yf(m)&&(m=xc(!0,v,m)),r[h]=[u,m,...g]}}}}const xC=new oh().freeze();function _c(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Oc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function kc(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 V1(e){if(!yf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function G1(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Os(e){return bC(e)?e:new lx(e)}function bC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function wC(e){return typeof e=="string"||SC(e)}function SC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _C="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",q1=[],K1={allowDangerousHtml:!0},OC=/^(https?|ircs?|mailto|xmpp)$/i,kC=[{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 CC(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||q1,l=e.remarkPlugins||q1,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...K1}:K1,f=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||PC,m=xC().use(sk).use(l).use(nC,u).use(s),g=new lx;typeof r=="string"&&(g.value=r);for(const C of kC)Object.hasOwn(e,C.from)&&(""+C.from+(C.to?"use `"+C.to+"` instead":"remove it")+_C+C.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]}),ox(b,O),z_(b,{Fragment:y.Fragment,components:a,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function O(C,k,P){if(C.type==="raw"&&P&&typeof k=="number")return f?P.children.splice(k,1):P.children[k]={type:"text",value:C.value},k;if(C.type==="element"){let _;for(_ in yc)if(Object.hasOwn(yc,_)&&Object.hasOwn(C.properties,_)){const w=C.properties[_],j=yc[_];(j===null||j.includes(C.tagName))&&(C.properties[_]=h(String(w||""),_,C))}}if(C.type==="element"){let _=t?!t.includes(C.tagName):o?o.includes(C.tagName):!1;if(!_&&n&&typeof k=="number"&&(_=!n(C,k,P)),_&&P&&typeof k=="number")return d&&C.children?P.children.splice(k,1,...C.children):P.children.splice(k,1),k}}}function PC(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||OC.test(e.slice(0,t))?e:""}const AC=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"})})]})}),jC=({trend:e,onClose:t})=>{var b,O;const[n,r]=B.useState(!1),{close:i}=sf("briefDescription"),{currentPlayingAudio:a,setCurrentPlayingAudio:o}=At(C=>C),[s]=Ji(C=>[C.setBudget]),{fetchData:l,setAbortRequests:u}=Sn(C=>C),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 k,P,_;const C=!((k=a==null?void 0:a.current)!=null&&k.paused);C&&((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||!C)&&m()};B.useEffect(()=>{const C=f.current,k=()=>{r(!1),o(null)};return C&&C.addEventListener("ended",k),()=>{C&&C.removeEventListener("ended",k)}},[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(V4,{"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(IC,{children:[y.jsx(X1,{className:Fn("default",{play:v}),onClick:g,size:"small",startIcon:v?y.jsx(Wl,{}):y.jsx(AC,{}),children:v?"Pause":"Listen"}),y.jsx(X1,{className:"default",onClick:d,size:"small",startIcon:y.jsx(L4,{}),children:"Learn More"})]}),y.jsx($C,{ref:f,src:e.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null,y.jsxs(F,{mt:75,children:[y.jsx(MC,{children:e.tldr_topic??e.name}),y.jsx(TC,{children:y.jsx(F,{children:y.jsx(EC,{children:e.tldr&&y.jsx(CC,{children:e.tldr})})})})]})]})},TC=H.div` +`}),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 C of CC)Object.hasOwn(e,C.from)&&(""+C.from+(C.to?"use `"+C.to+"` instead":"remove it")+OC+C.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(C,k,P){if(C.type==="raw"&&P&&typeof k=="number")return f?P.children.splice(k,1):P.children[k]={type:"text",value:C.value},k;if(C.type==="element"){let _;for(_ in gc)if(Object.hasOwn(gc,_)&&Object.hasOwn(C.properties,_)){const w=C.properties[_],j=gc[_];(j===null||j.includes(C.tagName))&&(C.properties[_]=h(String(w||""),_,C))}}if(C.type==="element"){let _=t?!t.includes(C.tagName):o?o.includes(C.tagName):!1;if(!_&&n&&typeof k=="number"&&(_=!n(C,k,P)),_&&P&&typeof k=="number")return d&&C.children?P.children.splice(k,1,...C.children):P.children.splice(k,1),k}}}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}=lf("briefDescription"),{currentPlayingAudio:a,setCurrentPlayingAudio:o}=At(C=>C),[s]=Qi(C=>[C.setBudget]),{fetchData:l,setAbortRequests:u}=Sn(C=>C),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 k,P,_;const C=!((k=a==null?void 0:a.current)!=null&&k.paused);C&&((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||!C)&&m()};B.useEffect(()=>{const C=f.current,k=()=>{r(!1),o(null)};return C&&C.addEventListener("ended",k),()=>{C&&C.removeEventListener("ended",k)}},[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(G4,{"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(N4,{}),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; padding: 0 20px; -`,EC=H(ht)` +`,MC=H(ht)` font-size: 18px; font-weight: 400; font-family: 'Barlow'; * { all: revert; } -`,MC=H(ht)` +`,$C=H(ht)` font-weight: 600; font-size: 20px; padding: 0 20px; -`,$C=H.audio` +`,IC=H.audio` display: none; -`,X1=H(Dt)` +`,Z1=H(Dt)` && { &.default { font-size: 13px; @@ -1110,7 +1110,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni } } } -`,IC=H(F)` +`,DC=H(F)` top: 0px; position: absolute; border-radius: 16px 16px 0px 0px; @@ -1122,7 +1122,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni align-items: center; background-color: ${L.BG3}; gap: 10px; -`,DC=["Drivechain","Ordinals","L402","Nostr","AI"],LC=()=>{var z;const{open:e}=sf("addContent"),[t,n]=B.useState(!1),[r,i]=B.useState(!1),[a,o]=B.useState(null),s=B.useRef(null),[l,u]=B.useState(0),[f,d]=B.useState(!1),{currentPlayingAudio:h,setCurrentPlayingAudio:m}=At(M=>M),g=Hl(),{open:v}=sf("briefDescription"),{trendingTopics:b,setTrendingTopics:O}=Sn(M=>M),{setValue:C}=Nd(),k=B.useCallback(async()=>{n(!0),i(!1),u(0),d(!1),m(null);try{const M=await e_();if(M.length&&Array.isArray(M)){const D=new Map(M.map(Y=>[Y.name,Y])),W=Array.from(D.values());O(W)}}catch{O(DC.map(D=>({name:D,count:0})))}finally{n(!1)}},[m,O]);B.useEffect(()=>{b.length||k()},[k,b.length]),B.useEffect(()=>{const M=setTimeout(()=>{i(!0)},5e3);return()=>clearTimeout(M)},[i,t]);const P=M=>{C("search",M);const D=M.replace(/\s+/g,"+");g(`/search?q=${D}`)},_=(M,D)=>{M.stopPropagation(),M.currentTarget.blur(),D!=null&&D.tldr&&(o(D),v())},w=()=>{o(null)},j=M=>{M.stopPropagation(),M.currentTarget.blur(),d(!f),m(s)};B.useEffect(()=>{var M,D;f?(M=s.current)==null||M.play():(D=s.current)==null||D.pause()},[l,f]),B.useEffect(()=>{h||d(!1)},[h]);const E=()=>{u(M=>{var W,Y;let D=(M+1)%b.length;for(;D!==M&&!((W=b[D])!=null&&W.audio_EN);)D=(D+1)%b.length;return D===M?(d(!1),D):((Y=s.current)==null||Y.load(),D===0&&(d(!1),u(0)),D)}),m(s)},I=t?"Loading":"No new trending topics in the last 24 hours";return y.jsxs(RC,{"data-testid":"trending-component",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Trending Topics"}),y.jsx("span",{className:"heading__icon",children:t?y.jsx(Vl,{color:L.white,size:16}):y.jsx(y.Fragment,{children:r?y.jsx(zC,{onClick:k,size:"small",startIcon:y.jsx(JS,{})}):y.jsx(QS,{})})})]}),q8(b)?y.jsxs("div",{children:[y.jsx(Dt,{onClick:M=>j(M),startIcon:f?y.jsx(Wl,{}):y.jsx(Rd,{}),children:f?"Pause":"Play All"}),y.jsx(UC,{ref:s,onEnded:E,src:(z=b[l])==null?void 0:z.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?y.jsxs("div",{className:"trending-empty",children:[y.jsx(BC,{children:I}),y.jsx(Dt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:y.jsx(Bd,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):y.jsx("ul",{className:"list",children:b.map((M,D)=>y.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>P(M.tldr_topic??M.name),children:[y.jsxs(NC,{children:[y.jsx(HC,{children:y.jsx(ZS,{})}),y.jsx("span",{className:"tldr",children:K8(M)})]}),M.tldr&&y.jsx(FC,{className:Fn({isPlaying:l===D&&f}),onClick:W=>_(W,M),children:"TLDR"})]},M.name))})]}),a&&y.jsx(jC,{onClose:w,trend:a})]})},NC=H.div` +`,LC=["Drivechain","Ordinals","L402","Nostr","AI"],NC=()=>{var z;const{open:e}=lf("addContent"),[t,n]=B.useState(!1),[r,i]=B.useState(!1),[a,o]=B.useState(null),s=B.useRef(null),[l,u]=B.useState(0),[f,d]=B.useState(!1),{currentPlayingAudio:h,setCurrentPlayingAudio:m}=At(M=>M),g=Ul(),{open:v}=lf("briefDescription"),{trendingTopics:b,setTrendingTopics:O}=Sn(M=>M),{setValue:C}=Rd(),k=B.useCallback(async()=>{n(!0),i(!1),u(0),d(!1),m(null);try{const M=await t_();if(M.length&&Array.isArray(M)){const D=new Map(M.map(Y=>[Y.name,Y])),W=Array.from(D.values());O(W)}}catch{O(LC.map(D=>({name:D,count:0})))}finally{n(!1)}},[m,O]);B.useEffect(()=>{b.length||k()},[k,b.length]),B.useEffect(()=>{const M=setTimeout(()=>{i(!0)},5e3);return()=>clearTimeout(M)},[i,t]);const P=M=>{C("search",M);const D=M.replace(/\s+/g,"+");g(`/search?q=${D}`)},_=(M,D)=>{M.stopPropagation(),M.currentTarget.blur(),D!=null&&D.tldr&&(o(D),v())},w=()=>{o(null)},j=M=>{M.stopPropagation(),M.currentTarget.blur(),d(!f),m(s)};B.useEffect(()=>{var M,D;f?(M=s.current)==null||M.play():(D=s.current)==null||D.pause()},[l,f]),B.useEffect(()=>{h||d(!1)},[h]);const E=()=>{u(M=>{var W,Y;let D=(M+1)%b.length;for(;D!==M&&!((W=b[D])!=null&&W.audio_EN);)D=(D+1)%b.length;return D===M?(d(!1),D):((Y=s.current)==null||Y.load(),D===0&&(d(!1),u(0)),D)}),m(s)},I=t?"Loading":"No new trending topics in the last 24 hours";return y.jsxs(BC,{"data-testid":"trending-component",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"heading-container",children:[y.jsxs("div",{className:"heading",children:[y.jsx("span",{className:"heading__title",children:"Trending Topics"}),y.jsx("span",{className:"heading__icon",children:t?y.jsx(Gl,{color:L.white,size:16}):y.jsx(y.Fragment,{children:r?y.jsx(FC,{onClick:k,size:"small",startIcon:y.jsx(QS,{})}):y.jsx(e_,{})})})]}),K8(b)?y.jsxs("div",{children:[y.jsx(Dt,{onClick:M=>j(M),startIcon:f?y.jsx(Yl,{}):y.jsx(Bd,{}),children:f?"Pause":"Play All"}),y.jsx(WC,{ref:s,onEnded:E,src:(z=b[l])==null?void 0:z.audio_EN,children:y.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?y.jsxs("div",{className:"trending-empty",children:[y.jsx(zC,{children:I}),y.jsx(Dt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:y.jsx(zd,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):y.jsx("ul",{className:"list",children:b.map((M,D)=>y.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>P(M.tldr_topic??M.name),children:[y.jsxs(RC,{children:[y.jsx(UC,{children:y.jsx(JS,{})}),y.jsx("span",{className:"tldr",children:X8(M)})]}),M.tldr&&y.jsx(HC,{className:Fn({isPlaying:l===D&&f}),onClick:W=>_(W,M),children:"TLDR"})]},M.name))})]}),a&&y.jsx(TC,{onClose:w,trend:a})]})},RC=H.div` display: flex; align-items: center; width: 300px; @@ -1136,7 +1136,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni -webkit-box-orient: vertical; letter-spacing: 0.3pt; } -`,RC=H(F)` +`,BC=H(F)` .heading-container { display: flex; flex-direction: row; @@ -1191,10 +1191,10 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni } } } -`,BC=H.p` +`,zC=H.p` color: ${L.GRAY6}; margin-bottom: 20px; -`,zC=H(Dt)` +`,FC=H(Dt)` && { min-width: 28px; width: 28px; @@ -1207,7 +1207,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni align-items: center; } } -`,FC=H(Dt)` +`,HC=H(Dt)` && { &.isPlaying { font-weight: 700; @@ -1215,17 +1215,17 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni background-color: ${L.white}; } } -`,HC=H.span` +`,UC=H.span` justify-content: center; align-items: center; color: ${L.GRAY6}; margin-right: 4px; -`,UC=H.audio` +`,WC=H.audio` height: 0; width: 0; -`,WC=()=>{const{isFetching:e,setSidebarFilter:t}=Sn(E=>E),[n,r]=tv(E=>[E.schemas,E.setSchemas]),i=No(),a=Kg(),{currentSearch:o,clearSearch:s,searchFormValue:l}=At(E=>E),[u]=d4(E=>[E.trendingTopicsFeatureFlag]),{setValue:f,watch:d}=Nd(),h=B.useRef(null),[m,g]=B.useState(!1),[v,b]=B.useState(!1),[O,C]=B.useState(null),[k,P]=B.useState(!1);B.useEffect(()=>{f("search",l)},[f,l]),B.useEffect(()=>{const E=h.current;if(!E)return;const I=()=>{g((E==null?void 0:E.scrollTop)>0)};E.addEventListener("scroll",I)},[]);const _=d("search");B.useEffect(()=>{(async()=>{try{const I=await h4();r(I.schemas.filter(z=>!z.is_deleted))}catch(I){console.error("Error fetching schema:",I)}})()},[r]);const w=E=>{C(v?null:E.currentTarget),b(I=>!I),P(!1)},j=Hl();return y.jsxs(y.Fragment,{children:[y.jsxs(ux,{className:Fn({"has-shadow":m}),children:[y.jsxs(XC,{children:[y.jsxs(YC,{children:[y.jsx(dv,{}),y.jsx(GC,{"data-testid":"search_action_icon",onClick:()=>{if(o){f("search",""),s(),t("all"),i(null),j("/");return}if(_.trim()==="")return;const E=_.replace(/\s+/g,"+");j(`/search?q=${E}`)},children:e?y.jsx(Vl,{color:L.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:o!=null&&o.trim()?y.jsx(nv,{}):y.jsx(iv,{})})})]}),y.jsx(ZC,{"data-testid":"search_filter_icon",isFilterOpen:v,onClick:w,children:v?y.jsx(RS,{}):y.jsx(BS,{})}),y.jsx(_S,{anchorEl:O,schemaAll:n,setShowAllSchemas:P,showAllSchemas:k})]}),o&&y.jsx(VC,{children:e?y.jsx(zS,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:a.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(mS,{})})]})})]}),y.jsxs(qC,{ref:h,children:[!o&&u&&y.jsx(KC,{children:y.jsx(LC,{})}),!o&&y.jsx(VS,{}),e?y.jsx(yv,{}):y.jsx(KS,{isSearchResult:!!o})]})]})},ux=H(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:L.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),YC=H(F).attrs({direction:"row",justify:"center",align:"center"})` +`,YC=()=>{const{isFetching:e,setSidebarFilter:t}=Sn(E=>E),[n,r]=nv(E=>[E.schemas,E.setSchemas]),i=Ro(),a=Xg(),{currentSearch:o,clearSearch:s,searchFormValue:l}=At(E=>E),[u]=h4(E=>[E.trendingTopicsFeatureFlag]),{setValue:f,watch:d}=Rd(),h=B.useRef(null),[m,g]=B.useState(!1),[v,b]=B.useState(!1),[O,C]=B.useState(null),[k,P]=B.useState(!1);B.useEffect(()=>{f("search",l)},[f,l]),B.useEffect(()=>{const E=h.current;if(!E)return;const I=()=>{g((E==null?void 0:E.scrollTop)>0)};E.addEventListener("scroll",I)},[]);const _=d("search");B.useEffect(()=>{(async()=>{try{const I=await p4();r(I.schemas.filter(z=>!z.is_deleted))}catch(I){console.error("Error fetching schema:",I)}})()},[r]);const w=E=>{C(v?null:E.currentTarget),b(I=>!I),P(!1)},j=Ul();return y.jsxs(y.Fragment,{children:[y.jsxs(cx,{className:Fn({"has-shadow":m}),children:[y.jsxs(ZC,{children:[y.jsxs(VC,{children:[y.jsx(hv,{}),y.jsx(qC,{"data-testid":"search_action_icon",onClick:()=>{if(o){f("search",""),s(),t("all"),i(null),j("/");return}if(_.trim()==="")return;const E=_.replace(/\s+/g,"+");j(`/search?q=${E}`)},children:e?y.jsx(Gl,{color:L.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):y.jsx(y.Fragment,{children:o!=null&&o.trim()?y.jsx(rv,{}):y.jsx(av,{})})})]}),y.jsx(JC,{"data-testid":"search_filter_icon",isFilterOpen:v,onClick:w,children:v?y.jsx(BS,{}):y.jsx(zS,{})}),y.jsx(OS,{anchorEl:O,schemaAll:n,setShowAllSchemas:P,showAllSchemas:k})]}),o&&y.jsx(GC,{children:e?y.jsx(FS,{}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"left",children:[y.jsx("span",{className:"count",children:a.length}),y.jsx("span",{className:"label",children:" results"})]}),y.jsx("div",{className:"right",style:{alignItems:"center"},children:y.jsx(yS,{})})]})})]}),y.jsxs(KC,{ref:h,children:[!o&&u&&y.jsx(XC,{children:y.jsx(NC,{})}),!o&&y.jsx(GS,{}),e?y.jsx(gv,{}):y.jsx(XS,{isSearchResult:!!o})]})]})},cx=H(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:L.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),VC=H(F).attrs({direction:"row",justify:"center",align:"center"})` width: 85%; -`,VC=H(F).attrs({direction:"row",justify:"space-between",align:"center"})` +`,GC=H(F).attrs({direction:"row",justify:"space-between",align:"center"})` flex-grow: 1; color: ${L.GRAY6}; font-family: Barlow; @@ -1242,7 +1242,7 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni .right { display: flex; } -`,GC=H(F).attrs({align:"center",justify:"center",p:5})` +`,qC=H(F).attrs({align:"center",justify:"center",p:5})` font-size: 32px; color: ${L.mainBottomIcons}; cursor: pointer; @@ -1255,19 +1255,19 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni /* background-color: ${L.gray200}; */ } - ${ux} input:focus + & { + ${cx} input:focus + & { color: ${L.primaryBlue}; } -`,qC=H(F)(()=>({overflow:"auto",flex:1,width:"100%"})),KC=H(F)` +`,KC=H(F)(()=>({overflow:"auto",flex:1,width:"100%"})),XC=H(F)` padding: 0; margin-bottom: 36px; margin-top: 20px; -`,XC=H(F)` +`,ZC=H(F)` align-items: center; justify-content: space-between; flex-direction: row; gap: 10px; -`,ZC=H.div` +`,JC=H.div` display: flex; align-items: center; justify-content: center; @@ -1288,58 +1288,58 @@ return r.version="2.29.4",i(at),r.fn=re,r.min=V3,r.max=G3,r.now=q3,r.utc=g,r.uni color: ${({isFilterOpen:e})=>e?L.black:L.GRAY7}; fill: none; } -`,JC=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"cancel",children:[y.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1264_3381)",children:y.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})});function cx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ty.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"cancel",children:[y.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1264_3381)",children:y.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})});function fx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t0?1:-1},Yr=function(t){return Ho(t)&&t.indexOf("%")===t.length-1},le=function(t){return rA(t)&&!Uo(t)},_t=function(t){return le(t)||Ho(t)},sA=0,Wo=function(t){var n=++sA;return"".concat(t||"").concat(n)},Mi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!le(t)&&!Ho(t))return r;var a;if(Yr(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Uo(a)&&(a=r),i&&a>n&&(a=n),a},Sr=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},lA=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var n0={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},rr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},r0=null,Pc=null,mh=function e(t){if(t===r0&&Array.isArray(Pc))return Pc;var n=[];return B.Children.forEach(t,function(r){Ee(r)||(vf.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Pc=n,r0=t,n};function un(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return rr(i)}):r=[rr(t)],mh(e).forEach(function(i){var a=bn(i,"type.displayName")||bn(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function er(e,t){var n=un(e,t);return n&&n[0]}var i0=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!le(r)||r<=0||!le(i)||i<=0)},yA=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],gA=function(t){return t&&t.type&&Ho(t.type)&&yA.indexOf(t.type)>=0},vA=function(t,n,r,i){var a,o=(a=Cc==null?void 0:Cc[i])!==null&&a!==void 0?a:[];return!Te(t)&&(i&&o.includes(n)||fA.includes(n))||r&&ph.includes(n)},Le=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!ea(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;vA((s=i)===null||s===void 0?void 0:s[o],o,n,r)&&(a[o]=i[o])}),a},xx=function e(t,n){if(t===n)return!0;var r=B.Children.count(t);if(r!==B.Children.count(n))return!1;if(r===0)return!0;if(r===1)return a0(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _A(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function wf(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=SA(e,wA),f=i||{width:n,height:r,x:0,y:0},d=Ze("recharts-surface",a);return U.createElement("svg",bf({},Le(u,!0,"svg"),{className:d,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var OA=["children","className"];function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var dt=U.forwardRef(function(e,t){var n=e.children,r=e.className,i=kA(e,OA),a=Ze("recharts-layer",r);return U.createElement("g",Sf({className:a},Le(i,!0),{ref:t}),n)}),Xr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;ai?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:jA(e,t,n)}var EA=TA,MA="\\ud800-\\udfff",$A="\\u0300-\\u036f",IA="\\ufe20-\\ufe2f",DA="\\u20d0-\\u20ff",LA=$A+IA+DA,NA="\\ufe0e\\ufe0f",RA="\\u200d",BA=RegExp("["+RA+MA+LA+NA+"]");function zA(e){return BA.test(e)}var bx=zA;function FA(e){return e.split("")}var HA=FA,wx="\\ud800-\\udfff",UA="\\u0300-\\u036f",WA="\\ufe20-\\ufe2f",YA="\\u20d0-\\u20ff",VA=UA+WA+YA,GA="\\ufe0e\\ufe0f",qA="["+wx+"]",_f="["+VA+"]",Of="\\ud83c[\\udffb-\\udfff]",KA="(?:"+_f+"|"+Of+")",Sx="[^"+wx+"]",_x="(?:\\ud83c[\\udde6-\\uddff]){2}",Ox="[\\ud800-\\udbff][\\udc00-\\udfff]",XA="\\u200d",kx=KA+"?",Cx="["+GA+"]?",ZA="(?:"+XA+"(?:"+[Sx,_x,Ox].join("|")+")"+Cx+kx+")*",JA=Cx+kx+ZA,QA="(?:"+[Sx+_f+"?",_f,_x,Ox,qA].join("|")+")",ej=RegExp(Of+"(?="+Of+")|"+QA+JA,"g");function tj(e){return e.match(ej)||[]}var nj=tj,rj=HA,ij=bx,aj=nj;function oj(e){return ij(e)?aj(e):rj(e)}var sj=oj,lj=EA,uj=bx,cj=sj,fj=hx;function dj(e){return function(t){t=fj(t);var n=uj(t)?cj(t):void 0,r=n?n[0]:t.charAt(0),i=n?lj(n,1).join(""):t.slice(1);return r[e]()+i}}var hj=dj,pj=hj,mj=pj("toUpperCase"),yj=mj;const cu=st(yj);function tt(e){return function(){return e}}const Px=Math.cos,Zs=Math.sin,Dn=Math.sqrt,Js=Math.PI,fu=2*Js,kf=Math.PI,Cf=2*kf,Hr=1e-6,gj=Cf-Hr;function Ax(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ax;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;iHr)if(!(Math.abs(d*l-u*f)>Hr)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-o,g=i-s,v=l*l+u*u,b=m*m+g*g,O=Math.sqrt(v),C=Math.sqrt(h),k=a*Math.tan((kf-Math.acos((v+h-b)/(2*O*C)))/2),P=k/C,_=k/O;Math.abs(P-1)>Hr&&this._append`L${t+P*f},${n+P*d}`,this._append`A${a},${a},0,0,${+(d*m>f*g)},${this._x1=t+_*l},${this._y1=n+_*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,d=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Hr||Math.abs(this._y1-f)>Hr)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%Cf+Cf),h>gj?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:h>Hr&&this._append`A${r},${r},0,${+(h>=kf)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function yh(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new xj(t)}function gh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function jx(e){this._context=e}jx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function du(e){return new jx(e)}function Tx(e){return e[0]}function Ex(e){return e[1]}function Mx(e,t){var n=tt(!0),r=null,i=du,a=null,o=yh(s);e=typeof e=="function"?e:e===void 0?Tx:tt(e),t=typeof t=="function"?t:t===void 0?Ex:tt(t);function s(l){var u,f=(l=gh(l)).length,d,h=!1,m;for(r==null&&(a=i(m=o())),u=0;u<=f;++u)!(u=m;--g)s.point(k[g],P[g]);s.lineEnd(),s.areaEnd()}O&&(k[h]=+e(b,h,d),P[h]=+t(b,h,d),s.point(r?+r(b,h,d):k[h],n?+n(b,h,d):P[h]))}if(C)return s=null,C+""||null}function f(){return Mx().defined(i).curve(o).context(a)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:tt(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:tt(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(i=typeof d=="function"?d:tt(!!d),u):i},u.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),u):o},u.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),u):a},u}class $x{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function bj(e){return new $x(e,!0)}function wj(e){return new $x(e,!1)}const vh={draw(e,t){const n=Dn(t/Js);e.moveTo(n,0),e.arc(0,0,n,0,fu)}},Sj={draw(e,t){const n=Dn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Ix=Dn(1/3),_j=Ix*2,Oj={draw(e,t){const n=Dn(t/_j),r=n*Ix;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},kj={draw(e,t){const n=Dn(t),r=-n/2;e.rect(r,r,n,n)}},Cj=.8908130915292852,Dx=Zs(Js/10)/Zs(7*Js/10),Pj=Zs(fu/10)*Dx,Aj=-Px(fu/10)*Dx,jj={draw(e,t){const n=Dn(t*Cj),r=Pj*n,i=Aj*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=fu*a/5,s=Px(o),l=Zs(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Ac=Dn(3),Tj={draw(e,t){const n=-Dn(t/(Ac*3));e.moveTo(0,n*2),e.lineTo(-Ac*n,-n),e.lineTo(Ac*n,-n),e.closePath()}},fn=-.5,dn=Dn(3)/2,Pf=1/Dn(12),Ej=(Pf/2+1)*3,Mj={draw(e,t){const n=Dn(t/Ej),r=n/2,i=n*Pf,a=r,o=n*Pf+n,s=-a,l=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(fn*r-dn*i,dn*r+fn*i),e.lineTo(fn*a-dn*o,dn*a+fn*o),e.lineTo(fn*s-dn*l,dn*s+fn*l),e.lineTo(fn*r+dn*i,fn*i-dn*r),e.lineTo(fn*a+dn*o,fn*o-dn*a),e.lineTo(fn*s+dn*l,fn*l-dn*s),e.closePath()}};function $j(e,t){let n=null,r=yh(i);e=typeof e=="function"?e:tt(e||vh),t=typeof t=="function"?t:tt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:tt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:tt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Qs(){}function el(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Lx(e){this._context=e}Lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:el(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:el(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ij(e){return new Lx(e)}function Nx(e){this._context=e}Nx.prototype={areaStart:Qs,areaEnd:Qs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:el(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dj(e){return new Nx(e)}function Rx(e){this._context=e}Rx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:el(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Lj(e){return new Rx(e)}function Bx(e){this._context=e}Bx.prototype={areaStart:Qs,areaEnd:Qs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Nj(e){return new Bx(e)}function s0(e){return e<0?-1:1}function l0(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(s0(a)+s0(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function u0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function jc(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function tl(e){this._context=e}tl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:jc(this,this._t0,u0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,jc(this,u0(this,n=l0(this,e,t)),n);break;default:jc(this,this._t0,n=l0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function zx(e){this._context=new Fx(e)}(zx.prototype=Object.create(tl.prototype)).point=function(e,t){tl.prototype.point.call(this,t,e)};function Fx(e){this._context=e}Fx.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Rj(e){return new tl(e)}function Bj(e){return new zx(e)}function Hx(e){this._context=e}Hx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=c0(e),i=c0(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Fj(e){return new hu(e,.5)}function Hj(e){return new hu(e,0)}function Uj(e){return new hu(e,1)}function $i(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function Wj(e,t){return e[t]}function Yj(e){const t=[];return t.key=e,t}function Vj(){var e=tt([]),t=Af,n=$i,r=Wj;function i(a){var o=Array.from(e.apply(this,arguments),Yj),s,l=o.length,u=-1,f;for(const d of a)for(s=0,++u;s0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Ux={symbolCircle:vh,symbolCross:Sj,symbolDiamond:Oj,symbolSquare:kj,symbolStar:jj,symbolTriangle:Tj,symbolWye:Mj},nT=Math.PI/180,rT=function(t){var n="symbol".concat(cu(t));return Ux[n]||vh},iT=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*nT;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},aT=function(t,n){Ux["symbol".concat(cu(t))]=n},pu=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=eT(t,Xj),u=d0(d0({},l),{},{type:r,size:a,sizeType:s}),f=function(){var b=rT(r),O=$j().type(b).size(iT(a,s,r));return O()},d=u.className,h=u.cx,m=u.cy,g=Le(u,!0);return h===+h&&m===+m&&a===+a?U.createElement("path",jf({},g,{className:Ze("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(m,")"),d:f()})):null};pu.registerSymbol=aT;function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(e)}function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nl(e){return nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nl(e)}function Xa(e,t,n){return t=Wx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wx(e){var t=pT(e,"string");return Ii(t)==="symbol"?t:String(t)}function pT(e,t){if(Ii(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ii(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hn=32,xh=function(e){uT(n,e);var t=cT(n);function n(){return sT(this,n),t.apply(this,arguments)}return lT(n,[{key:"renderIcon",value:function(i){var a=this.props.inactiveColor,o=hn/2,s=hn/6,l=hn/3,u=i.inactive?a:i.color;if(i.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:o,x2:hn,y2:o,className:"recharts-legend-icon"});if(i.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,` + */var jt=typeof Symbol=="function"&&Symbol.for,dh=jt?Symbol.for("react.element"):60103,hh=jt?Symbol.for("react.portal"):60106,tu=jt?Symbol.for("react.fragment"):60107,nu=jt?Symbol.for("react.strict_mode"):60108,ru=jt?Symbol.for("react.profiler"):60114,iu=jt?Symbol.for("react.provider"):60109,au=jt?Symbol.for("react.context"):60110,ph=jt?Symbol.for("react.async_mode"):60111,ou=jt?Symbol.for("react.concurrent_mode"):60111,su=jt?Symbol.for("react.forward_ref"):60112,lu=jt?Symbol.for("react.suspense"):60113,KP=jt?Symbol.for("react.suspense_list"):60120,uu=jt?Symbol.for("react.memo"):60115,cu=jt?Symbol.for("react.lazy"):60116,XP=jt?Symbol.for("react.block"):60121,ZP=jt?Symbol.for("react.fundamental"):60117,JP=jt?Symbol.for("react.responder"):60118,QP=jt?Symbol.for("react.scope"):60119;function cn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dh:switch(e=e.type,e){case ph:case ou:case tu:case ru:case nu:case lu:return e;default:switch(e=e&&e.$$typeof,e){case au:case su:case cu:case uu:case iu:return e;default:return t}}case hh:return t}}}function vx(e){return cn(e)===ou}Ve.AsyncMode=ph;Ve.ConcurrentMode=ou;Ve.ContextConsumer=au;Ve.ContextProvider=iu;Ve.Element=dh;Ve.ForwardRef=su;Ve.Fragment=tu;Ve.Lazy=cu;Ve.Memo=uu;Ve.Portal=hh;Ve.Profiler=ru;Ve.StrictMode=nu;Ve.Suspense=lu;Ve.isAsyncMode=function(e){return vx(e)||cn(e)===ph};Ve.isConcurrentMode=vx;Ve.isContextConsumer=function(e){return cn(e)===au};Ve.isContextProvider=function(e){return cn(e)===iu};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dh};Ve.isForwardRef=function(e){return cn(e)===su};Ve.isFragment=function(e){return cn(e)===tu};Ve.isLazy=function(e){return cn(e)===cu};Ve.isMemo=function(e){return cn(e)===uu};Ve.isPortal=function(e){return cn(e)===hh};Ve.isProfiler=function(e){return cn(e)===ru};Ve.isStrictMode=function(e){return cn(e)===nu};Ve.isSuspense=function(e){return cn(e)===lu};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tu||e===ou||e===ru||e===nu||e===lu||e===KP||typeof e=="object"&&e!==null&&(e.$$typeof===cu||e.$$typeof===uu||e.$$typeof===iu||e.$$typeof===au||e.$$typeof===su||e.$$typeof===ZP||e.$$typeof===JP||e.$$typeof===QP||e.$$typeof===XP)};Ve.typeOf=cn;gx.exports=Ve;var xf=gx.exports,eA=Bo,tA=ea,nA="[object Number]";function rA(e){return typeof e=="number"||tA(e)&&eA(e)==nA}var xx=rA;const iA=st(xx);var aA=xx;function oA(e){return aA(e)&&e!=+e}var sA=oA;const Wo=st(sA);var Mn=function(t){return t===0?0:t>0?1:-1},Vr=function(t){return Uo(t)&&t.indexOf("%")===t.length-1},le=function(t){return iA(t)&&!Wo(t)},_t=function(t){return le(t)||Uo(t)},lA=0,Yo=function(t){var n=++lA;return"".concat(t||"").concat(n)},$i=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!le(t)&&!Uo(t))return r;var a;if(Vr(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Wo(a)&&(a=r),i&&a>n&&(a=n),a},_r=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},uA=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var r0={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},rr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},i0=null,Ac=null,yh=function e(t){if(t===i0&&Array.isArray(Ac))return Ac;var n=[];return B.Children.forEach(t,function(r){Ee(r)||(xf.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Ac=n,i0=t,n};function un(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return rr(i)}):r=[rr(t)],yh(e).forEach(function(i){var a=bn(i,"type.displayName")||bn(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function er(e,t){var n=un(e,t);return n&&n[0]}var a0=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!le(r)||r<=0||!le(i)||i<=0)},gA=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],vA=function(t){return t&&t.type&&Uo(t.type)&&gA.indexOf(t.type)>=0},xA=function(t,n,r,i){var a,o=(a=Pc==null?void 0:Pc[i])!==null&&a!==void 0?a:[];return!Te(t)&&(i&&o.includes(n)||dA.includes(n))||r&&mh.includes(n)},Le=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!ta(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;xA((s=i)===null||s===void 0?void 0:s[o],o,n,r)&&(a[o]=i[o])}),a},bx=function e(t,n){if(t===n)return!0;var r=B.Children.count(t);if(r!==B.Children.count(n))return!1;if(r===0)return!0;if(r===1)return o0(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Sf(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=_A(e,SA),f=i||{width:n,height:r,x:0,y:0},d=Ze("recharts-surface",a);return U.createElement("svg",wf({},Le(u,!0,"svg"),{className:d,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var kA=["children","className"];function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var dt=U.forwardRef(function(e,t){var n=e.children,r=e.className,i=CA(e,kA),a=Ze("recharts-layer",r);return U.createElement("g",_f({className:a},Le(i,!0),{ref:t}),n)}),Zr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;ai?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:TA(e,t,n)}var MA=EA,$A="\\ud800-\\udfff",IA="\\u0300-\\u036f",DA="\\ufe20-\\ufe2f",LA="\\u20d0-\\u20ff",NA=IA+DA+LA,RA="\\ufe0e\\ufe0f",BA="\\u200d",zA=RegExp("["+BA+$A+NA+RA+"]");function FA(e){return zA.test(e)}var wx=FA;function HA(e){return e.split("")}var UA=HA,Sx="\\ud800-\\udfff",WA="\\u0300-\\u036f",YA="\\ufe20-\\ufe2f",VA="\\u20d0-\\u20ff",GA=WA+YA+VA,qA="\\ufe0e\\ufe0f",KA="["+Sx+"]",Of="["+GA+"]",kf="\\ud83c[\\udffb-\\udfff]",XA="(?:"+Of+"|"+kf+")",_x="[^"+Sx+"]",Ox="(?:\\ud83c[\\udde6-\\uddff]){2}",kx="[\\ud800-\\udbff][\\udc00-\\udfff]",ZA="\\u200d",Cx=XA+"?",Px="["+qA+"]?",JA="(?:"+ZA+"(?:"+[_x,Ox,kx].join("|")+")"+Px+Cx+")*",QA=Px+Cx+JA,ej="(?:"+[_x+Of+"?",Of,Ox,kx,KA].join("|")+")",tj=RegExp(kf+"(?="+kf+")|"+ej+QA,"g");function nj(e){return e.match(tj)||[]}var rj=nj,ij=UA,aj=wx,oj=rj;function sj(e){return aj(e)?oj(e):ij(e)}var lj=sj,uj=MA,cj=wx,fj=lj,dj=px;function hj(e){return function(t){t=dj(t);var n=cj(t)?fj(t):void 0,r=n?n[0]:t.charAt(0),i=n?uj(n,1).join(""):t.slice(1);return r[e]()+i}}var pj=hj,mj=pj,yj=mj("toUpperCase"),gj=yj;const fu=st(gj);function tt(e){return function(){return e}}const Ax=Math.cos,Js=Math.sin,Dn=Math.sqrt,Qs=Math.PI,du=2*Qs,Cf=Math.PI,Pf=2*Cf,Ur=1e-6,vj=Pf-Ur;function jx(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return jx;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;iUr)if(!(Math.abs(d*l-u*f)>Ur)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-o,g=i-s,v=l*l+u*u,b=m*m+g*g,O=Math.sqrt(v),C=Math.sqrt(h),k=a*Math.tan((Cf-Math.acos((v+h-b)/(2*O*C)))/2),P=k/C,_=k/O;Math.abs(P-1)>Ur&&this._append`L${t+P*f},${n+P*d}`,this._append`A${a},${a},0,0,${+(d*m>f*g)},${this._x1=t+_*l},${this._y1=n+_*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,d=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Ur||Math.abs(this._y1-f)>Ur)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%Pf+Pf),h>vj?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:h>Ur&&this._append`A${r},${r},0,${+(h>=Cf)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function gh(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new bj(t)}function vh(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Tx(e){this._context=e}Tx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function hu(e){return new Tx(e)}function Ex(e){return e[0]}function Mx(e){return e[1]}function $x(e,t){var n=tt(!0),r=null,i=hu,a=null,o=gh(s);e=typeof e=="function"?e:e===void 0?Ex:tt(e),t=typeof t=="function"?t:t===void 0?Mx:tt(t);function s(l){var u,f=(l=vh(l)).length,d,h=!1,m;for(r==null&&(a=i(m=o())),u=0;u<=f;++u)!(u=m;--g)s.point(k[g],P[g]);s.lineEnd(),s.areaEnd()}O&&(k[h]=+e(b,h,d),P[h]=+t(b,h,d),s.point(r?+r(b,h,d):k[h],n?+n(b,h,d):P[h]))}if(C)return s=null,C+""||null}function f(){return $x().defined(i).curve(o).context(a)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:tt(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:tt(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:tt(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:tt(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(i=typeof d=="function"?d:tt(!!d),u):i},u.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),u):o},u.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),u):a},u}class Ix{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function wj(e){return new Ix(e,!0)}function Sj(e){return new Ix(e,!1)}const xh={draw(e,t){const n=Dn(t/Qs);e.moveTo(n,0),e.arc(0,0,n,0,du)}},_j={draw(e,t){const n=Dn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Dx=Dn(1/3),Oj=Dx*2,kj={draw(e,t){const n=Dn(t/Oj),r=n*Dx;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Cj={draw(e,t){const n=Dn(t),r=-n/2;e.rect(r,r,n,n)}},Pj=.8908130915292852,Lx=Js(Qs/10)/Js(7*Qs/10),Aj=Js(du/10)*Lx,jj=-Ax(du/10)*Lx,Tj={draw(e,t){const n=Dn(t*Pj),r=Aj*n,i=jj*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=du*a/5,s=Ax(o),l=Js(o);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},jc=Dn(3),Ej={draw(e,t){const n=-Dn(t/(jc*3));e.moveTo(0,n*2),e.lineTo(-jc*n,-n),e.lineTo(jc*n,-n),e.closePath()}},fn=-.5,dn=Dn(3)/2,Af=1/Dn(12),Mj=(Af/2+1)*3,$j={draw(e,t){const n=Dn(t/Mj),r=n/2,i=n*Af,a=r,o=n*Af+n,s=-a,l=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(fn*r-dn*i,dn*r+fn*i),e.lineTo(fn*a-dn*o,dn*a+fn*o),e.lineTo(fn*s-dn*l,dn*s+fn*l),e.lineTo(fn*r+dn*i,fn*i-dn*r),e.lineTo(fn*a+dn*o,fn*o-dn*a),e.lineTo(fn*s+dn*l,fn*l-dn*s),e.closePath()}};function Ij(e,t){let n=null,r=gh(i);e=typeof e=="function"?e:tt(e||xh),t=typeof t=="function"?t:tt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:tt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:tt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function el(){}function tl(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Nx(e){this._context=e}Nx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dj(e){return new Nx(e)}function Rx(e){this._context=e}Rx.prototype={areaStart:el,areaEnd:el,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Lj(e){return new Rx(e)}function Bx(e){this._context=e}Bx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:tl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nj(e){return new Bx(e)}function zx(e){this._context=e}zx.prototype={areaStart:el,areaEnd:el,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Rj(e){return new zx(e)}function l0(e){return e<0?-1:1}function u0(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(l0(a)+l0(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function c0(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Tc(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function nl(e){this._context=e}nl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Tc(this,this._t0,c0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Tc(this,c0(this,n=u0(this,e,t)),n);break;default:Tc(this,this._t0,n=u0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Fx(e){this._context=new Hx(e)}(Fx.prototype=Object.create(nl.prototype)).point=function(e,t){nl.prototype.point.call(this,t,e)};function Hx(e){this._context=e}Hx.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Bj(e){return new nl(e)}function zj(e){return new Fx(e)}function Ux(e){this._context=e}Ux.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=f0(e),i=f0(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Hj(e){return new pu(e,.5)}function Uj(e){return new pu(e,0)}function Wj(e){return new pu(e,1)}function Ii(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function Yj(e,t){return e[t]}function Vj(e){const t=[];return t.key=e,t}function Gj(){var e=tt([]),t=jf,n=Ii,r=Yj;function i(a){var o=Array.from(e.apply(this,arguments),Vj),s,l=o.length,u=-1,f;for(const d of a)for(s=0,++u;s0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nT(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Wx={symbolCircle:xh,symbolCross:_j,symbolDiamond:kj,symbolSquare:Cj,symbolStar:Tj,symbolTriangle:Ej,symbolWye:$j},rT=Math.PI/180,iT=function(t){var n="symbol".concat(fu(t));return Wx[n]||xh},aT=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*rT;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},oT=function(t,n){Wx["symbol".concat(fu(t))]=n},mu=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=tT(t,Zj),u=h0(h0({},l),{},{type:r,size:a,sizeType:s}),f=function(){var b=iT(r),O=Ij().type(b).size(aT(a,s,r));return O()},d=u.className,h=u.cx,m=u.cy,g=Le(u,!0);return h===+h&&m===+m&&a===+a?U.createElement("path",Tf({},g,{className:Ze("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(m,")"),d:f()})):null};mu.registerSymbol=oT;function Di(e){"@babel/helpers - typeof";return Di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Di(e)}function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rl(e){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rl(e)}function Za(e,t,n){return t=Yx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yx(e){var t=mT(e,"string");return Di(t)==="symbol"?t:String(t)}function mT(e,t){if(Di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hn=32,bh=function(e){cT(n,e);var t=fT(n);function n(){return lT(this,n),t.apply(this,arguments)}return uT(n,[{key:"renderIcon",value:function(i){var a=this.props.inactiveColor,o=hn/2,s=hn/6,l=hn/3,u=i.inactive?a:i.color;if(i.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:o,x2:hn,y2:o,className:"recharts-legend-icon"});if(i.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,` A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,` H`).concat(hn,"M").concat(2*l,",").concat(o,` - A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(i.type==="rect")return U.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(hn/8,"h").concat(hn,"v").concat(hn*3/4,"h").concat(-hn,"z"),className:"recharts-legend-icon"});if(U.isValidElement(i.legendIcon)){var f=oT({},i);return delete f.legendIcon,U.cloneElement(i.legendIcon,f)}return U.createElement(pu,{fill:u,cx:o,cy:o,size:hn,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,a=this.props,o=a.payload,s=a.iconSize,l=a.layout,u=a.formatter,f=a.inactiveColor,d={x:0,y:0,width:hn,height:hn},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(g,v){var b,O=g.formatter||u,C=Ze((b={"recharts-legend-item":!0},Xa(b,"legend-item-".concat(v),!0),Xa(b,"inactive",g.inactive),b));if(g.type==="none")return null;var k=Te(g.value)?null:g.value;Xr(!Te(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var P=g.inactive?f:g.color;return U.createElement("li",Tf({className:C,style:h,key:"legend-item-".concat(v)},qa(i.props,g,v)),U.createElement(wf,{width:s,height:s,viewBox:d,style:m},i.renderIcon(g)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:P}},O?O(k,g,v):k))})}},{key:"render",value:function(){var i=this.props,a=i.payload,o=i.layout,s=i.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),n}(B.PureComponent);Xa(xh,"displayName","Legend");Xa(xh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var mT="__lodash_hash_undefined__";function yT(e){return this.__data__.set(e,mT),this}var gT=yT;function vT(e){return this.__data__.has(e)}var xT=vT,bT=Xg,wT=gT,ST=xT;function rl(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bT;++ts))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,m=n&jT?new kT:void 0;for(a.set(e,t),a.set(t,e);++d-1}var MM=EM;function $M(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=qM){var u=t?null:VM(e);if(u)return GM(u);o=!1,i=YM,l=new HM}else l=t?[]:s;e:for(;++r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},il(e)}function mu(e,t,n){return t=tb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tb(e){var t=l$(e,"string");return Di(t)==="symbol"?t:String(t)}function l$(e,t){if(Di(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Di(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function u$(e,t){if(e==null)return{};var n=c$(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c$(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function f$(e){return e.value}function d$(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var n=u$(t,t$);return U.createElement(xh,n)}var j0=1,Za=function(e){i$(n,e);var t=a$(n);function n(){var r;n$(this,n);for(var i=arguments.length,a=new Array(i),o=0;oj0||Math.abs(a.height-this.lastBoundingBox.height)>j0)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,i&&i(a))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Fr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var a=this.props,o=a.layout,s=a.align,l=a.verticalAlign,u=a.margin,f=a.chartWidth,d=a.chartHeight,h,m;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(s==="center"&&o==="vertical"){var g=this.getBBoxSnapshot();h={left:((f||0)-g.width)/2}}else h=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(l==="middle"){var v=this.getBBoxSnapshot();m={top:((d||0)-v.height)/2}}else m=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Fr(Fr({},h),m)}},{key:"render",value:function(){var i=this,a=this.props,o=a.content,s=a.width,l=a.height,u=a.wrapperStyle,f=a.payloadUniqBy,d=a.payload,h=Fr(Fr({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return U.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(g){i.wrapperNode=g}},d$(o,Fr(Fr({},this.props),{},{payload:Qx(d,f,f$)})))}}],[{key:"getWithHeight",value:function(i,a){var o=i.props.layout;return o==="vertical"&&le(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||a}:null}}]),n}(B.PureComponent);mu(Za,"displayName","Legend");mu(Za,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var T0=Dd,h$=Qg,p$=_n,E0=T0?T0.isConcatSpreadable:void 0;function m$(e){return p$(e)||h$(e)||!!(E0&&e&&e[E0])}var y$=m$,g$=w4,v$=y$;function nb(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=v$),i||(i=[]);++a0&&n(s)?t>1?nb(s,t-1,n,r,i):g$(i,s):r||(i[i.length]=s)}return i}var rb=nb;function x$(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var b$=x$,w$=b$,S$=w$(),_$=S$,O$=_$,k$=Ld;function C$(e,t){return e&&O$(e,t,k$)}var ib=C$,P$=Ul;function A$(e,t){return function(n,r){if(n==null)return n;if(!P$(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++at||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var H$=F$,$c=uh,U$=ch,W$=Mr,Y$=ab,V$=N$,G$=S4,q$=H$,K$=aa,X$=_n;function Z$(e,t,n){t.length?t=$c(t,function(a){return X$(a)?function(o){return U$(o,a.length===1?a[0]:a)}:a}):t=[K$];var r=-1;t=$c(t,G$(W$));var i=Y$(e,function(a,o,s){var l=$c(t,function(u){return u(a)});return{criteria:l,index:++r,value:a}});return V$(i,function(a,o){return q$(a,o,n)})}var J$=Z$;function Q$(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var eI=Q$,tI=eI,$0=Math.max;function nI(e,t,n){return t=$0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=$0(r.length-t,0),o=Array(a);++i0){if(++t>=cI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pI=hI,mI=uI,yI=pI,gI=yI(mI),vI=gI,xI=aa,bI=rI,wI=vI;function SI(e,t){return wI(bI(e,t,xI),e+"")}var _I=SI,OI=Zg,kI=Ul,CI=ev,PI=Bo;function AI(e,t,n){if(!PI(n))return!1;var r=typeof t;return(r=="number"?kI(n)&&CI(t,n.length):r=="string"&&t in n)?OI(n[t],e):!1}var yu=AI,jI=rb,TI=J$,EI=_I,D0=yu,MI=EI(function(e,t){if(e==null)return[];var n=t.length;return n>1&&D0(e,t[0],t[1])?t=[]:n>2&&D0(t[0],t[1],t[2])&&(t=[t[0]]),TI(e,jI(t,1),[])}),$I=MI;const _h=st($I);function Ja(e){"@babel/helpers - typeof";return Ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ja(e)}function II(e,t){return RI(e)||NI(e,t)||LI(e,t)||DI()}function DI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LI(e,t){if(e){if(typeof e=="string")return L0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L0(e,t)}}function L0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function qI(e,t){return oa(e.getTime(),t.getTime())}function H0(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),a=0,o,s;(o=i.next())&&!o.done;){for(var l=t.entries(),u=!1,f=0;(s=l.next())&&!s.done;){var d=o.value,h=d[0],m=d[1],g=s.value,v=g[0],b=g[1];!u&&!r[f]&&(u=n.equals(h,v,a,f,e,t,n)&&n.equals(m,b,h,v,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;a++}return!0}function KI(e,t,n){var r=F0(e),i=r.length;if(F0(t).length!==i)return!1;for(var a;i-- >0;)if(a=r[i],a===sb&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!ob(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))return!1;return!0}function _a(e,t,n){var r=B0(e),i=r.length;if(B0(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=r[i],a===sb&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!ob(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)||(o=z0(e,a),s=z0(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function XI(e,t){return oa(e.valueOf(),t.valueOf())}function ZI(e,t){return e.source===t.source&&e.flags===t.flags}function U0(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var s=t.values(),l=!1,u=0;(o=s.next())&&!o.done;)!l&&!r[u]&&(l=n.equals(a.value,o.value,a.value,o.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function JI(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var QI="[object Arguments]",eD="[object Boolean]",tD="[object Date]",nD="[object Map]",rD="[object Number]",iD="[object Object]",aD="[object RegExp]",oD="[object Set]",sD="[object String]",lD=Array.isArray,W0=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Y0=Object.assign,uD=Object.prototype.toString.call.bind(Object.prototype.toString);function cD(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(f,d,h){if(f===d)return!0;if(f==null||d==null||typeof f!="object"||typeof d!="object")return f!==f&&d!==d;var m=f.constructor;if(m!==d.constructor)return!1;if(m===Object)return i(f,d,h);if(lD(f))return t(f,d,h);if(W0!=null&&W0(f))return l(f,d,h);if(m===Date)return n(f,d,h);if(m===RegExp)return o(f,d,h);if(m===Map)return r(f,d,h);if(m===Set)return s(f,d,h);var g=uD(f);return g===tD?n(f,d,h):g===aD?o(f,d,h):g===nD?r(f,d,h):g===oD?s(f,d,h):g===iD?typeof f.then!="function"&&typeof d.then!="function"&&i(f,d,h):g===QI?i(f,d,h):g===eD||g===rD||g===sD?a(f,d,h):!1}}function fD(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?_a:GI,areDatesEqual:qI,areMapsEqual:r?R0(H0,_a):H0,areObjectsEqual:r?_a:KI,arePrimitiveWrappersEqual:XI,areRegExpsEqual:ZI,areSetsEqual:r?R0(U0,_a):U0,areTypedArraysEqual:r?_a:JI};if(n&&(i=Y0({},i,n(i))),t){var a=Ps(i.areArraysEqual),o=Ps(i.areMapsEqual),s=Ps(i.areObjectsEqual),l=Ps(i.areSetsEqual);i=Y0({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function dD(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function hD(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(l,u){var f=r(),d=f.cache,h=d===void 0?t?new WeakMap:void 0:d,m=f.meta;return n(l,u,{cache:h,equals:i,meta:m,strict:a})};if(t)return function(l,u){return n(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return n(l,u,o)}}var pD=$r();$r({strict:!0});$r({circular:!0});$r({circular:!0,strict:!0});$r({createInternalComparator:function(){return oa}});$r({strict:!0,createInternalComparator:function(){return oa}});$r({circular:!0,createInternalComparator:function(){return oa}});$r({circular:!0,createInternalComparator:function(){return oa},strict:!0});function $r(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=fD(e),l=cD(s),u=r?r(l):dD(l);return hD({circular:n,comparator:l,createState:i,equals:u,strict:o})}function mD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function V0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):mD(i)};requestAnimationFrame(r)}function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}function yD(e){return bD(e)||xD(e)||vD(e)||gD()}function gD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vD(e,t){if(e){if(typeof e=="string")return G0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G0(e,t)}}function G0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:O<0?0:O},v=function(O){for(var C=O>1?1:O,k=C,P=0;P<8;++P){var _=d(k)-C,w=m(k);if(Math.abs(_-C)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,d,h){var m=-(f-d)*r,g=h*a,v=h+(m-g)*s/1e3,b=h*s/1e3+f;return Math.abs(b-d)e.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 tL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Dc(e){return aL(e)||iL(e)||rL(e)||nL()}function nL(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rL(e,t){if(e){if(typeof e=="string")return Rf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rf(e,t)}}function iL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aL(e){if(Array.isArray(e))return Rf(e)}function Rf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ll(e){return ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ll(e)}var or=function(e){uL(n,e);var t=cL(n);function n(r,i){var a;oL(this,n),a=t.call(this,r,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,d=o.steps,h=o.children,m=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ff(a)),a.changeStyle=a.changeStyle.bind(Ff(a)),!s||m<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),zf(a);if(d&&d.length)a.state={style:d[0].style};else if(u){if(typeof h=="function")return a.state={style:u},zf(a);a.state={style:l?Ia({},l,u):u}}else a.state={style:{}};return a}return sL(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,d=a.from,h=this.state.style;if(s){if(!o){var m={style:l?Ia({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(m);return}if(!(pD(i.to,f)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=g||u?d:i.to;if(this.state&&h){var b={style:l?Ia({},l,v):v};(l&&[l]!==v||!l&&h!==v)&&this.setState(b)}this.runAnimation(An(An({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,d=i.onAnimationEnd,h=i.onAnimationStart,m=JD(o,s,FD(u),l,this.changeStyle),g=function(){a.stopJSAnimation=m()};this.manager.start([h,f,g,l,d])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,d=u.duration,h=d===void 0?0:d,m=function(v,b,O){if(O===0)return v;var C=b.duration,k=b.easing,P=k===void 0?"ease":k,_=b.style,w=b.properties,j=b.onAnimationEnd,E=O>0?o[O-1]:b,I=w||Object.keys(_);if(typeof P=="function"||P==="spring")return[].concat(Dc(v),[a.runJSAnimation.bind(a,{from:E.style,to:_,duration:C,easing:P}),C]);var z=K0(I,C,P),M=An(An(An({},E.style),_),{},{transition:z});return[].concat(Dc(v),[M,C,j]).filter(AD)};return this.manager.start([l].concat(Dc(o.reduce(m,[f,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=wD());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,d=i.onAnimationEnd,h=i.steps,m=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof m=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=s?Ia({},s,l):l,b=K0(Object.keys(v),o,u);g.start([f,a,An(An({},v),{},{transition:b}),o,d])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=eL(i,QD),u=B.Children.count(a),f=Oh(this.state.style);if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var d=function(m){var g=m.props,v=g.style,b=v===void 0?{}:v,O=g.className,C=B.cloneElement(m,An(An({},l),{},{style:An(An({},b),f),className:O}));return C};return u===1?d(B.Children.only(a)):U.createElement("div",null,B.Children.map(a,function(h){return d(h)}))}}]),n}(B.PureComponent);or.displayName="Animate";or.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};or.propTypes={from:Oe.oneOfType([Oe.object,Oe.string]),to:Oe.oneOfType([Oe.object,Oe.string]),attributeName:Oe.string,duration:Oe.number,begin:Oe.number,easing:Oe.oneOfType([Oe.string,Oe.func]),steps:Oe.arrayOf(Oe.shape({duration:Oe.number.isRequired,style:Oe.object.isRequired,easing:Oe.oneOfType([Oe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Oe.func]),properties:Oe.arrayOf("string"),onAnimationEnd:Oe.func})),children:Oe.oneOfType([Oe.node,Oe.func]),isActive:Oe.bool,canBegin:Oe.bool,onAnimationEnd:Oe.func,shouldReAnimate:Oe.bool,onAnimationStart:Oe.func,onAnimationReStart:Oe.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});Oe.object,Oe.object,Oe.object,Oe.element;Oe.object,Oe.object,Oe.object,Oe.oneOfType([Oe.array,Oe.element]),Oe.any;function to(e){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(e)}function As(e,t,n){return t=dL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dL(e){var t=hL(e,"string");return to(t)==="symbol"?t:String(t)}function hL(e,t){if(to(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(to(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Oa="recharts-tooltip-wrapper",pL={visibility:"hidden"};function mL(e){var t,n=e.coordinate,r=e.translateX,i=e.translateY;return Ze(Oa,(t={},As(t,"".concat(Oa,"-right"),le(r)&&n&&le(n.x)&&r>=n.x),As(t,"".concat(Oa,"-left"),le(r)&&n&&le(n.x)&&r=n.y),As(t,"".concat(Oa,"-top"),le(i)&&n&&le(n.y)&&iv?Math.max(f,l[r]):Math.max(d,l[r])}function yL(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return Oh({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function gL(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,d;return o.height>0&&o.width>0&&n?(f=nm({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),d=nm({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=yL({translateX:f,translateY:d,useTranslate3d:s})):u=pL,{cssProperties:u,cssClasses:mL({translateX:f,translateY:d,coordinate:n})}}function Ri(e){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ri(e)}function rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ul(e){return ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ul(e)}function Hs(e,t,n){return t=hb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hb(e){var t=OL(e,"string");return Ri(t)==="symbol"?t:String(t)}function OL(e,t){if(Ri(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ri(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var am=1,kL=function(e){bL(n,e);var t=wL(n);function n(){var r;vL(this,n);for(var i=arguments.length,a=new Array(i),o=0;oam||Math.abs(i.height-this.lastBoundingBox.height)>am)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,a=this.props,o=a.active,s=a.allowEscapeViewBox,l=a.animationDuration,u=a.animationEasing,f=a.children,d=a.coordinate,h=a.hasPayload,m=a.isAnimationActive,g=a.offset,v=a.position,b=a.reverseDirection,O=a.useTranslate3d,C=a.viewBox,k=a.wrapperStyle,P=gL({allowEscapeViewBox:s,coordinate:d,offsetTopLeft:g,position:v,reverseDirection:b,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:O,viewBox:C}),_=P.cssClasses,w=P.cssProperties,j=Lc(Lc(Lc({},m&&o&&Oh({transition:"transform ".concat(l,"ms ").concat(u)})),w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},k);return U.createElement("div",{tabIndex:-1,role:"dialog",className:_,style:j,ref:function(I){i.wrapperNode=I}},f)}}]),n}(B.PureComponent),CL=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ir={isSsr:CL(),get:function(t){return ir[t]},set:function(t,n){if(typeof t=="string")ir[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ir[i]=t[i]})}}};function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function om(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sm(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cl(e)}function kh(e,t,n){return t=pb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pb(e){var t=IL(e,"string");return Bi(t)==="symbol"?t:String(t)}function IL(e,t){if(Bi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DL(e){return e.dataKey}function LL(e,t){return U.isValidElement(e)?U.cloneElement(e,t):typeof e=="function"?U.createElement(e,t):U.createElement(UI,t)}var Vr=function(e){jL(n,e);var t=TL(n);function n(){return PL(this,n),t.apply(this,arguments)}return AL(n,[{key:"render",value:function(){var i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,d=i.filterNull,h=i.isAnimationActive,m=i.offset,g=i.payload,v=i.payloadUniqBy,b=i.position,O=i.reverseDirection,C=i.useTranslate3d,k=i.viewBox,P=i.wrapperStyle,_=g??[];d&&_.length&&(_=Qx(g.filter(function(j){return j.value!=null}),v,DL));var w=_.length>0;return U.createElement(kL,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:f,hasPayload:w,offset:m,position:b,reverseDirection:O,useTranslate3d:C,viewBox:k,wrapperStyle:P},LL(u,sm(sm({},this.props),{},{payload:_})))}}]),n}(B.PureComponent);kh(Vr,"displayName","Tooltip");kh(Vr,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ir.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var NL=O4,RL=function(){return NL.Date.now()},BL=RL,zL=/\s/;function FL(e){for(var t=e.length;t--&&zL.test(e.charAt(t)););return t}var HL=FL,UL=HL,WL=/^\s+/;function YL(e){return e&&e.slice(0,UL(e)+1).replace(WL,"")}var VL=YL,GL=VL,um=Bo,qL=ia,cm=0/0,KL=/^[-+]0x[0-9a-f]+$/i,XL=/^0b[01]+$/i,ZL=/^0o[0-7]+$/i,JL=parseInt;function QL(e){if(typeof e=="number")return e;if(qL(e))return cm;if(um(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=um(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=GL(e);var n=XL.test(e);return n||ZL.test(e)?JL(e.slice(2),n?2:8):KL.test(e)?cm:+e}var mb=QL,eN=Bo,Nc=BL,fm=mb,tN="Expected a function",nN=Math.max,rN=Math.min;function iN(e,t,n){var r,i,a,o,s,l,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(tN);t=fm(t)||0,eN(n)&&(f=!!n.leading,d="maxWait"in n,a=d?nN(fm(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(w){var j=r,E=i;return r=i=void 0,u=w,o=e.apply(E,j),o}function g(w){return u=w,s=setTimeout(O,t),f?m(w):o}function v(w){var j=w-l,E=w-u,I=t-j;return d?rN(I,a-E):I}function b(w){var j=w-l,E=w-u;return l===void 0||j>=t||j<0||d&&E>=a}function O(){var w=Nc();if(b(w))return C(w);s=setTimeout(O,v(w))}function C(w){return s=void 0,h&&r?m(w):(r=i=void 0,o)}function k(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function P(){return s===void 0?o:C(Nc())}function _(){var w=Nc(),j=b(w);if(r=arguments,i=this,l=w,j){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(O,t),m(l)}return s===void 0&&(s=setTimeout(O,t)),o}return _.cancel=k,_.flush=P,_}var aN=iN,oN=aN,sN=Bo,lN="Expected a function";function uN(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(lN);return sN(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),oN(e,t,{leading:r,maxWait:t,trailing:i})}var cN=uN;const yb=st(cN);function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function js(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(W=yb(W,v,{trailing:!0,leading:!1}));var Y=new ResizeObserver(W),V=_.current.getBoundingClientRect(),X=V.width,Z=V.height;return M(X,Z),Y.observe(_.current),function(){Y.disconnect()}},[M,v]);var D=B.useMemo(function(){var W=I.containerWidth,Y=I.containerHeight;if(W<0||Y<0)return null;Xr(Yr(o)||Yr(l),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,o,l),Xr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var V=Yr(o)?W:o,X=Yr(l)?Y:l;n&&n>0&&(V?X=V/n:X&&(V=X*n),h&&X>h&&(X=h)),Xr(V>0||X>0,`The width(%s) and height(%s) of chart should be greater than 0, + A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(i.type==="rect")return U.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(hn/8,"h").concat(hn,"v").concat(hn*3/4,"h").concat(-hn,"z"),className:"recharts-legend-icon"});if(U.isValidElement(i.legendIcon)){var f=sT({},i);return delete f.legendIcon,U.cloneElement(i.legendIcon,f)}return U.createElement(mu,{fill:u,cx:o,cy:o,size:hn,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,a=this.props,o=a.payload,s=a.iconSize,l=a.layout,u=a.formatter,f=a.inactiveColor,d={x:0,y:0,width:hn,height:hn},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(g,v){var b,O=g.formatter||u,C=Ze((b={"recharts-legend-item":!0},Za(b,"legend-item-".concat(v),!0),Za(b,"inactive",g.inactive),b));if(g.type==="none")return null;var k=Te(g.value)?null:g.value;Zr(!Te(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var P=g.inactive?f:g.color;return U.createElement("li",Ef({className:C,style:h,key:"legend-item-".concat(v)},Ka(i.props,g,v)),U.createElement(Sf,{width:s,height:s,viewBox:d,style:m},i.renderIcon(g)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:P}},O?O(k,g,v):k))})}},{key:"render",value:function(){var i=this.props,a=i.payload,o=i.layout,s=i.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),n}(B.PureComponent);Za(bh,"displayName","Legend");Za(bh,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var yT="__lodash_hash_undefined__";function gT(e){return this.__data__.set(e,yT),this}var vT=gT;function xT(e){return this.__data__.has(e)}var bT=xT,wT=Zg,ST=vT,_T=bT;function il(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new wT;++ts))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,m=n&TT?new CT:void 0;for(a.set(e,t),a.set(t,e);++d-1}var $M=MM;function IM(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=KM){var u=t?null:GM(e);if(u)return qM(u);o=!1,i=VM,l=new UM}else l=t?[]:s;e:for(;++r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},al(e)}function yu(e,t,n){return t=nb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nb(e){var t=u$(e,"string");return Li(t)==="symbol"?t:String(t)}function u$(e,t){if(Li(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Li(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c$(e,t){if(e==null)return{};var n=f$(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f$(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function d$(e){return e.value}function h$(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var n=c$(t,n$);return U.createElement(bh,n)}var T0=1,Ja=function(e){a$(n,e);var t=o$(n);function n(){var r;r$(this,n);for(var i=arguments.length,a=new Array(i),o=0;oT0||Math.abs(a.height-this.lastBoundingBox.height)>T0)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,i&&i(a))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Hr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var a=this.props,o=a.layout,s=a.align,l=a.verticalAlign,u=a.margin,f=a.chartWidth,d=a.chartHeight,h,m;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(s==="center"&&o==="vertical"){var g=this.getBBoxSnapshot();h={left:((f||0)-g.width)/2}}else h=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(l==="middle"){var v=this.getBBoxSnapshot();m={top:((d||0)-v.height)/2}}else m=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Hr(Hr({},h),m)}},{key:"render",value:function(){var i=this,a=this.props,o=a.content,s=a.width,l=a.height,u=a.wrapperStyle,f=a.payloadUniqBy,d=a.payload,h=Hr(Hr({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return U.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(g){i.wrapperNode=g}},h$(o,Hr(Hr({},this.props),{},{payload:eb(d,f,d$)})))}}],[{key:"getWithHeight",value:function(i,a){var o=i.props.layout;return o==="vertical"&&le(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||a}:null}}]),n}(B.PureComponent);yu(Ja,"displayName","Legend");yu(Ja,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var E0=Ld,p$=ev,m$=_n,M0=E0?E0.isConcatSpreadable:void 0;function y$(e){return m$(e)||p$(e)||!!(M0&&e&&e[M0])}var g$=y$,v$=S4,x$=g$;function rb(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=x$),i||(i=[]);++a0&&n(s)?t>1?rb(s,t-1,n,r,i):v$(i,s):r||(i[i.length]=s)}return i}var ib=rb;function b$(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var w$=b$,S$=w$,_$=S$(),O$=_$,k$=O$,C$=Nd;function P$(e,t){return e&&k$(e,t,C$)}var ab=P$,A$=Wl;function j$(e,t){return function(n,r){if(n==null)return n;if(!A$(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++at||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var U$=H$,Ic=ch,W$=fh,Y$=$r,V$=ob,G$=R$,q$=_4,K$=U$,X$=oa,Z$=_n;function J$(e,t,n){t.length?t=Ic(t,function(a){return Z$(a)?function(o){return W$(o,a.length===1?a[0]:a)}:a}):t=[X$];var r=-1;t=Ic(t,q$(Y$));var i=V$(e,function(a,o,s){var l=Ic(t,function(u){return u(a)});return{criteria:l,index:++r,value:a}});return G$(i,function(a,o){return K$(a,o,n)})}var Q$=J$;function eI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var tI=eI,nI=tI,I0=Math.max;function rI(e,t,n){return t=I0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=I0(r.length-t,0),o=Array(a);++i0){if(++t>=fI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mI=pI,yI=cI,gI=mI,vI=gI(yI),xI=vI,bI=oa,wI=iI,SI=xI;function _I(e,t){return SI(wI(e,t,bI),e+"")}var OI=_I,kI=Jg,CI=Wl,PI=tv,AI=zo;function jI(e,t,n){if(!AI(n))return!1;var r=typeof t;return(r=="number"?CI(n)&&PI(t,n.length):r=="string"&&t in n)?kI(n[t],e):!1}var gu=jI,TI=ib,EI=Q$,MI=OI,L0=gu,$I=MI(function(e,t){if(e==null)return[];var n=t.length;return n>1&&L0(e,t[0],t[1])?t=[]:n>2&&L0(t[0],t[1],t[2])&&(t=[t[0]]),EI(e,TI(t,1),[])}),II=$I;const Oh=st(II);function Qa(e){"@babel/helpers - typeof";return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qa(e)}function DI(e,t){return BI(e)||RI(e,t)||NI(e,t)||LI()}function LI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NI(e,t){if(e){if(typeof e=="string")return N0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N0(e,t)}}function N0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function KI(e,t){return sa(e.getTime(),t.getTime())}function U0(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),a=0,o,s;(o=i.next())&&!o.done;){for(var l=t.entries(),u=!1,f=0;(s=l.next())&&!s.done;){var d=o.value,h=d[0],m=d[1],g=s.value,v=g[0],b=g[1];!u&&!r[f]&&(u=n.equals(h,v,a,f,e,t,n)&&n.equals(m,b,h,v,e,t,n))&&(r[f]=!0),f++}if(!u)return!1;a++}return!0}function XI(e,t,n){var r=H0(e),i=r.length;if(H0(t).length!==i)return!1;for(var a;i-- >0;)if(a=r[i],a===lb&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!sb(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))return!1;return!0}function Oa(e,t,n){var r=z0(e),i=r.length;if(z0(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=r[i],a===lb&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!sb(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)||(o=F0(e,a),s=F0(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function ZI(e,t){return sa(e.valueOf(),t.valueOf())}function JI(e,t){return e.source===t.source&&e.flags===t.flags}function W0(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var s=t.values(),l=!1,u=0;(o=s.next())&&!o.done;)!l&&!r[u]&&(l=n.equals(a.value,o.value,a.value,o.value,e,t,n))&&(r[u]=!0),u++;if(!l)return!1}return!0}function QI(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var eD="[object Arguments]",tD="[object Boolean]",nD="[object Date]",rD="[object Map]",iD="[object Number]",aD="[object Object]",oD="[object RegExp]",sD="[object Set]",lD="[object String]",uD=Array.isArray,Y0=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,V0=Object.assign,cD=Object.prototype.toString.call.bind(Object.prototype.toString);function fD(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(f,d,h){if(f===d)return!0;if(f==null||d==null||typeof f!="object"||typeof d!="object")return f!==f&&d!==d;var m=f.constructor;if(m!==d.constructor)return!1;if(m===Object)return i(f,d,h);if(uD(f))return t(f,d,h);if(Y0!=null&&Y0(f))return l(f,d,h);if(m===Date)return n(f,d,h);if(m===RegExp)return o(f,d,h);if(m===Map)return r(f,d,h);if(m===Set)return s(f,d,h);var g=cD(f);return g===nD?n(f,d,h):g===oD?o(f,d,h):g===rD?r(f,d,h):g===sD?s(f,d,h):g===aD?typeof f.then!="function"&&typeof d.then!="function"&&i(f,d,h):g===eD?i(f,d,h):g===tD||g===iD||g===lD?a(f,d,h):!1}}function dD(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Oa:qI,areDatesEqual:KI,areMapsEqual:r?B0(U0,Oa):U0,areObjectsEqual:r?Oa:XI,arePrimitiveWrappersEqual:ZI,areRegExpsEqual:JI,areSetsEqual:r?B0(W0,Oa):W0,areTypedArraysEqual:r?Oa:QI};if(n&&(i=V0({},i,n(i))),t){var a=As(i.areArraysEqual),o=As(i.areMapsEqual),s=As(i.areObjectsEqual),l=As(i.areSetsEqual);i=V0({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function hD(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function pD(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(l,u){var f=r(),d=f.cache,h=d===void 0?t?new WeakMap:void 0:d,m=f.meta;return n(l,u,{cache:h,equals:i,meta:m,strict:a})};if(t)return function(l,u){return n(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return n(l,u,o)}}var mD=Ir();Ir({strict:!0});Ir({circular:!0});Ir({circular:!0,strict:!0});Ir({createInternalComparator:function(){return sa}});Ir({strict:!0,createInternalComparator:function(){return sa}});Ir({circular:!0,createInternalComparator:function(){return sa}});Ir({circular:!0,createInternalComparator:function(){return sa},strict:!0});function Ir(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=dD(e),l=fD(s),u=r?r(l):hD(l);return pD({circular:n,comparator:l,createState:i,equals:u,strict:o})}function yD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function G0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):yD(i)};requestAnimationFrame(r)}function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function gD(e){return wD(e)||bD(e)||xD(e)||vD()}function vD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xD(e,t){if(e){if(typeof e=="string")return q0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q0(e,t)}}function q0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:O<0?0:O},v=function(O){for(var C=O>1?1:O,k=C,P=0;P<8;++P){var _=d(k)-C,w=m(k);if(Math.abs(_-C)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,d,h){var m=-(f-d)*r,g=h*a,v=h+(m-g)*s/1e3,b=h*s/1e3+f;return Math.abs(b-d)e.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 nL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Lc(e){return oL(e)||aL(e)||iL(e)||rL()}function rL(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iL(e,t){if(e){if(typeof e=="string")return Bf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bf(e,t)}}function aL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oL(e){if(Array.isArray(e))return Bf(e)}function Bf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ul(e){return ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ul(e)}var or=function(e){cL(n,e);var t=fL(n);function n(r,i){var a;sL(this,n),a=t.call(this,r,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,d=o.steps,h=o.children,m=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Hf(a)),a.changeStyle=a.changeStyle.bind(Hf(a)),!s||m<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),Ff(a);if(d&&d.length)a.state={style:d[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Ff(a);a.state={style:l?Da({},l,u):u}}else a.state={style:{}};return a}return lL(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,d=a.from,h=this.state.style;if(s){if(!o){var m={style:l?Da({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(m);return}if(!(mD(i.to,f)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=g||u?d:i.to;if(this.state&&h){var b={style:l?Da({},l,v):v};(l&&[l]!==v||!l&&h!==v)&&this.setState(b)}this.runAnimation(An(An({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,d=i.onAnimationEnd,h=i.onAnimationStart,m=QD(o,s,HD(u),l,this.changeStyle),g=function(){a.stopJSAnimation=m()};this.manager.start([h,f,g,l,d])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,d=u.duration,h=d===void 0?0:d,m=function(v,b,O){if(O===0)return v;var C=b.duration,k=b.easing,P=k===void 0?"ease":k,_=b.style,w=b.properties,j=b.onAnimationEnd,E=O>0?o[O-1]:b,I=w||Object.keys(_);if(typeof P=="function"||P==="spring")return[].concat(Lc(v),[a.runJSAnimation.bind(a,{from:E.style,to:_,duration:C,easing:P}),C]);var z=X0(I,C,P),M=An(An(An({},E.style),_),{},{transition:z});return[].concat(Lc(v),[M,C,j]).filter(jD)};return this.manager.start([l].concat(Lc(o.reduce(m,[f,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=SD());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,d=i.onAnimationEnd,h=i.steps,m=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof m=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=s?Da({},s,l):l,b=X0(Object.keys(v),o,u);g.start([f,a,An(An({},v),{},{transition:b}),o,d])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=tL(i,eL),u=B.Children.count(a),f=kh(this.state.style);if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var d=function(m){var g=m.props,v=g.style,b=v===void 0?{}:v,O=g.className,C=B.cloneElement(m,An(An({},l),{},{style:An(An({},b),f),className:O}));return C};return u===1?d(B.Children.only(a)):U.createElement("div",null,B.Children.map(a,function(h){return d(h)}))}}]),n}(B.PureComponent);or.displayName="Animate";or.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};or.propTypes={from:Oe.oneOfType([Oe.object,Oe.string]),to:Oe.oneOfType([Oe.object,Oe.string]),attributeName:Oe.string,duration:Oe.number,begin:Oe.number,easing:Oe.oneOfType([Oe.string,Oe.func]),steps:Oe.arrayOf(Oe.shape({duration:Oe.number.isRequired,style:Oe.object.isRequired,easing:Oe.oneOfType([Oe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Oe.func]),properties:Oe.arrayOf("string"),onAnimationEnd:Oe.func})),children:Oe.oneOfType([Oe.node,Oe.func]),isActive:Oe.bool,canBegin:Oe.bool,onAnimationEnd:Oe.func,shouldReAnimate:Oe.bool,onAnimationStart:Oe.func,onAnimationReStart:Oe.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});Oe.object,Oe.object,Oe.object,Oe.element;Oe.object,Oe.object,Oe.object,Oe.oneOfType([Oe.array,Oe.element]),Oe.any;function no(e){"@babel/helpers - typeof";return no=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(e)}function js(e,t,n){return t=hL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hL(e){var t=pL(e,"string");return no(t)==="symbol"?t:String(t)}function pL(e,t){if(no(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(no(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ka="recharts-tooltip-wrapper",mL={visibility:"hidden"};function yL(e){var t,n=e.coordinate,r=e.translateX,i=e.translateY;return Ze(ka,(t={},js(t,"".concat(ka,"-right"),le(r)&&n&&le(n.x)&&r>=n.x),js(t,"".concat(ka,"-left"),le(r)&&n&&le(n.x)&&r=n.y),js(t,"".concat(ka,"-top"),le(i)&&n&&le(n.y)&&iv?Math.max(f,l[r]):Math.max(d,l[r])}function gL(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return kh({transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})}function vL(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,d;return o.height>0&&o.width>0&&n?(f=rm({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),d=rm({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=gL({translateX:f,translateY:d,useTranslate3d:s})):u=mL,{cssProperties:u,cssClasses:yL({translateX:f,translateY:d,coordinate:n})}}function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cl(e)}function Us(e,t,n){return t=pb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pb(e){var t=kL(e,"string");return Bi(t)==="symbol"?t:String(t)}function kL(e,t){if(Bi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var om=1,CL=function(e){wL(n,e);var t=SL(n);function n(){var r;xL(this,n);for(var i=arguments.length,a=new Array(i),o=0;oom||Math.abs(i.height-this.lastBoundingBox.height)>om)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,a=this.props,o=a.active,s=a.allowEscapeViewBox,l=a.animationDuration,u=a.animationEasing,f=a.children,d=a.coordinate,h=a.hasPayload,m=a.isAnimationActive,g=a.offset,v=a.position,b=a.reverseDirection,O=a.useTranslate3d,C=a.viewBox,k=a.wrapperStyle,P=vL({allowEscapeViewBox:s,coordinate:d,offsetTopLeft:g,position:v,reverseDirection:b,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:O,viewBox:C}),_=P.cssClasses,w=P.cssProperties,j=Nc(Nc(Nc({},m&&o&&kh({transition:"transform ".concat(l,"ms ").concat(u)})),w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},k);return U.createElement("div",{tabIndex:-1,role:"dialog",className:_,style:j,ref:function(I){i.wrapperNode=I}},f)}}]),n}(B.PureComponent),PL=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ir={isSsr:PL(),get:function(t){return ir[t]},set:function(t,n){if(typeof t=="string")ir[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ir[i]=t[i]})}}};function zi(e){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zi(e)}function sm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lm(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fl(e){return fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fl(e)}function Ch(e,t,n){return t=mb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mb(e){var t=DL(e,"string");return zi(t)==="symbol"?t:String(t)}function DL(e,t){if(zi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LL(e){return e.dataKey}function NL(e,t){return U.isValidElement(e)?U.cloneElement(e,t):typeof e=="function"?U.createElement(e,t):U.createElement(WI,t)}var Gr=function(e){TL(n,e);var t=EL(n);function n(){return AL(this,n),t.apply(this,arguments)}return jL(n,[{key:"render",value:function(){var i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,d=i.filterNull,h=i.isAnimationActive,m=i.offset,g=i.payload,v=i.payloadUniqBy,b=i.position,O=i.reverseDirection,C=i.useTranslate3d,k=i.viewBox,P=i.wrapperStyle,_=g??[];d&&_.length&&(_=eb(g.filter(function(j){return j.value!=null}),v,LL));var w=_.length>0;return U.createElement(CL,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:f,hasPayload:w,offset:m,position:b,reverseDirection:O,useTranslate3d:C,viewBox:k,wrapperStyle:P},NL(u,lm(lm({},this.props),{},{payload:_})))}}]),n}(B.PureComponent);Ch(Gr,"displayName","Tooltip");Ch(Gr,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ir.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var RL=k4,BL=function(){return RL.Date.now()},zL=BL,FL=/\s/;function HL(e){for(var t=e.length;t--&&FL.test(e.charAt(t)););return t}var UL=HL,WL=UL,YL=/^\s+/;function VL(e){return e&&e.slice(0,WL(e)+1).replace(YL,"")}var GL=VL,qL=GL,cm=zo,KL=aa,fm=0/0,XL=/^[-+]0x[0-9a-f]+$/i,ZL=/^0b[01]+$/i,JL=/^0o[0-7]+$/i,QL=parseInt;function eN(e){if(typeof e=="number")return e;if(KL(e))return fm;if(cm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qL(e);var n=ZL.test(e);return n||JL.test(e)?QL(e.slice(2),n?2:8):XL.test(e)?fm:+e}var yb=eN,tN=zo,Rc=zL,dm=yb,nN="Expected a function",rN=Math.max,iN=Math.min;function aN(e,t,n){var r,i,a,o,s,l,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(nN);t=dm(t)||0,tN(n)&&(f=!!n.leading,d="maxWait"in n,a=d?rN(dm(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function m(w){var j=r,E=i;return r=i=void 0,u=w,o=e.apply(E,j),o}function g(w){return u=w,s=setTimeout(O,t),f?m(w):o}function v(w){var j=w-l,E=w-u,I=t-j;return d?iN(I,a-E):I}function b(w){var j=w-l,E=w-u;return l===void 0||j>=t||j<0||d&&E>=a}function O(){var w=Rc();if(b(w))return C(w);s=setTimeout(O,v(w))}function C(w){return s=void 0,h&&r?m(w):(r=i=void 0,o)}function k(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function P(){return s===void 0?o:C(Rc())}function _(){var w=Rc(),j=b(w);if(r=arguments,i=this,l=w,j){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(O,t),m(l)}return s===void 0&&(s=setTimeout(O,t)),o}return _.cancel=k,_.flush=P,_}var oN=aN,sN=oN,lN=zo,uN="Expected a function";function cN(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(uN);return lN(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),sN(e,t,{leading:r,maxWait:t,trailing:i})}var fN=cN;const gb=st(fN);function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(e)}function hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(W=gb(W,v,{trailing:!0,leading:!1}));var Y=new ResizeObserver(W),V=_.current.getBoundingClientRect(),X=V.width,Z=V.height;return M(X,Z),Y.observe(_.current),function(){Y.disconnect()}},[M,v]);var D=B.useMemo(function(){var W=I.containerWidth,Y=I.containerHeight;if(W<0||Y<0)return null;Zr(Vr(o)||Vr(l),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,o,l),Zr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var V=Vr(o)?W:o,X=Vr(l)?Y:l;n&&n>0&&(V?X=V/n:X&&(V=X*n),h&&X>h&&(X=h)),Zr(V>0||X>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,V,X,o,l,f,d,n);var Z=!Array.isArray(m)&&vf.isElement(m)&&rr(m.type).endsWith("Chart");return U.Children.map(m,function(G){return vf.isElement(G)?B.cloneElement(G,js({width:V,height:X},Z?{style:js({height:"100%",width:"100%",maxHeight:X,maxWidth:V},G.props.style)}:{})):G})},[n,m,l,h,d,f,I,o]);return U.createElement("div",{id:b?"".concat(b):void 0,className:Ze("recharts-responsive-container",O),style:js(js({},P),{},{width:o,height:l,minWidth:f,minHeight:d,maxHeight:h}),ref:_},D)}),Ch=function(t){return null};Ch.displayName="Cell";function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(e)}function pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wf(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ir.isSsr)return{width:0,height:0};var r=kN(n),i=JSON.stringify({text:t,copyStyle:r});if(mi.widthCache[i])return mi.widthCache[i];try{var a=document.getElementById(mm);a||(a=document.createElement("span"),a.setAttribute("id",mm),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Wf(Wf({},ON),r);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return mi.widthCache[i]=l,++mi.cacheCount>_N&&(mi.cacheCount=0,mi.widthCache={}),l}catch{return{width:0,height:0}}},CN=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}function fl(e,t){return TN(e)||jN(e,t)||AN(e,t)||PN()}function PN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AN(e,t){if(e){if(typeof e=="string")return ym(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ym(e,t)}}function ym(e,t){(t==null||t>e.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 WN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Sm(e,t){return qN(e)||GN(e,t)||VN(e,t)||YN()}function YN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VN(e,t){if(e){if(typeof e=="string")return _m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _m(e,t)}}function _m(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return V.reduce(function(X,Z){var G=Z.word,Q=Z.width,T=X[X.length-1];if(T&&(i==null||a||T.width+Q+rZ.width?X:Z})};if(!f)return m;for(var v="…",b=function(V){var X=d.slice(0,V),Z=bb({breakAll:u,style:l,children:X+v}).wordsWithComputedWidth,G=h(Z),Q=G.length>o||g(G).width>Number(i);return[Q,G]},O=0,C=d.length-1,k=0,P;O<=C&&k<=d.length-1;){var _=Math.floor((O+C)/2),w=_-1,j=b(w),E=Sm(j,2),I=E[0],z=E[1],M=b(_),D=Sm(M,1),W=D[0];if(!I&&!W&&(O=_+1),I&&W&&(C=_-1),!I&&W){P=z;break}k++}return P||m},Om=function(t){var n=Ee(t)?[]:t.toString().split(xb);return[{words:n}]},XN=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((n||r)&&!ir.isSsr){var l,u,f=bb({breakAll:o,children:i,style:a});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;l=d,u=h}else return Om(i);return KN({breakAll:o,children:i,maxLines:s,style:a},l,u,n,r)}return Om(i)},km="#808080",dl=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,d=f===void 0?!1:f,h=t.textAnchor,m=h===void 0?"start":h,g=t.verticalAnchor,v=g===void 0?"end":g,b=t.fill,O=b===void 0?km:b,C=wm(t,HN),k=B.useMemo(function(){return XN({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:d,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,d,C.style,C.width]),P=C.dx,_=C.dy,w=C.angle,j=C.className,E=C.breakAll,I=wm(C,UN);if(!_t(r)||!_t(a))return null;var z=r+(le(P)?P:0),M=a+(le(_)?_:0),D;switch(v){case"start":D=Rc("calc(".concat(u,")"));break;case"middle":D=Rc("calc(".concat((k.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:D=Rc("calc(".concat(k.length-1," * -").concat(s,")"));break}var W=[];if(d){var Y=k[0].width,V=C.width;W.push("scale(".concat((le(V)?V/Y:1)/Y,")"))}return w&&W.push("rotate(".concat(w,", ").concat(z,", ").concat(M,")")),W.length&&(I.transform=W.join(" ")),U.createElement("text",Yf({},Le(I,!0),{x:z,y:M,className:Ze("recharts-text",j),textAnchor:m,fill:O.includes("url")?km:O}),k.map(function(X,Z){var G=X.words.join(E?"":" ");return U.createElement("tspan",{x:z,dy:Z===0?D:s,key:G},G)}))};function Pr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function ZN(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Ph(e){let t,n,r;e.length!==2?(t=Pr,n=(s,l)=>Pr(e(s),l),r=(s,l)=>e(s)-l):(t=e===Pr||e===ZN?e:JN,n=e,r=e);function i(s,l,u=0,f=s.length){if(u>>1;n(s[d],l)<0?u=d+1:f=d}while(u>>1;n(s[d],l)<=0?u=d+1:f=d}while(uu&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function JN(){return 0}function wb(e){return e===null?NaN:+e}function*QN(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const eR=Ph(Pr),tR=eR.right;Ph(wb).center;const Yo=tR;class Cm extends Map{constructor(t,n=iR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Pm(this,t))}has(t){return super.has(Pm(this,t))}set(t,n){return super.set(nR(this,t),n)}delete(t){return super.delete(rR(this,t))}}function Pm({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function nR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function rR({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function iR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aR(e=Pr){if(e===Pr)return Sb;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Sb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const oR=Math.sqrt(50),sR=Math.sqrt(10),lR=Math.sqrt(2);function hl(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=oR?10:a>=sR?5:a>=lR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function jm(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function _b(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Sb:aR(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(u-l/2<0?-1:1),m=Math.max(n,Math.floor(t-u*d/l+h)),g=Math.min(r,Math.floor(t+(l-u)*d/l+h));_b(e,t,m,g,i)}const a=e[t];let o=n,s=r;for(ka(e,n,t),i(e[r],a)>0&&ka(e,n,r);o0;)--s}i(e[n],a)===0?ka(e,n,s):(++s,ka(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function ka(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function uR(e,t,n){if(e=Float64Array.from(QN(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return jm(e);if(t>=1)return Am(e);var r,i=(r-1)*t,a=Math.floor(i),o=Am(_b(e,a).subarray(0,a+1)),s=jm(e.subarray(a+1));return o+(s-o)*(i-a)}}function cR(e,t,n=wb){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function fR(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Es(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Es(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=hR.exec(e))?new Jt(t[1],t[2],t[3],1):(t=pR.exec(e))?new Jt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mR.exec(e))?Es(t[1],t[2],t[3],t[4]):(t=yR.exec(e))?Es(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=gR.exec(e))?Lm(t[1],t[2]/100,t[3]/100,1):(t=vR.exec(e))?Lm(t[1],t[2]/100,t[3]/100,t[4]):Tm.hasOwnProperty(e)?$m(Tm[e]):e==="transparent"?new Jt(NaN,NaN,NaN,0):null}function $m(e){return new Jt(e>>16&255,e>>8&255,e&255,1)}function Es(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jt(e,t,n,r)}function wR(e){return e instanceof Vo||(e=lo(e)),e?(e=e.rgb(),new Jt(e.r,e.g,e.b,e.opacity)):new Jt}function Xf(e,t,n,r){return arguments.length===1?wR(e):new Jt(e,t,n,r??1)}function Jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}jh(Jt,Xf,kb(Vo,{brighter(e){return e=e==null?pl:Math.pow(pl,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oo:Math.pow(oo,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jt(Zr(this.r),Zr(this.g),Zr(this.b),ml(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Im,formatHex:Im,formatHex8:SR,formatRgb:Dm,toString:Dm}));function Im(){return`#${Gr(this.r)}${Gr(this.g)}${Gr(this.b)}`}function SR(){return`#${Gr(this.r)}${Gr(this.g)}${Gr(this.b)}${Gr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Dm(){const e=ml(this.opacity);return`${e===1?"rgb(":"rgba("}${Zr(this.r)}, ${Zr(this.g)}, ${Zr(this.b)}${e===1?")":`, ${e})`}`}function ml(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gr(e){return e=Zr(e),(e<16?"0":"")+e.toString(16)}function Lm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Tn(e,t,n,r)}function Cb(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);if(e instanceof Vo||(e=lo(e)),!e)return new Tn;if(e instanceof Tn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n0&&l<1?0:o,new Tn(o,s,l,e.opacity)}function _R(e,t,n,r){return arguments.length===1?Cb(e):new Tn(e,t,n,r??1)}function Tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}jh(Tn,_R,kb(Vo,{brighter(e){return e=e==null?pl:Math.pow(pl,e),new Tn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oo:Math.pow(oo,e),new Tn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Jt(Bc(e>=240?e-240:e+120,i,r),Bc(e,i,r),Bc(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Tn(Nm(this.h),Ms(this.s),Ms(this.l),ml(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ml(this.opacity);return`${e===1?"hsl(":"hsla("}${Nm(this.h)}, ${Ms(this.s)*100}%, ${Ms(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Nm(e){return e=(e||0)%360,e<0?e+360:e}function Ms(e){return Math.max(0,Math.min(1,e||0))}function Bc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Th=e=>()=>e;function OR(e,t){return function(n){return e+n*t}}function kR(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function CR(e){return(e=+e)==1?Pb:function(t,n){return n-t?kR(t,n,e):Th(isNaN(t)?n:t)}}function Pb(e,t){var n=t-e;return n?OR(e,n):Th(isNaN(e)?t:e)}const Rm=function e(t){var n=CR(t);function r(i,a){var o=n((i=Xf(i)).r,(a=Xf(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),u=Pb(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function PR(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:yl(r,i)})),n=zc.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function RR(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?BR:RR,l=u=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(r),t,n)))(r(o(h)))}return d.invert=function(h){return o(i((u||(u=s(t,e.map(r),yl)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,gl),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Eh,f()},d.clamp=function(h){return arguments.length?(o=h?!0:Vt,f()):o!==Vt},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,m){return r=h,i=m,f()}}function Mh(){return gu()(Vt,Vt)}function zR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function zi(e){return e=vl(Math.abs(e)),e?e[1]:NaN}function FR(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function HR(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var UR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uo(e){if(!(t=UR.exec(e)))throw new Error("invalid format: "+e);var t;return new $h({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}uo.prototype=$h.prototype;function $h(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}$h.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function WR(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Ab;function YR(e,t){var n=vl(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Ab=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+vl(e,Math.max(0,t+a-1))[0]}function zm(e,t){var n=vl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Fm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:zR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>zm(e*100,t),r:zm,s:YR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Hm(e){return e}var Um=Array.prototype.map,Wm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function VR(e){var t=e.grouping===void 0||e.thousands===void 0?Hm:FR(Um.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Hm:HR(Um.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=uo(d);var h=d.fill,m=d.align,g=d.sign,v=d.symbol,b=d.zero,O=d.width,C=d.comma,k=d.precision,P=d.trim,_=d.type;_==="n"?(C=!0,_="g"):Fm[_]||(k===void 0&&(k=12),P=!0,_="g"),(b||h==="0"&&m==="=")&&(b=!0,h="0",m="=");var w=v==="$"?n:v==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",j=v==="$"?r:/[%p]/.test(_)?o:"",E=Fm[_],I=/[defgprs%]/.test(_);k=k===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function z(M){var D=w,W=j,Y,V,X;if(_==="c")W=E(M)+W,M="";else{M=+M;var Z=M<0||1/M<0;if(M=isNaN(M)?l:E(Math.abs(M),k),P&&(M=WR(M)),Z&&+M==0&&g!=="+"&&(Z=!1),D=(Z?g==="("?g:s:g==="-"||g==="("?"":g)+D,W=(_==="s"?Wm[8+Ab/3]:"")+W+(Z&&g==="("?")":""),I){for(Y=-1,V=M.length;++YX||X>57){W=(X===46?i+M.slice(Y+1):M.slice(Y))+W,M=M.slice(0,Y);break}}}C&&!b&&(M=t(M,1/0));var G=D.length+M.length+W.length,Q=G>1)+D+M+W+Q.slice(G);break;default:M=Q+D+M+W;break}return a(M)}return z.toString=function(){return d+""},z}function f(d,h){var m=u((d=uo(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(zi(h)/3)))*3,v=Math.pow(10,-g),b=Wm[8+g/3];return function(O){return m(v*O)+b}}return{format:u,formatPrefix:f}}var $s,Ih,jb;GR({thousands:",",grouping:[3],currency:["$",""]});function GR(e){return $s=VR(e),Ih=$s.format,jb=$s.formatPrefix,$s}function qR(e){return Math.max(0,-zi(Math.abs(e)))}function KR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zi(t)/3)))*3-zi(Math.abs(e)))}function XR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zi(t)-zi(e))+1}function Tb(e,t,n,r){var i=qf(e,t,n),a;switch(r=uo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=KR(i,o))&&(r.precision=a),jb(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=XR(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=qR(i))&&(r.precision=a-(r.type==="%")*2);break}}return Ih(r)}function Ir(e){var t=e.domain;return e.ticks=function(n){var r=t();return Vf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Tb(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,f=10;for(s0;){if(u=Gf(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function xl(){var e=Mh();return e.copy=function(){return Go(e,xl())},kn.apply(e,arguments),Ir(e)}function Eb(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,gl),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Eb(e).unknown(t)},e=arguments.length?Array.from(e,gl):[0,1],Ir(n)}function Mb(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return aMath.pow(e,t)}function tB(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Gm(e){return(t,n)=>-e(-t,n)}function Dh(e){const t=e(Ym,Vm),n=t.domain;let r=10,i,a;function o(){return i=tB(r),a=eB(r),n()[0]<0?(i=Gm(i),a=Gm(a),e(ZR,JR)):e(Ym,Vm),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const d=f0){for(;h<=m;++h)for(g=1;gf)break;O.push(v)}}else for(;h<=m;++h)for(g=r-1;g>=1;--g)if(v=h>0?g/a(-h):g*a(h),!(vf)break;O.push(v)}O.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=uo(l)).precision==null&&(l.trim=!0),l=Ih(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/a(Math.round(i(f)));return d*rn(Mb(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function $b(){const e=Dh(gu()).domain([1,10]);return e.copy=()=>Go(e,$b()).base(e.base()),kn.apply(e,arguments),e}function qm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Km(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Lh(e){var t=1,n=e(qm(t),Km(t));return n.constant=function(r){return arguments.length?e(qm(t=+r),Km(t)):t},Ir(n)}function Ib(){var e=Lh(gu());return e.copy=function(){return Go(e,Ib()).constant(e.constant())},kn.apply(e,arguments)}function Xm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function nB(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function rB(e){return e<0?-e*e:e*e}function Nh(e){var t=e(Vt,Vt),n=1;function r(){return n===1?e(Vt,Vt):n===.5?e(nB,rB):e(Xm(n),Xm(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Ir(t)}function Rh(){var e=Nh(gu());return e.copy=function(){return Go(e,Rh()).exponent(e.exponent())},kn.apply(e,arguments),e}function iB(){return Rh.apply(null,arguments).exponent(.5)}function Zm(e){return Math.sign(e)*e*e}function aB(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Db(){var e=Mh(),t=[0,1],n=!1,r;function i(a){var o=aB(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(Zm(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,gl)).map(Zm)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Db(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},kn.apply(i,arguments),Ir(i)}function Lb(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return Nb().domain([e,t]).range(i).unknown(a)},kn.apply(Ir(o),arguments)}function Rb(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Yo(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Rb().domain(e).range(t).unknown(n)},kn.apply(i,arguments)}const Fc=new Date,Hc=new Date;function Ot(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(uOt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Fc.setTime(+a),Hc.setTime(+o),e(Fc),e(Hc),Math.floor(n(Fc,Hc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const bl=Ot(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ot(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):bl);bl.range;const tr=1e3,xn=tr*60,nr=xn*60,sr=nr*24,Bh=sr*7,Jm=sr*30,Uc=sr*365,qr=Ot(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCSeconds());qr.range;const zh=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tr)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getMinutes());zh.range;const Fh=Ot(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getUTCMinutes());Fh.range;const Hh=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tr-e.getMinutes()*xn)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getHours());Hh.range;const Uh=Ot(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getUTCHours());Uh.range;const qo=Ot(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xn)/sr,e=>e.getDate()-1);qo.range;const vu=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>e.getUTCDate()-1);vu.range;const Bb=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>Math.floor(e/sr));Bb.range;function ri(e){return Ot(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xn)/Bh)}const xu=ri(0),wl=ri(1),oB=ri(2),sB=ri(3),Fi=ri(4),lB=ri(5),uB=ri(6);xu.range;wl.range;oB.range;sB.range;Fi.range;lB.range;uB.range;function ii(e){return Ot(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Bh)}const bu=ii(0),Sl=ii(1),cB=ii(2),fB=ii(3),Hi=ii(4),dB=ii(5),hB=ii(6);bu.range;Sl.range;cB.range;fB.range;Hi.range;dB.range;hB.range;const Wh=Ot(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Wh.range;const Yh=Ot(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Yh.range;const lr=Ot(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});lr.range;const ur=Ot(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ur.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ur.range;function zb(e,t,n,r,i,a){const o=[[qr,1,tr],[qr,5,5*tr],[qr,15,15*tr],[qr,30,30*tr],[a,1,xn],[a,5,5*xn],[a,15,15*xn],[a,30,30*xn],[i,1,nr],[i,3,3*nr],[i,6,6*nr],[i,12,12*nr],[r,1,sr],[r,2,2*sr],[n,1,Bh],[t,1,Jm],[t,3,3*Jm],[e,1,Uc]];function s(u,f,d){const h=fb).right(o,h);if(m===o.length)return e.every(qf(u/Uc,f/Uc,d));if(m===0)return bl.every(Math.max(qf(u,f,d),1));const[g,v]=o[h/o[m-1][2]53)return null;"w"in ee||(ee.w=1),"Z"in ee?(he=Yc(Ca(ee.y,0,1)),xe=he.getUTCDay(),he=xe>4||xe===0?Sl.ceil(he):Sl(he),he=vu.offset(he,(ee.V-1)*7),ee.y=he.getUTCFullYear(),ee.m=he.getUTCMonth(),ee.d=he.getUTCDate()+(ee.w+6)%7):(he=Wc(Ca(ee.y,0,1)),xe=he.getDay(),he=xe>4||xe===0?wl.ceil(he):wl(he),he=qo.offset(he,(ee.V-1)*7),ee.y=he.getFullYear(),ee.m=he.getMonth(),ee.d=he.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),xe="Z"in ee?Yc(Ca(ee.y,0,1)).getUTCDay():Wc(Ca(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(xe+5)%7:ee.w+ee.U*7-(xe+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Yc(ee)):Wc(ee)}}function E(ae,de,ve,ee){for(var Ae=0,he=de.length,xe=ve.length,He,rt;Ae=xe)return-1;if(He=de.charCodeAt(Ae++),He===37){if(He=de.charAt(Ae++),rt=_[He in Qm?de.charAt(Ae++):He],!rt||(ee=rt(ae,ve,ee))<0)return-1}else if(He!=ve.charCodeAt(ee++))return-1}return ee}function I(ae,de,ve){var ee=u.exec(de.slice(ve));return ee?(ae.p=f.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function z(ae,de,ve){var ee=m.exec(de.slice(ve));return ee?(ae.w=g.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function M(ae,de,ve){var ee=d.exec(de.slice(ve));return ee?(ae.w=h.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function D(ae,de,ve){var ee=O.exec(de.slice(ve));return ee?(ae.m=C.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function W(ae,de,ve){var ee=v.exec(de.slice(ve));return ee?(ae.m=b.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function Y(ae,de,ve){return E(ae,t,de,ve)}function V(ae,de,ve){return E(ae,n,de,ve)}function X(ae,de,ve){return E(ae,r,de,ve)}function Z(ae){return o[ae.getDay()]}function G(ae){return a[ae.getDay()]}function Q(ae){return l[ae.getMonth()]}function T(ae){return s[ae.getMonth()]}function pe(ae){return i[+(ae.getHours()>=12)]}function ue(ae){return 1+~~(ae.getMonth()/3)}function $(ae){return o[ae.getUTCDay()]}function _e(ae){return a[ae.getUTCDay()]}function te(ae){return l[ae.getUTCMonth()]}function ge(ae){return s[ae.getUTCMonth()]}function Ye(ae){return i[+(ae.getUTCHours()>=12)]}function Me(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var de=w(ae+="",k);return de.toString=function(){return ae},de},parse:function(ae){var de=j(ae+="",!1);return de.toString=function(){return ae},de},utcFormat:function(ae){var de=w(ae+="",P);return de.toString=function(){return ae},de},utcParse:function(ae){var de=j(ae+="",!0);return de.toString=function(){return ae},de}}}var Qm={"-":"",_:" ",0:"0"},Tt=/^\s*\d+/,xB=/^%/,bB=/[\\^$*+?|[\]().{}]/g;function Fe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[t.toLowerCase(),n]))}function SB(e,t,n){var r=Tt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _B(e,t,n){var r=Tt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function OB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function kB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function CB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ey(e,t,n){var r=Tt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ty(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function PB(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AB(e,t,n){var r=Tt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ny(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function TB(e,t,n){var r=Tt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ry(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function EB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function MB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $B(e,t,n){var r=Tt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function IB(e,t,n){var r=Tt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function DB(e,t,n){var r=xB.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function LB(e,t,n){var r=Tt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function NB(e,t,n){var r=Tt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function iy(e,t){return Fe(e.getDate(),t,2)}function RB(e,t){return Fe(e.getHours(),t,2)}function BB(e,t){return Fe(e.getHours()%12||12,t,2)}function zB(e,t){return Fe(1+qo.count(lr(e),e),t,3)}function Fb(e,t){return Fe(e.getMilliseconds(),t,3)}function FB(e,t){return Fb(e,t)+"000"}function HB(e,t){return Fe(e.getMonth()+1,t,2)}function UB(e,t){return Fe(e.getMinutes(),t,2)}function WB(e,t){return Fe(e.getSeconds(),t,2)}function YB(e){var t=e.getDay();return t===0?7:t}function VB(e,t){return Fe(xu.count(lr(e)-1,e),t,2)}function Hb(e){var t=e.getDay();return t>=4||t===0?Fi(e):Fi.ceil(e)}function GB(e,t){return e=Hb(e),Fe(Fi.count(lr(e),e)+(lr(e).getDay()===4),t,2)}function qB(e){return e.getDay()}function KB(e,t){return Fe(wl.count(lr(e)-1,e),t,2)}function XB(e,t){return Fe(e.getFullYear()%100,t,2)}function ZB(e,t){return e=Hb(e),Fe(e.getFullYear()%100,t,2)}function JB(e,t){return Fe(e.getFullYear()%1e4,t,4)}function QB(e,t){var n=e.getDay();return e=n>=4||n===0?Fi(e):Fi.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function ez(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function ay(e,t){return Fe(e.getUTCDate(),t,2)}function tz(e,t){return Fe(e.getUTCHours(),t,2)}function nz(e,t){return Fe(e.getUTCHours()%12||12,t,2)}function rz(e,t){return Fe(1+vu.count(ur(e),e),t,3)}function Ub(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function iz(e,t){return Ub(e,t)+"000"}function az(e,t){return Fe(e.getUTCMonth()+1,t,2)}function oz(e,t){return Fe(e.getUTCMinutes(),t,2)}function sz(e,t){return Fe(e.getUTCSeconds(),t,2)}function lz(e){var t=e.getUTCDay();return t===0?7:t}function uz(e,t){return Fe(bu.count(ur(e)-1,e),t,2)}function Wb(e){var t=e.getUTCDay();return t>=4||t===0?Hi(e):Hi.ceil(e)}function cz(e,t){return e=Wb(e),Fe(Hi.count(ur(e),e)+(ur(e).getUTCDay()===4),t,2)}function fz(e){return e.getUTCDay()}function dz(e,t){return Fe(Sl.count(ur(e)-1,e),t,2)}function hz(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function pz(e,t){return e=Wb(e),Fe(e.getUTCFullYear()%100,t,2)}function mz(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function yz(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Hi(e):Hi.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function gz(){return"+0000"}function oy(){return"%"}function sy(e){return+e}function ly(e){return Math.floor(+e/1e3)}var yi,Yb,Vb;vz({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function vz(e){return yi=vB(e),Yb=yi.format,yi.parse,Vb=yi.utcFormat,yi.utcParse,yi}function xz(e){return new Date(e)}function bz(e){return e instanceof Date?+e:+new Date(+e)}function Vh(e,t,n,r,i,a,o,s,l,u){var f=Mh(),d=f.invert,h=f.domain,m=u(".%L"),g=u(":%S"),v=u("%I:%M"),b=u("%I %p"),O=u("%a %d"),C=u("%b %d"),k=u("%B"),P=u("%Y");function _(w){return(l(w)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>uR(e,a/r))},n.copy=function(){return Xb(t).domain(e)},cr.apply(n,arguments)}function Su(){var e=0,t=.5,n=1,r=1,i,a,o,s,l,u=Vt,f,d=!1,h;function m(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(r*vt}var Az=Pz,jz=e2,Tz=Az,Ez=aa;function Mz(e){return e&&e.length?jz(e,Ez,Tz):void 0}var $z=Mz;const _u=st($z);function Iz(e,t){return ee.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};fe.decimalPlaces=fe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};fe.dividedBy=fe.div=function(e){return ar(this,new this.constructor(e))};fe.dividedToIntegerBy=fe.idiv=function(e){var t=this,n=t.constructor;return Qe(ar(t,new n(e),0,1),n.precision)};fe.equals=fe.eq=function(e){return!this.cmp(e)};fe.exponent=function(){return bt(this)};fe.greaterThan=fe.gt=function(e){return this.cmp(e)>0};fe.greaterThanOrEqualTo=fe.gte=function(e){return this.cmp(e)>=0};fe.isInteger=fe.isint=function(){return this.e>this.d.length-2};fe.isNegative=fe.isneg=function(){return this.s<0};fe.isPositive=fe.ispos=function(){return this.s>0};fe.isZero=function(){return this.s===0};fe.lessThan=fe.lt=function(e){return this.cmp(e)<0};fe.lessThanOrEqualTo=fe.lte=function(e){return this.cmp(e)<1};fe.logarithm=fe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(sn))throw Error(wn+"NaN");if(n.s<1)throw Error(wn+(n.s?"NaN":"-Infinity"));return n.eq(sn)?new r(0):(ct=!1,t=ar(co(n,a),co(e,a),a),ct=!0,Qe(t,i))};fe.minus=fe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?i2(t,e):n2(t,(e.s=-e.s,e))};fe.modulo=fe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(wn+"NaN");return n.s?(ct=!1,t=ar(n,e,0,1).times(e),ct=!0,n.minus(t)):Qe(new r(n),i)};fe.naturalExponential=fe.exp=function(){return r2(this)};fe.naturalLogarithm=fe.ln=function(){return co(this)};fe.negated=fe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};fe.plus=fe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?n2(t,e):i2(t,(e.s=-e.s,e))};fe.precision=fe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Jr+e);if(t=bt(i)+1,r=i.d.length-1,n=r*ot+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};fe.squareRoot=fe.sqrt=function(){var e,t,n,r,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(wn+"NaN")}for(e=bt(s),ct=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=zn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ua((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=o=n+3;;)if(a=r,r=a.plus(ar(s,a,o+2)).times(.5),zn(a.d).slice(0,o)===(t=zn(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Qe(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!="9999")break;o+=4}return ct=!0,Qe(r,n)};fe.times=fe.mul=function(e){var t,n,r,i,a,o,s,l,u,f=this,d=f.constructor,h=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=h.length,u=m.length,l=0;){for(t=0,i=l+r;i>r;)s=a[i]+m[r]*h[i-r-1]+t,a[i--]=s%Pt|0,t=s/Pt|0;a[i]=(a[i]+t)%Pt|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,ct?Qe(e,d.precision):e};fe.toDecimalPlaces=fe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Yn(e,0,la),t===void 0?t=r.rounding:Yn(t,0,8),Qe(n,e+bt(n)+1,t))};fe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ei(r,!0):(Yn(e,0,la),t===void 0?t=i.rounding:Yn(t,0,8),r=Qe(new i(r),e+1,t),n=ei(r,!0,e+1)),n};fe.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ei(i):(Yn(e,0,la),t===void 0?t=a.rounding:Yn(t,0,8),r=Qe(new a(i),e+bt(i)+1,t),n=ei(r.abs(),!1,e+bt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};fe.toInteger=fe.toint=function(){var e=this,t=e.constructor;return Qe(new t(e),bt(e)+1,t.rounding)};fe.toNumber=function(){return+this};fe.toPower=fe.pow=function(e){var t,n,r,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(sn);if(s=new l(s),!s.s){if(e.s<1)throw Error(wn+"Infinity");return s}if(s.eq(sn))return s;if(r=l.precision,e.eq(sn))return Qe(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,o){if((n=f<0?-f:f)<=t2){for(i=new l(sn),t=Math.ceil(r/ot+4),ct=!1;n%2&&(i=i.times(s),fy(i.d,t)),n=ua(n/2),n!==0;)s=s.times(s),fy(s.d,t);return ct=!0,e.s<0?new l(sn).div(i):Qe(i,r)}}else if(a<0)throw Error(wn+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,ct=!1,i=e.times(co(s,r+u)),ct=!0,i=r2(i),i.s=a,i};fe.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=bt(i),r=ei(i,n<=a.toExpNeg||n>=a.toExpPos)):(Yn(e,1,la),t===void 0?t=a.rounding:Yn(t,0,8),i=Qe(new a(i),e,t),n=bt(i),r=ei(i,e<=n||n<=a.toExpNeg,e)),r};fe.toSignificantDigits=fe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Yn(e,1,la),t===void 0?t=r.rounding:Yn(t,0,8)),Qe(new r(n),e,t)};fe.toString=fe.valueOf=fe.val=fe.toJSON=fe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),n=e.constructor;return ei(e,t<=n.toExpNeg||t>=n.toExpPos)};function n2(e,t){var n,r,i,a,o,s,l,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ct?Qe(t,d):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(r=l,a=-a,s=u.length):(r=u,i=o,s=l.length),o=Math.ceil(d/ot),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,r=u,u=l,l=r),n=0;a;)n=(l[--a]=l[a]+u[a]+n)/Pt|0,l[a]%=Pt;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ct?Qe(t,d):t}function Yn(e,t,n){if(e!==~~e||en)throw Error(Jr+e)}function zn(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]1;)r.shift()}return function(r,i,a,o){var s,l,u,f,d,h,m,g,v,b,O,C,k,P,_,w,j,E,I=r.constructor,z=r.s==i.s?1:-1,M=r.d,D=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(wn+"Division by zero");for(l=r.e-i.e,j=D.length,_=M.length,m=new I(z),g=m.d=[],u=0;D[u]==(M[u]||0);)++u;if(D[u]>(M[u]||0)&&--l,a==null?C=a=I.precision:o?C=a+(bt(r)-bt(i))+1:C=a,C<0)return new I(0);if(C=C/ot+2|0,u=0,j==1)for(f=0,D=D[0],C++;(u<_||f)&&C--;u++)k=f*Pt+(M[u]||0),g[u]=k/D|0,f=k%D|0;else{for(f=Pt/(D[0]+1)|0,f>1&&(D=e(D,f),M=e(M,f),j=D.length,_=M.length),P=j,v=M.slice(0,j),b=v.length;b=Pt/2&&++w;do f=0,s=t(D,v,j,b),s<0?(O=v[0],j!=b&&(O=O*Pt+(v[1]||0)),f=O/w|0,f>1?(f>=Pt&&(f=Pt-1),d=e(D,f),h=d.length,b=v.length,s=t(d,v,h,b),s==1&&(f--,n(d,j16)throw Error(Kh+bt(e));if(!e.s)return new f(sn);for(t==null?(ct=!1,s=d):s=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Ur(2,u))/Math.LN10*2+5|0,s+=r,n=i=a=new f(sn),f.precision=s;;){if(i=Qe(i.times(e),s),n=n.times(++l),o=a.plus(ar(i,n,s)),zn(o.d).slice(0,s)===zn(a.d).slice(0,s)){for(;u--;)a=Qe(a.times(a),s);return f.precision=d,t==null?(ct=!0,Qe(a,d)):a}a=o}}function bt(e){for(var t=e.e*ot,n=e.d[0];n>=10;n/=10)t++;return t}function Vc(e,t,n){if(t>e.LN10.sd())throw ct=!0,n&&(e.precision=n),Error(wn+"LN10 precision limit exceeded");return Qe(new e(e.LN10),t)}function Or(e){for(var t="";e--;)t+="0";return t}function co(e,t){var n,r,i,a,o,s,l,u,f,d=1,h=10,m=e,g=m.d,v=m.constructor,b=v.precision;if(m.s<1)throw Error(wn+(m.s?"NaN":"-Infinity"));if(m.eq(sn))return new v(0);if(t==null?(ct=!1,u=b):u=t,m.eq(10))return t==null&&(ct=!0),Vc(v,u);if(u+=h,v.precision=u,n=zn(g),r=n.charAt(0),a=bt(m),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=zn(m.d),r=n.charAt(0),d++;a=bt(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1))}else return l=Vc(v,u+2,b).times(a+""),m=co(new v(r+"."+n.slice(1)),u-h).plus(l),v.precision=b,t==null?(ct=!0,Qe(m,b)):m;for(s=o=m=ar(m.minus(sn),m.plus(sn),u),f=Qe(m.times(m),u),i=3;;){if(o=Qe(o.times(f),u),l=s.plus(ar(o,new v(i),u)),zn(l.d).slice(0,u)===zn(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(Vc(v,u+2,b).times(a+""))),s=ar(s,new v(d),u),v.precision=b,t==null?(ct=!0,Qe(s,b)):s;s=l,i+=2}}function cy(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=ua(n/ot),e.d=[],r=(n+1)%ot,n<0&&(r+=ot),r_l||e.e<-_l))throw Error(Kh+n)}else e.s=0,e.e=0,e.d=[0];return e}function Qe(e,t,n){var r,i,a,o,s,l,u,f,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=ot,i=t,u=d[f=0];else{if(f=Math.ceil((r+1)/ot),a=d.length,f>=a)return e;for(u=a=d[f],o=1;a>=10;a/=10)o++;r%=ot,i=r-ot+o}if(n!==void 0&&(a=Ur(10,o-i-1),s=u/a%10|0,l=t<0||d[f+1]!==void 0||u%a,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Ur(10,o-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(a=bt(e),d.length=1,t=t-a-1,d[0]=Ur(10,(ot-t%ot)%ot),e.e=ua(-t/ot)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,a=1,f--):(d.length=f+1,a=Ur(10,ot-r),d[f]=i>0?(u/Ur(10,o-i)%Ur(10,i)|0)*a:0),l)for(;;)if(f==0){(d[0]+=a)==Pt&&(d[0]=1,++e.e);break}else{if(d[f]+=a,d[f]!=Pt)break;d[f--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(ct&&(e.e>_l||e.e<-_l))throw Error(Kh+bt(e));return e}function i2(e,t){var n,r,i,a,o,s,l,u,f,d,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ct?Qe(t,m):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),o=u-r,o){for(f=o<0,f?(n=l,o=-o,s=d.length):(n=d,r=u,s=l.length),i=Math.max(Math.ceil(m/ot),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,f=i0;--i)l[s++]=0;for(i=d.length;i>o;){if(l[--i]0?a=a.charAt(0)+"."+a.slice(1)+Or(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Or(-i-1)+a,n&&(r=n-o)>0&&(a+=Or(r))):i>=o?(a+=Or(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+Or(r))):((r=i+1)0&&(i+1===o&&(a+="."),a+=Or(r))),e.s<0?"-"+a:a}function fy(e,t){if(e.length>t)return e.length=t,!0}function a2(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Jr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return cy(o,a.toString())}else if(typeof a!="string")throw Error(Jr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,nF.test(a))cy(o,a);else throw Error(Jr+a)}if(i.prototype=fe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=a2,i.config=i.set=rF,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Jr+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Jr+n+": "+r);return this}var Xh=a2(tF);sn=new Xh(1);const Xe=Xh;function iF(e){return lF(e)||sF(e)||oF(e)||aF()}function aF(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oF(e,t){if(e){if(typeof e=="string")return Qf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qf(e,t)}}function sF(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function lF(e){if(Array.isArray(e))return Qf(e)}function Qf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-o,dy(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,a=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function _F(e){if(Array.isArray(e))return e}function c2(e){var t=fo(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function f2(e,t,n){if(e.lte(0))return new Xe(0);var r=Pu.getDigitCount(e.toNumber()),i=new Xe(10).pow(r),a=e.div(i),o=r!==1?.05:.1,s=new Xe(Math.ceil(a.div(o).toNumber())).add(n).mul(o),l=s.mul(i);return t?l:new Xe(Math.ceil(l))}function OF(e,t,n){var r=1,i=new Xe(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Xe(10).pow(Pu.getDigitCount(e)-1),i=new Xe(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Xe(Math.floor(e)))}else e===0?i=new Xe(Math.floor((t-1)/2)):n||(i=new Xe(Math.floor(e)));var o=Math.floor((t-1)/2),s=dF(fF(function(l){return i.add(new Xe(l-o).mul(r)).toNumber()}),ed);return s(0,t)}function d2(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var a=f2(new Xe(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Xe(0):(o=new Xe(e).add(t).div(2),o=o.sub(new Xe(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Xe(t).sub(o).div(a).toNumber()),u=s+l+1;return u>n?d2(e,t,n,r,i+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:a,tickMin:o.sub(new Xe(s).mul(a)),tickMax:o.add(new Xe(l).mul(a))})}function kF(e){var t=fo(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=c2([n,r]),l=fo(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(nd(ed(0,i-1).map(function(){return 1/0}))):[].concat(nd(ed(0,i-1).map(function(){return-1/0})),[f]);return n>r?td(d):d}if(u===f)return OF(u,i,a);var h=d2(u,f,o,a),m=h.step,g=h.tickMin,v=h.tickMax,b=Pu.rangeStep(g,v.add(new Xe(.1).mul(m)),m);return n>r?td(b):b}function CF(e,t){var n=fo(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=c2([r,i]),s=fo(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),d=f2(new Xe(u).sub(l).div(f-1),a,0),h=[].concat(nd(Pu.rangeStep(new Xe(l),new Xe(u).sub(new Xe(.99).mul(d)),d)),[u]);return r>i?td(h):h}var PF=l2(kF),AF=l2(CF),jF=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;te.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 LF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Ko(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=DF(e,jF),f=Le(u),d=a.map(function(h){var m=o(h,i),g=m.x,v=m.y,b=m.value,O=m.errorVal;if(!O)return null;var C=[],k,P;if(Array.isArray(O)){var _=TF(O,2);k=_[0],P=_[1]}else k=P=O;if(n==="vertical"){var w=s.scale,j=v+t,E=j+r,I=j-r,z=w(b-k),M=w(b+P);C.push({x1:M,y1:E,x2:M,y2:I}),C.push({x1:z,y1:j,x2:M,y2:j}),C.push({x1:z,y1:E,x2:z,y2:I})}else if(n==="horizontal"){var D=l.scale,W=g+t,Y=W-r,V=W+r,X=D(b-k),Z=D(b+P);C.push({x1:Y,y1:Z,x2:V,y2:Z}),C.push({x1:W,y1:X,x2:W,y2:Z}),C.push({x1:Y,y1:X,x2:V,y2:X})}return U.createElement(dt,Ol({className:"recharts-errorBar",key:"bar-".concat(C.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},f),C.map(function(G){return U.createElement("line",Ol({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return U.createElement(dt,{className:"recharts-errorBars"},d)}Ko.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Ko.displayName="ErrorBar";function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function py(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,d=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,m=void 0;if(Mn(d-f)!==Mn(h-d)){var g=[];if(Mn(h-d)===Mn(l[1]-l[0])){m=h;var v=d+l[1]-l[0];g[0]=Math.min(v,(v+f)/2),g[1]=Math.max(v,(v+f)/2)}else{m=f;var b=h+l[1]-l[0];g[0]=Math.min(d,(b+d)/2),g[1]=Math.max(d,(b+d)/2)}var O=[Math.min(d,(m+d)/2),Math.max(d,(m+d)/2)];if(t>O[0]&&t<=O[1]||t>=g[0]&&t<=g[1]){o=i[u].index;break}}else{var C=Math.min(f,h),k=Math.max(f,h);if(t>(C+d)/2&&t<=(k+d)/2){o=i[u].index;break}}}else for(var P=0;P0&&P(r[P].coordinate+r[P-1].coordinate)/2&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P===s-1&&t>(r[P].coordinate+r[P-1].coordinate)/2){o=r[P].index;break}return o},Zh=function(t){var n=t,r=n.type.displayName,i=t.props,a=i.stroke,o=i.fill,s;switch(r){case"Line":s=a;break;case"Area":case"Radar":s=a&&a!=="none"?a:o;break;default:s=o;break}return s},GF=function(t){var n=t.barSize,r=t.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),s=0,l=o.length;s=0});if(b&&b.length){var O=b[0].props.barSize,C=b[0].props[v];a[C]||(a[C]=[]),a[C].push({item:b[0],stackList:b.slice(1),barSize:Ee(O)?n:O})}}return a},qF=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=Mi(n,i,0,!0),f,d=[];if(o[0].barSize===+o[0].barSize){var h=!1,m=i/l,g=o.reduce(function(P,_){return P+_.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&m>0&&(h=!0,m*=.9,g=l*m);var v=(i-g)/2>>0,b={offset:v-u,size:0};f=o.reduce(function(P,_){var w={item:_.item,position:{offset:b.offset+b.size+u,size:h?m:_.barSize}},j=[].concat(yy(P),[w]);return b=j[j.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function(E){j.push({item:E,position:b})}),j},d)}else{var O=Mi(r,i,0,!0);i-2*O-(l-1)*u<=0&&(u=0);var C=(i-2*O-(l-1)*u)/l;C>1&&(C>>=0);var k=s===+s?Math.min(C,s):C;f=o.reduce(function(P,_,w){var j=[].concat(yy(P),[{item:_.item,position:{offset:O+(C+u)*w+(C-k)/2,size:k}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function(E){j.push({item:E,position:j[j.length-1].position})}),j},d)}return f},KF=function(t,n,r,i){var a=r.children,o=r.width,s=r.margin,l=o-(s.left||0)-(s.right||0),u=h2({children:a,legendWidth:l});if(u){var f=i||{},d=f.width,h=f.height,m=u.align,g=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&g==="middle")&&m!=="center"&&le(t[m]))return gn(gn({},t),{},Ai({},m,t[m]+(d||0)));if((v==="horizontal"||v==="vertical"&&m==="center")&&g!=="middle"&&le(t[g]))return gn(gn({},t),{},Ai({},g,t[g]+(h||0)))}return t},XF=function(t,n,r){return Ee(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},p2=function(t,n,r,i,a){var o=n.props.children,s=un(o,Ko).filter(function(u){return XF(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=Gt(f,r,0),h=Array.isArray(d)?[Ou(d),_u(d)]:[d,d],m=l.reduce(function(g,v){var b=Gt(f,v,0),O=h[0]-Math.abs(Array.isArray(b)?b[0]:b),C=h[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(O,g[0]),Math.max(C,g[1])]},[1/0,-1/0]);return[Math.min(m[0],u[0]),Math.max(m[1],u[1])]},[1/0,-1/0])}return null},ZF=function(t,n,r,i,a){var o=n.map(function(s){return p2(t,s,r,a,i)}).filter(function(s){return!Ee(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},m2=function(t,n,r,i,a){var o=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&p2(t,l,u,i)||Ua(t,u,r,a)});if(r==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,d=u.length;f=2?Mn(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var h=a?a.indexOf(d):d;return{coordinate:i(h)+u,value:d,offset:u}});return f.filter(function(d){return!Uo(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:i(d)+u,value:d,index:h,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+u,value:d,offset:u}}):i.domain().map(function(d,h){return{coordinate:i(d)+u,value:a?a[d]:d,index:h,offset:u}})},qc=new WeakMap,Is=function(t,n){if(typeof n!="function")return t;qc.has(t)||qc.set(t,new WeakMap);var r=qc.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},JF=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:ao(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:xl(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ha(),realScaleType:"point"}:a==="category"?{scale:ao(),realScaleType:"band"}:{scale:xl(),realScaleType:"linear"};if(Ho(i)){var l="scale".concat(cu(i));return{scale:(uy[l]||Ha)(),realScaleType:uy[l]?l:"point"}}return Te(i)?{scale:i}:{scale:Ha(),realScaleType:"point"}},vy=1e-4,QF=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-vy,o=Math.max(i[0],i[1])+vy,s=t(n[0]),l=t(n[r-1]);(so||lo)&&t.domain([n[0],n[r-1]])}},eH=function(t,n){if(!t)return null;for(var r=0,i=t.length;ri)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1]):(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1])}},rH=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[o][r][0]=a,t[o][r][1]=a+s,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},iH={sign:nH,expand:Gj,none:$i,silhouette:qj,wiggle:Kj,positive:rH},aH=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),a=iH[r],o=Vj().keys(i).value(function(s,l){return+Gt(s,l,0)}).order(Af).offset(a);return o(t)},oH=function(t,n,r,i,a,o){if(!t)return null;var s=o?n.reverse():n,l={},u=s.reduce(function(d,h){var m=h.props,g=m.stackId,v=m.hide;if(v)return d;var b=h.props[r],O=d[b]||{hasStack:!1,stackGroups:{}};if(_t(g)){var C=O.stackGroups[g]||{numericAxisId:r,cateAxisId:i,items:[]};C.items.push(h),O.hasStack=!0,O.stackGroups[g]=C}else O.stackGroups[Wo("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[h]};return gn(gn({},d),{},Ai({},b,O))},l),f={};return Object.keys(u).reduce(function(d,h){var m=u[h];if(m.hasStack){var g={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(v,b){var O=m.stackGroups[b];return gn(gn({},v),{},Ai({},b,{numericAxisId:r,cateAxisId:i,items:O.items,stackedData:aH(t,O.items,a)}))},g)}return gn(gn({},d),{},Ai({},h,m))},f)},sH=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=PF(u,a,s);return t.domain([Ou(f),_u(f)]),{niceTicks:f}}if(a&&i==="number"){var d=t.domain(),h=AF(d,a,s);return{niceTicks:h}}return null},xy=function(t){var n=t.axis,r=t.ticks,i=t.bandSize,a=t.entry,o=t.index,s=t.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!Ee(a[n.dataKey])){var l=Ks(r,"value",a[n.dataKey]);if(l)return l.coordinate+i/2}return r[o]?r[o].coordinate+i/2:null}var u=Gt(a,Ee(s)?n.dataKey:s);return Ee(u)?null:n.scale(u)},by=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var l=Gt(o,n.dataKey,n.domain[s]);return Ee(l)?null:n.scale(l)-a/2+i},lH=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},uH=function(t,n){var r=t.props.stackId;if(_t(r)){var i=n[r];if(i){var a=i.items.indexOf(t);return a>=0?i.stackedData[a]:null}}return null},cH=function(t){return t.reduce(function(n,r){return[Ou(r.concat([n[0]]).filter(le)),_u(r.concat([n[1]]).filter(le))]},[1/0,-1/0])},g2=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var d=cH(f.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},wy=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Sy=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ad=function(t,n,r){if(Te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(le(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(wy.test(t[0])){var a=+wy.exec(t[0])[1];i[0]=n[0]-a}else Te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(le(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(Sy.test(t[1])){var o=+Sy.exec(t[1])[1];i[1]=n[1]+o}else Te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},kl=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=_h(n,function(d){return d.coordinate}),o=1/0,s=1,l=a.length;so&&(u=2*Math.PI-u),{radius:s,angle:pH(u),angleInRadian:u}},gH=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},vH=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},Cy=function(t,n){var r=t.x,i=t.y,a=yH({x:r,y:i},n),o=a.radius,s=a.angle,l=n.innerRadius,u=n.outerRadius;if(ou)return!1;if(o===0)return!0;var f=gH(n),d=f.startAngle,h=f.endAngle,m=s,g;if(d<=h){for(;m>h;)m-=360;for(;m=d&&m<=h}else{for(;m>d;)m-=360;for(;m=h&&m<=d}return g?ky(ky({},n),{},{radius:o,angle:vH(m,n)}):null};function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}var xH=["offset"];function bH(e){return OH(e)||_H(e)||SH(e)||wH()}function wH(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SH(e,t){if(e){if(typeof e=="string")return od(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return od(e,t)}}function _H(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OH(e){if(Array.isArray(e))return od(e)}function od(e,t){(t==null||t>e.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 CH(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Py(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t=0?1:-1,k,P;i==="insideStart"?(k=m+C*o,P=v):i==="insideEnd"?(k=g-C*o,P=!v):i==="end"&&(k=g+C*o,P=v),P=O<=0?P:!P;var _=It(u,f,b,k),w=It(u,f,b,k+(P?1:-1)*359),j="M".concat(_.x,",").concat(_.y,` + height and width.`,V,X,o,l,f,d,n);var Z=!Array.isArray(m)&&xf.isElement(m)&&rr(m.type).endsWith("Chart");return U.Children.map(m,function(G){return xf.isElement(G)?B.cloneElement(G,Ts({width:V,height:X},Z?{style:Ts({height:"100%",width:"100%",maxHeight:X,maxWidth:V},G.props.style)}:{})):G})},[n,m,l,h,d,f,I,o]);return U.createElement("div",{id:b?"".concat(b):void 0,className:Ze("recharts-responsive-container",O),style:Ts(Ts({},P),{},{width:o,height:l,minWidth:f,minHeight:d,maxHeight:h}),ref:_},D)}),Ph=function(t){return null};Ph.displayName="Cell";function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}function mm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yf(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ir.isSsr)return{width:0,height:0};var r=CN(n),i=JSON.stringify({text:t,copyStyle:r});if(yi.widthCache[i])return yi.widthCache[i];try{var a=document.getElementById(ym);a||(a=document.createElement("span"),a.setAttribute("id",ym),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Yf(Yf({},kN),r);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return yi.widthCache[i]=l,++yi.cacheCount>ON&&(yi.cacheCount=0,yi.widthCache={}),l}catch{return{width:0,height:0}}},PN=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function dl(e,t){return EN(e)||TN(e,t)||jN(e,t)||AN()}function AN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jN(e,t){if(e){if(typeof e=="string")return gm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gm(e,t)}}function gm(e,t){(t==null||t>e.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 YN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function _m(e,t){return KN(e)||qN(e,t)||GN(e,t)||VN()}function VN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GN(e,t){if(e){if(typeof e=="string")return Om(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Om(e,t)}}function Om(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return V.reduce(function(X,Z){var G=Z.word,Q=Z.width,T=X[X.length-1];if(T&&(i==null||a||T.width+Q+rZ.width?X:Z})};if(!f)return m;for(var v="…",b=function(V){var X=d.slice(0,V),Z=wb({breakAll:u,style:l,children:X+v}).wordsWithComputedWidth,G=h(Z),Q=G.length>o||g(G).width>Number(i);return[Q,G]},O=0,C=d.length-1,k=0,P;O<=C&&k<=d.length-1;){var _=Math.floor((O+C)/2),w=_-1,j=b(w),E=_m(j,2),I=E[0],z=E[1],M=b(_),D=_m(M,1),W=D[0];if(!I&&!W&&(O=_+1),I&&W&&(C=_-1),!I&&W){P=z;break}k++}return P||m},km=function(t){var n=Ee(t)?[]:t.toString().split(bb);return[{words:n}]},ZN=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((n||r)&&!ir.isSsr){var l,u,f=wb({breakAll:o,children:i,style:a});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;l=d,u=h}else return km(i);return XN({breakAll:o,children:i,maxLines:s,style:a},l,u,n,r)}return km(i)},Cm="#808080",hl=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,d=f===void 0?!1:f,h=t.textAnchor,m=h===void 0?"start":h,g=t.verticalAnchor,v=g===void 0?"end":g,b=t.fill,O=b===void 0?Cm:b,C=Sm(t,UN),k=B.useMemo(function(){return ZN({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:d,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,d,C.style,C.width]),P=C.dx,_=C.dy,w=C.angle,j=C.className,E=C.breakAll,I=Sm(C,WN);if(!_t(r)||!_t(a))return null;var z=r+(le(P)?P:0),M=a+(le(_)?_:0),D;switch(v){case"start":D=Bc("calc(".concat(u,")"));break;case"middle":D=Bc("calc(".concat((k.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:D=Bc("calc(".concat(k.length-1," * -").concat(s,")"));break}var W=[];if(d){var Y=k[0].width,V=C.width;W.push("scale(".concat((le(V)?V/Y:1)/Y,")"))}return w&&W.push("rotate(".concat(w,", ").concat(z,", ").concat(M,")")),W.length&&(I.transform=W.join(" ")),U.createElement("text",Vf({},Le(I,!0),{x:z,y:M,className:Ze("recharts-text",j),textAnchor:m,fill:O.includes("url")?Cm:O}),k.map(function(X,Z){var G=X.words.join(E?"":" ");return U.createElement("tspan",{x:z,dy:Z===0?D:s,key:G},G)}))};function Ar(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function JN(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Ah(e){let t,n,r;e.length!==2?(t=Ar,n=(s,l)=>Ar(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ar||e===JN?e:QN,n=e,r=e);function i(s,l,u=0,f=s.length){if(u>>1;n(s[d],l)<0?u=d+1:f=d}while(u>>1;n(s[d],l)<=0?u=d+1:f=d}while(uu&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function QN(){return 0}function Sb(e){return e===null?NaN:+e}function*eR(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const tR=Ah(Ar),nR=tR.right;Ah(Sb).center;const Vo=nR;class Pm extends Map{constructor(t,n=aR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Am(this,t))}has(t){return super.has(Am(this,t))}set(t,n){return super.set(rR(this,t),n)}delete(t){return super.delete(iR(this,t))}}function Am({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function rR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function iR({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function aR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function oR(e=Ar){if(e===Ar)return _b;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function _b(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const sR=Math.sqrt(50),lR=Math.sqrt(10),uR=Math.sqrt(2);function pl(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=sR?10:a>=lR?5:a>=uR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/ut&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*ut&&--l),l0))return[];if(e===t)return[e];const r=t=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function Tm(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Ob(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?_b:oR(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(u-l/2<0?-1:1),m=Math.max(n,Math.floor(t-u*d/l+h)),g=Math.min(r,Math.floor(t+(l-u)*d/l+h));Ob(e,t,m,g,i)}const a=e[t];let o=n,s=r;for(Ca(e,n,t),i(e[r],a)>0&&Ca(e,n,r);o0;)--s}i(e[n],a)===0?Ca(e,n,s):(++s,Ca(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Ca(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function cR(e,t,n){if(e=Float64Array.from(eR(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Tm(e);if(t>=1)return jm(e);var r,i=(r-1)*t,a=Math.floor(i),o=jm(Ob(e,a).subarray(0,a+1)),s=Tm(e.subarray(a+1));return o+(s-o)*(i-a)}}function fR(e,t,n=Sb){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function dR(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ms(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ms(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=pR.exec(e))?new Jt(t[1],t[2],t[3],1):(t=mR.exec(e))?new Jt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yR.exec(e))?Ms(t[1],t[2],t[3],t[4]):(t=gR.exec(e))?Ms(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=vR.exec(e))?Nm(t[1],t[2]/100,t[3]/100,1):(t=xR.exec(e))?Nm(t[1],t[2]/100,t[3]/100,t[4]):Em.hasOwnProperty(e)?Im(Em[e]):e==="transparent"?new Jt(NaN,NaN,NaN,0):null}function Im(e){return new Jt(e>>16&255,e>>8&255,e&255,1)}function Ms(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jt(e,t,n,r)}function SR(e){return e instanceof Go||(e=uo(e)),e?(e=e.rgb(),new Jt(e.r,e.g,e.b,e.opacity)):new Jt}function Zf(e,t,n,r){return arguments.length===1?SR(e):new Jt(e,t,n,r??1)}function Jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Th(Jt,Zf,Cb(Go,{brighter(e){return e=e==null?ml:Math.pow(ml,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jt(Jr(this.r),Jr(this.g),Jr(this.b),yl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Dm,formatHex:Dm,formatHex8:_R,formatRgb:Lm,toString:Lm}));function Dm(){return`#${qr(this.r)}${qr(this.g)}${qr(this.b)}`}function _R(){return`#${qr(this.r)}${qr(this.g)}${qr(this.b)}${qr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Lm(){const e=yl(this.opacity);return`${e===1?"rgb(":"rgba("}${Jr(this.r)}, ${Jr(this.g)}, ${Jr(this.b)}${e===1?")":`, ${e})`}`}function yl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qr(e){return e=Jr(e),(e<16?"0":"")+e.toString(16)}function Nm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Tn(e,t,n,r)}function Pb(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);if(e instanceof Go||(e=uo(e)),!e)return new Tn;if(e instanceof Tn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n0&&l<1?0:o,new Tn(o,s,l,e.opacity)}function OR(e,t,n,r){return arguments.length===1?Pb(e):new Tn(e,t,n,r??1)}function Tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Th(Tn,OR,Cb(Go,{brighter(e){return e=e==null?ml:Math.pow(ml,e),new Tn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?so:Math.pow(so,e),new Tn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Jt(zc(e>=240?e-240:e+120,i,r),zc(e,i,r),zc(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Tn(Rm(this.h),$s(this.s),$s(this.l),yl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yl(this.opacity);return`${e===1?"hsl(":"hsla("}${Rm(this.h)}, ${$s(this.s)*100}%, ${$s(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Rm(e){return e=(e||0)%360,e<0?e+360:e}function $s(e){return Math.max(0,Math.min(1,e||0))}function zc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Eh=e=>()=>e;function kR(e,t){return function(n){return e+n*t}}function CR(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function PR(e){return(e=+e)==1?Ab:function(t,n){return n-t?CR(t,n,e):Eh(isNaN(t)?n:t)}}function Ab(e,t){var n=t-e;return n?kR(e,n):Eh(isNaN(e)?t:e)}const Bm=function e(t){var n=PR(t);function r(i,a){var o=n((i=Zf(i)).r,(a=Zf(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),u=Ab(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function AR(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:gl(r,i)})),n=Fc.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BR(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?zR:BR,l=u=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(r),t,n)))(r(o(h)))}return d.invert=function(h){return o(i((u||(u=s(t,e.map(r),gl)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,vl),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Mh,f()},d.clamp=function(h){return arguments.length?(o=h?!0:Vt,f()):o!==Vt},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,m){return r=h,i=m,f()}}function $h(){return vu()(Vt,Vt)}function FR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function xl(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Fi(e){return e=xl(Math.abs(e)),e?e[1]:NaN}function HR(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function UR(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var WR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function co(e){if(!(t=WR.exec(e)))throw new Error("invalid format: "+e);var t;return new Ih({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}co.prototype=Ih.prototype;function Ih(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Ih.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function YR(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var jb;function VR(e,t){var n=xl(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(jb=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+xl(e,Math.max(0,t+a-1))[0]}function Fm(e,t){var n=xl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Hm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:FR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Fm(e*100,t),r:Fm,s:VR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Um(e){return e}var Wm=Array.prototype.map,Ym=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function GR(e){var t=e.grouping===void 0||e.thousands===void 0?Um:HR(Wm.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Um:UR(Wm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(d){d=co(d);var h=d.fill,m=d.align,g=d.sign,v=d.symbol,b=d.zero,O=d.width,C=d.comma,k=d.precision,P=d.trim,_=d.type;_==="n"?(C=!0,_="g"):Hm[_]||(k===void 0&&(k=12),P=!0,_="g"),(b||h==="0"&&m==="=")&&(b=!0,h="0",m="=");var w=v==="$"?n:v==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",j=v==="$"?r:/[%p]/.test(_)?o:"",E=Hm[_],I=/[defgprs%]/.test(_);k=k===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function z(M){var D=w,W=j,Y,V,X;if(_==="c")W=E(M)+W,M="";else{M=+M;var Z=M<0||1/M<0;if(M=isNaN(M)?l:E(Math.abs(M),k),P&&(M=YR(M)),Z&&+M==0&&g!=="+"&&(Z=!1),D=(Z?g==="("?g:s:g==="-"||g==="("?"":g)+D,W=(_==="s"?Ym[8+jb/3]:"")+W+(Z&&g==="("?")":""),I){for(Y=-1,V=M.length;++YX||X>57){W=(X===46?i+M.slice(Y+1):M.slice(Y))+W,M=M.slice(0,Y);break}}}C&&!b&&(M=t(M,1/0));var G=D.length+M.length+W.length,Q=G>1)+D+M+W+Q.slice(G);break;default:M=Q+D+M+W;break}return a(M)}return z.toString=function(){return d+""},z}function f(d,h){var m=u((d=co(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(Fi(h)/3)))*3,v=Math.pow(10,-g),b=Ym[8+g/3];return function(O){return m(v*O)+b}}return{format:u,formatPrefix:f}}var Is,Dh,Tb;qR({thousands:",",grouping:[3],currency:["$",""]});function qR(e){return Is=GR(e),Dh=Is.format,Tb=Is.formatPrefix,Is}function KR(e){return Math.max(0,-Fi(Math.abs(e)))}function XR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fi(t)/3)))*3-Fi(Math.abs(e)))}function ZR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fi(t)-Fi(e))+1}function Eb(e,t,n,r){var i=Kf(e,t,n),a;switch(r=co(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=XR(i,o))&&(r.precision=a),Tb(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=ZR(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=KR(i))&&(r.precision=a-(r.type==="%")*2);break}}return Dh(r)}function Dr(e){var t=e.domain;return e.ticks=function(n){var r=t();return Gf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Eb(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,f=10;for(s0;){if(u=qf(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function bl(){var e=$h();return e.copy=function(){return qo(e,bl())},kn.apply(e,arguments),Dr(e)}function Mb(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,vl),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Mb(e).unknown(t)},e=arguments.length?Array.from(e,vl):[0,1],Dr(n)}function $b(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return aMath.pow(e,t)}function nB(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function qm(e){return(t,n)=>-e(-t,n)}function Lh(e){const t=e(Vm,Gm),n=t.domain;let r=10,i,a;function o(){return i=nB(r),a=tB(r),n()[0]<0?(i=qm(i),a=qm(a),e(JR,QR)):e(Vm,Gm),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const d=f0){for(;h<=m;++h)for(g=1;gf)break;O.push(v)}}else for(;h<=m;++h)for(g=r-1;g>=1;--g)if(v=h>0?g/a(-h):g*a(h),!(vf)break;O.push(v)}O.length*2{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=co(l)).precision==null&&(l.trim=!0),l=Dh(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/a(Math.round(i(f)));return d*rn($b(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Ib(){const e=Lh(vu()).domain([1,10]);return e.copy=()=>qo(e,Ib()).base(e.base()),kn.apply(e,arguments),e}function Km(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Xm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Nh(e){var t=1,n=e(Km(t),Xm(t));return n.constant=function(r){return arguments.length?e(Km(t=+r),Xm(t)):t},Dr(n)}function Db(){var e=Nh(vu());return e.copy=function(){return qo(e,Db()).constant(e.constant())},kn.apply(e,arguments)}function Zm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function rB(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function iB(e){return e<0?-e*e:e*e}function Rh(e){var t=e(Vt,Vt),n=1;function r(){return n===1?e(Vt,Vt):n===.5?e(rB,iB):e(Zm(n),Zm(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Dr(t)}function Bh(){var e=Rh(vu());return e.copy=function(){return qo(e,Bh()).exponent(e.exponent())},kn.apply(e,arguments),e}function aB(){return Bh.apply(null,arguments).exponent(.5)}function Jm(e){return Math.sign(e)*e*e}function oB(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Lb(){var e=$h(),t=[0,1],n=!1,r;function i(a){var o=oB(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(Jm(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,vl)).map(Jm)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Lb(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},kn.apply(i,arguments),Dr(i)}function Nb(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o0?n[s-1]:e[0],s=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return Rb().domain([e,t]).range(i).unknown(a)},kn.apply(Dr(o),arguments)}function Bb(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Vo(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Bb().domain(e).range(t).unknown(n)},kn.apply(i,arguments)}const Hc=new Date,Uc=new Date;function Ot(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(uOt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(Hc.setTime(+a),Uc.setTime(+o),e(Hc),e(Uc),Math.floor(n(Hc,Uc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const wl=Ot(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);wl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ot(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):wl);wl.range;const tr=1e3,xn=tr*60,nr=xn*60,sr=nr*24,zh=sr*7,Qm=sr*30,Wc=sr*365,Kr=Ot(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCSeconds());Kr.range;const Fh=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tr)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getMinutes());Fh.range;const Hh=Ot(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*xn)},(e,t)=>(t-e)/xn,e=>e.getUTCMinutes());Hh.range;const Uh=Ot(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*tr-e.getMinutes()*xn)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getHours());Uh.range;const Wh=Ot(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*nr)},(e,t)=>(t-e)/nr,e=>e.getUTCHours());Wh.range;const Ko=Ot(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xn)/sr,e=>e.getDate()-1);Ko.range;const xu=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>e.getUTCDate()-1);xu.range;const zb=Ot(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/sr,e=>Math.floor(e/sr));zb.range;function ii(e){return Ot(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xn)/zh)}const bu=ii(0),Sl=ii(1),sB=ii(2),lB=ii(3),Hi=ii(4),uB=ii(5),cB=ii(6);bu.range;Sl.range;sB.range;lB.range;Hi.range;uB.range;cB.range;function ai(e){return Ot(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/zh)}const wu=ai(0),_l=ai(1),fB=ai(2),dB=ai(3),Ui=ai(4),hB=ai(5),pB=ai(6);wu.range;_l.range;fB.range;dB.range;Ui.range;hB.range;pB.range;const Yh=Ot(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Yh.range;const Vh=Ot(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Vh.range;const lr=Ot(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());lr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});lr.range;const ur=Ot(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ur.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ot(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ur.range;function Fb(e,t,n,r,i,a){const o=[[Kr,1,tr],[Kr,5,5*tr],[Kr,15,15*tr],[Kr,30,30*tr],[a,1,xn],[a,5,5*xn],[a,15,15*xn],[a,30,30*xn],[i,1,nr],[i,3,3*nr],[i,6,6*nr],[i,12,12*nr],[r,1,sr],[r,2,2*sr],[n,1,zh],[t,1,Qm],[t,3,3*Qm],[e,1,Wc]];function s(u,f,d){const h=fb).right(o,h);if(m===o.length)return e.every(Kf(u/Wc,f/Wc,d));if(m===0)return wl.every(Math.max(Kf(u,f,d),1));const[g,v]=o[h/o[m-1][2]53)return null;"w"in ee||(ee.w=1),"Z"in ee?(he=Vc(Pa(ee.y,0,1)),xe=he.getUTCDay(),he=xe>4||xe===0?_l.ceil(he):_l(he),he=xu.offset(he,(ee.V-1)*7),ee.y=he.getUTCFullYear(),ee.m=he.getUTCMonth(),ee.d=he.getUTCDate()+(ee.w+6)%7):(he=Yc(Pa(ee.y,0,1)),xe=he.getDay(),he=xe>4||xe===0?Sl.ceil(he):Sl(he),he=Ko.offset(he,(ee.V-1)*7),ee.y=he.getFullYear(),ee.m=he.getMonth(),ee.d=he.getDate()+(ee.w+6)%7)}else("W"in ee||"U"in ee)&&("w"in ee||(ee.w="u"in ee?ee.u%7:"W"in ee?1:0),xe="Z"in ee?Vc(Pa(ee.y,0,1)).getUTCDay():Yc(Pa(ee.y,0,1)).getDay(),ee.m=0,ee.d="W"in ee?(ee.w+6)%7+ee.W*7-(xe+5)%7:ee.w+ee.U*7-(xe+6)%7);return"Z"in ee?(ee.H+=ee.Z/100|0,ee.M+=ee.Z%100,Vc(ee)):Yc(ee)}}function E(ae,de,ve,ee){for(var Ae=0,he=de.length,xe=ve.length,He,rt;Ae=xe)return-1;if(He=de.charCodeAt(Ae++),He===37){if(He=de.charAt(Ae++),rt=_[He in ey?de.charAt(Ae++):He],!rt||(ee=rt(ae,ve,ee))<0)return-1}else if(He!=ve.charCodeAt(ee++))return-1}return ee}function I(ae,de,ve){var ee=u.exec(de.slice(ve));return ee?(ae.p=f.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function z(ae,de,ve){var ee=m.exec(de.slice(ve));return ee?(ae.w=g.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function M(ae,de,ve){var ee=d.exec(de.slice(ve));return ee?(ae.w=h.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function D(ae,de,ve){var ee=O.exec(de.slice(ve));return ee?(ae.m=C.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function W(ae,de,ve){var ee=v.exec(de.slice(ve));return ee?(ae.m=b.get(ee[0].toLowerCase()),ve+ee[0].length):-1}function Y(ae,de,ve){return E(ae,t,de,ve)}function V(ae,de,ve){return E(ae,n,de,ve)}function X(ae,de,ve){return E(ae,r,de,ve)}function Z(ae){return o[ae.getDay()]}function G(ae){return a[ae.getDay()]}function Q(ae){return l[ae.getMonth()]}function T(ae){return s[ae.getMonth()]}function pe(ae){return i[+(ae.getHours()>=12)]}function ue(ae){return 1+~~(ae.getMonth()/3)}function $(ae){return o[ae.getUTCDay()]}function _e(ae){return a[ae.getUTCDay()]}function te(ae){return l[ae.getUTCMonth()]}function ge(ae){return s[ae.getUTCMonth()]}function Ye(ae){return i[+(ae.getUTCHours()>=12)]}function Me(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var de=w(ae+="",k);return de.toString=function(){return ae},de},parse:function(ae){var de=j(ae+="",!1);return de.toString=function(){return ae},de},utcFormat:function(ae){var de=w(ae+="",P);return de.toString=function(){return ae},de},utcParse:function(ae){var de=j(ae+="",!0);return de.toString=function(){return ae},de}}}var ey={"-":"",_:" ",0:"0"},Tt=/^\s*\d+/,bB=/^%/,wB=/[\\^$*+?|[\]().{}]/g;function Fe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[t.toLowerCase(),n]))}function _B(e,t,n){var r=Tt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function OB(e,t,n){var r=Tt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function kB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function CB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function PB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ty(e,t,n){var r=Tt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ny(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function AB(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function jB(e,t,n){var r=Tt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function TB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ry(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function EB(e,t,n){var r=Tt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function iy(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function MB(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function $B(e,t,n){var r=Tt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function IB(e,t,n){var r=Tt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function DB(e,t,n){var r=Tt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LB(e,t,n){var r=bB.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function NB(e,t,n){var r=Tt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function RB(e,t,n){var r=Tt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ay(e,t){return Fe(e.getDate(),t,2)}function BB(e,t){return Fe(e.getHours(),t,2)}function zB(e,t){return Fe(e.getHours()%12||12,t,2)}function FB(e,t){return Fe(1+Ko.count(lr(e),e),t,3)}function Hb(e,t){return Fe(e.getMilliseconds(),t,3)}function HB(e,t){return Hb(e,t)+"000"}function UB(e,t){return Fe(e.getMonth()+1,t,2)}function WB(e,t){return Fe(e.getMinutes(),t,2)}function YB(e,t){return Fe(e.getSeconds(),t,2)}function VB(e){var t=e.getDay();return t===0?7:t}function GB(e,t){return Fe(bu.count(lr(e)-1,e),t,2)}function Ub(e){var t=e.getDay();return t>=4||t===0?Hi(e):Hi.ceil(e)}function qB(e,t){return e=Ub(e),Fe(Hi.count(lr(e),e)+(lr(e).getDay()===4),t,2)}function KB(e){return e.getDay()}function XB(e,t){return Fe(Sl.count(lr(e)-1,e),t,2)}function ZB(e,t){return Fe(e.getFullYear()%100,t,2)}function JB(e,t){return e=Ub(e),Fe(e.getFullYear()%100,t,2)}function QB(e,t){return Fe(e.getFullYear()%1e4,t,4)}function ez(e,t){var n=e.getDay();return e=n>=4||n===0?Hi(e):Hi.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function tz(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function oy(e,t){return Fe(e.getUTCDate(),t,2)}function nz(e,t){return Fe(e.getUTCHours(),t,2)}function rz(e,t){return Fe(e.getUTCHours()%12||12,t,2)}function iz(e,t){return Fe(1+xu.count(ur(e),e),t,3)}function Wb(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function az(e,t){return Wb(e,t)+"000"}function oz(e,t){return Fe(e.getUTCMonth()+1,t,2)}function sz(e,t){return Fe(e.getUTCMinutes(),t,2)}function lz(e,t){return Fe(e.getUTCSeconds(),t,2)}function uz(e){var t=e.getUTCDay();return t===0?7:t}function cz(e,t){return Fe(wu.count(ur(e)-1,e),t,2)}function Yb(e){var t=e.getUTCDay();return t>=4||t===0?Ui(e):Ui.ceil(e)}function fz(e,t){return e=Yb(e),Fe(Ui.count(ur(e),e)+(ur(e).getUTCDay()===4),t,2)}function dz(e){return e.getUTCDay()}function hz(e,t){return Fe(_l.count(ur(e)-1,e),t,2)}function pz(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function mz(e,t){return e=Yb(e),Fe(e.getUTCFullYear()%100,t,2)}function yz(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function gz(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ui(e):Ui.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function vz(){return"+0000"}function sy(){return"%"}function ly(e){return+e}function uy(e){return Math.floor(+e/1e3)}var gi,Vb,Gb;xz({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function xz(e){return gi=xB(e),Vb=gi.format,gi.parse,Gb=gi.utcFormat,gi.utcParse,gi}function bz(e){return new Date(e)}function wz(e){return e instanceof Date?+e:+new Date(+e)}function Gh(e,t,n,r,i,a,o,s,l,u){var f=$h(),d=f.invert,h=f.domain,m=u(".%L"),g=u(":%S"),v=u("%I:%M"),b=u("%I %p"),O=u("%a %d"),C=u("%b %d"),k=u("%B"),P=u("%Y");function _(w){return(l(w)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>cR(e,a/r))},n.copy=function(){return Zb(t).domain(e)},cr.apply(n,arguments)}function _u(){var e=0,t=.5,n=1,r=1,i,a,o,s,l,u=Vt,f,d=!1,h;function m(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(r*vt}var jz=Az,Tz=t2,Ez=jz,Mz=oa;function $z(e){return e&&e.length?Tz(e,Mz,Ez):void 0}var Iz=$z;const Ou=st(Iz);function Dz(e,t){return ee.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};fe.decimalPlaces=fe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};fe.dividedBy=fe.div=function(e){return ar(this,new this.constructor(e))};fe.dividedToIntegerBy=fe.idiv=function(e){var t=this,n=t.constructor;return Qe(ar(t,new n(e),0,1),n.precision)};fe.equals=fe.eq=function(e){return!this.cmp(e)};fe.exponent=function(){return bt(this)};fe.greaterThan=fe.gt=function(e){return this.cmp(e)>0};fe.greaterThanOrEqualTo=fe.gte=function(e){return this.cmp(e)>=0};fe.isInteger=fe.isint=function(){return this.e>this.d.length-2};fe.isNegative=fe.isneg=function(){return this.s<0};fe.isPositive=fe.ispos=function(){return this.s>0};fe.isZero=function(){return this.s===0};fe.lessThan=fe.lt=function(e){return this.cmp(e)<0};fe.lessThanOrEqualTo=fe.lte=function(e){return this.cmp(e)<1};fe.logarithm=fe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(sn))throw Error(wn+"NaN");if(n.s<1)throw Error(wn+(n.s?"NaN":"-Infinity"));return n.eq(sn)?new r(0):(ct=!1,t=ar(fo(n,a),fo(e,a),a),ct=!0,Qe(t,i))};fe.minus=fe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?a2(t,e):r2(t,(e.s=-e.s,e))};fe.modulo=fe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(wn+"NaN");return n.s?(ct=!1,t=ar(n,e,0,1).times(e),ct=!0,n.minus(t)):Qe(new r(n),i)};fe.naturalExponential=fe.exp=function(){return i2(this)};fe.naturalLogarithm=fe.ln=function(){return fo(this)};fe.negated=fe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};fe.plus=fe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?r2(t,e):a2(t,(e.s=-e.s,e))};fe.precision=fe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Qr+e);if(t=bt(i)+1,r=i.d.length-1,n=r*ot+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};fe.squareRoot=fe.sqrt=function(){var e,t,n,r,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(wn+"NaN")}for(e=bt(s),ct=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=zn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ca((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=o=n+3;;)if(a=r,r=a.plus(ar(s,a,o+2)).times(.5),zn(a.d).slice(0,o)===(t=zn(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Qe(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!="9999")break;o+=4}return ct=!0,Qe(r,n)};fe.times=fe.mul=function(e){var t,n,r,i,a,o,s,l,u,f=this,d=f.constructor,h=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=h.length,u=m.length,l=0;){for(t=0,i=l+r;i>r;)s=a[i]+m[r]*h[i-r-1]+t,a[i--]=s%Pt|0,t=s/Pt|0;a[i]=(a[i]+t)%Pt|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,ct?Qe(e,d.precision):e};fe.toDecimalPlaces=fe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Yn(e,0,ua),t===void 0?t=r.rounding:Yn(t,0,8),Qe(n,e+bt(n)+1,t))};fe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ti(r,!0):(Yn(e,0,ua),t===void 0?t=i.rounding:Yn(t,0,8),r=Qe(new i(r),e+1,t),n=ti(r,!0,e+1)),n};fe.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ti(i):(Yn(e,0,ua),t===void 0?t=a.rounding:Yn(t,0,8),r=Qe(new a(i),e+bt(i)+1,t),n=ti(r.abs(),!1,e+bt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};fe.toInteger=fe.toint=function(){var e=this,t=e.constructor;return Qe(new t(e),bt(e)+1,t.rounding)};fe.toNumber=function(){return+this};fe.toPower=fe.pow=function(e){var t,n,r,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(sn);if(s=new l(s),!s.s){if(e.s<1)throw Error(wn+"Infinity");return s}if(s.eq(sn))return s;if(r=l.precision,e.eq(sn))return Qe(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,o){if((n=f<0?-f:f)<=n2){for(i=new l(sn),t=Math.ceil(r/ot+4),ct=!1;n%2&&(i=i.times(s),dy(i.d,t)),n=ca(n/2),n!==0;)s=s.times(s),dy(s.d,t);return ct=!0,e.s<0?new l(sn).div(i):Qe(i,r)}}else if(a<0)throw Error(wn+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,ct=!1,i=e.times(fo(s,r+u)),ct=!0,i=i2(i),i.s=a,i};fe.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=bt(i),r=ti(i,n<=a.toExpNeg||n>=a.toExpPos)):(Yn(e,1,ua),t===void 0?t=a.rounding:Yn(t,0,8),i=Qe(new a(i),e,t),n=bt(i),r=ti(i,e<=n||n<=a.toExpNeg,e)),r};fe.toSignificantDigits=fe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Yn(e,1,ua),t===void 0?t=r.rounding:Yn(t,0,8)),Qe(new r(n),e,t)};fe.toString=fe.valueOf=fe.val=fe.toJSON=fe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),n=e.constructor;return ti(e,t<=n.toExpNeg||t>=n.toExpPos)};function r2(e,t){var n,r,i,a,o,s,l,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ct?Qe(t,d):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(r=l,a=-a,s=u.length):(r=u,i=o,s=l.length),o=Math.ceil(d/ot),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,r=u,u=l,l=r),n=0;a;)n=(l[--a]=l[a]+u[a]+n)/Pt|0,l[a]%=Pt;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ct?Qe(t,d):t}function Yn(e,t,n){if(e!==~~e||en)throw Error(Qr+e)}function zn(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(s=l=0;si[s]?1:-1;break}return l}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]1;)r.shift()}return function(r,i,a,o){var s,l,u,f,d,h,m,g,v,b,O,C,k,P,_,w,j,E,I=r.constructor,z=r.s==i.s?1:-1,M=r.d,D=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(wn+"Division by zero");for(l=r.e-i.e,j=D.length,_=M.length,m=new I(z),g=m.d=[],u=0;D[u]==(M[u]||0);)++u;if(D[u]>(M[u]||0)&&--l,a==null?C=a=I.precision:o?C=a+(bt(r)-bt(i))+1:C=a,C<0)return new I(0);if(C=C/ot+2|0,u=0,j==1)for(f=0,D=D[0],C++;(u<_||f)&&C--;u++)k=f*Pt+(M[u]||0),g[u]=k/D|0,f=k%D|0;else{for(f=Pt/(D[0]+1)|0,f>1&&(D=e(D,f),M=e(M,f),j=D.length,_=M.length),P=j,v=M.slice(0,j),b=v.length;b=Pt/2&&++w;do f=0,s=t(D,v,j,b),s<0?(O=v[0],j!=b&&(O=O*Pt+(v[1]||0)),f=O/w|0,f>1?(f>=Pt&&(f=Pt-1),d=e(D,f),h=d.length,b=v.length,s=t(d,v,h,b),s==1&&(f--,n(d,j16)throw Error(Xh+bt(e));if(!e.s)return new f(sn);for(t==null?(ct=!1,s=d):s=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Wr(2,u))/Math.LN10*2+5|0,s+=r,n=i=a=new f(sn),f.precision=s;;){if(i=Qe(i.times(e),s),n=n.times(++l),o=a.plus(ar(i,n,s)),zn(o.d).slice(0,s)===zn(a.d).slice(0,s)){for(;u--;)a=Qe(a.times(a),s);return f.precision=d,t==null?(ct=!0,Qe(a,d)):a}a=o}}function bt(e){for(var t=e.e*ot,n=e.d[0];n>=10;n/=10)t++;return t}function Gc(e,t,n){if(t>e.LN10.sd())throw ct=!0,n&&(e.precision=n),Error(wn+"LN10 precision limit exceeded");return Qe(new e(e.LN10),t)}function kr(e){for(var t="";e--;)t+="0";return t}function fo(e,t){var n,r,i,a,o,s,l,u,f,d=1,h=10,m=e,g=m.d,v=m.constructor,b=v.precision;if(m.s<1)throw Error(wn+(m.s?"NaN":"-Infinity"));if(m.eq(sn))return new v(0);if(t==null?(ct=!1,u=b):u=t,m.eq(10))return t==null&&(ct=!0),Gc(v,u);if(u+=h,v.precision=u,n=zn(g),r=n.charAt(0),a=bt(m),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=zn(m.d),r=n.charAt(0),d++;a=bt(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1))}else return l=Gc(v,u+2,b).times(a+""),m=fo(new v(r+"."+n.slice(1)),u-h).plus(l),v.precision=b,t==null?(ct=!0,Qe(m,b)):m;for(s=o=m=ar(m.minus(sn),m.plus(sn),u),f=Qe(m.times(m),u),i=3;;){if(o=Qe(o.times(f),u),l=s.plus(ar(o,new v(i),u)),zn(l.d).slice(0,u)===zn(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(Gc(v,u+2,b).times(a+""))),s=ar(s,new v(d),u),v.precision=b,t==null?(ct=!0,Qe(s,b)):s;s=l,i+=2}}function fy(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=ca(n/ot),e.d=[],r=(n+1)%ot,n<0&&(r+=ot),rOl||e.e<-Ol))throw Error(Xh+n)}else e.s=0,e.e=0,e.d=[0];return e}function Qe(e,t,n){var r,i,a,o,s,l,u,f,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=ot,i=t,u=d[f=0];else{if(f=Math.ceil((r+1)/ot),a=d.length,f>=a)return e;for(u=a=d[f],o=1;a>=10;a/=10)o++;r%=ot,i=r-ot+o}if(n!==void 0&&(a=Wr(10,o-i-1),s=u/a%10|0,l=t<0||d[f+1]!==void 0||u%a,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Wr(10,o-i):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(a=bt(e),d.length=1,t=t-a-1,d[0]=Wr(10,(ot-t%ot)%ot),e.e=ca(-t/ot)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,a=1,f--):(d.length=f+1,a=Wr(10,ot-r),d[f]=i>0?(u/Wr(10,o-i)%Wr(10,i)|0)*a:0),l)for(;;)if(f==0){(d[0]+=a)==Pt&&(d[0]=1,++e.e);break}else{if(d[f]+=a,d[f]!=Pt)break;d[f--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(ct&&(e.e>Ol||e.e<-Ol))throw Error(Xh+bt(e));return e}function a2(e,t){var n,r,i,a,o,s,l,u,f,d,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ct?Qe(t,m):t;if(l=e.d,d=t.d,r=t.e,u=e.e,l=l.slice(),o=u-r,o){for(f=o<0,f?(n=l,o=-o,s=d.length):(n=d,r=u,s=l.length),i=Math.max(Math.ceil(m/ot),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=d.length,f=i0;--i)l[s++]=0;for(i=d.length;i>o;){if(l[--i]0?a=a.charAt(0)+"."+a.slice(1)+kr(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+kr(-i-1)+a,n&&(r=n-o)>0&&(a+=kr(r))):i>=o?(a+=kr(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+kr(r))):((r=i+1)0&&(i+1===o&&(a+="."),a+=kr(r))),e.s<0?"-"+a:a}function dy(e,t){if(e.length>t)return e.length=t,!0}function o2(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Qr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return fy(o,a.toString())}else if(typeof a!="string")throw Error(Qr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,rF.test(a))fy(o,a);else throw Error(Qr+a)}if(i.prototype=fe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=o2,i.config=i.set=iF,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Qr+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Qr+n+": "+r);return this}var Zh=o2(nF);sn=new Zh(1);const Xe=Zh;function aF(e){return uF(e)||lF(e)||sF(e)||oF()}function oF(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sF(e,t){if(e){if(typeof e=="string")return ed(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ed(e,t)}}function lF(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function uF(e){if(Array.isArray(e))return ed(e)}function ed(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-o,hy(function(){for(var s=arguments.length,l=new Array(s),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,a=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function OF(e){if(Array.isArray(e))return e}function f2(e){var t=ho(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function d2(e,t,n){if(e.lte(0))return new Xe(0);var r=Au.getDigitCount(e.toNumber()),i=new Xe(10).pow(r),a=e.div(i),o=r!==1?.05:.1,s=new Xe(Math.ceil(a.div(o).toNumber())).add(n).mul(o),l=s.mul(i);return t?l:new Xe(Math.ceil(l))}function kF(e,t,n){var r=1,i=new Xe(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Xe(10).pow(Au.getDigitCount(e)-1),i=new Xe(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Xe(Math.floor(e)))}else e===0?i=new Xe(Math.floor((t-1)/2)):n||(i=new Xe(Math.floor(e)));var o=Math.floor((t-1)/2),s=hF(dF(function(l){return i.add(new Xe(l-o).mul(r)).toNumber()}),td);return s(0,t)}function h2(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var a=d2(new Xe(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Xe(0):(o=new Xe(e).add(t).div(2),o=o.sub(new Xe(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Xe(t).sub(o).div(a).toNumber()),u=s+l+1;return u>n?h2(e,t,n,r,i+1):(u0?l+(n-u):l,s=t>0?s:s+(n-u)),{step:a,tickMin:o.sub(new Xe(s).mul(a)),tickMax:o.add(new Xe(l).mul(a))})}function CF(e){var t=ho(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=f2([n,r]),l=ho(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(rd(td(0,i-1).map(function(){return 1/0}))):[].concat(rd(td(0,i-1).map(function(){return-1/0})),[f]);return n>r?nd(d):d}if(u===f)return kF(u,i,a);var h=h2(u,f,o,a),m=h.step,g=h.tickMin,v=h.tickMax,b=Au.rangeStep(g,v.add(new Xe(.1).mul(m)),m);return n>r?nd(b):b}function PF(e,t){var n=ho(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=f2([r,i]),s=ho(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[r,i];if(l===u)return[l];var f=Math.max(t,2),d=d2(new Xe(u).sub(l).div(f-1),a,0),h=[].concat(rd(Au.rangeStep(new Xe(l),new Xe(u).sub(new Xe(.99).mul(d)),d)),[u]);return r>i?nd(h):h}var AF=u2(CF),jF=u2(PF),TF=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.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 NF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Xo(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,u=LF(e,TF),f=Le(u),d=a.map(function(h){var m=o(h,i),g=m.x,v=m.y,b=m.value,O=m.errorVal;if(!O)return null;var C=[],k,P;if(Array.isArray(O)){var _=EF(O,2);k=_[0],P=_[1]}else k=P=O;if(n==="vertical"){var w=s.scale,j=v+t,E=j+r,I=j-r,z=w(b-k),M=w(b+P);C.push({x1:M,y1:E,x2:M,y2:I}),C.push({x1:z,y1:j,x2:M,y2:j}),C.push({x1:z,y1:E,x2:z,y2:I})}else if(n==="horizontal"){var D=l.scale,W=g+t,Y=W-r,V=W+r,X=D(b-k),Z=D(b+P);C.push({x1:Y,y1:Z,x2:V,y2:Z}),C.push({x1:W,y1:X,x2:W,y2:Z}),C.push({x1:Y,y1:X,x2:V,y2:X})}return U.createElement(dt,kl({className:"recharts-errorBar",key:"bar-".concat(C.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},f),C.map(function(G){return U.createElement("line",kl({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return U.createElement(dt,{className:"recharts-errorBars"},d)}Xo.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Xo.displayName="ErrorBar";function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}function my(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qc(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u0?i[u-1].coordinate:i[s-1].coordinate,d=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,m=void 0;if(Mn(d-f)!==Mn(h-d)){var g=[];if(Mn(h-d)===Mn(l[1]-l[0])){m=h;var v=d+l[1]-l[0];g[0]=Math.min(v,(v+f)/2),g[1]=Math.max(v,(v+f)/2)}else{m=f;var b=h+l[1]-l[0];g[0]=Math.min(d,(b+d)/2),g[1]=Math.max(d,(b+d)/2)}var O=[Math.min(d,(m+d)/2),Math.max(d,(m+d)/2)];if(t>O[0]&&t<=O[1]||t>=g[0]&&t<=g[1]){o=i[u].index;break}}else{var C=Math.min(f,h),k=Math.max(f,h);if(t>(C+d)/2&&t<=(k+d)/2){o=i[u].index;break}}}else for(var P=0;P0&&P(r[P].coordinate+r[P-1].coordinate)/2&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P===s-1&&t>(r[P].coordinate+r[P-1].coordinate)/2){o=r[P].index;break}return o},Jh=function(t){var n=t,r=n.type.displayName,i=t.props,a=i.stroke,o=i.fill,s;switch(r){case"Line":s=a;break;case"Area":case"Radar":s=a&&a!=="none"?a:o;break;default:s=o;break}return s},qF=function(t){var n=t.barSize,r=t.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),s=0,l=o.length;s=0});if(b&&b.length){var O=b[0].props.barSize,C=b[0].props[v];a[C]||(a[C]=[]),a[C].push({item:b[0],stackList:b.slice(1),barSize:Ee(O)?n:O})}}return a},KF=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=$i(n,i,0,!0),f,d=[];if(o[0].barSize===+o[0].barSize){var h=!1,m=i/l,g=o.reduce(function(P,_){return P+_.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&m>0&&(h=!0,m*=.9,g=l*m);var v=(i-g)/2>>0,b={offset:v-u,size:0};f=o.reduce(function(P,_){var w={item:_.item,position:{offset:b.offset+b.size+u,size:h?m:_.barSize}},j=[].concat(gy(P),[w]);return b=j[j.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function(E){j.push({item:E,position:b})}),j},d)}else{var O=$i(r,i,0,!0);i-2*O-(l-1)*u<=0&&(u=0);var C=(i-2*O-(l-1)*u)/l;C>1&&(C>>=0);var k=s===+s?Math.min(C,s):C;f=o.reduce(function(P,_,w){var j=[].concat(gy(P),[{item:_.item,position:{offset:O+(C+u)*w+(C-k)/2,size:k}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function(E){j.push({item:E,position:j[j.length-1].position})}),j},d)}return f},XF=function(t,n,r,i){var a=r.children,o=r.width,s=r.margin,l=o-(s.left||0)-(s.right||0),u=p2({children:a,legendWidth:l});if(u){var f=i||{},d=f.width,h=f.height,m=u.align,g=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&g==="middle")&&m!=="center"&&le(t[m]))return gn(gn({},t),{},ji({},m,t[m]+(d||0)));if((v==="horizontal"||v==="vertical"&&m==="center")&&g!=="middle"&&le(t[g]))return gn(gn({},t),{},ji({},g,t[g]+(h||0)))}return t},ZF=function(t,n,r){return Ee(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},m2=function(t,n,r,i,a){var o=n.props.children,s=un(o,Xo).filter(function(u){return ZF(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=Gt(f,r,0),h=Array.isArray(d)?[ku(d),Ou(d)]:[d,d],m=l.reduce(function(g,v){var b=Gt(f,v,0),O=h[0]-Math.abs(Array.isArray(b)?b[0]:b),C=h[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(O,g[0]),Math.max(C,g[1])]},[1/0,-1/0]);return[Math.min(m[0],u[0]),Math.max(m[1],u[1])]},[1/0,-1/0])}return null},JF=function(t,n,r,i,a){var o=n.map(function(s){return m2(t,s,r,a,i)}).filter(function(s){return!Ee(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},y2=function(t,n,r,i,a){var o=n.map(function(l){var u=l.props.dataKey;return r==="number"&&u&&m2(t,l,u,i)||Wa(t,u,r,a)});if(r==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,d=u.length;f=2?Mn(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var h=a?a.indexOf(d):d;return{coordinate:i(h)+u,value:d,offset:u}});return f.filter(function(d){return!Wo(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:i(d)+u,value:d,index:h,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+u,value:d,offset:u}}):i.domain().map(function(d,h){return{coordinate:i(d)+u,value:a?a[d]:d,index:h,offset:u}})},Kc=new WeakMap,Ds=function(t,n){if(typeof n!="function")return t;Kc.has(t)||Kc.set(t,new WeakMap);var r=Kc.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},QF=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:oo(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:bl(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ua(),realScaleType:"point"}:a==="category"?{scale:oo(),realScaleType:"band"}:{scale:bl(),realScaleType:"linear"};if(Uo(i)){var l="scale".concat(fu(i));return{scale:(cy[l]||Ua)(),realScaleType:cy[l]?l:"point"}}return Te(i)?{scale:i}:{scale:Ua(),realScaleType:"point"}},xy=1e-4,eH=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-xy,o=Math.max(i[0],i[1])+xy,s=t(n[0]),l=t(n[r-1]);(so||lo)&&t.domain([n[0],n[r-1]])}},tH=function(t,n){if(!t)return null;for(var r=0,i=t.length;ri)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[s][r][0]=a,t[s][r][1]=a+l,a=t[s][r][1]):(t[s][r][0]=o,t[s][r][1]=o+l,o=t[s][r][1])}},iH=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[o][r][0]=a,t[o][r][1]=a+s,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},aH={sign:rH,expand:qj,none:Ii,silhouette:Kj,wiggle:Xj,positive:iH},oH=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),a=aH[r],o=Gj().keys(i).value(function(s,l){return+Gt(s,l,0)}).order(jf).offset(a);return o(t)},sH=function(t,n,r,i,a,o){if(!t)return null;var s=o?n.reverse():n,l={},u=s.reduce(function(d,h){var m=h.props,g=m.stackId,v=m.hide;if(v)return d;var b=h.props[r],O=d[b]||{hasStack:!1,stackGroups:{}};if(_t(g)){var C=O.stackGroups[g]||{numericAxisId:r,cateAxisId:i,items:[]};C.items.push(h),O.hasStack=!0,O.stackGroups[g]=C}else O.stackGroups[Yo("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[h]};return gn(gn({},d),{},ji({},b,O))},l),f={};return Object.keys(u).reduce(function(d,h){var m=u[h];if(m.hasStack){var g={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(v,b){var O=m.stackGroups[b];return gn(gn({},v),{},ji({},b,{numericAxisId:r,cateAxisId:i,items:O.items,stackedData:oH(t,O.items,a)}))},g)}return gn(gn({},d),{},ji({},h,m))},f)},lH=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,s=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=AF(u,a,s);return t.domain([ku(f),Ou(f)]),{niceTicks:f}}if(a&&i==="number"){var d=t.domain(),h=jF(d,a,s);return{niceTicks:h}}return null},by=function(t){var n=t.axis,r=t.ticks,i=t.bandSize,a=t.entry,o=t.index,s=t.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!Ee(a[n.dataKey])){var l=Xs(r,"value",a[n.dataKey]);if(l)return l.coordinate+i/2}return r[o]?r[o].coordinate+i/2:null}var u=Gt(a,Ee(s)?n.dataKey:s);return Ee(u)?null:n.scale(u)},wy=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var l=Gt(o,n.dataKey,n.domain[s]);return Ee(l)?null:n.scale(l)-a/2+i},uH=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},cH=function(t,n){var r=t.props.stackId;if(_t(r)){var i=n[r];if(i){var a=i.items.indexOf(t);return a>=0?i.stackedData[a]:null}}return null},fH=function(t){return t.reduce(function(n,r){return[ku(r.concat([n[0]]).filter(le)),Ou(r.concat([n[1]]).filter(le))]},[1/0,-1/0])},v2=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var d=fH(f.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Sy=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_y=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,od=function(t,n,r){if(Te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(le(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Sy.test(t[0])){var a=+Sy.exec(t[0])[1];i[0]=n[0]-a}else Te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(le(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(_y.test(t[1])){var o=+_y.exec(t[1])[1];i[1]=n[1]+o}else Te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Cl=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=Oh(n,function(d){return d.coordinate}),o=1/0,s=1,l=a.length;so&&(u=2*Math.PI-u),{radius:s,angle:mH(u),angleInRadian:u}},vH=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},xH=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},Py=function(t,n){var r=t.x,i=t.y,a=gH({x:r,y:i},n),o=a.radius,s=a.angle,l=n.innerRadius,u=n.outerRadius;if(ou)return!1;if(o===0)return!0;var f=vH(n),d=f.startAngle,h=f.endAngle,m=s,g;if(d<=h){for(;m>h;)m-=360;for(;m=d&&m<=h}else{for(;m>d;)m-=360;for(;m=h&&m<=d}return g?Cy(Cy({},n),{},{radius:o,angle:xH(m,n)}):null};function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}var bH=["offset"];function wH(e){return kH(e)||OH(e)||_H(e)||SH()}function SH(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _H(e,t){if(e){if(typeof e=="string")return sd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sd(e,t)}}function OH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kH(e){if(Array.isArray(e))return sd(e)}function sd(e,t){(t==null||t>e.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 PH(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Ay(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t=0?1:-1,k,P;i==="insideStart"?(k=m+C*o,P=v):i==="insideEnd"?(k=g-C*o,P=!v):i==="end"&&(k=g+C*o,P=v),P=O<=0?P:!P;var _=It(u,f,b,k),w=It(u,f,b,k+(P?1:-1)*359),j="M".concat(_.x,",").concat(_.y,` A`).concat(b,",").concat(b,",0,1,").concat(P?0:1,`, - `).concat(w.x,",").concat(w.y),E=Ee(t.id)?Wo("recharts-radial-line-"):t.id;return U.createElement("text",go({},r,{dominantBaseline:"central",className:Ze("recharts-radial-bar-label",s)}),U.createElement("defs",null,U.createElement("path",{id:E,d:j})),U.createElement("textPath",{xlinkHref:"#".concat(E)},n))},$H=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,f=a.startAngle,d=a.endAngle,h=(f+d)/2;if(i==="outside"){var m=It(o,s,u+r,h),g=m.x,v=m.y;return{x:g,y:v,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var b=(l+u)/2,O=It(o,s,b,h),C=O.x,k=O.y;return{x:C,y:k,textAnchor:"middle",verticalAnchor:"middle"}},IH=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,s=o.x,l=o.y,u=o.width,f=o.height,d=f>=0?1:-1,h=d*i,m=d>0?"end":"start",g=d>0?"start":"end",v=u>=0?1:-1,b=v*i,O=v>0?"end":"start",C=v>0?"start":"end";if(a==="top"){var k={x:s+u/2,y:l-d*i,textAnchor:"middle",verticalAnchor:m};return St(St({},k),r?{height:Math.max(l-r.y,0),width:u}:{})}if(a==="bottom"){var P={x:s+u/2,y:l+f+h,textAnchor:"middle",verticalAnchor:g};return St(St({},P),r?{height:Math.max(r.y+r.height-(l+f),0),width:u}:{})}if(a==="left"){var _={x:s-b,y:l+f/2,textAnchor:O,verticalAnchor:"middle"};return St(St({},_),r?{width:Math.max(_.x-r.x,0),height:f}:{})}if(a==="right"){var w={x:s+u+b,y:l+f/2,textAnchor:C,verticalAnchor:"middle"};return St(St({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:f}:{})}var j=r?{width:u,height:f}:{};return a==="insideLeft"?St({x:s+b,y:l+f/2,textAnchor:C,verticalAnchor:"middle"},j):a==="insideRight"?St({x:s+u-b,y:l+f/2,textAnchor:O,verticalAnchor:"middle"},j):a==="insideTop"?St({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:g},j):a==="insideBottom"?St({x:s+u/2,y:l+f-h,textAnchor:"middle",verticalAnchor:m},j):a==="insideTopLeft"?St({x:s+b,y:l+h,textAnchor:C,verticalAnchor:g},j):a==="insideTopRight"?St({x:s+u-b,y:l+h,textAnchor:O,verticalAnchor:g},j):a==="insideBottomLeft"?St({x:s+b,y:l+f-h,textAnchor:C,verticalAnchor:m},j):a==="insideBottomRight"?St({x:s+u-b,y:l+f-h,textAnchor:O,verticalAnchor:m},j):ea(a)&&(le(a.x)||Yr(a.x))&&(le(a.y)||Yr(a.y))?St({x:s+Mi(a.x,u),y:l+Mi(a.y,f),textAnchor:"end",verticalAnchor:"end"},j):St({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},j)},DH=function(t){return"cx"in t&&le(t.cx)};function Rt(e){var t=e.offset,n=t===void 0?5:t,r=kH(e,xH),i=St({offset:n},r),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,d=f===void 0?"":f,h=i.textBreakAll;if(!a||Ee(s)&&Ee(l)&&!B.isValidElement(u)&&!Te(u))return null;if(B.isValidElement(u))return B.cloneElement(u,i);var m;if(Te(u)){if(m=B.createElement(u,i),B.isValidElement(m))return m}else m=TH(i);var g=DH(a),v=Le(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return MH(i,m,v);var b=g?$H(i):IH(i);return U.createElement(dl,go({className:Ze("recharts-label",d)},v,b,{breakAll:h}),m)}Rt.displayName="Label";var x2=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,m=t.top,g=t.left,v=t.width,b=t.height,O=t.clockWise,C=t.labelViewBox;if(C)return C;if(le(v)&&le(b)){if(le(d)&&le(h))return{x:d,y:h,width:v,height:b};if(le(m)&&le(g))return{x:m,y:g,width:v,height:b}}return le(d)&&le(h)?{x:d,y:h,width:0,height:0}:le(n)&&le(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},LH=function(t,n){return t?t===!0?U.createElement(Rt,{key:"label-implicit",viewBox:n}):_t(t)?U.createElement(Rt,{key:"label-implicit",viewBox:n,value:t}):B.isValidElement(t)?t.type===Rt?B.cloneElement(t,{key:"label-implicit",viewBox:n}):U.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):Te(t)?U.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):ea(t)?U.createElement(Rt,go({viewBox:n},t,{key:"label-implicit"})):null:null},NH=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=x2(t),o=un(i,Rt).map(function(l,u){return B.cloneElement(l,{viewBox:n||a,key:"label-".concat(u)})});if(!r)return o;var s=LH(t.label,n||a);return[s].concat(bH(o))};Rt.parseViewBox=x2;Rt.renderCallByParent=NH;function RH(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var BH=RH;const zH=st(BH);function vo(e){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(e)}var FH=["valueAccessor"],HH=["data","dataKey","clockWise","id","textBreakAll"];function UH(e){return GH(e)||VH(e)||YH(e)||WH()}function WH(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YH(e,t){if(e){if(typeof e=="string")return sd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sd(e,t)}}function VH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GH(e){if(Array.isArray(e))return sd(e)}function sd(e,t){(t==null||t>e.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 ZH(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var JH=function(t){return Array.isArray(t.value)?zH(t.value):t.value};function Ar(e){var t=e.valueAccessor,n=t===void 0?JH:t,r=Ty(e,FH),i=r.data,a=r.dataKey,o=r.clockWise,s=r.id,l=r.textBreakAll,u=Ty(r,HH);return!i||!i.length?null:U.createElement(dt,{className:"recharts-label-list"},i.map(function(f,d){var h=Ee(a)?n(f,d):Gt(f&&f.payload,a),m=Ee(s)?{}:{id:"".concat(s,"-").concat(d)};return U.createElement(Rt,Pl({},Le(f,!0),u,m,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:Rt.parseViewBox(Ee(o)?f:jy(jy({},f),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}Ar.displayName="LabelList";function QH(e,t){return e?e===!0?U.createElement(Ar,{key:"labelList-implicit",data:t}):U.isValidElement(e)||Te(e)?U.createElement(Ar,{key:"labelList-implicit",data:t,content:e}):ea(e)?U.createElement(Ar,Pl({data:t},e,{key:"labelList-implicit"})):null:null}function eU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=un(r,Ar).map(function(o,s){return B.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var a=QH(e.label,t);return[a].concat(UH(i))}Ar.renderCallByParent=eU;function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function ld(){return ld=Object.assign?Object.assign.bind():function(e){for(var t=1;t=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var b=(l+u)/2,O=It(o,s,b,h),C=O.x,k=O.y;return{x:C,y:k,textAnchor:"middle",verticalAnchor:"middle"}},DH=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,s=o.x,l=o.y,u=o.width,f=o.height,d=f>=0?1:-1,h=d*i,m=d>0?"end":"start",g=d>0?"start":"end",v=u>=0?1:-1,b=v*i,O=v>0?"end":"start",C=v>0?"start":"end";if(a==="top"){var k={x:s+u/2,y:l-d*i,textAnchor:"middle",verticalAnchor:m};return St(St({},k),r?{height:Math.max(l-r.y,0),width:u}:{})}if(a==="bottom"){var P={x:s+u/2,y:l+f+h,textAnchor:"middle",verticalAnchor:g};return St(St({},P),r?{height:Math.max(r.y+r.height-(l+f),0),width:u}:{})}if(a==="left"){var _={x:s-b,y:l+f/2,textAnchor:O,verticalAnchor:"middle"};return St(St({},_),r?{width:Math.max(_.x-r.x,0),height:f}:{})}if(a==="right"){var w={x:s+u+b,y:l+f/2,textAnchor:C,verticalAnchor:"middle"};return St(St({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:f}:{})}var j=r?{width:u,height:f}:{};return a==="insideLeft"?St({x:s+b,y:l+f/2,textAnchor:C,verticalAnchor:"middle"},j):a==="insideRight"?St({x:s+u-b,y:l+f/2,textAnchor:O,verticalAnchor:"middle"},j):a==="insideTop"?St({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:g},j):a==="insideBottom"?St({x:s+u/2,y:l+f-h,textAnchor:"middle",verticalAnchor:m},j):a==="insideTopLeft"?St({x:s+b,y:l+h,textAnchor:C,verticalAnchor:g},j):a==="insideTopRight"?St({x:s+u-b,y:l+h,textAnchor:O,verticalAnchor:g},j):a==="insideBottomLeft"?St({x:s+b,y:l+f-h,textAnchor:C,verticalAnchor:m},j):a==="insideBottomRight"?St({x:s+u-b,y:l+f-h,textAnchor:O,verticalAnchor:m},j):ta(a)&&(le(a.x)||Vr(a.x))&&(le(a.y)||Vr(a.y))?St({x:s+$i(a.x,u),y:l+$i(a.y,f),textAnchor:"end",verticalAnchor:"end"},j):St({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},j)},LH=function(t){return"cx"in t&&le(t.cx)};function Rt(e){var t=e.offset,n=t===void 0?5:t,r=CH(e,bH),i=St({offset:n},r),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,d=f===void 0?"":f,h=i.textBreakAll;if(!a||Ee(s)&&Ee(l)&&!B.isValidElement(u)&&!Te(u))return null;if(B.isValidElement(u))return B.cloneElement(u,i);var m;if(Te(u)){if(m=B.createElement(u,i),B.isValidElement(m))return m}else m=EH(i);var g=LH(a),v=Le(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return $H(i,m,v);var b=g?IH(i):DH(i);return U.createElement(hl,vo({className:Ze("recharts-label",d)},v,b,{breakAll:h}),m)}Rt.displayName="Label";var b2=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,m=t.top,g=t.left,v=t.width,b=t.height,O=t.clockWise,C=t.labelViewBox;if(C)return C;if(le(v)&&le(b)){if(le(d)&&le(h))return{x:d,y:h,width:v,height:b};if(le(m)&&le(g))return{x:m,y:g,width:v,height:b}}return le(d)&&le(h)?{x:d,y:h,width:0,height:0}:le(n)&&le(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},NH=function(t,n){return t?t===!0?U.createElement(Rt,{key:"label-implicit",viewBox:n}):_t(t)?U.createElement(Rt,{key:"label-implicit",viewBox:n,value:t}):B.isValidElement(t)?t.type===Rt?B.cloneElement(t,{key:"label-implicit",viewBox:n}):U.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):Te(t)?U.createElement(Rt,{key:"label-implicit",content:t,viewBox:n}):ta(t)?U.createElement(Rt,vo({viewBox:n},t,{key:"label-implicit"})):null:null},RH=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=b2(t),o=un(i,Rt).map(function(l,u){return B.cloneElement(l,{viewBox:n||a,key:"label-".concat(u)})});if(!r)return o;var s=NH(t.label,n||a);return[s].concat(wH(o))};Rt.parseViewBox=b2;Rt.renderCallByParent=RH;function BH(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var zH=BH;const FH=st(zH);function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}var HH=["valueAccessor"],UH=["data","dataKey","clockWise","id","textBreakAll"];function WH(e){return qH(e)||GH(e)||VH(e)||YH()}function YH(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VH(e,t){if(e){if(typeof e=="string")return ld(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ld(e,t)}}function GH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qH(e){if(Array.isArray(e))return ld(e)}function ld(e,t){(t==null||t>e.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 JH(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var QH=function(t){return Array.isArray(t.value)?FH(t.value):t.value};function jr(e){var t=e.valueAccessor,n=t===void 0?QH:t,r=Ey(e,HH),i=r.data,a=r.dataKey,o=r.clockWise,s=r.id,l=r.textBreakAll,u=Ey(r,UH);return!i||!i.length?null:U.createElement(dt,{className:"recharts-label-list"},i.map(function(f,d){var h=Ee(a)?n(f,d):Gt(f&&f.payload,a),m=Ee(s)?{}:{id:"".concat(s,"-").concat(d)};return U.createElement(Rt,Al({},Le(f,!0),u,m,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:Rt.parseViewBox(Ee(o)?f:Ty(Ty({},f),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}jr.displayName="LabelList";function eU(e,t){return e?e===!0?U.createElement(jr,{key:"labelList-implicit",data:t}):U.isValidElement(e)||Te(e)?U.createElement(jr,{key:"labelList-implicit",data:t,content:e}):ta(e)?U.createElement(jr,Al({data:t},e,{key:"labelList-implicit"})):null:null}function tU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=un(r,jr).map(function(o,s){return B.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var a=eU(e.label,t);return[a].concat(WH(i))}jr.renderCallByParent=tU;function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>u),`, `).concat(d.x,",").concat(d.y,` `);if(i>0){var m=It(n,r,i,o),g=It(n,r,i,u);h+="L ".concat(g.x,",").concat(g.y,` A `).concat(i,",").concat(i,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`, - `).concat(m.x,",").concat(m.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},aU=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=Mn(f-u),h=Ds({cx:n,cy:r,radius:a,angle:u,sign:d,cornerRadius:o,cornerIsExternal:l}),m=h.circleTangency,g=h.lineTangency,v=h.theta,b=Ds({cx:n,cy:r,radius:a,angle:f,sign:-d,cornerRadius:o,cornerIsExternal:l}),O=b.circleTangency,C=b.lineTangency,k=b.theta,P=l?Math.abs(u-f):Math.abs(u-f)-v-k;if(P<0)return s?"M ".concat(g.x,",").concat(g.y,` + `).concat(m.x,",").concat(m.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},oU=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=Mn(f-u),h=Ls({cx:n,cy:r,radius:a,angle:u,sign:d,cornerRadius:o,cornerIsExternal:l}),m=h.circleTangency,g=h.lineTangency,v=h.theta,b=Ls({cx:n,cy:r,radius:a,angle:f,sign:-d,cornerRadius:o,cornerIsExternal:l}),O=b.circleTangency,C=b.lineTangency,k=b.theta,P=l?Math.abs(u-f):Math.abs(u-f)-v-k;if(P<0)return s?"M ".concat(g.x,",").concat(g.y,` a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 - `):b2({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var _="M ".concat(g.x,",").concat(g.y,` + `):w2({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var _="M ".concat(g.x,",").concat(g.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(m.x,",").concat(m.y,` A`).concat(a,",").concat(a,",0,").concat(+(P>180),",").concat(+(d<0),",").concat(O.x,",").concat(O.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(C.x,",").concat(C.y,` - `);if(i>0){var w=Ds({cx:n,cy:r,radius:i,angle:u,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=w.circleTangency,E=w.lineTangency,I=w.theta,z=Ds({cx:n,cy:r,radius:i,angle:f,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),M=z.circleTangency,D=z.lineTangency,W=z.theta,Y=l?Math.abs(u-f):Math.abs(u-f)-I-W;if(Y<0&&o===0)return"".concat(_,"L").concat(n,",").concat(r,"Z");_+="L".concat(D.x,",").concat(D.y,` + `);if(i>0){var w=Ls({cx:n,cy:r,radius:i,angle:u,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=w.circleTangency,E=w.lineTangency,I=w.theta,z=Ls({cx:n,cy:r,radius:i,angle:f,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),M=z.circleTangency,D=z.lineTangency,W=z.theta,Y=l?Math.abs(u-f):Math.abs(u-f)-I-W;if(Y<0&&o===0)return"".concat(_,"L").concat(n,",").concat(r,"Z");_+="L".concat(D.x,",").concat(D.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(M.x,",").concat(M.y,` A`).concat(i,",").concat(i,",0,").concat(+(Y>180),",").concat(+(d>0),",").concat(j.x,",").concat(j.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(E.x,",").concat(E.y,"Z")}else _+="L".concat(n,",").concat(r,"Z");return _},oU={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},w2=function(t){var n=My(My({},oU),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,h=n.className;if(o0&&Math.abs(f-d)<360?b=aU({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:d}):b=b2({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:d}),U.createElement("path",ld({},Le(n,!0),{className:m,d:b,role:"img"}))};function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,f;if(o>0&&a instanceof Array){for(var d=[0,0,0,0],h=0,m=4;ho?o:a[h];f="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+l*d[0],",").concat(n)),f+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`, + A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(E.x,",").concat(E.y,"Z")}else _+="L".concat(n,",").concat(r,"Z");return _},sU={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},S2=function(t){var n=$y($y({},sU),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,s=n.cornerRadius,l=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,h=n.className;if(o0&&Math.abs(f-d)<360?b=oU({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:d}):b=w2({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:d}),U.createElement("path",ud({},Le(n,!0),{className:m,d:b,role:"img"}))};function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function cd(){return cd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,f;if(o>0&&a instanceof Array){for(var d=[0,0,0,0],h=0,m=4;ho?o:a[h];f="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+l*d[0],",").concat(n)),f+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`, `).concat(t+r,",").concat(n+s*d[1])),f+="L ".concat(t+r,",").concat(n+i-s*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`, `).concat(t+r-l*d[2],",").concat(n+i)),f+="L ".concat(t+l*d[3],",").concat(n+i),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`, `).concat(t,",").concat(n+i-s*d[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);f="M ".concat(t,",").concat(n+s*g,` @@ -1349,19 +1349,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho L `).concat(t+r,",").concat(n+i-s*g,` A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+r-l*g,",").concat(n+i,` L `).concat(t+l*g,",").concat(n+i,` - A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(n+i-s*g," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},bU=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),d=Math.min(o,o+l),h=Math.max(o,o+l);return r>=u&&r<=f&&i>=d&&i<=h}return!1},wU={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Jh=function(t){var n=Ry(Ry({},wU),t),r=B.useRef(),i=B.useState(-1),a=dU(i,2),o=a[0],s=a[1];B.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var P=r.current.getTotalLength();P&&s(P)}catch{}},[]);var l=n.x,u=n.y,f=n.width,d=n.height,h=n.radius,m=n.className,g=n.animationEasing,v=n.animationDuration,b=n.animationBegin,O=n.isAnimationActive,C=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var k=Ze("recharts-rectangle",m);return C?U.createElement(or,{canBegin:o>0,from:{width:f,height:d,x:l,y:u},to:{width:f,height:d,x:l,y:u},duration:v,animationEasing:g,isActive:C},function(P){var _=P.width,w=P.height,j=P.x,E=P.y;return U.createElement(or,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,isActive:O,easing:g},U.createElement("path",Al({},Le(n,!0),{className:k,d:By(j,E,_,w,h),ref:r})))}):U.createElement("path",Al({},Le(n,!0),{className:k,d:By(l,u,f,d,h)}))};function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var jU=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},TU=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,d=f===void 0?0:f,h=t.height,m=h===void 0?0:h,g=t.className,v=PU(t,SU),b=_U({x:r,y:a,top:s,left:u,width:d,height:m},v);return!le(r)||!le(a)||!le(d)||!le(m)||!le(s)||!le(u)?null:U.createElement("path",dd({},Le(b,!0),{className:Ze("recharts-cross",g),d:jU(r,a,d,m,s,u)}))},EU=Ro,MU=k4,$U=Qi,IU="[object Object]",DU=Function.prototype,LU=Object.prototype,S2=DU.toString,NU=LU.hasOwnProperty,RU=S2.call(Object);function BU(e){if(!$U(e)||EU(e)!=IU)return!1;var t=MU(e);if(t===null)return!0;var n=NU.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&S2.call(n)==RU}var zU=BU;const FU=st(zU);var HU=Ro,UU=Qi,WU="[object Boolean]";function YU(e){return e===!0||e===!1||UU(e)&&HU(e)==WU}var VU=YU;const GU=st(VU);function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:f,lowerWidth:d,height:h,x:l,y:u},duration:v,animationEasing:g,isActive:O},function(k){var P=k.upperWidth,_=k.lowerWidth,w=k.height,j=k.x,E=k.y;return U.createElement(or,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,easing:g},U.createElement("path",jl({},Le(n,!0),{className:C,d:Wy(j,E,P,_,w),ref:r})))}):U.createElement("g",null,U.createElement("path",jl({},Le(n,!0),{className:C,d:Wy(l,u,f,d,h)})))},iW=["option","shapeType","propTransformer","activeClassName","isActive"];function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function aW(e,t){if(e==null)return{};var n=oW(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tl(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$l(e)}function on(e,t,n){return t=k2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k2(e){var t=WW(e,"string");return Ui(t)==="symbol"?t:String(t)}function WW(e,t){if(Ui(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ui(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YW=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=Ha().domain(El(0,l)).range([a,a+o-s]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:f}},Jy=function(t){return t.changedTouches&&!!t.changedTouches.length},Po=function(e){zW(n,e);var t=FW(n);function n(r){var i;return RW(this,n),i=t.call(this,r),on(Ln(i),"handleDrag",function(a){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(a):i.state.isSlideMoving&&i.handleSlideDrag(a)}),on(Ln(i),"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&i.handleDrag(a.changedTouches[0])}),on(Ln(i),"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=i.props,o=a.endIndex,s=a.onDragEnd,l=a.startIndex;s==null||s({endIndex:o,startIndex:l})}),i.detachDragEndListener()}),on(Ln(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),on(Ln(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),on(Ln(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),on(Ln(i),"handleSlideDragStart",function(a){var o=Jy(a)?a.changedTouches[0]:a;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(Ln(i),"startX"),endX:i.handleTravellerDragStart.bind(Ln(i),"endX")},i.state={},i}return BW(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var a=i.startX,o=i.endX,s=this.state.scaleValues,l=this.props,u=l.gap,f=l.data,d=f.length-1,h=Math.min(a,o),m=Math.max(a,o),g=n.getIndexInRange(s,h),v=n.getIndexInRange(s,m);return{startIndex:g-g%u,endIndex:v===d?d:v-v%u}}},{key:"getTextOfTick",value:function(i){var a=this.props,o=a.data,s=a.tickFormatter,l=a.dataKey,u=Gt(o[i],l,i);return Te(s)?s(u,i):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var a=this.state,o=a.slideMoveStartX,s=a.startX,l=a.endX,u=this.props,f=u.x,d=u.width,h=u.travellerWidth,m=u.startIndex,g=u.endIndex,v=u.onChange,b=i.pageX-o;b>0?b=Math.min(b,f+d-h-l,f+d-h-s):b<0&&(b=Math.max(b,f-s,f-l));var O=this.getIndex({startX:s+b,endX:l+b});(O.startIndex!==m||O.endIndex!==g)&&v&&v(O),this.setState({startX:s+b,endX:l+b,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,a){var o=Jy(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var a,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,u=o.endX,f=o.startX,d=this.state[l],h=this.props,m=h.x,g=h.width,v=h.travellerWidth,b=h.onChange,O=h.gap,C=h.data,k={startX:this.state.startX,endX:this.state.endX},P=i.pageX-s;P>0?P=Math.min(P,m+g-v-d):P<0&&(P=Math.max(P,m-d)),k[l]=d+P;var _=this.getIndex(k),w=_.startIndex,j=_.endIndex,E=function(){var z=C.length-1;return l==="startX"&&(u>f?w%O===0:j%O===0)||uf?j%O===0:w%O===0)||u>f&&j===z};this.setState((a={},on(a,l,d+P),on(a,"brushMoveStartX",i.pageX),a),function(){b&&E()&&b(_)})}},{key:"handleTravellerMoveKeyboard",value:function(i,a){var o=this,s=this.state,l=s.scaleValues,u=s.startX,f=s.endX,d=this.state[a],h=l.indexOf(d);if(h!==-1){var m=h+i;if(!(m===-1||m>=l.length)){var g=l[m];a==="startX"&&g>=f||a==="endX"&&g<=u||this.setState(on({},a,g),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.fill,f=i.stroke;return U.createElement("rect",{stroke:f,fill:u,x:a,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.data,f=i.children,d=i.padding,h=B.Children.only(f);return h?U.cloneElement(h,{x:a,y:o,width:s,height:l,margin:d,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(i,a){var o=this,s=this.props,l=s.y,u=s.travellerWidth,f=s.height,d=s.traveller,h=s.ariaLabel,m=s.data,g=s.startIndex,v=s.endIndex,b=Math.max(i,this.props.x),O=Xc(Xc({},Le(this.props)),{},{x:b,y:l,width:u,height:f}),C=h||"Min value: ".concat(m[g].name,", Max value: ").concat(m[v].name);return U.createElement(dt,{tabIndex:0,role:"slider","aria-label":C,"aria-valuenow":i,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),o.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(d,O))}},{key:"renderSlide",value:function(i,a){var o=this.props,s=o.y,l=o.height,u=o.stroke,f=o.travellerWidth,d=Math.min(i,a)+f,h=Math.max(Math.abs(a-i)-f,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:d,y:s,width:h,height:l})}},{key:"renderText",value:function(){var i=this.props,a=i.startIndex,o=i.endIndex,s=i.y,l=i.height,u=i.travellerWidth,f=i.stroke,d=this.state,h=d.startX,m=d.endX,g=5,v={pointerEvents:"none",fill:f};return U.createElement(dt,{className:"recharts-brush-texts"},U.createElement(dl,Ml({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-g,y:s+l/2},v),this.getTextOfTick(a)),U.createElement(dl,Ml({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+u+g,y:s+l/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var i=this.props,a=i.data,o=i.className,s=i.children,l=i.x,u=i.y,f=i.width,d=i.height,h=i.alwaysShowText,m=this.state,g=m.startX,v=m.endX,b=m.isTextActive,O=m.isSlideMoving,C=m.isTravellerMoving,k=m.isTravellerFocused;if(!a||!a.length||!le(l)||!le(u)||!le(f)||!le(d)||f<=0||d<=0)return null;var P=Ze("recharts-brush",o),_=U.Children.count(s)===1,w=NW("userSelect","none");return U.createElement(dt,{className:P,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(g,v),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(v,"endX"),(b||O||C||k||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var a=i.x,o=i.y,s=i.width,l=i.height,u=i.stroke,f=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:a,y:o,width:s,height:l,fill:u,stroke:"none"}),U.createElement("line",{x1:a+1,y1:f,x2:a+s-1,y2:f,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:a+1,y1:f+2,x2:a+s-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,a){var o;return U.isValidElement(i)?o=U.cloneElement(i,a):Te(i)?o=i(a):o=n.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(i,a){var o=i.data,s=i.width,l=i.x,u=i.travellerWidth,f=i.updateId,d=i.startIndex,h=i.endIndex;if(o!==a.prevData||f!==a.prevUpdateId)return Xc({prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s},o&&o.length?YW({data:o,width:s,x:l,travellerWidth:u,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||l!==a.prevX||u!==a.prevTravellerWidth)){a.scale.range([l,l+s-u]);var m=a.scale.domain().map(function(g){return a.scale(g)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s,startX:a.scale(i.startIndex),endX:a.scale(i.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(i,a){for(var o=i.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);i[u]>a?l=u:s=u}return a>=i[l]?l:s}}]),n}(B.PureComponent);on(Po,"displayName","Brush");on(Po,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var VW=Sh;function GW(e,t){var n;return VW(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var qW=GW,KW=Vx,XW=Mr,ZW=qW,JW=_n,QW=yu;function eY(e,t,n){var r=JW(e)?KW:ZW;return n&&QW(e,t,n)&&(t=void 0),r(e,XW(t))}var tY=eY;const nY=st(tY);var Un=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},rY=C4,iY=ib,aY=Mr;function oY(e,t){var n={};return t=aY(t),iY(e,function(r,i,a){rY(n,i,t(r,i,a))}),n}var sY=oY;const lY=st(sY);function uY(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function PY(e,t){var n=e.x,r=e.y,i=kY(e,wY),a="".concat(n),o=parseInt(a,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),d="".concat(t.width||i.width),h=parseInt(d,10);return Ea(Ea(Ea(Ea(Ea({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function eg(e){return U.createElement(hd,md({shapeType:"rectangle",propTransformer:PY,activeClassName:"recharts-active-bar"},e))}var AY=["value","background"];function Wi(e){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wi(e)}function jY(e,t){if(e==null)return{};var n=TY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dl(e)}function kr(e,t,n){return t=P2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P2(e){var t=NY(e,"string");return Wi(t)==="symbol"?t:String(t)}function NY(e,t){if(Wi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tu=function(e){$Y(n,e);var t=IY(n);function n(){var r;EY(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0&&Math.abs(Y)0&&Math.abs(W)0&&(W=Math.min((_e||0)-(Y[te-1]||0),W))});var V=W/D,X=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(j=V*X/2),v.padding==="no-gap"){var Z=Mi(t.barCategoryGap,V*X),G=V*X/2;j=G-Z-(G-Z)/X*Z}}i==="xAxis"?E=[r.left+(k.left||0)+(j||0),r.left+r.width-(k.right||0)-(j||0)]:i==="yAxis"?E=l==="horizontal"?[r.top+r.height-(k.bottom||0),r.top+(k.top||0)]:[r.top+(k.top||0)+(j||0),r.top+r.height-(k.bottom||0)-(j||0)]:E=v.range,_&&(E=[E[1],E[0]]);var Q=JF(v,a,h),T=Q.scale,pe=Q.realScaleType;T.domain(O).range(E),QF(T);var ue=sH(T,jn(jn({},v),{},{realScaleType:pe}));i==="xAxis"?(M=b==="top"&&!P||b==="bottom"&&P,I=r.left,z=d[w]-M*v.height):i==="yAxis"&&(M=b==="left"&&!P||b==="right"&&P,I=d[w]-M*v.width,z=r.top);var $=jn(jn(jn({},v),ue),{},{realScaleType:pe,x:I,y:z,scale:T,width:i==="xAxis"?r.width:v.width,height:i==="yAxis"?r.height:v.height});return $.bandSize=kl($,ue),!v.hide&&i==="xAxis"?d[w]+=(M?-1:1)*$.height:v.hide||(d[w]+=(M?-1:1)*$.width),jn(jn({},m),{},Eu({},g,$))},{})},j2=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},HY=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return j2({x:n,y:r},{x:i,y:a})},T2=function(){function e(t){RY(this,e),this.scale=t}return BY(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}]),e}();Eu(T2,"EPS",1e-4);var ep=function(t){var n=Object.keys(t).reduce(function(r,i){return jn(jn({},r),{},Eu({},i,T2.create(t[i])))},{});return jn(jn({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return lY(i,function(l,u){return n[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return C2(i,function(a,o){return n[o].isInRange(a)})}})};function UY(e){return(e%180+180)%180}var WY=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=UY(i),o=a*Math.PI/180,s=Math.atan(r/n),l=o>s&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function fV(e,t){return E2(e,t+1)}function dV(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,d=function(){var g=r==null?void 0:r[l];if(g===void 0)return{v:E2(r,u)};var v=l,b,O=function(){return b===void 0&&(b=n(g,v)),b},C=g.coordinate,k=l===0||Ll(e,C,O,f,s);k||(l=0,f=o,u+=1),k&&(f=C+e*(O()/2+i),l+=u)},h;u<=a.length;)if(h=d(),h)return h.v;return[]}function $o(e){"@babel/helpers - typeof";return $o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(e)}function dg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t0?m.coordinate-b*e:m.coordinate})}else a[h]=m=Nt(Nt({},m),{},{tickCoord:m.coordinate});var O=Ll(e,m.tickCoord,v,s,l);O&&(l=m.tickCoord-e*(v()/2+i),a[h]=Nt(Nt({},m),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function gV(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=r[s-1],d=n(f,s-1),h=e*(f.coordinate+e*d/2-u);o[s-1]=f=Nt(Nt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var m=Ll(e,f.tickCoord,function(){return d},l,u);m&&(u=f.tickCoord-e*(d/2+i),o[s-1]=Nt(Nt({},f),{},{isShow:!0}))}for(var g=a?s-1:s,v=function(C){var k=o[C],P,_=function(){return P===void 0&&(P=n(k,C)),P};if(C===0){var w=e*(k.coordinate-e*_()/2-l);o[C]=k=Nt(Nt({},k),{},{tickCoord:w<0?k.coordinate-w*e:k.coordinate})}else o[C]=k=Nt(Nt({},k),{},{tickCoord:k.coordinate});var j=Ll(e,k.tickCoord,_,l,u);j&&(l=k.tickCoord+e*(_()/2+i),o[C]=Nt(Nt({},k),{},{isShow:!0}))},b=0;b=2?Mn(i[1].coordinate-i[0].coordinate):1,O=cV(a,b,m);return l==="equidistantPreserveStart"?dV(b,O,v,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=gV(b,O,v,i,o,l==="preserveStartEnd"):h=yV(b,O,v,i,o),h.filter(function(C){return C.isShow}))}var vV=["viewBox"],xV=["viewBox"],bV=["ticks"];function Yi(e){"@babel/helpers - typeof";return Yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yi(e)}function Si(){return Si=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function SV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pg(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nl(e)}function np(e,t,n){return t=M2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M2(e){var t=jV(e,"string");return Yi(t)==="symbol"?t:String(t)}function jV(e,t){if(Yi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wa=function(e){OV(n,e);var t=kV(n);function n(r){var i;return SV(this,n),i=t.call(this,r),i.state={fontSize:"",letterSpacing:""},i}return _V(n,[{key:"shouldComponentUpdate",value:function(i,a){var o=i.viewBox,s=Zc(i,vV),l=this.props,u=l.viewBox,f=Zc(l,xV);return!Ci(o,u)||!Ci(s,f)||!Ci(a,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var a=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var a=this.props,o=a.x,s=a.y,l=a.width,u=a.height,f=a.orientation,d=a.tickSize,h=a.mirror,m=a.tickMargin,g,v,b,O,C,k,P=h?-1:1,_=i.tickSize||d,w=le(i.tickCoord)?i.tickCoord:i.coordinate;switch(f){case"top":g=v=i.coordinate,O=s+ +!h*u,b=O-P*_,k=b-P*m,C=w;break;case"left":b=O=i.coordinate,v=o+ +!h*l,g=v-P*_,C=g-P*m,k=w;break;case"right":b=O=i.coordinate,v=o+ +h*l,g=v+P*_,C=g+P*m,k=w;break;default:g=v=i.coordinate,O=s+ +h*u,b=O+P*_,k=b+P*m,C=w;break}return{line:{x1:g,y1:b,x2:v,y2:O},tick:{x:C,y:k}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s;switch(a){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,f=i.mirror,d=i.axisLine,h=Ht(Ht(Ht({},Le(this.props)),Le(d)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!f||u==="bottom"&&f);h=Ht(Ht({},h),{},{x1:a,y1:o+m*l,x2:a+s,y2:o+m*l})}else{var g=+(u==="left"&&!f||u==="right"&&f);h=Ht(Ht({},h),{},{x1:a+g*s,y1:o,x2:a+g*s,y2:o+l})}return U.createElement("line",Si({},h,{className:Ze("recharts-cartesian-axis-line",bn(d,"className"))}))}},{key:"renderTicks",value:function(i,a,o){var s=this,l=this.props,u=l.tickLine,f=l.stroke,d=l.tick,h=l.tickFormatter,m=l.unit,g=bd(Ht(Ht({},this.props),{},{ticks:i}),a,o),v=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),O=Le(this.props),C=Le(d),k=Ht(Ht({},O),{},{fill:"none"},Le(u)),P=g.map(function(_,w){var j=s.getTickLineCoord(_),E=j.line,I=j.tick,z=Ht(Ht(Ht(Ht({textAnchor:v,verticalAnchor:b},O),{},{stroke:"none",fill:f},C),I),{},{index:w,payload:_,visibleTicksCount:g.length,tickFormatter:h});return U.createElement(dt,Si({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},qa(s.props,_,w)),u&&U.createElement("line",Si({},k,E,{className:Ze("recharts-cartesian-axis-tick-line",bn(u,"className"))})),d&&n.renderTickItem(d,z,"".concat(Te(h)?h(_.value,w):_.value).concat(m||"")))});return U.createElement("g",{className:"recharts-cartesian-axis-ticks"},P)}},{key:"render",value:function(){var i=this,a=this.props,o=a.axisLine,s=a.width,l=a.height,u=a.ticksGenerator,f=a.className,d=a.hide;if(d)return null;var h=this.props,m=h.ticks,g=Zc(h,bV),v=m;return Te(u)&&(v=m&&m.length>0?u(this.props):u(g)),s<=0||l<=0||!v||!v.length?null:U.createElement(dt,{className:Ze("recharts-cartesian-axis",f),ref:function(O){i.layerReference=O}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Rt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,a,o){var s;return U.isValidElement(i)?s=U.cloneElement(i,a):Te(i)?s=i(a):s=U.createElement(dl,Si({},a,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),n}(B.Component);np(Wa,"displayName","CartesianAxis");np(Wa,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var TV=["x1","y1","x2","y2","key"],EV=["offset"];function Vi(e){"@babel/helpers - typeof";return Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vi(e)}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rl(e)}function rp(e,t,n){return t=$2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $2(e){var t=zV(e,"string");return Vi(t)==="symbol"?t:String(t)}function zV(e,t){if(Vi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ip=function(e){DV(n,e);var t=LV(n);function n(){return $V(this,n),t.apply(this,arguments)}return IV(n,[{key:"renderHorizontal",value:function(i){var a=this,o=this.props,s=o.x,l=o.width,u=o.horizontal;if(!i||!i.length)return null;var f=i.map(function(d,h){var m=wr(wr({},a.props),{},{x1:s,y1:d,x2:s+l,y2:d,key:"line-".concat(h),index:h});return n.renderLineItem(u,m)});return U.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}},{key:"renderVertical",value:function(i){var a=this,o=this.props,s=o.y,l=o.height,u=o.vertical;if(!i||!i.length)return null;var f=i.map(function(d,h){var m=wr(wr({},a.props),{},{x1:d,y1:s,x2:d,y2:s+l,key:"line-".concat(h),index:h});return n.renderLineItem(u,m)});return U.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}},{key:"renderVerticalStripes",value:function(i){var a=this.props.verticalFill;if(!a||!a.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,f=o.width,d=o.height,h=i.map(function(g){return Math.round(g+l-l)}).sort(function(g,v){return g-v});l!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],O=b?l+f-g:h[v+1]-g;if(O<=0)return null;var C=v%a.length;return U.createElement("rect",{key:"react-".concat(v),x:g,y:u,width:O,height:d,stroke:"none",fill:a[C],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}},{key:"renderHorizontalStripes",value:function(i){var a=this.props.horizontalFill;if(!a||!a.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,f=o.width,d=o.height,h=i.map(function(g){return Math.round(g+u-u)}).sort(function(g,v){return g-v});u!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],O=b?u+d-g:h[v+1]-g;if(O<=0)return null;var C=v%a.length;return U.createElement("rect",{key:"react-".concat(v),y:g,x:l,height:O,width:f,stroke:"none",fill:a[C],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}},{key:"renderBackground",value:function(){var i=this.props.fill;if(!i||i==="none")return null;var a=this.props,o=a.fillOpacity,s=a.x,l=a.y,u=a.width,f=a.height;return U.createElement("rect",{x:s,y:l,width:u,height:f,stroke:"none",fill:i,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.horizontal,f=i.vertical,d=i.horizontalCoordinatesGenerator,h=i.verticalCoordinatesGenerator,m=i.xAxis,g=i.yAxis,v=i.offset,b=i.chartWidth,O=i.chartHeight,C=i.syncWithTicks,k=i.horizontalValues,P=i.verticalValues;if(!le(s)||s<=0||!le(l)||l<=0||!le(a)||a!==+a||!le(o)||o!==+o)return null;var _=this.props,w=_.horizontalPoints,j=_.verticalPoints;if((!w||!w.length)&&Te(d)){var E=k&&k.length;w=d({yAxis:g?wr(wr({},g),{},{ticks:E?k:g.ticks}):void 0,width:b,height:O,offset:v},E?!0:C)}if((!j||!j.length)&&Te(h)){var I=P&&P.length;j=h({xAxis:m?wr(wr({},m),{},{ticks:I?P:m.ticks}):void 0,width:b,height:O,offset:v},I?!0:C)}return U.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(w),f&&this.renderVertical(j),u&&this.renderHorizontalStripes(w),f&&this.renderVerticalStripes(j))}}],[{key:"renderLineItem",value:function(i,a){var o;if(U.isValidElement(i))o=U.cloneElement(i,a);else if(Te(i))o=i(a);else{var s=a.x1,l=a.y1,u=a.x2,f=a.y2,d=a.key,h=mg(a,TV),m=Le(h);m.offset;var g=mg(m,EV);o=U.createElement("line",Sd({},g,{x1:s,y1:l,x2:u,y2:f,fill:"none",key:d}))}return o}}]),n}(B.PureComponent);rp(ip,"displayName","CartesianGrid");rp(ip,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var Mu=function(){return null};Mu.displayName="ZAxis";Mu.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var FV=["option","isActive"];function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function WV(e){var t=e.option,n=e.isActive,r=HV(e,FV);return typeof t=="string"?U.createElement(hd,Ya({option:U.createElement(pu,Ya({type:t},r)),isActive:n,shapeType:"symbols"},r)):U.createElement(hd,Ya({option:t,isActive:n,shapeType:"symbols"},r))}function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(e)}function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bl(e)}function Cr(e,t,n){return t=I2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I2(e){var t=ZV(e,"string");return Gi(t)==="symbol"?t:String(t)}function ZV(e,t){if(Gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jo=function(e){GV(n,e);var t=qV(n);function n(){var r;YV(this,n);for(var i=arguments.length,a=new Array(i),o=0;o-1?i[a?t[o]:o]:void 0}}var nG=tG,rG=_2;function iG(e){var t=rG(e),n=t%1;return t===t?n?t-n:t:0}var aG=iG,oG=Jx,sG=Mr,lG=aG,uG=Math.max;function cG(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:lG(n);return i<0&&(i=uG(r+i,0)),oG(e,sG(t),i)}var fG=cG,dG=nG,hG=fG,pG=dG(hG),mG=pG;const yG=st(mG);var gG="Invariant failed";function vG(e,t){if(!e)throw new Error(gG)}function D2(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=It(t,n,r,i),s=It(t,n,r,a);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function bg(e){return SG(e)||wG(e)||bG(e)||xG()}function xG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bG(e,t){if(e){if(typeof e=="string")return kd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kd(e,t)}}function wG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SG(e){if(Array.isArray(e))return kd(e)}function kd(e,t){(t==null||t>e.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 NG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function RG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Og(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zl(e)}function Ki(e){return VG(e)||YG(e)||R2(e)||WG()}function WG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R2(e,t){if(e){if(typeof e=="string")return Ad(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ad(e,t)}}function YG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VG(e){if(Array.isArray(e))return Ad(e)}function Ad(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:t&&t.length&&le(i)&&le(a)?t.slice(i,a+1):[]};function F2(e){return e==="number"?[0,"auto"]:void 0}var H2=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Du(n,t);return r<0||!a||!a.length||r>=s.length?null:a.reduce(function(l,u){var f,d=u.props.hide;if(d)return l;var h=(f=u.props.data)!==null&&f!==void 0?f:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var g=h===void 0?s:h;m=Ks(g,o.dataKey,i)}else m=h&&h[r]||s[r];return m?[].concat(Ki(l),[v2(u,m)]):l},[])},Cg=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=XG(a,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=VF(o,s,u,l);if(f>=0&&u){var d=u[f]&&u[f].value,h=H2(t,n,f,d),m=ZG(r,s,f,a);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:m}}return null},JG=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,m=y2(f,a);return r.reduce(function(g,v){var b,O=v.props,C=O.type,k=O.dataKey,P=O.allowDataOverflow,_=O.allowDuplicatedCategory,w=O.scale,j=O.ticks,E=O.includeHidden,I=v.props[o];if(g[I])return g;var z=Du(t.data,{graphicalItems:i.filter(function(ue){return ue.props[o]===I}),dataStartIndex:l,dataEndIndex:u}),M=z.length,D,W,Y;jG(v.props.domain,P,C)&&(D=ad(v.props.domain,null,P),m&&(C==="number"||w!=="auto")&&(Y=Ua(z,k,"category")));var V=F2(C);if(!D||D.length===0){var X,Z=(X=v.props.domain)!==null&&X!==void 0?X:V;if(k){if(D=Ua(z,k,C),C==="category"&&m){var G=lA(D);_&&G?(W=D,D=El(0,M)):_||(D=_y(Z,D,v).reduce(function(ue,$){return ue.indexOf($)>=0?ue:[].concat(Ki(ue),[$])},[]))}else if(C==="category")_?D=D.filter(function(ue){return ue!==""&&!Ee(ue)}):D=_y(Z,D,v).reduce(function(ue,$){return ue.indexOf($)>=0||$===""||Ee($)?ue:[].concat(Ki(ue),[$])},[]);else if(C==="number"){var Q=ZF(z,i.filter(function(ue){return ue.props[o]===I&&(E||!ue.props.hide)}),k,a,f);Q&&(D=Q)}m&&(C==="number"||w!=="auto")&&(Y=Ua(z,k,"category"))}else m?D=El(0,M):s&&s[I]&&s[I].hasStack&&C==="number"?D=h==="expand"?[0,1]:g2(s[I].stackGroups,l,u):D=m2(z,i.filter(function(ue){return ue.props[o]===I&&(E||!ue.props.hide)}),C,f,!0);if(C==="number")D=Cd(d,D,I,a,j),Z&&(D=ad(Z,D,P));else if(C==="category"&&Z){var T=Z,pe=D.every(function(ue){return T.indexOf(ue)>=0});pe&&(D=T)}}return J(J({},g),{},ye({},I,J(J({},v.props),{},{axisType:a,domain:D,categoricalDomain:Y,duplicateDomain:W,originalDomain:(b=v.props.domain)!==null&&b!==void 0?b:V,isCategorical:m,layout:f})))},{})},QG=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=Du(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),m=h.length,g=y2(f,a),v=-1;return r.reduce(function(b,O){var C=O.props[o],k=F2("number");if(!b[C]){v++;var P;return g?P=El(0,m):s&&s[C]&&s[C].hasStack?(P=g2(s[C].stackGroups,l,u),P=Cd(d,P,C,a)):(P=ad(k,m2(h,r.filter(function(_){return _.props[o]===C&&!_.props.hide}),"number",f),i.defaultProps.allowDataOverflow),P=Cd(d,P,C,a)),J(J({},b),{},ye({},C,J(J({axisType:a},i.defaultProps),{},{hide:!0,orientation:bn(qG,"".concat(a,".").concat(v%2),null),domain:P,originalDomain:k,isCategorical:g,layout:f})))}return b},{})},eq=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(i,"Id"),h=un(f,a),m={};return h&&h.length?m=JG(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(m=QG(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),m},tq=function(t){var n=Sr(t),r=_r(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:_h(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:kl(n,r)}},Pg=function(t){var n=t.children,r=t.defaultShowTooltip,i=er(n,Po),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},nq=function(t){return!t||!t.length?!1:t.some(function(n){var r=rr(n&&n.type);return r&&r.indexOf("Bar")>=0})},Ag=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},rq=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,f=r.height,d=r.children,h=r.margin||{},m=er(d,Po),g=er(d,Za),v=Object.keys(l).reduce(function(_,w){var j=l[w],E=j.orientation;return!j.mirror&&!j.hide?J(J({},_),{},ye({},E,_[E]+j.width)):_},{left:h.left||0,right:h.right||0}),b=Object.keys(o).reduce(function(_,w){var j=o[w],E=j.orientation;return!j.mirror&&!j.hide?J(J({},_),{},ye({},E,bn(_,"".concat(E))+j.height)):_},{top:h.top||0,bottom:h.bottom||0}),O=J(J({},b),v),C=O.bottom;m&&(O.bottom+=m.props.height||Po.defaultProps.height),g&&n&&(O=KF(O,i,r,n));var k=u-O.left-O.right,P=f-O.top-O.bottom;return J(J({brushBottom:C},O),{},{width:Math.max(k,0),height:Math.max(P,0)})},iq=function(t){var n,r=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,f=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,m=function(b,O){var C=O.graphicalItems,k=O.stackGroups,P=O.offset,_=O.updateId,w=O.dataStartIndex,j=O.dataEndIndex,E=b.barSize,I=b.layout,z=b.barGap,M=b.barCategoryGap,D=b.maxBarSize,W=Ag(I),Y=W.numericAxisName,V=W.cateAxisName,X=nq(C),Z=X&&GF({barSize:E,stackGroups:k}),G=[];return C.forEach(function(Q,T){var pe=Du(b.data,{graphicalItems:[Q],dataStartIndex:w,dataEndIndex:j}),ue=Q.props,$=ue.dataKey,_e=ue.maxBarSize,te=Q.props["".concat(Y,"Id")],ge=Q.props["".concat(V,"Id")],Ye={},Me=u.reduce(function(Ne,it){var tn,Cn=O["".concat(it.axisType,"Map")],R=Q.props["".concat(it.axisType,"Id")];Cn&&Cn[R]||it.axisType==="zAxis"||vG(!1);var q=Cn[R];return J(J({},Ne),{},(tn={},ye(tn,it.axisType,q),ye(tn,"".concat(it.axisType,"Ticks"),_r(q)),tn))},Ye),ae=Me[V],de=Me["".concat(V,"Ticks")],ve=k&&k[te]&&k[te].hasStack&&uH(Q,k[te].stackGroups),ee=rr(Q.type).indexOf("Bar")>=0,Ae=kl(ae,de),he=[];if(ee){var xe,He,rt=Ee(_e)?D:_e,ft=(xe=(He=kl(ae,de,!0))!==null&&He!==void 0?He:rt)!==null&&xe!==void 0?xe:0;he=qF({barGap:z,barCategoryGap:M,bandSize:ft!==Ae?ft:Ae,sizeList:Z[ge],maxBarSize:rt}),ft!==Ae&&(he=he.map(function(Ne){return J(J({},Ne),{},{position:J(J({},Ne.position),{},{offset:Ne.position.offset-ft/2})})}))}var en=Q&&Q.type&&Q.type.getComposedData;if(en){var Ue;G.push({props:J(J({},en(J(J({},Me),{},{displayedData:pe,props:b,dataKey:$,item:Q,bandSize:Ae,barPosition:he,offset:P,stackedData:ve,layout:I,dataStartIndex:w,dataEndIndex:j}))),{},(Ue={key:Q.key||"item-".concat(T)},ye(Ue,Y,Me[Y]),ye(Ue,V,Me[V]),ye(Ue,"animationId",_),Ue)),childIndex:bA(Q,b.children),item:Q})}}),G},g=function(b,O){var C=b.props,k=b.dataStartIndex,P=b.dataEndIndex,_=b.updateId;if(!i0({props:C}))return null;var w=C.children,j=C.layout,E=C.stackOffset,I=C.data,z=C.reverseStackOrder,M=Ag(j),D=M.numericAxisName,W=M.cateAxisName,Y=un(w,i),V=oH(I,Y,"".concat(D,"Id"),"".concat(W,"Id"),E,z),X=u.reduce(function(pe,ue){var $="".concat(ue.axisType,"Map");return J(J({},pe),{},ye({},$,eq(C,J(J({},ue),{},{graphicalItems:Y,stackGroups:ue.axisType===D&&V,dataStartIndex:k,dataEndIndex:P}))))},{}),Z=rq(J(J({},X),{},{props:C,graphicalItems:Y}),O==null?void 0:O.legendBBox);Object.keys(X).forEach(function(pe){X[pe]=d(C,X[pe],Z,pe.replace("Map",""),r)});var G=X["".concat(W,"Map")],Q=tq(G),T=m(C,J(J({},X),{},{dataStartIndex:k,dataEndIndex:P,updateId:_,graphicalItems:Y,stackGroups:V,offset:Z}));return J(J({formattedGraphicalItems:T,graphicalItems:Y,offset:Z,stackGroups:V},Q),X)};return n=function(v){zG(O,v);var b=FG(O);function O(C){var k,P,_;return RG(this,O),_=b.call(this,C),ye(Pe(_),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ye(Pe(_),"accessibilityManager",new AG),ye(Pe(_),"handleLegendBBoxUpdate",function(w){if(w){var j=_.state,E=j.dataStartIndex,I=j.dataEndIndex,z=j.updateId;_.setState(J({legendBBox:w},g({props:_.props,dataStartIndex:E,dataEndIndex:I,updateId:z},J(J({},_.state),{},{legendBBox:w}))))}}),ye(Pe(_),"handleReceiveSyncEvent",function(w,j,E){if(_.props.syncId===w){if(E===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(j)}}),ye(Pe(_),"handleBrushChange",function(w){var j=w.startIndex,E=w.endIndex;if(j!==_.state.dataStartIndex||E!==_.state.dataEndIndex){var I=_.state.updateId;_.setState(function(){return J({dataStartIndex:j,dataEndIndex:E},g({props:_.props,dataStartIndex:j,dataEndIndex:E,updateId:I},_.state))}),_.triggerSyncEvent({dataStartIndex:j,dataEndIndex:E})}}),ye(Pe(_),"handleMouseEnter",function(w){var j=_.getMouseInfo(w);if(j){var E=J(J({},j),{},{isTooltipActive:!0});_.setState(E),_.triggerSyncEvent(E);var I=_.props.onMouseEnter;Te(I)&&I(E,w)}}),ye(Pe(_),"triggeredAfterMouseMove",function(w){var j=_.getMouseInfo(w),E=j?J(J({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState(E),_.triggerSyncEvent(E);var I=_.props.onMouseMove;Te(I)&&I(E,w)}),ye(Pe(_),"handleItemMouseEnter",function(w){_.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),ye(Pe(_),"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),ye(Pe(_),"handleMouseMove",function(w){w.persist(),_.throttleTriggeredAfterMouseMove(w)}),ye(Pe(_),"handleMouseLeave",function(w){var j={isTooltipActive:!1};_.setState(j),_.triggerSyncEvent(j);var E=_.props.onMouseLeave;Te(E)&&E(j,w)}),ye(Pe(_),"handleOuterEvent",function(w){var j=xA(w),E=bn(_.props,"".concat(j));if(j&&Te(E)){var I,z;/.*touch.*/i.test(j)?z=_.getMouseInfo(w.changedTouches[0]):z=_.getMouseInfo(w),E((I=z)!==null&&I!==void 0?I:{},w)}}),ye(Pe(_),"handleClick",function(w){var j=_.getMouseInfo(w);if(j){var E=J(J({},j),{},{isTooltipActive:!0});_.setState(E),_.triggerSyncEvent(E);var I=_.props.onClick;Te(I)&&I(E,w)}}),ye(Pe(_),"handleMouseDown",function(w){var j=_.props.onMouseDown;if(Te(j)){var E=_.getMouseInfo(w);j(E,w)}}),ye(Pe(_),"handleMouseUp",function(w){var j=_.props.onMouseUp;if(Te(j)){var E=_.getMouseInfo(w);j(E,w)}}),ye(Pe(_),"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),ye(Pe(_),"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&_.handleMouseDown(w.changedTouches[0])}),ye(Pe(_),"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&_.handleMouseUp(w.changedTouches[0])}),ye(Pe(_),"triggerSyncEvent",function(w){_.props.syncId!==void 0&&Jc.emit(Qc,_.props.syncId,w,_.eventEmitterSymbol)}),ye(Pe(_),"applySyncEvent",function(w){var j=_.props,E=j.layout,I=j.syncMethod,z=_.state.updateId,M=w.dataStartIndex,D=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)_.setState(J({dataStartIndex:M,dataEndIndex:D},g({props:_.props,dataStartIndex:M,dataEndIndex:D,updateId:z},_.state)));else if(w.activeTooltipIndex!==void 0){var W=w.chartX,Y=w.chartY,V=w.activeTooltipIndex,X=_.state,Z=X.offset,G=X.tooltipTicks;if(!Z)return;if(typeof I=="function")V=I(G,w);else if(I==="value"){V=-1;for(var Q=0;Q=0){var ve,ee;if(W.dataKey&&!W.allowDuplicatedCategory){var Ae=typeof W.dataKey=="function"?de:"payload.".concat(W.dataKey.toString());ve=Ks(Q,Ae,V),ee=T&&pe&&Ks(pe,Ae,V)}else ve=Q==null?void 0:Q[Y],ee=T&&pe&&pe[Y];if(ge||te){var he=w.props.activeIndex!==void 0?w.props.activeIndex:Y;return[B.cloneElement(w,J(J(J({},I.props),Me),{},{activeIndex:he})),null,null]}if(!Ee(ve))return[ae].concat(Ki(_.renderActivePoints({item:I,activePoint:ve,basePoint:ee,childIndex:Y,isRange:T})))}else{var xe,He=(xe=_.getItemByXY(_.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:ae},rt=He.graphicalItem,ft=rt.item,en=ft===void 0?w:ft,Ue=rt.childIndex,Ne=J(J(J({},I.props),Me),{},{activeIndex:Ue});return[B.cloneElement(en,Ne),null,null]}return T?[ae,null,null]:[ae,null]}),ye(Pe(_),"renderCustomized",function(w,j,E){return B.cloneElement(w,J(J({key:"recharts-customized-".concat(E)},_.props),_.state))}),ye(Pe(_),"renderMap",{CartesianGrid:{handler:_.renderGrid,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:_.renderReferenceElement},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:_.renderXAxis},YAxis:{handler:_.renderYAxis},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((k=C.id)!==null&&k!==void 0?k:Wo("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=yb(_.triggeredAfterMouseMove,(P=C.throttleDelay)!==null&&P!==void 0?P:1e3/60),_.state={},_}return BG(O,[{key:"componentDidMount",value:function(){var k,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(k=this.props.margin.left)!==null&&k!==void 0?k:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(k,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==k.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==k.margin){var _,w;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var k=er(this.props.children,Vr);if(k&&typeof k.props.shared=="boolean"){var P=k.props.shared?"axis":"item";return l.indexOf(P)>=0?P:o}return o}},{key:"getMouseInfo",value:function(k){if(!this.container)return null;var P=this.container,_=P.getBoundingClientRect(),w=CN(_),j={chartX:Math.round(k.pageX-w.left),chartY:Math.round(k.pageY-w.top)},E=_.width/P.offsetWidth||1,I=this.inRange(j.chartX,j.chartY,E);if(!I)return null;var z=this.state,M=z.xAxisMap,D=z.yAxisMap,W=this.getTooltipEventType();if(W!=="axis"&&M&&D){var Y=Sr(M).scale,V=Sr(D).scale,X=Y&&Y.invert?Y.invert(j.chartX):null,Z=V&&V.invert?V.invert(j.chartY):null;return J(J({},j),{},{xValue:X,yValue:Z})}var G=Cg(this.state,this.props.data,this.props.layout,I);return G?J(J({},j),G):null}},{key:"inRange",value:function(k,P){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,j=k/_,E=P/_;if(w==="horizontal"||w==="vertical"){var I=this.state.offset,z=j>=I.left&&j<=I.left+I.width&&E>=I.top&&E<=I.top+I.height;return z?{x:j,y:E}:null}var M=this.state,D=M.angleAxisMap,W=M.radiusAxisMap;if(D&&W){var Y=Sr(D);return Cy({x:j,y:E},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var k=this.props.children,P=this.getTooltipEventType(),_=er(k,Vr),w={};_&&P==="axis"&&(_.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var j=Xs(this.props,this.handleOuterEvent);return J(J({},j),w)}},{key:"addListener",value:function(){Jc.on(Qc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Jc.removeListener(Qc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(k,P,_){for(var w=this.state.formattedGraphicalItems,j=0,E=w.length;jy.jsx(Qh,{cx:e,cy:t,fill:L.blueTextAccent,r:2}),sq=()=>{const e=qt(),t=[...(e==null?void 0:e.data)||[]].sort((i,a)=>(i.year||0)-(a.year||0)),n=t.map(i=>i.year).filter(i=>i),r=t.map(i=>i.rate).filter(i=>i);return y.jsx(lq,{direction:"column",px:24,py:16,children:y.jsx(xN,{height:"100%",width:"100%",children:y.jsxs(aq,{margin:{bottom:20,left:20,right:20,top:20},children:[y.jsx(ip,{stroke:"#f5f5f5"}),y.jsx($u,{dataKey:"year",domain:[Math.min(...n),Math.max(...n)],label:{fill:L.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:L.white,fontSize:"8px"},type:"number"}),y.jsx(Iu,{color:"#000",dataKey:"rate",domain:[Math.min(...r),Math.max(...r)],label:{angle:-90,fill:L.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:L.white,fontSize:"8px"},type:"number"}),y.jsx(Vr,{cursor:{strokeDasharray:"3 3"}}),y.jsx(Jo,{data:t,fill:L.blueTextAccent,line:!0,name:"A scatter",shape:y.jsx(oq,{})})]})})})},lq=H(F)` + A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(n+i-s*g," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},wU=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,s=n.width,l=n.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),d=Math.min(o,o+l),h=Math.max(o,o+l);return r>=u&&r<=f&&i>=d&&i<=h}return!1},SU={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Qh=function(t){var n=By(By({},SU),t),r=B.useRef(),i=B.useState(-1),a=hU(i,2),o=a[0],s=a[1];B.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var P=r.current.getTotalLength();P&&s(P)}catch{}},[]);var l=n.x,u=n.y,f=n.width,d=n.height,h=n.radius,m=n.className,g=n.animationEasing,v=n.animationDuration,b=n.animationBegin,O=n.isAnimationActive,C=n.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var k=Ze("recharts-rectangle",m);return C?U.createElement(or,{canBegin:o>0,from:{width:f,height:d,x:l,y:u},to:{width:f,height:d,x:l,y:u},duration:v,animationEasing:g,isActive:C},function(P){var _=P.width,w=P.height,j=P.x,E=P.y;return U.createElement(or,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,isActive:O,easing:g},U.createElement("path",jl({},Le(n,!0),{className:k,d:zy(j,E,_,w,h),ref:r})))}):U.createElement("path",jl({},Le(n,!0),{className:k,d:zy(l,u,f,d,h)}))};function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var TU=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},EU=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,d=f===void 0?0:f,h=t.height,m=h===void 0?0:h,g=t.className,v=AU(t,_U),b=OU({x:r,y:a,top:s,left:u,width:d,height:m},v);return!le(r)||!le(a)||!le(d)||!le(m)||!le(s)||!le(u)?null:U.createElement("path",hd({},Le(b,!0),{className:Ze("recharts-cross",g),d:TU(r,a,d,m,s,u)}))},MU=Bo,$U=C4,IU=ea,DU="[object Object]",LU=Function.prototype,NU=Object.prototype,_2=LU.toString,RU=NU.hasOwnProperty,BU=_2.call(Object);function zU(e){if(!IU(e)||MU(e)!=DU)return!1;var t=$U(e);if(t===null)return!0;var n=RU.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&_2.call(n)==BU}var FU=zU;const HU=st(FU);var UU=Bo,WU=ea,YU="[object Boolean]";function VU(e){return e===!0||e===!1||WU(e)&&UU(e)==YU}var GU=VU;const qU=st(GU);function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:f,lowerWidth:d,height:h,x:l,y:u},duration:v,animationEasing:g,isActive:O},function(k){var P=k.upperWidth,_=k.lowerWidth,w=k.height,j=k.x,E=k.y;return U.createElement(or,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,easing:g},U.createElement("path",Tl({},Le(n,!0),{className:C,d:Yy(j,E,P,_,w),ref:r})))}):U.createElement("g",null,U.createElement("path",Tl({},Le(n,!0),{className:C,d:Yy(l,u,f,d,h)})))},aW=["option","shapeType","propTransformer","activeClassName","isActive"];function ko(e){"@babel/helpers - typeof";return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(e)}function oW(e,t){if(e==null)return{};var n=sW(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Vy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function El(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Il(e){return Il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Il(e)}function on(e,t,n){return t=C2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C2(e){var t=YW(e,"string");return Wi(t)==="symbol"?t:String(t)}function YW(e,t){if(Wi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Wi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VW=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,u=Ua().domain(Ml(0,l)).range([a,a+o-s]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:f}},Qy=function(t){return t.changedTouches&&!!t.changedTouches.length},Ao=function(e){FW(n,e);var t=HW(n);function n(r){var i;return BW(this,n),i=t.call(this,r),on(Ln(i),"handleDrag",function(a){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(a):i.state.isSlideMoving&&i.handleSlideDrag(a)}),on(Ln(i),"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&i.handleDrag(a.changedTouches[0])}),on(Ln(i),"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=i.props,o=a.endIndex,s=a.onDragEnd,l=a.startIndex;s==null||s({endIndex:o,startIndex:l})}),i.detachDragEndListener()}),on(Ln(i),"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),on(Ln(i),"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),on(Ln(i),"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),on(Ln(i),"handleSlideDragStart",function(a){var o=Qy(a)?a.changedTouches[0]:a;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(Ln(i),"startX"),endX:i.handleTravellerDragStart.bind(Ln(i),"endX")},i.state={},i}return zW(n,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var a=i.startX,o=i.endX,s=this.state.scaleValues,l=this.props,u=l.gap,f=l.data,d=f.length-1,h=Math.min(a,o),m=Math.max(a,o),g=n.getIndexInRange(s,h),v=n.getIndexInRange(s,m);return{startIndex:g-g%u,endIndex:v===d?d:v-v%u}}},{key:"getTextOfTick",value:function(i){var a=this.props,o=a.data,s=a.tickFormatter,l=a.dataKey,u=Gt(o[i],l,i);return Te(s)?s(u,i):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var a=this.state,o=a.slideMoveStartX,s=a.startX,l=a.endX,u=this.props,f=u.x,d=u.width,h=u.travellerWidth,m=u.startIndex,g=u.endIndex,v=u.onChange,b=i.pageX-o;b>0?b=Math.min(b,f+d-h-l,f+d-h-s):b<0&&(b=Math.max(b,f-s,f-l));var O=this.getIndex({startX:s+b,endX:l+b});(O.startIndex!==m||O.endIndex!==g)&&v&&v(O),this.setState({startX:s+b,endX:l+b,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,a){var o=Qy(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var a,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,u=o.endX,f=o.startX,d=this.state[l],h=this.props,m=h.x,g=h.width,v=h.travellerWidth,b=h.onChange,O=h.gap,C=h.data,k={startX:this.state.startX,endX:this.state.endX},P=i.pageX-s;P>0?P=Math.min(P,m+g-v-d):P<0&&(P=Math.max(P,m-d)),k[l]=d+P;var _=this.getIndex(k),w=_.startIndex,j=_.endIndex,E=function(){var z=C.length-1;return l==="startX"&&(u>f?w%O===0:j%O===0)||uf?j%O===0:w%O===0)||u>f&&j===z};this.setState((a={},on(a,l,d+P),on(a,"brushMoveStartX",i.pageX),a),function(){b&&E()&&b(_)})}},{key:"handleTravellerMoveKeyboard",value:function(i,a){var o=this,s=this.state,l=s.scaleValues,u=s.startX,f=s.endX,d=this.state[a],h=l.indexOf(d);if(h!==-1){var m=h+i;if(!(m===-1||m>=l.length)){var g=l[m];a==="startX"&&g>=f||a==="endX"&&g<=u||this.setState(on({},a,g),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.fill,f=i.stroke;return U.createElement("rect",{stroke:f,fill:u,x:a,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.data,f=i.children,d=i.padding,h=B.Children.only(f);return h?U.cloneElement(h,{x:a,y:o,width:s,height:l,margin:d,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(i,a){var o=this,s=this.props,l=s.y,u=s.travellerWidth,f=s.height,d=s.traveller,h=s.ariaLabel,m=s.data,g=s.startIndex,v=s.endIndex,b=Math.max(i,this.props.x),O=Zc(Zc({},Le(this.props)),{},{x:b,y:l,width:u,height:f}),C=h||"Min value: ".concat(m[g].name,", Max value: ").concat(m[v].name);return U.createElement(dt,{tabIndex:0,role:"slider","aria-label":C,"aria-valuenow":i,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),o.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(d,O))}},{key:"renderSlide",value:function(i,a){var o=this.props,s=o.y,l=o.height,u=o.stroke,f=o.travellerWidth,d=Math.min(i,a)+f,h=Math.max(Math.abs(a-i)-f,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:d,y:s,width:h,height:l})}},{key:"renderText",value:function(){var i=this.props,a=i.startIndex,o=i.endIndex,s=i.y,l=i.height,u=i.travellerWidth,f=i.stroke,d=this.state,h=d.startX,m=d.endX,g=5,v={pointerEvents:"none",fill:f};return U.createElement(dt,{className:"recharts-brush-texts"},U.createElement(hl,$l({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-g,y:s+l/2},v),this.getTextOfTick(a)),U.createElement(hl,$l({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+u+g,y:s+l/2},v),this.getTextOfTick(o)))}},{key:"render",value:function(){var i=this.props,a=i.data,o=i.className,s=i.children,l=i.x,u=i.y,f=i.width,d=i.height,h=i.alwaysShowText,m=this.state,g=m.startX,v=m.endX,b=m.isTextActive,O=m.isSlideMoving,C=m.isTravellerMoving,k=m.isTravellerFocused;if(!a||!a.length||!le(l)||!le(u)||!le(f)||!le(d)||f<=0||d<=0)return null;var P=Ze("recharts-brush",o),_=U.Children.count(s)===1,w=RW("userSelect","none");return U.createElement(dt,{className:P,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(g,v),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(v,"endX"),(b||O||C||k||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var a=i.x,o=i.y,s=i.width,l=i.height,u=i.stroke,f=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:a,y:o,width:s,height:l,fill:u,stroke:"none"}),U.createElement("line",{x1:a+1,y1:f,x2:a+s-1,y2:f,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:a+1,y1:f+2,x2:a+s-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,a){var o;return U.isValidElement(i)?o=U.cloneElement(i,a):Te(i)?o=i(a):o=n.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(i,a){var o=i.data,s=i.width,l=i.x,u=i.travellerWidth,f=i.updateId,d=i.startIndex,h=i.endIndex;if(o!==a.prevData||f!==a.prevUpdateId)return Zc({prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s},o&&o.length?VW({data:o,width:s,x:l,travellerWidth:u,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||l!==a.prevX||u!==a.prevTravellerWidth)){a.scale.range([l,l+s-u]);var m=a.scale.domain().map(function(g){return a.scale(g)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s,startX:a.scale(i.startIndex),endX:a.scale(i.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(i,a){for(var o=i.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);i[u]>a?l=u:s=u}return a>=i[l]?l:s}}]),n}(B.PureComponent);on(Ao,"displayName","Brush");on(Ao,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var GW=_h;function qW(e,t){var n;return GW(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var KW=qW,XW=Gx,ZW=$r,JW=KW,QW=_n,eY=gu;function tY(e,t,n){var r=QW(e)?XW:JW;return n&&eY(e,t,n)&&(t=void 0),r(e,ZW(t))}var nY=tY;const rY=st(nY);var Un=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},iY=P4,aY=ab,oY=$r;function sY(e,t){var n={};return t=oY(t),aY(e,function(r,i,a){iY(n,i,t(r,i,a))}),n}var lY=sY;const uY=st(lY);function cY(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function AY(e,t){var n=e.x,r=e.y,i=CY(e,SY),a="".concat(n),o=parseInt(a,10),s="".concat(r),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),d="".concat(t.width||i.width),h=parseInt(d,10);return Ma(Ma(Ma(Ma(Ma({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function tg(e){return U.createElement(pd,yd({shapeType:"rectangle",propTransformer:AY,activeClassName:"recharts-active-bar"},e))}var jY=["value","background"];function Yi(e){"@babel/helpers - typeof";return Yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yi(e)}function TY(e,t){if(e==null)return{};var n=EY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ll(e)}function Cr(e,t,n){return t=A2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A2(e){var t=RY(e,"string");return Yi(t)==="symbol"?t:String(t)}function RY(e,t){if(Yi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eu=function(e){IY(n,e);var t=DY(n);function n(){var r;MY(this,n);for(var i=arguments.length,a=new Array(i),o=0;o0&&Math.abs(Y)0&&Math.abs(W)0&&(W=Math.min((_e||0)-(Y[te-1]||0),W))});var V=W/D,X=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(j=V*X/2),v.padding==="no-gap"){var Z=$i(t.barCategoryGap,V*X),G=V*X/2;j=G-Z-(G-Z)/X*Z}}i==="xAxis"?E=[r.left+(k.left||0)+(j||0),r.left+r.width-(k.right||0)-(j||0)]:i==="yAxis"?E=l==="horizontal"?[r.top+r.height-(k.bottom||0),r.top+(k.top||0)]:[r.top+(k.top||0)+(j||0),r.top+r.height-(k.bottom||0)-(j||0)]:E=v.range,_&&(E=[E[1],E[0]]);var Q=QF(v,a,h),T=Q.scale,pe=Q.realScaleType;T.domain(O).range(E),eH(T);var ue=lH(T,jn(jn({},v),{},{realScaleType:pe}));i==="xAxis"?(M=b==="top"&&!P||b==="bottom"&&P,I=r.left,z=d[w]-M*v.height):i==="yAxis"&&(M=b==="left"&&!P||b==="right"&&P,I=d[w]-M*v.width,z=r.top);var $=jn(jn(jn({},v),ue),{},{realScaleType:pe,x:I,y:z,scale:T,width:i==="xAxis"?r.width:v.width,height:i==="yAxis"?r.height:v.height});return $.bandSize=Cl($,ue),!v.hide&&i==="xAxis"?d[w]+=(M?-1:1)*$.height:v.hide||(d[w]+=(M?-1:1)*$.width),jn(jn({},m),{},Mu({},g,$))},{})},T2=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},UY=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return T2({x:n,y:r},{x:i,y:a})},E2=function(){function e(t){BY(this,e),this.scale=t}return zY(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}]),e}();Mu(E2,"EPS",1e-4);var tp=function(t){var n=Object.keys(t).reduce(function(r,i){return jn(jn({},r),{},Mu({},i,E2.create(t[i])))},{});return jn(jn({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return uY(i,function(l,u){return n[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return P2(i,function(a,o){return n[o].isInRange(a)})}})};function WY(e){return(e%180+180)%180}var YY=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=WY(i),o=a*Math.PI/180,s=Math.atan(r/n),l=o>s&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function dV(e,t){return M2(e,t+1)}function hV(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,d=function(){var g=r==null?void 0:r[l];if(g===void 0)return{v:M2(r,u)};var v=l,b,O=function(){return b===void 0&&(b=n(g,v)),b},C=g.coordinate,k=l===0||Nl(e,C,O,f,s);k||(l=0,f=o,u+=1),k&&(f=C+e*(O()/2+i),l+=u)},h;u<=a.length;)if(h=d(),h)return h.v;return[]}function Io(e){"@babel/helpers - typeof";return Io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Io(e)}function hg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t0?m.coordinate-b*e:m.coordinate})}else a[h]=m=Nt(Nt({},m),{},{tickCoord:m.coordinate});var O=Nl(e,m.tickCoord,v,s,l);O&&(l=m.tickCoord-e*(v()/2+i),a[h]=Nt(Nt({},m),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function vV(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=r[s-1],d=n(f,s-1),h=e*(f.coordinate+e*d/2-u);o[s-1]=f=Nt(Nt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var m=Nl(e,f.tickCoord,function(){return d},l,u);m&&(u=f.tickCoord-e*(d/2+i),o[s-1]=Nt(Nt({},f),{},{isShow:!0}))}for(var g=a?s-1:s,v=function(C){var k=o[C],P,_=function(){return P===void 0&&(P=n(k,C)),P};if(C===0){var w=e*(k.coordinate-e*_()/2-l);o[C]=k=Nt(Nt({},k),{},{tickCoord:w<0?k.coordinate-w*e:k.coordinate})}else o[C]=k=Nt(Nt({},k),{},{tickCoord:k.coordinate});var j=Nl(e,k.tickCoord,_,l,u);j&&(l=k.tickCoord+e*(_()/2+i),o[C]=Nt(Nt({},k),{},{isShow:!0}))},b=0;b=2?Mn(i[1].coordinate-i[0].coordinate):1,O=fV(a,b,m);return l==="equidistantPreserveStart"?hV(b,O,v,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=vV(b,O,v,i,o,l==="preserveStartEnd"):h=gV(b,O,v,i,o),h.filter(function(C){return C.isShow}))}var xV=["viewBox"],bV=["viewBox"],wV=["ticks"];function Vi(e){"@babel/helpers - typeof";return Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vi(e)}function _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function _V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mg(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rl(e)}function rp(e,t,n){return t=$2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $2(e){var t=TV(e,"string");return Vi(t)==="symbol"?t:String(t)}function TV(e,t){if(Vi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ya=function(e){kV(n,e);var t=CV(n);function n(r){var i;return _V(this,n),i=t.call(this,r),i.state={fontSize:"",letterSpacing:""},i}return OV(n,[{key:"shouldComponentUpdate",value:function(i,a){var o=i.viewBox,s=Jc(i,xV),l=this.props,u=l.viewBox,f=Jc(l,bV);return!Pi(o,u)||!Pi(s,f)||!Pi(a,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var a=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var a=this.props,o=a.x,s=a.y,l=a.width,u=a.height,f=a.orientation,d=a.tickSize,h=a.mirror,m=a.tickMargin,g,v,b,O,C,k,P=h?-1:1,_=i.tickSize||d,w=le(i.tickCoord)?i.tickCoord:i.coordinate;switch(f){case"top":g=v=i.coordinate,O=s+ +!h*u,b=O-P*_,k=b-P*m,C=w;break;case"left":b=O=i.coordinate,v=o+ +!h*l,g=v-P*_,C=g-P*m,k=w;break;case"right":b=O=i.coordinate,v=o+ +h*l,g=v+P*_,C=g+P*m,k=w;break;default:g=v=i.coordinate,O=s+ +h*u,b=O+P*_,k=b+P*m,C=w;break}return{line:{x1:g,y1:b,x2:v,y2:O},tick:{x:C,y:k}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s;switch(a){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,a=i.orientation,o=i.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,f=i.mirror,d=i.axisLine,h=Ht(Ht(Ht({},Le(this.props)),Le(d)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!f||u==="bottom"&&f);h=Ht(Ht({},h),{},{x1:a,y1:o+m*l,x2:a+s,y2:o+m*l})}else{var g=+(u==="left"&&!f||u==="right"&&f);h=Ht(Ht({},h),{},{x1:a+g*s,y1:o,x2:a+g*s,y2:o+l})}return U.createElement("line",_i({},h,{className:Ze("recharts-cartesian-axis-line",bn(d,"className"))}))}},{key:"renderTicks",value:function(i,a,o){var s=this,l=this.props,u=l.tickLine,f=l.stroke,d=l.tick,h=l.tickFormatter,m=l.unit,g=wd(Ht(Ht({},this.props),{},{ticks:i}),a,o),v=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),O=Le(this.props),C=Le(d),k=Ht(Ht({},O),{},{fill:"none"},Le(u)),P=g.map(function(_,w){var j=s.getTickLineCoord(_),E=j.line,I=j.tick,z=Ht(Ht(Ht(Ht({textAnchor:v,verticalAnchor:b},O),{},{stroke:"none",fill:f},C),I),{},{index:w,payload:_,visibleTicksCount:g.length,tickFormatter:h});return U.createElement(dt,_i({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},Ka(s.props,_,w)),u&&U.createElement("line",_i({},k,E,{className:Ze("recharts-cartesian-axis-tick-line",bn(u,"className"))})),d&&n.renderTickItem(d,z,"".concat(Te(h)?h(_.value,w):_.value).concat(m||"")))});return U.createElement("g",{className:"recharts-cartesian-axis-ticks"},P)}},{key:"render",value:function(){var i=this,a=this.props,o=a.axisLine,s=a.width,l=a.height,u=a.ticksGenerator,f=a.className,d=a.hide;if(d)return null;var h=this.props,m=h.ticks,g=Jc(h,wV),v=m;return Te(u)&&(v=m&&m.length>0?u(this.props):u(g)),s<=0||l<=0||!v||!v.length?null:U.createElement(dt,{className:Ze("recharts-cartesian-axis",f),ref:function(O){i.layerReference=O}},o&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Rt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,a,o){var s;return U.isValidElement(i)?s=U.cloneElement(i,a):Te(i)?s=i(a):s=U.createElement(hl,_i({},a,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),n}(B.Component);rp(Ya,"displayName","CartesianAxis");rp(Ya,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var EV=["x1","y1","x2","y2","key"],MV=["offset"];function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(e)}function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $V(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function gg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bl(e)}function ip(e,t,n){return t=I2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I2(e){var t=FV(e,"string");return Gi(t)==="symbol"?t:String(t)}function FV(e,t){if(Gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ap=function(e){LV(n,e);var t=NV(n);function n(){return IV(this,n),t.apply(this,arguments)}return DV(n,[{key:"renderHorizontal",value:function(i){var a=this,o=this.props,s=o.x,l=o.width,u=o.horizontal;if(!i||!i.length)return null;var f=i.map(function(d,h){var m=Sr(Sr({},a.props),{},{x1:s,y1:d,x2:s+l,y2:d,key:"line-".concat(h),index:h});return n.renderLineItem(u,m)});return U.createElement("g",{className:"recharts-cartesian-grid-horizontal"},f)}},{key:"renderVertical",value:function(i){var a=this,o=this.props,s=o.y,l=o.height,u=o.vertical;if(!i||!i.length)return null;var f=i.map(function(d,h){var m=Sr(Sr({},a.props),{},{x1:d,y1:s,x2:d,y2:s+l,key:"line-".concat(h),index:h});return n.renderLineItem(u,m)});return U.createElement("g",{className:"recharts-cartesian-grid-vertical"},f)}},{key:"renderVerticalStripes",value:function(i){var a=this.props.verticalFill;if(!a||!a.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,f=o.width,d=o.height,h=i.map(function(g){return Math.round(g+l-l)}).sort(function(g,v){return g-v});l!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],O=b?l+f-g:h[v+1]-g;if(O<=0)return null;var C=v%a.length;return U.createElement("rect",{key:"react-".concat(v),x:g,y:u,width:O,height:d,stroke:"none",fill:a[C],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}},{key:"renderHorizontalStripes",value:function(i){var a=this.props.horizontalFill;if(!a||!a.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,u=o.y,f=o.width,d=o.height,h=i.map(function(g){return Math.round(g+u-u)}).sort(function(g,v){return g-v});u!==h[0]&&h.unshift(0);var m=h.map(function(g,v){var b=!h[v+1],O=b?u+d-g:h[v+1]-g;if(O<=0)return null;var C=v%a.length;return U.createElement("rect",{key:"react-".concat(v),y:g,x:l,height:O,width:f,stroke:"none",fill:a[C],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}},{key:"renderBackground",value:function(){var i=this.props.fill;if(!i||i==="none")return null;var a=this.props,o=a.fillOpacity,s=a.x,l=a.y,u=a.width,f=a.height;return U.createElement("rect",{x:s,y:l,width:u,height:f,stroke:"none",fill:i,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.horizontal,f=i.vertical,d=i.horizontalCoordinatesGenerator,h=i.verticalCoordinatesGenerator,m=i.xAxis,g=i.yAxis,v=i.offset,b=i.chartWidth,O=i.chartHeight,C=i.syncWithTicks,k=i.horizontalValues,P=i.verticalValues;if(!le(s)||s<=0||!le(l)||l<=0||!le(a)||a!==+a||!le(o)||o!==+o)return null;var _=this.props,w=_.horizontalPoints,j=_.verticalPoints;if((!w||!w.length)&&Te(d)){var E=k&&k.length;w=d({yAxis:g?Sr(Sr({},g),{},{ticks:E?k:g.ticks}):void 0,width:b,height:O,offset:v},E?!0:C)}if((!j||!j.length)&&Te(h)){var I=P&&P.length;j=h({xAxis:m?Sr(Sr({},m),{},{ticks:I?P:m.ticks}):void 0,width:b,height:O,offset:v},I?!0:C)}return U.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),u&&this.renderHorizontal(w),f&&this.renderVertical(j),u&&this.renderHorizontalStripes(w),f&&this.renderVerticalStripes(j))}}],[{key:"renderLineItem",value:function(i,a){var o;if(U.isValidElement(i))o=U.cloneElement(i,a);else if(Te(i))o=i(a);else{var s=a.x1,l=a.y1,u=a.x2,f=a.y2,d=a.key,h=yg(a,EV),m=Le(h);m.offset;var g=yg(m,MV);o=U.createElement("line",_d({},g,{x1:s,y1:l,x2:u,y2:f,fill:"none",key:d}))}return o}}]),n}(B.PureComponent);ip(ap,"displayName","CartesianGrid");ip(ap,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var $u=function(){return null};$u.displayName="ZAxis";$u.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var HV=["option","isActive"];function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function YV(e){var t=e.option,n=e.isActive,r=UV(e,HV);return typeof t=="string"?U.createElement(pd,Va({option:U.createElement(mu,Va({type:t},r)),isActive:n,shapeType:"symbols"},r)):U.createElement(pd,Va({option:t,isActive:n,shapeType:"symbols"},r))}function qi(e){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qi(e)}function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zl(e)}function Pr(e,t,n){return t=D2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D2(e){var t=JV(e,"string");return qi(t)==="symbol"?t:String(t)}function JV(e,t){if(qi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qo=function(e){qV(n,e);var t=KV(n);function n(){var r;VV(this,n);for(var i=arguments.length,a=new Array(i),o=0;o-1?i[a?t[o]:o]:void 0}}var rG=nG,iG=O2;function aG(e){var t=iG(e),n=t%1;return t===t?n?t-n:t:0}var oG=aG,sG=Qx,lG=$r,uG=oG,cG=Math.max;function fG(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:uG(n);return i<0&&(i=cG(r+i,0)),sG(e,lG(t),i)}var dG=fG,hG=rG,pG=dG,mG=hG(pG),yG=mG;const gG=st(yG);var vG="Invariant failed";function xG(e,t){if(!e)throw new Error(vG)}function L2(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=It(t,n,r,i),s=It(t,n,r,a);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function wg(e){return _G(e)||SG(e)||wG(e)||bG()}function bG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wG(e,t){if(e){if(typeof e=="string")return Cd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cd(e,t)}}function SG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _G(e){if(Array.isArray(e))return Cd(e)}function Cd(e,t){(t==null||t>e.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 RG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function BG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kg(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fl(e)}function Xi(e){return GG(e)||VG(e)||B2(e)||YG()}function YG(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B2(e,t){if(e){if(typeof e=="string")return jd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jd(e,t)}}function VG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GG(e){if(Array.isArray(e))return jd(e)}function jd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:t&&t.length&&le(i)&&le(a)?t.slice(i,a+1):[]};function H2(e){return e==="number"?[0,"auto"]:void 0}var U2=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Lu(n,t);return r<0||!a||!a.length||r>=s.length?null:a.reduce(function(l,u){var f,d=u.props.hide;if(d)return l;var h=(f=u.props.data)!==null&&f!==void 0?f:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var g=h===void 0?s:h;m=Xs(g,o.dataKey,i)}else m=h&&h[r]||s[r];return m?[].concat(Xi(l),[x2(u,m)]):l},[])},Pg=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=ZG(a,r),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=GF(o,s,u,l);if(f>=0&&u){var d=u[f]&&u[f].value,h=U2(t,n,f,d),m=JG(r,s,f,a);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:m}}return null},QG=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,m=g2(f,a);return r.reduce(function(g,v){var b,O=v.props,C=O.type,k=O.dataKey,P=O.allowDataOverflow,_=O.allowDuplicatedCategory,w=O.scale,j=O.ticks,E=O.includeHidden,I=v.props[o];if(g[I])return g;var z=Lu(t.data,{graphicalItems:i.filter(function(ue){return ue.props[o]===I}),dataStartIndex:l,dataEndIndex:u}),M=z.length,D,W,Y;TG(v.props.domain,P,C)&&(D=od(v.props.domain,null,P),m&&(C==="number"||w!=="auto")&&(Y=Wa(z,k,"category")));var V=H2(C);if(!D||D.length===0){var X,Z=(X=v.props.domain)!==null&&X!==void 0?X:V;if(k){if(D=Wa(z,k,C),C==="category"&&m){var G=uA(D);_&&G?(W=D,D=Ml(0,M)):_||(D=Oy(Z,D,v).reduce(function(ue,$){return ue.indexOf($)>=0?ue:[].concat(Xi(ue),[$])},[]))}else if(C==="category")_?D=D.filter(function(ue){return ue!==""&&!Ee(ue)}):D=Oy(Z,D,v).reduce(function(ue,$){return ue.indexOf($)>=0||$===""||Ee($)?ue:[].concat(Xi(ue),[$])},[]);else if(C==="number"){var Q=JF(z,i.filter(function(ue){return ue.props[o]===I&&(E||!ue.props.hide)}),k,a,f);Q&&(D=Q)}m&&(C==="number"||w!=="auto")&&(Y=Wa(z,k,"category"))}else m?D=Ml(0,M):s&&s[I]&&s[I].hasStack&&C==="number"?D=h==="expand"?[0,1]:v2(s[I].stackGroups,l,u):D=y2(z,i.filter(function(ue){return ue.props[o]===I&&(E||!ue.props.hide)}),C,f,!0);if(C==="number")D=Pd(d,D,I,a,j),Z&&(D=od(Z,D,P));else if(C==="category"&&Z){var T=Z,pe=D.every(function(ue){return T.indexOf(ue)>=0});pe&&(D=T)}}return J(J({},g),{},ye({},I,J(J({},v.props),{},{axisType:a,domain:D,categoricalDomain:Y,duplicateDomain:W,originalDomain:(b=v.props.domain)!==null&&b!==void 0?b:V,isCategorical:m,layout:f})))},{})},eq=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=Lu(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),m=h.length,g=g2(f,a),v=-1;return r.reduce(function(b,O){var C=O.props[o],k=H2("number");if(!b[C]){v++;var P;return g?P=Ml(0,m):s&&s[C]&&s[C].hasStack?(P=v2(s[C].stackGroups,l,u),P=Pd(d,P,C,a)):(P=od(k,y2(h,r.filter(function(_){return _.props[o]===C&&!_.props.hide}),"number",f),i.defaultProps.allowDataOverflow),P=Pd(d,P,C,a)),J(J({},b),{},ye({},C,J(J({axisType:a},i.defaultProps),{},{hide:!0,orientation:bn(KG,"".concat(a,".").concat(v%2),null),domain:P,originalDomain:k,isCategorical:g,layout:f})))}return b},{})},tq=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,s=n.stackGroups,l=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(i,"Id"),h=un(f,a),m={};return h&&h.length?m=QG(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(m=eq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),m},nq=function(t){var n=_r(t),r=Or(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Oh(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Cl(n,r)}},Ag=function(t){var n=t.children,r=t.defaultShowTooltip,i=er(n,Ao),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},rq=function(t){return!t||!t.length?!1:t.some(function(n){var r=rr(n&&n.type);return r&&r.indexOf("Bar")>=0})},jg=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},iq=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=r.width,f=r.height,d=r.children,h=r.margin||{},m=er(d,Ao),g=er(d,Ja),v=Object.keys(l).reduce(function(_,w){var j=l[w],E=j.orientation;return!j.mirror&&!j.hide?J(J({},_),{},ye({},E,_[E]+j.width)):_},{left:h.left||0,right:h.right||0}),b=Object.keys(o).reduce(function(_,w){var j=o[w],E=j.orientation;return!j.mirror&&!j.hide?J(J({},_),{},ye({},E,bn(_,"".concat(E))+j.height)):_},{top:h.top||0,bottom:h.bottom||0}),O=J(J({},b),v),C=O.bottom;m&&(O.bottom+=m.props.height||Ao.defaultProps.height),g&&n&&(O=XF(O,i,r,n));var k=u-O.left-O.right,P=f-O.top-O.bottom;return J(J({brushBottom:C},O),{},{width:Math.max(k,0),height:Math.max(P,0)})},aq=function(t){var n,r=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,u=t.axisComponents,f=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,m=function(b,O){var C=O.graphicalItems,k=O.stackGroups,P=O.offset,_=O.updateId,w=O.dataStartIndex,j=O.dataEndIndex,E=b.barSize,I=b.layout,z=b.barGap,M=b.barCategoryGap,D=b.maxBarSize,W=jg(I),Y=W.numericAxisName,V=W.cateAxisName,X=rq(C),Z=X&&qF({barSize:E,stackGroups:k}),G=[];return C.forEach(function(Q,T){var pe=Lu(b.data,{graphicalItems:[Q],dataStartIndex:w,dataEndIndex:j}),ue=Q.props,$=ue.dataKey,_e=ue.maxBarSize,te=Q.props["".concat(Y,"Id")],ge=Q.props["".concat(V,"Id")],Ye={},Me=u.reduce(function(Ne,it){var tn,Cn=O["".concat(it.axisType,"Map")],R=Q.props["".concat(it.axisType,"Id")];Cn&&Cn[R]||it.axisType==="zAxis"||xG(!1);var q=Cn[R];return J(J({},Ne),{},(tn={},ye(tn,it.axisType,q),ye(tn,"".concat(it.axisType,"Ticks"),Or(q)),tn))},Ye),ae=Me[V],de=Me["".concat(V,"Ticks")],ve=k&&k[te]&&k[te].hasStack&&cH(Q,k[te].stackGroups),ee=rr(Q.type).indexOf("Bar")>=0,Ae=Cl(ae,de),he=[];if(ee){var xe,He,rt=Ee(_e)?D:_e,ft=(xe=(He=Cl(ae,de,!0))!==null&&He!==void 0?He:rt)!==null&&xe!==void 0?xe:0;he=KF({barGap:z,barCategoryGap:M,bandSize:ft!==Ae?ft:Ae,sizeList:Z[ge],maxBarSize:rt}),ft!==Ae&&(he=he.map(function(Ne){return J(J({},Ne),{},{position:J(J({},Ne.position),{},{offset:Ne.position.offset-ft/2})})}))}var en=Q&&Q.type&&Q.type.getComposedData;if(en){var Ue;G.push({props:J(J({},en(J(J({},Me),{},{displayedData:pe,props:b,dataKey:$,item:Q,bandSize:Ae,barPosition:he,offset:P,stackedData:ve,layout:I,dataStartIndex:w,dataEndIndex:j}))),{},(Ue={key:Q.key||"item-".concat(T)},ye(Ue,Y,Me[Y]),ye(Ue,V,Me[V]),ye(Ue,"animationId",_),Ue)),childIndex:wA(Q,b.children),item:Q})}}),G},g=function(b,O){var C=b.props,k=b.dataStartIndex,P=b.dataEndIndex,_=b.updateId;if(!a0({props:C}))return null;var w=C.children,j=C.layout,E=C.stackOffset,I=C.data,z=C.reverseStackOrder,M=jg(j),D=M.numericAxisName,W=M.cateAxisName,Y=un(w,i),V=sH(I,Y,"".concat(D,"Id"),"".concat(W,"Id"),E,z),X=u.reduce(function(pe,ue){var $="".concat(ue.axisType,"Map");return J(J({},pe),{},ye({},$,tq(C,J(J({},ue),{},{graphicalItems:Y,stackGroups:ue.axisType===D&&V,dataStartIndex:k,dataEndIndex:P}))))},{}),Z=iq(J(J({},X),{},{props:C,graphicalItems:Y}),O==null?void 0:O.legendBBox);Object.keys(X).forEach(function(pe){X[pe]=d(C,X[pe],Z,pe.replace("Map",""),r)});var G=X["".concat(W,"Map")],Q=nq(G),T=m(C,J(J({},X),{},{dataStartIndex:k,dataEndIndex:P,updateId:_,graphicalItems:Y,stackGroups:V,offset:Z}));return J(J({formattedGraphicalItems:T,graphicalItems:Y,offset:Z,stackGroups:V},Q),X)};return n=function(v){FG(O,v);var b=HG(O);function O(C){var k,P,_;return BG(this,O),_=b.call(this,C),ye(Pe(_),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ye(Pe(_),"accessibilityManager",new jG),ye(Pe(_),"handleLegendBBoxUpdate",function(w){if(w){var j=_.state,E=j.dataStartIndex,I=j.dataEndIndex,z=j.updateId;_.setState(J({legendBBox:w},g({props:_.props,dataStartIndex:E,dataEndIndex:I,updateId:z},J(J({},_.state),{},{legendBBox:w}))))}}),ye(Pe(_),"handleReceiveSyncEvent",function(w,j,E){if(_.props.syncId===w){if(E===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(j)}}),ye(Pe(_),"handleBrushChange",function(w){var j=w.startIndex,E=w.endIndex;if(j!==_.state.dataStartIndex||E!==_.state.dataEndIndex){var I=_.state.updateId;_.setState(function(){return J({dataStartIndex:j,dataEndIndex:E},g({props:_.props,dataStartIndex:j,dataEndIndex:E,updateId:I},_.state))}),_.triggerSyncEvent({dataStartIndex:j,dataEndIndex:E})}}),ye(Pe(_),"handleMouseEnter",function(w){var j=_.getMouseInfo(w);if(j){var E=J(J({},j),{},{isTooltipActive:!0});_.setState(E),_.triggerSyncEvent(E);var I=_.props.onMouseEnter;Te(I)&&I(E,w)}}),ye(Pe(_),"triggeredAfterMouseMove",function(w){var j=_.getMouseInfo(w),E=j?J(J({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState(E),_.triggerSyncEvent(E);var I=_.props.onMouseMove;Te(I)&&I(E,w)}),ye(Pe(_),"handleItemMouseEnter",function(w){_.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),ye(Pe(_),"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),ye(Pe(_),"handleMouseMove",function(w){w.persist(),_.throttleTriggeredAfterMouseMove(w)}),ye(Pe(_),"handleMouseLeave",function(w){var j={isTooltipActive:!1};_.setState(j),_.triggerSyncEvent(j);var E=_.props.onMouseLeave;Te(E)&&E(j,w)}),ye(Pe(_),"handleOuterEvent",function(w){var j=bA(w),E=bn(_.props,"".concat(j));if(j&&Te(E)){var I,z;/.*touch.*/i.test(j)?z=_.getMouseInfo(w.changedTouches[0]):z=_.getMouseInfo(w),E((I=z)!==null&&I!==void 0?I:{},w)}}),ye(Pe(_),"handleClick",function(w){var j=_.getMouseInfo(w);if(j){var E=J(J({},j),{},{isTooltipActive:!0});_.setState(E),_.triggerSyncEvent(E);var I=_.props.onClick;Te(I)&&I(E,w)}}),ye(Pe(_),"handleMouseDown",function(w){var j=_.props.onMouseDown;if(Te(j)){var E=_.getMouseInfo(w);j(E,w)}}),ye(Pe(_),"handleMouseUp",function(w){var j=_.props.onMouseUp;if(Te(j)){var E=_.getMouseInfo(w);j(E,w)}}),ye(Pe(_),"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),ye(Pe(_),"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&_.handleMouseDown(w.changedTouches[0])}),ye(Pe(_),"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&_.handleMouseUp(w.changedTouches[0])}),ye(Pe(_),"triggerSyncEvent",function(w){_.props.syncId!==void 0&&Qc.emit(ef,_.props.syncId,w,_.eventEmitterSymbol)}),ye(Pe(_),"applySyncEvent",function(w){var j=_.props,E=j.layout,I=j.syncMethod,z=_.state.updateId,M=w.dataStartIndex,D=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)_.setState(J({dataStartIndex:M,dataEndIndex:D},g({props:_.props,dataStartIndex:M,dataEndIndex:D,updateId:z},_.state)));else if(w.activeTooltipIndex!==void 0){var W=w.chartX,Y=w.chartY,V=w.activeTooltipIndex,X=_.state,Z=X.offset,G=X.tooltipTicks;if(!Z)return;if(typeof I=="function")V=I(G,w);else if(I==="value"){V=-1;for(var Q=0;Q=0){var ve,ee;if(W.dataKey&&!W.allowDuplicatedCategory){var Ae=typeof W.dataKey=="function"?de:"payload.".concat(W.dataKey.toString());ve=Xs(Q,Ae,V),ee=T&&pe&&Xs(pe,Ae,V)}else ve=Q==null?void 0:Q[Y],ee=T&&pe&&pe[Y];if(ge||te){var he=w.props.activeIndex!==void 0?w.props.activeIndex:Y;return[B.cloneElement(w,J(J(J({},I.props),Me),{},{activeIndex:he})),null,null]}if(!Ee(ve))return[ae].concat(Xi(_.renderActivePoints({item:I,activePoint:ve,basePoint:ee,childIndex:Y,isRange:T})))}else{var xe,He=(xe=_.getItemByXY(_.state.activeCoordinate))!==null&&xe!==void 0?xe:{graphicalItem:ae},rt=He.graphicalItem,ft=rt.item,en=ft===void 0?w:ft,Ue=rt.childIndex,Ne=J(J(J({},I.props),Me),{},{activeIndex:Ue});return[B.cloneElement(en,Ne),null,null]}return T?[ae,null,null]:[ae,null]}),ye(Pe(_),"renderCustomized",function(w,j,E){return B.cloneElement(w,J(J({key:"recharts-customized-".concat(E)},_.props),_.state))}),ye(Pe(_),"renderMap",{CartesianGrid:{handler:_.renderGrid,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:_.renderReferenceElement},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:_.renderXAxis},YAxis:{handler:_.renderYAxis},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((k=C.id)!==null&&k!==void 0?k:Yo("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=gb(_.triggeredAfterMouseMove,(P=C.throttleDelay)!==null&&P!==void 0?P:1e3/60),_.state={},_}return zG(O,[{key:"componentDidMount",value:function(){var k,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(k=this.props.margin.left)!==null&&k!==void 0?k:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(k,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==k.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==k.margin){var _,w;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var k=er(this.props.children,Gr);if(k&&typeof k.props.shared=="boolean"){var P=k.props.shared?"axis":"item";return l.indexOf(P)>=0?P:o}return o}},{key:"getMouseInfo",value:function(k){if(!this.container)return null;var P=this.container,_=P.getBoundingClientRect(),w=PN(_),j={chartX:Math.round(k.pageX-w.left),chartY:Math.round(k.pageY-w.top)},E=_.width/P.offsetWidth||1,I=this.inRange(j.chartX,j.chartY,E);if(!I)return null;var z=this.state,M=z.xAxisMap,D=z.yAxisMap,W=this.getTooltipEventType();if(W!=="axis"&&M&&D){var Y=_r(M).scale,V=_r(D).scale,X=Y&&Y.invert?Y.invert(j.chartX):null,Z=V&&V.invert?V.invert(j.chartY):null;return J(J({},j),{},{xValue:X,yValue:Z})}var G=Pg(this.state,this.props.data,this.props.layout,I);return G?J(J({},j),G):null}},{key:"inRange",value:function(k,P){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,j=k/_,E=P/_;if(w==="horizontal"||w==="vertical"){var I=this.state.offset,z=j>=I.left&&j<=I.left+I.width&&E>=I.top&&E<=I.top+I.height;return z?{x:j,y:E}:null}var M=this.state,D=M.angleAxisMap,W=M.radiusAxisMap;if(D&&W){var Y=_r(D);return Py({x:j,y:E},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var k=this.props.children,P=this.getTooltipEventType(),_=er(k,Gr),w={};_&&P==="axis"&&(_.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var j=Zs(this.props,this.handleOuterEvent);return J(J({},j),w)}},{key:"addListener",value:function(){Qc.on(ef,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Qc.removeListener(ef,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(k,P,_){for(var w=this.state.formattedGraphicalItems,j=0,E=w.length;jy.jsx(ep,{cx:e,cy:t,fill:L.blueTextAccent,r:2}),lq=()=>{const e=qt(),t=[...(e==null?void 0:e.data)||[]].sort((i,a)=>(i.year||0)-(a.year||0)),n=t.map(i=>i.year).filter(i=>i),r=t.map(i=>i.rate).filter(i=>i);return y.jsx(uq,{direction:"column",px:24,py:16,children:y.jsx(bN,{height:"100%",width:"100%",children:y.jsxs(oq,{margin:{bottom:20,left:20,right:20,top:20},children:[y.jsx(ap,{stroke:"#f5f5f5"}),y.jsx(Iu,{dataKey:"year",domain:[Math.min(...n),Math.max(...n)],label:{fill:L.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:L.white,fontSize:"8px"},type:"number"}),y.jsx(Du,{color:"#000",dataKey:"rate",domain:[Math.min(...r),Math.max(...r)],label:{angle:-90,fill:L.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:L.white,fontSize:"8px"},type:"number"}),y.jsx(Gr,{cursor:{strokeDasharray:"3 3"}}),y.jsx(Qo,{data:t,fill:L.blueTextAccent,line:!0,name:"A scatter",shape:y.jsx(sq,{})})]})})})},uq=H(F)` width: 100%; height: 100%; -`;var U2={},Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});Xi.cssValue=Xi.parseLengthAndUnit=void 0;var uq={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 W2(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return uq[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"})}Xi.parseLengthAndUnit=W2;function cq(e){var t=W2(e);return"".concat(t.value).concat(t.unit)}Xi.cssValue=cq;var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});Lu.createAnimation=void 0;var fq=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var a=i.sheet,o=` +`;var W2={},Zi={};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.cssValue=Zi.parseLengthAndUnit=void 0;var cq={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 Y2(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return cq[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"})}Zi.parseLengthAndUnit=Y2;function fq(e){var t=Y2(e);return"".concat(t.value).concat(t.unit)}Zi.cssValue=fq;var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.createAnimation=void 0;var dq=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var a=i.sheet,o=` @keyframes `.concat(r,` { `).concat(t,` } - `);return a&&a.insertRule(o,0),r};Lu.createAnimation=fq;var Fl=Bt&&Bt.__assign||function(){return Fl=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne&&Vg` +${({disabled:e})=>e&&Gg` cursor: none; opacity: 0.5; `} @@ -1386,11 +1386,11 @@ ${({disabled:e})=>e&&Vg` background: ${({selected:e})=>e?L.gray300:L.gray200}; } } -`,Y2=({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 Q4(i,l),t&&t(e+l)}catch(f){console.error(f)}o(!1)}}return r?e?y.jsx(Tg,{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(G4,{fontSize:12}),y.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:y.jsx("div",{children:y.jsx(Tg,{"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(bq,{color:"#fff",loading:!0,size:10}):y.jsxs(F,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[y.jsx(gv,{style:{color:L.white}}),y.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},ap=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 e8(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(q4,{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; -`,V2=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"notes",children:[y.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1473_73722)",children:y.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),wq=({stateless:e,node:t,searchTerm:n})=>y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(_q,{children:e&&y.jsxs(Sq,{children:[y.jsx("div",{className:"icon",children:y.jsx(V2,{})}),y.jsx("div",{className:"title",children:"Description"})]})}),y.jsx(ht,{children:t!=null&&t.description?$n(t.description,n):"..."})]}),Sq=H(F).attrs({direction:"row",align:"center"})` +`,G2=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"notes",children:[y.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1473_73722)",children:y.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),Sq=({stateless:e,node:t,searchTerm:n})=>y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(Oq,{children:e&&y.jsxs(_q,{children:[y.jsx("div",{className:"icon",children:y.jsx(G2,{})}),y.jsx("div",{className:"title",children:"Description"})]})}),y.jsx(ht,{children:t!=null&&t.description?$n(t.description,n):"..."})]}),_q=H(F).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; color: ${L.GRAY3}; @@ -1407,9 +1407,9 @@ ${({disabled:e})=>e&&Vg` letter-spacing: 1pt; text-transform: uppercase; } -`,_q=H(F).attrs({direction:"row",align:"center",justify:"space-between"})` +`,Oq=H(F).attrs({direction:"row",align:"center",justify:"space-between"})` margin-bottom: 18px; -`,Oq=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"content_copy",children:[y.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1489_75628)",children:y.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),kq=H.span` +`,kq=e=>y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{id:"content_copy",children:[y.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:y.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),y.jsx("g",{mask:"url(#mask0_1489_75628)",children:y.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),Cq=H.span` color: ${L.white}; cursor: pointer; text-transform: uppercase; @@ -1420,7 +1420,7 @@ ${({disabled:e})=>e&&Vg` &:hover { color: ${L.GRAY3}; } -`,Cq=({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 Xp(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 Xp(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(Aq,{children:[e&&y.jsxs(Pq,{children:[y.jsx("div",{className:"icon",children:y.jsx(V2,{})}),y.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?y.jsx(y.Fragment,{children:i?y.jsxs(Eq,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx("div",{className:"icon",children:y.jsx(sv,{})}),y.jsx("div",{className:"text",children:"Copied"})]}):y.jsx(Dt,{endIcon:y.jsx(Oq,{}),onPointerDown:()=>d(),size:"small",variant:"outlined",children:"Copy"})}):y.jsx("div",{}),!e&&y.jsx(jq,{onClick:()=>{r(!1)},children:y.jsx(q4,{fontSize:35})})]}),y.jsxs(Tq,{children:[l?o:`${(g=t==null?void 0:t.text)==null?void 0:g.substring(0,100)}`,y.jsxs(kq,{onClick:h,children:["... ",l?"show less":"more"]})]})]})},Pq=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 Zp(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 Zp(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(K4,{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}; @@ -1437,15 +1437,15 @@ ${({disabled:e})=>e&&Vg` letter-spacing: 1pt; text-transform: uppercase; } -`,Aq=H(F).attrs({direction:"row",align:"center",justify:"space-between"})` +`,jq=H(F).attrs({direction:"row",align:"center",justify:"space-between"})` margin-bottom: 18px; -`,jq=H(F).attrs({})` +`,Tq=H(F).attrs({})` color: ${L.mainBottomIcons}; cursor: pointer; &:hover { color: ${L.lightBlue500}; } -`,Tq=H(F)` +`,Eq=H(F)` color: ${L.white}; whitespace: nowrap; font-family: Barlow; @@ -1454,7 +1454,7 @@ ${({disabled:e})=>e&&Vg` font-style: normal; font-weight: 300; line-height: 22px; -`,Eq=H(F)` +`,Mq=H(F)` color: ${L.SECONDARY_BLUE}; font-family: Barlow; font-size: 13px; @@ -1468,29 +1468,29 @@ ${({disabled:e})=>e&&Vg` .icon { font-size: 12px; } -`,G2=({node:e})=>{const t=qt(),n=At(g=>g.currentSearch),{image_url:r,date:i,boost:a,node_type:o,id:s,show_title:l,episode_title:u,ref_id:f}=e||t||{},[d,h]=B.useState(a||0);if(B.useEffect(()=>{h(a??0)},[a]),!e&&!t)return null;const m=e||t;return y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs(Mq,{children:[m&&o?y.jsx(Iq,{boostCount:d||0,date:i||0,episodeTitle:ji(u),imageUrl:r,node:m,onClick:()=>null,showTitle:l,type:o}):null,y.jsx(tf,{}),y.jsxs($q,{children:[y.jsx(Hd,{amt:d}),y.jsx(Y2,{content:e||t,count:d,refId:f,updateCount:h})]}),y.jsx(tf,{}),y.jsx(Eg,{children:y.jsx(wq,{node:e||t,searchTerm:n,stateless:!0})}),((t==null?void 0:t.text)||(e==null?void 0:e.text))&&y.jsxs(y.Fragment,{children:[y.jsx(tf,{}),y.jsx(Eg,{children:y.jsx(Cq,{node:e||t,stateless:!0},s)})]})]})})},Mq=H(F)` +`,q2=({node:e})=>{const t=qt(),n=At(g=>g.currentSearch),{image_url:r,date:i,boost:a,node_type:o,id:s,show_title:l,episode_title:u,ref_id:f}=e||t||{},[d,h]=B.useState(a||0);if(B.useEffect(()=>{h(a??0)},[a]),!e&&!t)return null;const m=e||t;return y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs($q,{children:[m&&o?y.jsx(Dq,{boostCount:d||0,date:i||0,episodeTitle:Ti(u),imageUrl:r,node:m,onClick:()=>null,showTitle:l,type:o}):null,y.jsx(nf,{}),y.jsxs(Iq,{children:[y.jsx(Ud,{amt:d}),y.jsx(V2,{content:e||t,count:d,refId:f,updateCount:h})]}),y.jsx(nf,{}),y.jsx(Mg,{children:y.jsx(Sq,{node:e||t,searchTerm:n,stateless:!0})}),((t==null?void 0:t.text)||(e==null?void 0:e.text))&&y.jsxs(y.Fragment,{children:[y.jsx(nf,{}),y.jsx(Mg,{children:y.jsx(Pq,{node:e||t,stateless:!0},s)})]})]})})},$q=H(F)` flex: 1; min-height: 100%; flex-direction: column; border-bottom: 1px solid #101317; box-shadow: 0px 5px 6px rgba(0, 0, 0, 0.5); z-index: -1; -`,$q=H(F)` +`,Iq=H(F)` flex-direction: row; justify-content: space-between; padding: 18px 18px 18px; -`,Eg=H(F)` +`,Mg=H(F)` padding: 18px 18px 18px; -`,Iq=H(Ud)` +`,Dq=H(Wd)` & { border-top: none; padding-bottom: 18px; font-size: 16px; } -`,tf=H(ap)` +`,nf=H(op)` margin: auto 0px 2px 0px; opacity: 75%; -`,Dq=H(F)` +`,Lq=H(F)` flex-direction: column; border-bottom: 1px solid #101317; z-index: 0; @@ -1512,7 +1512,7 @@ ${({disabled:e})=>e&&Vg` margin-left: 8px; } } -`,Lq=({selectedNodeShow:e})=>{const t=qt(),n=No(),{type:r}=t||{},i=At(a=>a.currentSearch);return y.jsxs(Dq,{p:20,children:[y.jsx(F,{align:"flex-start",children:r&&y.jsx(ta,{type:r})}),y.jsx(F,{direction:"row",mb:22,mt:22,children:y.jsx(F,{grow:1,shrink:1,children:y.jsx(ht,{className:"episode-title",kind:"heading",children:$n((t==null?void 0:t.episode_title)||"Unknown",i)})})}),e?y.jsxs(F,{className:"show",direction:"row",onClick:()=>n(e),children:[y.jsx(In,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),y.jsx(ht,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},Nq=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:"schedule",children:[y.jsx("mask",{id:"mask0_4051_4016",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_4051_4016)",children:y.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 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.5765 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.0016 21.5Z",fill:"currentColor"})})]})}),Rq="Flow 1",Bq=0,zq=12,Fq=15,Hq={g:"LottieFiles Figma v45"},Uq=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],Wq="5.7.0",Yq=60,Vq=57.6,Gq=0,qq=[],Kq={nm:Rq,ddd:Bq,h:zq,w:Fq,meta:Hq,layers:Uq,v:Wq,fr:Yq,op:Vq,ip:Gq,assets:qq},Xq=()=>{const e=B.useRef(null);return B.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=P4.loadAnimation({container:t,animationData:Kq,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),y.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},Zq=H(F).attrs(()=>({direction:"row"}))` +`,Nq=({selectedNodeShow:e})=>{const t=qt(),n=Ro(),{type:r}=t||{},i=At(a=>a.currentSearch);return y.jsxs(Lq,{p:20,children:[y.jsx(F,{align:"flex-start",children:r&&y.jsx(na,{type:r})}),y.jsx(F,{direction:"row",mb:22,mt:22,children:y.jsx(F,{grow:1,shrink:1,children:y.jsx(ht,{className:"episode-title",kind:"heading",children:$n((t==null?void 0:t.episode_title)||"Unknown",i)})})}),e?y.jsxs(F,{className:"show",direction:"row",onClick:()=>n(e),children:[y.jsx(In,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),y.jsx(ht,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},Rq=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:"schedule",children:[y.jsx("mask",{id:"mask0_4051_4016",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_4051_4016)",children:y.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 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.5765 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.0016 21.5Z",fill:"currentColor"})})]})}),Bq="Flow 1",zq=0,Fq=12,Hq=15,Uq={g:"LottieFiles Figma v45"},Wq=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],Yq="5.7.0",Vq=60,Gq=57.6,qq=0,Kq=[],Xq={nm:Bq,ddd:zq,h:Fq,w:Hq,meta:Uq,layers:Wq,v:Yq,fr:Vq,op:Gq,ip:qq,assets:Kq},Zq=()=>{const e=B.useRef(null);return B.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=A4.loadAnimation({container:t,animationData:Xq,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),y.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},Jq=H(F).attrs(()=>({direction:"row"}))` cursor: pointer; color: ${L.primaryText1}; border-top: 1px solid ${L.black}; @@ -1536,7 +1536,7 @@ ${({disabled:e})=>e&&Vg` color: ${L.white}; } } -`,Jq=({onClick:e,timestamp:t,isSelected:n,setOpenClip:r})=>{const i=n?"blueTextAccent":"placeholderText";return n?(K4,L[i]):(X4,L[i]),y.jsxs(Zq,{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(rv,{className:"play-pause",children:n?y.jsx(Xq,{}):y.jsx(Nq,{})}),!1]}),y.jsxs(Qq,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&y.jsx("span",{className:"timestamp",children:e8(t.timestamp)}),y.jsx("span",{className:"title",children:ji(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(Z4,{})})})]})},Qq=H(F)` +`,Qq=({onClick:e,timestamp:t,isSelected:n,setOpenClip:r})=>{const i=n?"blueTextAccent":"placeholderText";return n?(X4,L[i]):(Z4,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(iv,{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:t8(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(J4,{})})})]})},eK=H(F)` font-size: 13px; color: ${L.white}; font-family: 'Barlow'; @@ -1551,7 +1551,7 @@ ${({disabled:e})=>e&&Vg` .timestamp { color: ${L.GRAY6}; } -`,eK=H(F)` +`,tK=H(F)` overflow: scroll; &::-webkit-scrollbar { @@ -1563,7 +1563,7 @@ ${({disabled:e})=>e&&Vg` width: 1px; height: 4px; } -`,tK=()=>{const e=qt(),t=lv(),[n,r]=B.useState(null),[i,a]=B.useState(null),[o,s,l,u,f]=Yl(g=>[g.playingNode,g.setPlayingNodeLink,g.setPlayingTime,g.setIsSeeking,g.playingTime]),d=B.useMemo(()=>uv((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),h=B.useMemo(()=>t==null?void 0:t.nodes.find(g=>g.node_type==="show"&&g.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),m=B.useCallback(g=>{var b;const v=Qr(((b=g==null?void 0:g.timestamp)==null?void 0:b.split("-")[0])||"00:00:01");(o&&g.link&&(o==null?void 0:o.link)!==g.link||(!o||(o==null?void 0:o.link)!==g.link)&&g.link!==void 0)&&(s(g.link),l(0),u(!0)),l(v),u(!0),a(g)},[o,s,u,a,l]);return B.useEffect(()=>{d!=null&&d.length&&!d.some(g=>g.ref_id===(i==null?void 0:i.ref_id))&&m(d[0])},[d,i,m]),B.useEffect(()=>{if(d!=null&&d.length){const g=d.find(v=>{if(!v.timestamp)return!1;const b=Qr(v.timestamp.split("-")[0]);return Math.abs(b-f)<1});g&&g.ref_id!==(i==null?void 0:i.ref_id)&&a(g)}},[f,d,i]),e?y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs(rK,{children:[n&&y.jsx(iK,{className:"slide-me",direction:"up",in:!!n,children:y.jsxs(nK,{children:[y.jsx(F,{className:"close-info",onClick:()=>r(null),children:y.jsx(ql,{})}),n&&y.jsx(G2,{node:n})]})}),y.jsx(Lq,{selectedNodeShow:h}),!!(d!=null&&d.length)&&y.jsx(eK,{children:y.jsx(F,{pb:20,children:d==null?void 0:d.map((g,v)=>y.jsx(Jq,{isSelected:(i==null?void 0:i.ref_id)===g.ref_id,onClick:()=>m(g),setOpenClip:r,timestamp:g},`${g.episode_title}_${v}`))})})]})}):null},nK=H(F)` +`,nK=()=>{const e=qt(),t=uv(),[n,r]=B.useState(null),[i,a]=B.useState(null),[o,s,l,u,f]=Vl(g=>[g.playingNode,g.setPlayingNodeLink,g.setPlayingTime,g.setIsSeeking,g.playingTime]),d=B.useMemo(()=>cv((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),h=B.useMemo(()=>t==null?void 0:t.nodes.find(g=>g.node_type==="show"&&g.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),m=B.useCallback(g=>{var b;const v=ei(((b=g==null?void 0:g.timestamp)==null?void 0:b.split("-")[0])||"00:00:01");(o&&g.link&&(o==null?void 0:o.link)!==g.link||(!o||(o==null?void 0:o.link)!==g.link)&&g.link!==void 0)&&(s(g.link),l(0),u(!0)),l(v),u(!0),a(g)},[o,s,u,a,l]);return B.useEffect(()=>{d!=null&&d.length&&!d.some(g=>g.ref_id===(i==null?void 0:i.ref_id))&&m(d[0])},[d,i,m]),B.useEffect(()=>{if(d!=null&&d.length){const g=d.find(v=>{if(!v.timestamp)return!1;const b=ei(v.timestamp.split("-")[0]);return Math.abs(b-f)<1});g&&g.ref_id!==(i==null?void 0:i.ref_id)&&a(g)}},[f,d,i]),e?y.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:y.jsxs(iK,{children:[n&&y.jsx(aK,{className:"slide-me",direction:"up",in:!!n,children:y.jsxs(rK,{children:[y.jsx(F,{className:"close-info",onClick:()=>r(null),children:y.jsx(Kl,{})}),n&&y.jsx(q2,{node:n})]})}),y.jsx(Nq,{selectedNodeShow:h}),!!(d!=null&&d.length)&&y.jsx(tK,{children:y.jsx(F,{pb:20,children:d==null?void 0:d.map((g,v)=>y.jsx(Qq,{isSelected:(i==null?void 0:i.ref_id)===g.ref_id,onClick:()=>m(g),setOpenClip:r,timestamp:g},`${g.episode_title}_${v}`))})})]})}):null},rK=H(F)` border-radius: 20px; overflow: hidden; height: 100%; @@ -1576,14 +1576,14 @@ ${({disabled:e})=>e&&Vg` font-size: 20px; cursor: pointer; } -`,rK=H(F)` +`,iK=H(F)` position: relative; flex: 1; min-height: 100%; flex-direction: column; border-bottom: 1px solid #101317; box-shadow: 0px 5px 6px rgba(0, 0, 0, 0.5); -`,iK=H(Ti)` +`,aK=H(Ei)` && { position: sticky; left: 0; @@ -1595,7 +1595,7 @@ ${({disabled:e})=>e&&Vg` background: ${L.BG1}; z-index: 1; } -`,aK=()=>{const e=qt(),t=e==null?void 0:e.name;return y.jsxs(F,{direction:"column",px:24,py:16,children:[y.jsx(In,{"data-testid":"person-image",size:80,src:(e==null?void 0:e.source_link)||"",type:"image"}),y.jsx(F,{py:20,children:y.jsx(ht,{color:"primaryText1",kind:"bigHeading",children:t})})]})},oK=()=>{const{sender_pic:e,sender_alias:t,date:n,message_content:r}=qt()||{};return y.jsxs(F,{direction:"row",children:[y.jsx(uK,{src:e}),y.jsxs(sK,{children:[y.jsxs(F,{align:"flex-end",className:"info",direction:"row",children:[t&&y.jsx("span",{className:"info__name",children:t}),n&&y.jsx("span",{className:"info__date",children:n})]}),r&&y.jsx(lK,{dangerouslySetInnerHTML:{__html:n8(r)}})]})]})},sK=H(F)` +`,oK=()=>{const e=qt(),t=e==null?void 0:e.name;return y.jsxs(F,{direction:"column",px:24,py:16,children:[y.jsx(In,{"data-testid":"person-image",size:80,src:(e==null?void 0:e.source_link)||"",type:"image"}),y.jsx(F,{py:20,children:y.jsx(ht,{color:"primaryText1",kind:"bigHeading",children:t})})]})},sK=()=>{const{sender_pic:e,sender_alias:t,date:n,message_content:r}=qt()||{};return y.jsxs(F,{direction:"row",children:[y.jsx(cK,{src:e}),y.jsxs(lK,{children:[y.jsxs(F,{align:"flex-end",className:"info",direction:"row",children:[t&&y.jsx("span",{className:"info__name",children:t}),n&&y.jsx("span",{className:"info__date",children:n})]}),r&&y.jsx(uK,{dangerouslySetInnerHTML:{__html:r8(r)}})]})]})},lK=H(F)` color: ${L.black}; border-radius: 8px; font-size: 20px; @@ -1612,7 +1612,7 @@ ${({disabled:e})=>e&&Vg` color: ${L.green400}; font-size: 16px; } -`,lK=H.div` +`,uK=H.div` background: ${L.white}; border-radius: 8px; padding: 16px; @@ -1643,12 +1643,12 @@ ${({disabled:e})=>e&&Vg` color: ${L.blueTextAccent}; text-decoration: none; } -`,uK=H.img` +`,cK=H.img` width: 40px; height: 40px; border-radius: 50%; background: green; -`,cK=()=>{const e=qt(),t=(e==null?void 0:e.name)||(e==null?void 0:e.label);return y.jsxs(F,{direction:"row",px:24,py:16,children:[y.jsx(In,{"data-testid":"person-image",size:80,src:(e==null?void 0:e.image_url)||"person_placeholder_img.png",type:"person"}),y.jsx(F,{p:20,children:y.jsx(ht,{color:"primaryText1",kind:"bigHeading",children:t})})]})},fK=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 16",fill:"none",children:y.jsx("g",{children:y.jsx("path",{d:"M3.54126 13.2369C3.36418 13.2369 3.21574 13.177 3.09595 13.0572C2.97616 12.9373 2.91626 12.7888 2.91626 12.6117C2.91626 12.4345 2.97616 12.2861 3.09595 12.1665C3.21574 12.0468 3.36418 11.987 3.54126 11.987H8.54926C8.72634 11.987 8.87478 12.0469 8.99457 12.1667C9.11436 12.2866 9.17426 12.4351 9.17426 12.6122C9.17426 12.7894 9.11436 12.9378 8.99457 13.0575C8.87478 13.1771 8.72634 13.2369 8.54926 13.2369H3.54126ZM3.54126 9.9036C3.36418 9.9036 3.21574 9.84369 3.09595 9.72385C2.97616 9.60401 2.91626 9.45551 2.91626 9.27835C2.91626 9.10119 2.97616 8.95278 3.09595 8.83312C3.21574 8.71347 3.36418 8.65365 3.54126 8.65365H11.8586C12.0356 8.65365 12.1841 8.71356 12.3039 8.8334C12.4237 8.95324 12.4836 9.10174 12.4836 9.2789C12.4836 9.45606 12.4237 9.60447 12.3039 9.72413C12.1841 9.84378 12.0356 9.9036 11.8586 9.9036H3.54126ZM3.54126 6.57027C3.36418 6.57027 3.21574 6.51035 3.09595 6.39052C2.97616 6.27067 2.91626 6.12217 2.91626 5.94502C2.91626 5.76785 2.97616 5.61944 3.09595 5.49979C3.21574 5.38014 3.36418 5.32031 3.54126 5.32031H11.8586C12.0356 5.32031 12.1841 5.38023 12.3039 5.50006C12.4237 5.61991 12.4836 5.76841 12.4836 5.94556C12.4836 6.12273 12.4237 6.27114 12.3039 6.39079C12.1841 6.51044 12.0356 6.57027 11.8586 6.57027H3.54126ZM14.0989 16.6936C14.0348 16.73 13.9721 16.7495 13.9106 16.7521C13.8492 16.7548 13.7864 16.7423 13.7223 16.7145C13.6582 16.6867 13.608 16.6456 13.5717 16.5911C13.5354 16.5366 13.5172 16.4704 13.5172 16.3924V11.9726C13.5172 11.8956 13.5354 11.8283 13.5717 11.7706C13.608 11.7129 13.6582 11.6702 13.7223 11.6424C13.7864 11.6147 13.8492 11.6021 13.9106 11.6048C13.9721 11.6074 14.0348 11.6269 14.0989 11.6633L17.4434 13.8604C17.507 13.8984 17.5514 13.9459 17.5768 14.0029C17.6022 14.06 17.6149 14.1202 17.6149 14.1836C17.6149 14.2469 17.6022 14.3069 17.5768 14.3634C17.5514 14.4198 17.507 14.4669 17.4434 14.5046L14.0989 16.6936Z",fill:"#909BAA"})})}),dK=({node:e,onClick:t})=>{var i,a;const n=Qr(e.timestamp||""),r=Math.ceil(n/60);return y.jsx(hK,{onClick:t,p:20,children:y.jsxs("div",{children:[y.jsxs(F,{align:"flex-start",direction:"row",justify:"flex-start",children:[y.jsx(F,{align:"center",children:y.jsx(In,{size:64,src:(e==null?void 0:e.image_url)||"",type:(e==null?void 0:e.node_type)||"episode"})}),y.jsxs("div",{className:"content",children:[y.jsxs(F,{align:"center",direction:"row",children:[y.jsx(ta,{type:"episode"}),r>0&&y.jsxs("div",{className:"subtitle",children:[r," ",r===1?"min":"mins"]})]}),y.jsx(ht,{className:"title",color:"primaryText1",kind:"regular",children:e.episode_title})]})]}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-end",children:[y.jsxs(ht,{className:"clipText",color:"mainBottomIcons",kind:"regular",children:[((i=e==null?void 0:e.children)==null?void 0:i.length)||0," ",((a=e==null?void 0:e.children)==null?void 0:a.length)===1?"Clip":"Clips"]}),y.jsx(fK,{style:{color:L.white}})]})]})})},hK=H(F).attrs({})` +`,fK=()=>{const e=qt(),t=(e==null?void 0:e.name)||(e==null?void 0:e.label);return y.jsxs(F,{direction:"row",px:24,py:16,children:[y.jsx(In,{"data-testid":"person-image",size:80,src:(e==null?void 0:e.image_url)||"person_placeholder_img.png",type:"person"}),y.jsx(F,{p:20,children:y.jsx(ht,{color:"primaryText1",kind:"bigHeading",children:t})})]})},dK=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 16",fill:"none",children:y.jsx("g",{children:y.jsx("path",{d:"M3.54126 13.2369C3.36418 13.2369 3.21574 13.177 3.09595 13.0572C2.97616 12.9373 2.91626 12.7888 2.91626 12.6117C2.91626 12.4345 2.97616 12.2861 3.09595 12.1665C3.21574 12.0468 3.36418 11.987 3.54126 11.987H8.54926C8.72634 11.987 8.87478 12.0469 8.99457 12.1667C9.11436 12.2866 9.17426 12.4351 9.17426 12.6122C9.17426 12.7894 9.11436 12.9378 8.99457 13.0575C8.87478 13.1771 8.72634 13.2369 8.54926 13.2369H3.54126ZM3.54126 9.9036C3.36418 9.9036 3.21574 9.84369 3.09595 9.72385C2.97616 9.60401 2.91626 9.45551 2.91626 9.27835C2.91626 9.10119 2.97616 8.95278 3.09595 8.83312C3.21574 8.71347 3.36418 8.65365 3.54126 8.65365H11.8586C12.0356 8.65365 12.1841 8.71356 12.3039 8.8334C12.4237 8.95324 12.4836 9.10174 12.4836 9.2789C12.4836 9.45606 12.4237 9.60447 12.3039 9.72413C12.1841 9.84378 12.0356 9.9036 11.8586 9.9036H3.54126ZM3.54126 6.57027C3.36418 6.57027 3.21574 6.51035 3.09595 6.39052C2.97616 6.27067 2.91626 6.12217 2.91626 5.94502C2.91626 5.76785 2.97616 5.61944 3.09595 5.49979C3.21574 5.38014 3.36418 5.32031 3.54126 5.32031H11.8586C12.0356 5.32031 12.1841 5.38023 12.3039 5.50006C12.4237 5.61991 12.4836 5.76841 12.4836 5.94556C12.4836 6.12273 12.4237 6.27114 12.3039 6.39079C12.1841 6.51044 12.0356 6.57027 11.8586 6.57027H3.54126ZM14.0989 16.6936C14.0348 16.73 13.9721 16.7495 13.9106 16.7521C13.8492 16.7548 13.7864 16.7423 13.7223 16.7145C13.6582 16.6867 13.608 16.6456 13.5717 16.5911C13.5354 16.5366 13.5172 16.4704 13.5172 16.3924V11.9726C13.5172 11.8956 13.5354 11.8283 13.5717 11.7706C13.608 11.7129 13.6582 11.6702 13.7223 11.6424C13.7864 11.6147 13.8492 11.6021 13.9106 11.6048C13.9721 11.6074 14.0348 11.6269 14.0989 11.6633L17.4434 13.8604C17.507 13.8984 17.5514 13.9459 17.5768 14.0029C17.6022 14.06 17.6149 14.1202 17.6149 14.1836C17.6149 14.2469 17.6022 14.3069 17.5768 14.3634C17.5514 14.4198 17.507 14.4669 17.4434 14.5046L14.0989 16.6936Z",fill:"#909BAA"})})}),hK=({node:e,onClick:t})=>{var i,a;const n=ei(e.timestamp||""),r=Math.ceil(n/60);return y.jsx(pK,{onClick:t,p:20,children:y.jsxs("div",{children:[y.jsxs(F,{align:"flex-start",direction:"row",justify:"flex-start",children:[y.jsx(F,{align:"center",children:y.jsx(In,{size:64,src:(e==null?void 0:e.image_url)||"",type:(e==null?void 0:e.node_type)||"episode"})}),y.jsxs("div",{className:"content",children:[y.jsxs(F,{align:"center",direction:"row",children:[y.jsx(na,{type:"episode"}),r>0&&y.jsxs("div",{className:"subtitle",children:[r," ",r===1?"min":"mins"]})]}),y.jsx(ht,{className:"title",color:"primaryText1",kind:"regular",children:e.episode_title})]})]}),y.jsxs(F,{align:"center",direction:"row",justify:"flex-end",children:[y.jsxs(ht,{className:"clipText",color:"mainBottomIcons",kind:"regular",children:[((i=e==null?void 0:e.children)==null?void 0:i.length)||0," ",((a=e==null?void 0:e.children)==null?void 0:a.length)===1?"Clip":"Clips"]}),y.jsx(dK,{style:{color:L.white}})]})]})})},pK=H(F).attrs({})` direction: row; cursor: pointer; color: ${L.primaryText1}; @@ -1673,7 +1673,7 @@ ${({disabled:e})=>e&&Vg` font-size: 12px; margin-right: 6px; } -`,pK=H(F)` +`,mK=H(F)` flex: 1; min-height: 100%; flex-direction: column; @@ -1691,13 +1691,13 @@ ${({disabled:e})=>e&&Vg` text-overflow: ellipsis; white-space: nowrap; } -`,mK=H(F)` +`,yK=H(F)` flex-direction: column; border-bottom: 1px solid #101317; z-index: 0; padding: 42px 20px; background-color: #1c1e26; -`,yK=H(ht)` +`,gK=H(ht)` font-size: 20px; font-weight: 700; max-width: 250px; @@ -1709,10 +1709,10 @@ ${({disabled:e})=>e&&Vg` display: -webkit-box; -webkit-line-clamp: 2; margin-bottom: 26px; -`,gK=H.div` +`,vK=H.div` max-height: calc(100vh - 340px); overflow-y: auto; -`,vK=()=>{const e=qt(),t=No(),n=lv(),[r,i]=B.useState([]),a=B.useMemo(()=>{var l;const o=new Set,s={};if((l=e==null?void 0:e.children)!=null&&l.length){e.children.forEach((f,d)=>{var g,v,b,O;const h=uv((n==null?void 0:n.nodes)||[],e)||[],m=n==null?void 0:n.nodes.find(C=>C.ref_id===f);if(m){m.timestamp=(g=h[0])==null?void 0:g.timestamp;const C=(O=(b=(v=h[d])==null?void 0:v.hosts)==null?void 0:b[0])==null?void 0:O.name;C&&o.add(C),s[f]=m,s[f]=m}});const u=Array.from(o);i(u)}return Object.values(s).filter(u=>u.node_type==="episode").sort((u,f)=>(f.weight||0)-(u.weight||0))},[n==null?void 0:n.nodes,e]);return y.jsxs(pK,{children:[y.jsx(mK,{children:y.jsxs(F,{direction:"row",children:[y.jsx(F,{pr:24,children:y.jsx(In,{size:80,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:"show"})}),y.jsx(F,{direction:"column",children:y.jsxs(F,{direction:"column",grow:1,justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(ta,{type:"show"})," ",y.jsxs("div",{className:"subtitle",children:["by ",r.join(", ")||(e==null?void 0:e.show_title)]})]}),y.jsx(yK,{kind:"bigHeading",children:(e==null?void 0:e.show_title)||"Unknown"})]})})]})}),y.jsxs(F,{direction:"column",children:[y.jsx(F,{p:24,children:y.jsx(ht,{className:"relatedHeader",kind:"medium",children:"Related Episodes"})}),y.jsx(gK,{children:a.map(o=>y.jsx(dK,{node:o,onClick:()=>t(o)},o.ref_id))})]})]})},xK=()=>{const e=qt();return y.jsx(F,{align:"center",justify:"center",children:y.jsx(ht,{color:"primaryText1",kind:"hugeHeading",children:e==null?void 0:e.label})})},bK=()=>{const e=qt(),t=e?Wd(e):null,{date:n,boost:r,text:i,name:a,verified:o,image_url:s,twitter_handle:l,ref_id:u}=t||{},f=(t==null?void 0:t.tweet_id)||"",[d,h]=B.useState(r||0),m=At(g=>g.currentSearch);return t&&y.jsxs(y.Fragment,{children:[y.jsxs(F,{direction:"column",p:24,children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx(wK,{children:y.jsx(In,{rounded:!0,size:58,src:s||"",type:"person"})}),y.jsxs(F,{children:[y.jsxs(SK,{align:"center",direction:"row",children:[a,o&&y.jsx("div",{className:"verification",children:y.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),l&&y.jsxs(_K,{children:["@",l]})]})]}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(OK,{"data-testid":"episode-description",children:$n(i||"",m)}),y.jsx(F,{direction:"row",justify:"flex-start",children:!!n&&y.jsx(ti,{children:Lo.unix(n).format("ll")})})]}),y.jsx(F,{align:"stretch",mt:22,children:y.jsx("a",{href:`https://twitter.com/${l}/status/${f}?open=system`,rel:"noopener noreferrer",target:"_blank",children:y.jsx(CK,{endIcon:y.jsx(Tr,{}),children:"View Tweet"})})})]}),y.jsx(kK,{}),y.jsxs(F,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Hd,{amt:d}),y.jsx(Y2,{content:t,count:d,refId:u,updateCount:h})]})]})},wK=H(F)` +`,xK=()=>{const e=qt(),t=Ro(),n=uv(),[r,i]=B.useState([]),a=B.useMemo(()=>{var l;const o=new Set,s={};if((l=e==null?void 0:e.children)!=null&&l.length){e.children.forEach((f,d)=>{var g,v,b,O;const h=cv((n==null?void 0:n.nodes)||[],e)||[],m=n==null?void 0:n.nodes.find(C=>C.ref_id===f);if(m){m.timestamp=(g=h[0])==null?void 0:g.timestamp;const C=(O=(b=(v=h[d])==null?void 0:v.hosts)==null?void 0:b[0])==null?void 0:O.name;C&&o.add(C),s[f]=m,s[f]=m}});const u=Array.from(o);i(u)}return Object.values(s).filter(u=>u.node_type==="episode").sort((u,f)=>(f.weight||0)-(u.weight||0))},[n==null?void 0:n.nodes,e]);return y.jsxs(mK,{children:[y.jsx(yK,{children:y.jsxs(F,{direction:"row",children:[y.jsx(F,{pr:24,children:y.jsx(In,{size:80,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:"show"})}),y.jsx(F,{direction:"column",children:y.jsxs(F,{direction:"column",grow:1,justify:"space-between",children:[y.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[y.jsx(na,{type:"show"})," ",y.jsxs("div",{className:"subtitle",children:["by ",r.join(", ")||(e==null?void 0:e.show_title)]})]}),y.jsx(gK,{kind:"bigHeading",children:(e==null?void 0:e.show_title)||"Unknown"})]})})]})}),y.jsxs(F,{direction:"column",children:[y.jsx(F,{p:24,children:y.jsx(ht,{className:"relatedHeader",kind:"medium",children:"Related Episodes"})}),y.jsx(vK,{children:a.map(o=>y.jsx(hK,{node:o,onClick:()=>t(o)},o.ref_id))})]})]})},bK=()=>{const e=qt();return y.jsx(F,{align:"center",justify:"center",children:y.jsx(ht,{color:"primaryText1",kind:"hugeHeading",children:e==null?void 0:e.label})})},wK=()=>{const e=qt(),t=e?Yd(e):null,{date:n,boost:r,text:i,name:a,verified:o,image_url:s,twitter_handle:l,ref_id:u}=t||{},f=(t==null?void 0:t.tweet_id)||"",[d,h]=B.useState(r||0),m=At(g=>g.currentSearch);return t&&y.jsxs(y.Fragment,{children:[y.jsxs(F,{direction:"column",p:24,children:[y.jsxs(F,{align:"center",direction:"row",pr:16,children:[y.jsx(SK,{children:y.jsx(In,{rounded:!0,size:58,src:s||"",type:"person"})}),y.jsxs(F,{children:[y.jsxs(_K,{align:"center",direction:"row",children:[a,o&&y.jsx("div",{className:"verification",children:y.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),l&&y.jsxs(OK,{children:["@",l]})]})]}),y.jsxs(F,{grow:1,shrink:1,children:[y.jsx(kK,{"data-testid":"episode-description",children:$n(i||"",m)}),y.jsx(F,{direction:"row",justify:"flex-start",children:!!n&&y.jsx(ni,{children:No.unix(n).format("ll")})})]}),y.jsx(F,{align:"stretch",mt:22,children:y.jsx("a",{href:`https://twitter.com/${l}/status/${f}?open=system`,rel:"noopener noreferrer",target:"_blank",children:y.jsx(PK,{endIcon:y.jsx(Er,{}),children:"View Tweet"})})})]}),y.jsx(CK,{}),y.jsxs(F,{direction:"row",justify:"space-between",pt:14,px:24,children:[y.jsx(Ud,{amt:d}),y.jsx(V2,{content:t,count:d,refId:u,updateCount:h})]})]})},SK=H(F)` img { width: 64px; height: 64px; @@ -1720,7 +1720,7 @@ ${({disabled:e})=>e&&Vg` object-fit: cover; } margin-right: 16px; -`,SK=H(F)` +`,_K=H(F)` color: ${L.white}; font-family: Barlow; font-size: 14px; @@ -1731,14 +1731,14 @@ ${({disabled:e})=>e&&Vg` .verification { margin-left: 4px; } -`,_K=H(F)` +`,OK=H(F)` color: ${L.GRAY7}; font-family: Barlow; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; -`,OK=H(F)` +`,kK=H(F)` color: ${L.white}; font-family: Barlow; font-size: 17px; @@ -1751,19 +1751,19 @@ ${({disabled:e})=>e&&Vg` -webkit-box-orient: vertical; overflow: hidden; white-space: normal; -`,kK=H(ap)` +`,CK=H(op)` margin: 0 0 6px 0; opacity: 75%; -`,CK=H(Dt)` +`,PK=H(Dt)` width: 100%; -`,PK=()=>{var f,d,h;const e=qt(),t=B.useRef(null),{currentPlayingAudio:n,setCurrentPlayingAudio:r}=At(m=>m),[i,a]=B.useState(!1);B.useEffect(()=>{const m=t.current,g=()=>{r(null),a(!1)};return m&&m.addEventListener("ended",g),()=>{m&&m.removeEventListener("ended",g)}},[r]);const o=()=>{n!=null&&n.current&&n.current!==t.current&&(n.current.pause(),r(null)),t.current&&(t.current.paused?(t.current.play(),r(t),a(!0)):(t.current.pause(),r(null),a(!1)))};if(!e)return null;const s=!!e.image_url,l=!!((f=e.properties)!=null&&f.audio_EN),u=e.properties||{};return y.jsxs(DK,{children:[s?y.jsx(MK,{children:y.jsx("img",{alt:"img_a11y",onError:m=>{m.currentTarget.src="generic_placeholder_img.png",m.currentTarget.className="default-img"},src:(d=e.properties)==null?void 0:d.image_url})}):null,y.jsxs(TK,{grow:1,justify:"flex-start",pt:s?0:8,shrink:1,children:[y.jsx(F,{ml:24,mt:20,style:{width:"fit-content"},children:y.jsx(ta,{type:e.node_type||""})}),y.jsx(EK,{children:Object.entries(u).filter(([m])=>m!=="media_url"&&m!=="link").map(([m,g])=>y.jsx(jK,{hasAudio:l,isPlaying:i,label:AK(m),togglePlay:o,value:g},m))})]}),l&&((h=e.properties)==null?void 0:h.audio_EN)&&y.jsx(NK,{ref:t,src:e.properties.audio_EN,children:y.jsx("track",{kind:"captions"})})]})},AK=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),jK=({label:e,value:t,hasAudio:n,isPlaying:r,togglePlay:i})=>{const a=t.length>140,o=At(s=>s.currentSearch);return!t||e==="Audio EN"?null:y.jsxs(y.Fragment,{children:[y.jsxs($K,{className:Fn("node-detail",{"node-detail__long":a}),children:[y.jsxs(ht,{className:"node-detail__label",children:[e,e==="Text"&&n&&y.jsx(LK,{onClick:i,children:r?y.jsx(pv,{}):y.jsx(mv,{})})]}),y.jsx(ht,{className:"node-detail__value",children:$n(String(t),o)})]}),y.jsx(IK,{})]})},TK=H(F)` +`,AK=()=>{var f,d,h;const e=qt(),t=B.useRef(null),{currentPlayingAudio:n,setCurrentPlayingAudio:r}=At(m=>m),[i,a]=B.useState(!1);B.useEffect(()=>{const m=t.current,g=()=>{r(null),a(!1)};return m&&m.addEventListener("ended",g),()=>{m&&m.removeEventListener("ended",g)}},[r]);const o=()=>{n!=null&&n.current&&n.current!==t.current&&(n.current.pause(),r(null)),t.current&&(t.current.paused?(t.current.play(),r(t),a(!0)):(t.current.pause(),r(null),a(!1)))};if(!e)return null;const s=!!e.image_url,l=!!((f=e.properties)!=null&&f.audio_EN),u=e.properties||{};return y.jsxs(LK,{children:[s?y.jsx($K,{children:y.jsx("img",{alt:"img_a11y",onError:m=>{m.currentTarget.src="generic_placeholder_img.png",m.currentTarget.className="default-img"},src:(d=e.properties)==null?void 0:d.image_url})}):null,y.jsxs(EK,{grow:1,justify:"flex-start",pt:s?0:8,shrink:1,children:[y.jsx(F,{ml:24,mt:20,style:{width:"fit-content"},children:y.jsx(na,{type:e.node_type||""})}),y.jsx(MK,{children:Object.entries(u).filter(([m])=>m!=="media_url"&&m!=="link").map(([m,g])=>y.jsx(TK,{hasAudio:l,isPlaying:i,label:jK(m),togglePlay:o,value:g},m))})]}),l&&((h=e.properties)==null?void 0:h.audio_EN)&&y.jsx(RK,{ref:t,src:e.properties.audio_EN,children:y.jsx("track",{kind:"captions"})})]})},jK=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),TK=({label:e,value:t,hasAudio:n,isPlaying:r,togglePlay:i})=>{const a=t.length>140,o=At(s=>s.currentSearch);return!t||e==="Audio EN"?null:y.jsxs(y.Fragment,{children:[y.jsxs(IK,{className:Fn("node-detail",{"node-detail__long":a}),children:[y.jsxs(ht,{className:"node-detail__label",children:[e,e==="Text"&&n&&y.jsx(NK,{onClick:i,children:r?y.jsx(mv,{}):y.jsx(yv,{})})]}),y.jsx(ht,{className:"node-detail__value",children:$n(String(t),o)})]}),y.jsx(DK,{})]})},EK=H(F)` overflow: auto; width: 100%; flex-grow: 1; padding-top: 16px; -`,EK=H(F)` - padding: 4px 24px; `,MK=H(F)` + padding: 4px 24px; +`,$K=H(F)` width: 100%; height: 240px; padding-top: 20px; @@ -1784,7 +1784,7 @@ ${({disabled:e})=>e&&Vg` height: 100px; border-radius: 2px; } -`,$K=H(F)` +`,IK=H(F)` width: 100%; display: flex; flex-direction: row; @@ -1812,13 +1812,13 @@ ${({disabled:e})=>e&&Vg` flex-direction: column; } } -`,IK=H(ap)` +`,DK=H(op)` margin: auto 0px 2px 0px; opacity: 0.75; -`,DK=H(F)` +`,LK=H(F)` flex-direction: column; height: 100%; -`,LK=H(Dt)` +`,NK=H(Dt)` &&.MuiButton-root { background-color: ${L.COLLAPSE_BUTTON}; border: none; @@ -1840,9 +1840,9 @@ ${({disabled:e})=>e&&Vg` height: 12px; color: white; } -`,NK=H.audio` +`,RK=H.audio` display: none; -`,RK=()=>{var s,l;const[e,t]=B.useState(!1),n=qt(),r=!!(n!=null&&n.source_link),i=B.useRef(null),a=At(u=>u.currentSearch),o=u=>{u.stopPropagation(),u.currentTarget.blur(),t(!e)};return B.useEffect(()=>{var u,f;e?(u=i.current)==null||u.play():(f=i.current)==null||f.pause()},[e]),y.jsxs(F,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:r?62:0,shrink:1,children:[r&&y.jsxs(BK,{children:[y.jsx(xv,{color:L.GRAY6}),y.jsx(HK,{children:n==null?void 0:n.source_link}),y.jsx(zK,{href:`${n==null?void 0:n.source_link}?open=system`,onClick:u=>u.stopPropagation(),target:"_blank",children:y.jsx(Tr,{})})]}),(s=n==null?void 0:n.audio)!=null&&s.length?y.jsxs(F,{justify:"flex-start",p:12,children:[y.jsx(Dt,{onClick:u=>o(u),startIcon:e?y.jsx(Wl,{}):y.jsx(Rd,{}),children:e?"Pause":"Play"}),y.jsx(UK,{ref:i,src:((l=n.audio[0])==null?void 0:l.link)||"",children:y.jsx("track",{kind:"captions"})})]}):null,y.jsx(FK,{grow:1,justify:"flex-start",p:12,shrink:1,children:y.jsx(ht,{color:"primaryText1",kind:"regular",children:$n((n==null?void 0:n.text)||"",a)})})]})},BK=H(F)` +`,BK=()=>{var s,l;const[e,t]=B.useState(!1),n=qt(),r=!!(n!=null&&n.source_link),i=B.useRef(null),a=At(u=>u.currentSearch),o=u=>{u.stopPropagation(),u.currentTarget.blur(),t(!e)};return B.useEffect(()=>{var u,f;e?(u=i.current)==null||u.play():(f=i.current)==null||f.pause()},[e]),y.jsxs(F,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:r?62:0,shrink:1,children:[r&&y.jsxs(zK,{children:[y.jsx(bv,{color:L.GRAY6}),y.jsx(UK,{children:n==null?void 0:n.source_link}),y.jsx(FK,{href:`${n==null?void 0:n.source_link}?open=system`,onClick:u=>u.stopPropagation(),target:"_blank",children:y.jsx(Er,{})})]}),(s=n==null?void 0:n.audio)!=null&&s.length?y.jsxs(F,{justify:"flex-start",p:12,children:[y.jsx(Dt,{onClick:u=>o(u),startIcon:e?y.jsx(Yl,{}):y.jsx(Bd,{}),children:e?"Pause":"Play"}),y.jsx(WK,{ref:i,src:((l=n.audio[0])==null?void 0:l.link)||"",children:y.jsx("track",{kind:"captions"})})]}):null,y.jsx(HK,{grow:1,justify:"flex-start",p:12,shrink:1,children:y.jsx(ht,{color:"primaryText1",kind:"regular",children:$n((n==null?void 0:n.text)||"",a)})})]})},zK=H(F)` top: 0px; position: absolute; border-radius: 16px 16px 0px 0px; @@ -1863,24 +1863,24 @@ ${({disabled:e})=>e&&Vg` line-height: 19px; color: ${L.GRAY6}; } -`,zK=H.a` +`,FK=H.a` color: ${L.GRAY6}; font-size: 16px; height: 16px; display: flex; gap: 5px; align-items: center; -`,FK=H(F)` +`,HK=H(F)` overflow: auto; -`,HK=H(ht)` +`,UK=H(ht)` max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -`,UK=H.audio` +`,WK=H.audio` height: 0; width: 0; -`,WK=()=>{const e=qt(),{setPlayingNode:t}=Yl(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(cK,{});case"data_series":return y.jsx(sq,{});case"tribe_message":return y.jsx(oK,{});case"Tweet":return y.jsx(bK,{});case"topic":return y.jsx(xK,{});case"show":return y.jsx(vK,{});case"video":case"podcast":case"clip":case"twitter_space":return y.jsx(G2,{});case"document":return y.jsx(RK,{});case"episode":return y.jsx(tK,{},e.ref_id);case"image":return y.jsx(aK,{});default:return y.jsx(PK,{})}},YK=B.memo(WK);var VK=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&&GK(a,n.attrs),n.text&&(a.text=""+n.text);var o="onload"in a?Mg:qK;o(a,r),a.onload||Mg(a,r),i.appendChild(a)};function GK(e,t){for(var n in t)e.setAttribute(n,t[n])}function Mg(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 qK(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var KK=function(t){return XK(t)&&!ZK(t)};function XK(e){return!!e&&typeof e=="object"}function ZK(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||eX(e)}var JK=typeof Symbol=="function"&&Symbol.for,QK=JK?Symbol.for("react.element"):60103;function eX(e){return e.$$typeof===QK}function tX(e){return Array.isArray(e)?[]:{}}function Do(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Zi(tX(e),e,t):e}function nX(e,t,n){return e.concat(t).map(function(r){return Do(r,n)})}function rX(e,t){if(!t.customMerge)return Zi;var n=t.customMerge(e);return typeof n=="function"?n:Zi}function iX(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function $g(e){return Object.keys(e).concat(iX(e))}function q2(e,t){try{return t in e}catch{return!1}}function aX(e,t){return q2(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function oX(e,t,n){var r={};return n.isMergeableObject(e)&&$g(e).forEach(function(i){r[i]=Do(e[i],n)}),$g(t).forEach(function(i){aX(e,i)||(q2(e,i)&&n.isMergeableObject(t[i])?r[i]=rX(i,n)(e[i],t[i],n):r[i]=Do(t[i],n))}),r}function Zi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||nX,n.isMergeableObject=n.isMergeableObject||KK,n.cloneUnlessOtherwiseSpecified=Do;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):oX(e,t,n):Do(t,n)}Zi.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Zi(r,i,n)},{})};var sX=Zi,K2=sX,lX=Object.create,Nu=Object.defineProperty,uX=Object.getOwnPropertyDescriptor,cX=Object.getOwnPropertyNames,fX=Object.getPrototypeOf,dX=Object.prototype.hasOwnProperty,hX=(e,t)=>{for(var n in t)Nu(e,n,{get:t[n],enumerable:!0})},X2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cX(t))!dX.call(e,i)&&i!==n&&Nu(e,i,{get:()=>t[i],enumerable:!(r=uX(t,i))||r.enumerable});return e},op=(e,t,n)=>(n=e!=null?lX(fX(e)):{},X2(t||!e||!e.__esModule?Nu(n,"default",{value:e,enumerable:!0}):n,e)),pX=e=>X2(Nu({},"__esModule",{value:!0}),e),Z2={};hX(Z2,{callPlayer:()=>TX,getConfig:()=>AX,getSDK:()=>PX,isBlobUrl:()=>MX,isMediaStream:()=>EX,lazy:()=>vX,omit:()=>jX,parseEndTime:()=>OX,parseStartTime:()=>_X,queryString:()=>CX,randomString:()=>kX,supportsWebKitPresentationMode:()=>$X});var Ru=pX(Z2),mX=op(B),yX=op(VK),gX=op(K2);const vX=e=>mX.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),xX=/[?&#](?:start|t)=([0-9hms]+)/,bX=/[?&#]end=([0-9hms]+)/,jd=/(\d+)(h|m|s)/g,wX=/^\d+$/;function J2(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(jd))return SX(r);if(wX.test(r))return parseInt(r)}}function SX(e){let t=0,n=jd.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=jd.exec(e)}return t}function _X(e){return J2(e,xX)}function OX(e){return J2(e,bX)}function kX(){return Math.random().toString(36).substr(2,5)}function CX(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function nf(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 gi={},PX=function(t,n,r=null,i=()=>!0,a=yX.default){const o=nf(n);return o&&i(o)?Promise.resolve(o):new Promise((s,l)=>{if(gi[t]){gi[t].push({resolve:s,reject:l});return}gi[t]=[{resolve:s,reject:l}];const u=f=>{gi[t].forEach(d=>d.resolve(f))};if(r){const f=window[r];window[r]=function(){f&&f(),u(nf(n))}}a(t,f=>{f?(gi[t].forEach(d=>d.reject(f)),gi[t]=null):r||u(nf(n))})})};function AX(e,t){return(0,gX.default)(t.config,e.config)}function jX(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 TX(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 EX(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function MX(e){return/^blob:/.test(e)}function $X(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var sp=Object.defineProperty,IX=Object.getOwnPropertyDescriptor,DX=Object.getOwnPropertyNames,LX=Object.prototype.hasOwnProperty,NX=(e,t)=>{for(var n in t)sp(e,n,{get:t[n],enumerable:!0})},RX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of DX(t))!LX.call(e,i)&&i!==n&&sp(e,i,{get:()=>t[i],enumerable:!(r=IX(t,i))||r.enumerable});return e},BX=e=>RX(sp({},"__esModule",{value:!0}),e),Q2={};NX(Q2,{AUDIO_EXTENSIONS:()=>lp,DASH_EXTENSIONS:()=>dw,FLV_EXTENSIONS:()=>hw,HLS_EXTENSIONS:()=>cp,MATCH_URL_DAILYMOTION:()=>lw,MATCH_URL_FACEBOOK:()=>nw,MATCH_URL_FACEBOOK_WATCH:()=>rw,MATCH_URL_KALTURA:()=>fw,MATCH_URL_MIXCLOUD:()=>uw,MATCH_URL_SOUNDCLOUD:()=>ew,MATCH_URL_STREAMABLE:()=>iw,MATCH_URL_TWITCH_CHANNEL:()=>sw,MATCH_URL_TWITCH_VIDEO:()=>ow,MATCH_URL_VIDYARD:()=>cw,MATCH_URL_VIMEO:()=>tw,MATCH_URL_WISTIA:()=>aw,MATCH_URL_YOUTUBE:()=>Td,VIDEO_EXTENSIONS:()=>up,canPlay:()=>FX});var zX=BX(Q2),Ig=Ru;const Td=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ew=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,tw=/vimeo\.com\/(?!progressive_redirect).+/,nw=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,rw=/^https?:\/\/fb\.watch\/.+$/,iw=/streamable\.com\/([a-z0-9]+)$/,aw=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ow=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,sw=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,lw=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,uw=/mixcloud\.com\/([^/]+\/[^/]+)/,cw=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,fw=/^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-_].*)$/,lp=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,up=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,cp=/\.(m3u8)($|\?)/i,dw=/\.(mpd)($|\?)/i,hw=/\.(flv)($|\?)/i,Ed=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&Ed(t)||Ed(t.src))return!0;return!1}return(0,Ig.isMediaStream)(e)||(0,Ig.isBlobUrl)(e)?!0:lp.test(e)||up.test(e)||cp.test(e)||dw.test(e)||hw.test(e)},FX={youtube:e=>e instanceof Array?e.every(t=>Td.test(t)):Td.test(e),soundcloud:e=>ew.test(e)&&!lp.test(e),vimeo:e=>tw.test(e)&&!up.test(e)&&!cp.test(e),facebook:e=>nw.test(e)||rw.test(e),streamable:e=>iw.test(e),wistia:e=>aw.test(e),twitch:e=>ow.test(e)||sw.test(e),dailymotion:e=>lw.test(e),mixcloud:e=>uw.test(e),vidyard:e=>cw.test(e),kaltura:e=>fw.test(e),file:Ed};var fp=Object.defineProperty,HX=Object.getOwnPropertyDescriptor,UX=Object.getOwnPropertyNames,WX=Object.prototype.hasOwnProperty,YX=(e,t)=>{for(var n in t)fp(e,n,{get:t[n],enumerable:!0})},VX=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of UX(t))!WX.call(e,i)&&i!==n&&fp(e,i,{get:()=>t[i],enumerable:!(r=HX(t,i))||r.enumerable});return e},GX=e=>VX(fp({},"__esModule",{value:!0}),e),pw={};YX(pw,{default:()=>KX});var qX=GX(pw),nn=Ru,Xt=zX,KX=[{key:"youtube",name:"YouTube",canPlay:Xt.canPlay.youtube,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./YouTube-c62bab1c.js").then(e=>e.Y),["assets/YouTube-c62bab1c.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./SoundCloud-7fcb0b13.js").then(e=>e.S),["assets/SoundCloud-7fcb0b13.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vimeo-ff6f785f.js").then(e=>e.V),["assets/Vimeo-ff6f785f.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Facebook-f0725fd9.js").then(e=>e.F),["assets/Facebook-f0725fd9.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Streamable-eb269619.js").then(e=>e.S),["assets/Streamable-eb269619.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Wistia-f8cd0254.js").then(e=>e.W),["assets/Wistia-f8cd0254.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Twitch-997a6dd4.js").then(e=>e.T),["assets/Twitch-997a6dd4.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./DailyMotion-c471f5ba.js").then(e=>e.D),["assets/DailyMotion-c471f5ba.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Mixcloud-14342f0f.js").then(e=>e.M),["assets/Mixcloud-14342f0f.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vidyard-1cb28f51.js").then(e=>e.V),["assets/Vidyard-1cb28f51.js","assets/index-20244629.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Kaltura-f277dadd.js").then(e=>e.K),["assets/Kaltura-f277dadd.js","assets/index-20244629.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-4a5e2615.js").then(e=>e.F),["assets/FilePlayer-4a5e2615.js","assets/index-20244629.js","assets/index-a2878e02.css"]))}],Dg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function XX(e,t){return!!(e===t||Dg(e)&&Dg(t))}function ZX(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)Bu(e,n,{get:t[n],enumerable:!0})},yw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sZ(t))!uZ.call(e,i)&&i!==n&&Bu(e,i,{get:()=>t[i],enumerable:!(r=oZ(t,i))||r.enumerable});return e},fZ=(e,t,n)=>(n=e!=null?aZ(lZ(e)):{},yw(t||!e||!e.__esModule?Bu(n,"default",{value:e,enumerable:!0}):n,e)),dZ=e=>yw(Bu({},"__esModule",{value:!0}),e),gw={};cZ(gw,{defaultProps:()=>mZ,propTypes:()=>pZ});var vw=dZ(gw),hZ=fZ(j4);const{string:Ut,bool:Wt,number:vi,array:rf,oneOfType:Ma,shape:pn,object:Yt,func:wt,node:Lg}=hZ.default,pZ={url:Ma([Ut,rf,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:vi,muted:Wt,playbackRate:vi,width:Ma([Ut,vi]),height:Ma([Ut,vi]),style:Yt,progressInterval:vi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:Ma([Wt,Ut,Yt]),playIcon:Lg,previewTabIndex:vi,fallback:Lg,oEmbedUrl:Ut,wrapper:Ma([Ut,wt,pn({render:wt.isRequired})]),config:pn({soundcloud:pn({options:Yt}),youtube:pn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:pn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:pn({params:Yt}),vimeo:pn({playerOptions:Yt,title:Ut}),file:pn({attributes:Yt,tracks:rf,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:pn({options:Yt,playerId:Ut,customControls:rf}),mixcloud:pn({options:Yt}),twitch:pn({options:Yt,playerId:Ut}),vidyard:pn({options:Yt})}),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=()=>{},mZ={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 yZ=Object.create,Qo=Object.defineProperty,gZ=Object.getOwnPropertyDescriptor,vZ=Object.getOwnPropertyNames,xZ=Object.getPrototypeOf,bZ=Object.prototype.hasOwnProperty,wZ=(e,t,n)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SZ=(e,t)=>{for(var n in t)Qo(e,n,{get:t[n],enumerable:!0})},xw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vZ(t))!bZ.call(e,i)&&i!==n&&Qo(e,i,{get:()=>t[i],enumerable:!(r=gZ(t,i))||r.enumerable});return e},bw=(e,t,n)=>(n=e!=null?yZ(xZ(e)):{},xw(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e)),_Z=e=>xw(Qo({},"__esModule",{value:!0}),e),vt=(e,t,n)=>(wZ(e,typeof t!="symbol"?t+"":t,n),n),ww={};SZ(ww,{default:()=>zu});var OZ=_Z(ww),Ng=bw(B),kZ=bw(mw),Sw=vw,CZ=Ru;const PZ=5e3;class zu extends Ng.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,kZ.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!f&&!(0,CZ.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},PZ));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?Ng.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(zu,"displayName","Player");vt(zu,"propTypes",Sw.propTypes);vt(zu,"defaultProps",Sw.defaultProps);var AZ=Object.create,es=Object.defineProperty,jZ=Object.getOwnPropertyDescriptor,TZ=Object.getOwnPropertyNames,EZ=Object.getPrototypeOf,MZ=Object.prototype.hasOwnProperty,$Z=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IZ=(e,t)=>{for(var n in t)es(e,n,{get:t[n],enumerable:!0})},_w=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TZ(t))!MZ.call(e,i)&&i!==n&&es(e,i,{get:()=>t[i],enumerable:!(r=jZ(t,i))||r.enumerable});return e},ts=(e,t,n)=>(n=e!=null?AZ(EZ(e)):{},_w(t||!e||!e.__esModule?es(n,"default",{value:e,enumerable:!0}):n,e)),DZ=e=>_w(es({},"__esModule",{value:!0}),e),gt=(e,t,n)=>($Z(e,typeof t!="symbol"?t+"":t,n),n),Ow={};IZ(Ow,{createReactPlayer:()=>WZ});var LZ=DZ(Ow),bi=ts(B),NZ=ts(K2),af=ts(eZ),Rg=ts(mw),Na=vw,kw=Ru,RZ=ts(OZ);const BZ=(0,kw.lazy)(()=>rn(()=>import("./Preview-15830368.js").then(e=>e.P),["assets/Preview-15830368.js","assets/index-20244629.js","assets/index-a2878e02.css"])),zZ=typeof window<"u"&&window.document,FZ=typeof Bt<"u"&&Bt.window&&Bt.window.document,HZ=Object.keys(Na.propTypes),UZ=zZ||FZ?bi.Suspense:()=>null,$a=[],WZ=(e,t)=>{var n;return n=class extends bi.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,af.default)(r=>{for(const i of[...$a,...e])if(i.canPlay(r))return i;return t||null})),gt(this,"getConfig",(0,af.default)((r,i)=>{const{config:a}=this.props;return NZ.default.all([Na.defaultProps.config,Na.defaultProps.config[i]||{},a,a[i]||{}])})),gt(this,"getAttributes",(0,af.default)(r=>(0,kw.omit)(this.props,HZ))),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 bi.default.createElement(RZ.default,{...this.props,key:i.key,ref:this.references.player,config:a,activePlayer:i.lazyPlayer||i,onReady:this.handleReady})})}shouldComponentUpdate(r,i){return!(0,Rg.default)(this.props,r)||!(0,Rg.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 bi.default.createElement(BZ,{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 bi.default.createElement(l,{ref:d,style:{...i,width:a,height:o},...f},bi.default.createElement(UZ,{fallback:s},u?this.renderPreview(r):this.renderActivePlayer(r)))}},gt(n,"displayName","ReactPlayer"),gt(n,"propTypes",Na.propTypes),gt(n,"defaultProps",Na.defaultProps),gt(n,"addCustomPlayer",r=>{$a.push(r)}),gt(n,"removeCustomPlayers",()=>{$a.length=0}),gt(n,"canPlay",r=>{for(const i of[...$a,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...$a,...e])if(i.canEnablePIP&&i.canEnablePIP(r))return!0;return!1}),n};var YZ=Object.create,Fu=Object.defineProperty,VZ=Object.getOwnPropertyDescriptor,GZ=Object.getOwnPropertyNames,qZ=Object.getPrototypeOf,KZ=Object.prototype.hasOwnProperty,XZ=(e,t)=>{for(var n in t)Fu(e,n,{get:t[n],enumerable:!0})},Cw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of GZ(t))!KZ.call(e,i)&&i!==n&&Fu(e,i,{get:()=>t[i],enumerable:!(r=VZ(t,i))||r.enumerable});return e},ZZ=(e,t,n)=>(n=e!=null?YZ(qZ(e)):{},Cw(t||!e||!e.__esModule?Fu(n,"default",{value:e,enumerable:!0}):n,e)),JZ=e=>Cw(Fu({},"__esModule",{value:!0}),e),Pw={};XZ(Pw,{default:()=>nJ});var QZ=JZ(Pw),Md=ZZ(qX),eJ=LZ;const tJ=Md.default[Md.default.length-1];var nJ=(0,eJ.createReactPlayer)(Md.default,tJ);const rJ=st(QZ),iJ=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"})})]}),aJ=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"})})]}),oJ=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"})})]})}),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_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"})]})]})}),Bg=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}`},lJ=({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,C)=>{const k=Array.isArray(C)?C[0]:C;f(k),o(O,k),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(mJ,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:i,onChange:a,size:"small",value:r}),y.jsxs(uJ,{align:"center",direction:"row",showToolbar:l||t,children:[y.jsx(dJ,{onClick:n,size:"small",children:e?y.jsx(Wl,{}):y.jsx(Rd,{})}),y.jsxs(yJ,{direction:"row",children:[y.jsx("span",{children:Bg(r)}),y.jsx("span",{className:"separator",children:"/"}),y.jsx("span",{className:"duration",children:Bg(i)})]}),y.jsxs(hJ,{direction:"row",px:9,children:[y.jsx(Gl,{className:"volume-slider",max:1,min:0,onChange:v,size:"small",step:.1,value:u}),y.jsx(cJ,{onClick:b,children:d?y.jsx(fJ,{children:y.jsx(sJ,{})}):y.jsx(oJ,{})})]}),y.jsx(pJ,{"data-testid":"fullscreen-button",onClick:s,children:t?y.jsx(iJ,{}):y.jsx(aJ,{})})]})]})},uJ=H(F)` +`,YK=()=>{const e=qt(),{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 Lo(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 Lo(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]=Lo(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]=Lo(t[i],n))}),r}function Ji(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||rX,n.isMergeableObject=n.isMergeableObject||XK,n.cloneUnlessOtherwiseSpecified=Lo;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):sX(e,t,n):Lo(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-a0f30312.js").then(e=>e.Y),["assets/YouTube-a0f30312.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Xt.canPlay.soundcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./SoundCloud-93cb1afb.js").then(e=>e.S),["assets/SoundCloud-93cb1afb.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Xt.canPlay.vimeo,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vimeo-89733b5a.js").then(e=>e.V),["assets/Vimeo-89733b5a.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"facebook",name:"Facebook",canPlay:Xt.canPlay.facebook,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Facebook-420a5948.js").then(e=>e.F),["assets/Facebook-420a5948.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"streamable",name:"Streamable",canPlay:Xt.canPlay.streamable,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Streamable-c4a3f5d1.js").then(e=>e.S),["assets/Streamable-c4a3f5d1.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"wistia",name:"Wistia",canPlay:Xt.canPlay.wistia,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Wistia-d0de90bd.js").then(e=>e.W),["assets/Wistia-d0de90bd.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"twitch",name:"Twitch",canPlay:Xt.canPlay.twitch,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Twitch-dd9fe18d.js").then(e=>e.T),["assets/Twitch-dd9fe18d.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Xt.canPlay.dailymotion,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./DailyMotion-b709b0be.js").then(e=>e.D),["assets/DailyMotion-b709b0be.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Xt.canPlay.mixcloud,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Mixcloud-bd469ed7.js").then(e=>e.M),["assets/Mixcloud-bd469ed7.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Xt.canPlay.vidyard,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Vidyard-1e1084a1.js").then(e=>e.V),["assets/Vidyard-1e1084a1.js","assets/index-931430a1.js","assets/index-a2878e02.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Xt.canPlay.kaltura,lazyPlayer:(0,nn.lazy)(()=>rn(()=>import("./Kaltura-d4541545.js").then(e=>e.K),["assets/Kaltura-d4541545.js","assets/index-931430a1.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-ec8f2106.js").then(e=>e.F),["assets/FilePlayer-ec8f2106.js","assets/index-931430a1.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(T4);const{string:Ut,bool:Wt,number:xi,array:af,oneOfType:$a,shape:pn,object:Yt,func:wt,node:Ng}=pZ.default,mZ={url:$a([Ut,af,Yt]),playing:Wt,loop:Wt,controls:Wt,volume:xi,muted:Wt,playbackRate:xi,width:$a([Ut,xi]),height:$a([Ut,xi]),style:Yt,progressInterval:xi,playsinline:Wt,pip:Wt,stopOnUnmount:Wt,light:$a([Wt,Ut,Yt]),playIcon:Ng,previewTabIndex:xi,fallback:Ng,oEmbedUrl:Ut,wrapper:$a([Ut,wt,pn({render:wt.isRequired})]),config:pn({soundcloud:pn({options:Yt}),youtube:pn({playerVars:Yt,embedOptions:Yt,onUnstarted:wt}),facebook:pn({appId:Ut,version:Ut,playerId:Ut,attributes:Yt}),dailymotion:pn({params:Yt}),vimeo:pn({playerOptions:Yt,title:Ut}),file:pn({attributes:Yt,tracks:af,forceVideo:Wt,forceAudio:Wt,forceHLS:Wt,forceSafariHLS:Wt,forceDisableHls:Wt,forceDASH:Wt,forceFLV:Wt,hlsOptions:Yt,hlsVersion:Ut,dashVersion:Ut,flvVersion:Ut}),wistia:pn({options:Yt,playerId:Ut,customControls:af}),mixcloud:pn({options:Yt}),twitch:pn({options:Yt,playerId:Ut}),vidyard:pn({options:Yt})}),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),Ra=xw,Cw=Bu,BZ=ns(kZ);const zZ=(0,Cw.lazy)(()=>rn(()=>import("./Preview-b9a866fe.js").then(e=>e.P),["assets/Preview-b9a866fe.js","assets/index-931430a1.js","assets/index-a2878e02.css"])),FZ=typeof window<"u"&&window.document,HZ=typeof Bt<"u"&&Bt.window&&Bt.window.document,UZ=Object.keys(Ra.propTypes),WZ=FZ||HZ?wi.Suspense:()=>null,Ia=[],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[...Ia,...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([Ra.defaultProps.config,Ra.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",Ra.propTypes),gt(n,"defaultProps",Ra.defaultProps),gt(n,"addCustomPlayer",r=>{Ia.push(r)}),gt(n,"removeCustomPlayers",()=>{Ia.length=0}),gt(n,"canPlay",r=>{for(const i of[...Ia,...e])if(i.canPlay(r))return!0;return!1}),gt(n,"canEnablePIP",r=>{for(const i of[...Ia,...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=st(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,C)=>{const k=Array.isArray(C)?C[0]:C;f(k),o(O,k),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&&` @@ -1895,15 +1895,15 @@ ${({disabled:e})=>e&&Vg` &.error-wrapper { color: ${L.primaryRed}; } -`,cJ=H.span``,fJ=H.span` +`,fJ=H.span``,dJ=H.span` color: gray; -`,dJ=H(rv)` +`,hJ=H(iv)` && { font-size: 36px; padding: 2px; margin-left: 8px; } -`,hJ=H(F)` +`,pJ=H(F)` height: 28px; font-size: 26px; border-radius: 200px; @@ -1940,12 +1940,12 @@ ${({disabled:e})=>e&&Vg` display: block; } } -`,pJ=H(F)` +`,mJ=H(F)` cursor: pointer; padding: 8px; font-size: 32px; color: #d9d9d9; -`,mJ=H(Gl)` +`,yJ=H(ql)` && { z-index: 20; color: ${L.white}; @@ -1981,7 +1981,7 @@ ${({disabled:e})=>e&&Vg` } } } -`,yJ=H(F)` +`,gJ=H(F)` color: ${L.white}; font-size: 13px; margin-left: 16px; @@ -1995,7 +1995,7 @@ ${({disabled:e})=>e&&Vg` .duration { color: ${L.GRAY6}; } -`,gJ=({hidden:e})=>{var $,_e;const t=B.useRef(null),n=B.useRef(null),[r,i]=B.useState(!1),[a,o]=B.useState(!1),[s,l]=B.useState(!1),[u,f]=B.useState("ready"),[d,h]=B.useState(!1),{isPlaying:m,playingTime:g,duration:v,setIsPlaying:b,setPlayingTime:O,setDuration:C,playingNode:k,volume:P,setVolume:_,setHasError:w,resetPlayer:j,isSeeking:E,setIsSeeking:I}=Yl(te=>te),z=(k==null?void 0:k.media_url)||(k==null?void 0:k.link)||(($=k==null?void 0:k.properties)==null?void 0:$.link)||((_e=k==null?void 0:k.properties)==null?void 0:_e.media_url),M=(z==null?void 0:z.includes("youtube"))||(z==null?void 0:z.includes("youtu.be"));B.useEffect(()=>()=>j(),[j]),B.useEffect(()=>{k&&!d&&(O(0),C(0),h(!1))},[k,O,C,h,d]),B.useEffect(()=>{E&&t.current&&(t.current.seekTo(g,"seconds"),I(!1))},[g,E,I]);const D=()=>{b(!m)},W=()=>{b(!0)},Y=()=>{b(!1)},V=(te,ge)=>{const Ye=Array.isArray(ge)?ge[0]:ge;O(Ye),t.current&&!E&&t.current.seekTo(Ye,"seconds")},X=(te,ge)=>{const Ye=Array.isArray(ge)?ge[0]:ge;_(Ye)},Z=()=>{w(!0),f("error")},G=te=>{if(!E){const ge=te.playedSeconds;O(ge)}},Q=()=>{if(t.current){f("ready");const te=t.current.getDuration();if(C(te),!E&&(g===0||Math.abs(g-Qr("00:00:00"))<1)&&(k==null?void 0:k.type)==="youtube"&&k!=null&&k.timestamp){const[ge]=k.timestamp.split("-"),Ye=Qr(ge);t.current.seekTo(Ye,"seconds"),O(Ye)}}},T=()=>{n.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):n.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",pe)}))},pe=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",pe)};B.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",pe)}),B.useEffect(()=>{const te=ge=>{if(a){const Ye=window.screen.height,Me=ge.clientY,ae=Ye-Me;l(ae<=50)}};return document.addEventListener("mousemove",te),()=>{document.removeEventListener("mousemove",te)}},[a,s]),B.useEffect(()=>{const te=ge=>{a&&ge.key==="Escape"?(ge.preventDefault(),ge.stopPropagation()):r&&ge.key===" "&&(ge.preventDefault(),D())};return document.addEventListener("fullscreenchange",pe),document.addEventListener("keydown",te),()=>{document.removeEventListener("fullscreenchange",pe),document.removeEventListener("keydown",te)}});const ue=()=>{D()};return z?y.jsxs(vJ,{ref:n,hidden:e,onBlur:()=>i(!1),onFocus:()=>i(!0),tabIndex:0,children:[y.jsx(xJ,{isFullScreen:a,children:y.jsx(In,{size:120,src:(k==null?void 0:k.image_url)||"",type:"clip"})}),y.jsx(SJ,{isFullScreen:a,onClick:ue,children:y.jsx(rJ,{ref:t,controls:!1,height:a?window.screen.height:"200px",onBuffer:()=>f("buffering"),onBufferEnd:()=>f("ready"),onError:Z,onPause:Y,onPlay:W,onProgress:G,onReady:Q,playing:m,url:z||"",volume:P,width:"100%"})}),u==="error"?y.jsx(wJ,{className:"error-wrapper",children:"Error happened, please try later"}):null,u==="ready"?y.jsx(lJ,{duration:v,handleProgressChange:V,handleVolumeChange:X,isFullScreen:a,isPlaying:m,onFullScreenClick:T,playingTime:g,setIsPlaying:D,showToolbar:s&&a}):null,u==="buffering"&&!M?y.jsx(bJ,{isFullScreen:a,children:y.jsx(Vl,{color:L.lightGray})}):null]}):null},vJ=H(F)` +`,vJ=({hidden:e})=>{var $,_e;const t=B.useRef(null),n=B.useRef(null),[r,i]=B.useState(!1),[a,o]=B.useState(!1),[s,l]=B.useState(!1),[u,f]=B.useState("ready"),[d,h]=B.useState(!1),{isPlaying:m,playingTime:g,duration:v,setIsPlaying:b,setPlayingTime:O,setDuration:C,playingNode:k,volume:P,setVolume:_,setHasError:w,resetPlayer:j,isSeeking:E,setIsSeeking:I}=Vl(te=>te),z=(k==null?void 0:k.media_url)||(k==null?void 0:k.link)||(($=k==null?void 0:k.properties)==null?void 0:$.link)||((_e=k==null?void 0:k.properties)==null?void 0:_e.media_url),M=(z==null?void 0:z.includes("youtube"))||(z==null?void 0:z.includes("youtu.be"));B.useEffect(()=>()=>j(),[j]),B.useEffect(()=>{k&&!d&&(O(0),C(0),h(!1))},[k,O,C,h,d]),B.useEffect(()=>{E&&t.current&&(t.current.seekTo(g,"seconds"),I(!1))},[g,E,I]);const D=()=>{b(!m)},W=()=>{b(!0)},Y=()=>{b(!1)},V=(te,ge)=>{const Ye=Array.isArray(ge)?ge[0]:ge;O(Ye),t.current&&!E&&t.current.seekTo(Ye,"seconds")},X=(te,ge)=>{const Ye=Array.isArray(ge)?ge[0]:ge;_(Ye)},Z=()=>{w(!0),f("error")},G=te=>{if(!E){const ge=te.playedSeconds;O(ge)}},Q=()=>{if(t.current){f("ready");const te=t.current.getDuration();if(C(te),!E&&(g===0||Math.abs(g-ei("00:00:00"))<1)&&(k==null?void 0:k.type)==="youtube"&&k!=null&&k.timestamp){const[ge]=k.timestamp.split("-"),Ye=ei(ge);t.current.seekTo(Ye,"seconds"),O(Ye)}}},T=()=>{n.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):n.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",pe)}))},pe=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",pe)};B.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",pe)}),B.useEffect(()=>{const te=ge=>{if(a){const Ye=window.screen.height,Me=ge.clientY,ae=Ye-Me;l(ae<=50)}};return document.addEventListener("mousemove",te),()=>{document.removeEventListener("mousemove",te)}},[a,s]),B.useEffect(()=>{const te=ge=>{a&&ge.key==="Escape"?(ge.preventDefault(),ge.stopPropagation()):r&&ge.key===" "&&(ge.preventDefault(),D())};return document.addEventListener("fullscreenchange",pe),document.addEventListener("keydown",te),()=>{document.removeEventListener("fullscreenchange",pe),document.removeEventListener("keydown",te)}});const ue=()=>{D()};return z?y.jsxs(xJ,{ref:n,hidden:e,onBlur:()=>i(!1),onFocus:()=>i(!0),tabIndex:0,children:[y.jsx(bJ,{isFullScreen:a,children:y.jsx(In,{size:120,src:(k==null?void 0:k.image_url)||"",type:"clip"})}),y.jsx(_J,{isFullScreen:a,onClick:ue,children:y.jsx(iJ,{ref:t,controls:!1,height:a?window.screen.height:"200px",onBuffer:()=>f("buffering"),onBufferEnd:()=>f("ready"),onError:Z,onPause:Y,onPlay:W,onProgress:G,onReady:Q,playing:m,url:z||"",volume:P,width:"100%"})}),u==="error"?y.jsx(SJ,{className:"error-wrapper",children:"Error happened, please try later"}):null,u==="ready"?y.jsx(uJ,{duration:v,handleProgressChange:V,handleVolumeChange:X,isFullScreen:a,isPlaying:m,onFullScreenClick:T,playingTime:g,setIsPlaying:D,showToolbar:s&&a}):null,u==="buffering"&&!M?y.jsx(wJ,{isFullScreen:a,children:y.jsx(Gl,{color:L.lightGray})}):null]}):null},xJ=H(F)` border-bottom: 1px solid rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.2); position: relative; @@ -2006,27 +2006,27 @@ ${({disabled:e})=>e&&Vg` &:focus { outline: none; } -`,xJ=H(F)` +`,bJ=H(F)` position: absolute; top: ${e=>e.isFullScreen?"38%":"18%"}; left: 50%; transform: translateX(-50%); z-index: -1; -`,bJ=H(F)` +`,wJ=H(F)` position: absolute; top: ${e=>e.isFullScreen?"43%":"39%"}; left: 50%; transform: translateX(-50%); z-index: 1; -`,wJ=H(F)` +`,SJ=H(F)` height: 60px; padding: 12px 16px; color: ${L.primaryRed}; -`,SJ=H.div` +`,_J=H.div` margin: ${e=>e.isFullScreen?"80px auto":"0"}; width: 100%; cursor: pointer; -`,_J=B.memo(gJ),OJ=({open:e})=>{const{setSelectedNode:t}=T4(a=>a),n=qt(),{setSidebarOpen:r}=At(a=>a),{playingNode:i}=Yl(a=>a);return y.jsx(Ti,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:y.jsxs(kJ,{children:[y.jsx(_J,{hidden:(n==null?void 0:n.ref_id)!==(i==null?void 0:i.ref_id)},i==null?void 0:i.ref_id),y.jsx(PJ,{children:y.jsx(YK,{})}),y.jsx(CJ,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:y.jsx(JC,{})}),y.jsx(AJ,{onClick:()=>{r(!1)},children:y.jsx(fv,{})})]})})},kJ=H(F)(({theme:e})=>({position:"relative",background:L.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),CJ=H(F)` +`,OJ=B.memo(vJ),kJ=({open:e})=>{const{setSelectedNode:t}=E4(a=>a),n=qt(),{setSidebarOpen:r}=At(a=>a),{playingNode:i}=Vl(a=>a);return y.jsx(Ei,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:y.jsxs(CJ,{children:[y.jsx(OJ,{hidden:(n==null?void 0:n.ref_id)!==(i==null?void 0:i.ref_id)},i==null?void 0:i.ref_id),y.jsx(AJ,{children:y.jsx(VK,{})}),y.jsx(PJ,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:y.jsx(QC,{})}),y.jsx(jJ,{onClick:()=>{r(!1)},children:y.jsx(dv,{})})]})})},CJ=H(F)(({theme:e})=>({position:"relative",background:L.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),PJ=H(F)` font-size: 32px; color: ${L.white}; cursor: pointer; @@ -2040,11 +2040,11 @@ ${({disabled:e})=>e&&Vg` &:active { } -`,PJ=H(F)` +`,AJ=H(F)` flex: 1 1 100%; border-radius: 16px; overflow: hidden; -`,AJ=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}})),jJ=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"})})]})}),TJ=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=At(n=>({sidebarIsOpen:n.setSidebarOpen,showCollapseButton:n.showCollapseButton}));return y.jsx(y.Fragment,{children:t&&y.jsx(EJ,{onClick:()=>{e(!0)},children:y.jsx(jJ,{})})})},EJ=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}})),Aw=390,MJ=B.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:n}=At(i=>i),r=E4();return y.jsxs(DJ,{ref:t,id:"sidebar-wrapper",children:[y.jsx(NJ,{}),r?y.jsx(dS,{}):y.jsx(WC,{}),!e&&y.jsx(LJ,{onClick:()=>{n(!1)},children:y.jsx(fv,{})})]})}),$J=["topic","person","guest","event","organization","place","project","software"],IJ=e=>{if(e==null)return!1;const n=Object.keys(e).filter(r=>r!=="pubkey");return n.length===1&&n[0]==="name"},jw=()=>{const{sidebarIsOpen:e}=At(r=>r),t=qt(),n=!!t&&e&&!$J.includes(t.node_type)&&!IJ(t.properties);return y.jsxs(y.Fragment,{children:[y.jsx(Ti,{direction:"right",in:e,mountOnEnter:!0,unmountOnExit:!0,children:y.jsx(MJ,{subViewOpen:n})}),y.jsx(OJ,{open:n}),!e&&y.jsx(TJ,{})]})},DJ=H(F)(({theme:e})=>({position:"relative",background:L.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:Aw}})),LJ=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}})),NJ=H(F)` +`,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=M4();return y.jsxs(LJ,{ref:t,id:"sidebar-wrapper",children:[y.jsx(RJ,{}),r?y.jsx(hS,{}):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=qt(),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}; -`;jw.displayName="Sidebar";const eQ=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:Aw,SideBar:jw},Symbol.toStringTag,{value:"Module"}));export{eQ as i,zX as p,Ru as u}; +`;Tw.displayName="Sidebar";const tQ=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:jw,SideBar:Tw},Symbol.toStringTag,{value:"Module"}));export{tQ as i,FX as p,Bu as u}; diff --git a/build/assets/index-306d154d.js b/build/assets/index-555436f8.js similarity index 90% rename from build/assets/index-306d154d.js rename to build/assets/index-555436f8.js index 1efac6d88..54143a40b 100644 --- a/build/assets/index-306d154d.js +++ b/build/assets/index-555436f8.js @@ -1,4 +1,4 @@ -import{r as p,a7 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-20244629.js";import{k as B,i as E,F as N,B as k}from"./index-922a0411.js";import{B as M}from"./index-fb1d223f.js";import{u as w}from"./index-6bd8a92b.js";import{S as O,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-4410772f.js";import{A as X,O as H,T as W}from"./index-bb4ca660.js";import{C as q}from"./ClipLoader-a0c1d0d5.js";import"./Stack-76b9b130.js";import"./useSlotProps-4a56e8a6.js";import"./Popover-aff34d88.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);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(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({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(U,{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(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` +import{r as p,a7 as T,j as e,F as x,bg as I,o as n,T as v,O as _,y as L,q as A,bj as F}from"./index-931430a1.js";import{k as B,i as E,F as N,B as k}from"./index-9910581f.js";import{B as M}from"./index-d447730d.js";import{u as w}from"./index-67a17864.js";import{S as O,A as z,N as D,F as P,b as Y,I as R}from"./NodeCircleIcon-c0da6b29.js";import{A as X,O as H,T as W}from"./index-1ecda1ff.js";import{C as q}from"./ClipLoader-da7156bc.js";import"./Stack-179be030.js";import"./useSlotProps-1d7699bd.js";import"./Popover-92a41dd0.js";import"./createSvgIcon-2d6cbf8b.js";import"./TextareaAutosize-293fa137.js";const U=({topicId:s,onSelect:r,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[g,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const m={is_muted:"False",sort_by:z,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await I(m.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),a=o=>{const i=o.trim();if(!i){h([]);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(B,{})})]}):e.jsx(X,{dataId:c,handleInputChange:a,isLoading:g,onSelect:b,options:S(u)||H,selectedValue:d?t(d):null})},$=({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(U,{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(P,{})}),e.jsx(ne,{children:e.jsx(Y,{})})]})]})]}),G=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-ce0d9b71.js b/build/assets/index-556c69fb.js similarity index 92% rename from build/assets/index-ce0d9b71.js rename to build/assets/index-556c69fb.js index 308b8c1a7..b43bff184 100644 --- a/build/assets/index-ce0d9b71.js +++ b/build/assets/index-556c69fb.js @@ -1,4 +1,4 @@ -import{j as e,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-20244629.js";import{B as R}from"./index-fb1d223f.js";import{S as I}from"./Skeleton-e4541980.js";import{C as z}from"./ClipLoader-a0c1d0d5.js";import{B as j}from"./index-922a0411.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,o as c,q as t,F as i,O as y,r as l,p as b,B as S,y as M,bk as $,bl as D}from"./index-931430a1.js";import{B as R}from"./index-d447730d.js";import{S as I}from"./Skeleton-efee6f09.js";import{C as z}from"./ClipLoader-da7156bc.js";import{B as j}from"./index-9910581f.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-6bd8a92b.js b/build/assets/index-67a17864.js similarity index 85% rename from build/assets/index-6bd8a92b.js rename to build/assets/index-67a17864.js index dfd477941..2cfe36e7a 100644 --- a/build/assets/index-6bd8a92b.js +++ b/build/assets/index-67a17864.js @@ -1 +1 @@ -import{w as f,bk as m}from"./index-20244629.js";import{D as y}from"./NodeCircleIcon-4410772f.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{w as f,bk as m}from"./index-931430a1.js";import{D as y}from"./NodeCircleIcon-c0da6b29.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-5d1ac3c2.js b/build/assets/index-7c966c05.js similarity index 98% rename from build/assets/index-5d1ac3c2.js rename to build/assets/index-7c966c05.js index 36628ce6b..ce6fb3829 100644 --- a/build/assets/index-5d1ac3c2.js +++ b/build/assets/index-7c966c05.js @@ -1,4 +1,4 @@ -import{r as x,b as Ht,g as Ut,s as Oe,_ as U,u as Zt,ac as go,a as Xt,j as o,c as Kt,bo as Ue,bp as pt,d as qt,e as me,f as vt,ad as bo,ae as yo,b9 as ft,o as z,T as ee,F as w,aW as We,q as $,bq as wo,br as et,bs as jo,b8 as Qt,O as Jt,a9 as Ye,aV as he,a0 as Ct,Z as Et,Y as Pt,X as Tt,V as vo,M as Co,ao as Mt}from"./index-20244629.js";import{B as Eo}from"./index-fb1d223f.js";import{i as ht,B as Se,F as eo,k as mt,q as Po,h as To,I as Mo,r as Ao,b as to}from"./index-922a0411.js";import{A as Me,O as Oo,a as At,N as oo}from"./index-bb4ca660.js";import{T as He}from"./index-68ed2d99.js";import{C as le}from"./ClipLoader-a0c1d0d5.js";import{D as no}from"./DeleteIcon-b904bd34.js";import{P as so}from"./PlusIcon-f79d966c.js";import{p as dt,c as So,g as _o}from"./index-44e303ef.js";import{e as ko}from"./Stack-76b9b130.js";import{S as $o,F as Io}from"./FormControlLabel-dd6fa8a1.js";import{g as No,m as zo,u as J,b as Ze,t as ut,T as ro,i as io,H as Ro,j as Ot,C as Lo,P as Bo,k as Vo}from"./index-b9333c3d.js";import{Z as Do,_ as Fo,E as Go,V as N,$ as pe,a0 as fe,a1 as St,P as De,a2 as Fe,a3 as _t,a as K,a4 as Wo,G as Yo,C as Ho}from"./three.module-2ce81f73.js";import"./Popover-aff34d88.js";import"./useSlotProps-4a56e8a6.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";import"./index.esm-120f9454.js";import"./InfoIcon-35720818.js";import"./Typography-2d560971.js";const Uo=x.createContext(),kt=Uo;function Zo(t){return Ht("MuiGrid",t)}const Xo=[0,1,2,3,4,5,6,7,8,9,10],Ko=["column-reverse","column","row-reverse","row"],qo=["nowrap","wrap-reverse","wrap"],Te=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Qo=Ut("MuiGrid",["root","container","item","zeroMinWidth",...Xo.map(t=>`spacing-xs-${t}`),...Ko.map(t=>`direction-xs-${t}`),...qo.map(t=>`wrap-xs-${t}`),...Te.map(t=>`grid-xs-${t}`),...Te.map(t=>`grid-sm-${t}`),...Te.map(t=>`grid-md-${t}`),...Te.map(t=>`grid-lg-${t}`),...Te.map(t=>`grid-xl-${t}`)]),Ae=Qo,Jo=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xe(t){const n=parseFloat(t);return`${n}${String(t).replace(String(n),"")||"px"}`}function en({theme:t,ownerState:n}){let s;return t.breakpoints.keys.reduce((e,i)=>{let l={};if(n[i]&&(s=n[i]),!s)return e;if(s===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Ue({values:n.columns,breakpoints:t.breakpoints.values}),a=typeof d=="object"?d[i]:d;if(a==null)return e;const c=`${Math.round(s/a*1e8)/1e6}%`;let j={};if(n.container&&n.item&&n.columnSpacing!==0){const u=t.spacing(n.columnSpacing);if(u!=="0px"){const h=`calc(${c} + ${xe(u)})`;j={flexBasis:h,maxWidth:h}}}l=U({flexBasis:c,flexGrow:0,maxWidth:c},j)}return t.breakpoints.values[i]===0?Object.assign(e,l):e[t.breakpoints.up(i)]=l,e},{})}function tn({theme:t,ownerState:n}){const s=Ue({values:n.direction,breakpoints:t.breakpoints.values});return pt({theme:t},s,e=>{const i={flexDirection:e};return e.indexOf("column")===0&&(i[`& > .${Ae.item}`]={maxWidth:"none"}),i})}function ao({breakpoints:t,values:n}){let s="";Object.keys(n).forEach(i=>{s===""&&n[i]!==0&&(s=i)});const e=Object.keys(t).sort((i,l)=>t[i]-t[l]);return e.slice(0,e.indexOf(s))}function on({theme:t,ownerState:n}){const{container:s,rowSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{marginTop:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingTop:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{marginTop:0,[`& > .${Ae.item}`]:{paddingTop:0}}})}return i}function nn({theme:t,ownerState:n}){const{container:s,columnSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{width:`calc(100% + ${xe(u)})`,marginLeft:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingLeft:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Ae.item}`]:{paddingLeft:0}}})}return i}function sn(t,n,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return n.forEach(i=>{const l=t[i];Number(l)>0&&e.push(s[`spacing-${i}-${String(l)}`])}),e}const rn=Oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t,{container:e,direction:i,item:l,spacing:d,wrap:a,zeroMinWidth:c,breakpoints:j}=s;let u=[];e&&(u=sn(d,j,n));const h=[];return j.forEach(m=>{const g=s[m];g&&h.push(n[`grid-${m}-${String(g)}`])}),[n.root,e&&n.container,l&&n.item,c&&n.zeroMinWidth,...u,i!=="row"&&n[`direction-xs-${String(i)}`],a!=="wrap"&&n[`wrap-xs-${String(a)}`],...h]}})(({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}),tn,on,nn,en);function an(t,n){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return n.forEach(e=>{const i=t[e];if(Number(i)>0){const l=`spacing-${e}-${String(i)}`;s.push(l)}}),s}const cn=t=>{const{classes:n,container:s,direction:e,item:i,spacing:l,wrap:d,zeroMinWidth:a,breakpoints:c}=t;let j=[];s&&(j=an(l,c));const u=[];c.forEach(m=>{const g=t[m];g&&u.push(`grid-${m}-${String(g)}`)});const h={root:["root",s&&"container",i&&"item",a&&"zeroMinWidth",...j,e!=="row"&&`direction-xs-${String(e)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...u]};return qt(h,Zo,n)},ln=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiGrid"}),{breakpoints:i}=go(),l=ko(e),{className:d,columns:a,columnSpacing:c,component:j="div",container:u=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:b=0,wrap:y="wrap",zeroMinWidth:P=!1}=l,C=Xt(l,Jo),v=g||b,O=c||b,A=x.useContext(kt),E=u?a||12:A,I={},V=U({},C);i.keys.forEach(f=>{C[f]!=null&&(I[f]=C[f],delete V[f])});const R=U({},l,{columns:E,container:u,direction:h,item:m,rowSpacing:v,columnSpacing:O,wrap:y,zeroMinWidth:P,spacing:b},I,{breakpoints:i.keys}),F=cn(R);return o.jsx(kt.Provider,{value:E,children:o.jsx(rn,U({ownerState:R,className:Kt(F.root,d),as:j,ref:s},V))})}),ie=ln;function dn(t){return Ht("MuiSwitch",t)}const un=Ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=un,pn=["className","color","edge","size","sx"],fn=t=>{const{classes:n,edge:s,size:e,color:i,checked:l,disabled:d}=t,a={root:["root",s&&`edge${me(s)}`,`size${me(e)}`],switchBase:["switchBase",`color${me(i)}`,l&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=qt(a,dn,n);return U({},n,c)},hn=Oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.edge&&n[`edge${me(s.edge)}`],n[`size${me(s.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,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),mn=Oe($o,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.switchBase,{[`& .${H.input}`]:n.input},s.color!=="default"&&n[`color${me(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:n})=>U({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${t.palette.mode==="light"?bo(t.palette[n.color].main,.62):yo(t.palette[n.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})),xn=Oe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,n)=>n.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}`})),gn=Oe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,n)=>n.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),bn=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiSwitch"}),{className:i,color:l="primary",edge:d=!1,size:a="medium",sx:c}=e,j=Xt(e,pn),u=U({},e,{color:l,edge:d,size:a}),h=fn(u),m=o.jsx(gn,{className:h.thumb,ownerState:u});return o.jsxs(hn,{className:Kt(h.root,i),sx:c,ownerState:u,children:[o.jsx(mn,U({type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:u},j,{classes:U({},h,{root:h.switchBase})})),o.jsx(xn,{className:h.track,ownerState:u})]})}),co=bn,yn={type:"",parent:""},$t=({onSelect:t,dataTestId:n,edgeLink:s,hideSelectAll:e})=>{const i=ht({mode:"onChange",defaultValues:yn}),{watch:l,setValue:d}=i,[a,c]=x.useState([]),[j,u]=x.useState(!1),h=y=>{d("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},m=y=>y.charAt(0).toUpperCase()+y.slice(1);x.useEffect(()=>{(async()=>{u(!0);try{const C=(await ft()).schemas.filter(O=>!O.is_deleted&&O.type).map(O=>(O==null?void 0:O.type)==="thing"?{label:"No Parent",value:O.type}:{label:m(O.type),value:O.type});c(e?C:[{label:"Select all",value:"all"},...C]),s&&d("parent",s)}catch(P){console.warn(P)}finally{u(!1)}})()},[s,d,e]);const g=l("parent"),b=()=>{const y=a==null?void 0:a.find(P=>P.value===g);if(y)return y;if(s)return{label:s,value:s}};return o.jsx(Me,{dataTestId:n,disabled:!!s,isLoading:j,onSelect:h,options:a||Oo,selectedValue:b()})},wn=({selectedType:t,setSelectedFromNode:n,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:i,selectedToNode:l})=>{const d=l==="all",a=i==="all";return o.jsxs(w,{children:[o.jsx(w,{align:"center",direction:"row",justify:"space-between",mb:35,children:o.jsx(w,{align:"center",direction:"row",children:o.jsx(jn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Source"})}),o.jsx($t,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:d,onSelect:n})]}),o.jsxs(w,{mb:10,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Edge Name"})}),o.jsx(w,{mb:12,children:o.jsx(He,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...We},value:t})})]}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Destination"})}),o.jsx($t,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:a,onSelect:s})]})]})},jn=z(ee)` +import{r as x,b as Ht,g as Ut,s as Oe,_ as U,u as Zt,ac as go,a as Xt,j as o,c as Kt,bo as Ue,bp as pt,d as qt,e as me,f as vt,ad as bo,ae as yo,b9 as ft,o as z,T as ee,F as w,aW as We,q as $,bq as wo,br as et,bs as jo,b8 as Qt,O as Jt,a9 as Ye,aV as he,a0 as Ct,Z as Et,Y as Pt,X as Tt,V as vo,M as Co,ao as Mt}from"./index-931430a1.js";import{B as Eo}from"./index-d447730d.js";import{i as ht,B as Se,F as eo,k as mt,q as Po,h as To,I as Mo,r as Ao,b as to}from"./index-9910581f.js";import{A as Me,O as Oo,a as At,N as oo}from"./index-1ecda1ff.js";import{T as He}from"./index-8870d532.js";import{C as le}from"./ClipLoader-da7156bc.js";import{D as no}from"./DeleteIcon-46e3d4ca.js";import{P as so}from"./PlusIcon-92013c0a.js";import{p as dt,c as So,g as _o}from"./index-44e303ef.js";import{e as ko}from"./Stack-179be030.js";import{S as $o,F as Io}from"./FormControlLabel-5df2ea4a.js";import{g as No,m as zo,u as J,b as Ze,t as ut,T as ro,i as io,H as Ro,j as Ot,C as Lo,P as Bo,k as Vo}from"./index-1274a067.js";import{Z as Do,_ as Fo,E as Go,V as N,$ as pe,a0 as fe,a1 as St,P as De,a2 as Fe,a3 as _t,a as K,a4 as Wo,G as Yo,C as Ho}from"./three.module-2ce81f73.js";import"./Popover-92a41dd0.js";import"./useSlotProps-1d7699bd.js";import"./createSvgIcon-2d6cbf8b.js";import"./TextareaAutosize-293fa137.js";import"./index.esm-25778014.js";import"./InfoIcon-b9565bf8.js";import"./Typography-f70a691a.js";const Uo=x.createContext(),kt=Uo;function Zo(t){return Ht("MuiGrid",t)}const Xo=[0,1,2,3,4,5,6,7,8,9,10],Ko=["column-reverse","column","row-reverse","row"],qo=["nowrap","wrap-reverse","wrap"],Te=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Qo=Ut("MuiGrid",["root","container","item","zeroMinWidth",...Xo.map(t=>`spacing-xs-${t}`),...Ko.map(t=>`direction-xs-${t}`),...qo.map(t=>`wrap-xs-${t}`),...Te.map(t=>`grid-xs-${t}`),...Te.map(t=>`grid-sm-${t}`),...Te.map(t=>`grid-md-${t}`),...Te.map(t=>`grid-lg-${t}`),...Te.map(t=>`grid-xl-${t}`)]),Ae=Qo,Jo=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xe(t){const n=parseFloat(t);return`${n}${String(t).replace(String(n),"")||"px"}`}function en({theme:t,ownerState:n}){let s;return t.breakpoints.keys.reduce((e,i)=>{let l={};if(n[i]&&(s=n[i]),!s)return e;if(s===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(s==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const d=Ue({values:n.columns,breakpoints:t.breakpoints.values}),a=typeof d=="object"?d[i]:d;if(a==null)return e;const c=`${Math.round(s/a*1e8)/1e6}%`;let j={};if(n.container&&n.item&&n.columnSpacing!==0){const u=t.spacing(n.columnSpacing);if(u!=="0px"){const h=`calc(${c} + ${xe(u)})`;j={flexBasis:h,maxWidth:h}}}l=U({flexBasis:c,flexGrow:0,maxWidth:c},j)}return t.breakpoints.values[i]===0?Object.assign(e,l):e[t.breakpoints.up(i)]=l,e},{})}function tn({theme:t,ownerState:n}){const s=Ue({values:n.direction,breakpoints:t.breakpoints.values});return pt({theme:t},s,e=>{const i={flexDirection:e};return e.indexOf("column")===0&&(i[`& > .${Ae.item}`]={maxWidth:"none"}),i})}function ao({breakpoints:t,values:n}){let s="";Object.keys(n).forEach(i=>{s===""&&n[i]!==0&&(s=i)});const e=Object.keys(t).sort((i,l)=>t[i]-t[l]);return e.slice(0,e.indexOf(s))}function on({theme:t,ownerState:n}){const{container:s,rowSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{marginTop:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingTop:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{marginTop:0,[`& > .${Ae.item}`]:{paddingTop:0}}})}return i}function nn({theme:t,ownerState:n}){const{container:s,columnSpacing:e}=n;let i={};if(s&&e!==0){const l=Ue({values:e,breakpoints:t.breakpoints.values});let d;typeof l=="object"&&(d=ao({breakpoints:t.breakpoints.values,values:l})),i=pt({theme:t},l,(a,c)=>{var j;const u=t.spacing(a);return u!=="0px"?{width:`calc(100% + ${xe(u)})`,marginLeft:`-${xe(u)}`,[`& > .${Ae.item}`]:{paddingLeft:xe(u)}}:(j=d)!=null&&j.includes(c)?{}:{width:"100%",marginLeft:0,[`& > .${Ae.item}`]:{paddingLeft:0}}})}return i}function sn(t,n,s={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[s[`spacing-xs-${String(t)}`]];const e=[];return n.forEach(i=>{const l=t[i];Number(l)>0&&e.push(s[`spacing-${i}-${String(l)}`])}),e}const rn=Oe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t,{container:e,direction:i,item:l,spacing:d,wrap:a,zeroMinWidth:c,breakpoints:j}=s;let u=[];e&&(u=sn(d,j,n));const h=[];return j.forEach(m=>{const g=s[m];g&&h.push(n[`grid-${m}-${String(g)}`])}),[n.root,e&&n.container,l&&n.item,c&&n.zeroMinWidth,...u,i!=="row"&&n[`direction-xs-${String(i)}`],a!=="wrap"&&n[`wrap-xs-${String(a)}`],...h]}})(({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}),tn,on,nn,en);function an(t,n){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const s=[];return n.forEach(e=>{const i=t[e];if(Number(i)>0){const l=`spacing-${e}-${String(i)}`;s.push(l)}}),s}const cn=t=>{const{classes:n,container:s,direction:e,item:i,spacing:l,wrap:d,zeroMinWidth:a,breakpoints:c}=t;let j=[];s&&(j=an(l,c));const u=[];c.forEach(m=>{const g=t[m];g&&u.push(`grid-${m}-${String(g)}`)});const h={root:["root",s&&"container",i&&"item",a&&"zeroMinWidth",...j,e!=="row"&&`direction-xs-${String(e)}`,d!=="wrap"&&`wrap-xs-${String(d)}`,...u]};return qt(h,Zo,n)},ln=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiGrid"}),{breakpoints:i}=go(),l=ko(e),{className:d,columns:a,columnSpacing:c,component:j="div",container:u=!1,direction:h="row",item:m=!1,rowSpacing:g,spacing:b=0,wrap:y="wrap",zeroMinWidth:P=!1}=l,C=Xt(l,Jo),v=g||b,O=c||b,A=x.useContext(kt),E=u?a||12:A,I={},V=U({},C);i.keys.forEach(f=>{C[f]!=null&&(I[f]=C[f],delete V[f])});const R=U({},l,{columns:E,container:u,direction:h,item:m,rowSpacing:v,columnSpacing:O,wrap:y,zeroMinWidth:P,spacing:b},I,{breakpoints:i.keys}),F=cn(R);return o.jsx(kt.Provider,{value:E,children:o.jsx(rn,U({ownerState:R,className:Kt(F.root,d),as:j,ref:s},V))})}),ie=ln;function dn(t){return Ht("MuiSwitch",t)}const un=Ut("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),H=un,pn=["className","color","edge","size","sx"],fn=t=>{const{classes:n,edge:s,size:e,color:i,checked:l,disabled:d}=t,a={root:["root",s&&`edge${me(s)}`,`size${me(e)}`],switchBase:["switchBase",`color${me(i)}`,l&&"checked",d&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=qt(a,dn,n);return U({},n,c)},hn=Oe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.edge&&n[`edge${me(s.edge)}`],n[`size${me(s.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,[`& .${H.thumb}`]:{width:16,height:16},[`& .${H.switchBase}`]:{padding:4,[`&.${H.checked}`]:{transform:"translateX(16px)"}}})),mn=Oe($o,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.switchBase,{[`& .${H.input}`]:n.input},s.color!=="default"&&n[`color${me(s.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${H.checked}`]:{transform:"translateX(20px)"},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${H.checked} + .${H.track}`]:{opacity:.5},[`&.${H.disabled} + .${H.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${H.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:n})=>U({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.color!=="default"&&{[`&.${H.checked}`]:{color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:vt(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${H.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n.color}DisabledColor`]:`${t.palette.mode==="light"?bo(t.palette[n.color].main,.62):yo(t.palette[n.color].main,.55)}`}},[`&.${H.checked} + .${H.track}`]:{backgroundColor:(t.vars||t).palette[n.color].main}})),xn=Oe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,n)=>n.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}`})),gn=Oe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,n)=>n.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),bn=x.forwardRef(function(n,s){const e=Zt({props:n,name:"MuiSwitch"}),{className:i,color:l="primary",edge:d=!1,size:a="medium",sx:c}=e,j=Xt(e,pn),u=U({},e,{color:l,edge:d,size:a}),h=fn(u),m=o.jsx(gn,{className:h.thumb,ownerState:u});return o.jsxs(hn,{className:Kt(h.root,i),sx:c,ownerState:u,children:[o.jsx(mn,U({type:"checkbox",icon:m,checkedIcon:m,ref:s,ownerState:u},j,{classes:U({},h,{root:h.switchBase})})),o.jsx(xn,{className:h.track,ownerState:u})]})}),co=bn,yn={type:"",parent:""},$t=({onSelect:t,dataTestId:n,edgeLink:s,hideSelectAll:e})=>{const i=ht({mode:"onChange",defaultValues:yn}),{watch:l,setValue:d}=i,[a,c]=x.useState([]),[j,u]=x.useState(!1),h=y=>{d("parent",(y==null?void 0:y.value)||""),t(y==null?void 0:y.value)},m=y=>y.charAt(0).toUpperCase()+y.slice(1);x.useEffect(()=>{(async()=>{u(!0);try{const C=(await ft()).schemas.filter(O=>!O.is_deleted&&O.type).map(O=>(O==null?void 0:O.type)==="thing"?{label:"No Parent",value:O.type}:{label:m(O.type),value:O.type});c(e?C:[{label:"Select all",value:"all"},...C]),s&&d("parent",s)}catch(P){console.warn(P)}finally{u(!1)}})()},[s,d,e]);const g=l("parent"),b=()=>{const y=a==null?void 0:a.find(P=>P.value===g);if(y)return y;if(s)return{label:s,value:s}};return o.jsx(Me,{dataTestId:n,disabled:!!s,isLoading:j,onSelect:h,options:a||Oo,selectedValue:b()})},wn=({selectedType:t,setSelectedFromNode:n,setSelectedToNode:s,edgeLinkData:e,selectedFromNode:i,selectedToNode:l})=>{const d=l==="all",a=i==="all";return o.jsxs(w,{children:[o.jsx(w,{align:"center",direction:"row",justify:"space-between",mb:35,children:o.jsx(w,{align:"center",direction:"row",children:o.jsx(jn,{children:e!=null&&e.refId?"Edit Edge":"Add Edge"})})}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Source"})}),o.jsx($t,{dataTestId:"from_node",edgeLink:e==null?void 0:e.source,hideSelectAll:d,onSelect:n})]}),o.jsxs(w,{mb:10,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Edge Name"})}),o.jsx(w,{mb:12,children:o.jsx(He,{id:"cy-item-name",maxLength:250,name:"type",placeholder:"Enter type name",rules:{...We},value:t})})]}),o.jsxs(w,{mb:25,children:[o.jsx(w,{mb:12,children:o.jsx(ee,{children:"Destination"})}),o.jsx($t,{dataTestId:"to_node",edgeLink:e==null?void 0:e.target,hideSelectAll:a,onSelect:s})]})]})},jn=z(ee)` font-size: 22px; font-weight: 600; `,vn=({onCancel:t,edgeLinkData:n,setGraphLoading:s})=>{var I,V,R;const e=ht({mode:"onChange"}),{setValue:i,getValues:l}=e,[d,a]=x.useState(!1),[c,j]=x.useState(!1),[u,h]=x.useState(""),[m,g]=x.useState(""),[b,y]=x.useState(""),P=e.watch("type");x.useEffect(()=>{i("type",n==null?void 0:n.edgeType)},[n==null?void 0:n.edgeType,i]),x.useEffect(()=>{h(P)},[P]);const C=e.handleSubmit(async F=>{a(!0),s(!0);const f={source:m,target:b,edge_type:F.type},_={ref_id:n==null?void 0:n.refId,edge_type:F.type};try{if(n!=null&&n.refId)await wo(_);else if(b&&m)if(m==="all"||b==="all"){const k=(await ft()).schemas.filter(W=>!W.is_deleted&&W.type).map(W=>W.type);m==="all"?await Promise.all(k.map(W=>et({...f,source:W}))):b==="all"&&await Promise.all(k.map(W=>et({...f,target:W})))}else await et(f)}catch(D){console.warn("API Error:",D)}finally{a(!1),s(!1),g(""),y(""),t()}}),v=(V=(I=l())==null?void 0:I.type)==null?void 0:V.trim(),O=v&&((R=n==null?void 0:n.edgeType)==null?void 0:R.trim())!==v,A=n!=null&&n.refId?d||!O:d||!b||!m||!u,E=async()=>{j(!0),s(!0);try{n!=null&&n.refId&&await jo(n==null?void 0:n.refId)}catch(F){console.warn("API Error:",F)}finally{j(!1),s(!1),g(""),y(""),t()}};return o.jsx(eo,{...e,children:o.jsxs("form",{id:"add-type-form",onSubmit:C,children:[o.jsx(wn,{edgeLinkData:n,selectedFromNode:m,selectedToNode:b,selectedType:u,setSelectedFromNode:g,setSelectedToNode:y}),o.jsxs(w,{direction:"row",justify:"space-between",mt:20,children:[(n==null?void 0:n.refId)&&o.jsx(w,{direction:"column",children:o.jsxs(En,{color:"secondary",disabled:c,onClick:E,size:"large",style:{marginRight:20},variant:"contained",children:["Delete",c&&o.jsxs(It,{children:[o.jsx(le,{color:$.lightGray,size:12})," "]})]})}),o.jsxs(Cn,{color:"secondary",disabled:A,onClick:C,size:"large",variant:"contained",children:["Confirm",d&&o.jsxs(It,{children:[o.jsx(le,{color:$.lightGray,size:12})," "]})]})]})]})})},Cn=z(Se)` diff --git a/build/assets/index-68ed2d99.js b/build/assets/index-8870d532.js similarity index 98% rename from build/assets/index-68ed2d99.js rename to build/assets/index-8870d532.js index c96fa5e3c..03fa17513 100644 --- a/build/assets/index-68ed2d99.js +++ b/build/assets/index-8870d532.js @@ -1,4 +1,4 @@ -import{r as I,h as fe,n as de,o as N,q as S,j as E,F as L,T as pe}from"./index-20244629.js";import{h as he,z as ge,D as ve}from"./index-922a0411.js";import{e as me}from"./index.esm-120f9454.js";import{I as xe}from"./InfoIcon-35720818.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,_=ne(k),Pe=fe,K=ne(ke);function B(){return(B=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&d=0||(o[t]=e[t]);return o}function oe(e){return requestAnimationFrame(e)}function Q(e){cancelAnimationFrame(e)}function R(e){var r=e.ownerDocument;return r.hasFocus()&&r.activeElement===e}function ie(e){return e==null?void 0:e.ownerDocument}function we(e){var r=function(t){var n;return(n=ie(t))==null?void 0:n.defaultView}(e);return!!r&&e instanceof r.HTMLElement}function W(e){return k.useCallback(function(){var r=e.current,t=typeof window<"u"&&we(r);if(!r||!t)return null;if(r.nodeName!=="INPUT"&&(r=r.querySelector("input")),!r)throw new Error("react-input-mask: inputComponent doesn't contain input node");return r},[e])}function ye(e,r){var t,n,o,i,s=k.useRef({start:null,end:null}),u=W(e),f=k.useCallback(function(){return function(g){var d=g.selectionStart,P=g.selectionEnd;return{start:d,end:P,length:P-d}}(u())},[u]),p=k.useCallback(function(){return s.current},[]),l=k.useCallback(function(g){var d=u();d&&R(d)&&(function(P,y,C){C===void 0&&(C=y),P.setSelectionRange(y,C)}(d,g.start,g.end),s.current=f())},[u,f]),a=k.useCallback(function(){s.current=f()},[f]),c=(t=a,n=k.useRef(null),o=k.useCallback(function(){n.current===null&&function g(){t(),n.current=oe(g)}()},[t]),i=k.useCallback(function(){Q(n.current),n.current=null},[]),k.useEffect(function(){n.current&&(i(),o())},[o,i]),k.useEffect(Q,[]),[o,i]),h=c[0],w=c[1];return k.useLayoutEffect(function(){if(r){var g=u();return g.addEventListener("focus",h),g.addEventListener("blur",w),R(g)&&h(),function(){g.removeEventListener("focus",h),g.removeEventListener("blur",w),w()}}}),{getSelection:f,getLastSelection:p,setSelection:l}}function Ce(e,r){var t=k.useRef(),n=ye(t,r),o=n.getSelection,i=n.getLastSelection,s=n.setSelection,u=function(a,c){var h=W(a),w=k.useRef(c);return{getValue:k.useCallback(function(){return h().value},[h]),getLastValue:k.useCallback(function(){return w.current},[]),setValue:k.useCallback(function(g){w.current=g;var d=h();d&&(d.value=g)},[h])}}(t,e),f=u.getValue,p=u.getLastValue,l=u.setValue;return{inputRef:t,getInputState:function(){return{value:f(),selection:o()}},getLastInputState:function(){return{value:p(),selection:i()}},setInputState:function(a){var c=a.value,h=a.selection;l(c),s(h)}}}var Se=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],J={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},Fe=function(e){var r=this;this.isCharacterAllowedAtPosition=function(t,n){var o=r.maskOptions.maskPlaceholder;return!!r.isCharacterFillingPosition(t,n)||!!o&&o[n]===t},this.isCharacterFillingPosition=function(t,n){var o=r.maskOptions.mask;if(!t||n>=o.length)return!1;if(!r.isPositionEditable(n))return o[n]===t;var i=o[n];return new RegExp(i).test(t)},this.isPositionEditable=function(t){var n=r.maskOptions,o=n.mask,i=n.permanents;return t=0;i--)if(o(n[i],i))return i;return-1}(t.split(""),function(n,o){return r.isPositionEditable(o)&&r.isCharacterFillingPosition(n,o)})+1},this.getStringFillingLengthAtPosition=function(t,n){return t.split("").reduce(function(o,i){return r.insertCharacterAtPosition(o,i,o.length)},function(o,i){i===void 0&&(i=1);for(var s="",u=0;u=0;n--)if(r.isPositionEditable(n))return n;return null},this.getRightEditablePosition=function(t){for(var n=r.maskOptions.mask,o=t;o=i&&!c?"":a=i?l:c?u?u[a]:"":f[a]}).join("");return r.formatValue(p)},this.insertCharacterAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(o>=s.length)return t;var f=r.isCharacterAllowedAtPosition(n,o),p=r.isPositionEditable(o),l=r.getRightEditablePosition(o),a=u&&l?n===u[l]:null,c=t.slice(0,o);return!f&&p||(t=c+(f?n:s[o])),f||p||a||(t=r.insertCharacterAtPosition(t,n,o+1)),t},this.insertStringAtPosition=function(t,n,o){var i=r.maskOptions,s=i.mask,u=i.maskPlaceholder;if(!n||o>=s.length)return t;var f=n.split(""),p=r.isValueFilled(t)||!!u,l=t.slice(o);return t=f.reduce(function(a,c){return r.insertCharacterAtPosition(a,c,a.length)},t.slice(0,o)),p?t+=l.slice(t.length-o):r.isValueFilled(t)?t+=s.slice(t.length).join(""):t=l.split("").filter(function(a,c){return r.isPositionEditable(o+c)}).reduce(function(a,c){var h=r.getRightEditablePosition(a.length);return h===null?a:(r.isPositionEditable(a.length)||(a+=s.slice(a.length,h).join("")),r.insertCharacterAtPosition(a,c,a.length))},t),t},this.processChange=function(t,n){var o=r.maskOptions,i=o.mask,s=o.prefix,u=o.lastEditablePosition,f=t.value,p=t.selection,l=n.value,a=n.selection,c=f,h="",w=0,g=0,d=Math.min(a.start,p.start);return p.end>a.start?(h=c.slice(a.start,p.end),g=(w=r.getStringFillingLengthAtPosition(h,d))?a.length:0):c.length=i.length?d=i.length:d=s.length&&dS[e]}; background: transparent; diff --git a/build/assets/index-17ed309d.js b/build/assets/index-8b3d1b3e.js similarity index 91% rename from build/assets/index-17ed309d.js rename to build/assets/index-8b3d1b3e.js index d3869bb31..875a2954e 100644 --- a/build/assets/index-17ed309d.js +++ b/build/assets/index-8b3d1b3e.js @@ -1,4 +1,4 @@ -import{j as e,o as r,q as y,T as S,F as n,O as g,K as q,y as k,aW as G,r as l,bk as O,bi as P,B as K}from"./index-20244629.js";import{B as Y}from"./index-fb1d223f.js";import{T as J,i as Q,F as X,B as F}from"./index-922a0411.js";import{T as B}from"./index-68ed2d99.js";import{S as Z}from"./Skeleton-e4541980.js";import{C as ee}from"./ClipLoader-a0c1d0d5.js";import"./index.esm-120f9454.js";import"./InfoIcon-35720818.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}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),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(J,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{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,o as r,q as y,T as S,F as n,O as g,K as q,y as k,aW as G,r as l,bk as O,bi as P,B as K}from"./index-931430a1.js";import{B as Y}from"./index-d447730d.js";import{T as J,i as Q,F as X,B as F}from"./index-9910581f.js";import{T as B}from"./index-8870d532.js";import{S as Z}from"./Skeleton-efee6f09.js";import{C as ee}from"./ClipLoader-da7156bc.js";import"./index.esm-25778014.js";import"./InfoIcon-b9565bf8.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}=q(x=>({changeNodeTypeFeatureFlag:x.changeNodeTypeFeatureFlag})),a=k(),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(J,{type:h}),c&&e.jsx(re,{onClick:d,children:e.jsx(ae,{})})]})]})}),e.jsxs(n,{mb:18,children:[e.jsx(I,{style:{marginBottom:8},children:"Node Name"}),e.jsx(B,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...G}})]}),e.jsxs(n,{mb:36,children:[e.jsx(I,{style:{marginBottom:8},children:"Image Url"}),e.jsx(B,{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'; diff --git a/build/assets/index-7978898a.js b/build/assets/index-8c987cbd.js similarity index 93% rename from build/assets/index-7978898a.js rename to build/assets/index-8c987cbd.js index 3434d2fb5..a0bd562c3 100644 --- a/build/assets/index-7978898a.js +++ b/build/assets/index-8c987cbd.js @@ -1,4 +1,4 @@ -import{a9 as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,K as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ab as ae,aa as ce,b6 as le}from"./index-20244629.js";import{B as C,h as de,i as pe,F as me}from"./index-922a0411.js";import{B as xe}from"./index-fb1d223f.js";import{S as ue}from"./index-a1bce07a.js";import{e as he}from"./index.esm-120f9454.js";import{C as fe}from"./CheckIcon-78afa5f1.js";import{C as W}from"./ClipLoader-a0c1d0d5.js";import{n as z,A as ye,O as ge,i as je}from"./index-bb4ca660.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-68ed2d99.js";import{c as we}from"./index-64f1c910.js";import"./Stack-76b9b130.js";import"./useSlotProps-4a56e8a6.js";import"./Popover-aff34d88.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";import"./three.module-2ce81f73.js";import"./InfoIcon-35720818.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(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{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"})` +import{a9 as Z,o as g,q as b,F as t,T,J as V,r as y,j as e,b2 as ee,b3 as te,aW as F,b8 as se,K as ne,b9 as oe,O as D,B as re,p as ie,aV as I,ab as ae,aa as ce,b6 as le}from"./index-931430a1.js";import{B as C,h as de,i as pe,F as me}from"./index-9910581f.js";import{B as xe}from"./index-d447730d.js";import{S as ue}from"./index-c34ea667.js";import{e as he}from"./index.esm-25778014.js";import{C as fe}from"./CheckIcon-7a9fa35b.js";import{C as W}from"./ClipLoader-da7156bc.js";import{n as z,A as ye,O as ge,i as je}from"./index-1ecda1ff.js";import{p as q}from"./index-44e303ef.js";import{T as L}from"./index-8870d532.js";import{c as we}from"./index-64f1c910.js";import"./Stack-179be030.js";import"./useSlotProps-1d7699bd.js";import"./Popover-92a41dd0.js";import"./createSvgIcon-2d6cbf8b.js";import"./TextareaAutosize-293fa137.js";import"./three.module-2ce81f73.js";import"./InfoIcon-b9565bf8.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(W,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(Be,{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}; diff --git a/build/assets/index-20244629.js b/build/assets/index-931430a1.js similarity index 90% rename from build/assets/index-20244629.js rename to build/assets/index-931430a1.js index cdc15a11a..b1295f568 100644 --- a/build/assets/index-20244629.js +++ b/build/assets/index-931430a1.js @@ -553,7 +553,7 @@ PROCEED WITH CAUTION! ${style} ${({color:o="primaryText1"})=>`color: ${colors[o]};`} -`;var dist={},_extends={},_global={exports:{}},global$5=_global.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=global$5);var _globalExports=_global.exports,_core={exports:{}},core$4=_core.exports={version:"2.6.12"};typeof __e=="number"&&(__e=core$4);var _coreExports=_core.exports,_aFunction=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o},aFunction=_aFunction,_ctx=function(o,et,tt){if(aFunction(o),et===void 0)return o;switch(tt){case 1:return function(rt){return o.call(et,rt)};case 2:return function(rt,it){return o.call(et,rt,it)};case 3:return function(rt,it,nt){return o.call(et,rt,it,nt)}}return function(){return o.apply(et,arguments)}},_objectDp={},_isObject=function(o){return typeof o=="object"?o!==null:typeof o=="function"},isObject$3=_isObject,_anObject=function(o){if(!isObject$3(o))throw TypeError(o+" is not an object!");return o},_fails=function(o){try{return!!o()}catch{return!0}},_descriptors,hasRequired_descriptors;function require_descriptors(){return hasRequired_descriptors||(hasRequired_descriptors=1,_descriptors=!_fails(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})),_descriptors}var _domCreate,hasRequired_domCreate;function require_domCreate(){if(hasRequired_domCreate)return _domCreate;hasRequired_domCreate=1;var o=_isObject,et=_globalExports.document,tt=o(et)&&o(et.createElement);return _domCreate=function(rt){return tt?et.createElement(rt):{}},_domCreate}var _ie8DomDefine,hasRequired_ie8DomDefine;function require_ie8DomDefine(){return hasRequired_ie8DomDefine||(hasRequired_ie8DomDefine=1,_ie8DomDefine=!require_descriptors()&&!_fails(function(){return Object.defineProperty(require_domCreate()("div"),"a",{get:function(){return 7}}).a!=7})),_ie8DomDefine}var isObject$2=_isObject,_toPrimitive=function(o,et){if(!isObject$2(o))return o;var tt,rt;if(et&&typeof(tt=o.toString)=="function"&&!isObject$2(rt=tt.call(o))||typeof(tt=o.valueOf)=="function"&&!isObject$2(rt=tt.call(o))||!et&&typeof(tt=o.toString)=="function"&&!isObject$2(rt=tt.call(o)))return rt;throw TypeError("Can't convert object to primitive value")},hasRequired_objectDp;function require_objectDp(){if(hasRequired_objectDp)return _objectDp;hasRequired_objectDp=1;var o=_anObject,et=require_ie8DomDefine(),tt=_toPrimitive,rt=Object.defineProperty;return _objectDp.f=require_descriptors()?Object.defineProperty:function(nt,at,st){if(o(nt),at=tt(at,!0),o(st),et)try{return rt(nt,at,st)}catch{}if("get"in st||"set"in st)throw TypeError("Accessors not supported!");return"value"in st&&(nt[at]=st.value),nt},_objectDp}var _propertyDesc=function(o,et){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:et}},dP$2=require_objectDp(),createDesc$2=_propertyDesc,_hide=require_descriptors()?function(o,et,tt){return dP$2.f(o,et,createDesc$2(1,tt))}:function(o,et,tt){return o[et]=tt,o},hasOwnProperty={}.hasOwnProperty,_has=function(o,et){return hasOwnProperty.call(o,et)},global$4=_globalExports,core$3=_coreExports,ctx=_ctx,hide$2=_hide,has$6=_has,PROTOTYPE$2="prototype",$export$7=function(o,et,tt){var rt=o&$export$7.F,it=o&$export$7.G,nt=o&$export$7.S,at=o&$export$7.P,st=o&$export$7.B,ot=o&$export$7.W,lt=it?core$3:core$3[et]||(core$3[et]={}),ht=lt[PROTOTYPE$2],yt=it?global$4:nt?global$4[et]:(global$4[et]||{})[PROTOTYPE$2],gt,bt,dt;it&&(tt=et);for(gt in tt)bt=!rt&&yt&&yt[gt]!==void 0,!(bt&&has$6(lt,gt))&&(dt=bt?yt[gt]:tt[gt],lt[gt]=it&&typeof yt[gt]!="function"?tt[gt]:st&&bt?ctx(dt,global$4):ot&&yt[gt]==dt?function(mt){var St=function(pt,kt,Et){if(this instanceof mt){switch(arguments.length){case 0:return new mt;case 1:return new mt(pt);case 2:return new mt(pt,kt)}return new mt(pt,kt,Et)}return mt.apply(this,arguments)};return St[PROTOTYPE$2]=mt[PROTOTYPE$2],St}(dt):at&&typeof dt=="function"?ctx(Function.call,dt):dt,at&&((lt.virtual||(lt.virtual={}))[gt]=dt,o&$export$7.R&&ht&&!ht[gt]&&hide$2(ht,gt,dt)))};$export$7.F=1;$export$7.G=2;$export$7.S=4;$export$7.P=8;$export$7.B=16;$export$7.W=32;$export$7.U=64;$export$7.R=128;var _export=$export$7,toString$1={}.toString,_cof=function(o){return toString$1.call(o).slice(8,-1)},_iobject,hasRequired_iobject;function require_iobject(){if(hasRequired_iobject)return _iobject;hasRequired_iobject=1;var o=_cof;return _iobject=Object("z").propertyIsEnumerable(0)?Object:function(et){return o(et)=="String"?et.split(""):Object(et)},_iobject}var _defined=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o},IObject=require_iobject(),defined$2=_defined,_toIobject=function(o){return IObject(defined$2(o))},ceil=Math.ceil,floor=Math.floor,_toInteger=function(o){return isNaN(o=+o)?0:(o>0?floor:ceil)(o)},toInteger$2=_toInteger,min$1=Math.min,_toLength=function(o){return o>0?min$1(toInteger$2(o),9007199254740991):0},toInteger$1=_toInteger,max=Math.max,min=Math.min,_toAbsoluteIndex=function(o,et){return o=toInteger$1(o),o<0?max(o+et,0):min(o,et)},toIObject$5=_toIobject,toLength=_toLength,toAbsoluteIndex=_toAbsoluteIndex,_arrayIncludes=function(o){return function(et,tt,rt){var it=toIObject$5(et),nt=toLength(it.length),at=toAbsoluteIndex(rt,nt),st;if(o&&tt!=tt){for(;nt>at;)if(st=it[at++],st!=st)return!0}else for(;nt>at;at++)if((o||at in it)&&it[at]===tt)return o||at||0;return!o&&-1}},_shared={exports:{}},_library=!0,core$2=_coreExports,global$3=_globalExports,SHARED="__core-js_shared__",store$1=global$3[SHARED]||(global$3[SHARED]={});(_shared.exports=function(o,et){return store$1[o]||(store$1[o]=et!==void 0?et:{})})("versions",[]).push({version:core$2.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var _sharedExports=_shared.exports,id$1=0,px=Math.random(),_uid=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++id$1+px).toString(36))},shared$1=_sharedExports("keys"),uid$2=_uid,_sharedKey=function(o){return shared$1[o]||(shared$1[o]=uid$2(o))},has$5=_has,toIObject$4=_toIobject,arrayIndexOf=_arrayIncludes(!1),IE_PROTO$2=_sharedKey("IE_PROTO"),_objectKeysInternal=function(o,et){var tt=toIObject$4(o),rt=0,it=[],nt;for(nt in tt)nt!=IE_PROTO$2&&has$5(tt,nt)&&it.push(nt);for(;et.length>rt;)has$5(tt,nt=et[rt++])&&(~arrayIndexOf(it,nt)||it.push(nt));return it},_enumBugKeys="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),$keys$2=_objectKeysInternal,enumBugKeys$1=_enumBugKeys,_objectKeys=Object.keys||function o(et){return $keys$2(et,enumBugKeys$1)},_objectGops={};_objectGops.f=Object.getOwnPropertySymbols;var _objectPie={},hasRequired_objectPie;function require_objectPie(){return hasRequired_objectPie||(hasRequired_objectPie=1,_objectPie.f={}.propertyIsEnumerable),_objectPie}var defined$1=_defined,_toObject=function(o){return Object(defined$1(o))},_objectAssign,hasRequired_objectAssign;function require_objectAssign(){if(hasRequired_objectAssign)return _objectAssign;hasRequired_objectAssign=1;var o=require_descriptors(),et=_objectKeys,tt=_objectGops,rt=require_objectPie(),it=_toObject,nt=require_iobject(),at=Object.assign;return _objectAssign=!at||_fails(function(){var st={},ot={},lt=Symbol(),ht="abcdefghijklmnopqrst";return st[lt]=7,ht.split("").forEach(function(yt){ot[yt]=yt}),at({},st)[lt]!=7||Object.keys(at({},ot)).join("")!=ht})?function(ot,lt){for(var ht=it(ot),yt=arguments.length,gt=1,bt=tt.f,dt=rt.f;yt>gt;)for(var mt=nt(arguments[gt++]),St=bt?et(mt).concat(bt(mt)):et(mt),pt=St.length,kt=0,Et;pt>kt;)Et=St[kt++],(!o||dt.call(mt,Et))&&(ht[Et]=mt[Et]);return ht}:at,_objectAssign}var $export$6=_export;$export$6($export$6.S+$export$6.F,"Object",{assign:require_objectAssign()});var assign$1=_coreExports.Object.assign,assign={default:assign$1,__esModule:!0};_extends.__esModule=!0;var _assign=assign,_assign2=_interopRequireDefault$5(_assign);function _interopRequireDefault$5(o){return o&&o.__esModule?o:{default:o}}_extends.default=_assign2.default||function(o){for(var et=1;et=nt?o?"":void 0:(at=rt.charCodeAt(it),at<55296||at>56319||it+1===nt||(st=rt.charCodeAt(it+1))<56320||st>57343?o?rt.charAt(it):at:o?rt.slice(it,it+2):(at-55296<<10)+(st-56320)+65536)}},_redefine=_hide,_iterators={},dP$1=require_objectDp(),anObject$2=_anObject,getKeys$1=_objectKeys,_objectDps=require_descriptors()?Object.defineProperties:function o(et,tt){anObject$2(et);for(var rt=getKeys$1(tt),it=rt.length,nt=0,at;it>nt;)dP$1.f(et,at=rt[nt++],tt[at]);return et},_html,hasRequired_html;function require_html(){if(hasRequired_html)return _html;hasRequired_html=1;var o=_globalExports.document;return _html=o&&o.documentElement,_html}var anObject$1=_anObject,dPs=_objectDps,enumBugKeys=_enumBugKeys,IE_PROTO=_sharedKey("IE_PROTO"),Empty=function(){},PROTOTYPE$1="prototype",createDict=function(){var o=require_domCreate()("iframe"),et=enumBugKeys.length,tt="<",rt=">",it;for(o.style.display="none",require_html().appendChild(o),o.src="javascript:",it=o.contentWindow.document,it.open(),it.write(tt+"script"+rt+"document.F=Object"+tt+"/script"+rt),it.close(),createDict=it.F;et--;)delete createDict[PROTOTYPE$1][enumBugKeys[et]];return createDict()},_objectCreate=Object.create||function o(et,tt){var rt;return et!==null?(Empty[PROTOTYPE$1]=anObject$1(et),rt=new Empty,Empty[PROTOTYPE$1]=null,rt[IE_PROTO]=et):rt=createDict(),tt===void 0?rt:dPs(rt,tt)},_wks={exports:{}},store=_sharedExports("wks"),uid$1=_uid,Symbol$1=_globalExports.Symbol,USE_SYMBOL=typeof Symbol$1=="function",$exports=_wks.exports=function(o){return store[o]||(store[o]=USE_SYMBOL&&Symbol$1[o]||(USE_SYMBOL?Symbol$1:uid$1)("Symbol."+o))};$exports.store=store;var _wksExports=_wks.exports,def=require_objectDp().f,has$3=_has,TAG=_wksExports("toStringTag"),_setToStringTag=function(o,et,tt){o&&!has$3(o=tt?o:o.prototype,TAG)&&def(o,TAG,{configurable:!0,value:et})},create$2=_objectCreate,descriptor=_propertyDesc,setToStringTag$2=_setToStringTag,IteratorPrototype={};_hide(IteratorPrototype,_wksExports("iterator"),function(){return this});var _iterCreate=function(o,et,tt){o.prototype=create$2(IteratorPrototype,{next:descriptor(1,tt)}),setToStringTag$2(o,et+" Iterator")},$export$3=_export,redefine$1=_redefine,hide$1=_hide,Iterators$2=_iterators,$iterCreate=_iterCreate,setToStringTag$1=_setToStringTag,getPrototypeOf=_objectGpo,ITERATOR=_wksExports("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values",returnThis=function(){return this},_iterDefine=function(o,et,tt,rt,it,nt,at){$iterCreate(tt,et,rt);var st=function(Et){if(!BUGGY&&Et in yt)return yt[Et];switch(Et){case KEYS:return function(){return new tt(this,Et)};case VALUES:return function(){return new tt(this,Et)}}return function(){return new tt(this,Et)}},ot=et+" Iterator",lt=it==VALUES,ht=!1,yt=o.prototype,gt=yt[ITERATOR]||yt[FF_ITERATOR]||it&&yt[it],bt=gt||st(it),dt=it?lt?st("entries"):bt:void 0,mt=et=="Array"&&yt.entries||gt,St,pt,kt;if(mt&&(kt=getPrototypeOf(mt.call(new o)),kt!==Object.prototype&&kt.next&&setToStringTag$1(kt,ot,!0)),lt&>&>.name!==VALUES&&(ht=!0,bt=function(){return gt.call(this)}),at&&(BUGGY||ht||!yt[ITERATOR])&&hide$1(yt,ITERATOR,bt),Iterators$2[et]=bt,Iterators$2[ot]=returnThis,it)if(St={values:lt?bt:st(VALUES),keys:nt?bt:st(KEYS),entries:dt},at)for(pt in St)pt in yt||redefine$1(yt,pt,St[pt]);else $export$3($export$3.P+$export$3.F*(BUGGY||ht),et,St);return St},$at=_stringAt(!0);_iterDefine(String,"String",function(o){this._t=String(o),this._i=0},function(){var o=this._t,et=this._i,tt;return et>=o.length?{value:void 0,done:!0}:(tt=$at(o,et),this._i+=tt.length,{value:tt,done:!1})});var _iterStep=function(o,et){return{value:et,done:!!o}},step=_iterStep,Iterators$1=_iterators,toIObject$3=_toIobject;_iterDefine(Array,"Array",function(o,et){this._t=toIObject$3(o),this._i=0,this._k=et},function(){var o=this._t,et=this._k,tt=this._i++;return!o||tt>=o.length?(this._t=void 0,step(1)):et=="keys"?step(0,tt):et=="values"?step(0,o[tt]):step(0,[tt,o[tt]])},"values");Iterators$1.Arguments=Iterators$1.Array;var global$2=_globalExports,hide=_hide,Iterators=_iterators,TO_STRING_TAG=_wksExports("toStringTag"),DOMIterables="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(",");for(var i=0;int;)it.call(o,at=rt[nt++])&&et.push(at);return et},cof=_cof,_isArray=Array.isArray||function o(et){return cof(et)=="Array"},_objectGopnExt={},_objectGopn={},$keys$1=_objectKeysInternal,hiddenKeys=_enumBugKeys.concat("length","prototype");_objectGopn.f=Object.getOwnPropertyNames||function o(et){return $keys$1(et,hiddenKeys)};var toIObject$2=_toIobject,gOPN$1=_objectGopn.f,toString={}.toString,windowNames=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(o){try{return gOPN$1(o)}catch{return windowNames.slice()}};_objectGopnExt.f=function o(et){return windowNames&&toString.call(et)=="[object Window]"?getWindowNames(et):gOPN$1(toIObject$2(et))};var _objectGopd={},pIE=require_objectPie(),createDesc$1=_propertyDesc,toIObject$1=_toIobject,toPrimitive$1=_toPrimitive,has$1=_has,IE8_DOM_DEFINE=require_ie8DomDefine(),gOPD$1=Object.getOwnPropertyDescriptor;_objectGopd.f=require_descriptors()?gOPD$1:function o(et,tt){if(et=toIObject$1(et),tt=toPrimitive$1(tt,!0),IE8_DOM_DEFINE)try{return gOPD$1(et,tt)}catch{}if(has$1(et,tt))return createDesc$1(!pIE.f.call(et,tt),et[tt])};var global$1=_globalExports,has=_has,DESCRIPTORS=require_descriptors(),$export$2=_export,redefine=_redefine,META=_metaExports.KEY,$fails=_fails,shared=_sharedExports,setToStringTag=_setToStringTag,uid=_uid,wks=_wksExports,wksExt=_wksExt,wksDefine=_wksDefine,enumKeys=_enumKeys,isArray=_isArray,anObject=_anObject,isObject=_isObject,toObject=_toObject,toIObject=_toIobject,toPrimitive=_toPrimitive,createDesc=_propertyDesc,_create$1=_objectCreate,gOPNExt=_objectGopnExt,$GOPD=_objectGopd,$GOPS=_objectGops,$DP=require_objectDp(),$keys=_objectKeys,gOPD=$GOPD.f,dP=$DP.f,gOPN=gOPNExt.f,$Symbol=global$1.Symbol,$JSON=global$1.JSON,_stringify=$JSON&&$JSON.stringify,PROTOTYPE="prototype",HIDDEN=wks("_hidden"),TO_PRIMITIVE=wks("toPrimitive"),isEnum={}.propertyIsEnumerable,SymbolRegistry=shared("symbol-registry"),AllSymbols=shared("symbols"),OPSymbols=shared("op-symbols"),ObjectProto=Object[PROTOTYPE],USE_NATIVE=typeof $Symbol=="function"&&!!$GOPS.f,QObject=global$1.QObject,setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDesc=DESCRIPTORS&&$fails(function(){return _create$1(dP({},"a",{get:function(){return dP(this,"a",{value:7}).a}})).a!=7})?function(o,et,tt){var rt=gOPD(ObjectProto,et);rt&&delete ObjectProto[et],dP(o,et,tt),rt&&o!==ObjectProto&&dP(ObjectProto,et,rt)}:dP,wrap=function(o){var et=AllSymbols[o]=_create$1($Symbol[PROTOTYPE]);return et._k=o,et},isSymbol=USE_NATIVE&&typeof $Symbol.iterator=="symbol"?function(o){return typeof o=="symbol"}:function(o){return o instanceof $Symbol},$defineProperty=function o(et,tt,rt){return et===ObjectProto&&$defineProperty(OPSymbols,tt,rt),anObject(et),tt=toPrimitive(tt,!0),anObject(rt),has(AllSymbols,tt)?(rt.enumerable?(has(et,HIDDEN)&&et[HIDDEN][tt]&&(et[HIDDEN][tt]=!1),rt=_create$1(rt,{enumerable:createDesc(0,!1)})):(has(et,HIDDEN)||dP(et,HIDDEN,createDesc(1,{})),et[HIDDEN][tt]=!0),setSymbolDesc(et,tt,rt)):dP(et,tt,rt)},$defineProperties=function o(et,tt){anObject(et);for(var rt=enumKeys(tt=toIObject(tt)),it=0,nt=rt.length,at;nt>it;)$defineProperty(et,at=rt[it++],tt[at]);return et},$create=function o(et,tt){return tt===void 0?_create$1(et):$defineProperties(_create$1(et),tt)},$propertyIsEnumerable=function o(et){var tt=isEnum.call(this,et=toPrimitive(et,!0));return this===ObjectProto&&has(AllSymbols,et)&&!has(OPSymbols,et)?!1:tt||!has(this,et)||!has(AllSymbols,et)||has(this,HIDDEN)&&this[HIDDEN][et]?tt:!0},$getOwnPropertyDescriptor=function o(et,tt){if(et=toIObject(et),tt=toPrimitive(tt,!0),!(et===ObjectProto&&has(AllSymbols,tt)&&!has(OPSymbols,tt))){var rt=gOPD(et,tt);return rt&&has(AllSymbols,tt)&&!(has(et,HIDDEN)&&et[HIDDEN][tt])&&(rt.enumerable=!0),rt}},$getOwnPropertyNames=function o(et){for(var tt=gOPN(toIObject(et)),rt=[],it=0,nt;tt.length>it;)!has(AllSymbols,nt=tt[it++])&&nt!=HIDDEN&&nt!=META&&rt.push(nt);return rt},$getOwnPropertySymbols=function o(et){for(var tt=et===ObjectProto,rt=gOPN(tt?OPSymbols:toIObject(et)),it=[],nt=0,at;rt.length>nt;)has(AllSymbols,at=rt[nt++])&&(!tt||has(ObjectProto,at))&&it.push(AllSymbols[at]);return it};USE_NATIVE||($Symbol=function(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor!");var et=uid(arguments.length>0?arguments[0]:void 0),tt=function(rt){this===ObjectProto&&tt.call(OPSymbols,rt),has(this,HIDDEN)&&has(this[HIDDEN],et)&&(this[HIDDEN][et]=!1),setSymbolDesc(this,et,createDesc(1,rt))};return DESCRIPTORS&&setter&&setSymbolDesc(ObjectProto,et,{configurable:!0,set:tt}),wrap(et)},redefine($Symbol[PROTOTYPE],"toString",function(){return this._k}),$GOPD.f=$getOwnPropertyDescriptor,$DP.f=$defineProperty,_objectGopn.f=gOPNExt.f=$getOwnPropertyNames,require_objectPie().f=$propertyIsEnumerable,$GOPS.f=$getOwnPropertySymbols,DESCRIPTORS&&!_library&&redefine(ObjectProto,"propertyIsEnumerable",$propertyIsEnumerable),wksExt.f=function(o){return wrap(wks(o))});$export$2($export$2.G+$export$2.W+$export$2.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),j=0;es6Symbols.length>j;)wks(es6Symbols[j++]);for(var wellKnownSymbols=$keys(wks.store),k=0;wellKnownSymbols.length>k;)wksDefine(wellKnownSymbols[k++]);$export$2($export$2.S+$export$2.F*!USE_NATIVE,"Symbol",{for:function(o){return has(SymbolRegistry,o+="")?SymbolRegistry[o]:SymbolRegistry[o]=$Symbol(o)},keyFor:function o(et){if(!isSymbol(et))throw TypeError(et+" is not a symbol!");for(var tt in SymbolRegistry)if(SymbolRegistry[tt]===et)return tt},useSetter:function(){setter=!0},useSimple:function(){setter=!1}});$export$2($export$2.S+$export$2.F*!USE_NATIVE,"Object",{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});var FAILS_ON_PRIMITIVES=$fails(function(){$GOPS.f(1)});$export$2($export$2.S+$export$2.F*FAILS_ON_PRIMITIVES,"Object",{getOwnPropertySymbols:function o(et){return $GOPS.f(toObject(et))}});$JSON&&$export$2($export$2.S+$export$2.F*(!USE_NATIVE||$fails(function(){var o=$Symbol();return _stringify([o])!="[null]"||_stringify({a:o})!="{}"||_stringify(Object(o))!="{}"})),"JSON",{stringify:function o(et){for(var tt=[et],rt=1,it,nt;arguments.length>rt;)tt.push(arguments[rt++]);if(nt=it=tt[1],!(!isObject(it)&&et===void 0||isSymbol(et)))return isArray(it)||(it=function(at,st){if(typeof nt=="function"&&(st=nt.call(this,at,st)),!isSymbol(st))return st}),tt[1]=it,_stringify.apply($JSON,tt)}});$Symbol[PROTOTYPE][TO_PRIMITIVE]||_hide($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf);setToStringTag($Symbol,"Symbol");setToStringTag(Math,"Math",!0);setToStringTag(global$1.JSON,"JSON",!0);_wksDefine("asyncIterator");_wksDefine("observable");var symbol$1=_coreExports.Symbol,symbol={default:symbol$1,__esModule:!0};_typeof$1.__esModule=!0;var _iterator=iterator,_iterator2=_interopRequireDefault$3(_iterator),_symbol=symbol,_symbol2=_interopRequireDefault$3(_symbol),_typeof=typeof _symbol2.default=="function"&&typeof _iterator2.default=="symbol"?function(o){return typeof o}:function(o){return o&&typeof _symbol2.default=="function"&&o.constructor===_symbol2.default&&o!==_symbol2.default.prototype?"symbol":typeof o};function _interopRequireDefault$3(o){return o&&o.__esModule?o:{default:o}}_typeof$1.default=typeof _symbol2.default=="function"&&_typeof(_iterator2.default)==="symbol"?function(o){return typeof o>"u"?"undefined":_typeof(o)}:function(o){return o&&typeof _symbol2.default=="function"&&o.constructor===_symbol2.default&&o!==_symbol2.default.prototype?"symbol":typeof o>"u"?"undefined":_typeof(o)};possibleConstructorReturn.__esModule=!0;var _typeof2$1=_typeof$1,_typeof3$1=_interopRequireDefault$2(_typeof2$1);function _interopRequireDefault$2(o){return o&&o.__esModule?o:{default:o}}possibleConstructorReturn.default=function(o,et){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&((typeof et>"u"?"undefined":(0,_typeof3$1.default)(et))==="object"||typeof et=="function")?et:o};var inherits={},_setProto,hasRequired_setProto;function require_setProto(){if(hasRequired_setProto)return _setProto;hasRequired_setProto=1;var o=_isObject,et=_anObject,tt=function(rt,it){if(et(rt),!o(it)&&it!==null)throw TypeError(it+": can't set as prototype!")};return _setProto={set:Object.setPrototypeOf||("__proto__"in{}?function(rt,it,nt){try{nt=_ctx(Function.call,_objectGopd.f(Object.prototype,"__proto__").set,2),nt(rt,[]),it=!(rt instanceof Array)}catch{it=!0}return function(st,ot){return tt(st,ot),it?st.__proto__=ot:nt(st,ot),st}}({},!1):void 0),check:tt},_setProto}var $export$1=_export;$export$1($export$1.S,"Object",{setPrototypeOf:require_setProto().set});var setPrototypeOf$1=_coreExports.Object.setPrototypeOf,setPrototypeOf={default:setPrototypeOf$1,__esModule:!0},$export=_export;$export($export.S,"Object",{create:_objectCreate});var $Object=_coreExports.Object,create$1=function o(et,tt){return $Object.create(et,tt)},create={default:create$1,__esModule:!0};inherits.__esModule=!0;var _setPrototypeOf=setPrototypeOf,_setPrototypeOf2=_interopRequireDefault$1(_setPrototypeOf),_create=create,_create2=_interopRequireDefault$1(_create),_typeof2=_typeof$1,_typeof3=_interopRequireDefault$1(_typeof2);function _interopRequireDefault$1(o){return o&&o.__esModule?o:{default:o}}inherits.default=function(o,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof et>"u"?"undefined":(0,_typeof3.default)(et)));o.prototype=(0,_create2.default)(et&&et.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),et&&(_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(o,et):o.__proto__=et)};Object.defineProperty(dist,"__esModule",{value:!0});var _extends2=_extends,_extends3=_interopRequireDefault(_extends2),_getPrototypeOf=getPrototypeOf$1,_getPrototypeOf2=_interopRequireDefault(_getPrototypeOf),_classCallCheck2=classCallCheck,_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=createClass,_createClass3=_interopRequireDefault(_createClass2),_possibleConstructorReturn2=possibleConstructorReturn,_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=inherits,_inherits3=_interopRequireDefault(_inherits2),_react=reactExports,_react2=_interopRequireDefault(_react),_propTypes=propTypesExports,_propTypes2=_interopRequireDefault(_propTypes),_lottieWeb=lottieExports,_lottieWeb2=_interopRequireDefault(_lottieWeb);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var Lottie=function(o){(0,_inherits3.default)(et,o);function et(){var tt,rt,it,nt;(0,_classCallCheck3.default)(this,et);for(var at=arguments.length,st=Array(at),ot=0;otjsxRuntimeExports.jsx(Flex,{style:{width:"167px",height:"167px",opacity:.5},children:jsxRuntimeExports.jsx(_default,{height:167,options:{loop:!0,autoplay:!0,animationData:preloadData,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}},width:167})});function r(o){var et,tt,rt="";if(typeof o=="string"||typeof o=="number")rt+=o;else if(typeof o=="object")if(Array.isArray(o))for(et=0;et{const[et,tt]=reactExports.useState(0),rt=o.filter(it=>it.value!=="0");return reactExports.useEffect(()=>{const it=setInterval(()=>tt(nt=>(nt+1)%o.length),1e3);return()=>clearInterval(it)},[et]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:rt.map(({key:it,value:nt},at)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:et===at}),children:nt},it))}),jsxRuntimeExports.jsx(Flex,{children:rt.map(({key:it,label:nt},at)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:et===at}),children:jsxRuntimeExports.jsx("div",{className:"label",children:nt})},it))})]})},TextWrapper=styled$3.div` +`;var dist={},_extends={},_global={exports:{}},global$5=_global.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=global$5);var _globalExports=_global.exports,_core={exports:{}},core$4=_core.exports={version:"2.6.12"};typeof __e=="number"&&(__e=core$4);var _coreExports=_core.exports,_aFunction=function(o){if(typeof o!="function")throw TypeError(o+" is not a function!");return o},aFunction=_aFunction,_ctx=function(o,et,tt){if(aFunction(o),et===void 0)return o;switch(tt){case 1:return function(rt){return o.call(et,rt)};case 2:return function(rt,it){return o.call(et,rt,it)};case 3:return function(rt,it,nt){return o.call(et,rt,it,nt)}}return function(){return o.apply(et,arguments)}},_objectDp={},_isObject=function(o){return typeof o=="object"?o!==null:typeof o=="function"},isObject$3=_isObject,_anObject=function(o){if(!isObject$3(o))throw TypeError(o+" is not an object!");return o},_fails=function(o){try{return!!o()}catch{return!0}},_descriptors=!_fails(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),_domCreate,hasRequired_domCreate;function require_domCreate(){if(hasRequired_domCreate)return _domCreate;hasRequired_domCreate=1;var o=_isObject,et=_globalExports.document,tt=o(et)&&o(et.createElement);return _domCreate=function(rt){return tt?et.createElement(rt):{}},_domCreate}var _ie8DomDefine=!_descriptors&&!_fails(function(){return Object.defineProperty(require_domCreate()("div"),"a",{get:function(){return 7}}).a!=7}),isObject$2=_isObject,_toPrimitive=function(o,et){if(!isObject$2(o))return o;var tt,rt;if(et&&typeof(tt=o.toString)=="function"&&!isObject$2(rt=tt.call(o))||typeof(tt=o.valueOf)=="function"&&!isObject$2(rt=tt.call(o))||!et&&typeof(tt=o.toString)=="function"&&!isObject$2(rt=tt.call(o)))return rt;throw TypeError("Can't convert object to primitive value")},anObject$3=_anObject,IE8_DOM_DEFINE$1=_ie8DomDefine,toPrimitive$2=_toPrimitive,dP$3=Object.defineProperty;_objectDp.f=_descriptors?Object.defineProperty:function o(et,tt,rt){if(anObject$3(et),tt=toPrimitive$2(tt,!0),anObject$3(rt),IE8_DOM_DEFINE$1)try{return dP$3(et,tt,rt)}catch{}if("get"in rt||"set"in rt)throw TypeError("Accessors not supported!");return"value"in rt&&(et[tt]=rt.value),et};var _propertyDesc=function(o,et){return{enumerable:!(o&1),configurable:!(o&2),writable:!(o&4),value:et}},dP$2=_objectDp,createDesc$2=_propertyDesc,_hide=_descriptors?function(o,et,tt){return dP$2.f(o,et,createDesc$2(1,tt))}:function(o,et,tt){return o[et]=tt,o},hasOwnProperty={}.hasOwnProperty,_has=function(o,et){return hasOwnProperty.call(o,et)},global$4=_globalExports,core$3=_coreExports,ctx=_ctx,hide$2=_hide,has$6=_has,PROTOTYPE$2="prototype",$export$7=function(o,et,tt){var rt=o&$export$7.F,it=o&$export$7.G,nt=o&$export$7.S,at=o&$export$7.P,st=o&$export$7.B,ot=o&$export$7.W,lt=it?core$3:core$3[et]||(core$3[et]={}),ht=lt[PROTOTYPE$2],yt=it?global$4:nt?global$4[et]:(global$4[et]||{})[PROTOTYPE$2],gt,bt,dt;it&&(tt=et);for(gt in tt)bt=!rt&&yt&&yt[gt]!==void 0,!(bt&&has$6(lt,gt))&&(dt=bt?yt[gt]:tt[gt],lt[gt]=it&&typeof yt[gt]!="function"?tt[gt]:st&&bt?ctx(dt,global$4):ot&&yt[gt]==dt?function(mt){var St=function(pt,kt,Et){if(this instanceof mt){switch(arguments.length){case 0:return new mt;case 1:return new mt(pt);case 2:return new mt(pt,kt)}return new mt(pt,kt,Et)}return mt.apply(this,arguments)};return St[PROTOTYPE$2]=mt[PROTOTYPE$2],St}(dt):at&&typeof dt=="function"?ctx(Function.call,dt):dt,at&&((lt.virtual||(lt.virtual={}))[gt]=dt,o&$export$7.R&&ht&&!ht[gt]&&hide$2(ht,gt,dt)))};$export$7.F=1;$export$7.G=2;$export$7.S=4;$export$7.P=8;$export$7.B=16;$export$7.W=32;$export$7.U=64;$export$7.R=128;var _export=$export$7,toString$1={}.toString,_cof=function(o){return toString$1.call(o).slice(8,-1)},_iobject,hasRequired_iobject;function require_iobject(){if(hasRequired_iobject)return _iobject;hasRequired_iobject=1;var o=_cof;return _iobject=Object("z").propertyIsEnumerable(0)?Object:function(et){return o(et)=="String"?et.split(""):Object(et)},_iobject}var _defined=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o},IObject=require_iobject(),defined$2=_defined,_toIobject=function(o){return IObject(defined$2(o))},ceil=Math.ceil,floor=Math.floor,_toInteger=function(o){return isNaN(o=+o)?0:(o>0?floor:ceil)(o)},toInteger$2=_toInteger,min$1=Math.min,_toLength=function(o){return o>0?min$1(toInteger$2(o),9007199254740991):0},toInteger$1=_toInteger,max=Math.max,min=Math.min,_toAbsoluteIndex=function(o,et){return o=toInteger$1(o),o<0?max(o+et,0):min(o,et)},toIObject$5=_toIobject,toLength=_toLength,toAbsoluteIndex=_toAbsoluteIndex,_arrayIncludes=function(o){return function(et,tt,rt){var it=toIObject$5(et),nt=toLength(it.length),at=toAbsoluteIndex(rt,nt),st;if(o&&tt!=tt){for(;nt>at;)if(st=it[at++],st!=st)return!0}else for(;nt>at;at++)if((o||at in it)&&it[at]===tt)return o||at||0;return!o&&-1}},_shared={exports:{}},_library=!0,core$2=_coreExports,global$3=_globalExports,SHARED="__core-js_shared__",store$1=global$3[SHARED]||(global$3[SHARED]={});(_shared.exports=function(o,et){return store$1[o]||(store$1[o]=et!==void 0?et:{})})("versions",[]).push({version:core$2.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var _sharedExports=_shared.exports,id$1=0,px=Math.random(),_uid=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++id$1+px).toString(36))},shared$1=_sharedExports("keys"),uid$2=_uid,_sharedKey=function(o){return shared$1[o]||(shared$1[o]=uid$2(o))},has$5=_has,toIObject$4=_toIobject,arrayIndexOf=_arrayIncludes(!1),IE_PROTO$2=_sharedKey("IE_PROTO"),_objectKeysInternal=function(o,et){var tt=toIObject$4(o),rt=0,it=[],nt;for(nt in tt)nt!=IE_PROTO$2&&has$5(tt,nt)&&it.push(nt);for(;et.length>rt;)has$5(tt,nt=et[rt++])&&(~arrayIndexOf(it,nt)||it.push(nt));return it},_enumBugKeys="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),$keys$2=_objectKeysInternal,enumBugKeys$1=_enumBugKeys,_objectKeys=Object.keys||function o(et){return $keys$2(et,enumBugKeys$1)},_objectGops={};_objectGops.f=Object.getOwnPropertySymbols;var _objectPie={},hasRequired_objectPie;function require_objectPie(){return hasRequired_objectPie||(hasRequired_objectPie=1,_objectPie.f={}.propertyIsEnumerable),_objectPie}var defined$1=_defined,_toObject=function(o){return Object(defined$1(o))},_objectAssign,hasRequired_objectAssign;function require_objectAssign(){if(hasRequired_objectAssign)return _objectAssign;hasRequired_objectAssign=1;var o=_descriptors,et=_objectKeys,tt=_objectGops,rt=require_objectPie(),it=_toObject,nt=require_iobject(),at=Object.assign;return _objectAssign=!at||_fails(function(){var st={},ot={},lt=Symbol(),ht="abcdefghijklmnopqrst";return st[lt]=7,ht.split("").forEach(function(yt){ot[yt]=yt}),at({},st)[lt]!=7||Object.keys(at({},ot)).join("")!=ht})?function(ot,lt){for(var ht=it(ot),yt=arguments.length,gt=1,bt=tt.f,dt=rt.f;yt>gt;)for(var mt=nt(arguments[gt++]),St=bt?et(mt).concat(bt(mt)):et(mt),pt=St.length,kt=0,Et;pt>kt;)Et=St[kt++],(!o||dt.call(mt,Et))&&(ht[Et]=mt[Et]);return ht}:at,_objectAssign}var $export$6=_export;$export$6($export$6.S+$export$6.F,"Object",{assign:require_objectAssign()});var assign$1=_coreExports.Object.assign,assign={default:assign$1,__esModule:!0};_extends.__esModule=!0;var _assign=assign,_assign2=_interopRequireDefault$5(_assign);function _interopRequireDefault$5(o){return o&&o.__esModule?o:{default:o}}_extends.default=_assign2.default||function(o){for(var et=1;et=nt?o?"":void 0:(at=rt.charCodeAt(it),at<55296||at>56319||it+1===nt||(st=rt.charCodeAt(it+1))<56320||st>57343?o?rt.charAt(it):at:o?rt.slice(it,it+2):(at-55296<<10)+(st-56320)+65536)}},_redefine=_hide,_iterators={},dP$1=_objectDp,anObject$2=_anObject,getKeys$1=_objectKeys,_objectDps=_descriptors?Object.defineProperties:function o(et,tt){anObject$2(et);for(var rt=getKeys$1(tt),it=rt.length,nt=0,at;it>nt;)dP$1.f(et,at=rt[nt++],tt[at]);return et},_html,hasRequired_html;function require_html(){if(hasRequired_html)return _html;hasRequired_html=1;var o=_globalExports.document;return _html=o&&o.documentElement,_html}var anObject$1=_anObject,dPs=_objectDps,enumBugKeys=_enumBugKeys,IE_PROTO=_sharedKey("IE_PROTO"),Empty=function(){},PROTOTYPE$1="prototype",createDict=function(){var o=require_domCreate()("iframe"),et=enumBugKeys.length,tt="<",rt=">",it;for(o.style.display="none",require_html().appendChild(o),o.src="javascript:",it=o.contentWindow.document,it.open(),it.write(tt+"script"+rt+"document.F=Object"+tt+"/script"+rt),it.close(),createDict=it.F;et--;)delete createDict[PROTOTYPE$1][enumBugKeys[et]];return createDict()},_objectCreate=Object.create||function o(et,tt){var rt;return et!==null?(Empty[PROTOTYPE$1]=anObject$1(et),rt=new Empty,Empty[PROTOTYPE$1]=null,rt[IE_PROTO]=et):rt=createDict(),tt===void 0?rt:dPs(rt,tt)},_wks={exports:{}},store=_sharedExports("wks"),uid$1=_uid,Symbol$1=_globalExports.Symbol,USE_SYMBOL=typeof Symbol$1=="function",$exports=_wks.exports=function(o){return store[o]||(store[o]=USE_SYMBOL&&Symbol$1[o]||(USE_SYMBOL?Symbol$1:uid$1)("Symbol."+o))};$exports.store=store;var _wksExports=_wks.exports,def=_objectDp.f,has$3=_has,TAG=_wksExports("toStringTag"),_setToStringTag=function(o,et,tt){o&&!has$3(o=tt?o:o.prototype,TAG)&&def(o,TAG,{configurable:!0,value:et})},create$2=_objectCreate,descriptor=_propertyDesc,setToStringTag$2=_setToStringTag,IteratorPrototype={};_hide(IteratorPrototype,_wksExports("iterator"),function(){return this});var _iterCreate=function(o,et,tt){o.prototype=create$2(IteratorPrototype,{next:descriptor(1,tt)}),setToStringTag$2(o,et+" Iterator")},$export$3=_export,redefine$1=_redefine,hide$1=_hide,Iterators$2=_iterators,$iterCreate=_iterCreate,setToStringTag$1=_setToStringTag,getPrototypeOf=_objectGpo,ITERATOR=_wksExports("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values",returnThis=function(){return this},_iterDefine=function(o,et,tt,rt,it,nt,at){$iterCreate(tt,et,rt);var st=function(Et){if(!BUGGY&&Et in yt)return yt[Et];switch(Et){case KEYS:return function(){return new tt(this,Et)};case VALUES:return function(){return new tt(this,Et)}}return function(){return new tt(this,Et)}},ot=et+" Iterator",lt=it==VALUES,ht=!1,yt=o.prototype,gt=yt[ITERATOR]||yt[FF_ITERATOR]||it&&yt[it],bt=gt||st(it),dt=it?lt?st("entries"):bt:void 0,mt=et=="Array"&&yt.entries||gt,St,pt,kt;if(mt&&(kt=getPrototypeOf(mt.call(new o)),kt!==Object.prototype&&kt.next&&setToStringTag$1(kt,ot,!0)),lt&>&>.name!==VALUES&&(ht=!0,bt=function(){return gt.call(this)}),at&&(BUGGY||ht||!yt[ITERATOR])&&hide$1(yt,ITERATOR,bt),Iterators$2[et]=bt,Iterators$2[ot]=returnThis,it)if(St={values:lt?bt:st(VALUES),keys:nt?bt:st(KEYS),entries:dt},at)for(pt in St)pt in yt||redefine$1(yt,pt,St[pt]);else $export$3($export$3.P+$export$3.F*(BUGGY||ht),et,St);return St},$at=_stringAt(!0);_iterDefine(String,"String",function(o){this._t=String(o),this._i=0},function(){var o=this._t,et=this._i,tt;return et>=o.length?{value:void 0,done:!0}:(tt=$at(o,et),this._i+=tt.length,{value:tt,done:!1})});var _iterStep=function(o,et){return{value:et,done:!!o}},step=_iterStep,Iterators$1=_iterators,toIObject$3=_toIobject;_iterDefine(Array,"Array",function(o,et){this._t=toIObject$3(o),this._i=0,this._k=et},function(){var o=this._t,et=this._k,tt=this._i++;return!o||tt>=o.length?(this._t=void 0,step(1)):et=="keys"?step(0,tt):et=="values"?step(0,o[tt]):step(0,[tt,o[tt]])},"values");Iterators$1.Arguments=Iterators$1.Array;var global$2=_globalExports,hide=_hide,Iterators=_iterators,TO_STRING_TAG=_wksExports("toStringTag"),DOMIterables="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(",");for(var i=0;int;)it.call(o,at=rt[nt++])&&et.push(at);return et},cof=_cof,_isArray=Array.isArray||function o(et){return cof(et)=="Array"},_objectGopnExt={},_objectGopn={},$keys$1=_objectKeysInternal,hiddenKeys=_enumBugKeys.concat("length","prototype");_objectGopn.f=Object.getOwnPropertyNames||function o(et){return $keys$1(et,hiddenKeys)};var toIObject$2=_toIobject,gOPN$1=_objectGopn.f,toString={}.toString,windowNames=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(o){try{return gOPN$1(o)}catch{return windowNames.slice()}};_objectGopnExt.f=function o(et){return windowNames&&toString.call(et)=="[object Window]"?getWindowNames(et):gOPN$1(toIObject$2(et))};var _objectGopd={},pIE=require_objectPie(),createDesc$1=_propertyDesc,toIObject$1=_toIobject,toPrimitive$1=_toPrimitive,has$1=_has,IE8_DOM_DEFINE=_ie8DomDefine,gOPD$1=Object.getOwnPropertyDescriptor;_objectGopd.f=_descriptors?gOPD$1:function o(et,tt){if(et=toIObject$1(et),tt=toPrimitive$1(tt,!0),IE8_DOM_DEFINE)try{return gOPD$1(et,tt)}catch{}if(has$1(et,tt))return createDesc$1(!pIE.f.call(et,tt),et[tt])};var global$1=_globalExports,has=_has,DESCRIPTORS=_descriptors,$export$2=_export,redefine=_redefine,META=_metaExports.KEY,$fails=_fails,shared=_sharedExports,setToStringTag=_setToStringTag,uid=_uid,wks=_wksExports,wksExt=_wksExt,wksDefine=_wksDefine,enumKeys=_enumKeys,isArray=_isArray,anObject=_anObject,isObject=_isObject,toObject=_toObject,toIObject=_toIobject,toPrimitive=_toPrimitive,createDesc=_propertyDesc,_create$1=_objectCreate,gOPNExt=_objectGopnExt,$GOPD=_objectGopd,$GOPS=_objectGops,$DP=_objectDp,$keys=_objectKeys,gOPD=$GOPD.f,dP=$DP.f,gOPN=gOPNExt.f,$Symbol=global$1.Symbol,$JSON=global$1.JSON,_stringify=$JSON&&$JSON.stringify,PROTOTYPE="prototype",HIDDEN=wks("_hidden"),TO_PRIMITIVE=wks("toPrimitive"),isEnum={}.propertyIsEnumerable,SymbolRegistry=shared("symbol-registry"),AllSymbols=shared("symbols"),OPSymbols=shared("op-symbols"),ObjectProto=Object[PROTOTYPE],USE_NATIVE=typeof $Symbol=="function"&&!!$GOPS.f,QObject=global$1.QObject,setter=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild,setSymbolDesc=DESCRIPTORS&&$fails(function(){return _create$1(dP({},"a",{get:function(){return dP(this,"a",{value:7}).a}})).a!=7})?function(o,et,tt){var rt=gOPD(ObjectProto,et);rt&&delete ObjectProto[et],dP(o,et,tt),rt&&o!==ObjectProto&&dP(ObjectProto,et,rt)}:dP,wrap=function(o){var et=AllSymbols[o]=_create$1($Symbol[PROTOTYPE]);return et._k=o,et},isSymbol=USE_NATIVE&&typeof $Symbol.iterator=="symbol"?function(o){return typeof o=="symbol"}:function(o){return o instanceof $Symbol},$defineProperty=function o(et,tt,rt){return et===ObjectProto&&$defineProperty(OPSymbols,tt,rt),anObject(et),tt=toPrimitive(tt,!0),anObject(rt),has(AllSymbols,tt)?(rt.enumerable?(has(et,HIDDEN)&&et[HIDDEN][tt]&&(et[HIDDEN][tt]=!1),rt=_create$1(rt,{enumerable:createDesc(0,!1)})):(has(et,HIDDEN)||dP(et,HIDDEN,createDesc(1,{})),et[HIDDEN][tt]=!0),setSymbolDesc(et,tt,rt)):dP(et,tt,rt)},$defineProperties=function o(et,tt){anObject(et);for(var rt=enumKeys(tt=toIObject(tt)),it=0,nt=rt.length,at;nt>it;)$defineProperty(et,at=rt[it++],tt[at]);return et},$create=function o(et,tt){return tt===void 0?_create$1(et):$defineProperties(_create$1(et),tt)},$propertyIsEnumerable=function o(et){var tt=isEnum.call(this,et=toPrimitive(et,!0));return this===ObjectProto&&has(AllSymbols,et)&&!has(OPSymbols,et)?!1:tt||!has(this,et)||!has(AllSymbols,et)||has(this,HIDDEN)&&this[HIDDEN][et]?tt:!0},$getOwnPropertyDescriptor=function o(et,tt){if(et=toIObject(et),tt=toPrimitive(tt,!0),!(et===ObjectProto&&has(AllSymbols,tt)&&!has(OPSymbols,tt))){var rt=gOPD(et,tt);return rt&&has(AllSymbols,tt)&&!(has(et,HIDDEN)&&et[HIDDEN][tt])&&(rt.enumerable=!0),rt}},$getOwnPropertyNames=function o(et){for(var tt=gOPN(toIObject(et)),rt=[],it=0,nt;tt.length>it;)!has(AllSymbols,nt=tt[it++])&&nt!=HIDDEN&&nt!=META&&rt.push(nt);return rt},$getOwnPropertySymbols=function o(et){for(var tt=et===ObjectProto,rt=gOPN(tt?OPSymbols:toIObject(et)),it=[],nt=0,at;rt.length>nt;)has(AllSymbols,at=rt[nt++])&&(!tt||has(ObjectProto,at))&&it.push(AllSymbols[at]);return it};USE_NATIVE||($Symbol=function(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor!");var et=uid(arguments.length>0?arguments[0]:void 0),tt=function(rt){this===ObjectProto&&tt.call(OPSymbols,rt),has(this,HIDDEN)&&has(this[HIDDEN],et)&&(this[HIDDEN][et]=!1),setSymbolDesc(this,et,createDesc(1,rt))};return DESCRIPTORS&&setter&&setSymbolDesc(ObjectProto,et,{configurable:!0,set:tt}),wrap(et)},redefine($Symbol[PROTOTYPE],"toString",function(){return this._k}),$GOPD.f=$getOwnPropertyDescriptor,$DP.f=$defineProperty,_objectGopn.f=gOPNExt.f=$getOwnPropertyNames,require_objectPie().f=$propertyIsEnumerable,$GOPS.f=$getOwnPropertySymbols,DESCRIPTORS&&!_library&&redefine(ObjectProto,"propertyIsEnumerable",$propertyIsEnumerable),wksExt.f=function(o){return wrap(wks(o))});$export$2($export$2.G+$export$2.W+$export$2.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),j=0;es6Symbols.length>j;)wks(es6Symbols[j++]);for(var wellKnownSymbols=$keys(wks.store),k=0;wellKnownSymbols.length>k;)wksDefine(wellKnownSymbols[k++]);$export$2($export$2.S+$export$2.F*!USE_NATIVE,"Symbol",{for:function(o){return has(SymbolRegistry,o+="")?SymbolRegistry[o]:SymbolRegistry[o]=$Symbol(o)},keyFor:function o(et){if(!isSymbol(et))throw TypeError(et+" is not a symbol!");for(var tt in SymbolRegistry)if(SymbolRegistry[tt]===et)return tt},useSetter:function(){setter=!0},useSimple:function(){setter=!1}});$export$2($export$2.S+$export$2.F*!USE_NATIVE,"Object",{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});var FAILS_ON_PRIMITIVES=$fails(function(){$GOPS.f(1)});$export$2($export$2.S+$export$2.F*FAILS_ON_PRIMITIVES,"Object",{getOwnPropertySymbols:function o(et){return $GOPS.f(toObject(et))}});$JSON&&$export$2($export$2.S+$export$2.F*(!USE_NATIVE||$fails(function(){var o=$Symbol();return _stringify([o])!="[null]"||_stringify({a:o})!="{}"||_stringify(Object(o))!="{}"})),"JSON",{stringify:function o(et){for(var tt=[et],rt=1,it,nt;arguments.length>rt;)tt.push(arguments[rt++]);if(nt=it=tt[1],!(!isObject(it)&&et===void 0||isSymbol(et)))return isArray(it)||(it=function(at,st){if(typeof nt=="function"&&(st=nt.call(this,at,st)),!isSymbol(st))return st}),tt[1]=it,_stringify.apply($JSON,tt)}});$Symbol[PROTOTYPE][TO_PRIMITIVE]||_hide($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf);setToStringTag($Symbol,"Symbol");setToStringTag(Math,"Math",!0);setToStringTag(global$1.JSON,"JSON",!0);_wksDefine("asyncIterator");_wksDefine("observable");var symbol$1=_coreExports.Symbol,symbol={default:symbol$1,__esModule:!0};_typeof$1.__esModule=!0;var _iterator=iterator,_iterator2=_interopRequireDefault$3(_iterator),_symbol=symbol,_symbol2=_interopRequireDefault$3(_symbol),_typeof=typeof _symbol2.default=="function"&&typeof _iterator2.default=="symbol"?function(o){return typeof o}:function(o){return o&&typeof _symbol2.default=="function"&&o.constructor===_symbol2.default&&o!==_symbol2.default.prototype?"symbol":typeof o};function _interopRequireDefault$3(o){return o&&o.__esModule?o:{default:o}}_typeof$1.default=typeof _symbol2.default=="function"&&_typeof(_iterator2.default)==="symbol"?function(o){return typeof o>"u"?"undefined":_typeof(o)}:function(o){return o&&typeof _symbol2.default=="function"&&o.constructor===_symbol2.default&&o!==_symbol2.default.prototype?"symbol":typeof o>"u"?"undefined":_typeof(o)};possibleConstructorReturn.__esModule=!0;var _typeof2$1=_typeof$1,_typeof3$1=_interopRequireDefault$2(_typeof2$1);function _interopRequireDefault$2(o){return o&&o.__esModule?o:{default:o}}possibleConstructorReturn.default=function(o,et){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&((typeof et>"u"?"undefined":(0,_typeof3$1.default)(et))==="object"||typeof et=="function")?et:o};var inherits={},_setProto,hasRequired_setProto;function require_setProto(){if(hasRequired_setProto)return _setProto;hasRequired_setProto=1;var o=_isObject,et=_anObject,tt=function(rt,it){if(et(rt),!o(it)&&it!==null)throw TypeError(it+": can't set as prototype!")};return _setProto={set:Object.setPrototypeOf||("__proto__"in{}?function(rt,it,nt){try{nt=_ctx(Function.call,_objectGopd.f(Object.prototype,"__proto__").set,2),nt(rt,[]),it=!(rt instanceof Array)}catch{it=!0}return function(st,ot){return tt(st,ot),it?st.__proto__=ot:nt(st,ot),st}}({},!1):void 0),check:tt},_setProto}var $export$1=_export;$export$1($export$1.S,"Object",{setPrototypeOf:require_setProto().set});var setPrototypeOf$1=_coreExports.Object.setPrototypeOf,setPrototypeOf={default:setPrototypeOf$1,__esModule:!0},$export=_export;$export($export.S,"Object",{create:_objectCreate});var $Object=_coreExports.Object,create$1=function o(et,tt){return $Object.create(et,tt)},create={default:create$1,__esModule:!0};inherits.__esModule=!0;var _setPrototypeOf=setPrototypeOf,_setPrototypeOf2=_interopRequireDefault$1(_setPrototypeOf),_create=create,_create2=_interopRequireDefault$1(_create),_typeof2=_typeof$1,_typeof3=_interopRequireDefault$1(_typeof2);function _interopRequireDefault$1(o){return o&&o.__esModule?o:{default:o}}inherits.default=function(o,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof et>"u"?"undefined":(0,_typeof3.default)(et)));o.prototype=(0,_create2.default)(et&&et.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),et&&(_setPrototypeOf2.default?(0,_setPrototypeOf2.default)(o,et):o.__proto__=et)};Object.defineProperty(dist,"__esModule",{value:!0});var _extends2=_extends,_extends3=_interopRequireDefault(_extends2),_getPrototypeOf=getPrototypeOf$1,_getPrototypeOf2=_interopRequireDefault(_getPrototypeOf),_classCallCheck2=classCallCheck,_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=createClass,_createClass3=_interopRequireDefault(_createClass2),_possibleConstructorReturn2=possibleConstructorReturn,_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=inherits,_inherits3=_interopRequireDefault(_inherits2),_react=reactExports,_react2=_interopRequireDefault(_react),_propTypes=propTypesExports,_propTypes2=_interopRequireDefault(_propTypes),_lottieWeb=lottieExports,_lottieWeb2=_interopRequireDefault(_lottieWeb);function _interopRequireDefault(o){return o&&o.__esModule?o:{default:o}}var Lottie=function(o){(0,_inherits3.default)(et,o);function et(){var tt,rt,it,nt;(0,_classCallCheck3.default)(this,et);for(var at=arguments.length,st=Array(at),ot=0;otjsxRuntimeExports.jsx(Flex,{style:{width:"167px",height:"167px",opacity:.5},children:jsxRuntimeExports.jsx(_default,{height:167,options:{loop:!0,autoplay:!0,animationData:preloadData,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}},width:167})});function r(o){var et,tt,rt="";if(typeof o=="string"||typeof o=="number")rt+=o;else if(typeof o=="object")if(Array.isArray(o))for(et=0;et{const[et,tt]=reactExports.useState(0),rt=o.filter(it=>it.value!=="0");return reactExports.useEffect(()=>{const it=setInterval(()=>tt(nt=>(nt+1)%o.length),1e3);return()=>clearInterval(it)},[et]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:rt.map(({key:it,value:nt},at)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:et===at}),children:nt},it))}),jsxRuntimeExports.jsx(Flex,{children:rt.map(({key:it,label:nt},at)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:et===at}),children:jsxRuntimeExports.jsx("div",{className:"label",children:nt})},it))})]})},TextWrapper=styled$3.div` height: 16px; display: flex; justify-content: space-between; @@ -665,4 +665,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-922a0411.js").then(o=>o.E),["assets/index-922a0411.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 $,useAppStore as A,useDataStore as B,__vitePreload as C,media as D,useAiSummaryStore as E,Flex as F,useNavigate as G,Stats as H,useSearchParams as I,useUserStore as J,useFeatureFlagStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useSelectedNodeRelativeIds as U,forceSimulation as V,We as W,forceCollide as X,forceCenter as Y,forceManyBody as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceLink as a0,NODE_RELATIVE_HIGHLIGHT_COLORS as a1,useHoveredNode as a2,useNodeTypes as a3,lottie as a4,fetchNodeEdges as a5,NodesIcon as a6,lodashExports as a7,addToGlobalForE2e as a8,api as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,distExports$1 as aa,executeIfProd as ab,useTheme as ac,lighten as ad,darken as ae,slotShouldForwardProp as af,Ce as ag,useHasAiChatsResponseLoading as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-9910581f.js").then(o=>o.E),["assets/index-9910581f.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 $,useAppStore as A,useDataStore as B,__vitePreload as C,media as D,useAiSummaryStore as E,Flex as F,useNavigate as G,Stats as H,useSearchParams as I,useUserStore as J,useFeatureFlagStore as K,LinearProgress$1 as L,isDevelopment as M,updateBudget as N,useModal as O,PropTypes as P,isSphinx as Q,React as R,SocketContext as S,Text as T,useSelectedNodeRelativeIds as U,forceSimulation as V,We as W,forceCollide as X,forceCenter as Y,forceManyBody as Z,_extends$1 as _,_objectWithoutPropertiesLoose as a,RSS as a$,forceLink as a0,NODE_RELATIVE_HIGHLIGHT_COLORS as a1,useHoveredNode as a2,useNodeTypes as a3,lottie as a4,fetchNodeEdges as a5,NodesIcon as a6,lodashExports as a7,addToGlobalForE2e as a8,api as a9,_getTag as aA,isBufferExports as aB,isTypedArray_1 as aC,isObject_1 as aD,keys_1 as aE,isArguments_1 as aF,_isIndex as aG,isLength_1 as aH,_Set as aI,_arrayPush as aJ,isArrayLike_1 as aK,_baseUnary as aL,_defineProperty$1 as aM,_root as aN,_getPrototype as aO,_baseAssignValue as aP,getFullTranscript as aQ,getAugmentedNamespace as aR,propTypesExports as aS,useHasAiChats as aT,postAboutData as aU,NODE_ADD_ERROR as aV,requiredRule as aW,LINK as aX,YOUTUBE_CHANNEL as aY,TWITTER_HANDLE as aZ,TWITTER_SOURCE as a_,distExports$1 as aa,executeIfProd as ab,useTheme as ac,lighten as ad,darken as ae,slotShouldForwardProp as af,Ce as ag,useHasAiChatsResponseLoading as ah,Ue as ai,Tooltip as aj,hooks as ak,commonjsGlobal as al,commonjsRequire as am,useFilteredNodes as an,getSchemaAll as ao,_baseGetTag as ap,isObjectLike_1 as aq,isArray_1 as ar,_MapCache as as,_Symbol as at,isObject$b as au,isFunction$3 as av,_Uint8Array as aw,eq_1 as ax,_getAllKeys as ay,_Stack as az,generateUtilityClass as b,WEB_PAGE as b0,DOCUMENT as b1,formatBudget as b2,getPriceData as b3,isE2E as b4,sphinxBridge as b5,getLSat as b6,payLsat as b7,getNodeType as b8,getNodeSchemaTypes as b9,defaultTheme$1 as bA,THEME_ID as bB,formatMuiErrorMessage as bC,deepmerge as bD,defaultSxConfig$1 as bE,isPlainObject as bF,createStyled as bG,createTheme$1 as bH,useThemeProps$1 as bI,createUnarySpacing as bJ,mergeBreakpointsInOrder as bK,getValue as bL,useTheme$3 as bM,getNodeContent as ba,approveRadarData as bb,deleteRadarData as bc,getRadarData as bd,putRadarData as be,getEdgeTypes as bf,getEdges as bg,postEdgeType as bh,putNodeData as bi,postMergeTopics as bj,getTopicsData as bk,deleteNode as bl,css as bm,changeNodeType as bn,resolveBreakpointValues as bo,handleBreakpoints as bp,updateEdgeType as bq,postBluePrintType as br,deleteEdgeType as bs,createRoot as bt,react as bu,GRAPH_GROUND_COLOR as bv,GRAPH_LIGHT_INTENSITY as bw,GRAPH_FOG_COLOR as bx,Global as by,useTheme$2 as bz,clsx$1 as c,composeClasses as d,capitalize as e,alpha as f,generateUtilityClasses as g,reactDomExports as h,rootShouldForwardProp as i,jsxRuntimeExports as j,keyframes as k,resolveProps as l,ReactDOM as m,getDefaultExportFromCjs as n,styled$3 as o,useGraphStore as p,colors as q,reactExports as r,styled$1 as s,graphStyles as t,useThemeProps as u,clsx as v,create$3 as w,devtools as x,useSelectedNode as y,useUpdateSelectedNode as z}; diff --git a/build/assets/index-3fc7a58d.js b/build/assets/index-9406a24e.js similarity index 91% rename from build/assets/index-3fc7a58d.js rename to build/assets/index-9406a24e.js index e304dafb9..c81282386 100644 --- a/build/assets/index-3fc7a58d.js +++ b/build/assets/index-9406a24e.js @@ -1,4 +1,4 @@ -import{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,a9 as j}from"./index-20244629.js";import{B as C,i as S,F as y}from"./index-922a0411.js";import{B as k}from"./index-fb1d223f.js";import{S as v}from"./index-a1bce07a.js";import{T as F}from"./index-68ed2d99.js";import"./index.esm-120f9454.js";import"./InfoIcon-35720818.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{o as i,j as e,F as s,aW as b,T as a,q as n,O as w,r as m,a9 as j}from"./index-931430a1.js";import{B as C,i as S,F as y}from"./index-9910581f.js";import{B as k}from"./index-d447730d.js";import{S as v}from"./index-c34ea667.js";import{T as F}from"./index-8870d532.js";import"./index.esm-25778014.js";import"./InfoIcon-b9565bf8.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'; diff --git a/build/assets/index-922a0411.js b/build/assets/index-9910581f.js similarity index 97% rename from build/assets/index-922a0411.js rename to build/assets/index-9910581f.js index baae0e128..4f583db4a 100644 --- a/build/assets/index-922a0411.js +++ b/build/assets/index-9910581f.js @@ -1,4 +1,4 @@ -import{r as d,R as h,_ as Z,a as Fn,c as We,j as T,g as Or,k as Xo,s as Wt,u as Pr,b as Zo,d as Qo,e as Te,f as en,h as Jo,i as jl,l as Ll,m as ga,$ as Fl,P as ce,n as zl,W as Nl,o as pe,p as ei,q as J,F as ee,t as Vl,v as Bl,w as ti,x as ma,L as Wl,y as ba,z as ya,A as Ar,B as ni,T as Ae,S as Hl,C as ze,D as Ul,E as va,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-20244629.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=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};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function Yn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Pi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Ai;const ou={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 iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Ai),Ai=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ii=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(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 pu(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]),T.jsx("span",{className:p,style:g,children:T.jsx("span",{className:m})})}const xu=Or("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Di,Mi,ji,Li;const xo=550,Eu=80,$u=Xo(Di||(Di=Dr` +import{r as d,R as h,_ as Z,a as Fn,c as We,j as T,g as Or,k as Xo,s as Wt,u as Pr,b as Zo,d as Qo,e as Te,f as en,h as Jo,i as jl,l as Ll,m as ga,$ as Fl,P as ce,n as zl,W as Nl,o as pe,p as ei,q as J,F as ee,t as Vl,v as Bl,w as ti,x as ma,L as Wl,y as ba,z as ya,A as Ar,B as ni,T as Ae,S as Hl,C as ze,D as Ul,E as va,G as Kl,H as Gl,I as Yl,J as ql,K as Xl,M as Zl,N as Ql}from"./index-931430a1.js";function Jl(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const eu=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};function tu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const nu=typeof window<"u"?d.useLayoutEffect:d.useEffect,ru=nu;function Yn(e){const t=d.useRef(e);return ru(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Pi(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{tu(n,t)})},e)}let Ir=!0,yo=!1,Ai;const ou={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 iu(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ou[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function su(e){e.metaKey||e.altKey||e.ctrlKey||(Ir=!0)}function Kr(){Ir=!1}function au(){this.visibilityState==="hidden"&&yo&&(Ir=!0)}function cu(e){e.addEventListener("keydown",su,!0),e.addEventListener("mousedown",Kr,!0),e.addEventListener("pointerdown",Kr,!0),e.addEventListener("touchstart",Kr,!0),e.addEventListener("visibilitychange",au,!0)}function lu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ir||iu(t)}function uu(){const e=d.useCallback(o=>{o!=null&&cu(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(yo=!0,window.clearTimeout(Ai),Ai=window.setTimeout(()=>{yo=!1},100),t.current=!1,!0):!1}function r(o){return lu(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},vo(e,t)}function du(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}const Ii=h.createContext(null);function fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ri(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 pu(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]),T.jsx("span",{className:p,style:g,children:T.jsx("span",{className:m})})}const xu=Or("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qe=xu,wu=["center","classes","className"];let Dr=e=>e,Di,Mi,ji,Li;const xo=550,Eu=80,$u=Xo(Di||(Di=Dr` 0% { transform: scale(0); opacity: 0.1; @@ -338,7 +338,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: 65px; right: 55px; z-index: 100; -`,Vy=()=>{const e=d.useContext(Hl);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(()=>ze(()=>import("./index-bce8e63a.js"),["assets/index-bce8e63a.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/ClipLoader-a0c1d0d5.js","assets/index-68ed2d99.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js","assets/index-a1bce07a.js","assets/Tabs-e60acdc7.js","assets/useSlotProps-4a56e8a6.js","assets/createSvgIcon-bd0d8dc7.js"]).then(({SettingsModal:e})=>({default:e}))),Ky=d.lazy(()=>ze(()=>import("./index-5dc8bdba.js"),["assets/index-5dc8bdba.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-a1bce07a.js","assets/index.esm-120f9454.js","assets/CheckIcon-78afa5f1.js","assets/ClipLoader-a0c1d0d5.js","assets/index-68ed2d99.js","assets/InfoIcon-35720818.js"]).then(({AddContentModal:e})=>({default:e}))),Gy=d.lazy(()=>ze(()=>import("./index-7978898a.js"),["assets/index-7978898a.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-a1bce07a.js","assets/index.esm-120f9454.js","assets/CheckIcon-78afa5f1.js","assets/ClipLoader-a0c1d0d5.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-68ed2d99.js","assets/InfoIcon-35720818.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Yy=d.lazy(()=>ze(()=>import("./index-0494f451.js"),["assets/index-0494f451.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/PlusIcon-f79d966c.js","assets/NodeCircleIcon-4410772f.js","assets/ClipLoader-a0c1d0d5.js","assets/index.esm-120f9454.js","assets/Popover-aff34d88.js","assets/useSlotProps-4a56e8a6.js","assets/SearchIcon-61a39fc4.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/index-68ed2d99.js","assets/InfoIcon-35720818.js","assets/DeleteIcon-b904bd34.js","assets/MergeIcon-32b40892.js","assets/index-6bd8a92b.js","assets/CheckIcon-78afa5f1.js","assets/Typography-2d560971.js","assets/Tabs-e60acdc7.js"]).then(({SourcesTableModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-17ed309d.js"),["assets/index-17ed309d.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-68ed2d99.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js","assets/Skeleton-e4541980.js","assets/ClipLoader-a0c1d0d5.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-ce0d9b71.js"),["assets/index-ce0d9b71.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/Skeleton-e4541980.js","assets/ClipLoader-a0c1d0d5.js"]).then(({RemoveNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-81b1cbe5.js"),["assets/index-81b1cbe5.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/NodeCircleIcon-4410772f.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/ClipLoader-a0c1d0d5.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-306d154d.js"),["assets/index-306d154d.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-6bd8a92b.js","assets/NodeCircleIcon-4410772f.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/ClipLoader-a0c1d0d5.js"]).then(({MergeNodeModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-f8e07c95.js"),["assets/index-f8e07c95.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-68ed2d99.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/ClipLoader-a0c1d0d5.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ev=d.lazy(()=>ze(()=>import("./index-5d1ac3c2.js"),["assets/index-5d1ac3c2.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-bb4ca660.js","assets/Stack-76b9b130.js","assets/useSlotProps-4a56e8a6.js","assets/Popover-aff34d88.js","assets/createSvgIcon-bd0d8dc7.js","assets/TextareaAutosize-ed8bfc98.js","assets/index-68ed2d99.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js","assets/ClipLoader-a0c1d0d5.js","assets/DeleteIcon-b904bd34.js","assets/PlusIcon-f79d966c.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/FormControlLabel-dd6fa8a1.js","assets/Typography-2d560971.js","assets/index-b9333c3d.js"]).then(({BlueprintModal:e})=>({default:e}))),tv=d.lazy(()=>ze(()=>import("./index-3fc7a58d.js"),["assets/index-3fc7a58d.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-fb1d223f.js","assets/index-a1bce07a.js","assets/index.esm-120f9454.js","assets/index-68ed2d99.js","assets/InfoIcon-35720818.js"]).then(({UserFeedBackModal:e})=>({default:e}))),nv=()=>T.jsxs(T.Fragment,{children:[T.jsx(Gy,{}),T.jsx(Ky,{}),T.jsx(Uy,{}),T.jsx(qy,{}),T.jsx(Xy,{}),T.jsx(Yy,{}),T.jsx(Zy,{}),T.jsx(Jy,{}),T.jsx(ev,{}),T.jsx(Qy,{}),T.jsx(tv,{})]}),rv=()=>{const e=Ar(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=va(),{abortFetchData:r}=ni(s=>s),o=Kl();if(!e)return null;const i=()=>{n(null),r(),t(),o("/")};return T.jsxs(ov,{children:[T.jsxs(iv,{onClick:i,children:[T.jsx(T.Fragment,{children:e.title&&T.jsx(Ae,{className:"title",color:"white",children:e.title})}),T.jsx(Ae,{className:"subtitle",children:"Second Brain"})]}),T.jsx(Gl,{})]})},ov=pe(ee).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,Vy=()=>{const e=d.useContext(Hl);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(()=>ze(()=>import("./index-f8725cc4.js"),["assets/index-f8725cc4.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/ClipLoader-da7156bc.js","assets/index-8870d532.js","assets/index.esm-25778014.js","assets/InfoIcon-b9565bf8.js","assets/index-c34ea667.js","assets/Tabs-a92afa02.js","assets/useSlotProps-1d7699bd.js","assets/createSvgIcon-2d6cbf8b.js"]).then(({SettingsModal:e})=>({default:e}))),Ky=d.lazy(()=>ze(()=>import("./index-0dad72e4.js"),["assets/index-0dad72e4.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/index-c34ea667.js","assets/index.esm-25778014.js","assets/CheckIcon-7a9fa35b.js","assets/ClipLoader-da7156bc.js","assets/index-8870d532.js","assets/InfoIcon-b9565bf8.js"]).then(({AddContentModal:e})=>({default:e}))),Gy=d.lazy(()=>ze(()=>import("./index-8c987cbd.js"),["assets/index-8c987cbd.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/index-c34ea667.js","assets/index.esm-25778014.js","assets/CheckIcon-7a9fa35b.js","assets/ClipLoader-da7156bc.js","assets/index-1ecda1ff.js","assets/Stack-179be030.js","assets/useSlotProps-1d7699bd.js","assets/Popover-92a41dd0.js","assets/createSvgIcon-2d6cbf8b.js","assets/TextareaAutosize-293fa137.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-8870d532.js","assets/InfoIcon-b9565bf8.js","assets/index-64f1c910.js"]).then(({AddItemModal:e})=>({default:e}))),Yy=d.lazy(()=>ze(()=>import("./index-f066ce61.js"),["assets/index-f066ce61.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/PlusIcon-92013c0a.js","assets/NodeCircleIcon-c0da6b29.js","assets/ClipLoader-da7156bc.js","assets/index.esm-25778014.js","assets/Popover-92a41dd0.js","assets/useSlotProps-1d7699bd.js","assets/SearchIcon-2fabe9d1.js","assets/index-1ecda1ff.js","assets/Stack-179be030.js","assets/createSvgIcon-2d6cbf8b.js","assets/TextareaAutosize-293fa137.js","assets/index-8870d532.js","assets/InfoIcon-b9565bf8.js","assets/DeleteIcon-46e3d4ca.js","assets/MergeIcon-faa51e87.js","assets/index-67a17864.js","assets/CheckIcon-7a9fa35b.js","assets/Typography-f70a691a.js","assets/Tabs-a92afa02.js"]).then(({SourcesTableModal:e})=>({default:e}))),qy=d.lazy(()=>ze(()=>import("./index-8b3d1b3e.js"),["assets/index-8b3d1b3e.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/index-8870d532.js","assets/index.esm-25778014.js","assets/InfoIcon-b9565bf8.js","assets/Skeleton-efee6f09.js","assets/ClipLoader-da7156bc.js"]).then(({EditNodeNameModal:e})=>({default:e}))),Xy=d.lazy(()=>ze(()=>import("./index-556c69fb.js"),["assets/index-556c69fb.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/Skeleton-efee6f09.js","assets/ClipLoader-da7156bc.js"]).then(({RemoveNodeModal:e})=>({default:e}))),Zy=d.lazy(()=>ze(()=>import("./index-a09c0824.js"),["assets/index-a09c0824.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/NodeCircleIcon-c0da6b29.js","assets/index-1ecda1ff.js","assets/Stack-179be030.js","assets/useSlotProps-1d7699bd.js","assets/Popover-92a41dd0.js","assets/createSvgIcon-2d6cbf8b.js","assets/TextareaAutosize-293fa137.js","assets/ClipLoader-da7156bc.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),Qy=d.lazy(()=>ze(()=>import("./index-555436f8.js"),["assets/index-555436f8.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/index-67a17864.js","assets/NodeCircleIcon-c0da6b29.js","assets/index-1ecda1ff.js","assets/Stack-179be030.js","assets/useSlotProps-1d7699bd.js","assets/Popover-92a41dd0.js","assets/createSvgIcon-2d6cbf8b.js","assets/TextareaAutosize-293fa137.js","assets/ClipLoader-da7156bc.js"]).then(({MergeNodeModal:e})=>({default:e}))),Jy=d.lazy(()=>ze(()=>import("./index-455ab4cd.js"),["assets/index-455ab4cd.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/index-8870d532.js","assets/index.esm-25778014.js","assets/InfoIcon-b9565bf8.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/index-1ecda1ff.js","assets/Stack-179be030.js","assets/useSlotProps-1d7699bd.js","assets/Popover-92a41dd0.js","assets/createSvgIcon-2d6cbf8b.js","assets/TextareaAutosize-293fa137.js","assets/ClipLoader-da7156bc.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:e})=>({default:e}))),ev=d.lazy(()=>ze(()=>import("./index-7c966c05.js"),["assets/index-7c966c05.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/index-1ecda1ff.js","assets/Stack-179be030.js","assets/useSlotProps-1d7699bd.js","assets/Popover-92a41dd0.js","assets/createSvgIcon-2d6cbf8b.js","assets/TextareaAutosize-293fa137.js","assets/index-8870d532.js","assets/index.esm-25778014.js","assets/InfoIcon-b9565bf8.js","assets/ClipLoader-da7156bc.js","assets/DeleteIcon-46e3d4ca.js","assets/PlusIcon-92013c0a.js","assets/index-44e303ef.js","assets/three.module-2ce81f73.js","assets/FormControlLabel-5df2ea4a.js","assets/Typography-f70a691a.js","assets/index-1274a067.js"]).then(({BlueprintModal:e})=>({default:e}))),tv=d.lazy(()=>ze(()=>import("./index-9406a24e.js"),["assets/index-9406a24e.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-d447730d.js","assets/index-c34ea667.js","assets/index.esm-25778014.js","assets/index-8870d532.js","assets/InfoIcon-b9565bf8.js"]).then(({UserFeedBackModal:e})=>({default:e}))),nv=()=>T.jsxs(T.Fragment,{children:[T.jsx(Gy,{}),T.jsx(Ky,{}),T.jsx(Uy,{}),T.jsx(qy,{}),T.jsx(Xy,{}),T.jsx(Yy,{}),T.jsx(Zy,{}),T.jsx(Jy,{}),T.jsx(ev,{}),T.jsx(Qy,{}),T.jsx(tv,{})]}),rv=()=>{const e=Ar(s=>s.appMetaData),{resetAiSummaryAnswer:t,setNewLoading:n}=va(),{abortFetchData:r}=ni(s=>s),o=Kl();if(!e)return null;const i=()=>{n(null),r(),t(),o("/")};return T.jsxs(ov,{children:[T.jsxs(iv,{onClick:i,children:[T.jsx(T.Fragment,{children:e.title&&T.jsx(Ae,{className:"title",color:"white",children:e.title})}),T.jsx(Ae,{className:"subtitle",children:"Second Brain"})]}),T.jsx(Gl,{})]})},ov=pe(ee).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; position: absolute; top: 0px; @@ -435,4 +435,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${J.white}; font-size: 12px; opacity: 0.5; -`,_v=d.lazy(()=>ze(()=>import("./index-0a4c6ec3.js"),["assets/index-0a4c6ec3.js","assets/index-20244629.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),Sv=d.lazy(()=>ze(()=>import("./index-166b6403.js"),["assets/index-166b6403.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/index-b9333c3d.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-ed8bfc98.js","assets/useSlotProps-4a56e8a6.js","assets/DeleteIcon-b904bd34.js","assets/index.esm-120f9454.js","assets/index-1477a4a5.js","assets/MergeIcon-32b40892.js","assets/PlusIcon-f79d966c.js","assets/Popover-aff34d88.js","assets/ClipLoader-a0c1d0d5.js"]).then(({Universe:e})=>({default:e}))),Tv=d.lazy(()=>ze(()=>import("./index-c49ebc93.js").then(e=>e.i),["assets/index-c49ebc93.js","assets/index-20244629.js","assets/index-a2878e02.css","assets/SearchIcon-61a39fc4.js","assets/ClipLoader-a0c1d0d5.js","assets/Skeleton-e4541980.js","assets/PlusIcon-f79d966c.js","assets/Popover-aff34d88.js","assets/useSlotProps-4a56e8a6.js","assets/CheckIcon-78afa5f1.js","assets/Stack-76b9b130.js","assets/FormControlLabel-dd6fa8a1.js","assets/Typography-2d560971.js","assets/createSvgIcon-bd0d8dc7.js","assets/index-fb1d223f.js","assets/index-1477a4a5.js","assets/index.esm-120f9454.js","assets/InfoIcon-35720818.js"]).then(({SideBar:e})=>({default:e}))),kv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(F=>[F.setBudget,F.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c,universeQuestionIsOpen:l,setUniverseQuestionIsOpen:u}=Ar(F=>F),f=Wy(F=>F.setTeachMeAnswer),{fetchData:p,setCategoryFilter:g,setAbortRequests:m,addNewNode:b,splashDataLoading:w}=ni(F=>F),{setAiSummaryAnswer:v,getKeyExist:y,aiRefId:$}=va(F=>F),S=ya(),[_,E]=Xl(F=>[F.realtimeGraphFeatureFlag,F.chatInterfaceFeatureFlag]),C=Vy(),R=Jb({mode:"onChange"}),{setValue:L}=R;d.useEffect(()=>{L("search",t??""),c(!1),S(null),a(!1),s(t??""),f(""),g(null)},[t,g,s,a,S,f,c,L]),d.useEffect(()=>{(async()=>{await p(n,m),o(!0),i?await Ql(n):S(null)})()},[i,p,n,m,o,S]);const M=d.useCallback(()=>{r("INCREMENT")},[r]),z=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{answer:F.answer,answerLoading:!1})},[v]),A=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{audio_en:F.audio_EN})},[v]),N=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{questions:F.relevant_questions.map(G=>G.question),questionsLoading:!1})},[v]),j=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{sources:F.sources.map(G=>G.ref_id),sourcesLoading:!1})},[v]),V=d.useCallback(F=>{b(F)},[b]),B=d.useCallback(F=>{F.question&&y($)&&v($,{answerLoading:!1,entities:F.entities})},[v,y,$]);return d.useEffect(()=>(C&&(C.connect(),C.on("connect_error",F=>{console.error("Socket connection error:",F)}),C.on("newnode",M),E&&C.on("extractedentitieshook",B),E&&C.on("askquestionhook",z),E&&C.on("relevantquestionshook",N),E&&C.on("answersourceshook",j),_&&C.on("new_node_created",V),E&&C.on("answeraudiohook",A)),()=>{C&&C.off()}),[C,M,V,_,z,E,N,j,B,A]),d.useEffect(()=>{w||u()},[u,w]),T.jsxs(T.Fragment,{children:[T.jsx(ey,{}),T.jsx(cv,{}),T.jsx(dl,{hidden:!Zl}),T.jsx(d.Suspense,{fallback:T.jsx("div",{children:"Loading..."}),children:w?null:T.jsxs($v,{direction:"row",children:[T.jsxs(Fb,{...R,children:[T.jsx(_v,{}),!l&&T.jsx(Tv,{}),T.jsx(Sv,{}),T.jsx(Fy,{}),T.jsx(rv,{}),T.jsxs(Cv,{children:["v",Hy]}),T.jsx(Rl,{})]}),T.jsx(nv,{}),T.jsx(Ev,{})]})})]})},Vv=Object.freeze(Object.defineProperty({__proto__:null,App:kv},Symbol.toStringTag,{value:"Module"}));export{kl as A,Aa as B,cy as C,zv as D,Vv as E,Fb as F,ly as G,wa as I,Fy as O,gy as P,Py as T,mn as _,Lv as a,Oy as b,Fv as c,uu as d,Pi as e,ru as f,Yn as g,Br as h,Jb as i,Jl as j,hy as k,ay as l,my as m,yy as n,uy as o,xa as p,Nv as q,bp as r,Ov as s,tu as t,sy as u,eu as v,du as w,Ii as x,de as y,W as z}; +`,_v=d.lazy(()=>ze(()=>import("./index-9f26578a.js"),["assets/index-9f26578a.js","assets/index-931430a1.js","assets/index-a2878e02.css"]).then(({MainToolbar:e})=>({default:e}))),Sv=d.lazy(()=>ze(()=>import("./index-d5b67b5d.js"),["assets/index-d5b67b5d.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/index-1274a067.js","assets/three.module-2ce81f73.js","assets/TextareaAutosize-293fa137.js","assets/useSlotProps-1d7699bd.js","assets/DeleteIcon-46e3d4ca.js","assets/index.esm-25778014.js","assets/index-c30ce896.js","assets/MergeIcon-faa51e87.js","assets/PlusIcon-92013c0a.js","assets/Popover-92a41dd0.js","assets/ClipLoader-da7156bc.js"]).then(({Universe:e})=>({default:e}))),Tv=d.lazy(()=>ze(()=>import("./index-48de85f6.js").then(e=>e.i),["assets/index-48de85f6.js","assets/index-931430a1.js","assets/index-a2878e02.css","assets/SearchIcon-2fabe9d1.js","assets/ClipLoader-da7156bc.js","assets/Skeleton-efee6f09.js","assets/PlusIcon-92013c0a.js","assets/Popover-92a41dd0.js","assets/useSlotProps-1d7699bd.js","assets/CheckIcon-7a9fa35b.js","assets/Stack-179be030.js","assets/FormControlLabel-5df2ea4a.js","assets/Typography-f70a691a.js","assets/createSvgIcon-2d6cbf8b.js","assets/index-d447730d.js","assets/index-c30ce896.js","assets/index.esm-25778014.js","assets/InfoIcon-b9565bf8.js"]).then(({SideBar:e})=>({default:e}))),kv=()=>{const[e]=Yl(),t=e.get("q"),[n,r]=ql(F=>[F.setBudget,F.setNodeCount]),{setSidebarOpen:o,currentSearch:i,setCurrentSearch:s,setRelevanceSelected:a,setTranscriptOpen:c,universeQuestionIsOpen:l,setUniverseQuestionIsOpen:u}=Ar(F=>F),f=Wy(F=>F.setTeachMeAnswer),{fetchData:p,setCategoryFilter:g,setAbortRequests:m,addNewNode:b,splashDataLoading:w}=ni(F=>F),{setAiSummaryAnswer:v,getKeyExist:y,aiRefId:$}=va(F=>F),S=ya(),[_,E]=Xl(F=>[F.realtimeGraphFeatureFlag,F.chatInterfaceFeatureFlag]),C=Vy(),R=Jb({mode:"onChange"}),{setValue:L}=R;d.useEffect(()=>{L("search",t??""),c(!1),S(null),a(!1),s(t??""),f(""),g(null)},[t,g,s,a,S,f,c,L]),d.useEffect(()=>{(async()=>{await p(n,m),o(!0),i?await Ql(n):S(null)})()},[i,p,n,m,o,S]);const M=d.useCallback(()=>{r("INCREMENT")},[r]),z=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{answer:F.answer,answerLoading:!1})},[v]),A=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{audio_en:F.audio_EN})},[v]),N=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{questions:F.relevant_questions.map(G=>G.question),questionsLoading:!1})},[v]),j=d.useCallback(F=>{F.ref_id&&v(F.ref_id,{sources:F.sources.map(G=>G.ref_id),sourcesLoading:!1})},[v]),V=d.useCallback(F=>{b(F)},[b]),B=d.useCallback(F=>{F.question&&y($)&&v($,{answerLoading:!1,entities:F.entities})},[v,y,$]);return d.useEffect(()=>(C&&(C.connect(),C.on("connect_error",F=>{console.error("Socket connection error:",F)}),C.on("newnode",M),E&&C.on("extractedentitieshook",B),E&&C.on("askquestionhook",z),E&&C.on("relevantquestionshook",N),E&&C.on("answersourceshook",j),_&&C.on("new_node_created",V),E&&C.on("answeraudiohook",A)),()=>{C&&C.off()}),[C,M,V,_,z,E,N,j,B,A]),d.useEffect(()=>{w||u()},[u,w]),T.jsxs(T.Fragment,{children:[T.jsx(ey,{}),T.jsx(cv,{}),T.jsx(dl,{hidden:!Zl}),T.jsx(d.Suspense,{fallback:T.jsx("div",{children:"Loading..."}),children:w?null:T.jsxs($v,{direction:"row",children:[T.jsxs(Fb,{...R,children:[T.jsx(_v,{}),!l&&T.jsx(Tv,{}),T.jsx(Sv,{}),T.jsx(Fy,{}),T.jsx(rv,{}),T.jsxs(Cv,{children:["v",Hy]}),T.jsx(Rl,{})]}),T.jsx(nv,{}),T.jsx(Ev,{})]})})]})},Vv=Object.freeze(Object.defineProperty({__proto__:null,App:kv},Symbol.toStringTag,{value:"Module"}));export{kl as A,Aa as B,cy as C,zv as D,Vv as E,Fb as F,ly as G,wa as I,Fy as O,gy as P,Py as T,mn as _,Lv as a,Oy as b,Fv as c,uu as d,Pi as e,ru as f,Yn as g,Br as h,Jb as i,Jl as j,hy as k,ay as l,my as m,yy as n,uy as o,xa as p,Nv as q,bp as r,Ov as s,tu as t,sy as u,eu as v,du as w,Ii as x,de as y,W as z}; diff --git a/build/assets/index-0a4c6ec3.js b/build/assets/index-9f26578a.js similarity index 99% rename from build/assets/index-0a4c6ec3.js rename to build/assets/index-9f26578a.js index 63f93dceb..a21ae5591 100644 --- a/build/assets/index-0a4c6ec3.js +++ b/build/assets/index-9f26578a.js @@ -1,4 +1,4 @@ -import{j as e,O as r,G as F,E as I,B as V,A as _,K as A,J as $,Q as U,T as s,o as l,q as C,F as a}from"./index-20244629.js";import{C as O}from"./index-922a0411.js";const T=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"})})]}),G=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"})})]}),z=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"})}),E=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"})})]}),D=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"})})]}),J=()=>{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=F(),{resetAiSummaryAnswer:g,setNewLoading:w}=I(),{abortFetchData:j,resetGraph:b}=V(n=>n),{setUniverseQuestionIsOpen:k,setSidebarOpen:f,setShowCollapseButton:v,sidebarIsOpen:H}=_(n=>n),{customSchemaFeatureFlag:M,userFeedbackFeatureFlag:L,chatInterfaceFeatureFlag:y}=A(n=>n),[c]=$(n=>[n.isAdmin]),S=U(),Z=()=>{w(null),j(),g(),b(),m("/")},B=()=>{k(),f(!H),v(!1)};return e.jsxs(Q,{children:[e.jsx(R,{onClick:Z,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),y?e.jsxs(i,{onClick:B,children:[e.jsx(o,{children:e.jsx(E,{})}),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(G,{})}),e.jsx(s,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:h,children:[e.jsx(o,{children:e.jsx(T,{})}),e.jsx(s,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(o,{children:e.jsx(D,{})}),e.jsx(s,{children:"Source Table"})]}),M&&c?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(o,{children:e.jsx(O,{})}),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"})]}),L&&S?e.jsxs(W,{"data-testid":"feedback-modal",onClick:u,children:[e.jsx(o,{children:e.jsx(z,{})}),e.jsx(s,{children:"Send Feedback"})]}):null]})},Q=l(a).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{j as e,O as r,G as F,E as I,B as V,A as _,K as A,J as $,Q as U,T as s,o as l,q as C,F as a}from"./index-931430a1.js";import{C as O}from"./index-9910581f.js";const T=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"})})]}),G=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"})})]}),z=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"})}),E=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"})})]}),D=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"})})]}),J=()=>{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=F(),{resetAiSummaryAnswer:g,setNewLoading:w}=I(),{abortFetchData:j,resetGraph:b}=V(n=>n),{setUniverseQuestionIsOpen:k,setSidebarOpen:f,setShowCollapseButton:v,sidebarIsOpen:H}=_(n=>n),{customSchemaFeatureFlag:M,userFeedbackFeatureFlag:L,chatInterfaceFeatureFlag:y}=A(n=>n),[c]=$(n=>[n.isAdmin]),S=U(),Z=()=>{w(null),j(),g(),b(),m("/")},B=()=>{k(),f(!H),v(!1)};return e.jsxs(Q,{children:[e.jsx(R,{onClick:Z,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),y?e.jsxs(i,{onClick:B,children:[e.jsx(o,{children:e.jsx(E,{})}),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(G,{})}),e.jsx(s,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:h,children:[e.jsx(o,{children:e.jsx(T,{})}),e.jsx(s,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:t,children:[e.jsx(o,{children:e.jsx(D,{})}),e.jsx(s,{children:"Source Table"})]}),M&&c?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(o,{children:e.jsx(O,{})}),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"})]}),L&&S?e.jsxs(W,{"data-testid":"feedback-modal",onClick:u,children:[e.jsx(o,{children:e.jsx(z,{})}),e.jsx(s,{children:"Send Feedback"})]}):null]})},Q=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-81b1cbe5.js b/build/assets/index-a09c0824.js similarity index 91% rename from build/assets/index-81b1cbe5.js rename to build/assets/index-a09c0824.js index 956149878..ebe8e7e74 100644 --- a/build/assets/index-81b1cbe5.js +++ b/build/assets/index-a09c0824.js @@ -1,4 +1,4 @@ -import{r,j as e,bf as F,a7 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-20244629.js";import{B as z}from"./index-fb1d223f.js";import{k as D,i as M,F as Y,B as P}from"./index-922a0411.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-4410772f.js";import{A as L,O as V,T as W}from"./index-bb4ca660.js";import{C as _}from"./ClipLoader-a0c1d0d5.js";import"./Stack-76b9b130.js";import"./useSlotProps-4a56e8a6.js";import"./Popover-aff34d88.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";const $=({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 E(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)||V,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($,{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(q,{})})]})]})]})},Q=l.div` +import{r,j as e,bf as F,a7 as O,F as h,bg as E,o as l,T as k,O as I,y as A,q as T,bh as N}from"./index-931430a1.js";import{B as z}from"./index-d447730d.js";import{k as D,i as M,F as Y,B as P}from"./index-9910581f.js";import{S as X,A as G,N as H,F as R,b as q}from"./NodeCircleIcon-c0da6b29.js";import{A as L,O as V,T as W}from"./index-1ecda1ff.js";import{C as _}from"./ClipLoader-da7156bc.js";import"./Stack-179be030.js";import"./useSlotProps-1d7699bd.js";import"./Popover-92a41dd0.js";import"./createSvgIcon-2d6cbf8b.js";import"./TextareaAutosize-293fa137.js";const $=({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 E(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)||V,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($,{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(q,{})})]})]})]})},Q=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-1477a4a5.js b/build/assets/index-c30ce896.js similarity index 64% rename from build/assets/index-1477a4a5.js rename to build/assets/index-c30ce896.js index a63e4ba73..e797bbe19 100644 --- a/build/assets/index-1477a4a5.js +++ b/build/assets/index-c30ce896.js @@ -1 +1 @@ -import{p as o}from"./index-20244629.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{p as o}from"./index-931430a1.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-a1bce07a.js b/build/assets/index-c34ea667.js similarity index 64% rename from build/assets/index-a1bce07a.js rename to build/assets/index-c34ea667.js index 0230ecbc4..980bdf402 100644 --- a/build/assets/index-a1bce07a.js +++ b/build/assets/index-c34ea667.js @@ -1,4 +1,4 @@ -import{o as i,j as t,q as a}from"./index-20244629.js";import{f as n}from"./index.esm-120f9454.js";import{y as e}from"./index-922a0411.js";const r=i.div` +import{o as i,j as t,q as a}from"./index-931430a1.js";import{f as n}from"./index.esm-25778014.js";import{y as e}from"./index-9910581f.js";const r=i.div` display: Flex; justify-content: center; align-items: center; diff --git a/build/assets/index-fb1d223f.js b/build/assets/index-d447730d.js similarity index 96% rename from build/assets/index-fb1d223f.js rename to build/assets/index-d447730d.js index bce606904..c1bff979e 100644 --- a/build/assets/index-fb1d223f.js +++ b/build/assets/index-d447730d.js @@ -1,4 +1,4 @@ -import{ai as m,o as s,q as r,ag as o,F as d,O as w,r as y,j as e}from"./index-20244629.js";import{k as v}from"./index-922a0411.js";const k=m` +import{ai as m,o as s,q as r,ag as o,F as d,O as w,r as y,j as e}from"./index-931430a1.js";import{k as v}from"./index-9910581f.js";const k=m` 0% { transform: scale(0.8); } diff --git a/build/assets/index-166b6403.js b/build/assets/index-d5b67b5d.js similarity index 99% rename from build/assets/index-166b6403.js rename to build/assets/index-d5b67b5d.js index f9dc1ef19..c008c9a9a 100644 --- a/build/assets/index-166b6403.js +++ b/build/assets/index-d5b67b5d.js @@ -1,4 +1,4 @@ -import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,E as ef,y as Jt,p as nt,U as bo,v as du,V as tf,X as sf,Y as nf,Z as rf,a0 as of,a1 as af,a2 as cf,a3 as lf,a4 as uf,O as $o,a5 as hf,a6 as df,a7 as ff,a8 as pf,M as mf}from"./index-20244629.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-b9333c3d.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,T as tl,A as Jf,b as ep,O as tp,c as sp}from"./index-922a0411.js";import{T as np}from"./TextareaAutosize-ed8bfc98.js";import{D as ip}from"./DeleteIcon-b904bd34.js";import{M as rp,a as op}from"./index.esm-120f9454.js";import{u as ap}from"./index-1477a4a5.js";import{M as cp,A as lp,E as up}from"./MergeIcon-32b40892.js";import{P as hp}from"./PlusIcon-f79d966c.js";import{P as dp}from"./Popover-aff34d88.js";import{C as fp}from"./ClipLoader-a0c1d0d5.js";import"./useSlotProps-4a56e8a6.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?b.useEffect:b.useLayoutEffect;function _p(n){const e=typeof n=="function"?pp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(g=>g+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let 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=b.useRef(o);sl(()=>{const g=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(g);return e.getState()!==m.current&&g(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const gp=_p(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.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=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={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 Af,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,Ar=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),Ar.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),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,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}=ge(),[p,g]=b.useState(!1),[v,S]=b.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],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),_=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new Tp(l,_.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,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.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){E.x=Math.max(x.x,B.clientX),E.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=`${E.x-C.x}px`,k.style.height=`${E.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 Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);wp(Te,z)||(z=Te,S({object:o(Te)}))}}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]),b.createElement("group",$a({ref:_,onClick:T,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:y},a),b.createElement(kp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),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(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! +import{r as b,_ as $a,j as M,R as Zr,w as uu,o as ze,q as we,F as xs,B as xn,J as hu,A as hr,E as ef,y as Jt,p as nt,U as bo,v as du,V as tf,X as sf,Y as nf,Z as rf,a0 as of,a1 as af,a2 as cf,a3 as lf,a4 as uf,O as $o,a5 as hf,a6 as df,a7 as ff,a8 as pf,M as mf}from"./index-931430a1.js";import{u as ge,a as Xa,e as Qa,b as Rt,L as _f,c as gf,d as vf,m as yf,f as xf,g as Tf,h as fu,H as dr,t as pu,T as wf,i as kf,j as Sf,D as Cf,C as bf,P as Ef,k as Of}from"./index-1274a067.js";import{D as Cr,F as Af,V as X,a as Fe,T as Eo,b as Mf,C as hs,W as Df,c as Rf,E as Ka,d as Tt,N as Gn,e as Pf,B as oi,U as ps,M as If,f as Nf,g as Ff,h as Uf,i as Lf,j as br,k as Mi,S as es,l as Bf,m as Q,R as zf,n as Ts,o as Ta,P as mu,p as Ja,q as Jc,r as Vf,L as $r,s as jf,t as _u,u as gu,v as vu,w as yu,x as el,y as Hf,z as qf,A as Er,H as Wf,G as Gf,I as Yf,J as Zf,K as $f,O as Xf,Q as fr,X as Qf,Y as Kf}from"./three.module-2ce81f73.js";import{B as xu,_ as Ue,a as Vt,u as ec,T as tl,A as Jf,b as ep,O as tp,c as sp}from"./index-9910581f.js";import{T as np}from"./TextareaAutosize-293fa137.js";import{D as ip}from"./DeleteIcon-46e3d4ca.js";import{M as rp,a as op}from"./index.esm-25778014.js";import{u as ap}from"./index-c30ce896.js";import{M as cp,A as lp,E as up}from"./MergeIcon-faa51e87.js";import{P as hp}from"./PlusIcon-92013c0a.js";import{P as dp}from"./Popover-92a41dd0.js";import{C as fp}from"./ClipLoader-da7156bc.js";import"./useSlotProps-1d7699bd.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?b.useEffect:b.useLayoutEffect;function _p(n){const e=typeof n=="function"?pp(n):n,t=(s=e.getState,i=Object.is)=>{const[,r]=b.useReducer(g=>g+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(i),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let 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=b.useRef(o);sl(()=>{const g=()=>{try{const S=e.getState(),T=c.current(S);l.current(h.current,T)||(a.current=S,h.current=T,r())}catch{u.current=!0,r()}},v=e.subscribe(g);return e.getState()!==m.current&&g(),v},[]);const p=d?f:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const i=s.length<=0;return{value:s.shift(),done:i}}}},t}let fi=0;const gp=_p(n=>(Cr.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-fi)/(s-fi)*100})},Cr.onLoad=()=>{n({active:!1})},Cr.onError=e=>n(t=>({errors:[...t.errors,e]})),Cr.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=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,f]=b.useState(r(o));b.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>f(o),300)),()=>clearTimeout(m)},[h,o]);const d=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=i(c.current),c.current(d(),()=>cancelAnimationFrame(l.current)),[d]),h?b.createElement("div",{style:{...Or.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Or.inner,...e}},b.createElement("div",{style:{...Or.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Or.data,...s}})))):null}const Or={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 Af,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,Ar=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),Ar.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),Ar.unproject(this.camera);var s=Xo.planes;s[0].setFromCoplanarPoints(is,mi,_i),s[1].setFromCoplanarPoints(qt,_i,gi),s[2].setFromCoplanarPoints(gi,Ar,os),s[3].setFromCoplanarPoints(Ar,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}=ge(),[p,g]=b.useState(!1),[v,S]=b.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],[]);b.useEffect(()=>void(s==null?void 0:s(v)),[v]);const T=b.useCallback(w=>{w.stopPropagation(),S({object:o([w.object])[0],shift:e&&w.shiftKey})},[]),y=b.useCallback(w=>!p&&S({}),[p]),_=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const w=new Tp(l,_.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,E=new Fe,O=m().events.enabled,A=f==null?void 0:f.enabled;let R=!1;function P(B,Te){const{offsetX:ae,offsetY:$}=B,{width:me,height:Ye}=d;Te.set(ae/me*2-1,-($/Ye)*2+1)}function F(B){var Te;f&&(f.enabled=!1),c({enabled:!1}),R=!0,(Te=h.domElement.parentElement)==null||Te.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){E.x=Math.max(x.x,B.clientX),E.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=`${E.x-C.x}px`,k.style.height=`${E.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 Te=w.select().sort(ae=>ae.uuid).filter(ae=>ae.isMesh);wp(Te,z)||(z=Te,S({object:o(Te)}))}}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]),b.createElement("group",$a({ref:_,onClick:T,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:y},a),b.createElement(kp.Provider,{value:v},t))}const nl=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function on(n,e){const t=ge(i=>i.gl),s=Xa(Eo,nl(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),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(Eo,n);on.clear=n=>Xa.clear(Eo,n);/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu diff --git a/build/assets/index-0494f451.js b/build/assets/index-f066ce61.js similarity index 98% rename from build/assets/index-0494f451.js rename to build/assets/index-f066ce61.js index ea45d37a0..39c58e138 100644 --- a/build/assets/index-0494f451.js +++ b/build/assets/index-f066ce61.js @@ -1,4 +1,4 @@ -import{r as h,b as Y,g as q,s as F,_ as N,u as Q,a as K,j as e,c as X,d as J,e as P,ad as ut,f as oe,ae as gt,o as d,q as x,T as L,F as g,O as E,ba as ft,ag as te,R as ne,B as ae,aa as mt,bb as bt,bc as Ge,v as re,bd as Ze,a7 as je,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,K as St,Q as $t}from"./index-20244629.js";import{B as ce}from"./index-fb1d223f.js";import{P as kt}from"./PlusIcon-f79d966c.js";import{B as W,I as Z,k as ee,i as ye,F as we}from"./index-922a0411.js";import{T as Me,s as U,a as Qe,S as Ke,A as ve,N as Xe,F as Je,b as et,E as _t,D as Lt,c as tt,Q as st,V as ot,d as Mt}from"./NodeCircleIcon-4410772f.js";import{C as M}from"./ClipLoader-a0c1d0d5.js";import{f as Nt,g as Bt,h as zt,a as It}from"./index.esm-120f9454.js";import{P as Te,a as Rt}from"./Popover-aff34d88.js";import{S as nt}from"./SearchIcon-61a39fc4.js";import{I as Et,A as Se,O as rt,T as it}from"./index-bb4ca660.js";import{B as At,T as Ot}from"./index-68ed2d99.js";import{D as Ft}from"./DeleteIcon-b904bd34.js";import{E as Ht,M as Ne,A as Wt}from"./MergeIcon-32b40892.js";import{u as I}from"./index-6bd8a92b.js";import{C as at}from"./CheckIcon-78afa5f1.js";import{T as Be}from"./Typography-2d560971.js";import{T as Pt,a as Ut}from"./Tabs-e60acdc7.js";import"./useSlotProps-4a56e8a6.js";import"./Stack-76b9b130.js";import"./createSvgIcon-bd0d8dc7.js";import"./TextareaAutosize-ed8bfc98.js";import"./InfoIcon-35720818.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=F("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=K(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:X(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Kt(t){return Y("MuiTableBody",t)}q("MuiTableBody",["root"]);const Xt=["className","component"],Jt=t=>{const{classes:s}=t;return J({root:["root"]},Kt,s)},es=F("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=K(r,Xt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:X(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=F("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,b as Y,g as q,s as F,_ as N,u as Q,a as K,j as e,c as X,d as J,e as P,ad as ut,f as oe,ae as gt,o as d,q as x,T as L,F as g,O as E,ba as ft,ag as te,R as ne,B as ae,aa as mt,bb as bt,bc as Ge,v as re,bd as Ze,a7 as je,aZ as ke,aY as _e,a$ as Le,be as Ct,J as Ye,bf as jt,bg as qe,bh as yt,aW as wt,bi as le,bj as vt,A as Tt,K as St,Q as $t}from"./index-931430a1.js";import{B as ce}from"./index-d447730d.js";import{P as kt}from"./PlusIcon-92013c0a.js";import{B as W,I as Z,k as ee,i as ye,F as we}from"./index-9910581f.js";import{T as Me,s as U,a as Qe,S as Ke,A as ve,N as Xe,F as Je,b as et,E as _t,D as Lt,c as tt,Q as st,V as ot,d as Mt}from"./NodeCircleIcon-c0da6b29.js";import{C as M}from"./ClipLoader-da7156bc.js";import{f as Nt,g as Bt,h as zt,a as It}from"./index.esm-25778014.js";import{P as Te,a as Rt}from"./Popover-92a41dd0.js";import{S as nt}from"./SearchIcon-2fabe9d1.js";import{I as Et,A as Se,O as rt,T as it}from"./index-1ecda1ff.js";import{B as At,T as Ot}from"./index-8870d532.js";import{D as Ft}from"./DeleteIcon-46e3d4ca.js";import{E as Ht,M as Ne,A as Wt}from"./MergeIcon-faa51e87.js";import{u as I}from"./index-67a17864.js";import{C as at}from"./CheckIcon-7a9fa35b.js";import{T as Be}from"./Typography-f70a691a.js";import{T as Pt,a as Ut}from"./Tabs-a92afa02.js";import"./useSlotProps-1d7699bd.js";import"./Stack-179be030.js";import"./createSvgIcon-2d6cbf8b.js";import"./TextareaAutosize-293fa137.js";import"./InfoIcon-b9565bf8.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=F("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=K(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:X(p.root,a),ownerState:m},u))})}),de=qt,Qt=h.createContext(),pe=Qt;function Kt(t){return Y("MuiTableBody",t)}q("MuiTableBody",["root"]);const Xt=["className","component"],Jt=t=>{const{classes:s}=t;return J({root:["root"]},Kt,s)},es=F("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=K(r,Xt),o=N({},r,{component:l}),c=Jt(o);return e.jsx(pe.Provider,{value:ts,children:e.jsx(es,N({className:X(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=F("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=K(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:$}),O=ls(A);let B=null;return m&&(B=m==="asc"?"ascending":"descending"),e.jsx(cs,N({as:y,ref:n,className:X(O.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=F("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=K(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:X(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=F("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=K(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:X(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}; diff --git a/build/assets/index-bce8e63a.js b/build/assets/index-f8725cc4.js similarity index 92% rename from build/assets/index-bce8e63a.js rename to build/assets/index-f8725cc4.js index e2dc369bb..d6ca3fbee 100644 --- a/build/assets/index-bce8e63a.js +++ b/build/assets/index-f8725cc4.js @@ -1,4 +1,4 @@ -import{o as s,q as l,F as n,p as w,j as e,t as G,v as C,T as S,r as f,A as v,aU as A,aV as b,aW as I,J as B,O as y}from"./index-20244629.js";import{B as z}from"./index-fb1d223f.js";import{u as M,G as k,C as D,l as E,o as R,B as T,i as W,F}from"./index-922a0411.js";import{C as $}from"./ClipLoader-a0c1d0d5.js";import{T as j}from"./index-68ed2d99.js";import{S as P}from"./index-a1bce07a.js";import{e as V}from"./index.esm-120f9454.js";import{T as L,a as N}from"./Tabs-e60acdc7.js";import"./InfoIcon-35720818.js";import"./useSlotProps-4a56e8a6.js";import"./createSvgIcon-bd0d8dc7.js";const O={split:e.jsx(k,{}),force:e.jsx(D,{}),sphere:e.jsx(E,{}),earth:e.jsx(R,{})},Y=()=>{const[i,p]=w(M(t=>[t.graphStyle,t.setGraphStyle])),r=t=>{p(t)};return e.jsx(q,{direction:"column",children:G.map(t=>e.jsx(n,{className:C("icon",{active:i===t}),onClick:()=>r(t),children:O[t]},t))})},q=s(n).attrs({direction:"row",align:"center",justify:"space-between"})` +import{o as s,q as l,F as n,p as w,j as e,t as G,v as C,T as S,r as f,A as v,aU as A,aV as b,aW as I,J as B,O as y}from"./index-931430a1.js";import{B as z}from"./index-d447730d.js";import{u as M,G as k,C as D,l as E,o as R,B as T,i as W,F}from"./index-9910581f.js";import{C as $}from"./ClipLoader-da7156bc.js";import{T as j}from"./index-8870d532.js";import{S as P}from"./index-c34ea667.js";import{e as V}from"./index.esm-25778014.js";import{T as L,a as N}from"./Tabs-a92afa02.js";import"./InfoIcon-b9565bf8.js";import"./useSlotProps-1d7699bd.js";import"./createSvgIcon-2d6cbf8b.js";const O={split:e.jsx(k,{}),force:e.jsx(D,{}),sphere:e.jsx(E,{}),earth:e.jsx(R,{})},Y=()=>{const[i,p]=w(M(t=>[t.graphStyle,t.setGraphStyle])),r=t=>{p(t)};return e.jsx(q,{direction:"column",children:G.map(t=>e.jsx(n,{className:C("icon",{active:i===t}),onClick:()=>r(t),children:O[t]},t))})},q=s(n).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${l.appearanceBg}; diff --git a/build/assets/index.esm-120f9454.js b/build/assets/index.esm-25778014.js similarity index 98% rename from build/assets/index.esm-120f9454.js rename to build/assets/index.esm-25778014.js index 5a3db5a13..a8faca1ea 100644 --- a/build/assets/index.esm-120f9454.js +++ b/build/assets/index.esm-25778014.js @@ -1 +1 @@ -import{R as c}from"./index-20244629.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{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),f=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),d=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,f,a);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:f,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},f,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; +import{_ as r,a as h}from"./index-931430a1.js";import{e as w}from"./index-9910581f.js";function A(e,o=166){let t;function n(...s){const i=()=>{e.apply(this,s)};clearTimeout(t),t=setTimeout(i,o)}return n.clear=()=>{clearTimeout(t)},n}function x(e){return e&&e.ownerDocument||document}function T(e){return x(e).defaultView||window}function N(e){return typeof e=="string"}function k(e,o,t){return e===void 0||N(e)?o:r({},o,{ownerState:r({},o.ownerState,t)})}function E(e,o=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!o.includes(n)).forEach(n=>{t[n]=e[n]}),t}function H(e,o,t){return typeof e=="function"?e(o,t):e}function P(e){var o,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{o[t]=e[t]}),o}function R(e){const{getSlotProps:o,additionalProps:t,externalSlotProps:n,externalForwardedProps:s,className:i}=e;if(!o){const v=g(t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),y=r({},t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),p=r({},t,s,n);return v.length>0&&(p.className=v),Object.keys(y).length>0&&(p.style=y),{props:p,internalRef:void 0}}const c=E(r({},s,n)),a=S(n),f=S(s),l=o(c),u=g(l==null?void 0:l.className,t==null?void 0:t.className,i,s==null?void 0:s.className,n==null?void 0:n.className),d=r({},l==null?void 0:l.style,t==null?void 0:t.style,s==null?void 0:s.style,n==null?void 0:n.style),m=r({},l,t,f,a);return u.length>0&&(m.className=u),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:l.ref}}const C=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function W(e){var o;const{elementType:t,externalSlotProps:n,ownerState:s,skipResolvingSlotProps:i=!1}=e,c=h(e,C),a=i?{}:H(n,s),{props:f,internalRef:l}=R(r({},c,{externalSlotProps:a})),u=w(l,a==null?void 0:a.ref,(o=e.additionalProps)==null?void 0:o.ref);return k(t,r({},f,{ref:u}),s)}export{T as a,A as d,E as e,N as i,x as o,W as u}; diff --git a/build/index.html b/build/index.html index 6c51c79f0..5ecabd705 100644 --- a/build/index.html +++ b/build/index.html @@ -22,7 +22,7 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Second Brain - +