From 3b9bef75e1d170e95c8aa78621d43c608b530a2c Mon Sep 17 00:00:00 2001 From: Github Actions Date: Mon, 15 Apr 2024 18:08:01 +0000 Subject: [PATCH] ci: automatic build fixes --- ...Icon-1dbe3e4f.js => CheckIcon-b94a1aa2.js} | 2 +- ...923c599.js => ChevronDownIcon-cf5b6e54.js} | 2 +- ...b85265.js => ChevronRightIcon-27a1f67e.js} | 4 +- ...-e45e7605.js => ChevronUpIcon-6e1fca04.js} | 2 +- ...on-43b019d7.js => DailyMotion-89c8d6f4.js} | 2 +- ...con-9344ab3f.js => DeleteIcon-7b7519eb.js} | 2 +- ...tIcon-26187d62.js => EditIcon-67ff5cde.js} | 2 +- ...ebook-f2631112.js => Facebook-79351ad2.js} | 2 +- ...yer-b00b1daf.js => FilePlayer-ec1685f7.js} | 2 +- ...oIcon-6417fafc.js => InfoIcon-de2f1e11.js} | 2 +- ...altura-233339d4.js => Kaltura-a1fce73b.js} | 2 +- ...cloud-45a29892.js => Mixcloud-f492042b.js} | 2 +- ...sIcon-8eca7748.js => PlusIcon-261fd641.js} | 2 +- ...opover-243f389d.js => Popover-28c1573e.js} | 2 +- ...{Popper-831e364f.js => Popper-704ca55a.js} | 2 +- ...review-9f52d3ed.js => Preview-3a8f7b33.js} | 2 +- ...{Select-72591674.js => Select-f3cb55de.js} | 2 +- ...n-52b7c188.js => SettingsIcon-cd476525.js} | 2 +- ...leton-e77d8e84.js => Skeleton-bd55acf5.js} | 2 +- ...oud-01ae3e26.js => SoundCloud-792f37c3.js} | 2 +- ...644acb.js => SourcesTableIcon-9e0ca82c.js} | 2 +- .../{Stack-f811e4d7.js => Stack-b0e83988.js} | 2 +- ...ble-f359ad79.js => Streamable-d68969b3.js} | 2 +- ...{Twitch-ff7ec024.js => Twitch-b2e38a75.js} | 2 +- ...idyard-6f943902.js => Vidyard-b661dc63.js} | 2 +- .../{Vimeo-0924a8be.js => Vimeo-fafc1c36.js} | 2 +- ...{Wistia-bad63915.js => Wistia-634d4968.js} | 2 +- ...ouTube-1faa93f6.js => YouTube-b06f3c81.js} | 2 +- ...s => generateCategoricalChart-a6175423.js} | 2 +- .../{index-2980925d.js => index-027fb887.js} | 2 +- .../{index-4e0797a7.js => index-0c223900.js} | 2 +- .../{index-70d242b4.js => index-111127f1.js} | 2 +- .../{index-2ab7123b.js => index-1e89d407.js} | 2 +- .../{index-f4cecc6a.js => index-27eeda15.js} | 2 +- build/assets/index-2be12e8f.js | 127 ++++++++++++++++++ .../{index-3b73036d.js => index-31f1e4e1.js} | 2 +- .../{index-04e75ad0.js => index-341edfe1.js} | 2 +- .../{index-211330ba.js => index-39ab8de8.js} | 2 +- .../{index-d7d885cc.js => index-3e35ec51.js} | 6 +- .../{index-1e6f3f24.js => index-425defa3.js} | 2 +- .../{index-59318f27.js => index-47761ce5.js} | 2 +- .../{index-48249864.js => index-49e7e9f0.js} | 52 +++---- .../{index-b3c0721c.js => index-6d7b2c18.js} | 2 +- .../{index-aaab6905.js => index-7e285ddc.js} | 2 +- .../{index-3d04ae19.js => index-7ec3af29.js} | 2 +- .../{index-05052fac.js => index-84d1451b.js} | 2 +- .../{index-fd857883.js => index-856cc0ad.js} | 2 +- .../{index-10529c72.js => index-9a5d03e5.js} | 2 +- .../{index-cbae5b15.js => index-af9ec5c1.js} | 2 +- .../{index-07ec87ed.js => index-b1d32821.js} | 2 +- .../{index-c49cd75f.js => index-b492ed52.js} | 2 +- .../{index-c522bd40.js => index-b85f35cf.js} | 6 +- .../{index-4c973ba9.js => index-b8c5588f.js} | 2 +- .../{index-dae8afeb.js => index-b9c9b7e2.js} | 2 +- build/assets/index-b9e1797f.js | 1 - .../{index-dea9ab33.js => index-d1eb23da.js} | 2 +- .../{index-6b65029d.js => index-d440b5f0.js} | 2 +- build/assets/index-d7a5eaa0.js | 1 + .../{index-488af8fb.js => index-dd766344.js} | 2 +- .../{index-7bc58129.js => index-e0d568ee.js} | 2 +- .../{index-2d16147d.js => index-e6f0fb8d.js} | 2 +- .../{index-e6397dbc.js => index-f0140d93.js} | 2 +- build/assets/index-f4a6d193.js | 127 ------------------ .../{index-0a908253.js => index-f774867a.js} | 2 +- ....esm-f21f36d4.js => index.esm-ac56504e.js} | 2 +- ...1e5f.js => react-toastify.esm-ce67a4f9.js} | 2 +- ...s-96b7890f.js => useSlotProps-b8a587b0.js} | 2 +- build/index.html | 2 +- 68 files changed, 222 insertions(+), 222 deletions(-) rename build/assets/{CheckIcon-1dbe3e4f.js => CheckIcon-b94a1aa2.js} (92%) rename build/assets/{ChevronDownIcon-e923c599.js => ChevronDownIcon-cf5b6e54.js} (95%) rename build/assets/{ChevronRightIcon-83b85265.js => ChevronRightIcon-27a1f67e.js} (98%) rename build/assets/{ChevronUpIcon-e45e7605.js => ChevronUpIcon-6e1fca04.js} (98%) rename build/assets/{DailyMotion-43b019d7.js => DailyMotion-89c8d6f4.js} (95%) rename build/assets/{DeleteIcon-9344ab3f.js => DeleteIcon-7b7519eb.js} (96%) rename build/assets/{EditIcon-26187d62.js => EditIcon-67ff5cde.js} (94%) rename build/assets/{Facebook-f2631112.js => Facebook-79351ad2.js} (96%) rename build/assets/{FilePlayer-b00b1daf.js => FilePlayer-ec1685f7.js} (98%) rename build/assets/{InfoIcon-6417fafc.js => InfoIcon-de2f1e11.js} (97%) rename build/assets/{Kaltura-233339d4.js => Kaltura-a1fce73b.js} (95%) rename build/assets/{Mixcloud-45a29892.js => Mixcloud-f492042b.js} (95%) rename build/assets/{PlusIcon-8eca7748.js => PlusIcon-261fd641.js} (94%) rename build/assets/{Popover-243f389d.js => Popover-28c1573e.js} (99%) rename build/assets/{Popper-831e364f.js => Popper-704ca55a.js} (98%) rename build/assets/{Preview-9f52d3ed.js => Preview-3a8f7b33.js} (97%) rename build/assets/{Select-72591674.js => Select-f3cb55de.js} (99%) rename build/assets/{SettingsIcon-52b7c188.js => SettingsIcon-cd476525.js} (97%) rename build/assets/{Skeleton-e77d8e84.js => Skeleton-bd55acf5.js} (97%) rename build/assets/{SoundCloud-01ae3e26.js => SoundCloud-792f37c3.js} (95%) rename build/assets/{SourcesTableIcon-d2644acb.js => SourcesTableIcon-9e0ca82c.js} (99%) rename build/assets/{Stack-f811e4d7.js => Stack-b0e83988.js} (97%) rename build/assets/{Streamable-f359ad79.js => Streamable-d68969b3.js} (95%) rename build/assets/{Twitch-ff7ec024.js => Twitch-b2e38a75.js} (95%) rename build/assets/{Vidyard-6f943902.js => Vidyard-b661dc63.js} (95%) rename build/assets/{Vimeo-0924a8be.js => Vimeo-fafc1c36.js} (96%) rename build/assets/{Wistia-bad63915.js => Wistia-634d4968.js} (96%) rename build/assets/{YouTube-1faa93f6.js => YouTube-b06f3c81.js} (97%) rename build/assets/{generateCategoricalChart-876bdce4.js => generateCategoricalChart-a6175423.js} (99%) rename build/assets/{index-2980925d.js => index-027fb887.js} (98%) rename build/assets/{index-4e0797a7.js => index-0c223900.js} (93%) rename build/assets/{index-70d242b4.js => index-111127f1.js} (92%) rename build/assets/{index-2ab7123b.js => index-1e89d407.js} (94%) rename build/assets/{index-f4cecc6a.js => index-27eeda15.js} (79%) create mode 100644 build/assets/index-2be12e8f.js rename build/assets/{index-3b73036d.js => index-31f1e4e1.js} (93%) rename build/assets/{index-04e75ad0.js => index-341edfe1.js} (98%) rename build/assets/{index-211330ba.js => index-39ab8de8.js} (99%) rename build/assets/{index-d7d885cc.js => index-3e35ec51.js} (82%) rename build/assets/{index-1e6f3f24.js => index-425defa3.js} (82%) rename build/assets/{index-59318f27.js => index-47761ce5.js} (95%) rename build/assets/{index-48249864.js => index-49e7e9f0.js} (87%) rename build/assets/{index-b3c0721c.js => index-6d7b2c18.js} (87%) rename build/assets/{index-aaab6905.js => index-7e285ddc.js} (62%) rename build/assets/{index-3d04ae19.js => index-7ec3af29.js} (95%) rename build/assets/{index-05052fac.js => index-84d1451b.js} (86%) rename build/assets/{index-fd857883.js => index-856cc0ad.js} (93%) rename build/assets/{index-10529c72.js => index-9a5d03e5.js} (90%) rename build/assets/{index-cbae5b15.js => index-af9ec5c1.js} (88%) rename build/assets/{index-07ec87ed.js => index-b1d32821.js} (99%) rename build/assets/{index-c49cd75f.js => index-b492ed52.js} (98%) rename build/assets/{index-c522bd40.js => index-b85f35cf.js} (99%) rename build/assets/{index-4c973ba9.js => index-b8c5588f.js} (91%) rename build/assets/{index-dae8afeb.js => index-b9c9b7e2.js} (89%) delete mode 100644 build/assets/index-b9e1797f.js rename build/assets/{index-dea9ab33.js => index-d1eb23da.js} (97%) rename build/assets/{index-6b65029d.js => index-d440b5f0.js} (91%) create mode 100644 build/assets/index-d7a5eaa0.js rename build/assets/{index-488af8fb.js => index-dd766344.js} (96%) rename build/assets/{index-7bc58129.js => index-e0d568ee.js} (99%) rename build/assets/{index-2d16147d.js => index-e6f0fb8d.js} (98%) rename build/assets/{index-e6397dbc.js => index-f0140d93.js} (98%) delete mode 100644 build/assets/index-f4a6d193.js rename build/assets/{index-0a908253.js => index-f774867a.js} (87%) rename build/assets/{index.esm-f21f36d4.js => index.esm-ac56504e.js} (98%) rename build/assets/{react-toastify.esm-1e5f1e5f.js => react-toastify.esm-ce67a4f9.js} (99%) rename build/assets/{useSlotProps-96b7890f.js => useSlotProps-b8a587b0.js} (97%) diff --git a/build/assets/CheckIcon-1dbe3e4f.js b/build/assets/CheckIcon-b94a1aa2.js similarity index 92% rename from build/assets/CheckIcon-1dbe3e4f.js rename to build/assets/CheckIcon-b94a1aa2.js index 977f6be46..1234bcefb 100644 --- a/build/assets/CheckIcon-1dbe3e4f.js +++ b/build/assets/CheckIcon-b94a1aa2.js @@ -1 +1 @@ -import{j as C}from"./index-c522bd40.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-b85f35cf.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/ChevronDownIcon-e923c599.js b/build/assets/ChevronDownIcon-cf5b6e54.js similarity index 95% rename from build/assets/ChevronDownIcon-e923c599.js rename to build/assets/ChevronDownIcon-cf5b6e54.js index 8a395b69d..bd01732cc 100644 --- a/build/assets/ChevronDownIcon-e923c599.js +++ b/build/assets/ChevronDownIcon-cf5b6e54.js @@ -1 +1 @@ -import{a as t,g as s,j as e}from"./index-c522bd40.js";function a(i){return s("MuiDivider",i)}const r=t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),n=r,C=i=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_2337_2483",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_2337_2483)",children:e.jsx("path",{d:"M7.00001 8.72074C6.92223 8.72074 6.84931 8.70858 6.78126 8.68428C6.7132 8.65997 6.65001 8.61865 6.59167 8.56032L3.90834 5.87699C3.8014 5.77004 3.74792 5.63393 3.74792 5.46865C3.74792 5.30337 3.8014 5.16726 3.90834 5.06032C4.01529 4.95337 4.1514 4.8999 4.31667 4.8999C4.48195 4.8999 4.61806 4.95337 4.72501 5.06032L7.00001 7.33532L9.27501 5.06032C9.38195 4.95337 9.51806 4.8999 9.68334 4.8999C9.84862 4.8999 9.98473 4.95337 10.0917 5.06032C10.1986 5.16726 10.2521 5.30337 10.2521 5.46865C10.2521 5.63393 10.1986 5.77004 10.0917 5.87699L7.40834 8.56032C7.35001 8.61865 7.28681 8.65997 7.21876 8.68428C7.1507 8.70858 7.07779 8.72074 7.00001 8.72074Z",fill:"currentColor"})})]});export{C,n as d,a as g}; +import{a as t,g as s,j as e}from"./index-b85f35cf.js";function a(i){return s("MuiDivider",i)}const r=t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),n=r,C=i=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_2337_2483",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_2337_2483)",children:e.jsx("path",{d:"M7.00001 8.72074C6.92223 8.72074 6.84931 8.70858 6.78126 8.68428C6.7132 8.65997 6.65001 8.61865 6.59167 8.56032L3.90834 5.87699C3.8014 5.77004 3.74792 5.63393 3.74792 5.46865C3.74792 5.30337 3.8014 5.16726 3.90834 5.06032C4.01529 4.95337 4.1514 4.8999 4.31667 4.8999C4.48195 4.8999 4.61806 4.95337 4.72501 5.06032L7.00001 7.33532L9.27501 5.06032C9.38195 4.95337 9.51806 4.8999 9.68334 4.8999C9.84862 4.8999 9.98473 4.95337 10.0917 5.06032C10.1986 5.16726 10.2521 5.30337 10.2521 5.46865C10.2521 5.63393 10.1986 5.77004 10.0917 5.87699L7.40834 8.56032C7.35001 8.61865 7.28681 8.65997 7.21876 8.68428C7.1507 8.70858 7.07779 8.72074 7.00001 8.72074Z",fill:"currentColor"})})]});export{C,n as d,a as g}; diff --git a/build/assets/ChevronRightIcon-83b85265.js b/build/assets/ChevronRightIcon-27a1f67e.js similarity index 98% rename from build/assets/ChevronRightIcon-83b85265.js rename to build/assets/ChevronRightIcon-27a1f67e.js index b5aa5be26..954bb1ddf 100644 --- a/build/assets/ChevronRightIcon-83b85265.js +++ b/build/assets/ChevronRightIcon-27a1f67e.js @@ -1,4 +1,4 @@ -import{U as Ua,o as Jt,y as Mo,r as C,_ as ee,a as er,g as $i,s as yt,a7 as Ya,a5 as $t,u as Ii,b as Ri,j as z,d as ht,e as Li,c as dt,b1 as Xa,b2 as Wa,cO as Di,aT as Za,cP as Ka,G as k,L as Ga,f as ro,h as Je,F as hn,cQ as qa,cR as Ja,cS as oo,cT as Qa,cU as el,aY as Le,a_ as tl,m as Re,cV as nl,cW as rl,ac as ol}from"./index-c522bd40.js";import{g as Oo,x as il,t as zr,y as zi,z as Cr,o as sl}from"./react-toastify.esm-1e5f1e5f.js";import{u as al,L as No}from"./Select-72591674.js";import{d as To}from"./ChevronDownIcon-e923c599.js";import{a as Hn,e as Sr,i as Vn,u as at}from"./useSlotProps-96b7890f.js";import{t as ll,w as Er,r as En,s as ko,v as cl,c as Hi,x as gt,y as $o,z as ul,u as dl,b as Pr,L as Qt,B as fl,A as hl,i as Pn,d as pl,a as Vi,j as jn,F as ml,C as yl,e as Tt,h as gl,G as vl,k as Io,E as bl,H as wl,l as _l,X as xl,Y as Cl,m as Sl,I as Ro,J as Lo,K as El}from"./generateCategoricalChart-876bdce4.js";import{i as Pl}from"./index.esm-f21f36d4.js";const Do="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",Al=async e=>{let t=await Jt.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await Jt.keysend(Do,e),!(t!=null&&t.success)){if(t=await Jt.topup(),t||(t=await Jt.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await Al(t),r={amount:t,refid:e};return await Ua.post("/boost",JSON.stringify(r)),n},cm=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},um=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=Mo.groupBy(n,i=>i.timestamp),o=Mo.values(r).reduce((i,s)=>(s[0]&&i.push(s[0]),i),[]);return o.sort((i,s)=>{var d,f;const[a]=((d=i.timestamp)==null?void 0:d.split("-"))||[""],[l]=((f=s.timestamp)==null?void 0:f.split("-"))||[""],u=Oo(a),c=Oo(l);return u-c}),o},dm=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},Ol={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Nl=Ol;function Tl(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const kl=2;function ji(e,t){return e-t}function en(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function zo(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Dl=e=>e;let Nn;function Ar(){return Nn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Nn=CSS.supports("touch-action","none"):Nn=!0),Nn}function zl(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:p,scale:v=Dl,step:m=1,tabIndex:w,value:y}=e,x=C.useRef(),[E,g]=C.useState(-1),[M,T]=C.useState(-1),[L,R]=C.useState(!1),$=C.useRef(0),[V,D]=al({controlled:y,default:n??l,name:"Slider"}),H=c&&((F,U,Z)=>{const Q=F.nativeEvent||F,ue=new Q.constructor(Q.type,Q);Object.defineProperty(ue,"target",{writable:!0,value:{value:U,name:u}}),c(ue,U,Z)}),P=Array.isArray(V);let h=P?V.slice().sort(ji):[V];h=h.map(F=>en(F,l,a));const S=s===!0&&m!==null?[...Array(Math.floor((a-l)/m)+1)].map((F,U)=>({value:l+m*U})):s||[],b=S.map(F=>F.value),{isFocusVisibleRef:O,onBlur:N,onFocus:_,ref:A}=il(),[I,j]=C.useState(-1),B=C.useRef(),Y=zr(A,B),G=zr(p,Y),ne=F=>U=>{var Z;const Q=Number(U.currentTarget.getAttribute("data-index"));_(U),O.current===!0&&j(Q),T(Q),F==null||(Z=F.onFocus)==null||Z.call(F,U)},oe=F=>U=>{var Z;N(U),O.current===!1&&j(-1),T(-1),F==null||(Z=F.onBlur)==null||Z.call(F,U)};zi(()=>{if(r&&B.current.contains(document.activeElement)){var F;(F=document.activeElement)==null||F.blur()}},[r]),r&&E!==-1&&g(-1),r&&I!==-1&&j(-1);const re=F=>U=>{var Z;(Z=F.onChange)==null||Z.call(F,U);const Q=Number(U.currentTarget.getAttribute("data-index")),ue=h[Q],ae=b.indexOf(ue);let J=U.target.valueAsNumber;if(S&&m==null){const le=b[b.length-1];J>le?J=le:J{const{current:Z}=B,{width:Q,height:ue,bottom:ae,left:J}=Z.getBoundingClientRect();let le;se.indexOf("vertical")===0?le=(ae-F.y)/ue:le=(F.x-J)/Q,se.indexOf("-reverse")!==-1&&(le=1-le);let ce;if(ce=$l(le,l,a),m)ce=Rl(ce,m,l);else{const Me=zo(b,ce);ce=b[Me]}ce=en(ce,l,a);let Ee=0;if(P){U?Ee=ie.current:Ee=zo(h,ce),o&&(ce=en(ce,h[Ee-1]||-1/0,h[Ee+1]||1/0));const Me=ce;ce=Ho({values:h,newValue:ce,index:Ee}),o&&U||(Ee=ce.indexOf(Me),ie.current=Ee)}return{newValue:ce,activeIndex:Ee}},_e=Cr(F=>{const U=An(F,x);if(!U)return;if($.current+=1,F.type==="mousemove"&&F.buttons===0){he(F);return}const{newValue:Z,activeIndex:Q}=me({finger:U,move:!0});Mn({sliderRef:B,activeIndex:Q,setActive:g}),D(Z),!L&&$.current>kl&&R(!0),H&&!On(Z,V)&&H(F,Z,Q)}),he=Cr(F=>{const U=An(F,x);if(R(!1),!U)return;const{newValue:Z}=me({finger:U,move:!0});g(-1),F.type==="touchend"&&T(-1),d&&d(F,Z),x.current=void 0,K()}),q=Cr(F=>{if(r)return;Ar()||F.preventDefault();const U=F.changedTouches[0];U!=null&&(x.current=U.identifier);const Z=An(F,x);if(Z!==!1){const{newValue:ue,activeIndex:ae}=me({finger:Z});Mn({sliderRef:B,activeIndex:ae,setActive:g}),D(ue),H&&!On(ue,V)&&H(F,ue,ae)}$.current=0;const Q=Hn(B.current);Q.addEventListener("touchmove",_e),Q.addEventListener("touchend",he)}),K=C.useCallback(()=>{const F=Hn(B.current);F.removeEventListener("mousemove",_e),F.removeEventListener("mouseup",he),F.removeEventListener("touchmove",_e),F.removeEventListener("touchend",he)},[he,_e]);C.useEffect(()=>{const{current:F}=B;return F.addEventListener("touchstart",q,{passive:Ar()}),()=>{F.removeEventListener("touchstart",q,{passive:Ar()}),K()}},[K,q]),C.useEffect(()=>{r&&K()},[r,K]);const ye=F=>U=>{var Z;if((Z=F.onMouseDown)==null||Z.call(F,U),r||U.defaultPrevented||U.button!==0)return;U.preventDefault();const Q=An(U,x);if(Q!==!1){const{newValue:ae,activeIndex:J}=me({finger:Q});Mn({sliderRef:B,activeIndex:J,setActive:g}),D(ae),H&&!On(ae,V)&&H(U,ae,J)}$.current=0;const ue=Hn(B.current);ue.addEventListener("mousemove",_e),ue.addEventListener("mouseup",he)},ge=Xn(P?h[0]:l,l,a),W=Xn(h[h.length-1],l,a)-ge,Ue=(F={})=>{const U=Sr(F),Z={onMouseDown:ye(U||{})},Q=ee({},U,Z);return ee({},F,{ref:G},Q)},fe=F=>U=>{var Z;(Z=F.onMouseOver)==null||Z.call(F,U);const Q=Number(U.currentTarget.getAttribute("data-index"));T(Q)},ze=F=>U=>{var Z;(Z=F.onMouseLeave)==null||Z.call(F,U),T(-1)};return{active:E,axis:se,axisProps:Ll,dragging:L,focusedThumbIndex:I,getHiddenInputProps:(F={})=>{var U;const Z=Sr(F),Q={onChange:re(Z||{}),onFocus:ne(Z||{}),onBlur:oe(Z||{})},ue=ee({},Z,Q);return ee({tabIndex:w,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":v(a),"aria-valuemin":v(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(U=e.step)!=null?U:void 0,disabled:r},F,ue,{style:ee({},Nl,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ue,getThumbProps:(F={})=>{const U=Sr(F),Z={onMouseOver:fe(U||{}),onMouseLeave:ze(U||{})};return ee({},F,U,Z)},marks:S,open:M,range:P,rootRef:G,trackLeap:W,trackOffset:ge,values:h,getThumbStyle:F=>({pointerEvents:E!==-1&&E!==F?"none":void 0})}}const Hl=er("MuiListItemIcon",["root","alignItemsFlexStart"]),Vo=Hl,Vl=er("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jo=Vl;function jl(e){return $i("MuiMenuItem",e)}const Bl=er("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tn=Bl,Fl=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ul=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Yl=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=Li({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},jl,s);return ee({},s,l)},Xl=yt(sl,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ul})(({theme:e,ownerState:t})=>ee({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${To.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${To.inset}`]:{marginLeft:52},[`& .${jo.root}`]:{marginTop:0,marginBottom:0},[`& .${jo.inset}`]:{paddingLeft:36},[`& .${Vo.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ee({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Vo.root} svg`]:{fontSize:"1.25rem"}}))),Wl=C.forwardRef(function(t,n){const r=Ii({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,p=Ri(r,Fl),v=C.useContext(No),m=C.useMemo(()=>({dense:s||v.dense||!1,disableGutters:l}),[v.dense,s,l]),w=C.useRef(null);zi(()=>{o&&w.current&&w.current.focus()},[o]);const y=ee({},r,{dense:m.dense,divider:a,disableGutters:l}),x=Yl(r),E=zr(w,n);let g;return r.disabled||(g=d!==void 0?d:-1),z.jsx(No.Provider,{value:m,children:z.jsx(Xl,ee({ref:E,role:c,tabIndex:g,component:i,focusVisibleClassName:ht(x.focusVisible,u),className:ht(x.root,f)},p,{ownerState:y,classes:x}))})}),fm=Wl,Zl=e=>!e||!Vn(e),Kl=Zl;function Gl(e){return $i("MuiSlider",e)}const ql=er("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"]),Ze=ql,Jl=e=>{const{open:t}=e;return{offset:ht(t&&Ze.valueLabelOpen),circle:Ze.valueLabelCircle,label:Ze.valueLabelLabel}};function Ql(e){const{children:t,className:n,value:r}=e,o=Jl(e);return t?C.cloneElement(t,{className:ht(t.props.className)},z.jsxs(C.Fragment,{children:[t.props.children,z.jsx("span",{className:ht(o.offset,n),"aria-hidden":!0,children:z.jsx("span",{className:o.circle,children:z.jsx("span",{className:o.label,children:r})})})]})):null}const ec=["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 Bo(e){return e}const tc=yt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dt(n.color)}`],n.size!=="medium"&&t[`size${dt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ee({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ee({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ee({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Ze.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ze.dragging}`]:{[`& .${Ze.thumb}, & .${Ze.track}`]:{transition:"none"}}})),nc=yt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ee({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),rc=yt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Xa(e.palette[t.color].main,.62):Wa(e.palette[t.color].main,.5);return ee({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),oc=yt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dt(n.color)}`],n.size!=="medium"&&t[`thumbSize${dt(n.size)}`]]}})(({theme:e,ownerState:t})=>ee({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ee({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Ze.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:$t(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ze.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:$t(e.palette[t.color].main,.16)}`},[`&.${Ze.disabled}`]:{"&:hover":{boxShadow:"none"}}})),ic=yt(Ql,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ee({[`&.${Ze.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"})),sc=yt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Di(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ee({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),ac=yt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Di(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ee({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),lc=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${dt(a)}`,l&&`size${dt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dt(l)}`,a&&`thumbColor${dt(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Li(u,Gl,s)},cc=({children:e})=>e,uc=C.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,p,v,m,w,y,x,E,g,M,T,L,R,$,V;const D=Ii({props:t,name:"MuiSlider"}),P=Za().direction==="rtl",{"aria-label":h,"aria-valuetext":S,"aria-labelledby":b,component:O="span",components:N={},componentsProps:_={},color:A="primary",classes:I,className:j,disableSwap:B=!1,disabled:Y=!1,getAriaLabel:G,getAriaValueText:ne,marks:oe=!1,max:re=100,min:ie=0,orientation:se="horizontal",size:me="medium",step:_e=1,scale:he=Bo,slotProps:q,slots:K,track:ye="normal",valueLabelDisplay:ge="off",valueLabelFormat:W=Bo}=D,Ue=Ri(D,ec),fe=ee({},D,{isRtl:P,max:re,min:ie,classes:I,disabled:Y,disableSwap:B,orientation:se,marks:oe,color:A,size:me,step:_e,scale:he,track:ye,valueLabelDisplay:ge,valueLabelFormat:W}),{axisProps:ze,getRootProps:et,getHiddenInputProps:Ge,getThumbProps:Ye,open:F,active:U,axis:Z,focusedThumbIndex:Q,range:ue,dragging:ae,marks:J,values:le,trackOffset:ce,trackLeap:Ee,getThumbStyle:Me}=zl(ee({},fe,{rootRef:n}));fe.marked=J.length>0&&J.some(pe=>pe.label),fe.dragging=ae,fe.focusedThumbIndex=Q;const de=lc(fe),tt=(r=(o=K==null?void 0:K.root)!=null?o:N.Root)!=null?r:tc,_t=(i=(s=K==null?void 0:K.rail)!=null?s:N.Rail)!=null?i:nc,st=(a=(l=K==null?void 0:K.track)!=null?l:N.Track)!=null?a:rc,xt=(u=(c=K==null?void 0:K.thumb)!=null?c:N.Thumb)!=null?u:oc,Ft=(d=(f=K==null?void 0:K.valueLabel)!=null?f:N.ValueLabel)!=null?d:ic,Xe=(p=(v=K==null?void 0:K.mark)!=null?v:N.Mark)!=null?p:sc,Ut=(m=(w=K==null?void 0:K.markLabel)!=null?w:N.MarkLabel)!=null?m:ac,Sn=(y=(x=K==null?void 0:K.input)!=null?x:N.Input)!=null?y:"input",Yt=(E=q==null?void 0:q.root)!=null?E:_.root,hr=(g=q==null?void 0:q.rail)!=null?g:_.rail,Xt=(M=q==null?void 0:q.track)!=null?M:_.track,Wt=(T=q==null?void 0:q.thumb)!=null?T:_.thumb,Zt=(L=q==null?void 0:q.valueLabel)!=null?L:_.valueLabel,pr=(R=q==null?void 0:q.mark)!=null?R:_.mark,mr=($=q==null?void 0:q.markLabel)!=null?$:_.markLabel,yr=(V=q==null?void 0:q.input)!=null?V:_.input,gr=at({elementType:tt,getSlotProps:et,externalSlotProps:Yt,externalForwardedProps:Ue,additionalProps:ee({},Kl(tt)&&{as:O}),ownerState:ee({},fe,Yt==null?void 0:Yt.ownerState),className:[de.root,j]}),vr=at({elementType:_t,externalSlotProps:hr,ownerState:fe,className:de.rail}),br=at({elementType:st,externalSlotProps:Xt,additionalProps:{style:ee({},ze[Z].offset(ce),ze[Z].leap(Ee))},ownerState:ee({},fe,Xt==null?void 0:Xt.ownerState),className:de.track}),Ct=at({elementType:xt,getSlotProps:Ye,externalSlotProps:Wt,ownerState:ee({},fe,Wt==null?void 0:Wt.ownerState),className:de.thumb}),wr=at({elementType:Ft,externalSlotProps:Zt,ownerState:ee({},fe,Zt==null?void 0:Zt.ownerState),className:de.valueLabel}),Kt=at({elementType:Xe,externalSlotProps:pr,ownerState:fe,className:de.mark}),Gt=at({elementType:Ut,externalSlotProps:mr,ownerState:fe,className:de.markLabel}),_r=at({elementType:Sn,getSlotProps:Ge,externalSlotProps:yr,ownerState:fe});return z.jsxs(tt,ee({},gr,{children:[z.jsx(_t,ee({},vr)),z.jsx(st,ee({},br)),J.filter(pe=>pe.value>=ie&&pe.value<=re).map((pe,xe)=>{const qt=Xn(pe.value,ie,re),St=ze[Z].offset(qt);let He;return ye===!1?He=le.indexOf(pe.value)!==-1:He=ye==="normal"&&(ue?pe.value>=le[0]&&pe.value<=le[le.length-1]:pe.value<=le[0])||ye==="inverted"&&(ue?pe.value<=le[0]||pe.value>=le[le.length-1]:pe.value>=le[0]),z.jsxs(C.Fragment,{children:[z.jsx(Xe,ee({"data-index":xe},Kt,!Vn(Xe)&&{markActive:He},{style:ee({},St,Kt.style),className:ht(Kt.className,He&&de.markActive)})),pe.label!=null?z.jsx(Ut,ee({"aria-hidden":!0,"data-index":xe},Gt,!Vn(Ut)&&{markLabelActive:He},{style:ee({},St,Gt.style),className:ht(de.markLabel,Gt.className,He&&de.markLabelActive),children:pe.label})):null]},xe)}),le.map((pe,xe)=>{const qt=Xn(pe,ie,re),St=ze[Z].offset(qt),He=ge==="off"?cc:Ft;return z.jsx(He,ee({},!Vn(He)&&{valueLabelFormat:W,valueLabelDisplay:ge,value:typeof W=="function"?W(he(pe),xe):W,index:xe,open:F===xe||U===xe||ge==="on",disabled:Y},wr,{children:z.jsx(xt,ee({"data-index":xe},Ct,{className:ht(de.thumb,Ct.className,U===xe&&de.active,Q===xe&&de.focusVisible),style:ee({},St,Me(xe),Ct.style),children:z.jsx(Sn,ee({"data-index":xe,"aria-label":G?G(xe):h,"aria-valuenow":he(pe),"aria-labelledby":b,"aria-valuetext":ne?ne(he(pe),xe):S,value:le[xe]},_r))}))}),xe)})]}))}),hm=uc;function Fo(e,t,n){var r=new Ka;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}function pn(e){"@babel/helpers - typeof";return pn=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},pn(e)}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t{let t=await Jt.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await Jt.keysend(Do,e),!(t!=null&&t.success)){if(t=await Jt.topup(),t||(t=await Jt.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const n=await Al(t),r={amount:t,refid:e};return await Ua.post("/boost",JSON.stringify(r)),n},cm=e=>{const[t,n]=e.split("-")||["",""];return parseInt(n,10)!==0?`${t} - ${n}`:t},um=(e,t)=>{if(!t)return null;const n=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),r=Mo.groupBy(n,i=>i.timestamp),o=Mo.values(r).reduce((i,s)=>(s[0]&&i.push(s[0]),i),[]);return o.sort((i,s)=>{var d,f;const[a]=((d=i.timestamp)==null?void 0:d.split("-"))||[""],[l]=((f=s.timestamp)==null?void 0:f.split("-"))||[""],u=Oo(a),c=Oo(l);return u-c}),o},dm=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},Ol={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Nl=Ol;function Tl(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const kl=2;function ji(e,t){return e-t}function en(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function zo(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Dl=e=>e;let Nn;function Ar(){return Nn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Nn=CSS.supports("touch-action","none"):Nn=!0),Nn}function zl(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:p,scale:v=Dl,step:m=1,tabIndex:w,value:y}=e,x=C.useRef(),[E,g]=C.useState(-1),[M,T]=C.useState(-1),[L,R]=C.useState(!1),$=C.useRef(0),[V,D]=al({controlled:y,default:n??l,name:"Slider"}),H=c&&((F,U,Z)=>{const Q=F.nativeEvent||F,ue=new Q.constructor(Q.type,Q);Object.defineProperty(ue,"target",{writable:!0,value:{value:U,name:u}}),c(ue,U,Z)}),P=Array.isArray(V);let h=P?V.slice().sort(ji):[V];h=h.map(F=>en(F,l,a));const S=s===!0&&m!==null?[...Array(Math.floor((a-l)/m)+1)].map((F,U)=>({value:l+m*U})):s||[],b=S.map(F=>F.value),{isFocusVisibleRef:O,onBlur:N,onFocus:_,ref:A}=il(),[I,j]=C.useState(-1),B=C.useRef(),Y=zr(A,B),G=zr(p,Y),ne=F=>U=>{var Z;const Q=Number(U.currentTarget.getAttribute("data-index"));_(U),O.current===!0&&j(Q),T(Q),F==null||(Z=F.onFocus)==null||Z.call(F,U)},oe=F=>U=>{var Z;N(U),O.current===!1&&j(-1),T(-1),F==null||(Z=F.onBlur)==null||Z.call(F,U)};zi(()=>{if(r&&B.current.contains(document.activeElement)){var F;(F=document.activeElement)==null||F.blur()}},[r]),r&&E!==-1&&g(-1),r&&I!==-1&&j(-1);const re=F=>U=>{var Z;(Z=F.onChange)==null||Z.call(F,U);const Q=Number(U.currentTarget.getAttribute("data-index")),ue=h[Q],ae=b.indexOf(ue);let J=U.target.valueAsNumber;if(S&&m==null){const le=b[b.length-1];J>le?J=le:J{const{current:Z}=B,{width:Q,height:ue,bottom:ae,left:J}=Z.getBoundingClientRect();let le;se.indexOf("vertical")===0?le=(ae-F.y)/ue:le=(F.x-J)/Q,se.indexOf("-reverse")!==-1&&(le=1-le);let ce;if(ce=$l(le,l,a),m)ce=Rl(ce,m,l);else{const Me=zo(b,ce);ce=b[Me]}ce=en(ce,l,a);let Ee=0;if(P){U?Ee=ie.current:Ee=zo(h,ce),o&&(ce=en(ce,h[Ee-1]||-1/0,h[Ee+1]||1/0));const Me=ce;ce=Ho({values:h,newValue:ce,index:Ee}),o&&U||(Ee=ce.indexOf(Me),ie.current=Ee)}return{newValue:ce,activeIndex:Ee}},_e=Cr(F=>{const U=An(F,x);if(!U)return;if($.current+=1,F.type==="mousemove"&&F.buttons===0){he(F);return}const{newValue:Z,activeIndex:Q}=me({finger:U,move:!0});Mn({sliderRef:B,activeIndex:Q,setActive:g}),D(Z),!L&&$.current>kl&&R(!0),H&&!On(Z,V)&&H(F,Z,Q)}),he=Cr(F=>{const U=An(F,x);if(R(!1),!U)return;const{newValue:Z}=me({finger:U,move:!0});g(-1),F.type==="touchend"&&T(-1),d&&d(F,Z),x.current=void 0,K()}),q=Cr(F=>{if(r)return;Ar()||F.preventDefault();const U=F.changedTouches[0];U!=null&&(x.current=U.identifier);const Z=An(F,x);if(Z!==!1){const{newValue:ue,activeIndex:ae}=me({finger:Z});Mn({sliderRef:B,activeIndex:ae,setActive:g}),D(ue),H&&!On(ue,V)&&H(F,ue,ae)}$.current=0;const Q=Hn(B.current);Q.addEventListener("touchmove",_e),Q.addEventListener("touchend",he)}),K=C.useCallback(()=>{const F=Hn(B.current);F.removeEventListener("mousemove",_e),F.removeEventListener("mouseup",he),F.removeEventListener("touchmove",_e),F.removeEventListener("touchend",he)},[he,_e]);C.useEffect(()=>{const{current:F}=B;return F.addEventListener("touchstart",q,{passive:Ar()}),()=>{F.removeEventListener("touchstart",q,{passive:Ar()}),K()}},[K,q]),C.useEffect(()=>{r&&K()},[r,K]);const ye=F=>U=>{var Z;if((Z=F.onMouseDown)==null||Z.call(F,U),r||U.defaultPrevented||U.button!==0)return;U.preventDefault();const Q=An(U,x);if(Q!==!1){const{newValue:ae,activeIndex:J}=me({finger:Q});Mn({sliderRef:B,activeIndex:J,setActive:g}),D(ae),H&&!On(ae,V)&&H(U,ae,J)}$.current=0;const ue=Hn(B.current);ue.addEventListener("mousemove",_e),ue.addEventListener("mouseup",he)},ge=Xn(P?h[0]:l,l,a),W=Xn(h[h.length-1],l,a)-ge,Ue=(F={})=>{const U=Sr(F),Z={onMouseDown:ye(U||{})},Q=ee({},U,Z);return ee({},F,{ref:G},Q)},fe=F=>U=>{var Z;(Z=F.onMouseOver)==null||Z.call(F,U);const Q=Number(U.currentTarget.getAttribute("data-index"));T(Q)},ze=F=>U=>{var Z;(Z=F.onMouseLeave)==null||Z.call(F,U),T(-1)};return{active:E,axis:se,axisProps:Ll,dragging:L,focusedThumbIndex:I,getHiddenInputProps:(F={})=>{var U;const Z=Sr(F),Q={onChange:re(Z||{}),onFocus:ne(Z||{}),onBlur:oe(Z||{})},ue=ee({},Z,Q);return ee({tabIndex:w,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":v(a),"aria-valuemin":v(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(U=e.step)!=null?U:void 0,disabled:r},F,ue,{style:ee({},Nl,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ue,getThumbProps:(F={})=>{const U=Sr(F),Z={onMouseOver:fe(U||{}),onMouseLeave:ze(U||{})};return ee({},F,U,Z)},marks:S,open:M,range:P,rootRef:G,trackLeap:W,trackOffset:ge,values:h,getThumbStyle:F=>({pointerEvents:E!==-1&&E!==F?"none":void 0})}}const Hl=er("MuiListItemIcon",["root","alignItemsFlexStart"]),Vo=Hl,Vl=er("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),jo=Vl;function jl(e){return $i("MuiMenuItem",e)}const Bl=er("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tn=Bl,Fl=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ul=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Yl=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:s}=e,l=Li({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},jl,s);return ee({},s,l)},Xl=yt(sl,{shouldForwardProp:e=>Ya(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ul})(({theme:e,ownerState:t})=>ee({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tn.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$t(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$t(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${To.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${To.inset}`]:{marginLeft:52},[`& .${jo.root}`]:{marginTop:0,marginBottom:0},[`& .${jo.inset}`]:{paddingLeft:36},[`& .${Vo.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ee({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Vo.root} svg`]:{fontSize:"1.25rem"}}))),Wl=C.forwardRef(function(t,n){const r=Ii({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,p=Ri(r,Fl),v=C.useContext(No),m=C.useMemo(()=>({dense:s||v.dense||!1,disableGutters:l}),[v.dense,s,l]),w=C.useRef(null);zi(()=>{o&&w.current&&w.current.focus()},[o]);const y=ee({},r,{dense:m.dense,divider:a,disableGutters:l}),x=Yl(r),E=zr(w,n);let g;return r.disabled||(g=d!==void 0?d:-1),z.jsx(No.Provider,{value:m,children:z.jsx(Xl,ee({ref:E,role:c,tabIndex:g,component:i,focusVisibleClassName:ht(x.focusVisible,u),className:ht(x.root,f)},p,{ownerState:y,classes:x}))})}),fm=Wl,Zl=e=>!e||!Vn(e),Kl=Zl;function Gl(e){return $i("MuiSlider",e)}const ql=er("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"]),Ze=ql,Jl=e=>{const{open:t}=e;return{offset:ht(t&&Ze.valueLabelOpen),circle:Ze.valueLabelCircle,label:Ze.valueLabelLabel}};function Ql(e){const{children:t,className:n,value:r}=e,o=Jl(e);return t?C.cloneElement(t,{className:ht(t.props.className)},z.jsxs(C.Fragment,{children:[t.props.children,z.jsx("span",{className:ht(o.offset,n),"aria-hidden":!0,children:z.jsx("span",{className:o.circle,children:z.jsx("span",{className:o.label,children:r})})})]})):null}const ec=["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 Bo(e){return e}const tc=yt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dt(n.color)}`],n.size!=="medium"&&t[`size${dt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ee({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ee({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ee({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Ze.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ze.dragging}`]:{[`& .${Ze.thumb}, & .${Ze.track}`]:{transition:"none"}}})),nc=yt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ee({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),rc=yt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Xa(e.palette[t.color].main,.62):Wa(e.palette[t.color].main,.5);return ee({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),oc=yt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${dt(n.color)}`],n.size!=="medium"&&t[`thumbSize${dt(n.size)}`]]}})(({theme:e,ownerState:t})=>ee({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ee({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Ze.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:$t(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ze.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:$t(e.palette[t.color].main,.16)}`},[`&.${Ze.disabled}`]:{"&:hover":{boxShadow:"none"}}})),ic=yt(Ql,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ee({[`&.${Ze.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"})),sc=yt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Di(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>ee({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),ac=yt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Di(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>ee({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),lc=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${dt(a)}`,l&&`size${dt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${dt(l)}`,a&&`thumbColor${dt(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Li(u,Gl,s)},cc=({children:e})=>e,uc=C.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,p,v,m,w,y,x,E,g,M,T,L,R,$,V;const D=Ii({props:t,name:"MuiSlider"}),P=Za().direction==="rtl",{"aria-label":h,"aria-valuetext":S,"aria-labelledby":b,component:O="span",components:N={},componentsProps:_={},color:A="primary",classes:I,className:j,disableSwap:B=!1,disabled:Y=!1,getAriaLabel:G,getAriaValueText:ne,marks:oe=!1,max:re=100,min:ie=0,orientation:se="horizontal",size:me="medium",step:_e=1,scale:he=Bo,slotProps:q,slots:K,track:ye="normal",valueLabelDisplay:ge="off",valueLabelFormat:W=Bo}=D,Ue=Ri(D,ec),fe=ee({},D,{isRtl:P,max:re,min:ie,classes:I,disabled:Y,disableSwap:B,orientation:se,marks:oe,color:A,size:me,step:_e,scale:he,track:ye,valueLabelDisplay:ge,valueLabelFormat:W}),{axisProps:ze,getRootProps:et,getHiddenInputProps:Ge,getThumbProps:Ye,open:F,active:U,axis:Z,focusedThumbIndex:Q,range:ue,dragging:ae,marks:J,values:le,trackOffset:ce,trackLeap:Ee,getThumbStyle:Me}=zl(ee({},fe,{rootRef:n}));fe.marked=J.length>0&&J.some(pe=>pe.label),fe.dragging=ae,fe.focusedThumbIndex=Q;const de=lc(fe),tt=(r=(o=K==null?void 0:K.root)!=null?o:N.Root)!=null?r:tc,_t=(i=(s=K==null?void 0:K.rail)!=null?s:N.Rail)!=null?i:nc,st=(a=(l=K==null?void 0:K.track)!=null?l:N.Track)!=null?a:rc,xt=(u=(c=K==null?void 0:K.thumb)!=null?c:N.Thumb)!=null?u:oc,Ft=(d=(f=K==null?void 0:K.valueLabel)!=null?f:N.ValueLabel)!=null?d:ic,Xe=(p=(v=K==null?void 0:K.mark)!=null?v:N.Mark)!=null?p:sc,Ut=(m=(w=K==null?void 0:K.markLabel)!=null?w:N.MarkLabel)!=null?m:ac,Sn=(y=(x=K==null?void 0:K.input)!=null?x:N.Input)!=null?y:"input",Yt=(E=q==null?void 0:q.root)!=null?E:_.root,hr=(g=q==null?void 0:q.rail)!=null?g:_.rail,Xt=(M=q==null?void 0:q.track)!=null?M:_.track,Wt=(T=q==null?void 0:q.thumb)!=null?T:_.thumb,Zt=(L=q==null?void 0:q.valueLabel)!=null?L:_.valueLabel,pr=(R=q==null?void 0:q.mark)!=null?R:_.mark,mr=($=q==null?void 0:q.markLabel)!=null?$:_.markLabel,yr=(V=q==null?void 0:q.input)!=null?V:_.input,gr=at({elementType:tt,getSlotProps:et,externalSlotProps:Yt,externalForwardedProps:Ue,additionalProps:ee({},Kl(tt)&&{as:O}),ownerState:ee({},fe,Yt==null?void 0:Yt.ownerState),className:[de.root,j]}),vr=at({elementType:_t,externalSlotProps:hr,ownerState:fe,className:de.rail}),br=at({elementType:st,externalSlotProps:Xt,additionalProps:{style:ee({},ze[Z].offset(ce),ze[Z].leap(Ee))},ownerState:ee({},fe,Xt==null?void 0:Xt.ownerState),className:de.track}),Ct=at({elementType:xt,getSlotProps:Ye,externalSlotProps:Wt,ownerState:ee({},fe,Wt==null?void 0:Wt.ownerState),className:de.thumb}),wr=at({elementType:Ft,externalSlotProps:Zt,ownerState:ee({},fe,Zt==null?void 0:Zt.ownerState),className:de.valueLabel}),Kt=at({elementType:Xe,externalSlotProps:pr,ownerState:fe,className:de.mark}),Gt=at({elementType:Ut,externalSlotProps:mr,ownerState:fe,className:de.markLabel}),_r=at({elementType:Sn,getSlotProps:Ge,externalSlotProps:yr,ownerState:fe});return z.jsxs(tt,ee({},gr,{children:[z.jsx(_t,ee({},vr)),z.jsx(st,ee({},br)),J.filter(pe=>pe.value>=ie&&pe.value<=re).map((pe,xe)=>{const qt=Xn(pe.value,ie,re),St=ze[Z].offset(qt);let He;return ye===!1?He=le.indexOf(pe.value)!==-1:He=ye==="normal"&&(ue?pe.value>=le[0]&&pe.value<=le[le.length-1]:pe.value<=le[0])||ye==="inverted"&&(ue?pe.value<=le[0]||pe.value>=le[le.length-1]:pe.value>=le[0]),z.jsxs(C.Fragment,{children:[z.jsx(Xe,ee({"data-index":xe},Kt,!Vn(Xe)&&{markActive:He},{style:ee({},St,Kt.style),className:ht(Kt.className,He&&de.markActive)})),pe.label!=null?z.jsx(Ut,ee({"aria-hidden":!0,"data-index":xe},Gt,!Vn(Ut)&&{markLabelActive:He},{style:ee({},St,Gt.style),className:ht(de.markLabel,Gt.className,He&&de.markLabelActive),children:pe.label})):null]},xe)}),le.map((pe,xe)=>{const qt=Xn(pe,ie,re),St=ze[Z].offset(qt),He=ge==="off"?cc:Ft;return z.jsx(He,ee({},!Vn(He)&&{valueLabelFormat:W,valueLabelDisplay:ge,value:typeof W=="function"?W(he(pe),xe):W,index:xe,open:F===xe||U===xe||ge==="on",disabled:Y},wr,{children:z.jsx(xt,ee({"data-index":xe},Ct,{className:ht(de.thumb,Ct.className,U===xe&&de.active,Q===xe&&de.focusVisible),style:ee({},St,Me(xe),Ct.style),children:z.jsx(Sn,ee({"data-index":xe,"aria-label":G?G(xe):h,"aria-valuenow":he(pe),"aria-labelledby":b,"aria-valuetext":ne?ne(he(pe),xe):S,value:le[xe]},_r))}))}),xe)})]}))}),hm=uc;function Fo(e,t,n){var r=new Ka;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}function pn(e){"@babel/helpers - typeof";return pn=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},pn(e)}function Uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(P=ll(P,m,{trailing:!0,leading:!1}));var h=new ResizeObserver(P),S=M.current.getBoundingClientRect(),b=S.width,O=S.height;return D(b,O),h.observe(M.current),function(){h.disconnect()}},[D,m]);var H=C.useMemo(function(){var P=$.containerWidth,h=$.containerHeight;if(P<0||h<0)return null;Er(En(s)||En(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,s,l),Er(!n||n>0,"The aspect(%s) must be greater than zero.",n);var S=En(s)?P:s,b=En(l)?h:l;n&&n>0&&(S?b=S/n:b&&(S=b*n),f&&b>f&&(b=f)),Er(S>0||b>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), @@ -57,4 +57,4 @@ ${({disabled:e})=>e&&tl` background: ${Je.divider2}; height: 1px; margin: auto 22px; -`,Sm=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"notes",children:[z.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_1473_73722)",children:z.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"})})]})}),Em=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"content_copy",children:[z.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_1489_75628)",children:z.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"})})]})}),Pm=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"schedule",children:[z.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_4051_4016)",children:z.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"})})]})}),Am=e=>z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 16",fill:"none",children:z.jsx("g",{children:z.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"})})});var Yh=function(t,n,r){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&Xh(i,n.attrs),n.text&&(i.text=""+n.text);var s="onload"in i?Pi:Wh;s(i,r),i.onload||Pi(i,r),o.appendChild(i)};function Xh(e,t){for(var n in t)e.setAttribute(n,t[n])}function Pi(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 Wh(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var Zh=function(t){return Kh(t)&&!Gh(t)};function Kh(e){return!!e&&typeof e=="object"}function Gh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Qh(e)}var qh=typeof Symbol=="function"&&Symbol.for,Jh=qh?Symbol.for("react.element"):60103;function Qh(e){return e.$$typeof===Jh}function ep(e){return Array.isArray(e)?[]:{}}function vn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Bt(ep(e),e,t):e}function tp(e,t,n){return e.concat(t).map(function(r){return vn(r,n)})}function np(e,t){if(!t.customMerge)return Bt;var n=t.customMerge(e);return typeof n=="function"?n:Bt}function rp(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ai(e){return Object.keys(e).concat(rp(e))}function ta(e,t){try{return t in e}catch{return!1}}function op(e,t){return ta(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ip(e,t,n){var r={};return n.isMergeableObject(e)&&Ai(e).forEach(function(o){r[o]=vn(e[o],n)}),Ai(t).forEach(function(o){op(e,o)||(ta(e,o)&&n.isMergeableObject(t[o])?r[o]=np(o,n)(e[o],t[o],n):r[o]=vn(t[o],n))}),r}function Bt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||tp,n.isMergeableObject=n.isMergeableObject||Zh,n.cloneUnlessOtherwiseSpecified=vn;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):ip(e,t,n):vn(t,n)}Bt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return Bt(r,o,n)},{})};var sp=Bt,na=sp,ap=Object.create,lr=Object.defineProperty,lp=Object.getOwnPropertyDescriptor,cp=Object.getOwnPropertyNames,up=Object.getPrototypeOf,dp=Object.prototype.hasOwnProperty,fp=(e,t)=>{for(var n in t)lr(e,n,{get:t[n],enumerable:!0})},ra=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cp(t))!dp.call(e,o)&&o!==n&&lr(e,o,{get:()=>t[o],enumerable:!(r=lp(t,o))||r.enumerable});return e},_o=(e,t,n)=>(n=e!=null?ap(up(e)):{},ra(t||!e||!e.__esModule?lr(n,"default",{value:e,enumerable:!0}):n,e)),hp=e=>ra(lr({},"__esModule",{value:!0}),e),oa={};fp(oa,{callPlayer:()=>Op,getConfig:()=>Ap,getSDK:()=>Pp,isBlobUrl:()=>Tp,isMediaStream:()=>Np,lazy:()=>gp,omit:()=>Mp,parseEndTime:()=>Cp,parseStartTime:()=>xp,queryString:()=>Ep,randomString:()=>Sp,supportsWebKitPresentationMode:()=>kp});var cr=hp(oa),pp=_o(C),mp=_o(Yh),yp=_o(na);const gp=e=>pp.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),vp=/[?&#](?:start|t)=([0-9hms]+)/,bp=/[?&#]end=([0-9hms]+)/,Qr=/(\d+)(h|m|s)/g,wp=/^\d+$/;function ia(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(Qr))return _p(r);if(wp.test(r))return parseInt(r)}}function _p(e){let t=0,n=Qr.exec(e);for(;n!==null;){const[,r,o]=n;o==="h"&&(t+=parseInt(r,10)*60*60),o==="m"&&(t+=parseInt(r,10)*60),o==="s"&&(t+=parseInt(r,10)),n=Qr.exec(e)}return t}function xp(e){return ia(e,vp)}function Cp(e){return ia(e,bp)}function Sp(){return Math.random().toString(36).substr(2,5)}function Ep(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Rr(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 Ot={},Pp=function(t,n,r=null,o=()=>!0,i=mp.default){const s=Rr(n);return s&&o(s)?Promise.resolve(s):new Promise((a,l)=>{if(Ot[t]){Ot[t].push({resolve:a,reject:l});return}Ot[t]=[{resolve:a,reject:l}];const u=c=>{Ot[t].forEach(d=>d.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Rr(n))}}i(t,c=>{c?(Ot[t].forEach(d=>d.reject(c)),Ot[t]=null):r||u(Rr(n))})})};function Ap(e,t){return(0,yp.default)(t.config,e.config)}function Mp(e,...t){const n=[].concat(...t),r={},o=Object.keys(e);for(const i of o)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function Op(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 Np(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Tp(e){return/^blob:/.test(e)}function kp(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var xo=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,Ip=Object.getOwnPropertyNames,Rp=Object.prototype.hasOwnProperty,Lp=(e,t)=>{for(var n in t)xo(e,n,{get:t[n],enumerable:!0})},Dp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ip(t))!Rp.call(e,o)&&o!==n&&xo(e,o,{get:()=>t[o],enumerable:!(r=$p(t,o))||r.enumerable});return e},zp=e=>Dp(xo({},"__esModule",{value:!0}),e),sa={};Lp(sa,{AUDIO_EXTENSIONS:()=>Co,DASH_EXTENSIONS:()=>ba,FLV_EXTENSIONS:()=>wa,HLS_EXTENSIONS:()=>Eo,MATCH_URL_DAILYMOTION:()=>ma,MATCH_URL_FACEBOOK:()=>ca,MATCH_URL_FACEBOOK_WATCH:()=>ua,MATCH_URL_KALTURA:()=>va,MATCH_URL_MIXCLOUD:()=>ya,MATCH_URL_SOUNDCLOUD:()=>aa,MATCH_URL_STREAMABLE:()=>da,MATCH_URL_TWITCH_CHANNEL:()=>pa,MATCH_URL_TWITCH_VIDEO:()=>ha,MATCH_URL_VIDYARD:()=>ga,MATCH_URL_VIMEO:()=>la,MATCH_URL_WISTIA:()=>fa,MATCH_URL_YOUTUBE:()=>eo,VIDEO_EXTENSIONS:()=>So,canPlay:()=>Vp});var Hp=zp(sa),Mi=cr;const eo=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,aa=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,la=/vimeo\.com\/(?!progressive_redirect).+/,ca=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,ua=/^https?:\/\/fb\.watch\/.+$/,da=/streamable\.com\/([a-z0-9]+)$/,fa=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ha=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,pa=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,ma=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,ya=/mixcloud\.com\/([^/]+\/[^/]+)/,ga=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,va=/^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-_].*)$/,Co=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,So=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Eo=/\.(m3u8)($|\?)/i,ba=/\.(mpd)($|\?)/i,wa=/\.(flv)($|\?)/i,to=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&to(t)||to(t.src))return!0;return!1}return(0,Mi.isMediaStream)(e)||(0,Mi.isBlobUrl)(e)?!0:Co.test(e)||So.test(e)||Eo.test(e)||ba.test(e)||wa.test(e)},Vp={youtube:e=>e instanceof Array?e.every(t=>eo.test(t)):eo.test(e),soundcloud:e=>aa.test(e)&&!Co.test(e),vimeo:e=>la.test(e)&&!So.test(e)&&!Eo.test(e),facebook:e=>ca.test(e)||ua.test(e),streamable:e=>da.test(e),wistia:e=>fa.test(e),twitch:e=>ha.test(e)||pa.test(e),dailymotion:e=>ma.test(e),mixcloud:e=>ya.test(e),vidyard:e=>ga.test(e),kaltura:e=>va.test(e),file:to};var Po=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Bp=Object.getOwnPropertyNames,Fp=Object.prototype.hasOwnProperty,Up=(e,t)=>{for(var n in t)Po(e,n,{get:t[n],enumerable:!0})},Yp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Bp(t))!Fp.call(e,o)&&o!==n&&Po(e,o,{get:()=>t[o],enumerable:!(r=jp(t,o))||r.enumerable});return e},Xp=e=>Yp(Po({},"__esModule",{value:!0}),e),_a={};Up(_a,{default:()=>Zp});var Wp=Xp(_a),Ie=cr,ke=Hp,Zp=[{key:"youtube",name:"YouTube",canPlay:ke.canPlay.youtube,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./YouTube-1faa93f6.js").then(e=>e.Y),["assets/YouTube-1faa93f6.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:ke.canPlay.soundcloud,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./SoundCloud-01ae3e26.js").then(e=>e.S),["assets/SoundCloud-01ae3e26.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:ke.canPlay.vimeo,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Vimeo-0924a8be.js").then(e=>e.V),["assets/Vimeo-0924a8be.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"facebook",name:"Facebook",canPlay:ke.canPlay.facebook,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Facebook-f2631112.js").then(e=>e.F),["assets/Facebook-f2631112.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"streamable",name:"Streamable",canPlay:ke.canPlay.streamable,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Streamable-f359ad79.js").then(e=>e.S),["assets/Streamable-f359ad79.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"wistia",name:"Wistia",canPlay:ke.canPlay.wistia,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Wistia-bad63915.js").then(e=>e.W),["assets/Wistia-bad63915.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"twitch",name:"Twitch",canPlay:ke.canPlay.twitch,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Twitch-ff7ec024.js").then(e=>e.T),["assets/Twitch-ff7ec024.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:ke.canPlay.dailymotion,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./DailyMotion-43b019d7.js").then(e=>e.D),["assets/DailyMotion-43b019d7.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:ke.canPlay.mixcloud,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Mixcloud-45a29892.js").then(e=>e.M),["assets/Mixcloud-45a29892.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:ke.canPlay.vidyard,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Vidyard-6f943902.js").then(e=>e.V),["assets/Vidyard-6f943902.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:ke.canPlay.kaltura,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Kaltura-233339d4.js").then(e=>e.K),["assets/Kaltura-233339d4.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))},{key:"file",name:"FilePlayer",canPlay:ke.canPlay.file,canEnablePIP:e=>ke.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,Ie.supportsWebKitPresentationMode)())&&!ke.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./FilePlayer-b00b1daf.js").then(e=>e.F),["assets/FilePlayer-b00b1daf.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"]))}],Oi=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Kp(e,t){return!!(e===t||Oi(e)&&Oi(t))}function Gp(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)ur(e,n,{get:t[n],enumerable:!0})},Ca=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of s0(t))!l0.call(e,o)&&o!==n&&ur(e,o,{get:()=>t[o],enumerable:!(r=i0(t,o))||r.enumerable});return e},u0=(e,t,n)=>(n=e!=null?o0(a0(e)):{},Ca(t||!e||!e.__esModule?ur(n,"default",{value:e,enumerable:!0}):n,e)),d0=e=>Ca(ur({},"__esModule",{value:!0}),e),Sa={};c0(Sa,{defaultProps:()=>p0,propTypes:()=>h0});var Ea=d0(Sa),f0=u0(rl);const{string:Oe,bool:Ne,number:Nt,array:Lr,oneOfType:an,shape:Ve,object:Te,func:Ce,node:Ni}=f0.default,h0={url:an([Oe,Lr,Te]),playing:Ne,loop:Ne,controls:Ne,volume:Nt,muted:Ne,playbackRate:Nt,width:an([Oe,Nt]),height:an([Oe,Nt]),style:Te,progressInterval:Nt,playsinline:Ne,pip:Ne,stopOnUnmount:Ne,light:an([Ne,Oe,Te]),playIcon:Ni,previewTabIndex:Nt,fallback:Ni,oEmbedUrl:Oe,wrapper:an([Oe,Ce,Ve({render:Ce.isRequired})]),config:Ve({soundcloud:Ve({options:Te}),youtube:Ve({playerVars:Te,embedOptions:Te,onUnstarted:Ce}),facebook:Ve({appId:Oe,version:Oe,playerId:Oe,attributes:Te}),dailymotion:Ve({params:Te}),vimeo:Ve({playerOptions:Te,title:Oe}),file:Ve({attributes:Te,tracks:Lr,forceVideo:Ne,forceAudio:Ne,forceHLS:Ne,forceSafariHLS:Ne,forceDisableHls:Ne,forceDASH:Ne,forceFLV:Ne,hlsOptions:Te,hlsVersion:Oe,dashVersion:Oe,flvVersion:Oe}),wistia:Ve({options:Te,playerId:Oe,customControls:Lr}),mixcloud:Ve({options:Te}),twitch:Ve({options:Te,playerId:Oe}),vidyard:Ve({options:Te})}),onReady:Ce,onStart:Ce,onPlay:Ce,onPause:Ce,onBuffer:Ce,onBufferEnd:Ce,onEnded:Ce,onError:Ce,onDuration:Ce,onSeek:Ce,onPlaybackRateChange:Ce,onPlaybackQualityChange:Ce,onProgress:Ce,onClickPreview:Ce,onEnablePIP:Ce,onDisablePIP:Ce},Pe=()=>{},p0={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:Pe},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:Pe,onStart:Pe,onPlay:Pe,onPause:Pe,onBuffer:Pe,onBufferEnd:Pe,onEnded:Pe,onError:Pe,onDuration:Pe,onSeek:Pe,onPlaybackRateChange:Pe,onPlaybackQualityChange:Pe,onProgress:Pe,onClickPreview:Pe,onEnablePIP:Pe,onDisablePIP:Pe};var m0=Object.create,_n=Object.defineProperty,y0=Object.getOwnPropertyDescriptor,g0=Object.getOwnPropertyNames,v0=Object.getPrototypeOf,b0=Object.prototype.hasOwnProperty,w0=(e,t,n)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_0=(e,t)=>{for(var n in t)_n(e,n,{get:t[n],enumerable:!0})},Pa=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of g0(t))!b0.call(e,o)&&o!==n&&_n(e,o,{get:()=>t[o],enumerable:!(r=y0(t,o))||r.enumerable});return e},Aa=(e,t,n)=>(n=e!=null?m0(v0(e)):{},Pa(t||!e||!e.__esModule?_n(n,"default",{value:e,enumerable:!0}):n,e)),x0=e=>Pa(_n({},"__esModule",{value:!0}),e),be=(e,t,n)=>(w0(e,typeof t!="symbol"?t+"":t,n),n),Ma={};_0(Ma,{default:()=>dr});var C0=x0(Ma),Ti=Aa(C),S0=Aa(xa),Oa=Ea,E0=cr;const P0=5e3;class dr extends Ti.Component{constructor(){super(...arguments),be(this,"mounted",!1),be(this,"isReady",!1),be(this,"isPlaying",!1),be(this,"isLoading",!0),be(this,"loadOnReady",null),be(this,"startOnPlay",!0),be(this,"seekOnPlay",null),be(this,"onDurationCalled",!1),be(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),be(this,"getInternalPlayer",t=>this.player?this.player[t]:null),be(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const o={playedSeconds:t,played:t/r};n!==null&&(o.loadedSeconds=n,o.loaded=n/r),(o.playedSeconds!==this.prevPlayed||o.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(o),this.prevPlayed=o.playedSeconds,this.prevLoaded=o.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),be(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:o}=this.props;t(),!o&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),be(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()}),be(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),be(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),be(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),be(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)}),be(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:o,muted:i,playbackRate:s,pip:a,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,S0.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,E0.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==o&&o!==null&&this.player.setVolume(o),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),o!==null&&setTimeout(()=>this.player.setVolume(o)))),t.playbackRate!==s&&this.player.setPlaybackRate&&this.player.setPlaybackRate(s),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},P0));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Ti.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}be(dr,"displayName","Player");be(dr,"propTypes",Oa.propTypes);be(dr,"defaultProps",Oa.defaultProps);var A0=Object.create,xn=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,O0=Object.getOwnPropertyNames,N0=Object.getPrototypeOf,T0=Object.prototype.hasOwnProperty,k0=(e,t,n)=>t in e?xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$0=(e,t)=>{for(var n in t)xn(e,n,{get:t[n],enumerable:!0})},Na=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of O0(t))!T0.call(e,o)&&o!==n&&xn(e,o,{get:()=>t[o],enumerable:!(r=M0(t,o))||r.enumerable});return e},Cn=(e,t,n)=>(n=e!=null?A0(N0(e)):{},Na(t||!e||!e.__esModule?xn(n,"default",{value:e,enumerable:!0}):n,e)),I0=e=>Na(xn({},"__esModule",{value:!0}),e),ve=(e,t,n)=>(k0(e,typeof t!="symbol"?t+"":t,n),n),Ta={};$0(Ta,{createReactPlayer:()=>F0});var R0=I0(Ta),kt=Cn(C),L0=Cn(na),Dr=Cn(Qp),ki=Cn(xa),un=Ea,ka=cr,D0=Cn(C0);const z0=(0,ka.lazy)(()=>Re(()=>import("./Preview-9f52d3ed.js").then(e=>e.P),["assets/Preview-9f52d3ed.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css"])),H0=typeof window<"u"&&window.document,V0=typeof Le<"u"&&Le.window&&Le.window.document,j0=Object.keys(un.propTypes),B0=H0||V0?kt.Suspense:()=>null,ln=[],F0=(e,t)=>{var n;return n=class extends kt.Component{constructor(){super(...arguments),ve(this,"state",{showPreview:!!this.props.light}),ve(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),ve(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),ve(this,"showPreview",()=>{this.setState({showPreview:!0})}),ve(this,"getDuration",()=>this.player?this.player.getDuration():null),ve(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),ve(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),ve(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),ve(this,"seekTo",(r,o,i)=>{if(!this.player)return null;this.player.seekTo(r,o,i)}),ve(this,"handleReady",()=>{this.props.onReady(this)}),ve(this,"getActivePlayer",(0,Dr.default)(r=>{for(const o of[...ln,...e])if(o.canPlay(r))return o;return t||null})),ve(this,"getConfig",(0,Dr.default)((r,o)=>{const{config:i}=this.props;return L0.default.all([un.defaultProps.config,un.defaultProps.config[o]||{},i,i[o]||{}])})),ve(this,"getAttributes",(0,Dr.default)(r=>(0,ka.omit)(this.props,j0))),ve(this,"renderActivePlayer",r=>{if(!r)return null;const o=this.getActivePlayer(r);if(!o)return null;const i=this.getConfig(r,o.key);return kt.default.createElement(D0.default,{...this.props,key:o.key,ref:this.references.player,config:i,activePlayer:o.lazyPlayer||o,onReady:this.handleReady})})}shouldComponentUpdate(r,o){return!(0,ki.default)(this.props,r)||!(0,ki.default)(this.state,o)}componentDidUpdate(r){const{light:o}=this.props;!r.light&&o&&this.setState({showPreview:!0}),r.light&&!o&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:o,playIcon:i,previewTabIndex:s,oEmbedUrl:a}=this.props;return kt.default.createElement(z0,{url:r,light:o,playIcon:i,previewTabIndex:s,oEmbedUrl:a,onClick:this.handleClickPreview})}render(){const{url:r,style:o,width:i,height:s,fallback:a,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return kt.default.createElement(l,{ref:d,style:{...o,width:i,height:s},...c},kt.default.createElement(B0,{fallback:a},u?this.renderPreview(r):this.renderActivePlayer(r)))}},ve(n,"displayName","ReactPlayer"),ve(n,"propTypes",un.propTypes),ve(n,"defaultProps",un.defaultProps),ve(n,"addCustomPlayer",r=>{ln.push(r)}),ve(n,"removeCustomPlayers",()=>{ln.length=0}),ve(n,"canPlay",r=>{for(const o of[...ln,...e])if(o.canPlay(r))return!0;return!1}),ve(n,"canEnablePIP",r=>{for(const o of[...ln,...e])if(o.canEnablePIP&&o.canEnablePIP(r))return!0;return!1}),n};var U0=Object.create,fr=Object.defineProperty,Y0=Object.getOwnPropertyDescriptor,X0=Object.getOwnPropertyNames,W0=Object.getPrototypeOf,Z0=Object.prototype.hasOwnProperty,K0=(e,t)=>{for(var n in t)fr(e,n,{get:t[n],enumerable:!0})},$a=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of X0(t))!Z0.call(e,o)&&o!==n&&fr(e,o,{get:()=>t[o],enumerable:!(r=Y0(t,o))||r.enumerable});return e},G0=(e,t,n)=>(n=e!=null?U0(W0(e)):{},$a(t||!e||!e.__esModule?fr(n,"default",{value:e,enumerable:!0}):n,e)),q0=e=>$a(fr({},"__esModule",{value:!0}),e),Ia={};K0(Ia,{default:()=>tm});var J0=q0(Ia),no=G0(Wp),Q0=R0;const em=no.default[no.default.length-1];var tm=(0,Q0.createReactPlayer)(no.default,em);const Mm=ol(J0),Om=e=>z.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[z.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:z.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_4160_9271)",children:z.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),Nm=e=>z.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[z.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:z.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_3130_18463)",children:z.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"})})]}),Tm=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"volume_up",children:[z.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_1483_75386)",children:z.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"})})]})}),km=e=>{const t=Math.floor(e/60),n=Math.floor(e%60),r=t.toString().padStart(2,"0"),o=n.toString().padStart(2,"0");return`${r}:${o}`},$m=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"chevron_right",children:[z.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_1247_21809)",children:z.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"})})]})});export{gm as B,Em as C,Cm as D,Om as E,Nm as F,wm as G,vm as H,bm as L,fm as M,Sm as N,Am as P,kh as R,mm as S,Tm as V,pm as a,nr as b,xm as c,Pm as d,dm as e,cm as f,um as g,hm as h,Mm as i,_m as j,ym as k,$m as l,Yi as m,Hp as p,km as s,cr as u}; +`,Sm=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"notes",children:[z.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_1473_73722)",children:z.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"})})]})}),Em=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"content_copy",children:[z.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_1489_75628)",children:z.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"})})]})}),Pm=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"schedule",children:[z.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_4051_4016)",children:z.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"})})]})}),Am=e=>z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 16",fill:"none",children:z.jsx("g",{children:z.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"})})});var Yh=function(t,n,r){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof n=="function"&&(r=n,n={}),n=n||{},r=r||function(){},i.type=n.type||"text/javascript",i.charset=n.charset||"utf8",i.async="async"in n?!!n.async:!0,i.src=t,n.attrs&&Xh(i,n.attrs),n.text&&(i.text=""+n.text);var s="onload"in i?Pi:Wh;s(i,r),i.onload||Pi(i,r),o.appendChild(i)};function Xh(e,t){for(var n in t)e.setAttribute(n,t[n])}function Pi(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 Wh(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var Zh=function(t){return Kh(t)&&!Gh(t)};function Kh(e){return!!e&&typeof e=="object"}function Gh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Qh(e)}var qh=typeof Symbol=="function"&&Symbol.for,Jh=qh?Symbol.for("react.element"):60103;function Qh(e){return e.$$typeof===Jh}function ep(e){return Array.isArray(e)?[]:{}}function vn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Bt(ep(e),e,t):e}function tp(e,t,n){return e.concat(t).map(function(r){return vn(r,n)})}function np(e,t){if(!t.customMerge)return Bt;var n=t.customMerge(e);return typeof n=="function"?n:Bt}function rp(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Ai(e){return Object.keys(e).concat(rp(e))}function ta(e,t){try{return t in e}catch{return!1}}function op(e,t){return ta(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function ip(e,t,n){var r={};return n.isMergeableObject(e)&&Ai(e).forEach(function(o){r[o]=vn(e[o],n)}),Ai(t).forEach(function(o){op(e,o)||(ta(e,o)&&n.isMergeableObject(t[o])?r[o]=np(o,n)(e[o],t[o],n):r[o]=vn(t[o],n))}),r}function Bt(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||tp,n.isMergeableObject=n.isMergeableObject||Zh,n.cloneUnlessOtherwiseSpecified=vn;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):ip(e,t,n):vn(t,n)}Bt.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return Bt(r,o,n)},{})};var sp=Bt,na=sp,ap=Object.create,lr=Object.defineProperty,lp=Object.getOwnPropertyDescriptor,cp=Object.getOwnPropertyNames,up=Object.getPrototypeOf,dp=Object.prototype.hasOwnProperty,fp=(e,t)=>{for(var n in t)lr(e,n,{get:t[n],enumerable:!0})},ra=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cp(t))!dp.call(e,o)&&o!==n&&lr(e,o,{get:()=>t[o],enumerable:!(r=lp(t,o))||r.enumerable});return e},_o=(e,t,n)=>(n=e!=null?ap(up(e)):{},ra(t||!e||!e.__esModule?lr(n,"default",{value:e,enumerable:!0}):n,e)),hp=e=>ra(lr({},"__esModule",{value:!0}),e),oa={};fp(oa,{callPlayer:()=>Op,getConfig:()=>Ap,getSDK:()=>Pp,isBlobUrl:()=>Tp,isMediaStream:()=>Np,lazy:()=>gp,omit:()=>Mp,parseEndTime:()=>Cp,parseStartTime:()=>xp,queryString:()=>Ep,randomString:()=>Sp,supportsWebKitPresentationMode:()=>kp});var cr=hp(oa),pp=_o(C),mp=_o(Yh),yp=_o(na);const gp=e=>pp.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),vp=/[?&#](?:start|t)=([0-9hms]+)/,bp=/[?&#]end=([0-9hms]+)/,Qr=/(\d+)(h|m|s)/g,wp=/^\d+$/;function ia(e,t){if(e instanceof Array)return;const n=e.match(t);if(n){const r=n[1];if(r.match(Qr))return _p(r);if(wp.test(r))return parseInt(r)}}function _p(e){let t=0,n=Qr.exec(e);for(;n!==null;){const[,r,o]=n;o==="h"&&(t+=parseInt(r,10)*60*60),o==="m"&&(t+=parseInt(r,10)*60),o==="s"&&(t+=parseInt(r,10)),n=Qr.exec(e)}return t}function xp(e){return ia(e,vp)}function Cp(e){return ia(e,bp)}function Sp(){return Math.random().toString(36).substr(2,5)}function Ep(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Rr(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 Ot={},Pp=function(t,n,r=null,o=()=>!0,i=mp.default){const s=Rr(n);return s&&o(s)?Promise.resolve(s):new Promise((a,l)=>{if(Ot[t]){Ot[t].push({resolve:a,reject:l});return}Ot[t]=[{resolve:a,reject:l}];const u=c=>{Ot[t].forEach(d=>d.resolve(c))};if(r){const c=window[r];window[r]=function(){c&&c(),u(Rr(n))}}i(t,c=>{c?(Ot[t].forEach(d=>d.reject(c)),Ot[t]=null):r||u(Rr(n))})})};function Ap(e,t){return(0,yp.default)(t.config,e.config)}function Mp(e,...t){const n=[].concat(...t),r={},o=Object.keys(e);for(const i of o)n.indexOf(i)===-1&&(r[i]=e[i]);return r}function Op(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 Np(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function Tp(e){return/^blob:/.test(e)}function kp(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var xo=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,Ip=Object.getOwnPropertyNames,Rp=Object.prototype.hasOwnProperty,Lp=(e,t)=>{for(var n in t)xo(e,n,{get:t[n],enumerable:!0})},Dp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ip(t))!Rp.call(e,o)&&o!==n&&xo(e,o,{get:()=>t[o],enumerable:!(r=$p(t,o))||r.enumerable});return e},zp=e=>Dp(xo({},"__esModule",{value:!0}),e),sa={};Lp(sa,{AUDIO_EXTENSIONS:()=>Co,DASH_EXTENSIONS:()=>ba,FLV_EXTENSIONS:()=>wa,HLS_EXTENSIONS:()=>Eo,MATCH_URL_DAILYMOTION:()=>ma,MATCH_URL_FACEBOOK:()=>ca,MATCH_URL_FACEBOOK_WATCH:()=>ua,MATCH_URL_KALTURA:()=>va,MATCH_URL_MIXCLOUD:()=>ya,MATCH_URL_SOUNDCLOUD:()=>aa,MATCH_URL_STREAMABLE:()=>da,MATCH_URL_TWITCH_CHANNEL:()=>pa,MATCH_URL_TWITCH_VIDEO:()=>ha,MATCH_URL_VIDYARD:()=>ga,MATCH_URL_VIMEO:()=>la,MATCH_URL_WISTIA:()=>fa,MATCH_URL_YOUTUBE:()=>eo,VIDEO_EXTENSIONS:()=>So,canPlay:()=>Vp});var Hp=zp(sa),Mi=cr;const eo=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,aa=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,la=/vimeo\.com\/(?!progressive_redirect).+/,ca=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,ua=/^https?:\/\/fb\.watch\/.+$/,da=/streamable\.com\/([a-z0-9]+)$/,fa=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,ha=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,pa=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,ma=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,ya=/mixcloud\.com\/([^/]+\/[^/]+)/,ga=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,va=/^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-_].*)$/,Co=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,So=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Eo=/\.(m3u8)($|\?)/i,ba=/\.(mpd)($|\?)/i,wa=/\.(flv)($|\?)/i,to=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&to(t)||to(t.src))return!0;return!1}return(0,Mi.isMediaStream)(e)||(0,Mi.isBlobUrl)(e)?!0:Co.test(e)||So.test(e)||Eo.test(e)||ba.test(e)||wa.test(e)},Vp={youtube:e=>e instanceof Array?e.every(t=>eo.test(t)):eo.test(e),soundcloud:e=>aa.test(e)&&!Co.test(e),vimeo:e=>la.test(e)&&!So.test(e)&&!Eo.test(e),facebook:e=>ca.test(e)||ua.test(e),streamable:e=>da.test(e),wistia:e=>fa.test(e),twitch:e=>ha.test(e)||pa.test(e),dailymotion:e=>ma.test(e),mixcloud:e=>ya.test(e),vidyard:e=>ga.test(e),kaltura:e=>va.test(e),file:to};var Po=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,Bp=Object.getOwnPropertyNames,Fp=Object.prototype.hasOwnProperty,Up=(e,t)=>{for(var n in t)Po(e,n,{get:t[n],enumerable:!0})},Yp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Bp(t))!Fp.call(e,o)&&o!==n&&Po(e,o,{get:()=>t[o],enumerable:!(r=jp(t,o))||r.enumerable});return e},Xp=e=>Yp(Po({},"__esModule",{value:!0}),e),_a={};Up(_a,{default:()=>Zp});var Wp=Xp(_a),Ie=cr,ke=Hp,Zp=[{key:"youtube",name:"YouTube",canPlay:ke.canPlay.youtube,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./YouTube-b06f3c81.js").then(e=>e.Y),["assets/YouTube-b06f3c81.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:ke.canPlay.soundcloud,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./SoundCloud-792f37c3.js").then(e=>e.S),["assets/SoundCloud-792f37c3.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:ke.canPlay.vimeo,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Vimeo-fafc1c36.js").then(e=>e.V),["assets/Vimeo-fafc1c36.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"facebook",name:"Facebook",canPlay:ke.canPlay.facebook,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Facebook-79351ad2.js").then(e=>e.F),["assets/Facebook-79351ad2.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"streamable",name:"Streamable",canPlay:ke.canPlay.streamable,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Streamable-d68969b3.js").then(e=>e.S),["assets/Streamable-d68969b3.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"wistia",name:"Wistia",canPlay:ke.canPlay.wistia,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Wistia-634d4968.js").then(e=>e.W),["assets/Wistia-634d4968.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"twitch",name:"Twitch",canPlay:ke.canPlay.twitch,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Twitch-b2e38a75.js").then(e=>e.T),["assets/Twitch-b2e38a75.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:ke.canPlay.dailymotion,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./DailyMotion-89c8d6f4.js").then(e=>e.D),["assets/DailyMotion-89c8d6f4.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:ke.canPlay.mixcloud,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Mixcloud-f492042b.js").then(e=>e.M),["assets/Mixcloud-f492042b.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:ke.canPlay.vidyard,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Vidyard-b661dc63.js").then(e=>e.V),["assets/Vidyard-b661dc63.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:ke.canPlay.kaltura,lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./Kaltura-a1fce73b.js").then(e=>e.K),["assets/Kaltura-a1fce73b.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))},{key:"file",name:"FilePlayer",canPlay:ke.canPlay.file,canEnablePIP:e=>ke.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,Ie.supportsWebKitPresentationMode)())&&!ke.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,Ie.lazy)(()=>Re(()=>import("./FilePlayer-ec1685f7.js").then(e=>e.F),["assets/FilePlayer-ec1685f7.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"]))}],Oi=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Kp(e,t){return!!(e===t||Oi(e)&&Oi(t))}function Gp(e,t){if(e.length!==t.length)return!1;for(var n=0;n{for(var n in t)ur(e,n,{get:t[n],enumerable:!0})},Ca=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of s0(t))!l0.call(e,o)&&o!==n&&ur(e,o,{get:()=>t[o],enumerable:!(r=i0(t,o))||r.enumerable});return e},u0=(e,t,n)=>(n=e!=null?o0(a0(e)):{},Ca(t||!e||!e.__esModule?ur(n,"default",{value:e,enumerable:!0}):n,e)),d0=e=>Ca(ur({},"__esModule",{value:!0}),e),Sa={};c0(Sa,{defaultProps:()=>p0,propTypes:()=>h0});var Ea=d0(Sa),f0=u0(rl);const{string:Oe,bool:Ne,number:Nt,array:Lr,oneOfType:an,shape:Ve,object:Te,func:Ce,node:Ni}=f0.default,h0={url:an([Oe,Lr,Te]),playing:Ne,loop:Ne,controls:Ne,volume:Nt,muted:Ne,playbackRate:Nt,width:an([Oe,Nt]),height:an([Oe,Nt]),style:Te,progressInterval:Nt,playsinline:Ne,pip:Ne,stopOnUnmount:Ne,light:an([Ne,Oe,Te]),playIcon:Ni,previewTabIndex:Nt,fallback:Ni,oEmbedUrl:Oe,wrapper:an([Oe,Ce,Ve({render:Ce.isRequired})]),config:Ve({soundcloud:Ve({options:Te}),youtube:Ve({playerVars:Te,embedOptions:Te,onUnstarted:Ce}),facebook:Ve({appId:Oe,version:Oe,playerId:Oe,attributes:Te}),dailymotion:Ve({params:Te}),vimeo:Ve({playerOptions:Te,title:Oe}),file:Ve({attributes:Te,tracks:Lr,forceVideo:Ne,forceAudio:Ne,forceHLS:Ne,forceSafariHLS:Ne,forceDisableHls:Ne,forceDASH:Ne,forceFLV:Ne,hlsOptions:Te,hlsVersion:Oe,dashVersion:Oe,flvVersion:Oe}),wistia:Ve({options:Te,playerId:Oe,customControls:Lr}),mixcloud:Ve({options:Te}),twitch:Ve({options:Te,playerId:Oe}),vidyard:Ve({options:Te})}),onReady:Ce,onStart:Ce,onPlay:Ce,onPause:Ce,onBuffer:Ce,onBufferEnd:Ce,onEnded:Ce,onError:Ce,onDuration:Ce,onSeek:Ce,onPlaybackRateChange:Ce,onPlaybackQualityChange:Ce,onProgress:Ce,onClickPreview:Ce,onEnablePIP:Ce,onDisablePIP:Ce},Pe=()=>{},p0={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:Pe},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:Pe,onStart:Pe,onPlay:Pe,onPause:Pe,onBuffer:Pe,onBufferEnd:Pe,onEnded:Pe,onError:Pe,onDuration:Pe,onSeek:Pe,onPlaybackRateChange:Pe,onPlaybackQualityChange:Pe,onProgress:Pe,onClickPreview:Pe,onEnablePIP:Pe,onDisablePIP:Pe};var m0=Object.create,_n=Object.defineProperty,y0=Object.getOwnPropertyDescriptor,g0=Object.getOwnPropertyNames,v0=Object.getPrototypeOf,b0=Object.prototype.hasOwnProperty,w0=(e,t,n)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_0=(e,t)=>{for(var n in t)_n(e,n,{get:t[n],enumerable:!0})},Pa=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of g0(t))!b0.call(e,o)&&o!==n&&_n(e,o,{get:()=>t[o],enumerable:!(r=y0(t,o))||r.enumerable});return e},Aa=(e,t,n)=>(n=e!=null?m0(v0(e)):{},Pa(t||!e||!e.__esModule?_n(n,"default",{value:e,enumerable:!0}):n,e)),x0=e=>Pa(_n({},"__esModule",{value:!0}),e),be=(e,t,n)=>(w0(e,typeof t!="symbol"?t+"":t,n),n),Ma={};_0(Ma,{default:()=>dr});var C0=x0(Ma),Ti=Aa(C),S0=Aa(xa),Oa=Ea,E0=cr;const P0=5e3;class dr extends Ti.Component{constructor(){super(...arguments),be(this,"mounted",!1),be(this,"isReady",!1),be(this,"isPlaying",!1),be(this,"isLoading",!0),be(this,"loadOnReady",null),be(this,"startOnPlay",!0),be(this,"seekOnPlay",null),be(this,"onDurationCalled",!1),be(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),be(this,"getInternalPlayer",t=>this.player?this.player[t]:null),be(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,n=this.getSecondsLoaded(),r=this.getDuration();if(r){const o={playedSeconds:t,played:t/r};n!==null&&(o.loadedSeconds=n,o.loaded=n/r),(o.playedSeconds!==this.prevPlayed||o.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(o),this.prevPlayed=o.playedSeconds,this.prevLoaded=o.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),be(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:n,volume:r,muted:o}=this.props;t(),!o&&r!==null&&this.player.setVolume(r),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):n&&this.player.play(),this.handleDurationCheck()}),be(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()}),be(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),be(this,"handleEnded",()=>{const{activePlayer:t,loop:n,onEnded:r}=this.props;t.loopOnEnded&&n&&this.seekTo(0),n||(this.isPlaying=!1,r())}),be(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),be(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)}),be(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:o,muted:i,playbackRate:s,pip:a,loop:l,activePlayer:u,disableDeferredLoading:c}=this.props;if(!(0,S0.default)(t.url,n)){if(this.isLoading&&!u.forceLoad&&!c&&!(0,E0.isMediaStream)(n)){console.warn(`ReactPlayer: the attempt to load ${n} is being deferred until the player has loaded`),this.loadOnReady=n;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(n,this.isReady)}!t.playing&&r&&!this.isPlaying&&this.player.play(),t.playing&&!r&&this.isPlaying&&this.player.pause(),!t.pip&&a&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!a&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==o&&o!==null&&this.player.setVolume(o),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),o!==null&&setTimeout(()=>this.player.setVolume(o)))),t.playbackRate!==s&&this.player.setPlaybackRate&&this.player.setPlaybackRate(s),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,n,r){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},P0));return}if(n?n==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,r);return}this.player.seekTo(t,r)}render(){const t=this.props.activePlayer;return t?Ti.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}be(dr,"displayName","Player");be(dr,"propTypes",Oa.propTypes);be(dr,"defaultProps",Oa.defaultProps);var A0=Object.create,xn=Object.defineProperty,M0=Object.getOwnPropertyDescriptor,O0=Object.getOwnPropertyNames,N0=Object.getPrototypeOf,T0=Object.prototype.hasOwnProperty,k0=(e,t,n)=>t in e?xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$0=(e,t)=>{for(var n in t)xn(e,n,{get:t[n],enumerable:!0})},Na=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of O0(t))!T0.call(e,o)&&o!==n&&xn(e,o,{get:()=>t[o],enumerable:!(r=M0(t,o))||r.enumerable});return e},Cn=(e,t,n)=>(n=e!=null?A0(N0(e)):{},Na(t||!e||!e.__esModule?xn(n,"default",{value:e,enumerable:!0}):n,e)),I0=e=>Na(xn({},"__esModule",{value:!0}),e),ve=(e,t,n)=>(k0(e,typeof t!="symbol"?t+"":t,n),n),Ta={};$0(Ta,{createReactPlayer:()=>F0});var R0=I0(Ta),kt=Cn(C),L0=Cn(na),Dr=Cn(Qp),ki=Cn(xa),un=Ea,ka=cr,D0=Cn(C0);const z0=(0,ka.lazy)(()=>Re(()=>import("./Preview-3a8f7b33.js").then(e=>e.P),["assets/Preview-3a8f7b33.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css"])),H0=typeof window<"u"&&window.document,V0=typeof Le<"u"&&Le.window&&Le.window.document,j0=Object.keys(un.propTypes),B0=H0||V0?kt.Suspense:()=>null,ln=[],F0=(e,t)=>{var n;return n=class extends kt.Component{constructor(){super(...arguments),ve(this,"state",{showPreview:!!this.props.light}),ve(this,"references",{wrapper:r=>{this.wrapper=r},player:r=>{this.player=r}}),ve(this,"handleClickPreview",r=>{this.setState({showPreview:!1}),this.props.onClickPreview(r)}),ve(this,"showPreview",()=>{this.setState({showPreview:!0})}),ve(this,"getDuration",()=>this.player?this.player.getDuration():null),ve(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),ve(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),ve(this,"getInternalPlayer",(r="player")=>this.player?this.player.getInternalPlayer(r):null),ve(this,"seekTo",(r,o,i)=>{if(!this.player)return null;this.player.seekTo(r,o,i)}),ve(this,"handleReady",()=>{this.props.onReady(this)}),ve(this,"getActivePlayer",(0,Dr.default)(r=>{for(const o of[...ln,...e])if(o.canPlay(r))return o;return t||null})),ve(this,"getConfig",(0,Dr.default)((r,o)=>{const{config:i}=this.props;return L0.default.all([un.defaultProps.config,un.defaultProps.config[o]||{},i,i[o]||{}])})),ve(this,"getAttributes",(0,Dr.default)(r=>(0,ka.omit)(this.props,j0))),ve(this,"renderActivePlayer",r=>{if(!r)return null;const o=this.getActivePlayer(r);if(!o)return null;const i=this.getConfig(r,o.key);return kt.default.createElement(D0.default,{...this.props,key:o.key,ref:this.references.player,config:i,activePlayer:o.lazyPlayer||o,onReady:this.handleReady})})}shouldComponentUpdate(r,o){return!(0,ki.default)(this.props,r)||!(0,ki.default)(this.state,o)}componentDidUpdate(r){const{light:o}=this.props;!r.light&&o&&this.setState({showPreview:!0}),r.light&&!o&&this.setState({showPreview:!1})}renderPreview(r){if(!r)return null;const{light:o,playIcon:i,previewTabIndex:s,oEmbedUrl:a}=this.props;return kt.default.createElement(z0,{url:r,light:o,playIcon:i,previewTabIndex:s,oEmbedUrl:a,onClick:this.handleClickPreview})}render(){const{url:r,style:o,width:i,height:s,fallback:a,wrapper:l}=this.props,{showPreview:u}=this.state,c=this.getAttributes(r),d=typeof l=="string"?this.references.wrapper:void 0;return kt.default.createElement(l,{ref:d,style:{...o,width:i,height:s},...c},kt.default.createElement(B0,{fallback:a},u?this.renderPreview(r):this.renderActivePlayer(r)))}},ve(n,"displayName","ReactPlayer"),ve(n,"propTypes",un.propTypes),ve(n,"defaultProps",un.defaultProps),ve(n,"addCustomPlayer",r=>{ln.push(r)}),ve(n,"removeCustomPlayers",()=>{ln.length=0}),ve(n,"canPlay",r=>{for(const o of[...ln,...e])if(o.canPlay(r))return!0;return!1}),ve(n,"canEnablePIP",r=>{for(const o of[...ln,...e])if(o.canEnablePIP&&o.canEnablePIP(r))return!0;return!1}),n};var U0=Object.create,fr=Object.defineProperty,Y0=Object.getOwnPropertyDescriptor,X0=Object.getOwnPropertyNames,W0=Object.getPrototypeOf,Z0=Object.prototype.hasOwnProperty,K0=(e,t)=>{for(var n in t)fr(e,n,{get:t[n],enumerable:!0})},$a=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of X0(t))!Z0.call(e,o)&&o!==n&&fr(e,o,{get:()=>t[o],enumerable:!(r=Y0(t,o))||r.enumerable});return e},G0=(e,t,n)=>(n=e!=null?U0(W0(e)):{},$a(t||!e||!e.__esModule?fr(n,"default",{value:e,enumerable:!0}):n,e)),q0=e=>$a(fr({},"__esModule",{value:!0}),e),Ia={};K0(Ia,{default:()=>tm});var J0=q0(Ia),no=G0(Wp),Q0=R0;const em=no.default[no.default.length-1];var tm=(0,Q0.createReactPlayer)(no.default,em);const Mm=ol(J0),Om=e=>z.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[z.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:z.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_4160_9271)",children:z.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),Nm=e=>z.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[z.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:z.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_3130_18463)",children:z.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"})})]}),Tm=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"volume_up",children:[z.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_1483_75386)",children:z.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"})})]})}),km=e=>{const t=Math.floor(e/60),n=Math.floor(e%60),r=t.toString().padStart(2,"0"),o=n.toString().padStart(2,"0");return`${r}:${o}`},$m=e=>z.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:z.jsxs("g",{id:"chevron_right",children:[z.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:z.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),z.jsx("g",{mask:"url(#mask0_1247_21809)",children:z.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"})})]})});export{gm as B,Em as C,Cm as D,Om as E,Nm as F,wm as G,vm as H,bm as L,fm as M,Sm as N,Am as P,kh as R,mm as S,Tm as V,pm as a,nr as b,xm as c,Pm as d,dm as e,cm as f,um as g,hm as h,Mm as i,_m as j,ym as k,$m as l,Yi as m,Hp as p,km as s,cr as u}; diff --git a/build/assets/ChevronUpIcon-e45e7605.js b/build/assets/ChevronUpIcon-6e1fca04.js similarity index 98% rename from build/assets/ChevronUpIcon-e45e7605.js rename to build/assets/ChevronUpIcon-6e1fca04.js index 0bf65af28..50e81b32f 100644 --- a/build/assets/ChevronUpIcon-e45e7605.js +++ b/build/assets/ChevronUpIcon-6e1fca04.js @@ -1,4 +1,4 @@ -import{s as x,_ as s,a5 as k,r as u,u as w,b as T,j as r,d as $,e as R,g as j,a as H,c as y,b1 as Z,b2 as G,f as O,h as z,F as S,G as J,T as Y}from"./index-c522bd40.js";import{g as q}from"./ChevronDownIcon-e923c599.js";import{B as _}from"./index-04e75ad0.js";import{a as K}from"./Popover-243f389d.js";const Q=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],X=e=>{const{absolute:t,children:o,classes:a,flexItem:c,light:i,orientation:n,textAlign:l,variant:d}=e;return R({root:["root",t&&"absolute",d,i&&"light",n==="vertical"&&"vertical",c&&"flexItem",o&&"withChildren",o&&n==="vertical"&&"withChildrenVertical",l==="right"&&n!=="vertical"&&"textAlignRight",l==="left"&&n!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",n==="vertical"&&"wrapperVertical"]},q,a)},ee=x("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.absolute&&t.absolute,t[o.variant],o.light&&t.light,o.orientation==="vertical"&&t.vertical,o.flexItem&&t.flexItem,o.children&&t.withChildren,o.children&&o.orientation==="vertical"&&t.withChildrenVertical,o.textAlign==="right"&&o.orientation!=="vertical"&&t.textAlignRight,o.textAlign==="left"&&o.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>s({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:k(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>s({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>s({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>s({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>s({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),te=x("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.wrapper,o.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>s({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),V=u.forwardRef(function(t,o){const a=w({props:t,name:"MuiDivider"}),{absolute:c=!1,children:i,className:n,component:l=i?"div":"hr",flexItem:d=!1,light:p=!1,orientation:g="horizontal",role:h=l!=="hr"?"separator":void 0,textAlign:f="center",variant:v="fullWidth"}=a,C=T(a,Q),m=s({},a,{absolute:c,component:l,flexItem:d,light:p,orientation:g,role:h,textAlign:f,variant:v}),b=X(m);return r.jsx(ee,s({as:l,className:$(b.root,n),role:h,ref:o,ownerState:m},C,{children:i?r.jsx(te,{className:b.wrapper,ownerState:m,children:i}):null}))});V.muiSkipListHighlight=!0;const We=V,oe=u.createContext(),F=oe;function ae(e){return j("MuiTable",e)}H("MuiTable",["root","stickyHeader"]);const re=["className","component","padding","size","stickyHeader"],ie=e=>{const{classes:t,stickyHeader:o}=e;return R({root:["root",o&&"stickyHeader"]},ae,t)},ne=x("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>s({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":s({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),U="table",le=u.forwardRef(function(t,o){const a=w({props:t,name:"MuiTable"}),{className:c,component:i=U,padding:n="normal",size:l="medium",stickyHeader:d=!1}=a,p=T(a,re),g=s({},a,{component:i,padding:n,size:l,stickyHeader:d}),h=ie(g),f=u.useMemo(()=>({padding:n,size:l,stickyHeader:d}),[n,l,d]);return r.jsx(F.Provider,{value:f,children:r.jsx(ne,s({as:i,role:i===U?null:"table",ref:o,className:$(h.root,c),ownerState:g},p))})}),Oe=le,se=u.createContext(),L=se;function ce(e){return j("MuiTableBody",e)}H("MuiTableBody",["root"]);const de=["className","component"],pe=e=>{const{classes:t}=e;return R({root:["root"]},ce,t)},ge=x("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),ue={variant:"body"},D="tbody",he=u.forwardRef(function(t,o){const a=w({props:t,name:"MuiTableBody"}),{className:c,component:i=D}=a,n=T(a,de),l=s({},a,{component:i}),d=pe(l);return r.jsx(L.Provider,{value:ue,children:r.jsx(ge,s({className:$(d.root,c),as:i,ref:o,role:i===D?null:"rowgroup",ownerState:l},n))})}),Se=he;function ve(e){return j("MuiTableCell",e)}const be=H("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),fe=be,xe=["align","className","component","padding","scope","size","sortDirection","variant"],Ce=e=>{const{classes:t,variant:o,align:a,padding:c,size:i,stickyHeader:n}=e,l={root:["root",o,n&&"stickyHeader",a!=="inherit"&&`align${y(a)}`,c!=="normal"&&`padding${y(c)}`,`size${y(i)}`]};return R(l,ve,t)},me=x("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${y(o.size)}`],o.padding!=="normal"&&t[`padding${y(o.padding)}`],o.align!=="inherit"&&t[`align${y(o.align)}`],o.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>s({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid +import{s as x,_ as s,a5 as k,r as u,u as w,b as T,j as r,d as $,e as R,g as j,a as H,c as y,b1 as Z,b2 as G,f as O,h as z,F as S,G as J,T as Y}from"./index-b85f35cf.js";import{g as q}from"./ChevronDownIcon-cf5b6e54.js";import{B as _}from"./index-341edfe1.js";import{a as K}from"./Popover-28c1573e.js";const Q=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],X=e=>{const{absolute:t,children:o,classes:a,flexItem:c,light:i,orientation:n,textAlign:l,variant:d}=e;return R({root:["root",t&&"absolute",d,i&&"light",n==="vertical"&&"vertical",c&&"flexItem",o&&"withChildren",o&&n==="vertical"&&"withChildrenVertical",l==="right"&&n!=="vertical"&&"textAlignRight",l==="left"&&n!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",n==="vertical"&&"wrapperVertical"]},q,a)},ee=x("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.absolute&&t.absolute,t[o.variant],o.light&&t.light,o.orientation==="vertical"&&t.vertical,o.flexItem&&t.flexItem,o.children&&t.withChildren,o.children&&o.orientation==="vertical"&&t.withChildrenVertical,o.textAlign==="right"&&o.orientation!=="vertical"&&t.textAlignRight,o.textAlign==="left"&&o.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>s({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:k(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>s({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>s({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>s({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>s({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),te=x("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.wrapper,o.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>s({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),V=u.forwardRef(function(t,o){const a=w({props:t,name:"MuiDivider"}),{absolute:c=!1,children:i,className:n,component:l=i?"div":"hr",flexItem:d=!1,light:p=!1,orientation:g="horizontal",role:h=l!=="hr"?"separator":void 0,textAlign:f="center",variant:v="fullWidth"}=a,C=T(a,Q),m=s({},a,{absolute:c,component:l,flexItem:d,light:p,orientation:g,role:h,textAlign:f,variant:v}),b=X(m);return r.jsx(ee,s({as:l,className:$(b.root,n),role:h,ref:o,ownerState:m},C,{children:i?r.jsx(te,{className:b.wrapper,ownerState:m,children:i}):null}))});V.muiSkipListHighlight=!0;const We=V,oe=u.createContext(),F=oe;function ae(e){return j("MuiTable",e)}H("MuiTable",["root","stickyHeader"]);const re=["className","component","padding","size","stickyHeader"],ie=e=>{const{classes:t,stickyHeader:o}=e;return R({root:["root",o&&"stickyHeader"]},ae,t)},ne=x("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>s({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":s({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),U="table",le=u.forwardRef(function(t,o){const a=w({props:t,name:"MuiTable"}),{className:c,component:i=U,padding:n="normal",size:l="medium",stickyHeader:d=!1}=a,p=T(a,re),g=s({},a,{component:i,padding:n,size:l,stickyHeader:d}),h=ie(g),f=u.useMemo(()=>({padding:n,size:l,stickyHeader:d}),[n,l,d]);return r.jsx(F.Provider,{value:f,children:r.jsx(ne,s({as:i,role:i===U?null:"table",ref:o,className:$(h.root,c),ownerState:g},p))})}),Oe=le,se=u.createContext(),L=se;function ce(e){return j("MuiTableBody",e)}H("MuiTableBody",["root"]);const de=["className","component"],pe=e=>{const{classes:t}=e;return R({root:["root"]},ce,t)},ge=x("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),ue={variant:"body"},D="tbody",he=u.forwardRef(function(t,o){const a=w({props:t,name:"MuiTableBody"}),{className:c,component:i=D}=a,n=T(a,de),l=s({},a,{component:i}),d=pe(l);return r.jsx(L.Provider,{value:ue,children:r.jsx(ge,s({className:$(d.root,c),as:i,ref:o,role:i===D?null:"rowgroup",ownerState:l},n))})}),Se=he;function ve(e){return j("MuiTableCell",e)}const be=H("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),fe=be,xe=["align","className","component","padding","scope","size","sortDirection","variant"],Ce=e=>{const{classes:t,variant:o,align:a,padding:c,size:i,stickyHeader:n}=e,l={root:["root",o,n&&"stickyHeader",a!=="inherit"&&`align${y(a)}`,c!=="normal"&&`padding${y(c)}`,`size${y(i)}`]};return R(l,ve,t)},me=x("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${y(o.size)}`],o.padding!=="normal"&&t[`padding${y(o.padding)}`],o.align!=="inherit"&&t[`align${y(o.align)}`],o.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>s({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid ${e.palette.mode==="light"?Z(k(e.palette.divider,1),.88):G(k(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${fe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),ye=u.forwardRef(function(t,o){const a=w({props:t,name:"MuiTableCell"}),{align:c="inherit",className:i,component:n,padding:l,scope:d,size:p,sortDirection:g,variant:h}=a,f=T(a,xe),v=u.useContext(F),C=u.useContext(L),m=C&&C.variant==="head";let b;n?b=n:b=m?"th":"td";let M=d;b==="td"?M=void 0:!M&&m&&(M="col");const N=h||C&&C.variant,B=s({},a,{align:c,component:b,padding:l||(v&&v.padding?v.padding:"normal"),size:p||(v&&v.size?v.size:"medium"),sortDirection:g,stickyHeader:N==="head"&&v&&v.stickyHeader,variant:N}),E=Ce(B);let A=null;return g&&(A=g==="asc"?"ascending":"descending"),r.jsx(me,s({as:b,ref:o,className:$(E.root,i),"aria-sort":A,scope:M,ownerState:B},f))}),Ve=ye;function we(e){return j("MuiTableHead",e)}H("MuiTableHead",["root"]);const Te=["className","component"],$e=e=>{const{classes:t}=e;return R({root:["root"]},we,t)},Re=x("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ke={variant:"head"},P="thead",je=u.forwardRef(function(t,o){const a=w({props:t,name:"MuiTableHead"}),{className:c,component:i=P}=a,n=T(a,Te),l=s({},a,{component:i}),d=$e(l);return r.jsx(L.Provider,{value:ke,children:r.jsx(Re,s({as:i,className:$(d.root,c),ref:o,role:i===P?null:"rowgroup",ownerState:l},n))})}),Fe=je;function He(e){return j("MuiTableRow",e)}const Me=H("MuiTableRow",["root","selected","hover","head","footer"]),I=Me,Le=["className","component","hover","selected"],ze=e=>{const{classes:t,selected:o,hover:a,head:c,footer:i}=e;return R({root:["root",o&&"selected",a&&"hover",c&&"head",i&&"footer"]},He,t)},Ne=x("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${I.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${I.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:k(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:k(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),W="tr",Be=u.forwardRef(function(t,o){const a=w({props:t,name:"MuiTableRow"}),{className:c,component:i=W,hover:n=!1,selected:l=!1}=a,d=T(a,Le),p=u.useContext(L),g=s({},a,{component:i,hover:n,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"}),h=ze(g);return r.jsx(Ne,s({as:i,ref:o,className:$(h.root,c),role:i===W?null:"row",ownerState:g},d))}),Ee=Be,Ze=({message:e="Are you sure you want to delete this item?",onConfirm:t,children:o,anchorOrigin:a={vertical:"bottom",horizontal:"center"},transformOrigin:c={vertical:"top",horizontal:"center"}})=>{const[i,n]=u.useState(null),l=f=>{n(f.currentTarget)},d=()=>{n(null)},p=()=>{t(),d()},g=()=>{d()},h=!!i;return r.jsxs(r.Fragment,{children:[r.jsx("div",{children:J.cloneElement(o,{onClick:l})}),r.jsx(_e,{anchorEl:i,anchorOrigin:a,onClose:d,open:h,transformOrigin:c,children:r.jsxs(Ae,{justify:"space-around",children:[r.jsx(Y,{children:e}),r.jsxs(S,{align:"center",direction:"row",justify:"center",pt:8,children:[r.jsx(_,{kind:"small",onClick:p,children:"Yes"}),r.jsx(_,{className:"secondary",kind:"small",onClick:g,children:"No"})]})]})})]})},Ae=O(S)` background: ${z.headerBackground}; color: ${z.white}; diff --git a/build/assets/DailyMotion-43b019d7.js b/build/assets/DailyMotion-89c8d6f4.js similarity index 95% rename from build/assets/DailyMotion-43b019d7.js rename to build/assets/DailyMotion-89c8d6f4.js index 6b86c4338..b36ddb95a 100644 --- a/build/assets/DailyMotion-43b019d7.js +++ b/build/assets/DailyMotion-89c8d6f4.js @@ -1 +1 @@ -import{ac as P,r as v}from"./index-c522bd40.js";import{u as D,p as O}from"./ChevronRightIcon-83b85265.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{ac as P,r as v}from"./index-b85f35cf.js";import{u as D,p as O}from"./ChevronRightIcon-27a1f67e.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-9344ab3f.js b/build/assets/DeleteIcon-7b7519eb.js similarity index 96% rename from build/assets/DeleteIcon-9344ab3f.js rename to build/assets/DeleteIcon-7b7519eb.js index 876d2fbaa..8e62edcf1 100644 --- a/build/assets/DeleteIcon-9344ab3f.js +++ b/build/assets/DeleteIcon-7b7519eb.js @@ -1 +1 @@ -import{j as e}from"./index-c522bd40.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-b85f35cf.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/EditIcon-26187d62.js b/build/assets/EditIcon-67ff5cde.js similarity index 94% rename from build/assets/EditIcon-26187d62.js rename to build/assets/EditIcon-67ff5cde.js index a0a17597e..28dc1ddce 100644 --- a/build/assets/EditIcon-26187d62.js +++ b/build/assets/EditIcon-67ff5cde.js @@ -1 +1 @@ -import{j as e}from"./index-c522bd40.js";const o=i=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("g",{id:"Type=Edit, Size=20x20",children:e.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"})})});export{o as E}; +import{j as e}from"./index-b85f35cf.js";const o=i=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("g",{id:"Type=Edit, Size=20x20",children:e.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"})})});export{o as E}; diff --git a/build/assets/Facebook-f2631112.js b/build/assets/Facebook-79351ad2.js similarity index 96% rename from build/assets/Facebook-f2631112.js rename to build/assets/Facebook-79351ad2.js index 9b746f811..81392cd56 100644 --- a/build/assets/Facebook-f2631112.js +++ b/build/assets/Facebook-79351ad2.js @@ -1 +1 @@ -import{ac as _,r as P}from"./index-c522bd40.js";import{u as g,p as m}from"./ChevronRightIcon-83b85265.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{ac as _,r as P}from"./index-b85f35cf.js";import{u as g,p as m}from"./ChevronRightIcon-27a1f67e.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-b00b1daf.js b/build/assets/FilePlayer-ec1685f7.js similarity index 98% rename from build/assets/FilePlayer-b00b1daf.js rename to build/assets/FilePlayer-ec1685f7.js index 41226762c..bc268cfe9 100644 --- a/build/assets/FilePlayer-b00b1daf.js +++ b/build/assets/FilePlayer-ec1685f7.js @@ -1 +1 @@ -import{ac as b,r as _}from"./index-c522bd40.js";import{u as O,p as A}from"./ChevronRightIcon-83b85265.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{ac as b,r as _}from"./index-b85f35cf.js";import{u as O,p as A}from"./ChevronRightIcon-27a1f67e.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/InfoIcon-6417fafc.js b/build/assets/InfoIcon-de2f1e11.js similarity index 97% rename from build/assets/InfoIcon-6417fafc.js rename to build/assets/InfoIcon-de2f1e11.js index 945cb6629..40c2eb4a3 100644 --- a/build/assets/InfoIcon-6417fafc.js +++ b/build/assets/InfoIcon-de2f1e11.js @@ -1 +1 @@ -import{ac as h,j as i}from"./index-c522bd40.js";var f=function(e,C,r,s,o,t,a,l){if(!e){var n;if(C===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[r,s,o,t,a,l],c=0;n=new Error(C.replace(/%s/g,function(){return d[c++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}},m=f;const x=h(m),g=e=>i.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:i.jsxs("g",{id:"info",children:[i.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:i.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),i.jsx("g",{mask:"url(#mask0_2682_970)",children:i.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{g as I,m as b,x as i}; +import{ac as h,j as i}from"./index-b85f35cf.js";var f=function(e,C,r,s,o,t,a,l){if(!e){var n;if(C===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[r,s,o,t,a,l],c=0;n=new Error(C.replace(/%s/g,function(){return d[c++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}},m=f;const x=h(m),g=e=>i.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:i.jsxs("g",{id:"info",children:[i.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:i.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),i.jsx("g",{mask:"url(#mask0_2682_970)",children:i.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{g as I,m as b,x as i}; diff --git a/build/assets/Kaltura-233339d4.js b/build/assets/Kaltura-a1fce73b.js similarity index 95% rename from build/assets/Kaltura-233339d4.js rename to build/assets/Kaltura-a1fce73b.js index df8eadb1f..9af8a654a 100644 --- a/build/assets/Kaltura-233339d4.js +++ b/build/assets/Kaltura-a1fce73b.js @@ -1 +1 @@ -import{ac as y,r as f}from"./index-c522bd40.js";import{u as _,p as m}from"./ChevronRightIcon-83b85265.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{ac as y,r as f}from"./index-b85f35cf.js";import{u as _,p as m}from"./ChevronRightIcon-27a1f67e.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; diff --git a/build/assets/Mixcloud-45a29892.js b/build/assets/Mixcloud-f492042b.js similarity index 95% rename from build/assets/Mixcloud-45a29892.js rename to build/assets/Mixcloud-f492042b.js index 67920d554..2f812ade4 100644 --- a/build/assets/Mixcloud-45a29892.js +++ b/build/assets/Mixcloud-f492042b.js @@ -1 +1 @@ -import{ac as _,r as f}from"./index-c522bd40.js";import{u as m,p as g}from"./ChevronRightIcon-83b85265.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{ac as _,r as f}from"./index-b85f35cf.js";import{u as m,p as g}from"./ChevronRightIcon-27a1f67e.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/build/assets/PlusIcon-8eca7748.js b/build/assets/PlusIcon-261fd641.js similarity index 94% rename from build/assets/PlusIcon-8eca7748.js rename to build/assets/PlusIcon-261fd641.js index dec755b7b..6d78db63f 100644 --- a/build/assets/PlusIcon-8eca7748.js +++ b/build/assets/PlusIcon-261fd641.js @@ -1 +1 @@ -import{j as s}from"./index-c522bd40.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-b85f35cf.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-243f389d.js b/build/assets/Popover-28c1573e.js similarity index 99% rename from build/assets/Popover-243f389d.js rename to build/assets/Popover-28c1573e.js index c281ba1bf..a3f70de72 100644 --- a/build/assets/Popover-243f389d.js +++ b/build/assets/Popover-28c1573e.js @@ -1,2 +1,2 @@ -import{r as a,j as A,d7 as gt,d8 as vt,a9 as Me,b as Z,G as Fe,g as xe,a as Ee,s as oe,_ as u,a5 as Ye,u as ye,d as ne,e as Re,a6 as ct,d9 as bt,da as xt,c as Ce,d5 as Et,aT as ut}from"./index-c522bd40.js";import{J as yt,T as dt,t as le,y as Te,H as Je,z as Ze}from"./react-toastify.esm-1e5f1e5f.js";import{a as te,o as he,e as Rt,d as ft,i as He,u as Oe}from"./useSlotProps-96b7890f.js";function Qe(...e){return e.reduce((t,o)=>o==null?t:function(...i){t.apply(this,i),o.apply(this,i)},()=>{})}function De(e,t){var o,n;return a.isValidElement(e)&&t.indexOf((o=e.type.muiName)!=null?o:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function St(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Pt(e){return e==null||Object.keys(e).length===0}function Ct(e){const{styles:t,defaultTheme:o={}}=e,n=typeof t=="function"?i=>t(Pt(i)?o:i):t;return A.jsx(gt,{styles:n})}function Tt({styles:e,themeId:t,defaultTheme:o={}}){const n=vt(o),i=typeof e=="function"?e(t&&n[t]||n):e;return A.jsx(Ct,{styles:i})}const kt=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},et=kt,tt={disabled:!1};var wt=function(t){return t.scrollTop},Se="unmounted",fe="exited",pe="entering",be="entered",We="exiting",re=function(e){yt(t,e);function t(n,i){var r;r=e.call(this,n,i)||this;var s=i,l=s&&!s.isMounting?n.enter:n.appear,c;return r.appearStatus=null,n.in?l?(c=fe,r.appearStatus=pe):c=be:n.unmountOnExit||n.mountOnEnter?c=Se:c=fe,r.state={status:c},r.nextCallback=null,r}t.getDerivedStateFromProps=function(i,r){var s=i.in;return s&&r.status===Se?{status:fe}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(i){var r=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==pe&&s!==be&&(r=pe):(s===pe||s===be)&&(r=We)}this.updateStatus(!1,r)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var i=this.props.timeout,r,s,l;return r=s=l=i,i!=null&&typeof i!="number"&&(r=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:r,enter:s,appear:l}},o.updateStatus=function(i,r){if(i===void 0&&(i=!1),r!==null)if(this.cancelNextCallback(),r===pe){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Me.findDOMNode(this);s&&wt(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fe&&this.setState({status:Se})},o.performEnter=function(i){var r=this,s=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[Me.findDOMNode(this),l],p=c[0],h=c[1],b=this.getTimeouts(),C=l?b.appear:b.enter;if(!i&&!s||tt.disabled){this.safeSetState({status:be},function(){r.props.onEntered(p)});return}this.props.onEnter(p,h),this.safeSetState({status:pe},function(){r.props.onEntering(p,h),r.onTransitionEnd(C,function(){r.safeSetState({status:be},function(){r.props.onEntered(p,h)})})})},o.performExit=function(){var i=this,r=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Me.findDOMNode(this);if(!r||tt.disabled){this.safeSetState({status:fe},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:We},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:fe},function(){i.props.onExited(l)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(i,r){r=this.setNextCallback(r),this.setState(i,r)},o.setNextCallback=function(i){var r=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,r.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},o.onTransitionEnd=function(i,r){this.setNextCallback(r);var s=this.props.nodeRef?this.props.nodeRef.current:Me.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],p=c[0],h=c[1];this.props.addEndListener(p,h)}i!=null&&setTimeout(this.nextCallback,i)},o.render=function(){var i=this.state.status;if(i===Se)return null;var r=this.props,s=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var l=Z(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(dt.Provider,{value:null},typeof s=="function"?s(i,l):Fe.cloneElement(Fe.Children.only(s),l))},t}(Fe.Component);re.contextType=dt;re.propTypes={};function ve(){}re.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ve,onEntering:ve,onEntered:ve,onExit:ve,onExiting:ve,onExited:ve};re.UNMOUNTED=Se;re.EXITED=fe;re.ENTERING=pe;re.ENTERED=be;re.EXITING=We;const pt=re,ht=e=>e.scrollTop;function Ae(e,t){var o,n;const{timeout:i,easing:r,style:s={}}=e;return{duration:(o=s.transitionDuration)!=null?o:typeof i=="number"?i:i[t.mode]||0,easing:(n=s.transitionTimingFunction)!=null?n:typeof r=="object"?r[t.mode]:r,delay:s.transitionDelay}}function Nt(e){return xe("MuiPaper",e)}Ee("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 Mt=["className","component","elevation","square","variant"],Ft=e=>{const{square:t,elevation:o,variant:n,classes:i}=e,r={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${o}`]};return Re(r,Nt,i)},It=oe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,o.variant==="elevation"&&t[`elevation${o.elevation}`]]}})(({theme:e,ownerState:t})=>{var o;return u({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&u({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ye("#fff",et(t.elevation))}, ${Ye("#fff",et(t.elevation))})`},e.vars&&{backgroundImage:(o=e.vars.overlays)==null?void 0:o[t.elevation]}))}),Ot=a.forwardRef(function(t,o){const n=ye({props:t,name:"MuiPaper"}),{className:i,component:r="div",elevation:s=1,square:l=!1,variant:c="elevation"}=n,p=Z(n,Mt),h=u({},n,{component:r,elevation:s,square:l,variant:c}),b=Ft(h);return A.jsx(It,u({as:r,ownerState:h,className:ne(b.root,i),ref:o},p))}),At=Ot,$t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dt(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 Bt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function zt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Bt(e))}function Lt(e){const t=[],o=[];return Array.from(e.querySelectorAll($t)).forEach((n,i)=>{const r=Dt(n);r===-1||!zt(n)||(r===0?t.push(n):o.push({documentOrder:i,tabIndex:r,node:n}))}),o.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function Ht(){return!0}function Wt(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:r=Lt,isEnabled:s=Ht,open:l}=e,c=a.useRef(!1),p=a.useRef(null),h=a.useRef(null),b=a.useRef(null),C=a.useRef(null),k=a.useRef(!1),m=a.useRef(null),N=le(t.ref,m),S=a.useRef(null);a.useEffect(()=>{!l||!m.current||(k.current=!o)},[o,l]),a.useEffect(()=>{if(!l||!m.current)return;const d=te(m.current);return m.current.contains(d.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),k.current&&m.current.focus()),()=>{i||(b.current&&b.current.focus&&(c.current=!0,b.current.focus()),b.current=null)}},[l]),a.useEffect(()=>{if(!l||!m.current)return;const d=te(m.current),f=g=>{S.current=g,!(n||!s()||g.key!=="Tab")&&d.activeElement===m.current&&g.shiftKey&&(c.current=!0,h.current&&h.current.focus())},x=()=>{const g=m.current;if(g===null)return;if(!d.hasFocus()||!s()||c.current){c.current=!1;return}if(g.contains(d.activeElement)||n&&d.activeElement!==p.current&&d.activeElement!==h.current)return;if(d.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!k.current)return;let M=[];if((d.activeElement===p.current||d.activeElement===h.current)&&(M=r(m.current)),M.length>0){var D,O;const B=!!((D=S.current)!=null&&D.shiftKey&&((O=S.current)==null?void 0:O.key)==="Tab"),$=M[0],w=M[M.length-1];typeof $!="string"&&typeof w!="string"&&(B?w.focus():$.focus())}else g.focus()};d.addEventListener("focusin",x),d.addEventListener("keydown",f,!0);const E=setInterval(()=>{d.activeElement&&d.activeElement.tagName==="BODY"&&x()},50);return()=>{clearInterval(E),d.removeEventListener("focusin",x),d.removeEventListener("keydown",f,!0)}},[o,n,i,s,l,r]);const I=d=>{b.current===null&&(b.current=d.relatedTarget),k.current=!0,C.current=d.target;const f=t.props.onFocus;f&&f(d)},T=d=>{b.current===null&&(b.current=d.relatedTarget),k.current=!0};return A.jsxs(a.Fragment,{children:[A.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:p,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:N,onFocus:I}),A.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:h,"data-testid":"sentinelEnd"})]})}function _t(e){return typeof e=="function"?e():e}const jt=a.forwardRef(function(t,o){const{children:n,container:i,disablePortal:r=!1}=t,[s,l]=a.useState(null),c=le(a.isValidElement(n)?n.ref:null,o);if(Te(()=>{r||l(_t(i)||document.body)},[i,r]),Te(()=>{if(s&&!r)return Je(o,s),()=>{Je(o,null)}},[o,s,r]),r){if(a.isValidElement(n)){const p={ref:c};return a.cloneElement(n,p)}return A.jsx(a.Fragment,{children:n})}return A.jsx(a.Fragment,{children:s&&ct.createPortal(n,s)})});function Ut(e){const t=te(e);return t.body===e?he(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Pe(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nt(e){return parseInt(he(e).getComputedStyle(e).paddingRight,10)||0}function Gt(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||n}function ot(e,t,o,n,i){const r=[t,o,...n];[].forEach.call(e.children,s=>{const l=r.indexOf(s)===-1,c=!Gt(s);l&&c&&Pe(s,i)})}function Be(e,t){let o=-1;return e.some((n,i)=>t(n)?(o=i,!0):!1),o}function Kt(e,t){const o=[],n=e.container;if(!t.disableScrollLock){if(Ut(n)){const s=St(te(n));o.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${nt(n)+s}px`;const l=te(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{o.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${nt(c)+s}px`})}let r;if(n.parentNode instanceof DocumentFragment)r=te(n).body;else{const s=n.parentElement,l=he(n);r=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:n}o.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{o.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function Vt(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class qt{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,o){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Pe(t.modalRef,!1);const i=Vt(o);ot(o,t.mount,t.modalRef,i,!0);const r=Be(this.containers,s=>s.container===o);return r!==-1?(this.containers[r].modals.push(t),n):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:i}),n)}mount(t,o){const n=Be(this.containers,r=>r.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=Kt(i,o))}remove(t,o=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Be(this.containers,s=>s.modals.indexOf(t)!==-1),r=this.containers[i];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(n,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&Pe(t.modalRef,o),ot(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&Pe(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Xt(e){return typeof e=="function"?e():e}function Yt(e){return e?e.props.hasOwnProperty("in"):!1}const Jt=new qt;function Zt(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,manager:i=Jt,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:p,open:h,rootRef:b}=e,C=a.useRef({}),k=a.useRef(null),m=a.useRef(null),N=le(m,b),[S,I]=a.useState(!h),T=Yt(c);let d=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(d=!1);const f=()=>te(k.current),x=()=>(C.current.modalRef=m.current,C.current.mount=k.current,C.current),E=()=>{i.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},g=Ze(()=>{const R=Xt(t)||f().body;i.add(x(),R),m.current&&E()}),M=a.useCallback(()=>i.isTopModal(x()),[i]),D=Ze(R=>{k.current=R,R&&(h&&M()?E():m.current&&Pe(m.current,d))}),O=a.useCallback(()=>{i.remove(x(),d)},[d,i]);a.useEffect(()=>()=>{O()},[O]),a.useEffect(()=>{h?g():(!T||!r)&&O()},[h,O,T,r,g]);const B=R=>P=>{var H;(H=R.onKeyDown)==null||H.call(R,P),!(P.key!=="Escape"||P.which===229||!M())&&(o||(P.stopPropagation(),p&&p(P,"escapeKeyDown")))},$=R=>P=>{var H;(H=R.onClick)==null||H.call(R,P),P.target===P.currentTarget&&p&&p(P,"backdropClick")};return{getRootProps:(R={})=>{const P=Rt(e);delete P.onTransitionEnter,delete P.onTransitionExited;const H=u({},P,R);return u({role:"presentation"},H,{onKeyDown:B(H),ref:N})},getBackdropProps:(R={})=>{const P=R;return u({"aria-hidden":!0},P,{onClick:$(P),open:h})},getTransitionProps:()=>{const R=()=>{I(!1),s&&s()},P=()=>{I(!0),l&&l(),r&&O()};return{onEnter:Qe(R,c==null?void 0:c.props.onEnter),onExited:Qe(P,c==null?void 0:c.props.onExited)}},rootRef:N,portalRef:D,isTopModal:M,exited:S,hasTransition:T}}const Qt=["onChange","maxRows","minRows","style","value"];function Ie(e){return parseInt(e,10)||0}const en={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function rt(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const tn=a.forwardRef(function(t,o){const{onChange:n,maxRows:i,minRows:r=1,style:s,value:l}=t,c=Z(t,Qt),{current:p}=a.useRef(l!=null),h=a.useRef(null),b=le(o,h),C=a.useRef(null),k=a.useRef(0),[m,N]=a.useState({outerHeightStyle:0}),S=a.useCallback(()=>{const f=h.current,E=he(f).getComputedStyle(f);if(E.width==="0px")return{outerHeightStyle:0};const g=C.current;g.style.width=E.width,g.value=f.value||t.placeholder||"x",g.value.slice(-1)===` +import{r as a,j as A,d7 as gt,d8 as vt,a9 as Me,b as Z,G as Fe,g as xe,a as Ee,s as oe,_ as u,a5 as Ye,u as ye,d as ne,e as Re,a6 as ct,d9 as bt,da as xt,c as Ce,d5 as Et,aT as ut}from"./index-b85f35cf.js";import{J as yt,T as dt,t as le,y as Te,H as Je,z as Ze}from"./react-toastify.esm-ce67a4f9.js";import{a as te,o as he,e as Rt,d as ft,i as He,u as Oe}from"./useSlotProps-b8a587b0.js";function Qe(...e){return e.reduce((t,o)=>o==null?t:function(...i){t.apply(this,i),o.apply(this,i)},()=>{})}function De(e,t){var o,n;return a.isValidElement(e)&&t.indexOf((o=e.type.muiName)!=null?o:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function St(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Pt(e){return e==null||Object.keys(e).length===0}function Ct(e){const{styles:t,defaultTheme:o={}}=e,n=typeof t=="function"?i=>t(Pt(i)?o:i):t;return A.jsx(gt,{styles:n})}function Tt({styles:e,themeId:t,defaultTheme:o={}}){const n=vt(o),i=typeof e=="function"?e(t&&n[t]||n):e;return A.jsx(Ct,{styles:i})}const kt=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},et=kt,tt={disabled:!1};var wt=function(t){return t.scrollTop},Se="unmounted",fe="exited",pe="entering",be="entered",We="exiting",re=function(e){yt(t,e);function t(n,i){var r;r=e.call(this,n,i)||this;var s=i,l=s&&!s.isMounting?n.enter:n.appear,c;return r.appearStatus=null,n.in?l?(c=fe,r.appearStatus=pe):c=be:n.unmountOnExit||n.mountOnEnter?c=Se:c=fe,r.state={status:c},r.nextCallback=null,r}t.getDerivedStateFromProps=function(i,r){var s=i.in;return s&&r.status===Se?{status:fe}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(i){var r=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==pe&&s!==be&&(r=pe):(s===pe||s===be)&&(r=We)}this.updateStatus(!1,r)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var i=this.props.timeout,r,s,l;return r=s=l=i,i!=null&&typeof i!="number"&&(r=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:r,enter:s,appear:l}},o.updateStatus=function(i,r){if(i===void 0&&(i=!1),r!==null)if(this.cancelNextCallback(),r===pe){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Me.findDOMNode(this);s&&wt(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fe&&this.setState({status:Se})},o.performEnter=function(i){var r=this,s=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[Me.findDOMNode(this),l],p=c[0],h=c[1],b=this.getTimeouts(),C=l?b.appear:b.enter;if(!i&&!s||tt.disabled){this.safeSetState({status:be},function(){r.props.onEntered(p)});return}this.props.onEnter(p,h),this.safeSetState({status:pe},function(){r.props.onEntering(p,h),r.onTransitionEnd(C,function(){r.safeSetState({status:be},function(){r.props.onEntered(p,h)})})})},o.performExit=function(){var i=this,r=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Me.findDOMNode(this);if(!r||tt.disabled){this.safeSetState({status:fe},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:We},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:fe},function(){i.props.onExited(l)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(i,r){r=this.setNextCallback(r),this.setState(i,r)},o.setNextCallback=function(i){var r=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,r.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},o.onTransitionEnd=function(i,r){this.setNextCallback(r);var s=this.props.nodeRef?this.props.nodeRef.current:Me.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],p=c[0],h=c[1];this.props.addEndListener(p,h)}i!=null&&setTimeout(this.nextCallback,i)},o.render=function(){var i=this.state.status;if(i===Se)return null;var r=this.props,s=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var l=Z(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Fe.createElement(dt.Provider,{value:null},typeof s=="function"?s(i,l):Fe.cloneElement(Fe.Children.only(s),l))},t}(Fe.Component);re.contextType=dt;re.propTypes={};function ve(){}re.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ve,onEntering:ve,onEntered:ve,onExit:ve,onExiting:ve,onExited:ve};re.UNMOUNTED=Se;re.EXITED=fe;re.ENTERING=pe;re.ENTERED=be;re.EXITING=We;const pt=re,ht=e=>e.scrollTop;function Ae(e,t){var o,n;const{timeout:i,easing:r,style:s={}}=e;return{duration:(o=s.transitionDuration)!=null?o:typeof i=="number"?i:i[t.mode]||0,easing:(n=s.transitionTimingFunction)!=null?n:typeof r=="object"?r[t.mode]:r,delay:s.transitionDelay}}function Nt(e){return xe("MuiPaper",e)}Ee("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 Mt=["className","component","elevation","square","variant"],Ft=e=>{const{square:t,elevation:o,variant:n,classes:i}=e,r={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${o}`]};return Re(r,Nt,i)},It=oe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!o.square&&t.rounded,o.variant==="elevation"&&t[`elevation${o.elevation}`]]}})(({theme:e,ownerState:t})=>{var o;return u({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&u({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ye("#fff",et(t.elevation))}, ${Ye("#fff",et(t.elevation))})`},e.vars&&{backgroundImage:(o=e.vars.overlays)==null?void 0:o[t.elevation]}))}),Ot=a.forwardRef(function(t,o){const n=ye({props:t,name:"MuiPaper"}),{className:i,component:r="div",elevation:s=1,square:l=!1,variant:c="elevation"}=n,p=Z(n,Mt),h=u({},n,{component:r,elevation:s,square:l,variant:c}),b=Ft(h);return A.jsx(It,u({as:r,ownerState:h,className:ne(b.root,i),ref:o},p))}),At=Ot,$t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dt(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 Bt(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let o=t(`[name="${e.name}"]:checked`);return o||(o=t(`[name="${e.name}"]`)),o!==e}function zt(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Bt(e))}function Lt(e){const t=[],o=[];return Array.from(e.querySelectorAll($t)).forEach((n,i)=>{const r=Dt(n);r===-1||!zt(n)||(r===0?t.push(n):o.push({documentOrder:i,tabIndex:r,node:n}))}),o.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function Ht(){return!0}function Wt(e){const{children:t,disableAutoFocus:o=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:r=Lt,isEnabled:s=Ht,open:l}=e,c=a.useRef(!1),p=a.useRef(null),h=a.useRef(null),b=a.useRef(null),C=a.useRef(null),k=a.useRef(!1),m=a.useRef(null),N=le(t.ref,m),S=a.useRef(null);a.useEffect(()=>{!l||!m.current||(k.current=!o)},[o,l]),a.useEffect(()=>{if(!l||!m.current)return;const d=te(m.current);return m.current.contains(d.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),k.current&&m.current.focus()),()=>{i||(b.current&&b.current.focus&&(c.current=!0,b.current.focus()),b.current=null)}},[l]),a.useEffect(()=>{if(!l||!m.current)return;const d=te(m.current),f=g=>{S.current=g,!(n||!s()||g.key!=="Tab")&&d.activeElement===m.current&&g.shiftKey&&(c.current=!0,h.current&&h.current.focus())},x=()=>{const g=m.current;if(g===null)return;if(!d.hasFocus()||!s()||c.current){c.current=!1;return}if(g.contains(d.activeElement)||n&&d.activeElement!==p.current&&d.activeElement!==h.current)return;if(d.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!k.current)return;let M=[];if((d.activeElement===p.current||d.activeElement===h.current)&&(M=r(m.current)),M.length>0){var D,O;const B=!!((D=S.current)!=null&&D.shiftKey&&((O=S.current)==null?void 0:O.key)==="Tab"),$=M[0],w=M[M.length-1];typeof $!="string"&&typeof w!="string"&&(B?w.focus():$.focus())}else g.focus()};d.addEventListener("focusin",x),d.addEventListener("keydown",f,!0);const E=setInterval(()=>{d.activeElement&&d.activeElement.tagName==="BODY"&&x()},50);return()=>{clearInterval(E),d.removeEventListener("focusin",x),d.removeEventListener("keydown",f,!0)}},[o,n,i,s,l,r]);const I=d=>{b.current===null&&(b.current=d.relatedTarget),k.current=!0,C.current=d.target;const f=t.props.onFocus;f&&f(d)},T=d=>{b.current===null&&(b.current=d.relatedTarget),k.current=!0};return A.jsxs(a.Fragment,{children:[A.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:p,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:N,onFocus:I}),A.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:h,"data-testid":"sentinelEnd"})]})}function _t(e){return typeof e=="function"?e():e}const jt=a.forwardRef(function(t,o){const{children:n,container:i,disablePortal:r=!1}=t,[s,l]=a.useState(null),c=le(a.isValidElement(n)?n.ref:null,o);if(Te(()=>{r||l(_t(i)||document.body)},[i,r]),Te(()=>{if(s&&!r)return Je(o,s),()=>{Je(o,null)}},[o,s,r]),r){if(a.isValidElement(n)){const p={ref:c};return a.cloneElement(n,p)}return A.jsx(a.Fragment,{children:n})}return A.jsx(a.Fragment,{children:s&&ct.createPortal(n,s)})});function Ut(e){const t=te(e);return t.body===e?he(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Pe(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nt(e){return parseInt(he(e).getComputedStyle(e).paddingRight,10)||0}function Gt(e){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return o||n}function ot(e,t,o,n,i){const r=[t,o,...n];[].forEach.call(e.children,s=>{const l=r.indexOf(s)===-1,c=!Gt(s);l&&c&&Pe(s,i)})}function Be(e,t){let o=-1;return e.some((n,i)=>t(n)?(o=i,!0):!1),o}function Kt(e,t){const o=[],n=e.container;if(!t.disableScrollLock){if(Ut(n)){const s=St(te(n));o.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${nt(n)+s}px`;const l=te(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{o.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${nt(c)+s}px`})}let r;if(n.parentNode instanceof DocumentFragment)r=te(n).body;else{const s=n.parentElement,l=he(n);r=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:n}o.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{o.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function Vt(e){const t=[];return[].forEach.call(e.children,o=>{o.getAttribute("aria-hidden")==="true"&&t.push(o)}),t}class qt{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,o){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Pe(t.modalRef,!1);const i=Vt(o);ot(o,t.mount,t.modalRef,i,!0);const r=Be(this.containers,s=>s.container===o);return r!==-1?(this.containers[r].modals.push(t),n):(this.containers.push({modals:[t],container:o,restore:null,hiddenSiblings:i}),n)}mount(t,o){const n=Be(this.containers,r=>r.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=Kt(i,o))}remove(t,o=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Be(this.containers,s=>s.modals.indexOf(t)!==-1),r=this.containers[i];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(n,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&Pe(t.modalRef,o),ot(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&Pe(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Xt(e){return typeof e=="function"?e():e}function Yt(e){return e?e.props.hasOwnProperty("in"):!1}const Jt=new qt;function Zt(e){const{container:t,disableEscapeKeyDown:o=!1,disableScrollLock:n=!1,manager:i=Jt,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:p,open:h,rootRef:b}=e,C=a.useRef({}),k=a.useRef(null),m=a.useRef(null),N=le(m,b),[S,I]=a.useState(!h),T=Yt(c);let d=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(d=!1);const f=()=>te(k.current),x=()=>(C.current.modalRef=m.current,C.current.mount=k.current,C.current),E=()=>{i.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},g=Ze(()=>{const R=Xt(t)||f().body;i.add(x(),R),m.current&&E()}),M=a.useCallback(()=>i.isTopModal(x()),[i]),D=Ze(R=>{k.current=R,R&&(h&&M()?E():m.current&&Pe(m.current,d))}),O=a.useCallback(()=>{i.remove(x(),d)},[d,i]);a.useEffect(()=>()=>{O()},[O]),a.useEffect(()=>{h?g():(!T||!r)&&O()},[h,O,T,r,g]);const B=R=>P=>{var H;(H=R.onKeyDown)==null||H.call(R,P),!(P.key!=="Escape"||P.which===229||!M())&&(o||(P.stopPropagation(),p&&p(P,"escapeKeyDown")))},$=R=>P=>{var H;(H=R.onClick)==null||H.call(R,P),P.target===P.currentTarget&&p&&p(P,"backdropClick")};return{getRootProps:(R={})=>{const P=Rt(e);delete P.onTransitionEnter,delete P.onTransitionExited;const H=u({},P,R);return u({role:"presentation"},H,{onKeyDown:B(H),ref:N})},getBackdropProps:(R={})=>{const P=R;return u({"aria-hidden":!0},P,{onClick:$(P),open:h})},getTransitionProps:()=>{const R=()=>{I(!1),s&&s()},P=()=>{I(!0),l&&l(),r&&O()};return{onEnter:Qe(R,c==null?void 0:c.props.onEnter),onExited:Qe(P,c==null?void 0:c.props.onExited)}},rootRef:N,portalRef:D,isTopModal:M,exited:S,hasTransition:T}}const Qt=["onChange","maxRows","minRows","style","value"];function Ie(e){return parseInt(e,10)||0}const en={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function rt(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const tn=a.forwardRef(function(t,o){const{onChange:n,maxRows:i,minRows:r=1,style:s,value:l}=t,c=Z(t,Qt),{current:p}=a.useRef(l!=null),h=a.useRef(null),b=le(o,h),C=a.useRef(null),k=a.useRef(0),[m,N]=a.useState({outerHeightStyle:0}),S=a.useCallback(()=>{const f=h.current,E=he(f).getComputedStyle(f);if(E.width==="0px")return{outerHeightStyle:0};const g=C.current;g.style.width=E.width,g.value=f.value||t.placeholder||"x",g.value.slice(-1)===` `&&(g.value+=" ");const M=E.boxSizing,D=Ie(E.paddingBottom)+Ie(E.paddingTop),O=Ie(E.borderBottomWidth)+Ie(E.borderTopWidth),B=g.scrollHeight;g.value="x";const $=g.scrollHeight;let w=B;r&&(w=Math.max(Number(r)*$,w)),i&&(w=Math.min(Number(i)*$,w)),w=Math.max(w,$);const y=w+(M==="border-box"?D+O:0),v=Math.abs(w-B)<=1;return{outerHeightStyle:y,overflow:v}},[i,r,t.placeholder]),I=(f,x)=>{const{outerHeightStyle:E,overflow:g}=x;return k.current<20&&(E>0&&Math.abs((f.outerHeightStyle||0)-E)>1||f.overflow!==g)?(k.current+=1,{overflow:g,outerHeightStyle:E}):f},T=a.useCallback(()=>{const f=S();rt(f)||N(x=>I(x,f))},[S]);Te(()=>{const f=()=>{const B=S();rt(B)||ct.flushSync(()=>{N($=>I($,B))})},x=()=>{k.current=0,f()};let E;const g=ft(x),M=h.current,D=he(M);D.addEventListener("resize",g);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(x),O.observe(M)),()=>{g.clear(),cancelAnimationFrame(E),D.removeEventListener("resize",g),O&&O.disconnect()}},[S]),Te(()=>{T()}),a.useEffect(()=>{k.current=0},[l]);const d=f=>{k.current=0,p||T(),n&&n(f)};return A.jsxs(a.Fragment,{children:[A.jsx("textarea",u({value:l,onChange:d,ref:b,rows:r,style:u({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},s)},c)),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:C,tabIndex:-1,style:u({},en.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function nn({props:e,states:t,muiFormControl:o}){return t.reduce((n,i)=>(n[i]=e[i],o&&typeof e[i]>"u"&&(n[i]=o[i]),n),{})}const on=a.createContext(void 0),Ge=on;function rn(){return a.useContext(Ge)}function sn(e){return A.jsx(Tt,u({},e,{defaultTheme:bt,themeId:xt}))}function it(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function _e(e,t=!1){return e&&(it(e.value)&&e.value!==""||t&&it(e.defaultValue)&&e.defaultValue!=="")}function an(e){return e.startAdornment}function ln(e){return xe("MuiInputBase",e)}const cn=Ee("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),je=cn,un=["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"],dn=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,o.size==="small"&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${Ce(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},fn=(e,t)=>{const{ownerState:o}=e;return[t.input,o.size==="small"&&t.inputSizeSmall,o.multiline&&t.inputMultiline,o.type==="search"&&t.inputTypeSearch,o.startAdornment&&t.inputAdornedStart,o.endAdornment&&t.inputAdornedEnd,o.hiddenLabel&&t.inputHiddenLabel]},pn=e=>{const{classes:t,color:o,disabled:n,error:i,endAdornment:r,focused:s,formControl:l,fullWidth:c,hiddenLabel:p,multiline:h,readOnly:b,size:C,startAdornment:k,type:m}=e,N={root:["root",`color${Ce(o)}`,n&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",C&&C!=="medium"&&`size${Ce(C)}`,h&&"multiline",k&&"adornedStart",r&&"adornedEnd",p&&"hiddenLabel",b&&"readOnly"],input:["input",n&&"disabled",m==="search"&&"inputTypeSearch",h&&"inputMultiline",C==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",k&&"inputAdornedStart",r&&"inputAdornedEnd",b&&"readOnly"]};return Re(N,ln,t)},hn=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:dn})(({theme:e,ownerState:t})=>u({},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",[`&.${je.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&u({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),mn=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fn})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light",n=u({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return u({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${je.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus:-ms-input-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${je.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),gn=A.jsx(sn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),vn=a.forwardRef(function(t,o){var n;const i=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:s,autoFocus:l,className:c,components:p={},componentsProps:h={},defaultValue:b,disabled:C,disableInjectingGlobalStyles:k,endAdornment:m,fullWidth:N=!1,id:S,inputComponent:I="input",inputProps:T={},inputRef:d,maxRows:f,minRows:x,multiline:E=!1,name:g,onBlur:M,onChange:D,onClick:O,onFocus:B,onKeyDown:$,onKeyUp:w,placeholder:y,readOnly:v,renderSuffix:R,rows:P,slotProps:H={},slots:j={},startAdornment:U,type:ce="text",value:K}=i,me=Z(i,un),Y=T.value!=null?T.value:K,{current:q}=a.useRef(Y!=null),X=a.useRef(),ie=a.useCallback(W=>{},[]),ue=le(X,d,T.ref,ie),[ee,Q]=a.useState(!1),L=rn(),G=nn({props:i,muiFormControl:L,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=L?L.focused:ee,a.useEffect(()=>{!L&&C&&ee&&(Q(!1),M&&M())},[L,C,ee,M]);const F=L&&L.onFilled,z=L&&L.onEmpty,_=a.useCallback(W=>{_e(W)?F&&F():z&&z()},[F,z]);Te(()=>{q&&_({value:Y})},[Y,_,q]);const ke=W=>{if(G.disabled){W.stopPropagation();return}B&&B(W),T.onFocus&&T.onFocus(W),L&&L.onFocus?L.onFocus(W):Q(!0)},se=W=>{M&&M(W),T.onBlur&&T.onBlur(W),L&&L.onBlur?L.onBlur(W):Q(!1)},ae=(W,...qe)=>{if(!q){const Xe=W.target||X.current;if(Xe==null)throw new Error(Et(1));_({value:Xe.value})}T.onChange&&T.onChange(W,...qe),D&&D(W,...qe)};a.useEffect(()=>{_(X.current)},[]);const we=W=>{X.current&&W.currentTarget===W.target&&X.current.focus(),O&&O(W)};let ge=I,J=T;E&&ge==="input"&&(P?J=u({type:void 0,minRows:P,maxRows:P},J):J=u({type:void 0,maxRows:f,minRows:x},J),ge=tn);const Ne=W=>{_(W.animationName==="mui-auto-fill-cancel"?X.current:{value:"x"})};a.useEffect(()=>{L&&L.setAdornedStart(!!U)},[L,U]);const de=u({},i,{color:G.color||"primary",disabled:G.disabled,endAdornment:m,error:G.error,focused:G.focused,formControl:L,fullWidth:N,hiddenLabel:G.hiddenLabel,multiline:E,size:G.size,startAdornment:U,type:ce}),V=pn(de),Ke=j.root||p.Root||hn,$e=H.root||h.root||{},Ve=j.input||p.Input||mn;return J=u({},J,(n=H.input)!=null?n:h.input),A.jsxs(a.Fragment,{children:[!k&&gn,A.jsxs(Ke,u({},$e,!He(Ke)&&{ownerState:u({},de,$e.ownerState)},{ref:o,onClick:we},me,{className:ne(V.root,$e.className,c,v&&"MuiInputBase-readOnly"),children:[U,A.jsx(Ge.Provider,{value:null,children:A.jsx(Ve,u({ownerState:de,"aria-invalid":G.error,"aria-describedby":r,autoComplete:s,autoFocus:l,defaultValue:b,disabled:G.disabled,id:S,onAnimationStart:Ne,name:g,placeholder:y,readOnly:v,required:G.required,rows:P,value:Y,onKeyDown:$,onKeyUp:w,type:ce},J,!He(Ve)&&{as:ge,ownerState:u({},de,J.ownerState)},{ref:ue,className:ne(V.input,J.className,v&&"MuiInputBase-readOnly"),onBlur:se,onChange:ae,onFocus:ke}))}),m,R?R(u({},G,{startAdornment:U})):null]}))]})}),eo=vn,bn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xn={entering:{opacity:1},entered:{opacity:1}},En=a.forwardRef(function(t,o){const n=ut(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:l,easing:c,in:p,onEnter:h,onEntered:b,onEntering:C,onExit:k,onExited:m,onExiting:N,style:S,timeout:I=i,TransitionComponent:T=pt}=t,d=Z(t,bn),f=a.useRef(null),x=le(f,l.ref,o),E=y=>v=>{if(y){const R=f.current;v===void 0?y(R):y(R,v)}},g=E(C),M=E((y,v)=>{ht(y);const R=Ae({style:S,timeout:I,easing:c},{mode:"enter"});y.style.webkitTransition=n.transitions.create("opacity",R),y.style.transition=n.transitions.create("opacity",R),h&&h(y,v)}),D=E(b),O=E(N),B=E(y=>{const v=Ae({style:S,timeout:I,easing:c},{mode:"exit"});y.style.webkitTransition=n.transitions.create("opacity",v),y.style.transition=n.transitions.create("opacity",v),k&&k(y)}),$=E(m),w=y=>{r&&r(f.current,y)};return A.jsx(T,u({appear:s,in:p,nodeRef:f,onEnter:M,onEntered:D,onEntering:g,onExit:B,onExited:$,onExiting:O,addEndListener:w,timeout:I},d,{children:(y,v)=>a.cloneElement(l,u({style:u({opacity:0,visibility:y==="exited"&&!p?"hidden":void 0},xn[y],S,l.props.style),ref:x},v))}))}),yn=En;function Rn(e){return xe("MuiBackdrop",e)}Ee("MuiBackdrop",["root","invisible"]);const Sn=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Pn=e=>{const{classes:t,invisible:o}=e;return Re({root:["root",o&&"invisible"]},Rn,t)},Cn=oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.invisible&&t.invisible]}})(({ownerState:e})=>u({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"})),Tn=a.forwardRef(function(t,o){var n,i,r;const s=ye({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:p="div",components:h={},componentsProps:b={},invisible:C=!1,open:k,slotProps:m={},slots:N={},TransitionComponent:S=yn,transitionDuration:I}=s,T=Z(s,Sn),d=u({},s,{component:p,invisible:C}),f=Pn(d),x=(n=m.root)!=null?n:b.root;return A.jsx(S,u({in:k,timeout:I},T,{children:A.jsx(Cn,u({"aria-hidden":!0},x,{as:(i=(r=N.root)!=null?r:h.Root)!=null?i:p,className:ne(f.root,c,x==null?void 0:x.className),ownerState:u({},d,x==null?void 0:x.ownerState),classes:f,ref:o,children:l}))}))}),kn=Tn;function wn(e){return xe("MuiModal",e)}Ee("MuiModal",["root","hidden","backdrop"]);const Nn=["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"],Mn=e=>{const{open:t,exited:o,classes:n}=e;return Re({root:["root",!t&&o&&"hidden"],backdrop:["backdrop"]},wn,n)},Fn=oe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.open&&o.exited&&t.hidden]}})(({theme:e,ownerState:t})=>u({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),In=oe(kn,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),On=a.forwardRef(function(t,o){var n,i,r,s,l,c;const p=ye({name:"MuiModal",props:t}),{BackdropComponent:h=In,BackdropProps:b,className:C,closeAfterTransition:k=!1,children:m,container:N,component:S,components:I={},componentsProps:T={},disableAutoFocus:d=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:x=!1,disablePortal:E=!1,disableRestoreFocus:g=!1,disableScrollLock:M=!1,hideBackdrop:D=!1,keepMounted:O=!1,onBackdropClick:B,open:$,slotProps:w,slots:y}=p,v=Z(p,Nn),R=u({},p,{closeAfterTransition:k,disableAutoFocus:d,disableEnforceFocus:f,disableEscapeKeyDown:x,disablePortal:E,disableRestoreFocus:g,disableScrollLock:M,hideBackdrop:D,keepMounted:O}),{getRootProps:P,getBackdropProps:H,getTransitionProps:j,portalRef:U,isTopModal:ce,exited:K,hasTransition:me}=Zt(u({},R,{rootRef:o})),Y=u({},R,{exited:K}),q=Mn(Y),X={};if(m.props.tabIndex===void 0&&(X.tabIndex="-1"),me){const{onEnter:F,onExited:z}=j();X.onEnter=F,X.onExited=z}const ie=(n=(i=y==null?void 0:y.root)!=null?i:I.Root)!=null?n:Fn,ue=(r=(s=y==null?void 0:y.backdrop)!=null?s:I.Backdrop)!=null?r:h,ee=(l=w==null?void 0:w.root)!=null?l:T.root,Q=(c=w==null?void 0:w.backdrop)!=null?c:T.backdrop,L=Oe({elementType:ie,externalSlotProps:ee,externalForwardedProps:v,getSlotProps:P,additionalProps:{ref:o,as:S},ownerState:Y,className:ne(C,ee==null?void 0:ee.className,q==null?void 0:q.root,!Y.open&&Y.exited&&(q==null?void 0:q.hidden))}),G=Oe({elementType:ue,externalSlotProps:Q,additionalProps:b,getSlotProps:F=>H(u({},F,{onClick:z=>{B&&B(z),F!=null&&F.onClick&&F.onClick(z)}})),className:ne(Q==null?void 0:Q.className,b==null?void 0:b.className,q==null?void 0:q.backdrop),ownerState:Y});return!O&&!$&&(!me||K)?null:A.jsx(jt,{ref:U,container:N,disablePortal:E,children:A.jsxs(ie,u({},L,{children:[!D&&h?A.jsx(ue,u({},G)):null,A.jsx(Wt,{disableEnforceFocus:f,disableAutoFocus:d,disableRestoreFocus:g,isEnabled:ce,open:$,children:a.cloneElement(m,X)})]}))})}),An=On;function $n(e){return xe("MuiFormControl",e)}Ee("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Dn=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Bn=e=>{const{classes:t,margin:o,fullWidth:n}=e,i={root:["root",o!=="none"&&`margin${Ce(o)}`,n&&"fullWidth"]};return Re(i,$n,t)},zn=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>u({},t.root,t[`margin${Ce(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>u({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%"})),Ln=a.forwardRef(function(t,o){const n=ye({props:t,name:"MuiFormControl"}),{children:i,className:r,color:s="primary",component:l="div",disabled:c=!1,error:p=!1,focused:h,fullWidth:b=!1,hiddenLabel:C=!1,margin:k="none",required:m=!1,size:N="medium",variant:S="outlined"}=n,I=Z(n,Dn),T=u({},n,{color:s,component:l,disabled:c,error:p,fullWidth:b,hiddenLabel:C,margin:k,required:m,size:N,variant:S}),d=Bn(T),[f,x]=a.useState(()=>{let w=!1;return i&&a.Children.forEach(i,y=>{if(!De(y,["Input","Select"]))return;const v=De(y,["Select"])?y.props.input:y;v&&an(v.props)&&(w=!0)}),w}),[E,g]=a.useState(()=>{let w=!1;return i&&a.Children.forEach(i,y=>{De(y,["Input","Select"])&&(_e(y.props,!0)||_e(y.props.inputProps,!0))&&(w=!0)}),w}),[M,D]=a.useState(!1);c&&M&&D(!1);const O=h!==void 0&&!c?h:M;let B;const $=a.useMemo(()=>({adornedStart:f,setAdornedStart:x,color:s,disabled:c,error:p,filled:E,focused:O,fullWidth:b,hiddenLabel:C,size:N,onBlur:()=>{D(!1)},onEmpty:()=>{g(!1)},onFilled:()=>{g(!0)},onFocus:()=>{D(!0)},registerEffect:B,required:m,variant:S}),[f,s,c,p,E,O,b,C,B,m,N,S]);return A.jsx(Ge.Provider,{value:$,children:A.jsx(zn,u({as:l,ownerState:T,className:ne(d.root,r),ref:o},I,{children:i}))})}),to=Ln,Hn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ue(e){return`scale(${e}, ${e**2})`}const Wn={entering:{opacity:1,transform:Ue(1)},entered:{opacity:1,transform:"none"}},ze=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mt=a.forwardRef(function(t,o){const{addEndListener:n,appear:i=!0,children:r,easing:s,in:l,onEnter:c,onEntered:p,onEntering:h,onExit:b,onExited:C,onExiting:k,style:m,timeout:N="auto",TransitionComponent:S=pt}=t,I=Z(t,Hn),T=a.useRef(),d=a.useRef(),f=ut(),x=a.useRef(null),E=le(x,r.ref,o),g=v=>R=>{if(v){const P=x.current;R===void 0?v(P):v(P,R)}},M=g(h),D=g((v,R)=>{ht(v);const{duration:P,delay:H,easing:j}=Ae({style:m,timeout:N,easing:s},{mode:"enter"});let U;N==="auto"?(U=f.transitions.getAutoHeightDuration(v.clientHeight),d.current=U):U=P,v.style.transition=[f.transitions.create("opacity",{duration:U,delay:H}),f.transitions.create("transform",{duration:ze?U:U*.666,delay:H,easing:j})].join(","),c&&c(v,R)}),O=g(p),B=g(k),$=g(v=>{const{duration:R,delay:P,easing:H}=Ae({style:m,timeout:N,easing:s},{mode:"exit"});let j;N==="auto"?(j=f.transitions.getAutoHeightDuration(v.clientHeight),d.current=j):j=R,v.style.transition=[f.transitions.create("opacity",{duration:j,delay:P}),f.transitions.create("transform",{duration:ze?j:j*.666,delay:ze?P:P||j*.333,easing:H})].join(","),v.style.opacity=0,v.style.transform=Ue(.75),b&&b(v)}),w=g(C),y=v=>{N==="auto"&&(T.current=setTimeout(v,d.current||0)),n&&n(x.current,v)};return a.useEffect(()=>()=>{clearTimeout(T.current)},[]),A.jsx(S,u({appear:i,in:l,nodeRef:x,onEnter:D,onEntered:O,onEntering:M,onExit:$,onExited:w,onExiting:B,addEndListener:y,timeout:N==="auto"?null:N},I,{children:(v,R)=>a.cloneElement(r,u({style:u({opacity:0,transform:Ue(.75),visibility:v==="exited"&&!l?"hidden":void 0},Wn[v],m,r.props.style),ref:E},R))}))});mt.muiSupportAuto=!0;const _n=mt;function jn(e){return xe("MuiPopover",e)}Ee("MuiPopover",["root","paper"]);const Un=["onEntering"],Gn=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Kn=["slotProps"];function st(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.height/2:t==="bottom"&&(o=e.height),o}function at(e,t){let o=0;return typeof t=="number"?o=t:t==="center"?o=e.width/2:t==="right"&&(o=e.width),o}function lt(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Le(e){return typeof e=="function"?e():e}const Vn=e=>{const{classes:t}=e;return Re({root:["root"],paper:["paper"]},jn,t)},qn=oe(An,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xn=oe(At,{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}),Yn=a.forwardRef(function(t,o){var n,i,r;const s=ye({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:b="anchorEl",children:C,className:k,container:m,elevation:N=8,marginThreshold:S=16,open:I,PaperProps:T={},slots:d,slotProps:f,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:E=_n,transitionDuration:g="auto",TransitionProps:{onEntering:M}={},disableScrollLock:D=!1}=s,O=Z(s.TransitionProps,Un),B=Z(s,Gn),$=(n=f==null?void 0:f.paper)!=null?n:T,w=a.useRef(),y=le(w,$.ref),v=u({},s,{anchorOrigin:p,anchorReference:b,elevation:N,marginThreshold:S,externalPaperSlotProps:$,transformOrigin:x,TransitionComponent:E,transitionDuration:g,TransitionProps:O}),R=Vn(v),P=a.useCallback(()=>{if(b==="anchorPosition")return h;const F=Le(c),_=(F&&F.nodeType===1?F:te(w.current).body).getBoundingClientRect();return{top:_.top+st(_,p.vertical),left:_.left+at(_,p.horizontal)}},[c,p.horizontal,p.vertical,h,b]),H=a.useCallback(F=>({vertical:st(F,x.vertical),horizontal:at(F,x.horizontal)}),[x.horizontal,x.vertical]),j=a.useCallback(F=>{const z={width:F.offsetWidth,height:F.offsetHeight},_=H(z);if(b==="none")return{top:null,left:null,transformOrigin:lt(_)};const ke=P();let se=ke.top-_.vertical,ae=ke.left-_.horizontal;const we=se+z.height,ge=ae+z.width,J=he(Le(c)),Ne=J.innerHeight-S,de=J.innerWidth-S;if(S!==null&&seNe){const V=we-Ne;se-=V,_.vertical+=V}if(S!==null&&aede){const V=ge-de;ae-=V,_.horizontal+=V}return{top:`${Math.round(se)}px`,left:`${Math.round(ae)}px`,transformOrigin:lt(_)}},[c,b,P,H,S]),[U,ce]=a.useState(I),K=a.useCallback(()=>{const F=w.current;if(!F)return;const z=j(F);z.top!==null&&(F.style.top=z.top),z.left!==null&&(F.style.left=z.left),F.style.transformOrigin=z.transformOrigin,ce(!0)},[j]);a.useEffect(()=>(D&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[c,D,K]);const me=(F,z)=>{M&&M(F,z),K()},Y=()=>{ce(!1)};a.useEffect(()=>{I&&K()}),a.useImperativeHandle(l,()=>I?{updatePosition:()=>{K()}}:null,[I,K]),a.useEffect(()=>{if(!I)return;const F=ft(()=>{K()}),z=he(c);return z.addEventListener("resize",F),()=>{F.clear(),z.removeEventListener("resize",F)}},[c,I,K]);let q=g;g==="auto"&&!E.muiSupportAuto&&(q=void 0);const X=m||(c?te(Le(c)).body:void 0),ie=(i=d==null?void 0:d.root)!=null?i:qn,ue=(r=d==null?void 0:d.paper)!=null?r:Xn,ee=Oe({elementType:ue,externalSlotProps:u({},$,{style:U?$.style:u({},$.style,{opacity:0})}),additionalProps:{elevation:N,ref:y},ownerState:v,className:ne(R.paper,$==null?void 0:$.className)}),Q=Oe({elementType:ie,externalSlotProps:(f==null?void 0:f.root)||{},externalForwardedProps:B,additionalProps:{ref:o,slotProps:{backdrop:{invisible:!0}},container:X,open:I},ownerState:v,className:ne(R.root,k)}),{slotProps:L}=Q,G=Z(Q,Kn);return A.jsx(ie,u({},G,!He(ie)&&{slotProps:L,disableScrollLock:D},{children:A.jsx(E,u({appear:!0,in:I,onEntering:me,onExited:Y,timeout:q},O,{children:A.jsx(ue,u({},ee,{children:C}))}))}))}),no=Yn;export{to as F,eo as I,At as P,tn as T,no as a,pt as b,hn as c,dn as d,mn as e,nn as f,Ae as g,fn as h,je as i,St as j,Xn as k,_e as l,jt as m,ht as r,rn as u}; diff --git a/build/assets/Popper-831e364f.js b/build/assets/Popper-704ca55a.js similarity index 98% rename from build/assets/Popper-831e364f.js rename to build/assets/Popper-704ca55a.js index 58c34eedf..da91bd4a3 100644 --- a/build/assets/Popper-831e364f.js +++ b/build/assets/Popper-704ca55a.js @@ -1 +1 @@ -import{r as T,g as bt,a as wt,b as De,j as be,_,e as xt,s as Ot,d6 as Pt,u as Et}from"./index-c522bd40.js";import{a as Ye,u as Rt}from"./useSlotProps-96b7890f.js";import{m as At}from"./Popover-243f389d.js";import{t as ze,y as Ge}from"./react-toastify.esm-1e5f1e5f.js";const Ct={disableDefaultClasses:!1},jt=T.createContext(Ct);function Dt(e){const{disableDefaultClasses:t}=T.useContext(jt);return r=>t?"":e(r)}var B="top",W="bottom",H="right",M="left",$e="auto",le=[B,W,H,M],ee="start",fe="end",$t="clippingParents",nt="viewport",ie="popper",Tt="reference",Je=le.reduce(function(e,t){return e.concat([t+"-"+ee,t+"-"+fe])},[]),at=[].concat(le,[$e]).reduce(function(e,t){return e.concat([t,t+"-"+ee,t+"-"+fe])},[]),Bt="beforeRead",Mt="read",St="afterRead",kt="beforeMain",Lt="main",Wt="afterMain",Ht="beforeWrite",Nt="write",Vt="afterWrite",Ft=[Bt,Mt,St,kt,Lt,Wt,Ht,Nt,Vt];function V(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Q(e){var t=k(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=k(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Te(e){if(typeof ShadowRoot>"u")return!1;var t=k(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ut(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!V(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(f){var s=n[f];s===!1?a.removeAttribute(f):a.setAttribute(f,s===!0?"":s)}))})}function qt(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]||{},f=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=f.reduce(function(i,c){return i[c]="",i},{});!L(n)||!V(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const It={name:"applyStyles",enabled:!0,phase:"write",fn:Ut,effect:qt,requires:["computeStyles"]};function N(e){return e.split("-")[0]}var K=Math.max,we=Math.min,te=Math.round;function Ae(){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 it(){return!/^((?!chrome|android).)*safari/i.test(Ae())}function re(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&te(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&te(o.height)/e.offsetHeight||1);var f=Q(e)?k(e):window,s=f.visualViewport,i=!it()&&r,c=(o.left+(i&&s?s.offsetLeft:0))/n,p=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,y=o.height/a;return{width:v,height:y,top:p,right:c+v,bottom:p+y,left:c,x:c,y:p}}function Be(e){var t=re(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 st(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Te(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 k(e).getComputedStyle(e)}function Xt(e){return["table","td","th"].indexOf(V(e))>=0}function Y(e){return((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function xe(e){return V(e)==="html"?e:e.assignedSlot||e.parentNode||(Te(e)?e.host:null)||Y(e)}function Ke(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Yt(e){var t=/firefox/i.test(Ae()),r=/Trident/i.test(Ae());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=xe(e);for(Te(n)&&(n=n.host);L(n)&&["html","body"].indexOf(V(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 ue(e){for(var t=k(e),r=Ke(e);r&&Xt(r)&&q(r).position==="static";)r=Ke(r);return r&&(V(r)==="html"||V(r)==="body"&&q(r).position==="static")?t:r||Yt(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function se(e,t,r){return K(e,we(t,r))}function zt(e,t,r){var o=se(e,t,r);return o>r?r:o}function pt(){return{top:0,right:0,bottom:0,left:0}}function ft(e){return Object.assign({},pt(),e)}function ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Gt=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ft(typeof t!="number"?t:ct(t,le))};function Jt(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,f=r.modifiersData.popperOffsets,s=N(r.placement),i=Me(s),c=[M,H].indexOf(s)>=0,p=c?"height":"width";if(!(!a||!f)){var v=Gt(n.padding,r),y=Be(a),u=i==="y"?B:M,x=i==="y"?W:H,d=r.rects.reference[p]+r.rects.reference[i]-f[i]-r.rects.popper[p],m=f[i]-r.rects.reference[i],w=ue(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,l=v[u],h=P-y[p]-v[x],g=P/2-y[p]/2+b,O=se(l,g,h),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-g,t)}}function Kt(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)||st(t.elements.popper,n)&&(t.elements.arrow=n))}const Qt={name:"arrow",enabled:!0,phase:"main",fn:Jt,effect:Kt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(e){return e.split("-")[1]}var Zt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _t(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:te(r*n)/n||0,y:te(o*n)/n||0}}function Qe(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,f=e.offsets,s=e.position,i=e.gpuAcceleration,c=e.adaptive,p=e.roundOffsets,v=e.isFixed,y=f.x,u=y===void 0?0:y,x=f.y,d=x===void 0?0:x,m=typeof p=="function"?p({x:u,y:d}):{x:u,y:d};u=m.x,d=m.y;var w=f.hasOwnProperty("x"),P=f.hasOwnProperty("y"),b=M,l=B,h=window;if(c){var g=ue(r),O="clientHeight",A="clientWidth";if(g===k(r)&&(g=Y(r),q(g).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),g=g,n===B||(n===M||n===H)&&a===fe){l=W;var R=v&&g===h&&h.visualViewport?h.visualViewport.height:g[O];d-=R-o.height,d*=i?1:-1}if(n===M||(n===B||n===W)&&a===fe){b=H;var E=v&&g===h&&h.visualViewport?h.visualViewport.width:g[A];u-=E-o.width,u*=i?1:-1}}var C=Object.assign({position:s},c&&Zt),S=p===!0?_t({x:u,y:d},k(r)):{x:u,y:d};if(u=S.x,d=S.y,i){var D;return Object.assign({},C,(D={},D[l]=P?"0":"",D[b]=w?"0":"",D.transform=(h.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",D))}return Object.assign({},C,(t={},t[l]=P?d+"px":"",t[b]=w?u+"px":"",t.transform="",t))}function er(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,f=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,c={placement:N(t.placement),variation:oe(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,Qe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:f,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Qe(Object.assign({},c,{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:er,data:{}};var ge={passive:!0};function rr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,f=o.resize,s=f===void 0?!0:f,i=k(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(p){p.addEventListener("scroll",r.update,ge)}),s&&i.addEventListener("resize",r.update,ge),function(){a&&c.forEach(function(p){p.removeEventListener("scroll",r.update,ge)}),s&&i.removeEventListener("resize",r.update,ge)}}const or={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rr,data:{}};var nr={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(e){return e.replace(/left|right|bottom|top/g,function(t){return nr[t]})}var ar={start:"end",end:"start"};function Ze(e){return e.replace(/start|end/g,function(t){return ar[t]})}function Se(e){var t=k(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function ke(e){return re(Y(e)).left+Se(e).scrollLeft}function ir(e,t){var r=k(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,f=o.clientHeight,s=0,i=0;if(n){a=n.width,f=n.height;var c=it();(c||!c&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:f,x:s+ke(e),y:i}}function sr(e){var t,r=Y(e),o=Se(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),f=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+ke(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:f,x:s,y:i}}function Le(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function lt(e){return["html","body","#document"].indexOf(V(e))>=0?e.ownerDocument.body:L(e)&&Le(e)?e:lt(xe(e))}function pe(e,t){var r;t===void 0&&(t=[]);var o=lt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=k(o),f=n?[a].concat(a.visualViewport||[],Le(o)?o:[]):o,s=t.concat(f);return n?s:s.concat(pe(xe(f)))}function Ce(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pr(e,t){var r=re(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 _e(e,t,r){return t===nt?Ce(ir(e,r)):Q(t)?pr(t,r):Ce(sr(Y(e)))}function fr(e){var t=pe(xe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ue(e):e;return Q(o)?t.filter(function(n){return Q(n)&&st(n,o)&&V(n)!=="body"}):[]}function cr(e,t,r,o){var n=t==="clippingParents"?fr(e):[].concat(t),a=[].concat(n,[r]),f=a[0],s=a.reduce(function(i,c){var p=_e(e,c,o);return i.top=K(p.top,i.top),i.right=we(p.right,i.right),i.bottom=we(p.bottom,i.bottom),i.left=K(p.left,i.left),i},_e(e,f,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ut(e){var t=e.reference,r=e.element,o=e.placement,n=o?N(o):null,a=o?oe(o):null,f=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:f,y:t.y-r.height};break;case W:i={x:f,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case M:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var c=n?Me(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(a){case ee:i[c]=i[c]-(t[p]/2-r[p]/2);break;case fe:i[c]=i[c]+(t[p]/2-r[p]/2);break}}return i}function ce(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,f=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?$t:s,c=r.rootBoundary,p=c===void 0?nt:c,v=r.elementContext,y=v===void 0?ie:v,u=r.altBoundary,x=u===void 0?!1:u,d=r.padding,m=d===void 0?0:d,w=ft(typeof m!="number"?m:ct(m,le)),P=y===ie?Tt:ie,b=e.rects.popper,l=e.elements[x?P:y],h=cr(Q(l)?l:l.contextElement||Y(e.elements.popper),i,p,f),g=re(e.elements.reference),O=ut({reference:g,element:b,strategy:"absolute",placement:n}),A=Ce(Object.assign({},b,O)),R=y===ie?A:g,E={top:h.top-R.top+w.top,bottom:R.bottom-h.bottom+w.bottom,left:h.left-R.left+w.left,right:R.right-h.right+w.right},C=e.modifiersData.offset;if(y===ie&&C){var S=C[n];Object.keys(E).forEach(function(D){var F=[H,W].indexOf(D)>=0?1:-1,U=[B,W].indexOf(D)>=0?"y":"x";E[D]+=S[U]*F})}return E}function lr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,f=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,c=i===void 0?at:i,p=oe(o),v=p?s?Je:Je.filter(function(x){return oe(x)===p}):le,y=v.filter(function(x){return c.indexOf(x)>=0});y.length===0&&(y=v);var u=y.reduce(function(x,d){return x[d]=ce(e,{placement:d,boundary:n,rootBoundary:a,padding:f})[N(d)],x},{});return Object.keys(u).sort(function(x,d){return u[x]-u[d]})}function ur(e){if(N(e)===$e)return[];var t=ye(e);return[Ze(e),t,Ze(t)]}function dr(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,f=r.altAxis,s=f===void 0?!0:f,i=r.fallbackPlacements,c=r.padding,p=r.boundary,v=r.rootBoundary,y=r.altBoundary,u=r.flipVariations,x=u===void 0?!0:u,d=r.allowedAutoPlacements,m=t.options.placement,w=N(m),P=w===m,b=i||(P||!x?[ye(m)]:ur(m)),l=[m].concat(b).reduce(function(Z,X){return Z.concat(N(X)===$e?lr(t,{placement:X,boundary:p,rootBoundary:v,padding:c,flipVariations:x,allowedAutoPlacements:d}):X)},[]),h=t.rects.reference,g=t.rects.popper,O=new Map,A=!0,R=l[0],E=0;E=0,U=F?"width":"height",j=ce(t,{placement:C,boundary:p,rootBoundary:v,altBoundary:y,padding:c}),$=F?D?H:M:D?W:B;h[U]>g[U]&&($=ye($));var I=ye($),z=[];if(a&&z.push(j[S]<=0),s&&z.push(j[$]<=0,j[I]<=0),z.every(function(Z){return Z})){R=C,A=!1;break}O.set(C,z)}if(A)for(var de=x?3:1,Oe=function(X){var ae=l.find(function(me){var G=O.get(me);if(G)return G.slice(0,X).every(function(Pe){return Pe})});if(ae)return R=ae,"break"},ne=de;ne>0;ne--){var ve=Oe(ne);if(ve==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}const vr={name:"flip",enabled:!0,phase:"main",fn:dr,requiresIfExists:["offset"],data:{_skip:!1}};function et(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 tt(e){return[B,H,W,M].some(function(t){return e[t]>=0})}function mr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,f=ce(t,{elementContext:"reference"}),s=ce(t,{altBoundary:!0}),i=et(f,o),c=et(s,n,a),p=tt(i),v=tt(c);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":v})}const hr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mr};function gr(e,t,r){var o=N(e),n=[M,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,f=a[0],s=a[1];return f=f||0,s=(s||0)*n,[M,H].indexOf(o)>=0?{x:s,y:f}:{x:f,y:s}}function yr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,f=at.reduce(function(p,v){return p[v]=gr(v,t.rects,a),p},{}),s=f[t.placement],i=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=f}const br={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yr};function wr(e){var t=e.state,r=e.name;t.modifiersData[r]=ut({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xr={name:"popperOffsets",enabled:!0,phase:"read",fn:wr,data:{}};function Or(e){return e==="x"?"y":"x"}function Pr(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,f=r.altAxis,s=f===void 0?!1:f,i=r.boundary,c=r.rootBoundary,p=r.altBoundary,v=r.padding,y=r.tether,u=y===void 0?!0:y,x=r.tetherOffset,d=x===void 0?0:x,m=ce(t,{boundary:i,rootBoundary:c,padding:v,altBoundary:p}),w=N(t.placement),P=oe(t.placement),b=!P,l=Me(w),h=Or(l),g=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,R=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,E=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var D,F=l==="y"?B:M,U=l==="y"?W:H,j=l==="y"?"height":"width",$=g[l],I=$+m[F],z=$-m[U],de=u?-A[j]/2:0,Oe=P===ee?O[j]:A[j],ne=P===ee?-A[j]:-O[j],ve=t.elements.arrow,Z=u&&ve?Be(ve):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pt(),ae=X[F],me=X[U],G=se(0,O[j],Z[j]),Pe=b?O[j]/2-de-G-ae-E.mainAxis:Oe-G-ae-E.mainAxis,dt=b?-O[j]/2+de+G+me+E.mainAxis:ne+G+me+E.mainAxis,Ee=t.elements.arrow&&ue(t.elements.arrow),vt=Ee?l==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,We=(D=C==null?void 0:C[l])!=null?D:0,mt=$+Pe-We-vt,ht=$+dt-We,He=se(u?we(I,mt):I,$,u?K(z,ht):z);g[l]=He,S[l]=He-$}if(s){var Ne,gt=l==="x"?B:M,yt=l==="x"?W:H,J=g[h],he=h==="y"?"height":"width",Ve=J+m[gt],Fe=J-m[yt],Re=[B,M].indexOf(w)!==-1,Ue=(Ne=C==null?void 0:C[h])!=null?Ne:0,qe=Re?Ve:J-O[he]-A[he]-Ue+E.altAxis,Ie=Re?J+O[he]+A[he]-Ue-E.altAxis:Fe,Xe=u&&Re?zt(qe,J,Ie):se(u?qe:Ve,J,u?Ie:Fe);g[h]=Xe,S[h]=Xe-J}t.modifiersData[o]=S}}const Er={name:"preventOverflow",enabled:!0,phase:"main",fn:Pr,requiresIfExists:["offset"]};function Rr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ar(e){return e===k(e)||!L(e)?Se(e):Rr(e)}function Cr(e){var t=e.getBoundingClientRect(),r=te(t.width)/e.offsetWidth||1,o=te(t.height)/e.offsetHeight||1;return r!==1||o!==1}function jr(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&Cr(t),a=Y(t),f=re(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((V(t)!=="body"||Le(a))&&(s=Ar(t)),L(t)?(i=re(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=ke(a))),{x:f.left+s.scrollLeft-i.x,y:f.top+s.scrollTop-i.y,width:f.width,height:f.height}}function Dr(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 f=[].concat(a.requires||[],a.requiresIfExists||[]);f.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 $r(e){var t=Dr(e);return Ft.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function Tr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Br(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 rt={placement:"bottom",modifiers:[],strategy:"absolute"};function ot(){for(var e=arguments.length,t=new Array(e),r=0;rxt({root:["root"]},Dt(Lr)),Ur={},qr=T.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:f,disablePortal:s,modifiers:i,open:c,placement:p,popperOptions:v,popperRef:y,slotProps:u={},slots:x={},TransitionProps:d}=t,m=De(t,Wr),w=T.useRef(null),P=ze(w,r),b=T.useRef(null),l=ze(b,y),h=T.useRef(l);Ge(()=>{h.current=l},[l]),T.useImperativeHandle(y,()=>b.current,[]);const g=Nr(p,f),[O,A]=T.useState(g),[R,E]=T.useState(je(n));T.useEffect(()=>{b.current&&b.current.forceUpdate()}),T.useEffect(()=>{n&&E(je(n))},[n]),Ge(()=>{if(!R||!c)return;const U=I=>{A(I.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{U(I)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const $=kr(R,w.current,_({placement:g},v,{modifiers:j}));return h.current($),()=>{$.destroy(),h.current(null)}},[R,s,i,c,v,g]);const C={placement:O};d!==null&&(C.TransitionProps=d);const S=Fr(),D=(o=x.root)!=null?o:"div",F=Rt({elementType:D,externalSlotProps:u.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:S.root});return be.jsx(D,_({},F,{children:typeof a=="function"?a(C):a}))}),Ir=T.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:f="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:c,open:p,placement:v="bottom",popperOptions:y=Ur,popperRef:u,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=De(t,Hr),[b,l]=T.useState(!0),h=()=>{l(!1)},g=()=>{l(!0)};if(!i&&!p&&(!d||b))return null;let O;if(a)O=a;else if(o){const E=je(o);O=E&&Vr(E)?Ye(E).body:Ye(null).body}const A=!p&&i&&(!d||b)?"none":void 0,R=d?{in:p,onEnter:h,onExited:g}:void 0;return be.jsx(At,{disablePortal:s,container:O,children:be.jsx(qr,_({anchorEl:o,direction:f,disablePortal:s,modifiers:c,ref:r,open:d?!b:p,placement:v,popperOptions:y,popperRef:u,slotProps:m,slots:w},P,{style:_({position:"fixed",top:0,left:0,display:A},x),TransitionProps:R,children:n}))})}),Xr=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Yr=Ot(Ir,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zr=T.forwardRef(function(t,r){var o;const n=Pt(),a=Et({props:t,name:"MuiPopper"}),{anchorEl:f,component:s,components:i,componentsProps:c,container:p,disablePortal:v,keepMounted:y,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:l}=a,h=De(a,Xr),g=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=_({anchorEl:f,container:p,disablePortal:v,keepMounted:y,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},h);return be.jsx(Yr,_({as:s,direction:n==null?void 0:n.direction,slots:{root:g},slotProps:l??c},O,{ref:r}))}),Zr=zr;export{Zr as P}; +import{r as T,g as bt,a as wt,b as De,j as be,_,e as xt,s as Ot,d6 as Pt,u as Et}from"./index-b85f35cf.js";import{a as Ye,u as Rt}from"./useSlotProps-b8a587b0.js";import{m as At}from"./Popover-28c1573e.js";import{t as ze,y as Ge}from"./react-toastify.esm-ce67a4f9.js";const Ct={disableDefaultClasses:!1},jt=T.createContext(Ct);function Dt(e){const{disableDefaultClasses:t}=T.useContext(jt);return r=>t?"":e(r)}var B="top",W="bottom",H="right",M="left",$e="auto",le=[B,W,H,M],ee="start",fe="end",$t="clippingParents",nt="viewport",ie="popper",Tt="reference",Je=le.reduce(function(e,t){return e.concat([t+"-"+ee,t+"-"+fe])},[]),at=[].concat(le,[$e]).reduce(function(e,t){return e.concat([t,t+"-"+ee,t+"-"+fe])},[]),Bt="beforeRead",Mt="read",St="afterRead",kt="beforeMain",Lt="main",Wt="afterMain",Ht="beforeWrite",Nt="write",Vt="afterWrite",Ft=[Bt,Mt,St,kt,Lt,Wt,Ht,Nt,Vt];function V(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Q(e){var t=k(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=k(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Te(e){if(typeof ShadowRoot>"u")return!1;var t=k(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ut(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!V(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(f){var s=n[f];s===!1?a.removeAttribute(f):a.setAttribute(f,s===!0?"":s)}))})}function qt(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]||{},f=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=f.reduce(function(i,c){return i[c]="",i},{});!L(n)||!V(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const It={name:"applyStyles",enabled:!0,phase:"write",fn:Ut,effect:qt,requires:["computeStyles"]};function N(e){return e.split("-")[0]}var K=Math.max,we=Math.min,te=Math.round;function Ae(){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 it(){return!/^((?!chrome|android).)*safari/i.test(Ae())}function re(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&te(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&te(o.height)/e.offsetHeight||1);var f=Q(e)?k(e):window,s=f.visualViewport,i=!it()&&r,c=(o.left+(i&&s?s.offsetLeft:0))/n,p=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,y=o.height/a;return{width:v,height:y,top:p,right:c+v,bottom:p+y,left:c,x:c,y:p}}function Be(e){var t=re(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 st(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Te(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 k(e).getComputedStyle(e)}function Xt(e){return["table","td","th"].indexOf(V(e))>=0}function Y(e){return((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function xe(e){return V(e)==="html"?e:e.assignedSlot||e.parentNode||(Te(e)?e.host:null)||Y(e)}function Ke(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Yt(e){var t=/firefox/i.test(Ae()),r=/Trident/i.test(Ae());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=xe(e);for(Te(n)&&(n=n.host);L(n)&&["html","body"].indexOf(V(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 ue(e){for(var t=k(e),r=Ke(e);r&&Xt(r)&&q(r).position==="static";)r=Ke(r);return r&&(V(r)==="html"||V(r)==="body"&&q(r).position==="static")?t:r||Yt(e)||t}function Me(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function se(e,t,r){return K(e,we(t,r))}function zt(e,t,r){var o=se(e,t,r);return o>r?r:o}function pt(){return{top:0,right:0,bottom:0,left:0}}function ft(e){return Object.assign({},pt(),e)}function ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Gt=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ft(typeof t!="number"?t:ct(t,le))};function Jt(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,f=r.modifiersData.popperOffsets,s=N(r.placement),i=Me(s),c=[M,H].indexOf(s)>=0,p=c?"height":"width";if(!(!a||!f)){var v=Gt(n.padding,r),y=Be(a),u=i==="y"?B:M,x=i==="y"?W:H,d=r.rects.reference[p]+r.rects.reference[i]-f[i]-r.rects.popper[p],m=f[i]-r.rects.reference[i],w=ue(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,l=v[u],h=P-y[p]-v[x],g=P/2-y[p]/2+b,O=se(l,g,h),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-g,t)}}function Kt(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)||st(t.elements.popper,n)&&(t.elements.arrow=n))}const Qt={name:"arrow",enabled:!0,phase:"main",fn:Jt,effect:Kt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(e){return e.split("-")[1]}var Zt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _t(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:te(r*n)/n||0,y:te(o*n)/n||0}}function Qe(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,f=e.offsets,s=e.position,i=e.gpuAcceleration,c=e.adaptive,p=e.roundOffsets,v=e.isFixed,y=f.x,u=y===void 0?0:y,x=f.y,d=x===void 0?0:x,m=typeof p=="function"?p({x:u,y:d}):{x:u,y:d};u=m.x,d=m.y;var w=f.hasOwnProperty("x"),P=f.hasOwnProperty("y"),b=M,l=B,h=window;if(c){var g=ue(r),O="clientHeight",A="clientWidth";if(g===k(r)&&(g=Y(r),q(g).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),g=g,n===B||(n===M||n===H)&&a===fe){l=W;var R=v&&g===h&&h.visualViewport?h.visualViewport.height:g[O];d-=R-o.height,d*=i?1:-1}if(n===M||(n===B||n===W)&&a===fe){b=H;var E=v&&g===h&&h.visualViewport?h.visualViewport.width:g[A];u-=E-o.width,u*=i?1:-1}}var C=Object.assign({position:s},c&&Zt),S=p===!0?_t({x:u,y:d},k(r)):{x:u,y:d};if(u=S.x,d=S.y,i){var D;return Object.assign({},C,(D={},D[l]=P?"0":"",D[b]=w?"0":"",D.transform=(h.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",D))}return Object.assign({},C,(t={},t[l]=P?d+"px":"",t[b]=w?u+"px":"",t.transform="",t))}function er(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,f=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,c={placement:N(t.placement),variation:oe(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,Qe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:f,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Qe(Object.assign({},c,{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:er,data:{}};var ge={passive:!0};function rr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,f=o.resize,s=f===void 0?!0:f,i=k(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(p){p.addEventListener("scroll",r.update,ge)}),s&&i.addEventListener("resize",r.update,ge),function(){a&&c.forEach(function(p){p.removeEventListener("scroll",r.update,ge)}),s&&i.removeEventListener("resize",r.update,ge)}}const or={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rr,data:{}};var nr={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(e){return e.replace(/left|right|bottom|top/g,function(t){return nr[t]})}var ar={start:"end",end:"start"};function Ze(e){return e.replace(/start|end/g,function(t){return ar[t]})}function Se(e){var t=k(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function ke(e){return re(Y(e)).left+Se(e).scrollLeft}function ir(e,t){var r=k(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,f=o.clientHeight,s=0,i=0;if(n){a=n.width,f=n.height;var c=it();(c||!c&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:f,x:s+ke(e),y:i}}function sr(e){var t,r=Y(e),o=Se(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=K(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),f=K(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+ke(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=K(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:f,x:s,y:i}}function Le(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function lt(e){return["html","body","#document"].indexOf(V(e))>=0?e.ownerDocument.body:L(e)&&Le(e)?e:lt(xe(e))}function pe(e,t){var r;t===void 0&&(t=[]);var o=lt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=k(o),f=n?[a].concat(a.visualViewport||[],Le(o)?o:[]):o,s=t.concat(f);return n?s:s.concat(pe(xe(f)))}function Ce(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pr(e,t){var r=re(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 _e(e,t,r){return t===nt?Ce(ir(e,r)):Q(t)?pr(t,r):Ce(sr(Y(e)))}function fr(e){var t=pe(xe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ue(e):e;return Q(o)?t.filter(function(n){return Q(n)&&st(n,o)&&V(n)!=="body"}):[]}function cr(e,t,r,o){var n=t==="clippingParents"?fr(e):[].concat(t),a=[].concat(n,[r]),f=a[0],s=a.reduce(function(i,c){var p=_e(e,c,o);return i.top=K(p.top,i.top),i.right=we(p.right,i.right),i.bottom=we(p.bottom,i.bottom),i.left=K(p.left,i.left),i},_e(e,f,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ut(e){var t=e.reference,r=e.element,o=e.placement,n=o?N(o):null,a=o?oe(o):null,f=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:f,y:t.y-r.height};break;case W:i={x:f,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case M:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var c=n?Me(n):null;if(c!=null){var p=c==="y"?"height":"width";switch(a){case ee:i[c]=i[c]-(t[p]/2-r[p]/2);break;case fe:i[c]=i[c]+(t[p]/2-r[p]/2);break}}return i}function ce(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,f=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?$t:s,c=r.rootBoundary,p=c===void 0?nt:c,v=r.elementContext,y=v===void 0?ie:v,u=r.altBoundary,x=u===void 0?!1:u,d=r.padding,m=d===void 0?0:d,w=ft(typeof m!="number"?m:ct(m,le)),P=y===ie?Tt:ie,b=e.rects.popper,l=e.elements[x?P:y],h=cr(Q(l)?l:l.contextElement||Y(e.elements.popper),i,p,f),g=re(e.elements.reference),O=ut({reference:g,element:b,strategy:"absolute",placement:n}),A=Ce(Object.assign({},b,O)),R=y===ie?A:g,E={top:h.top-R.top+w.top,bottom:R.bottom-h.bottom+w.bottom,left:h.left-R.left+w.left,right:R.right-h.right+w.right},C=e.modifiersData.offset;if(y===ie&&C){var S=C[n];Object.keys(E).forEach(function(D){var F=[H,W].indexOf(D)>=0?1:-1,U=[B,W].indexOf(D)>=0?"y":"x";E[D]+=S[U]*F})}return E}function lr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,f=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,c=i===void 0?at:i,p=oe(o),v=p?s?Je:Je.filter(function(x){return oe(x)===p}):le,y=v.filter(function(x){return c.indexOf(x)>=0});y.length===0&&(y=v);var u=y.reduce(function(x,d){return x[d]=ce(e,{placement:d,boundary:n,rootBoundary:a,padding:f})[N(d)],x},{});return Object.keys(u).sort(function(x,d){return u[x]-u[d]})}function ur(e){if(N(e)===$e)return[];var t=ye(e);return[Ze(e),t,Ze(t)]}function dr(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,f=r.altAxis,s=f===void 0?!0:f,i=r.fallbackPlacements,c=r.padding,p=r.boundary,v=r.rootBoundary,y=r.altBoundary,u=r.flipVariations,x=u===void 0?!0:u,d=r.allowedAutoPlacements,m=t.options.placement,w=N(m),P=w===m,b=i||(P||!x?[ye(m)]:ur(m)),l=[m].concat(b).reduce(function(Z,X){return Z.concat(N(X)===$e?lr(t,{placement:X,boundary:p,rootBoundary:v,padding:c,flipVariations:x,allowedAutoPlacements:d}):X)},[]),h=t.rects.reference,g=t.rects.popper,O=new Map,A=!0,R=l[0],E=0;E=0,U=F?"width":"height",j=ce(t,{placement:C,boundary:p,rootBoundary:v,altBoundary:y,padding:c}),$=F?D?H:M:D?W:B;h[U]>g[U]&&($=ye($));var I=ye($),z=[];if(a&&z.push(j[S]<=0),s&&z.push(j[$]<=0,j[I]<=0),z.every(function(Z){return Z})){R=C,A=!1;break}O.set(C,z)}if(A)for(var de=x?3:1,Oe=function(X){var ae=l.find(function(me){var G=O.get(me);if(G)return G.slice(0,X).every(function(Pe){return Pe})});if(ae)return R=ae,"break"},ne=de;ne>0;ne--){var ve=Oe(ne);if(ve==="break")break}t.placement!==R&&(t.modifiersData[o]._skip=!0,t.placement=R,t.reset=!0)}}const vr={name:"flip",enabled:!0,phase:"main",fn:dr,requiresIfExists:["offset"],data:{_skip:!1}};function et(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 tt(e){return[B,H,W,M].some(function(t){return e[t]>=0})}function mr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,f=ce(t,{elementContext:"reference"}),s=ce(t,{altBoundary:!0}),i=et(f,o),c=et(s,n,a),p=tt(i),v=tt(c);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":v})}const hr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mr};function gr(e,t,r){var o=N(e),n=[M,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,f=a[0],s=a[1];return f=f||0,s=(s||0)*n,[M,H].indexOf(o)>=0?{x:s,y:f}:{x:f,y:s}}function yr(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,f=at.reduce(function(p,v){return p[v]=gr(v,t.rects,a),p},{}),s=f[t.placement],i=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=f}const br={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yr};function wr(e){var t=e.state,r=e.name;t.modifiersData[r]=ut({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xr={name:"popperOffsets",enabled:!0,phase:"read",fn:wr,data:{}};function Or(e){return e==="x"?"y":"x"}function Pr(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,f=r.altAxis,s=f===void 0?!1:f,i=r.boundary,c=r.rootBoundary,p=r.altBoundary,v=r.padding,y=r.tether,u=y===void 0?!0:y,x=r.tetherOffset,d=x===void 0?0:x,m=ce(t,{boundary:i,rootBoundary:c,padding:v,altBoundary:p}),w=N(t.placement),P=oe(t.placement),b=!P,l=Me(w),h=Or(l),g=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,R=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,E=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(g){if(a){var D,F=l==="y"?B:M,U=l==="y"?W:H,j=l==="y"?"height":"width",$=g[l],I=$+m[F],z=$-m[U],de=u?-A[j]/2:0,Oe=P===ee?O[j]:A[j],ne=P===ee?-A[j]:-O[j],ve=t.elements.arrow,Z=u&&ve?Be(ve):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pt(),ae=X[F],me=X[U],G=se(0,O[j],Z[j]),Pe=b?O[j]/2-de-G-ae-E.mainAxis:Oe-G-ae-E.mainAxis,dt=b?-O[j]/2+de+G+me+E.mainAxis:ne+G+me+E.mainAxis,Ee=t.elements.arrow&&ue(t.elements.arrow),vt=Ee?l==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,We=(D=C==null?void 0:C[l])!=null?D:0,mt=$+Pe-We-vt,ht=$+dt-We,He=se(u?we(I,mt):I,$,u?K(z,ht):z);g[l]=He,S[l]=He-$}if(s){var Ne,gt=l==="x"?B:M,yt=l==="x"?W:H,J=g[h],he=h==="y"?"height":"width",Ve=J+m[gt],Fe=J-m[yt],Re=[B,M].indexOf(w)!==-1,Ue=(Ne=C==null?void 0:C[h])!=null?Ne:0,qe=Re?Ve:J-O[he]-A[he]-Ue+E.altAxis,Ie=Re?J+O[he]+A[he]-Ue-E.altAxis:Fe,Xe=u&&Re?zt(qe,J,Ie):se(u?qe:Ve,J,u?Ie:Fe);g[h]=Xe,S[h]=Xe-J}t.modifiersData[o]=S}}const Er={name:"preventOverflow",enabled:!0,phase:"main",fn:Pr,requiresIfExists:["offset"]};function Rr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ar(e){return e===k(e)||!L(e)?Se(e):Rr(e)}function Cr(e){var t=e.getBoundingClientRect(),r=te(t.width)/e.offsetWidth||1,o=te(t.height)/e.offsetHeight||1;return r!==1||o!==1}function jr(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&Cr(t),a=Y(t),f=re(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((V(t)!=="body"||Le(a))&&(s=Ar(t)),L(t)?(i=re(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=ke(a))),{x:f.left+s.scrollLeft-i.x,y:f.top+s.scrollTop-i.y,width:f.width,height:f.height}}function Dr(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 f=[].concat(a.requires||[],a.requiresIfExists||[]);f.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 $r(e){var t=Dr(e);return Ft.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function Tr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Br(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 rt={placement:"bottom",modifiers:[],strategy:"absolute"};function ot(){for(var e=arguments.length,t=new Array(e),r=0;rxt({root:["root"]},Dt(Lr)),Ur={},qr=T.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:f,disablePortal:s,modifiers:i,open:c,placement:p,popperOptions:v,popperRef:y,slotProps:u={},slots:x={},TransitionProps:d}=t,m=De(t,Wr),w=T.useRef(null),P=ze(w,r),b=T.useRef(null),l=ze(b,y),h=T.useRef(l);Ge(()=>{h.current=l},[l]),T.useImperativeHandle(y,()=>b.current,[]);const g=Nr(p,f),[O,A]=T.useState(g),[R,E]=T.useState(je(n));T.useEffect(()=>{b.current&&b.current.forceUpdate()}),T.useEffect(()=>{n&&E(je(n))},[n]),Ge(()=>{if(!R||!c)return;const U=I=>{A(I.placement)};let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{U(I)}}];i!=null&&(j=j.concat(i)),v&&v.modifiers!=null&&(j=j.concat(v.modifiers));const $=kr(R,w.current,_({placement:g},v,{modifiers:j}));return h.current($),()=>{$.destroy(),h.current(null)}},[R,s,i,c,v,g]);const C={placement:O};d!==null&&(C.TransitionProps=d);const S=Fr(),D=(o=x.root)!=null?o:"div",F=Rt({elementType:D,externalSlotProps:u.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:S.root});return be.jsx(D,_({},F,{children:typeof a=="function"?a(C):a}))}),Ir=T.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:f="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:c,open:p,placement:v="bottom",popperOptions:y=Ur,popperRef:u,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=De(t,Hr),[b,l]=T.useState(!0),h=()=>{l(!1)},g=()=>{l(!0)};if(!i&&!p&&(!d||b))return null;let O;if(a)O=a;else if(o){const E=je(o);O=E&&Vr(E)?Ye(E).body:Ye(null).body}const A=!p&&i&&(!d||b)?"none":void 0,R=d?{in:p,onEnter:h,onExited:g}:void 0;return be.jsx(At,{disablePortal:s,container:O,children:be.jsx(qr,_({anchorEl:o,direction:f,disablePortal:s,modifiers:c,ref:r,open:d?!b:p,placement:v,popperOptions:y,popperRef:u,slotProps:m,slots:w},P,{style:_({position:"fixed",top:0,left:0,display:A},x),TransitionProps:R,children:n}))})}),Xr=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Yr=Ot(Ir,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zr=T.forwardRef(function(t,r){var o;const n=Pt(),a=Et({props:t,name:"MuiPopper"}),{anchorEl:f,component:s,components:i,componentsProps:c,container:p,disablePortal:v,keepMounted:y,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:l}=a,h=De(a,Xr),g=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=_({anchorEl:f,container:p,disablePortal:v,keepMounted:y,modifiers:u,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},h);return be.jsx(Yr,_({as:s,direction:n==null?void 0:n.direction,slots:{root:g},slotProps:l??c},O,{ref:r}))}),Zr=zr;export{Zr as P}; diff --git a/build/assets/Preview-9f52d3ed.js b/build/assets/Preview-3a8f7b33.js similarity index 97% rename from build/assets/Preview-9f52d3ed.js rename to build/assets/Preview-3a8f7b33.js index ba4254694..49175f730 100644 --- a/build/assets/Preview-9f52d3ed.js +++ b/build/assets/Preview-3a8f7b33.js @@ -1 +1 @@ -import{ac as y,r as b}from"./index-c522bd40.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{ac as y,r as b}from"./index-b85f35cf.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; diff --git a/build/assets/Select-72591674.js b/build/assets/Select-f3cb55de.js similarity index 99% rename from build/assets/Select-72591674.js rename to build/assets/Select-f3cb55de.js index 87aeb9f94..40088e28f 100644 --- a/build/assets/Select-72591674.js +++ b/build/assets/Select-f3cb55de.js @@ -1 +1 @@ -import{r as u,aa as ft,_ as s,a as D,g as A,j as v,s as $,a7 as T,u as V,b as N,d2 as ye,e as U,d as Y,c as ne,aT as mt,cO as bt,d5 as gt}from"./index-c522bd40.js";import{i as Re,c as Se,d as $e,e as Pe,h as Me,I as ke,u as me,f as be,j as vt,a as ht,k as xt,l as Ct}from"./Popover-243f389d.js";import{y as It,t as we}from"./react-toastify.esm-1e5f1e5f.js";import{c as yt,a as Ie,u as Te}from"./useSlotProps-96b7890f.js";let Ue=0;function Rt(e){const[t,o]=u.useState(e),n=e||t;return u.useEffect(()=>{t==null&&(Ue+=1,o(`mui-${Ue}`))},[t]),n}const _e=ft["useId".toString()];function St(e){if(_e!==void 0){const t=_e();return e??t}return Rt(e)}function ze({controlled:e,default:t,name:o,state:n="value"}){const{current:a}=u.useRef(e!==void 0),[i,l]=u.useState(t),r=a?e:i,c=u.useCallback(p=>{a||l(p)},[]);return[r,c]}function $t(e){return A("MuiInput",e)}const Pt=s({},Re,D("MuiInput",["root","underline","input"])),se=Pt;function Mt(e){return A("MuiOutlinedInput",e)}const kt=s({},Re,D("MuiOutlinedInput",["root","notchedOutline","input"])),q=kt;function wt(e){return A("MuiFilledInput",e)}const Ft=s({},Re,D("MuiFilledInput",["root","underline","input"])),Q=Ft,Lt=yt(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ot=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Nt=e=>{const{classes:t,disableUnderline:o}=e,a=U({root:["root",!o&&"underline"],input:["input"]},wt,t);return s({},t,a)},Et=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...$e(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return s({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Q.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Q.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Q.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Q.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Q.disabled}, .${Q.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Q.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&s({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Bt=$(Pe,{name:"MuiFilledInput",slot:"Input",overridesResolver:Me})(({theme:e,ownerState:t})=>s({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Xe=u.forwardRef(function(t,o){var n,a,i,l;const r=V({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:p,fullWidth:b=!1,inputComponent:x="input",multiline:h=!1,slotProps:C,slots:k={},type:w="text"}=r,L=N(r,Ot),g=s({},r,{fullWidth:b,inputComponent:x,multiline:h,type:w}),P=Nt(r),m={root:{ownerState:g},input:{ownerState:g}},f=C??p?ye(m,C??p):m,y=(n=(a=k.root)!=null?a:c.Root)!=null?n:Et,S=(i=(l=k.input)!=null?l:c.Input)!=null?i:Bt;return v.jsx(ke,s({slots:{root:y,input:S},componentsProps:f,fullWidth:b,inputComponent:x,multiline:h,ref:o,type:w},L,{classes:P}))});Xe.muiName="Input";const Wt=Xe;function jt(e){return A("MuiFormLabel",e)}const Dt=D("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),le=Dt,At=["children","className","color","component","disabled","error","filled","focused","required"],Tt=e=>{const{classes:t,color:o,focused:n,disabled:a,error:i,filled:l,required:r}=e,c={root:["root",`color${ne(o)}`,a&&"disabled",i&&"error",l&&"filled",n&&"focused",r&&"required"],asterisk:["asterisk",i&&"error"]};return U(c,jt,t)},Ut=$("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>s({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>s({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${le.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${le.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${le.error}`]:{color:(e.vars||e).palette.error.main}})),_t=$("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${le.error}`]:{color:(e.vars||e).palette.error.main}})),zt=u.forwardRef(function(t,o){const n=V({props:t,name:"MuiFormLabel"}),{children:a,className:i,component:l="label"}=n,r=N(n,At),c=me(),p=be({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),b=s({},n,{color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),x=Tt(b);return v.jsxs(Ut,s({as:l,ownerState:b,className:Y(x.root,i),ref:o},r,{children:[a,p.required&&v.jsxs(_t,{ownerState:b,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}))}),Kt=zt,qt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Vt=e=>{const{classes:t,disableUnderline:o}=e,a=U({root:["root",!o&&"underline"],input:["input"]},$t,t);return s({},t,a)},Ht=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...$e(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),s({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${se.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${se.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${se.disabled}, .${se.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${se.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Xt=$(Pe,{name:"MuiInput",slot:"Input",overridesResolver:Me})({}),Ge=u.forwardRef(function(t,o){var n,a,i,l;const r=V({props:t,name:"MuiInput"}),{disableUnderline:c,components:p={},componentsProps:b,fullWidth:x=!1,inputComponent:h="input",multiline:C=!1,slotProps:k,slots:w={},type:L="text"}=r,g=N(r,qt),P=Vt(r),f={root:{ownerState:{disableUnderline:c}}},y=k??b?ye(k??b,f):f,S=(n=(a=w.root)!=null?a:p.Root)!=null?n:Ht,I=(i=(l=w.input)!=null?l:p.Input)!=null?i:Xt;return v.jsx(ke,s({slots:{root:S,input:I},slotProps:y,fullWidth:x,inputComponent:h,multiline:C,ref:o,type:L},g,{classes:P}))});Ge.muiName="Input";const Gt=Ge;function Jt(e){return A("MuiInputLabel",e)}D("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Qt=["disableAnimation","margin","shrink","variant","className"],Yt=e=>{const{classes:t,formControl:o,size:n,shrink:a,disableAnimation:i,variant:l,required:r}=e,c={root:["root",o&&"formControl",!i&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ne(n)}`,l],asterisk:[r&&"asterisk"]},p=U(c,Jt,t);return s({},t,p)},Zt=$(Kt,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${le.asterisk}`]:t.asterisk},t.root,o.formControl&&t.formControl,o.size==="small"&&t.sizeSmall,o.shrink&&t.shrink,!o.disableAnimation&&t.animated,o.focused&&t.focused,t[o.variant]]}})(({theme:e,ownerState:t})=>s({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&s({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&s({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&s({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),eo=u.forwardRef(function(t,o){const n=V({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:i,className:l}=n,r=N(n,Qt),c=me();let p=i;typeof p>"u"&&c&&(p=c.filled||c.focused||c.adornedStart);const b=be({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),x=s({},n,{disableAnimation:a,formControl:c,shrink:p,size:b.size,variant:b.variant,required:b.required,focused:b.focused}),h=Yt(x);return v.jsx(Zt,s({"data-shrink":p,ownerState:x,ref:o,className:Y(h.root,l)},r,{classes:h}))}),dn=eo,to=u.createContext({}),oo=to;function no(e){return A("MuiList",e)}D("MuiList",["root","padding","dense","subheader"]);const so=["children","className","component","dense","disablePadding","subheader"],ro=e=>{const{classes:t,disablePadding:o,dense:n,subheader:a}=e;return U({root:["root",!o&&"padding",n&&"dense",a&&"subheader"]},no,t)},ao=$("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})(({ownerState:e})=>s({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),lo=u.forwardRef(function(t,o){const n=V({props:t,name:"MuiList"}),{children:a,className:i,component:l="ul",dense:r=!1,disablePadding:c=!1,subheader:p}=n,b=N(n,so),x=u.useMemo(()=>({dense:r}),[r]),h=s({},n,{component:l,dense:r,disablePadding:c}),C=ro(h);return v.jsx(oo.Provider,{value:x,children:v.jsxs(ao,s({as:l,className:Y(C.root,i),ref:o,ownerState:h},b,{children:[p,a]}))})}),io=lo,uo=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ce(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function Ke(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function Je(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.indexOf(t.keys.join(""))===0}function re(e,t,o,n,a,i){let l=!1,r=a(e,t,t?o:!1);for(;r;){if(r===e.firstChild){if(l)return!1;l=!0}const c=n?!1:r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||!Je(r,i)||c)r=a(e,r,o);else return r.focus(),!0}return!1}const co=u.forwardRef(function(t,o){const{actions:n,autoFocus:a=!1,autoFocusItem:i=!1,children:l,className:r,disabledItemsFocusable:c=!1,disableListWrap:p=!1,onKeyDown:b,variant:x="selectedMenu"}=t,h=N(t,uo),C=u.useRef(null),k=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});It(()=>{a&&C.current.focus()},[a]),u.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(m,f)=>{const y=!C.current.style.width;if(m.clientHeight{const f=C.current,y=m.key,S=Ie(f).activeElement;if(y==="ArrowDown")m.preventDefault(),re(f,S,p,c,Ce);else if(y==="ArrowUp")m.preventDefault(),re(f,S,p,c,Ke);else if(y==="Home")m.preventDefault(),re(f,null,p,c,Ce);else if(y==="End")m.preventDefault(),re(f,null,p,c,Ke);else if(y.length===1){const I=k.current,O=y.toLowerCase(),W=performance.now();I.keys.length>0&&(W-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&O!==I.keys[0]&&(I.repeating=!1)),I.lastTime=W,I.keys.push(O);const _=S&&!I.repeating&&Je(S,I);I.previousKeyMatched&&(_||re(f,S,!1,c,Ce,I))?m.preventDefault():I.previousKeyMatched=!1}b&&b(m)},L=we(C,o);let g=-1;u.Children.forEach(l,(m,f)=>{if(!u.isValidElement(m)){g===f&&(g+=1,g>=l.length&&(g=-1));return}m.props.disabled||(x==="selectedMenu"&&m.props.selected||g===-1)&&(g=f),g===f&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(g+=1,g>=l.length&&(g=-1))});const P=u.Children.map(l,(m,f)=>{if(f===g){const y={};return i&&(y.autoFocus=!0),m.props.tabIndex===void 0&&x==="selectedMenu"&&(y.tabIndex=0),u.cloneElement(m,y)}return m});return v.jsx(io,s({role:"menu",ref:L,className:r,onKeyDown:w,tabIndex:a?0:-1},h,{children:P}))}),po=co;function fo(e){return A("MuiMenu",e)}D("MuiMenu",["root","paper","list"]);const mo=["onEntering"],bo=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],go={vertical:"top",horizontal:"right"},vo={vertical:"top",horizontal:"left"},ho=e=>{const{classes:t}=e;return U({root:["root"],paper:["paper"],list:["list"]},fo,t)},xo=$(ht,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Co=$(xt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Io=$(po,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),yo=u.forwardRef(function(t,o){var n,a;const i=V({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:r,className:c,disableAutoFocusItem:p=!1,MenuListProps:b={},onClose:x,open:h,PaperProps:C={},PopoverClasses:k,transitionDuration:w="auto",TransitionProps:{onEntering:L}={},variant:g="selectedMenu",slots:P={},slotProps:m={}}=i,f=N(i.TransitionProps,mo),y=N(i,bo),S=mt(),I=S.direction==="rtl",O=s({},i,{autoFocus:l,disableAutoFocusItem:p,MenuListProps:b,onEntering:L,PaperProps:C,transitionDuration:w,TransitionProps:f,variant:g}),W=ho(O),_=l&&!p&&h,z=u.useRef(null),H=(E,G)=>{z.current&&z.current.adjustStyleForScrollbar(E,S),L&&L(E,G)},j=E=>{E.key==="Tab"&&(E.preventDefault(),x&&x(E,"tabKeyDown"))};let B=-1;u.Children.map(r,(E,G)=>{u.isValidElement(E)&&(E.props.disabled||(g==="selectedMenu"&&E.props.selected||B===-1)&&(B=G))});const X=(n=P.paper)!=null?n:Co,Z=(a=m.paper)!=null?a:C,K=Te({elementType:P.root,externalSlotProps:m.root,ownerState:O,className:[W.root,c]}),M=Te({elementType:X,externalSlotProps:Z,ownerState:O,className:W.paper});return v.jsx(xo,s({onClose:x,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?go:vo,slots:{paper:X,root:P.root},slotProps:{root:K,paper:M},open:h,ref:o,transitionDuration:w,TransitionProps:s({onEntering:H},f),ownerState:O},y,{classes:k,children:v.jsx(Io,s({onKeyDown:j,actions:z,autoFocus:l&&(B===-1||p),autoFocusItem:_,variant:g},b,{className:Y(W.list,b.className),children:r}))}))}),Ro=yo;function So(e){return A("MuiNativeSelect",e)}const $o=D("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Fe=$o,Po=["className","disabled","error","IconComponent","inputRef","variant"],Mo=e=>{const{classes:t,variant:o,disabled:n,multiple:a,open:i,error:l}=e,r={select:["select",o,n&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${ne(o)}`,i&&"iconOpen",n&&"disabled"]};return U(r,So,t)},Qe=({ownerState:e,theme:t})=>s({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":s({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Fe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ko=$("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:T,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Fe.multiple}`]:t.multiple}]}})(Qe),Ye=({ownerState:e,theme:t})=>s({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Fe.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),wo=$("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ne(o.variant)}`],o.open&&t.iconOpen]}})(Ye),Fo=u.forwardRef(function(t,o){const{className:n,disabled:a,error:i,IconComponent:l,inputRef:r,variant:c="standard"}=t,p=N(t,Po),b=s({},t,{disabled:a,variant:c,error:i}),x=Mo(b);return v.jsxs(u.Fragment,{children:[v.jsx(ko,s({ownerState:b,className:Y(x.select,n),disabled:a,ref:r||o},p)),t.multiple?null:v.jsx(wo,{as:l,ownerState:b,className:x.icon})]})}),Lo=Fo;var qe;const Oo=["children","classes","className","label","notched"],No=$("fieldset",{shouldForwardProp:T})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Eo=$("legend",{shouldForwardProp:T})(({ownerState:e,theme:t})=>s({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&s({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Bo(e){const{className:t,label:o,notched:n}=e,a=N(e,Oo),i=o!=null&&o!=="",l=s({},e,{notched:n,withLabel:i});return v.jsx(No,s({"aria-hidden":!0,className:t,ownerState:l},a,{children:v.jsx(Eo,{ownerState:l,children:i?v.jsx("span",{children:o}):qe||(qe=v.jsx("span",{className:"notranslate",children:"​"}))})}))}const Wo=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jo=e=>{const{classes:t}=e,n=U({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Mt,t);return s({},t,n)},Do=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$e})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return s({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${q.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${q.focused} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${q.error} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${q.disabled} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&s({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Ao=$(Bo,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),To=$(Pe,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Me})(({theme:e,ownerState:t})=>s({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Ze=u.forwardRef(function(t,o){var n,a,i,l,r;const c=V({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:b=!1,inputComponent:x="input",label:h,multiline:C=!1,notched:k,slots:w={},type:L="text"}=c,g=N(c,Wo),P=jo(c),m=me(),f=be({props:c,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y=s({},c,{color:f.color||"primary",disabled:f.disabled,error:f.error,focused:f.focused,formControl:m,fullWidth:b,hiddenLabel:f.hiddenLabel,multiline:C,size:f.size,type:L}),S=(n=(a=w.root)!=null?a:p.Root)!=null?n:Do,I=(i=(l=w.input)!=null?l:p.Input)!=null?i:To;return v.jsx(ke,s({slots:{root:S,input:I},renderSuffix:O=>v.jsx(Ao,{ownerState:y,className:P.notchedOutline,label:h!=null&&h!==""&&f.required?r||(r=v.jsxs(u.Fragment,{children:[h," ","*"]})):h,notched:typeof k<"u"?k:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:b,inputComponent:x,multiline:C,ref:o,type:L},g,{classes:s({},P,{notchedOutline:null})}))});Ze.muiName="Input";const Uo=Ze;function _o(e){return A("MuiSelect",e)}const zo=D("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ae=zo;var Ve;const Ko=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qo=$("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${ae.select}`]:t.select},{[`&.${ae.select}`]:t[o.variant]},{[`&.${ae.error}`]:t.error},{[`&.${ae.multiple}`]:t.multiple}]}})(Qe,{[`&.${ae.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Vo=$("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ne(o.variant)}`],o.open&&t.iconOpen]}})(Ye),Ho=$("input",{shouldForwardProp:e=>bt(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function He(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Xo(e){return e==null||typeof e=="string"&&!e.trim()}const Go=e=>{const{classes:t,variant:o,disabled:n,multiple:a,open:i,error:l}=e,r={select:["select",o,n&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${ne(o)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return U(r,_o,t)},Jo=u.forwardRef(function(t,o){var n;const{"aria-describedby":a,"aria-label":i,autoFocus:l,autoWidth:r,children:c,className:p,defaultOpen:b,defaultValue:x,disabled:h,displayEmpty:C,error:k=!1,IconComponent:w,inputRef:L,labelId:g,MenuProps:P={},multiple:m,name:f,onBlur:y,onChange:S,onClose:I,onFocus:O,onOpen:W,open:_,readOnly:z,renderValue:H,SelectDisplayProps:j={},tabIndex:B,value:X,variant:Z="standard"}=t,K=N(t,Ko),[M,E]=ze({controlled:X,default:x,name:"Select"}),[G,tt]=ze({controlled:_,default:b,name:"Select"}),Oe=u.useRef(null),J=u.useRef(null),[ee,ot]=u.useState(null),{current:ge}=u.useRef(_!=null),[nt,Ne]=u.useState(),st=we(o,L),rt=u.useCallback(d=>{J.current=d,d&&ot(d)},[]),ie=ee==null?void 0:ee.parentNode;u.useImperativeHandle(st,()=>({focus:()=>{J.current.focus()},node:Oe.current,value:M}),[M]),u.useEffect(()=>{b&&G&&ee&&!ge&&(Ne(r?null:ie.clientWidth),J.current.focus())},[ee,r]),u.useEffect(()=>{l&&J.current.focus()},[l]),u.useEffect(()=>{if(!g)return;const d=Ie(J.current).getElementById(g);if(d){const R=()=>{getSelection().isCollapsed&&J.current.focus()};return d.addEventListener("click",R),()=>{d.removeEventListener("click",R)}}},[g]);const de=(d,R)=>{d?W&&W(R):I&&I(R),ge||(Ne(r?null:ie.clientWidth),tt(d))},at=d=>{d.button===0&&(d.preventDefault(),J.current.focus(),de(!0,d))},lt=d=>{de(!1,d)},Ee=u.Children.toArray(c),it=d=>{const R=Ee.find(F=>F.props.value===d.target.value);R!==void 0&&(E(R.props.value),S&&S(d,R))},dt=d=>R=>{let F;if(R.currentTarget.hasAttribute("tabindex")){if(m){F=Array.isArray(M)?M.slice():[];const oe=M.indexOf(d.props.value);oe===-1?F.push(d.props.value):F.splice(oe,1)}else F=d.props.value;if(d.props.onClick&&d.props.onClick(R),M!==F&&(E(F),S)){const oe=R.nativeEvent||R,Ae=new oe.constructor(oe.type,oe);Object.defineProperty(Ae,"target",{writable:!0,value:{value:F,name:f}}),S(Ae,d)}m||de(!1,R)}},ut=d=>{z||[" ","ArrowUp","ArrowDown","Enter"].indexOf(d.key)!==-1&&(d.preventDefault(),de(!0,d))},ue=ee!==null&&G,ct=d=>{!ue&&y&&(Object.defineProperty(d,"target",{writable:!0,value:{value:M,name:f}}),y(d))};delete K["aria-invalid"];let te,Be;const ce=[];let pe=!1;(Ct({value:M})||C)&&(H?te=H(M):pe=!0);const pt=Ee.map(d=>{if(!u.isValidElement(d))return null;let R;if(m){if(!Array.isArray(M))throw new Error(gt(2));R=M.some(F=>He(F,d.props.value)),R&&pe&&ce.push(d.props.children)}else R=He(M,d.props.value),R&&pe&&(Be=d.props.children);return u.cloneElement(d,{"aria-selected":R?"true":"false",onClick:dt(d),onKeyUp:F=>{F.key===" "&&F.preventDefault(),d.props.onKeyUp&&d.props.onKeyUp(F)},role:"option",selected:R,value:void 0,"data-value":d.props.value})});pe&&(m?ce.length===0?te=null:te=ce.reduce((d,R,F)=>(d.push(R),F{const{classes:t}=e;return t},Le={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>T(e)&&e!=="variant",slot:"Root"},tn=$(Gt,Le)(""),on=$(Uo,Le)(""),nn=$(Wt,Le)(""),et=u.forwardRef(function(t,o){const n=V({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:i,classes:l={},className:r,defaultOpen:c=!1,displayEmpty:p=!1,IconComponent:b=Lt,id:x,input:h,inputProps:C,label:k,labelId:w,MenuProps:L,multiple:g=!1,native:P=!1,onClose:m,onOpen:f,open:y,renderValue:S,SelectDisplayProps:I,variant:O="outlined"}=n,W=N(n,Yo),_=P?Lo:Qo,z=me(),H=be({props:n,muiFormControl:z,states:["variant","error"]}),j=H.variant||O,B=s({},n,{variant:j,classes:l}),X=en(B),Z=N(X,Zo),K=h||{standard:v.jsx(tn,{ownerState:B}),outlined:v.jsx(on,{label:k,ownerState:B}),filled:v.jsx(nn,{ownerState:B})}[j],M=we(o,K.ref);return v.jsx(u.Fragment,{children:u.cloneElement(K,s({inputComponent:_,inputProps:s({children:i,error:H.error,IconComponent:b,variant:j,type:void 0,multiple:g},P?{id:x}:{autoWidth:a,defaultOpen:c,displayEmpty:p,labelId:w,MenuProps:L,onClose:m,onOpen:f,open:y,renderValue:S,SelectDisplayProps:s({id:x},I)},C,{classes:C?ye(Z,C.classes):Z},h?h.props.inputProps:{})},g&&P&&j==="outlined"?{notched:!0}:{},{ref:M,className:Y(K.props.className,r,X.root)},!h&&{variant:j},W))})});et.muiName="Select";const un=et;export{Lt as A,Wt as F,dn as I,oo as L,Uo as O,un as S,St as a,Gt as b,Q as f,se as i,q as o,ze as u}; +import{r as u,aa as ft,_ as s,a as D,g as A,j as v,s as $,a7 as T,u as V,b as N,d2 as ye,e as U,d as Y,c as ne,aT as mt,cO as bt,d5 as gt}from"./index-b85f35cf.js";import{i as Re,c as Se,d as $e,e as Pe,h as Me,I as ke,u as me,f as be,j as vt,a as ht,k as xt,l as Ct}from"./Popover-28c1573e.js";import{y as It,t as we}from"./react-toastify.esm-ce67a4f9.js";import{c as yt,a as Ie,u as Te}from"./useSlotProps-b8a587b0.js";let Ue=0;function Rt(e){const[t,o]=u.useState(e),n=e||t;return u.useEffect(()=>{t==null&&(Ue+=1,o(`mui-${Ue}`))},[t]),n}const _e=ft["useId".toString()];function St(e){if(_e!==void 0){const t=_e();return e??t}return Rt(e)}function ze({controlled:e,default:t,name:o,state:n="value"}){const{current:a}=u.useRef(e!==void 0),[i,l]=u.useState(t),r=a?e:i,c=u.useCallback(p=>{a||l(p)},[]);return[r,c]}function $t(e){return A("MuiInput",e)}const Pt=s({},Re,D("MuiInput",["root","underline","input"])),se=Pt;function Mt(e){return A("MuiOutlinedInput",e)}const kt=s({},Re,D("MuiOutlinedInput",["root","notchedOutline","input"])),q=kt;function wt(e){return A("MuiFilledInput",e)}const Ft=s({},Re,D("MuiFilledInput",["root","underline","input"])),Q=Ft,Lt=yt(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ot=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Nt=e=>{const{classes:t,disableUnderline:o}=e,a=U({root:["root",!o&&"underline"],input:["input"]},wt,t);return s({},t,a)},Et=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...$e(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const n=e.palette.mode==="light",a=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return s({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Q.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Q.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Q.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Q.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Q.disabled}, .${Q.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Q.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&s({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Bt=$(Pe,{name:"MuiFilledInput",slot:"Input",overridesResolver:Me})(({theme:e,ownerState:t})=>s({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Xe=u.forwardRef(function(t,o){var n,a,i,l;const r=V({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:p,fullWidth:b=!1,inputComponent:x="input",multiline:h=!1,slotProps:C,slots:k={},type:w="text"}=r,L=N(r,Ot),g=s({},r,{fullWidth:b,inputComponent:x,multiline:h,type:w}),P=Nt(r),m={root:{ownerState:g},input:{ownerState:g}},f=C??p?ye(m,C??p):m,y=(n=(a=k.root)!=null?a:c.Root)!=null?n:Et,S=(i=(l=k.input)!=null?l:c.Input)!=null?i:Bt;return v.jsx(ke,s({slots:{root:y,input:S},componentsProps:f,fullWidth:b,inputComponent:x,multiline:h,ref:o,type:w},L,{classes:P}))});Xe.muiName="Input";const Wt=Xe;function jt(e){return A("MuiFormLabel",e)}const Dt=D("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),le=Dt,At=["children","className","color","component","disabled","error","filled","focused","required"],Tt=e=>{const{classes:t,color:o,focused:n,disabled:a,error:i,filled:l,required:r}=e,c={root:["root",`color${ne(o)}`,a&&"disabled",i&&"error",l&&"filled",n&&"focused",r&&"required"],asterisk:["asterisk",i&&"error"]};return U(c,jt,t)},Ut=$("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>s({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>s({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${le.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${le.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${le.error}`]:{color:(e.vars||e).palette.error.main}})),_t=$("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${le.error}`]:{color:(e.vars||e).palette.error.main}})),zt=u.forwardRef(function(t,o){const n=V({props:t,name:"MuiFormLabel"}),{children:a,className:i,component:l="label"}=n,r=N(n,At),c=me(),p=be({props:n,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),b=s({},n,{color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),x=Tt(b);return v.jsxs(Ut,s({as:l,ownerState:b,className:Y(x.root,i),ref:o},r,{children:[a,p.required&&v.jsxs(_t,{ownerState:b,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}))}),Kt=zt,qt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Vt=e=>{const{classes:t,disableUnderline:o}=e,a=U({root:["root",!o&&"underline"],input:["input"]},$t,t);return s({},t,a)},Ht=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...$e(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),s({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${se.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${se.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${se.disabled}, .${se.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${se.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Xt=$(Pe,{name:"MuiInput",slot:"Input",overridesResolver:Me})({}),Ge=u.forwardRef(function(t,o){var n,a,i,l;const r=V({props:t,name:"MuiInput"}),{disableUnderline:c,components:p={},componentsProps:b,fullWidth:x=!1,inputComponent:h="input",multiline:C=!1,slotProps:k,slots:w={},type:L="text"}=r,g=N(r,qt),P=Vt(r),f={root:{ownerState:{disableUnderline:c}}},y=k??b?ye(k??b,f):f,S=(n=(a=w.root)!=null?a:p.Root)!=null?n:Ht,I=(i=(l=w.input)!=null?l:p.Input)!=null?i:Xt;return v.jsx(ke,s({slots:{root:S,input:I},slotProps:y,fullWidth:x,inputComponent:h,multiline:C,ref:o,type:L},g,{classes:P}))});Ge.muiName="Input";const Gt=Ge;function Jt(e){return A("MuiInputLabel",e)}D("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Qt=["disableAnimation","margin","shrink","variant","className"],Yt=e=>{const{classes:t,formControl:o,size:n,shrink:a,disableAnimation:i,variant:l,required:r}=e,c={root:["root",o&&"formControl",!i&&"animated",a&&"shrink",n&&n!=="normal"&&`size${ne(n)}`,l],asterisk:[r&&"asterisk"]},p=U(c,Jt,t);return s({},t,p)},Zt=$(Kt,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${le.asterisk}`]:t.asterisk},t.root,o.formControl&&t.formControl,o.size==="small"&&t.sizeSmall,o.shrink&&t.shrink,!o.disableAnimation&&t.animated,o.focused&&t.focused,t[o.variant]]}})(({theme:e,ownerState:t})=>s({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&s({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&s({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&s({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),eo=u.forwardRef(function(t,o){const n=V({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,shrink:i,className:l}=n,r=N(n,Qt),c=me();let p=i;typeof p>"u"&&c&&(p=c.filled||c.focused||c.adornedStart);const b=be({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),x=s({},n,{disableAnimation:a,formControl:c,shrink:p,size:b.size,variant:b.variant,required:b.required,focused:b.focused}),h=Yt(x);return v.jsx(Zt,s({"data-shrink":p,ownerState:x,ref:o,className:Y(h.root,l)},r,{classes:h}))}),dn=eo,to=u.createContext({}),oo=to;function no(e){return A("MuiList",e)}D("MuiList",["root","padding","dense","subheader"]);const so=["children","className","component","dense","disablePadding","subheader"],ro=e=>{const{classes:t,disablePadding:o,dense:n,subheader:a}=e;return U({root:["root",!o&&"padding",n&&"dense",a&&"subheader"]},no,t)},ao=$("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})(({ownerState:e})=>s({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),lo=u.forwardRef(function(t,o){const n=V({props:t,name:"MuiList"}),{children:a,className:i,component:l="ul",dense:r=!1,disablePadding:c=!1,subheader:p}=n,b=N(n,so),x=u.useMemo(()=>({dense:r}),[r]),h=s({},n,{component:l,dense:r,disablePadding:c}),C=ro(h);return v.jsx(oo.Provider,{value:x,children:v.jsxs(ao,s({as:l,className:Y(C.root,i),ref:o,ownerState:h},b,{children:[p,a]}))})}),io=lo,uo=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ce(e,t,o){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:o?null:e.firstChild}function Ke(e,t,o){return e===t?o?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:o?null:e.lastChild}function Je(e,t){if(t===void 0)return!0;let o=e.innerText;return o===void 0&&(o=e.textContent),o=o.trim().toLowerCase(),o.length===0?!1:t.repeating?o[0]===t.keys[0]:o.indexOf(t.keys.join(""))===0}function re(e,t,o,n,a,i){let l=!1,r=a(e,t,t?o:!1);for(;r;){if(r===e.firstChild){if(l)return!1;l=!0}const c=n?!1:r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||!Je(r,i)||c)r=a(e,r,o);else return r.focus(),!0}return!1}const co=u.forwardRef(function(t,o){const{actions:n,autoFocus:a=!1,autoFocusItem:i=!1,children:l,className:r,disabledItemsFocusable:c=!1,disableListWrap:p=!1,onKeyDown:b,variant:x="selectedMenu"}=t,h=N(t,uo),C=u.useRef(null),k=u.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});It(()=>{a&&C.current.focus()},[a]),u.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(m,f)=>{const y=!C.current.style.width;if(m.clientHeight{const f=C.current,y=m.key,S=Ie(f).activeElement;if(y==="ArrowDown")m.preventDefault(),re(f,S,p,c,Ce);else if(y==="ArrowUp")m.preventDefault(),re(f,S,p,c,Ke);else if(y==="Home")m.preventDefault(),re(f,null,p,c,Ce);else if(y==="End")m.preventDefault(),re(f,null,p,c,Ke);else if(y.length===1){const I=k.current,O=y.toLowerCase(),W=performance.now();I.keys.length>0&&(W-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&O!==I.keys[0]&&(I.repeating=!1)),I.lastTime=W,I.keys.push(O);const _=S&&!I.repeating&&Je(S,I);I.previousKeyMatched&&(_||re(f,S,!1,c,Ce,I))?m.preventDefault():I.previousKeyMatched=!1}b&&b(m)},L=we(C,o);let g=-1;u.Children.forEach(l,(m,f)=>{if(!u.isValidElement(m)){g===f&&(g+=1,g>=l.length&&(g=-1));return}m.props.disabled||(x==="selectedMenu"&&m.props.selected||g===-1)&&(g=f),g===f&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(g+=1,g>=l.length&&(g=-1))});const P=u.Children.map(l,(m,f)=>{if(f===g){const y={};return i&&(y.autoFocus=!0),m.props.tabIndex===void 0&&x==="selectedMenu"&&(y.tabIndex=0),u.cloneElement(m,y)}return m});return v.jsx(io,s({role:"menu",ref:L,className:r,onKeyDown:w,tabIndex:a?0:-1},h,{children:P}))}),po=co;function fo(e){return A("MuiMenu",e)}D("MuiMenu",["root","paper","list"]);const mo=["onEntering"],bo=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],go={vertical:"top",horizontal:"right"},vo={vertical:"top",horizontal:"left"},ho=e=>{const{classes:t}=e;return U({root:["root"],paper:["paper"],list:["list"]},fo,t)},xo=$(ht,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Co=$(xt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Io=$(po,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),yo=u.forwardRef(function(t,o){var n,a;const i=V({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:r,className:c,disableAutoFocusItem:p=!1,MenuListProps:b={},onClose:x,open:h,PaperProps:C={},PopoverClasses:k,transitionDuration:w="auto",TransitionProps:{onEntering:L}={},variant:g="selectedMenu",slots:P={},slotProps:m={}}=i,f=N(i.TransitionProps,mo),y=N(i,bo),S=mt(),I=S.direction==="rtl",O=s({},i,{autoFocus:l,disableAutoFocusItem:p,MenuListProps:b,onEntering:L,PaperProps:C,transitionDuration:w,TransitionProps:f,variant:g}),W=ho(O),_=l&&!p&&h,z=u.useRef(null),H=(E,G)=>{z.current&&z.current.adjustStyleForScrollbar(E,S),L&&L(E,G)},j=E=>{E.key==="Tab"&&(E.preventDefault(),x&&x(E,"tabKeyDown"))};let B=-1;u.Children.map(r,(E,G)=>{u.isValidElement(E)&&(E.props.disabled||(g==="selectedMenu"&&E.props.selected||B===-1)&&(B=G))});const X=(n=P.paper)!=null?n:Co,Z=(a=m.paper)!=null?a:C,K=Te({elementType:P.root,externalSlotProps:m.root,ownerState:O,className:[W.root,c]}),M=Te({elementType:X,externalSlotProps:Z,ownerState:O,className:W.paper});return v.jsx(xo,s({onClose:x,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?go:vo,slots:{paper:X,root:P.root},slotProps:{root:K,paper:M},open:h,ref:o,transitionDuration:w,TransitionProps:s({onEntering:H},f),ownerState:O},y,{classes:k,children:v.jsx(Io,s({onKeyDown:j,actions:z,autoFocus:l&&(B===-1||p),autoFocusItem:_,variant:g},b,{className:Y(W.list,b.className),children:r}))}))}),Ro=yo;function So(e){return A("MuiNativeSelect",e)}const $o=D("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Fe=$o,Po=["className","disabled","error","IconComponent","inputRef","variant"],Mo=e=>{const{classes:t,variant:o,disabled:n,multiple:a,open:i,error:l}=e,r={select:["select",o,n&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${ne(o)}`,i&&"iconOpen",n&&"disabled"]};return U(r,So,t)},Qe=({ownerState:e,theme:t})=>s({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":s({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Fe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ko=$("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:T,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Fe.multiple}`]:t.multiple}]}})(Qe),Ye=({ownerState:e,theme:t})=>s({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Fe.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),wo=$("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ne(o.variant)}`],o.open&&t.iconOpen]}})(Ye),Fo=u.forwardRef(function(t,o){const{className:n,disabled:a,error:i,IconComponent:l,inputRef:r,variant:c="standard"}=t,p=N(t,Po),b=s({},t,{disabled:a,variant:c,error:i}),x=Mo(b);return v.jsxs(u.Fragment,{children:[v.jsx(ko,s({ownerState:b,className:Y(x.select,n),disabled:a,ref:r||o},p)),t.multiple?null:v.jsx(wo,{as:l,ownerState:b,className:x.icon})]})}),Lo=Fo;var qe;const Oo=["children","classes","className","label","notched"],No=$("fieldset",{shouldForwardProp:T})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Eo=$("legend",{shouldForwardProp:T})(({ownerState:e,theme:t})=>s({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&s({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Bo(e){const{className:t,label:o,notched:n}=e,a=N(e,Oo),i=o!=null&&o!=="",l=s({},e,{notched:n,withLabel:i});return v.jsx(No,s({"aria-hidden":!0,className:t,ownerState:l},a,{children:v.jsx(Eo,{ownerState:l,children:i?v.jsx("span",{children:o}):qe||(qe=v.jsx("span",{className:"notranslate",children:"​"}))})}))}const Wo=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jo=e=>{const{classes:t}=e,n=U({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Mt,t);return s({},t,n)},Do=$(Se,{shouldForwardProp:e=>T(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:$e})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return s({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${q.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${q.focused} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${q.error} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${q.disabled} .${q.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&s({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Ao=$(Bo,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),To=$(Pe,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Me})(({theme:e,ownerState:t})=>s({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Ze=u.forwardRef(function(t,o){var n,a,i,l,r;const c=V({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:b=!1,inputComponent:x="input",label:h,multiline:C=!1,notched:k,slots:w={},type:L="text"}=c,g=N(c,Wo),P=jo(c),m=me(),f=be({props:c,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y=s({},c,{color:f.color||"primary",disabled:f.disabled,error:f.error,focused:f.focused,formControl:m,fullWidth:b,hiddenLabel:f.hiddenLabel,multiline:C,size:f.size,type:L}),S=(n=(a=w.root)!=null?a:p.Root)!=null?n:Do,I=(i=(l=w.input)!=null?l:p.Input)!=null?i:To;return v.jsx(ke,s({slots:{root:S,input:I},renderSuffix:O=>v.jsx(Ao,{ownerState:y,className:P.notchedOutline,label:h!=null&&h!==""&&f.required?r||(r=v.jsxs(u.Fragment,{children:[h," ","*"]})):h,notched:typeof k<"u"?k:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:b,inputComponent:x,multiline:C,ref:o,type:L},g,{classes:s({},P,{notchedOutline:null})}))});Ze.muiName="Input";const Uo=Ze;function _o(e){return A("MuiSelect",e)}const zo=D("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ae=zo;var Ve;const Ko=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],qo=$("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${ae.select}`]:t.select},{[`&.${ae.select}`]:t[o.variant]},{[`&.${ae.error}`]:t.error},{[`&.${ae.multiple}`]:t.multiple}]}})(Qe,{[`&.${ae.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Vo=$("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${ne(o.variant)}`],o.open&&t.iconOpen]}})(Ye),Ho=$("input",{shouldForwardProp:e=>bt(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function He(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Xo(e){return e==null||typeof e=="string"&&!e.trim()}const Go=e=>{const{classes:t,variant:o,disabled:n,multiple:a,open:i,error:l}=e,r={select:["select",o,n&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${ne(o)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return U(r,_o,t)},Jo=u.forwardRef(function(t,o){var n;const{"aria-describedby":a,"aria-label":i,autoFocus:l,autoWidth:r,children:c,className:p,defaultOpen:b,defaultValue:x,disabled:h,displayEmpty:C,error:k=!1,IconComponent:w,inputRef:L,labelId:g,MenuProps:P={},multiple:m,name:f,onBlur:y,onChange:S,onClose:I,onFocus:O,onOpen:W,open:_,readOnly:z,renderValue:H,SelectDisplayProps:j={},tabIndex:B,value:X,variant:Z="standard"}=t,K=N(t,Ko),[M,E]=ze({controlled:X,default:x,name:"Select"}),[G,tt]=ze({controlled:_,default:b,name:"Select"}),Oe=u.useRef(null),J=u.useRef(null),[ee,ot]=u.useState(null),{current:ge}=u.useRef(_!=null),[nt,Ne]=u.useState(),st=we(o,L),rt=u.useCallback(d=>{J.current=d,d&&ot(d)},[]),ie=ee==null?void 0:ee.parentNode;u.useImperativeHandle(st,()=>({focus:()=>{J.current.focus()},node:Oe.current,value:M}),[M]),u.useEffect(()=>{b&&G&&ee&&!ge&&(Ne(r?null:ie.clientWidth),J.current.focus())},[ee,r]),u.useEffect(()=>{l&&J.current.focus()},[l]),u.useEffect(()=>{if(!g)return;const d=Ie(J.current).getElementById(g);if(d){const R=()=>{getSelection().isCollapsed&&J.current.focus()};return d.addEventListener("click",R),()=>{d.removeEventListener("click",R)}}},[g]);const de=(d,R)=>{d?W&&W(R):I&&I(R),ge||(Ne(r?null:ie.clientWidth),tt(d))},at=d=>{d.button===0&&(d.preventDefault(),J.current.focus(),de(!0,d))},lt=d=>{de(!1,d)},Ee=u.Children.toArray(c),it=d=>{const R=Ee.find(F=>F.props.value===d.target.value);R!==void 0&&(E(R.props.value),S&&S(d,R))},dt=d=>R=>{let F;if(R.currentTarget.hasAttribute("tabindex")){if(m){F=Array.isArray(M)?M.slice():[];const oe=M.indexOf(d.props.value);oe===-1?F.push(d.props.value):F.splice(oe,1)}else F=d.props.value;if(d.props.onClick&&d.props.onClick(R),M!==F&&(E(F),S)){const oe=R.nativeEvent||R,Ae=new oe.constructor(oe.type,oe);Object.defineProperty(Ae,"target",{writable:!0,value:{value:F,name:f}}),S(Ae,d)}m||de(!1,R)}},ut=d=>{z||[" ","ArrowUp","ArrowDown","Enter"].indexOf(d.key)!==-1&&(d.preventDefault(),de(!0,d))},ue=ee!==null&&G,ct=d=>{!ue&&y&&(Object.defineProperty(d,"target",{writable:!0,value:{value:M,name:f}}),y(d))};delete K["aria-invalid"];let te,Be;const ce=[];let pe=!1;(Ct({value:M})||C)&&(H?te=H(M):pe=!0);const pt=Ee.map(d=>{if(!u.isValidElement(d))return null;let R;if(m){if(!Array.isArray(M))throw new Error(gt(2));R=M.some(F=>He(F,d.props.value)),R&&pe&&ce.push(d.props.children)}else R=He(M,d.props.value),R&&pe&&(Be=d.props.children);return u.cloneElement(d,{"aria-selected":R?"true":"false",onClick:dt(d),onKeyUp:F=>{F.key===" "&&F.preventDefault(),d.props.onKeyUp&&d.props.onKeyUp(F)},role:"option",selected:R,value:void 0,"data-value":d.props.value})});pe&&(m?ce.length===0?te=null:te=ce.reduce((d,R,F)=>(d.push(R),F{const{classes:t}=e;return t},Le={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>T(e)&&e!=="variant",slot:"Root"},tn=$(Gt,Le)(""),on=$(Uo,Le)(""),nn=$(Wt,Le)(""),et=u.forwardRef(function(t,o){const n=V({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:i,classes:l={},className:r,defaultOpen:c=!1,displayEmpty:p=!1,IconComponent:b=Lt,id:x,input:h,inputProps:C,label:k,labelId:w,MenuProps:L,multiple:g=!1,native:P=!1,onClose:m,onOpen:f,open:y,renderValue:S,SelectDisplayProps:I,variant:O="outlined"}=n,W=N(n,Yo),_=P?Lo:Qo,z=me(),H=be({props:n,muiFormControl:z,states:["variant","error"]}),j=H.variant||O,B=s({},n,{variant:j,classes:l}),X=en(B),Z=N(X,Zo),K=h||{standard:v.jsx(tn,{ownerState:B}),outlined:v.jsx(on,{label:k,ownerState:B}),filled:v.jsx(nn,{ownerState:B})}[j],M=we(o,K.ref);return v.jsx(u.Fragment,{children:u.cloneElement(K,s({inputComponent:_,inputProps:s({children:i,error:H.error,IconComponent:b,variant:j,type:void 0,multiple:g},P?{id:x}:{autoWidth:a,defaultOpen:c,displayEmpty:p,labelId:w,MenuProps:L,onClose:m,onOpen:f,open:y,renderValue:S,SelectDisplayProps:s({id:x},I)},C,{classes:C?ye(Z,C.classes):Z},h?h.props.inputProps:{})},g&&P&&j==="outlined"?{notched:!0}:{},{ref:M,className:Y(K.props.className,r,X.root)},!h&&{variant:j},W))})});et.muiName="Select";const un=et;export{Lt as A,Wt as F,dn as I,oo as L,Uo as O,un as S,St as a,Gt as b,Q as f,se as i,q as o,ze as u}; diff --git a/build/assets/SettingsIcon-52b7c188.js b/build/assets/SettingsIcon-cd476525.js similarity index 97% rename from build/assets/SettingsIcon-52b7c188.js rename to build/assets/SettingsIcon-cd476525.js index 4c7d9ac57..7a7e03f44 100644 --- a/build/assets/SettingsIcon-52b7c188.js +++ b/build/assets/SettingsIcon-cd476525.js @@ -1 +1 @@ -import{j as C}from"./index-c522bd40.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_29)",children:C.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"})})]});export{r as S}; +import{j as C}from"./index-b85f35cf.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_29)",children:C.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"})})]});export{r as S}; diff --git a/build/assets/Skeleton-e77d8e84.js b/build/assets/Skeleton-bd55acf5.js similarity index 97% rename from build/assets/Skeleton-e77d8e84.js rename to build/assets/Skeleton-bd55acf5.js index 435e79466..dae359a50 100644 --- a/build/assets/Skeleton-e77d8e84.js +++ b/build/assets/Skeleton-bd55acf5.js @@ -1,4 +1,4 @@ -import{g as x,a as y,a4 as b,s as R,_ as o,a5 as _,cX as u,r as S,u as $,b as U,j as M,d as X,e as j}from"./index-c522bd40.js";function A(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 j({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},B,a)},K=b(p||(p=r` +import{g as x,a as y,a4 as b,s as R,_ as o,a5 as _,cX as u,r as S,u as $,b as U,j as M,d as X,e as j}from"./index-b85f35cf.js";function A(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 j({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-01ae3e26.js b/build/assets/SoundCloud-792f37c3.js similarity index 95% rename from build/assets/SoundCloud-01ae3e26.js rename to build/assets/SoundCloud-792f37c3.js index 6fb37c14c..85ce81e4b 100644 --- a/build/assets/SoundCloud-01ae3e26.js +++ b/build/assets/SoundCloud-792f37c3.js @@ -1 +1 @@ -import{ac as P,r as g}from"./index-c522bd40.js";import{u as b,p as v}from"./ChevronRightIcon-83b85265.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; +import{ac as P,r as g}from"./index-b85f35cf.js";import{u as b,p as v}from"./ChevronRightIcon-27a1f67e.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/SourcesTableIcon-d2644acb.js b/build/assets/SourcesTableIcon-9e0ca82c.js similarity index 99% rename from build/assets/SourcesTableIcon-d2644acb.js rename to build/assets/SourcesTableIcon-9e0ca82c.js index 6546ff057..b1d69989f 100644 --- a/build/assets/SourcesTableIcon-d2644acb.js +++ b/build/assets/SourcesTableIcon-9e0ca82c.js @@ -1 +1 @@ -import{j as C}from"./index-c522bd40.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_25)",children:C.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),t=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_27)",children:C.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"})})]}),i=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_26)",children:C.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"})})]});export{t as A,i as S,r as a}; +import{j as C}from"./index-b85f35cf.js";const r=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_25)",children:C.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),t=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_27)",children:C.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"})})]}),i=s=>C.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:C.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),C.jsx("g",{mask:"url(#mask0_1259_26)",children:C.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"})})]});export{t as A,i as S,r as a}; diff --git a/build/assets/Stack-f811e4d7.js b/build/assets/Stack-b0e83988.js similarity index 97% rename from build/assets/Stack-f811e4d7.js rename to build/assets/Stack-b0e83988.js index 69baf4b5e..69e7530b9 100644 --- a/build/assets/Stack-f811e4d7.js +++ b/build/assets/Stack-b0e83988.js @@ -1 +1 @@ -import{b as k,_ as l,cY as T,cZ as V,c_ as A,c$ as F,d0 as B,b0 as v,a$ as m,d1 as D,d2 as E,d3 as M,r as y,j as O,d4 as x,e as G,g as N,s as U,u as L}from"./index-c522bd40.js";const I=["sx"],W=e=>{var s,r;const t={systemProps:{},otherProps:{}},a=(s=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?s:T;return Object.keys(e).forEach(o=>{a[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Y(e){const{sx:s}=e,r=k(e,I),{systemProps:t,otherProps:a}=W(r);let o;return Array.isArray(s)?o=[t,...s]:typeof s=="function"?o=(...u)=>{const i=s(...u);return V(i)?l({},t,i):t}:o=l({},t,s),l({},a,{sx:o})}function P(e){var s,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(s=0;ss.root});function Q(e){return B({props:e,name:"MuiStack",defaultTheme:J})}function X(e,s){const r=y.Children.toArray(e).filter(Boolean);return r.reduce((t,a,o)=>(t.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ee=({ownerState:e,theme:s})=>{let r=l({display:"flex",flexDirection:"column"},v({theme:s},m({values:e.direction,breakpoints:s.breakpoints.values}),t=>({flexDirection:t})));if(e.spacing){const t=D(s),a=Object.keys(s.breakpoints.values).reduce((n,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(n[c]=!0),n),{}),o=m({values:e.direction,base:a}),u=m({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((n,c,d)=>{if(!o[n]){const p=c>0?o[d[c-1]]:"column";o[n]=p}}),r=E(r,v({theme:s},u,(n,c)=>e.useFlexGap?{gap:x(t,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${w(c?o[c]:e.direction)}`]:x(t,n)}}))}return r=M(s.breakpoints,r),r};function se(e={}){const{createStyledComponent:s=K,useThemeProps:r=Q,componentName:t="MuiStack"}=e,a=()=>G({root:["root"]},n=>N(t,n),{}),o=s(ee);return y.forwardRef(function(n,c){const d=r(n),f=Y(d),{component:p="div",direction:S="column",spacing:b=0,divider:g,children:h,className:j,useFlexGap:C=!1}=f,$=k(f,H),_={direction:S,spacing:b,useFlexGap:C},R=a();return O.jsx(o,l({as:p,ownerState:_,ref:c,className:Z(R.root,j)},$,{children:g?X(h,g):h}))})}const te=se({createStyledComponent:U("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root}),useThemeProps:e=>L({props:e,name:"MuiStack"})}),re=te;export{re as S,Y as e}; +import{b as k,_ as l,cY as T,cZ as V,c_ as A,c$ as F,d0 as B,b0 as v,a$ as m,d1 as D,d2 as E,d3 as M,r as y,j as O,d4 as x,e as G,g as N,s as U,u as L}from"./index-b85f35cf.js";const I=["sx"],W=e=>{var s,r;const t={systemProps:{},otherProps:{}},a=(s=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?s:T;return Object.keys(e).forEach(o=>{a[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Y(e){const{sx:s}=e,r=k(e,I),{systemProps:t,otherProps:a}=W(r);let o;return Array.isArray(s)?o=[t,...s]:typeof s=="function"?o=(...u)=>{const i=s(...u);return V(i)?l({},t,i):t}:o=l({},t,s),l({},a,{sx:o})}function P(e){var s,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(s=0;ss.root});function Q(e){return B({props:e,name:"MuiStack",defaultTheme:J})}function X(e,s){const r=y.Children.toArray(e).filter(Boolean);return r.reduce((t,a,o)=>(t.push(a),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ee=({ownerState:e,theme:s})=>{let r=l({display:"flex",flexDirection:"column"},v({theme:s},m({values:e.direction,breakpoints:s.breakpoints.values}),t=>({flexDirection:t})));if(e.spacing){const t=D(s),a=Object.keys(s.breakpoints.values).reduce((n,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(n[c]=!0),n),{}),o=m({values:e.direction,base:a}),u=m({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((n,c,d)=>{if(!o[n]){const p=c>0?o[d[c-1]]:"column";o[n]=p}}),r=E(r,v({theme:s},u,(n,c)=>e.useFlexGap?{gap:x(t,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${w(c?o[c]:e.direction)}`]:x(t,n)}}))}return r=M(s.breakpoints,r),r};function se(e={}){const{createStyledComponent:s=K,useThemeProps:r=Q,componentName:t="MuiStack"}=e,a=()=>G({root:["root"]},n=>N(t,n),{}),o=s(ee);return y.forwardRef(function(n,c){const d=r(n),f=Y(d),{component:p="div",direction:S="column",spacing:b=0,divider:g,children:h,className:j,useFlexGap:C=!1}=f,$=k(f,H),_={direction:S,spacing:b,useFlexGap:C},R=a();return O.jsx(o,l({as:p,ownerState:_,ref:c,className:Z(R.root,j)},$,{children:g?X(h,g):h}))})}const te=se({createStyledComponent:U("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root}),useThemeProps:e=>L({props:e,name:"MuiStack"})}),re=te;export{re as S,Y as e}; diff --git a/build/assets/Streamable-f359ad79.js b/build/assets/Streamable-d68969b3.js similarity index 95% rename from build/assets/Streamable-f359ad79.js rename to build/assets/Streamable-d68969b3.js index dfda88398..e3af1889a 100644 --- a/build/assets/Streamable-f359ad79.js +++ b/build/assets/Streamable-d68969b3.js @@ -1 +1 @@ -import{ac as m,r as f}from"./index-c522bd40.js";import{u as _,p as b}from"./ChevronRightIcon-83b85265.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{ac as m,r as f}from"./index-b85f35cf.js";import{u as _,p as b}from"./ChevronRightIcon-27a1f67e.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/build/assets/Twitch-ff7ec024.js b/build/assets/Twitch-b2e38a75.js similarity index 95% rename from build/assets/Twitch-ff7ec024.js rename to build/assets/Twitch-b2e38a75.js index c0c868828..4c19b89cf 100644 --- a/build/assets/Twitch-ff7ec024.js +++ b/build/assets/Twitch-b2e38a75.js @@ -1 +1 @@ -import{ac as w,r as D}from"./index-c522bd40.js";import{u as C,p as N}from"./ChevronRightIcon-83b85265.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{ac as w,r as D}from"./index-b85f35cf.js";import{u as C,p as N}from"./ChevronRightIcon-27a1f67e.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Vidyard-6f943902.js b/build/assets/Vidyard-b661dc63.js similarity index 95% rename from build/assets/Vidyard-6f943902.js rename to build/assets/Vidyard-b661dc63.js index e81451602..e8c902698 100644 --- a/build/assets/Vidyard-6f943902.js +++ b/build/assets/Vidyard-b661dc63.js @@ -1 +1 @@ -import{ac as g,r as v}from"./index-c522bd40.js";import{u as b,p as O}from"./ChevronRightIcon-83b85265.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{ac as g,r as v}from"./index-b85f35cf.js";import{u as b,p as O}from"./ChevronRightIcon-27a1f67e.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-0924a8be.js b/build/assets/Vimeo-fafc1c36.js similarity index 96% rename from build/assets/Vimeo-0924a8be.js rename to build/assets/Vimeo-fafc1c36.js index e571ecf54..94d76ef9c 100644 --- a/build/assets/Vimeo-0924a8be.js +++ b/build/assets/Vimeo-fafc1c36.js @@ -1 +1 @@ -import{ac as d,r as f}from"./index-c522bd40.js";import{u as m,p as _}from"./ChevronRightIcon-83b85265.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{ac as d,r as f}from"./index-b85f35cf.js";import{u as m,p as _}from"./ChevronRightIcon-27a1f67e.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-bad63915.js b/build/assets/Wistia-634d4968.js similarity index 96% rename from build/assets/Wistia-bad63915.js rename to build/assets/Wistia-634d4968.js index 46aacd3be..0ed11c2f0 100644 --- a/build/assets/Wistia-bad63915.js +++ b/build/assets/Wistia-634d4968.js @@ -1 +1 @@ -import{ac as m,r as g}from"./index-c522bd40.js";import{u as v,p as w}from"./ChevronRightIcon-83b85265.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{ac as m,r as g}from"./index-b85f35cf.js";import{u as v,p as w}from"./ChevronRightIcon-27a1f67e.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-1faa93f6.js b/build/assets/YouTube-b06f3c81.js similarity index 97% rename from build/assets/YouTube-1faa93f6.js rename to build/assets/YouTube-b06f3c81.js index 229acb5e9..5d01334b0 100644 --- a/build/assets/YouTube-1faa93f6.js +++ b/build/assets/YouTube-b06f3c81.js @@ -1 +1 @@ -import{ac as U,r as I}from"./index-c522bd40.js";import{u as L,p as Y}from"./ChevronRightIcon-83b85265.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{ac as U,r as I}from"./index-b85f35cf.js";import{u as L,p as Y}from"./ChevronRightIcon-27a1f67e.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/generateCategoricalChart-876bdce4.js b/build/assets/generateCategoricalChart-a6175423.js similarity index 99% rename from build/assets/generateCategoricalChart-876bdce4.js rename to build/assets/generateCategoricalChart-a6175423.js index d566193df..75ce9910e 100644 --- a/build/assets/generateCategoricalChart-876bdce4.js +++ b/build/assets/generateCategoricalChart-a6175423.js @@ -1,4 +1,4 @@ -import{r as W,aT as Np,b as Dp,j as io,_ as Pr,i as Xf,x as Bp,Z as Lp,co as $n,cp as gr,cq as Ge,cr as Kf,cs as yu,ac as fe,ct as mr,L as V,G as $,cu as Rp,cv as Hf,cw as Fp,cx as Yf,cy as Wp,cz as Up,cA as zp,cB as En,cC as vu,cD as Vf,cE as Zf,cF as qp,cG as Gp,cH as Xp,cI as Xi,cJ as Kp,cK as Hp,ab as K,cL as Yp,cM as Vp,cN as Zp}from"./index-c522bd40.js";import{b as Qp,r as Jp,g as vc}from"./Popover-243f389d.js";import{t as ey,k as zt,w as ty}from"./react-toastify.esm-1e5f1e5f.js";import{o as Qf,d as ry}from"./useSlotProps-96b7890f.js";import{i as ny}from"./InfoIcon-6417fafc.js";function rC(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const iy=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ay(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),a=Qf(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const s=a.getComputedStyle(t);o=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}let u=0,c=0;if(o&&o!=="none"&&typeof o=="string"){const s=o.split("(")[1].split(")")[0].split(",");u=parseInt(s[4],10),c=parseInt(s[5],10)}return e==="left"?i?`translateX(${i.right+u-n.left}px)`:`translateX(${a.innerWidth+u-n.left}px)`:e==="right"?i?`translateX(-${n.right-i.left-u}px)`:`translateX(-${n.left+n.width-u}px)`:e==="up"?i?`translateY(${i.bottom+c-n.top}px)`:`translateY(${a.innerHeight+c-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-c}px)`:`translateY(-${n.top+n.height-c}px)`}function oy(e){return typeof e=="function"?e():e}function Rn(e,t,r){const n=oy(r),i=ay(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const uy=W.forwardRef(function(t,r){const n=Np(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:u=!0,children:c,container:s,direction:f="down",easing:l=i,in:h,onEnter:d,onEntered:p,onEntering:y,onExit:v,onExited:b,onExiting:x,style:w,timeout:O=a,TransitionComponent:g=Qp}=t,m=Dp(t,iy),S=W.useRef(null),A=ey(c.ref,S,r),P=j=>B=>{j&&(B===void 0?j(S.current):j(S.current,B))},T=P((j,B)=>{Rn(f,j,s),Jp(j),d&&d(j,B)}),_=P((j,B)=>{const q=vc({timeout:O,style:w,easing:l},{mode:"enter"});j.style.webkitTransition=n.transitions.create("-webkit-transform",Pr({},q)),j.style.transition=n.transitions.create("transform",Pr({},q)),j.style.webkitTransform="none",j.style.transform="none",y&&y(j,B)}),E=P(p),I=P(x),k=P(j=>{const B=vc({timeout:O,style:w,easing:l},{mode:"exit"});j.style.webkitTransition=n.transitions.create("-webkit-transform",B),j.style.transition=n.transitions.create("transform",B),Rn(f,j,s),v&&v(j)}),N=P(j=>{j.style.webkitTransition="",j.style.transition="",b&&b(j)}),R=j=>{o&&o(S.current,j)},D=W.useCallback(()=>{S.current&&Rn(f,S.current,s)},[f,s]);return W.useEffect(()=>{if(h||f==="down"||f==="right")return;const j=ry(()=>{S.current&&Rn(f,S.current,s)}),B=Qf(S.current);return B.addEventListener("resize",j),()=>{j.clear(),B.removeEventListener("resize",j)}},[f,h,s]),W.useEffect(()=>{h||D()},[h,D]),io.jsx(g,Pr({nodeRef:S,onEnter:T,onEntered:E,onEntering:_,onExit:k,onExited:N,onExiting:I,addEndListener:R,appear:u,in:h,timeout:O},m,{children:(j,B)=>W.cloneElement(c,Pr({ref:A,style:Pr({visibility:j==="exited"&&!h?"hidden":void 0},w,c.props.style)},B))}))}),nC=uy,iC=({children:e})=>{const{fetchData:t}=Xf(n=>n),[r]=Bp(n=>[n.setBudget]);return W.useEffect(()=>{t(r)},[t,r]),io.jsx(io.Fragment,{children:e})},aC=()=>{const e=Xf(t=>t.data);return ny(e!==null,"This hook is meant to be used inside a DataRetriever component"),e};var Jn=globalThis&&globalThis.__assign||function(){return Jn=Object.assign||function(e){for(var t,r=1,n=arguments.length;rB=>{j&&(B===void 0?j(S.current):j(S.current,B))},T=P((j,B)=>{Rn(f,j,s),Jp(j),d&&d(j,B)}),_=P((j,B)=>{const q=vc({timeout:O,style:w,easing:l},{mode:"enter"});j.style.webkitTransition=n.transitions.create("-webkit-transform",Pr({},q)),j.style.transition=n.transitions.create("transform",Pr({},q)),j.style.webkitTransform="none",j.style.transform="none",y&&y(j,B)}),E=P(p),I=P(x),k=P(j=>{const B=vc({timeout:O,style:w,easing:l},{mode:"exit"});j.style.webkitTransition=n.transitions.create("-webkit-transform",B),j.style.transition=n.transitions.create("transform",B),Rn(f,j,s),v&&v(j)}),N=P(j=>{j.style.webkitTransition="",j.style.transition="",b&&b(j)}),R=j=>{o&&o(S.current,j)},D=W.useCallback(()=>{S.current&&Rn(f,S.current,s)},[f,s]);return W.useEffect(()=>{if(h||f==="down"||f==="right")return;const j=ry(()=>{S.current&&Rn(f,S.current,s)}),B=Qf(S.current);return B.addEventListener("resize",j),()=>{j.clear(),B.removeEventListener("resize",j)}},[f,h,s]),W.useEffect(()=>{h||D()},[h,D]),io.jsx(g,Pr({nodeRef:S,onEnter:T,onEntered:E,onEntering:_,onExit:k,onExited:N,onExiting:I,addEndListener:R,appear:u,in:h,timeout:O},m,{children:(j,B)=>W.cloneElement(c,Pr({ref:A,style:Pr({visibility:j==="exited"&&!h?"hidden":void 0},w,c.props.style)},B))}))}),nC=uy,iC=({children:e})=>{const{fetchData:t}=Xf(n=>n),[r]=Bp(n=>[n.setBudget]);return W.useEffect(()=>{t(r)},[t,r]),io.jsx(io.Fragment,{children:e})},aC=()=>{const e=Xf(t=>t.data);return ny(e!==null,"This hook is meant to be used inside a DataRetriever component"),e};var Jn=globalThis&&globalThis.__assign||function(){return Jn=Object.assign||function(e){for(var t,r=1,n=arguments.length;re===Object(e)&&!Array.isArray(e)&&typeof e!="function";function W(e,t){const r=K(o=>o.gl),s=Ie(me,Ge(e)?Object.values(e):e);if(i.useLayoutEffect(()=>{t==null||t(s)},[t]),i.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(r.initTexture)},[r,s]),Ge(e)){const o=Object.keys(e),l={};return o.forEach(a=>Object.assign(l,{[a]:s[o.indexOf(a)]})),l}else return s}W.preload=e=>Ie.preload(me,e);W.clear=e=>Ie.clear(me,e);ee.func.isRequired,ee.arrayOf(ee.oneOfType([ee.element,ee.func])).isRequired;const Ne=new ae,Ve=new ae,le=[],te=new it;class Gr extends kt{constructor(){super(),this.color=new ot("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,r){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;te.geometry=s.geometry;const o=s.matrixWorld,l=s.userData.instances.indexOf(this.instanceKey);if(!(l===-1||l>s.count)){s.getMatrixAt(l,Ne),Ve.multiplyMatrices(o,Ne),te.matrixWorld=Ve,s.material instanceof Ft?te.material.side=s.material.side:te.material.side=s.material[0].side,te.raycast(t,le);for(let a=0,c=le.length;a{i.useMemo(()=>dr({PositionMesh:Gr}),[]);const o=i.useRef(),{subscribe:l,getParent:a}=i.useContext(e||mt);return i.useLayoutEffect(()=>l(o),[]),i.createElement("positionMesh",Me({instance:a(),instanceKey:o,ref:ft([s,o])},r),t)}),Vr=i.forwardRef(({children:e,range:t,limit:r=1e3,frames:s=1/0,...o},l)=>{const[{context:a,instance:c}]=i.useState(()=>{const x=i.createContext(null);return{context:x,instance:i.forwardRef((C,M)=>i.createElement(xt,Me({context:x},C,{ref:M})))}}),u=i.useRef(null),[d,g]=i.useState([]),[[h,f]]=i.useState(()=>{const x=new Float32Array(r*16);for(let C=0;C1))]});i.useEffect(()=>{u.current.instanceMatrix.needsUpdate=!0});let p=0,m=0;z(()=>{if(s===1/0||p({getParent:()=>u,subscribe:x=>(g(C=>[...C,x]),()=>g(C=>C.filter(M=>M.current!==x.current)))}),[]);return i.createElement("instancedMesh",Me({userData:{instances:d},matrixAutoUpdate:!1,ref:ft([l,u]),args:[null,null,0],raycast:()=>null},o),i.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:ie}),i.createElement("instancedBufferAttribute",{attach:"instanceColor",count:f.length/3,array:f,itemSize:3,usage:ie}),typeof e=="function"?i.createElement(a.Provider,{value:w},e(c)):i.createElement(mt.Provider,{value:w},e))});function L(e,t){if(e==null)return{};var r={},s=Object.keys(e),o,l;for(l=0;l=0)&&(r[o]=e[o]);return r}var Br=["color"],Ct=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Br);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M0 1.5C0 1.22386 0.223858 1 0.5 1H2.5C2.77614 1 3 1.22386 3 1.5C3 1.77614 2.77614 2 2.5 2H0.5C0.223858 2 0 1.77614 0 1.5ZM4 1.5C4 1.22386 4.22386 1 4.5 1H14.5C14.7761 1 15 1.22386 15 1.5C15 1.77614 14.7761 2 14.5 2H4.5C4.22386 2 4 1.77614 4 1.5ZM4 4.5C4 4.22386 4.22386 4 4.5 4H11.5C11.7761 4 12 4.22386 12 4.5C12 4.77614 11.7761 5 11.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM0 7.5C0 7.22386 0.223858 7 0.5 7H2.5C2.77614 7 3 7.22386 3 7.5C3 7.77614 2.77614 8 2.5 8H0.5C0.223858 8 0 7.77614 0 7.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H4.5C4.22386 11 4 10.7761 4 10.5ZM0 13.5C0 13.2239 0.223858 13 0.5 13H2.5C2.77614 13 3 13.2239 3 13.5C3 13.7761 2.77614 14 2.5 14H0.5C0.223858 14 0 13.7761 0 13.5ZM4 13.5C4 13.2239 4.22386 13 4.5 13H14.5C14.7761 13 15 13.2239 15 13.5C15 13.7761 14.7761 14 14.5 14H4.5C4.22386 14 4 13.7761 4 13.5Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Wr=["color"],qr=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Wr);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.5 1C11.7761 1 12 1.22386 12 1.5V13.5C12 13.7761 11.7761 14 11.5 14C11.2239 14 11 13.7761 11 13.5V1.5C11 1.22386 11.2239 1 11.5 1ZM9.5 3C9.77614 3 10 3.22386 10 3.5V13.5C10 13.7761 9.77614 14 9.5 14C9.22386 14 9 13.7761 9 13.5V3.5C9 3.22386 9.22386 3 9.5 3ZM13.5 3C13.7761 3 14 3.22386 14 3.5V13.5C14 13.7761 13.7761 14 13.5 14C13.2239 14 13 13.7761 13 13.5V3.5C13 3.22386 13.2239 3 13.5 3ZM5.5 4C5.77614 4 6 4.22386 6 4.5V13.5C6 13.7761 5.77614 14 5.5 14C5.22386 14 5 13.7761 5 13.5V4.5C5 4.22386 5.22386 4 5.5 4ZM1.5 5C1.77614 5 2 5.22386 2 5.5V13.5C2 13.7761 1.77614 14 1.5 14C1.22386 14 1 13.7761 1 13.5V5.5C1 5.22386 1.22386 5 1.5 5ZM7.5 5C7.77614 5 8 5.22386 8 5.5V13.5C8 13.7761 7.77614 14 7.5 14C7.22386 14 7 13.7761 7 13.5V5.5C7 5.22386 7.22386 5 7.5 5ZM3.5 7C3.77614 7 4 7.22386 4 7.5V13.5C4 13.7761 3.77614 14 3.5 14C3.22386 14 3 13.7761 3 13.5V7.5C3 7.22386 3.22386 7 3.5 7Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Dr=["color"],Xr=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Dr);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M2 5H13C13.5523 5 14 5.44772 14 6V9C14 9.55228 13.5523 10 13 10H2C1.44772 10 1 9.55228 1 9V6C1 5.44772 1.44772 5 2 5ZM0 6C0 4.89543 0.895431 4 2 4H13C14.1046 4 15 4.89543 15 6V9C15 10.1046 14.1046 11 13 11H2C0.89543 11 0 10.1046 0 9V6ZM4.5 6.75C4.08579 6.75 3.75 7.08579 3.75 7.5C3.75 7.91421 4.08579 8.25 4.5 8.25C4.91421 8.25 5.25 7.91421 5.25 7.5C5.25 7.08579 4.91421 6.75 4.5 6.75ZM6.75 7.5C6.75 7.08579 7.08579 6.75 7.5 6.75C7.91421 6.75 8.25 7.08579 8.25 7.5C8.25 7.91421 7.91421 8.25 7.5 8.25C7.08579 8.25 6.75 7.91421 6.75 7.5ZM10.5 6.75C10.0858 6.75 9.75 7.08579 9.75 7.5C9.75 7.91421 10.0858 8.25 10.5 8.25C10.9142 8.25 11.25 7.91421 11.25 7.5C11.25 7.08579 10.9142 6.75 10.5 6.75Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Yr=["color"],Qr=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Yr);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.28856 0.796908C7.42258 0.734364 7.57742 0.734364 7.71144 0.796908L13.7114 3.59691C13.8875 3.67906 14 3.85574 14 4.05V10.95C14 11.1443 13.8875 11.3209 13.7114 11.4031L7.71144 14.2031C7.57742 14.2656 7.42258 14.2656 7.28856 14.2031L1.28856 11.4031C1.11252 11.3209 1 11.1443 1 10.95V4.05C1 3.85574 1.11252 3.67906 1.28856 3.59691L7.28856 0.796908ZM2 4.80578L7 6.93078V12.9649L2 10.6316V4.80578ZM8 12.9649L13 10.6316V4.80578L8 6.93078V12.9649ZM7.5 6.05672L12.2719 4.02866L7.5 1.80176L2.72809 4.02866L7.5 6.05672Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Kr=["color"],Jr=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Kr);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.5 9.125C8.39746 9.125 9.125 8.39746 9.125 7.5C9.125 6.60254 8.39746 5.875 7.5 5.875C6.60254 5.875 5.875 6.60254 5.875 7.5C5.875 8.39746 6.60254 9.125 7.5 9.125ZM7.5 10.125C8.94975 10.125 10.125 8.94975 10.125 7.5C10.125 6.05025 8.94975 4.875 7.5 4.875C6.05025 4.875 4.875 6.05025 4.875 7.5C4.875 8.94975 6.05025 10.125 7.5 10.125Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),en=["color"],tn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,en);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.49999 3.09998C7.27907 3.09998 7.09999 3.27906 7.09999 3.49998C7.09999 3.72089 7.27907 3.89998 7.49999 3.89998H14.5C14.7209 3.89998 14.9 3.72089 14.9 3.49998C14.9 3.27906 14.7209 3.09998 14.5 3.09998H7.49999ZM7.49998 5.1C7.27907 5.1 7.09998 5.27908 7.09998 5.5C7.09998 5.72091 7.27907 5.9 7.49998 5.9H14.5C14.7209 5.9 14.9 5.72091 14.9 5.5C14.9 5.27908 14.7209 5.1 14.5 5.1H7.49998ZM7.1 7.5C7.1 7.27908 7.27909 7.1 7.5 7.1H14.5C14.7209 7.1 14.9 7.27908 14.9 7.5C14.9 7.72091 14.7209 7.9 14.5 7.9H7.5C7.27909 7.9 7.1 7.72091 7.1 7.5ZM7.49998 9.1C7.27907 9.1 7.09998 9.27908 7.09998 9.5C7.09998 9.72091 7.27907 9.9 7.49998 9.9H14.5C14.7209 9.9 14.9 9.72091 14.9 9.5C14.9 9.27908 14.7209 9.1 14.5 9.1H7.49998ZM7.09998 11.5C7.09998 11.2791 7.27907 11.1 7.49998 11.1H14.5C14.7209 11.1 14.9 11.2791 14.9 11.5C14.9 11.7209 14.7209 11.9 14.5 11.9H7.49998C7.27907 11.9 7.09998 11.7209 7.09998 11.5ZM2.5 9.25003L5 6.00003H0L2.5 9.25003Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),rn=["color"],nn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,rn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),sn=["color"],on=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,sn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),an=["color"],Le=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,an);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),cn=["color"],ln=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,cn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),un=["color"],dn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,un);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.75432 0.819537C7.59742 0.726821 7.4025 0.726821 7.24559 0.819537L1.74559 4.06954C1.59336 4.15949 1.49996 4.32317 1.49996 4.5C1.49996 4.67683 1.59336 4.84051 1.74559 4.93046L7.24559 8.18046C7.4025 8.27318 7.59742 8.27318 7.75432 8.18046L13.2543 4.93046C13.4066 4.84051 13.5 4.67683 13.5 4.5C13.5 4.32317 13.4066 4.15949 13.2543 4.06954L7.75432 0.819537ZM7.49996 7.16923L2.9828 4.5L7.49996 1.83077L12.0171 4.5L7.49996 7.16923ZM1.5695 7.49564C1.70998 7.2579 2.01659 7.17906 2.25432 7.31954L7.49996 10.4192L12.7456 7.31954C12.9833 7.17906 13.2899 7.2579 13.4304 7.49564C13.5709 7.73337 13.4921 8.03998 13.2543 8.18046L7.75432 11.4305C7.59742 11.5232 7.4025 11.5232 7.24559 11.4305L1.74559 8.18046C1.50786 8.03998 1.42901 7.73337 1.5695 7.49564ZM1.56949 10.4956C1.70998 10.2579 2.01658 10.1791 2.25432 10.3195L7.49996 13.4192L12.7456 10.3195C12.9833 10.1791 13.2899 10.2579 13.4304 10.4956C13.5709 10.7334 13.4921 11.04 13.2543 11.1805L7.75432 14.4305C7.59742 14.5232 7.4025 14.5232 7.24559 14.4305L1.74559 11.1805C1.50785 11.04 1.42901 10.7334 1.56949 10.4956Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),fn=["color"],pn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,fn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M8.69667 0.0403541C8.90859 0.131038 9.03106 0.354857 8.99316 0.582235L8.0902 6.00001H12.5C12.6893 6.00001 12.8625 6.10701 12.9472 6.27641C13.0319 6.4458 13.0136 6.6485 12.8999 6.80001L6.89997 14.8C6.76167 14.9844 6.51521 15.0503 6.30328 14.9597C6.09135 14.869 5.96888 14.6452 6.00678 14.4178L6.90974 9H2.49999C2.31061 9 2.13748 8.893 2.05278 8.72361C1.96809 8.55422 1.98636 8.35151 2.09999 8.2L8.09997 0.200038C8.23828 0.0156255 8.48474 -0.0503301 8.69667 0.0403541ZM3.49999 8.00001H7.49997C7.64695 8.00001 7.78648 8.06467 7.88148 8.17682C7.97648 8.28896 8.01733 8.43723 7.99317 8.5822L7.33027 12.5596L11.5 7.00001H7.49997C7.353 7.00001 7.21347 6.93534 7.11846 6.8232C7.02346 6.71105 6.98261 6.56279 7.00678 6.41781L7.66968 2.44042L3.49999 8.00001Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),hn=["color"],gn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,hn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M1.49988 2.00012C1.77602 2.00012 1.99988 1.77626 1.99988 1.50012C1.99988 1.22398 1.77602 1.00012 1.49988 1.00012C1.22374 1.00012 0.999878 1.22398 0.999878 1.50012C0.999878 1.77626 1.22374 2.00012 1.49988 2.00012ZM4.49988 2.00012C4.77602 2.00012 4.99988 1.77626 4.99988 1.50012C4.99988 1.22398 4.77602 1.00012 4.49988 1.00012C4.22374 1.00012 3.99988 1.22398 3.99988 1.50012C3.99988 1.77626 4.22374 2.00012 4.49988 2.00012ZM7.99988 1.50012C7.99988 1.77626 7.77602 2.00012 7.49988 2.00012C7.22374 2.00012 6.99988 1.77626 6.99988 1.50012C6.99988 1.22398 7.22374 1.00012 7.49988 1.00012C7.77602 1.00012 7.99988 1.22398 7.99988 1.50012ZM10.4999 2.00012C10.776 2.00012 10.9999 1.77626 10.9999 1.50012C10.9999 1.22398 10.776 1.00012 10.4999 1.00012C10.2237 1.00012 9.99988 1.22398 9.99988 1.50012C9.99988 1.77626 10.2237 2.00012 10.4999 2.00012ZM13.9999 1.50012C13.9999 1.77626 13.776 2.00012 13.4999 2.00012C13.2237 2.00012 12.9999 1.77626 12.9999 1.50012C12.9999 1.22398 13.2237 1.00012 13.4999 1.00012C13.776 1.00012 13.9999 1.22398 13.9999 1.50012ZM1.49988 14.0001C1.77602 14.0001 1.99988 13.7763 1.99988 13.5001C1.99988 13.224 1.77602 13.0001 1.49988 13.0001C1.22374 13.0001 0.999878 13.224 0.999878 13.5001C0.999878 13.7763 1.22374 14.0001 1.49988 14.0001ZM1.99988 10.5001C1.99988 10.7763 1.77602 11.0001 1.49988 11.0001C1.22374 11.0001 0.999878 10.7763 0.999878 10.5001C0.999878 10.224 1.22374 10.0001 1.49988 10.0001C1.77602 10.0001 1.99988 10.224 1.99988 10.5001ZM1.49988 8.00012C1.77602 8.00012 1.99988 7.77626 1.99988 7.50012C1.99988 7.22398 1.77602 7.00012 1.49988 7.00012C1.22374 7.00012 0.999878 7.22398 0.999878 7.50012C0.999878 7.77626 1.22374 8.00012 1.49988 8.00012ZM1.99988 4.50012C1.99988 4.77626 1.77602 5.00012 1.49988 5.00012C1.22374 5.00012 0.999878 4.77626 0.999878 4.50012C0.999878 4.22398 1.22374 4.00012 1.49988 4.00012C1.77602 4.00012 1.99988 4.22398 1.99988 4.50012ZM13.4999 11.0001C13.776 11.0001 13.9999 10.7763 13.9999 10.5001C13.9999 10.224 13.776 10.0001 13.4999 10.0001C13.2237 10.0001 12.9999 10.224 12.9999 10.5001C12.9999 10.7763 13.2237 11.0001 13.4999 11.0001ZM13.9999 7.50012C13.9999 7.77626 13.776 8.00012 13.4999 8.00012C13.2237 8.00012 12.9999 7.77626 12.9999 7.50012C12.9999 7.22398 13.2237 7.00012 13.4999 7.00012C13.776 7.00012 13.9999 7.22398 13.9999 7.50012ZM13.4999 5.00012C13.776 5.00012 13.9999 4.77626 13.9999 4.50012C13.9999 4.22398 13.776 4.00012 13.4999 4.00012C13.2237 4.00012 12.9999 4.22398 12.9999 4.50012C12.9999 4.77626 13.2237 5.00012 13.4999 5.00012ZM4.99988 13.5001C4.99988 13.7763 4.77602 14.0001 4.49988 14.0001C4.22374 14.0001 3.99988 13.7763 3.99988 13.5001C3.99988 13.224 4.22374 13.0001 4.49988 13.0001C4.77602 13.0001 4.99988 13.224 4.99988 13.5001ZM7.49988 14.0001C7.77602 14.0001 7.99988 13.7763 7.99988 13.5001C7.99988 13.224 7.77602 13.0001 7.49988 13.0001C7.22374 13.0001 6.99988 13.224 6.99988 13.5001C6.99988 13.7763 7.22374 14.0001 7.49988 14.0001ZM10.9999 13.5001C10.9999 13.7763 10.776 14.0001 10.4999 14.0001C10.2237 14.0001 9.99988 13.7763 9.99988 13.5001C9.99988 13.224 10.2237 13.0001 10.4999 13.0001C10.776 13.0001 10.9999 13.224 10.9999 13.5001ZM13.4999 14.0001C13.776 14.0001 13.9999 13.7763 13.9999 13.5001C13.9999 13.224 13.776 13.0001 13.4999 13.0001C13.2237 13.0001 12.9999 13.224 12.9999 13.5001C12.9999 13.7763 13.2237 14.0001 13.4999 14.0001ZM3.99988 5.00012C3.99988 4.44784 4.44759 4.00012 4.99988 4.00012H9.99988C10.5522 4.00012 10.9999 4.44784 10.9999 5.00012V10.0001C10.9999 10.5524 10.5522 11.0001 9.99988 11.0001H4.99988C4.44759 11.0001 3.99988 10.5524 3.99988 10.0001V5.00012ZM4.99988 5.00012H9.99988V10.0001H4.99988V5.00012Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),mn=["color"],xn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,mn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Cn=["color"],vn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Cn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),yn=["color"],wn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,yn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.85357 3.85355L7.65355 3.05353C8.2981 2.40901 9.42858 1.96172 10.552 1.80125C11.1056 1.72217 11.6291 1.71725 12.0564 1.78124C12.4987 1.84748 12.7698 1.97696 12.8965 2.10357C13.0231 2.23018 13.1526 2.50125 13.2188 2.94357C13.2828 3.37086 13.2779 3.89439 13.1988 4.44801C13.0383 5.57139 12.591 6.70188 11.9464 7.34645L7.49999 11.7929L6.35354 10.6465C6.15827 10.4512 5.84169 10.4512 5.64643 10.6465C5.45117 10.8417 5.45117 11.1583 5.64643 11.3536L7.14644 12.8536C7.34171 13.0488 7.65829 13.0488 7.85355 12.8536L8.40073 12.3064L9.57124 14.2572C9.65046 14.3893 9.78608 14.4774 9.9389 14.4963C10.0917 14.5151 10.2447 14.4624 10.3535 14.3536L12.3535 12.3536C12.4648 12.2423 12.5172 12.0851 12.495 11.9293L12.0303 8.67679L12.6536 8.05355C13.509 7.19808 14.0117 5.82855 14.1887 4.58943C14.2784 3.9618 14.2891 3.33847 14.2078 2.79546C14.1287 2.26748 13.9519 1.74482 13.6035 1.39645C13.2552 1.04809 12.7325 0.871332 12.2045 0.792264C11.6615 0.710945 11.0382 0.721644 10.4105 0.8113C9.17143 0.988306 7.80189 1.491 6.94644 2.34642L6.32322 2.96968L3.07071 2.50504C2.91492 2.48278 2.75773 2.53517 2.64645 2.64646L0.646451 4.64645C0.537579 4.75533 0.484938 4.90829 0.50375 5.0611C0.522563 5.21391 0.61073 5.34954 0.742757 5.42876L2.69364 6.59928L2.14646 7.14645C2.0527 7.24022 2.00002 7.3674 2.00002 7.50001C2.00002 7.63261 2.0527 7.75979 2.14646 7.85356L3.64647 9.35356C3.84173 9.54883 4.15831 9.54883 4.35357 9.35356C4.54884 9.1583 4.54884 8.84172 4.35357 8.64646L3.20712 7.50001L3.85357 6.85356L6.85357 3.85355ZM10.0993 13.1936L9.12959 11.5775L11.1464 9.56067L11.4697 11.8232L10.0993 13.1936ZM3.42251 5.87041L5.43935 3.85356L3.17678 3.53034L1.80638 4.90074L3.42251 5.87041ZM2.35356 10.3535C2.54882 10.1583 2.54882 9.8417 2.35356 9.64644C2.1583 9.45118 1.84171 9.45118 1.64645 9.64644L0.646451 10.6464C0.451188 10.8417 0.451188 11.1583 0.646451 11.3535C0.841713 11.5488 1.1583 11.5488 1.35356 11.3535L2.35356 10.3535ZM3.85358 11.8536C4.04884 11.6583 4.04885 11.3417 3.85359 11.1465C3.65833 10.9512 3.34175 10.9512 3.14648 11.1465L1.14645 13.1464C0.95119 13.3417 0.951187 13.6583 1.14645 13.8535C1.34171 14.0488 1.65829 14.0488 1.85355 13.8536L3.85358 11.8536ZM5.35356 13.3535C5.54882 13.1583 5.54882 12.8417 5.35356 12.6464C5.1583 12.4512 4.84171 12.4512 4.64645 12.6464L3.64645 13.6464C3.45119 13.8417 3.45119 14.1583 3.64645 14.3535C3.84171 14.5488 4.1583 14.5488 4.35356 14.3535L5.35356 13.3535ZM9.49997 6.74881C10.1897 6.74881 10.7488 6.1897 10.7488 5.5C10.7488 4.8103 10.1897 4.25118 9.49997 4.25118C8.81026 4.25118 8.25115 4.8103 8.25115 5.5C8.25115 6.1897 8.81026 6.74881 9.49997 6.74881Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),bn=["color"],jn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,bn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M0.5 4C0.223858 4 0 4.22386 0 4.5V10.5C0 10.7761 0.223858 11 0.5 11H14.5C14.7761 11 15 10.7761 15 10.5V4.5C15 4.22386 14.7761 4 14.5 4H0.5ZM1 10V5H2.075V7.5C2.075 7.73472 2.26528 7.925 2.5 7.925C2.73472 7.925 2.925 7.73472 2.925 7.5V5H4.075V6.5C4.075 6.73472 4.26528 6.925 4.5 6.925C4.73472 6.925 4.925 6.73472 4.925 6.5V5H6.075V6.5C6.075 6.73472 6.26528 6.925 6.5 6.925C6.73472 6.925 6.925 6.73472 6.925 6.5V5H8.075V7.5C8.075 7.73472 8.26528 7.925 8.5 7.925C8.73472 7.925 8.925 7.73472 8.925 7.5V5H10.075V6.5C10.075 6.73472 10.2653 6.925 10.5 6.925C10.7347 6.925 10.925 6.73472 10.925 6.5V5H12.075V6.5C12.075 6.73472 12.2653 6.925 12.5 6.925C12.7347 6.925 12.925 6.73472 12.925 6.5V5H14V10H1Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Mn=["color"],Sn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Mn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Ln=["color"],vt=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Ln);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:s}))}),En=["color"],yt=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,En);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:s}))}),Rn=["color"],wt=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Rn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.49998 1L6.92321 2.00307L1.17498 12L0.599976 13H1.7535H13.2464H14.4L13.825 12L8.07674 2.00307L7.49998 1ZM7.49998 3.00613L2.3285 12H12.6714L7.49998 3.00613Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))});function In(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pn(e){var t=In(e,"string");return typeof t=="symbol"?t:String(t)}function An(e,t,r){return t=Pn(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,s)}return r}function Ee(e){for(var t=1;t(e==null?void 0:e.reduce((t,r)=>t+r,0))/e.length;class Tn{constructor(t={}){this.names=[""],this.finished=[],this.gl=void 0,this.extension=void 0,this.query=void 0,this.paused=!1,this.overClock=!1,this.queryHasResult=!1,this.queryCreated=!1,this.isWebGL2=!0,this.memAccums=[],this.gpuAccums=[],this.activeAccums=[],this.logsAccums={mem:[],gpu:[],cpu:[],fps:[],fpsFixed:[]},this.fpsChart=[],this.gpuChart=[],this.cpuChart=[],this.memChart=[],this.paramLogger=()=>{},this.glFinish=()=>{},this.chartLogger=()=>{},this.chartLen=60,this.maxMemory=1500,this.chartHz=10,this.startCpuProfiling=!1,this.lastCalculateFixed=0,this.chartFrame=0,this.gpuTimeProcess=0,this.chartTime=0,this.activeQueries=0,this.circularId=0,this.detected=0,this.frameId=0,this.rafId=0,this.idleCbId=0,this.checkQueryId=0,this.uuid=void 0,this.currentCpu=0,this.currentMem=0,this.paramFrame=0,this.paramTime=0,this.now=()=>{},this.t0=0,window.GLPerf=window.GLPerf||{},Object.assign(this,t),this.fpsChart=new Array(this.chartLen).fill(0),this.gpuChart=new Array(this.chartLen).fill(0),this.cpuChart=new Array(this.chartLen).fill(0),this.memChart=new Array(this.chartLen).fill(0),this.now=()=>window.performance&&window.performance.now?window.performance.now():Date.now(),this.initGpu(),this.is120hz()}initGpu(){this.uuid=at.generateUUID(),this.gl&&(this.isWebGL2=!0,this.extension||(this.extension=this.gl.getExtension("EXT_disjoint_timer_query_webgl2")),this.extension===null&&(this.isWebGL2=!1))}is120hz(){let t=0;const r=s=>{++t<20?this.rafId=window.requestAnimationFrame(r):(this.detected=Math.ceil(1e3*t/(s-this.t0)/70),window.cancelAnimationFrame(this.rafId)),this.t0||(this.t0=s)};this.rafId=window.requestAnimationFrame(r)}addUI(t){this.names.indexOf(t)===-1&&(this.names.push(t),this.gpuAccums.push(0),this.activeAccums.push(!1))}nextFps(t){const r=16.666666666666668,s=r-t.timeRemaining(),o=r*k.fpsLimit/10/s;o<0||(k.value=o,k.isOverLimit<25?k.isOverLimit++:b.setState({overclockingFps:!0}))}nextFrame(t){this.frameId++;const r=t||this.now();let s=r-this.paramTime,o=0;if(this.frameId<=1)this.paramFrame=this.frameId,this.paramTime=r;else if(r>=this.paramTime){this.maxMemory=window.performance.memory?window.performance.memory.jsHeapSizeLimit/1048576:0;const l=this.frameId-this.paramFrame,a=l*1e3/s,c=b.getState().overclockingFps?k.value:a;if(o=this.isWebGL2?this.gpuAccums[0]:this.gpuAccums[0]/s,this.isWebGL2?this.gpuAccums[0]=0:Promise.all(this.finished).then(()=>{this.gpuAccums[0]=0,this.finished=[]}),this.currentMem=Math.round(window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize/1048576:0),window.performance&&this.startCpuProfiling){window.performance.mark("cpu-finished");const u=performance.measure("cpu-duration","cpu-started","cpu-finished");this.currentCpu=u.duration,this.logsAccums.cpu.push(this.currentCpu),this.startCpuProfiling=!1}this.logsAccums.mem.push(this.currentMem),this.logsAccums.fpsFixed.push(a),this.logsAccums.fps.push(c),this.logsAccums.gpu.push(o),this.overClock&&typeof window.requestIdleCallback<"u"&&(k.isOverLimit>0&&c>a?k.isOverLimit--:b.getState().overclockingFps&&b.setState({overclockingFps:!1})),r>=this.paramTime+180&&(this.paramLogger({cpu:re(this.logsAccums.cpu),gpu:re(this.logsAccums.gpu),mem:re(this.logsAccums.mem),fps:re(this.logsAccums.fps),duration:Math.round(s),maxMemory:this.maxMemory,frameCount:l}),this.logsAccums.mem=[],this.logsAccums.fps=[],this.logsAccums.gpu=[],this.logsAccums.cpu=[],this.paramFrame=this.frameId,this.paramTime=r),this.overClock&&r-this.lastCalculateFixed>=2*1e3&&(this.lastCalculateFixed=t,k.fpsLimit=Math.round(re(this.logsAccums.fpsFixed)/10)*100,b.setState({fpsLimit:k.fpsLimit/10}),this.logsAccums.fpsFixed=[],this.paramFrame=this.frameId,this.paramTime=r)}if(!this.detected||!this.chartFrame)this.chartFrame=this.frameId,this.chartTime=r,this.circularId=0;else{const l=r-this.chartTime;let a=this.chartHz*l/1e3;for(;--a>0&&this.detected;){const u=(this.frameId-this.chartFrame)/l*1e3,d=b.getState().overclockingFps?k.value:u;this.fpsChart[this.circularId%this.chartLen]=d;const g=1e3/this.currentMem,h=this.currentCpu,f=(this.isWebGL2?this.gpuAccums[1]*2:Math.round(this.gpuAccums[1]/s*100))+4;f>0&&(this.gpuChart[this.circularId%this.chartLen]=f),h>0&&(this.cpuChart[this.circularId%this.chartLen]=h),g>0&&(this.memChart[this.circularId%this.chartLen]=g);for(let p=0;p0&&(o||this.activeAccums.forEach((u,d)=>{this.gpuAccums[d]=c}))}}(s||!this.query)&&(this.queryCreated=!0,this.query=t.createQuery(),t.beginQuery(r.TIME_ELAPSED_EXT,this.query))}}endGpu(){const t=this.extension,r=this.gl;this.isWebGL2&&this.queryCreated&&r.getQuery(t.TIME_ELAPSED_EXT,r.CURRENT_QUERY)&&r.endQuery(t.TIME_ELAPSED_EXT)}begin(t){this.startGpu(),this.updateAccums(t)}end(t){this.endGpu(),this.updateAccums(t)}updateAccums(t){let r=this.names.indexOf(t);r===-1&&(r=this.names.length,this.addUI(t));const s=this.now();this.activeAccums[r]=!this.activeAccums[r],this.t0=s}}const _n=e=>{e.forEach((t,r)=>{const{meshes:s}=t;if(!s)return;let o={total:0,type:"Triangle",data:[]};Object.keys(s).forEach(l=>{const a=s[l],{geometry:c,material:u}=a;let d=c.index;const g=c.attributes.position;if(!g)return;let h=1;u.wireframe===!0&&(h=0);const f=d!==null?d.count:g.count,p=c.drawRange.start*h,m=c.drawRange.count*h,w=p,x=Math.min(f,p+m)-1;let C=1;const M=a.count||1;let S="Triangle",I=0;a.isMesh?u.wireframe===!0?(S="Line",C=C/2):(S="Triangle",C=C/3):a.isLine?(S="Line",a.isLineSegments?C=C/2:a.isLineLoop?C=C:C=C-1):a.isPoints?(S="Point",C=C):a.isSprite&&(S="Triangle",C=C/3);const E=Math.round(Math.max(0,x-w+1)*(C*M));E>I&&(I=E,o.type=S),o.total+=E,o.data.push({drawCount:E,type:S}),a.userData.drawCount={type:S,count:E}}),t.drawCounts=o})},zn=B.prototype.updateMatrixWorld,Hn=B.prototype.updateWorldMatrix,Qe=B.prototype.updateMatrix;let Q={value:0},$={value:0};const On=e=>{let t=""+e;return t=t.match("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"),t!==null},Ke=(e,t)=>{e.defines||(e.defines={}),e.defines&&!e.defines.muiPerf&&(e.defines=Object.assign(e.defines||{},{muiPerf:e.uuid}));const r=e.uuid;return t[r]||(t[r]={meshes:{},material:e},e.needsUpdate=!0),e.needsUpdate=!1,r},kn=e=>e==="muiPerf",b=Ut(e=>({log:null,paused:!1,triggerProgramsUpdate:0,customData:0,fpsLimit:60,overclockingFps:!1,chart:{data:{fps:[],cpu:[],gpu:[],mem:[]},circularId:0},gl:void 0,objectWithMaterials:null,scene:void 0,programs:new Map,sceneLength:void 0,tab:"infos"})),bt=({trackCPU:e,overClock:t,chart:r,deepAnalyze:s,matrixUpdate:o})=>{const{gl:l,scene:a}=K();b.setState({gl:l,scene:a});const c=i.useMemo(()=>{const u=new Tn({trackGPU:!0,overClock:t,chartLen:r?r.length:120,chartHz:r?r.hz:60,gl:l.getContext(),chartLogger:h=>{b.setState({chart:h})},paramLogger:h=>{b.setState({log:{maxMemory:h.maxMemory,gpu:h.gpu,cpu:h.cpu,mem:h.mem,fps:h.fps,totalTime:h.duration,frameCount:h.frameCount}})}}),d=new Map,g=new Map;return Object.defineProperty(Ue.prototype,"onBeforeRender",{get(){return(...h)=>{var f;u&&u.begin("profiler"),(f=d.get(this))===null||f===void 0||f(...h)}},set(h){d.set(this,h)},configurable:!0}),Object.defineProperty(Ue.prototype,"onAfterRender",{get(){return(...h)=>{var f;u&&u.end("profiler"),(f=g.get(this))===null||f===void 0||f(...h)}},set(h){g.set(this,h)},configurable:!0}),u},[]);return i.useEffect(()=>{c&&(c.overClock=t||!1,t===!1&&(b.setState({overclockingFps:!1}),k.value=0,k.isOverLimit=0),c.chartHz=(r==null?void 0:r.hz)||60,c.chartLen=(r==null?void 0:r.length)||120)},[t,c,r==null?void 0:r.length,r==null?void 0:r.hz]),i.useEffect(()=>{o&&(B.prototype.updateMatrixWorld=function(){(this.matrixWorldNeedsUpdate||arguments[0])&&Q.value++,zn.apply(this,arguments)},B.prototype.updateWorldMatrix=function(){Q.value++,Hn.apply(this,arguments)},B.prototype.updateMatrix=function(){$.value++,Qe.apply(this,arguments)}),l.info.autoReset=!1;let u=null,d=null;if(l.info)return u=fr(function(){b.getState().paused&&b.setState({paused:!1}),window.performance&&(window.performance.mark("cpu-started"),c.startCpuProfiling=!0),$.value-=1,Q.value=0,$.value=0,l.info&&l.info.reset()}),d=pr(function(){if(c&&!c.paused&&(c.nextFrame(window.performance.now()),t&&typeof window.requestIdleCallback<"u"&&(c.idleCbId=requestIdleCallback(c.nextFps))),s){var h,f;const p={},m=new Map;a.traverse(function(x){if((x instanceof it||x instanceof Gt)&&x.material){let C=x.material.uuid;Array.isArray(x.material)&&x.material.length>1?C=Ke(x.material[1],p):C=Ke(x.material,p),p[C].meshes[x.uuid]=x}}),l==null||(h=l.info)===null||h===void 0||(f=h.programs)===null||f===void 0||f.forEach(w=>{const x=w.cacheKey.split(","),C=x[x.findIndex(kn)+1];if(On(C)&&p[C]){const{material:M,meshes:S}=p[C];m.set(C,{program:w,material:M,meshes:S,drawCounts:{total:0,type:"triangle",data:[]},expand:!1,visible:!0})}}),m.size!==b.getState().programs.size&&(_n(m),b.setState({programs:m,triggerProgramsUpdate:b.getState().triggerProgramsUpdate++}))}}),()=>{c&&(typeof window.cancelIdleCallback<"u"&&window.cancelIdleCallback(c.idleCbId),window.cancelAnimationFrame(c.rafId),window.cancelAnimationFrame(c.checkQueryId)),o&&(B.prototype.updateMatrixWorld=Qe),u(),d()}},[c,l,e,r,o]),i.useEffect(()=>{const u=hr(function(){return c&&(c.paused=!0,$.value=0,Q.value=0,b.setState({paused:!0,log:{maxMemory:0,gpu:0,mem:0,cpu:0,fps:0,totalTime:0,frameCount:0}})),!1});return()=>{u()}},[]),null},Fn=R("div",{position:"fixed",top:0,right:0,zIndex:9999,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', +import{ah as me,r as i,ab as ee,_ as Me,ai as ie,aj as kt,ak as ot,al as Ft,am as ae,V as j,an as pe,ao as it,ap as Ut,j as n,aq as Fe,ar as $t,as as B,at as Ue,au as at,G as Zt,av as Gt,aw as Nt,ax as Vt,ay as Bt,az as Wt,aA as qt,aB as Dt,a3 as U,i as v,aC as Xt,aD as ce,f as q,h as F,F as ct,aE as lt,aF as Yt,l as Qt,aG as ut,aH as Kt,aI as Jt,k as dt,Z as er,aJ as oe,aK as tr,aL as rr,aM as nr,aN as ve,x as sr,aO as or,aP as ir,aQ as ar,aR as cr,P as lr,aS as ur}from"./index-b85f35cf.js";import{u as K,a as Ie,e as dr,m as ft,b as z,T as Se,c as fr,d as pr,f as hr,C as pt,g as N,p as gr,h as mr,i as xr,j as Pe,S as Cr,H as Ae,k as vr,l as ht,n as yr,L as wr,D as br,U as he,P as jr,A as Mr,o as Sr,q as Lr,r as Er,E as Rr,V as Ir,B as Pr,R as $e,O as Ar,s as Tr}from"./index-e0d568ee.js";import{r as R,A as _r,j as gt}from"./react-toastify.esm-ce67a4f9.js";import{q as Te}from"./generateCategoricalChart-a6175423.js";import{T as zr}from"./index-1e89d407.js";import{f as Hr,d as Or}from"./index.esm-ac56504e.js";import{E as kr}from"./EditIcon-67ff5cde.js";import{P as Fr}from"./PlusIcon-261fd641.js";import{u as Ze}from"./index-b9c9b7e2.js";import{P as Ur,O as $r}from"./index-49e7e9f0.js";import"./Popover-28c1573e.js";import"./useSlotProps-b8a587b0.js";import"./InfoIcon-de2f1e11.js";import"./ChevronUpIcon-6e1fca04.js";import"./ChevronDownIcon-cf5b6e54.js";import"./index-341edfe1.js";import"./index-856cc0ad.js";import"./index-e6f0fb8d.js";import"./index-0c223900.js";import"./Popper-704ca55a.js";import"./CheckIcon-b94a1aa2.js";import"./Stack-b0e83988.js";function Zr(e){let t=0;for(let s in e.attributes){const o=e.getAttribute(s);t+=o.count*o.itemSize*o.array.BYTES_PER_ELEMENT}const r=e.getIndex();return t+=r?r.count*r.itemSize*r.array.BYTES_PER_ELEMENT:0,t}const Ge=e=>e===Object(e)&&!Array.isArray(e)&&typeof e!="function";function W(e,t){const r=K(o=>o.gl),s=Ie(me,Ge(e)?Object.values(e):e);if(i.useLayoutEffect(()=>{t==null||t(s)},[t]),i.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(r.initTexture)},[r,s]),Ge(e)){const o=Object.keys(e),l={};return o.forEach(a=>Object.assign(l,{[a]:s[o.indexOf(a)]})),l}else return s}W.preload=e=>Ie.preload(me,e);W.clear=e=>Ie.clear(me,e);ee.func.isRequired,ee.arrayOf(ee.oneOfType([ee.element,ee.func])).isRequired;const Ne=new ae,Ve=new ae,le=[],te=new it;class Gr extends kt{constructor(){super(),this.color=new ot("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,r){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;te.geometry=s.geometry;const o=s.matrixWorld,l=s.userData.instances.indexOf(this.instanceKey);if(!(l===-1||l>s.count)){s.getMatrixAt(l,Ne),Ve.multiplyMatrices(o,Ne),te.matrixWorld=Ve,s.material instanceof Ft?te.material.side=s.material.side:te.material.side=s.material[0].side,te.raycast(t,le);for(let a=0,c=le.length;a{i.useMemo(()=>dr({PositionMesh:Gr}),[]);const o=i.useRef(),{subscribe:l,getParent:a}=i.useContext(e||mt);return i.useLayoutEffect(()=>l(o),[]),i.createElement("positionMesh",Me({instance:a(),instanceKey:o,ref:ft([s,o])},r),t)}),Vr=i.forwardRef(({children:e,range:t,limit:r=1e3,frames:s=1/0,...o},l)=>{const[{context:a,instance:c}]=i.useState(()=>{const x=i.createContext(null);return{context:x,instance:i.forwardRef((C,M)=>i.createElement(xt,Me({context:x},C,{ref:M})))}}),u=i.useRef(null),[d,g]=i.useState([]),[[h,f]]=i.useState(()=>{const x=new Float32Array(r*16);for(let C=0;C1))]});i.useEffect(()=>{u.current.instanceMatrix.needsUpdate=!0});let p=0,m=0;z(()=>{if(s===1/0||p({getParent:()=>u,subscribe:x=>(g(C=>[...C,x]),()=>g(C=>C.filter(M=>M.current!==x.current)))}),[]);return i.createElement("instancedMesh",Me({userData:{instances:d},matrixAutoUpdate:!1,ref:ft([l,u]),args:[null,null,0],raycast:()=>null},o),i.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:ie}),i.createElement("instancedBufferAttribute",{attach:"instanceColor",count:f.length/3,array:f,itemSize:3,usage:ie}),typeof e=="function"?i.createElement(a.Provider,{value:w},e(c)):i.createElement(mt.Provider,{value:w},e))});function L(e,t){if(e==null)return{};var r={},s=Object.keys(e),o,l;for(l=0;l=0)&&(r[o]=e[o]);return r}var Br=["color"],Ct=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Br);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M0 1.5C0 1.22386 0.223858 1 0.5 1H2.5C2.77614 1 3 1.22386 3 1.5C3 1.77614 2.77614 2 2.5 2H0.5C0.223858 2 0 1.77614 0 1.5ZM4 1.5C4 1.22386 4.22386 1 4.5 1H14.5C14.7761 1 15 1.22386 15 1.5C15 1.77614 14.7761 2 14.5 2H4.5C4.22386 2 4 1.77614 4 1.5ZM4 4.5C4 4.22386 4.22386 4 4.5 4H11.5C11.7761 4 12 4.22386 12 4.5C12 4.77614 11.7761 5 11.5 5H4.5C4.22386 5 4 4.77614 4 4.5ZM0 7.5C0 7.22386 0.223858 7 0.5 7H2.5C2.77614 7 3 7.22386 3 7.5C3 7.77614 2.77614 8 2.5 8H0.5C0.223858 8 0 7.77614 0 7.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H4.5C4.22386 11 4 10.7761 4 10.5ZM0 13.5C0 13.2239 0.223858 13 0.5 13H2.5C2.77614 13 3 13.2239 3 13.5C3 13.7761 2.77614 14 2.5 14H0.5C0.223858 14 0 13.7761 0 13.5ZM4 13.5C4 13.2239 4.22386 13 4.5 13H14.5C14.7761 13 15 13.2239 15 13.5C15 13.7761 14.7761 14 14.5 14H4.5C4.22386 14 4 13.7761 4 13.5Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Wr=["color"],qr=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Wr);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.5 1C11.7761 1 12 1.22386 12 1.5V13.5C12 13.7761 11.7761 14 11.5 14C11.2239 14 11 13.7761 11 13.5V1.5C11 1.22386 11.2239 1 11.5 1ZM9.5 3C9.77614 3 10 3.22386 10 3.5V13.5C10 13.7761 9.77614 14 9.5 14C9.22386 14 9 13.7761 9 13.5V3.5C9 3.22386 9.22386 3 9.5 3ZM13.5 3C13.7761 3 14 3.22386 14 3.5V13.5C14 13.7761 13.7761 14 13.5 14C13.2239 14 13 13.7761 13 13.5V3.5C13 3.22386 13.2239 3 13.5 3ZM5.5 4C5.77614 4 6 4.22386 6 4.5V13.5C6 13.7761 5.77614 14 5.5 14C5.22386 14 5 13.7761 5 13.5V4.5C5 4.22386 5.22386 4 5.5 4ZM1.5 5C1.77614 5 2 5.22386 2 5.5V13.5C2 13.7761 1.77614 14 1.5 14C1.22386 14 1 13.7761 1 13.5V5.5C1 5.22386 1.22386 5 1.5 5ZM7.5 5C7.77614 5 8 5.22386 8 5.5V13.5C8 13.7761 7.77614 14 7.5 14C7.22386 14 7 13.7761 7 13.5V5.5C7 5.22386 7.22386 5 7.5 5ZM3.5 7C3.77614 7 4 7.22386 4 7.5V13.5C4 13.7761 3.77614 14 3.5 14C3.22386 14 3 13.7761 3 13.5V7.5C3 7.22386 3.22386 7 3.5 7Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Dr=["color"],Xr=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Dr);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M2 5H13C13.5523 5 14 5.44772 14 6V9C14 9.55228 13.5523 10 13 10H2C1.44772 10 1 9.55228 1 9V6C1 5.44772 1.44772 5 2 5ZM0 6C0 4.89543 0.895431 4 2 4H13C14.1046 4 15 4.89543 15 6V9C15 10.1046 14.1046 11 13 11H2C0.89543 11 0 10.1046 0 9V6ZM4.5 6.75C4.08579 6.75 3.75 7.08579 3.75 7.5C3.75 7.91421 4.08579 8.25 4.5 8.25C4.91421 8.25 5.25 7.91421 5.25 7.5C5.25 7.08579 4.91421 6.75 4.5 6.75ZM6.75 7.5C6.75 7.08579 7.08579 6.75 7.5 6.75C7.91421 6.75 8.25 7.08579 8.25 7.5C8.25 7.91421 7.91421 8.25 7.5 8.25C7.08579 8.25 6.75 7.91421 6.75 7.5ZM10.5 6.75C10.0858 6.75 9.75 7.08579 9.75 7.5C9.75 7.91421 10.0858 8.25 10.5 8.25C10.9142 8.25 11.25 7.91421 11.25 7.5C11.25 7.08579 10.9142 6.75 10.5 6.75Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Yr=["color"],Qr=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Yr);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.28856 0.796908C7.42258 0.734364 7.57742 0.734364 7.71144 0.796908L13.7114 3.59691C13.8875 3.67906 14 3.85574 14 4.05V10.95C14 11.1443 13.8875 11.3209 13.7114 11.4031L7.71144 14.2031C7.57742 14.2656 7.42258 14.2656 7.28856 14.2031L1.28856 11.4031C1.11252 11.3209 1 11.1443 1 10.95V4.05C1 3.85574 1.11252 3.67906 1.28856 3.59691L7.28856 0.796908ZM2 4.80578L7 6.93078V12.9649L2 10.6316V4.80578ZM8 12.9649L13 10.6316V4.80578L8 6.93078V12.9649ZM7.5 6.05672L12.2719 4.02866L7.5 1.80176L2.72809 4.02866L7.5 6.05672Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Kr=["color"],Jr=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Kr);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.5 9.125C8.39746 9.125 9.125 8.39746 9.125 7.5C9.125 6.60254 8.39746 5.875 7.5 5.875C6.60254 5.875 5.875 6.60254 5.875 7.5C5.875 8.39746 6.60254 9.125 7.5 9.125ZM7.5 10.125C8.94975 10.125 10.125 8.94975 10.125 7.5C10.125 6.05025 8.94975 4.875 7.5 4.875C6.05025 4.875 4.875 6.05025 4.875 7.5C4.875 8.94975 6.05025 10.125 7.5 10.125Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),en=["color"],tn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,en);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.49999 3.09998C7.27907 3.09998 7.09999 3.27906 7.09999 3.49998C7.09999 3.72089 7.27907 3.89998 7.49999 3.89998H14.5C14.7209 3.89998 14.9 3.72089 14.9 3.49998C14.9 3.27906 14.7209 3.09998 14.5 3.09998H7.49999ZM7.49998 5.1C7.27907 5.1 7.09998 5.27908 7.09998 5.5C7.09998 5.72091 7.27907 5.9 7.49998 5.9H14.5C14.7209 5.9 14.9 5.72091 14.9 5.5C14.9 5.27908 14.7209 5.1 14.5 5.1H7.49998ZM7.1 7.5C7.1 7.27908 7.27909 7.1 7.5 7.1H14.5C14.7209 7.1 14.9 7.27908 14.9 7.5C14.9 7.72091 14.7209 7.9 14.5 7.9H7.5C7.27909 7.9 7.1 7.72091 7.1 7.5ZM7.49998 9.1C7.27907 9.1 7.09998 9.27908 7.09998 9.5C7.09998 9.72091 7.27907 9.9 7.49998 9.9H14.5C14.7209 9.9 14.9 9.72091 14.9 9.5C14.9 9.27908 14.7209 9.1 14.5 9.1H7.49998ZM7.09998 11.5C7.09998 11.2791 7.27907 11.1 7.49998 11.1H14.5C14.7209 11.1 14.9 11.2791 14.9 11.5C14.9 11.7209 14.7209 11.9 14.5 11.9H7.49998C7.27907 11.9 7.09998 11.7209 7.09998 11.5ZM2.5 9.25003L5 6.00003H0L2.5 9.25003Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),rn=["color"],nn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,rn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),sn=["color"],on=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,sn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),an=["color"],Le=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,an);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),cn=["color"],ln=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,cn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M5.49998 0.5C5.49998 0.223858 5.72383 0 5.99998 0H7.49998H8.99998C9.27612 0 9.49998 0.223858 9.49998 0.5C9.49998 0.776142 9.27612 1 8.99998 1H7.99998V2.11922C9.09832 2.20409 10.119 2.56622 10.992 3.13572C11.0116 3.10851 11.0336 3.08252 11.058 3.05806L12.058 2.05806C12.3021 1.81398 12.6978 1.81398 12.9419 2.05806C13.186 2.30214 13.186 2.69786 12.9419 2.94194L11.967 3.91682C13.1595 5.07925 13.9 6.70314 13.9 8.49998C13.9 12.0346 11.0346 14.9 7.49998 14.9C3.96535 14.9 1.09998 12.0346 1.09998 8.49998C1.09998 5.13361 3.69904 2.3743 6.99998 2.11922V1H5.99998C5.72383 1 5.49998 0.776142 5.49998 0.5ZM2.09998 8.49998C2.09998 5.51764 4.51764 3.09998 7.49998 3.09998C10.4823 3.09998 12.9 5.51764 12.9 8.49998C12.9 11.4823 10.4823 13.9 7.49998 13.9C4.51764 13.9 2.09998 11.4823 2.09998 8.49998ZM7.49998 8.49998V4.09998C5.06992 4.09998 3.09998 6.06992 3.09998 8.49998C3.09998 10.93 5.06992 12.9 7.49998 12.9C8.715 12.9 9.815 12.4075 10.6112 11.6112L7.49998 8.49998Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),un=["color"],dn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,un);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.75432 0.819537C7.59742 0.726821 7.4025 0.726821 7.24559 0.819537L1.74559 4.06954C1.59336 4.15949 1.49996 4.32317 1.49996 4.5C1.49996 4.67683 1.59336 4.84051 1.74559 4.93046L7.24559 8.18046C7.4025 8.27318 7.59742 8.27318 7.75432 8.18046L13.2543 4.93046C13.4066 4.84051 13.5 4.67683 13.5 4.5C13.5 4.32317 13.4066 4.15949 13.2543 4.06954L7.75432 0.819537ZM7.49996 7.16923L2.9828 4.5L7.49996 1.83077L12.0171 4.5L7.49996 7.16923ZM1.5695 7.49564C1.70998 7.2579 2.01659 7.17906 2.25432 7.31954L7.49996 10.4192L12.7456 7.31954C12.9833 7.17906 13.2899 7.2579 13.4304 7.49564C13.5709 7.73337 13.4921 8.03998 13.2543 8.18046L7.75432 11.4305C7.59742 11.5232 7.4025 11.5232 7.24559 11.4305L1.74559 8.18046C1.50786 8.03998 1.42901 7.73337 1.5695 7.49564ZM1.56949 10.4956C1.70998 10.2579 2.01658 10.1791 2.25432 10.3195L7.49996 13.4192L12.7456 10.3195C12.9833 10.1791 13.2899 10.2579 13.4304 10.4956C13.5709 10.7334 13.4921 11.04 13.2543 11.1805L7.75432 14.4305C7.59742 14.5232 7.4025 14.5232 7.24559 14.4305L1.74559 11.1805C1.50785 11.04 1.42901 10.7334 1.56949 10.4956Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),fn=["color"],pn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,fn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M8.69667 0.0403541C8.90859 0.131038 9.03106 0.354857 8.99316 0.582235L8.0902 6.00001H12.5C12.6893 6.00001 12.8625 6.10701 12.9472 6.27641C13.0319 6.4458 13.0136 6.6485 12.8999 6.80001L6.89997 14.8C6.76167 14.9844 6.51521 15.0503 6.30328 14.9597C6.09135 14.869 5.96888 14.6452 6.00678 14.4178L6.90974 9H2.49999C2.31061 9 2.13748 8.893 2.05278 8.72361C1.96809 8.55422 1.98636 8.35151 2.09999 8.2L8.09997 0.200038C8.23828 0.0156255 8.48474 -0.0503301 8.69667 0.0403541ZM3.49999 8.00001H7.49997C7.64695 8.00001 7.78648 8.06467 7.88148 8.17682C7.97648 8.28896 8.01733 8.43723 7.99317 8.5822L7.33027 12.5596L11.5 7.00001H7.49997C7.353 7.00001 7.21347 6.93534 7.11846 6.8232C7.02346 6.71105 6.98261 6.56279 7.00678 6.41781L7.66968 2.44042L3.49999 8.00001Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),hn=["color"],gn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,hn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M1.49988 2.00012C1.77602 2.00012 1.99988 1.77626 1.99988 1.50012C1.99988 1.22398 1.77602 1.00012 1.49988 1.00012C1.22374 1.00012 0.999878 1.22398 0.999878 1.50012C0.999878 1.77626 1.22374 2.00012 1.49988 2.00012ZM4.49988 2.00012C4.77602 2.00012 4.99988 1.77626 4.99988 1.50012C4.99988 1.22398 4.77602 1.00012 4.49988 1.00012C4.22374 1.00012 3.99988 1.22398 3.99988 1.50012C3.99988 1.77626 4.22374 2.00012 4.49988 2.00012ZM7.99988 1.50012C7.99988 1.77626 7.77602 2.00012 7.49988 2.00012C7.22374 2.00012 6.99988 1.77626 6.99988 1.50012C6.99988 1.22398 7.22374 1.00012 7.49988 1.00012C7.77602 1.00012 7.99988 1.22398 7.99988 1.50012ZM10.4999 2.00012C10.776 2.00012 10.9999 1.77626 10.9999 1.50012C10.9999 1.22398 10.776 1.00012 10.4999 1.00012C10.2237 1.00012 9.99988 1.22398 9.99988 1.50012C9.99988 1.77626 10.2237 2.00012 10.4999 2.00012ZM13.9999 1.50012C13.9999 1.77626 13.776 2.00012 13.4999 2.00012C13.2237 2.00012 12.9999 1.77626 12.9999 1.50012C12.9999 1.22398 13.2237 1.00012 13.4999 1.00012C13.776 1.00012 13.9999 1.22398 13.9999 1.50012ZM1.49988 14.0001C1.77602 14.0001 1.99988 13.7763 1.99988 13.5001C1.99988 13.224 1.77602 13.0001 1.49988 13.0001C1.22374 13.0001 0.999878 13.224 0.999878 13.5001C0.999878 13.7763 1.22374 14.0001 1.49988 14.0001ZM1.99988 10.5001C1.99988 10.7763 1.77602 11.0001 1.49988 11.0001C1.22374 11.0001 0.999878 10.7763 0.999878 10.5001C0.999878 10.224 1.22374 10.0001 1.49988 10.0001C1.77602 10.0001 1.99988 10.224 1.99988 10.5001ZM1.49988 8.00012C1.77602 8.00012 1.99988 7.77626 1.99988 7.50012C1.99988 7.22398 1.77602 7.00012 1.49988 7.00012C1.22374 7.00012 0.999878 7.22398 0.999878 7.50012C0.999878 7.77626 1.22374 8.00012 1.49988 8.00012ZM1.99988 4.50012C1.99988 4.77626 1.77602 5.00012 1.49988 5.00012C1.22374 5.00012 0.999878 4.77626 0.999878 4.50012C0.999878 4.22398 1.22374 4.00012 1.49988 4.00012C1.77602 4.00012 1.99988 4.22398 1.99988 4.50012ZM13.4999 11.0001C13.776 11.0001 13.9999 10.7763 13.9999 10.5001C13.9999 10.224 13.776 10.0001 13.4999 10.0001C13.2237 10.0001 12.9999 10.224 12.9999 10.5001C12.9999 10.7763 13.2237 11.0001 13.4999 11.0001ZM13.9999 7.50012C13.9999 7.77626 13.776 8.00012 13.4999 8.00012C13.2237 8.00012 12.9999 7.77626 12.9999 7.50012C12.9999 7.22398 13.2237 7.00012 13.4999 7.00012C13.776 7.00012 13.9999 7.22398 13.9999 7.50012ZM13.4999 5.00012C13.776 5.00012 13.9999 4.77626 13.9999 4.50012C13.9999 4.22398 13.776 4.00012 13.4999 4.00012C13.2237 4.00012 12.9999 4.22398 12.9999 4.50012C12.9999 4.77626 13.2237 5.00012 13.4999 5.00012ZM4.99988 13.5001C4.99988 13.7763 4.77602 14.0001 4.49988 14.0001C4.22374 14.0001 3.99988 13.7763 3.99988 13.5001C3.99988 13.224 4.22374 13.0001 4.49988 13.0001C4.77602 13.0001 4.99988 13.224 4.99988 13.5001ZM7.49988 14.0001C7.77602 14.0001 7.99988 13.7763 7.99988 13.5001C7.99988 13.224 7.77602 13.0001 7.49988 13.0001C7.22374 13.0001 6.99988 13.224 6.99988 13.5001C6.99988 13.7763 7.22374 14.0001 7.49988 14.0001ZM10.9999 13.5001C10.9999 13.7763 10.776 14.0001 10.4999 14.0001C10.2237 14.0001 9.99988 13.7763 9.99988 13.5001C9.99988 13.224 10.2237 13.0001 10.4999 13.0001C10.776 13.0001 10.9999 13.224 10.9999 13.5001ZM13.4999 14.0001C13.776 14.0001 13.9999 13.7763 13.9999 13.5001C13.9999 13.224 13.776 13.0001 13.4999 13.0001C13.2237 13.0001 12.9999 13.224 12.9999 13.5001C12.9999 13.7763 13.2237 14.0001 13.4999 14.0001ZM3.99988 5.00012C3.99988 4.44784 4.44759 4.00012 4.99988 4.00012H9.99988C10.5522 4.00012 10.9999 4.44784 10.9999 5.00012V10.0001C10.9999 10.5524 10.5522 11.0001 9.99988 11.0001H4.99988C4.44759 11.0001 3.99988 10.5524 3.99988 10.0001V5.00012ZM4.99988 5.00012H9.99988V10.0001H4.99988V5.00012Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),mn=["color"],xn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,mn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M2.25 7.5C2.25 7.22386 2.47386 7 2.75 7H12.25C12.5261 7 12.75 7.22386 12.75 7.5C12.75 7.77614 12.5261 8 12.25 8H2.75C2.47386 8 2.25 7.77614 2.25 7.5Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Cn=["color"],vn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Cn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.04995 2.74998C6.04995 2.44623 5.80371 2.19998 5.49995 2.19998C5.19619 2.19998 4.94995 2.44623 4.94995 2.74998V12.25C4.94995 12.5537 5.19619 12.8 5.49995 12.8C5.80371 12.8 6.04995 12.5537 6.04995 12.25V2.74998ZM10.05 2.74998C10.05 2.44623 9.80371 2.19998 9.49995 2.19998C9.19619 2.19998 8.94995 2.44623 8.94995 2.74998V12.25C8.94995 12.5537 9.19619 12.8 9.49995 12.8C9.80371 12.8 10.05 12.5537 10.05 12.25V2.74998Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),yn=["color"],wn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,yn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.85357 3.85355L7.65355 3.05353C8.2981 2.40901 9.42858 1.96172 10.552 1.80125C11.1056 1.72217 11.6291 1.71725 12.0564 1.78124C12.4987 1.84748 12.7698 1.97696 12.8965 2.10357C13.0231 2.23018 13.1526 2.50125 13.2188 2.94357C13.2828 3.37086 13.2779 3.89439 13.1988 4.44801C13.0383 5.57139 12.591 6.70188 11.9464 7.34645L7.49999 11.7929L6.35354 10.6465C6.15827 10.4512 5.84169 10.4512 5.64643 10.6465C5.45117 10.8417 5.45117 11.1583 5.64643 11.3536L7.14644 12.8536C7.34171 13.0488 7.65829 13.0488 7.85355 12.8536L8.40073 12.3064L9.57124 14.2572C9.65046 14.3893 9.78608 14.4774 9.9389 14.4963C10.0917 14.5151 10.2447 14.4624 10.3535 14.3536L12.3535 12.3536C12.4648 12.2423 12.5172 12.0851 12.495 11.9293L12.0303 8.67679L12.6536 8.05355C13.509 7.19808 14.0117 5.82855 14.1887 4.58943C14.2784 3.9618 14.2891 3.33847 14.2078 2.79546C14.1287 2.26748 13.9519 1.74482 13.6035 1.39645C13.2552 1.04809 12.7325 0.871332 12.2045 0.792264C11.6615 0.710945 11.0382 0.721644 10.4105 0.8113C9.17143 0.988306 7.80189 1.491 6.94644 2.34642L6.32322 2.96968L3.07071 2.50504C2.91492 2.48278 2.75773 2.53517 2.64645 2.64646L0.646451 4.64645C0.537579 4.75533 0.484938 4.90829 0.50375 5.0611C0.522563 5.21391 0.61073 5.34954 0.742757 5.42876L2.69364 6.59928L2.14646 7.14645C2.0527 7.24022 2.00002 7.3674 2.00002 7.50001C2.00002 7.63261 2.0527 7.75979 2.14646 7.85356L3.64647 9.35356C3.84173 9.54883 4.15831 9.54883 4.35357 9.35356C4.54884 9.1583 4.54884 8.84172 4.35357 8.64646L3.20712 7.50001L3.85357 6.85356L6.85357 3.85355ZM10.0993 13.1936L9.12959 11.5775L11.1464 9.56067L11.4697 11.8232L10.0993 13.1936ZM3.42251 5.87041L5.43935 3.85356L3.17678 3.53034L1.80638 4.90074L3.42251 5.87041ZM2.35356 10.3535C2.54882 10.1583 2.54882 9.8417 2.35356 9.64644C2.1583 9.45118 1.84171 9.45118 1.64645 9.64644L0.646451 10.6464C0.451188 10.8417 0.451188 11.1583 0.646451 11.3535C0.841713 11.5488 1.1583 11.5488 1.35356 11.3535L2.35356 10.3535ZM3.85358 11.8536C4.04884 11.6583 4.04885 11.3417 3.85359 11.1465C3.65833 10.9512 3.34175 10.9512 3.14648 11.1465L1.14645 13.1464C0.95119 13.3417 0.951187 13.6583 1.14645 13.8535C1.34171 14.0488 1.65829 14.0488 1.85355 13.8536L3.85358 11.8536ZM5.35356 13.3535C5.54882 13.1583 5.54882 12.8417 5.35356 12.6464C5.1583 12.4512 4.84171 12.4512 4.64645 12.6464L3.64645 13.6464C3.45119 13.8417 3.45119 14.1583 3.64645 14.3535C3.84171 14.5488 4.1583 14.5488 4.35356 14.3535L5.35356 13.3535ZM9.49997 6.74881C10.1897 6.74881 10.7488 6.1897 10.7488 5.5C10.7488 4.8103 10.1897 4.25118 9.49997 4.25118C8.81026 4.25118 8.25115 4.8103 8.25115 5.5C8.25115 6.1897 8.81026 6.74881 9.49997 6.74881Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),bn=["color"],jn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,bn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M0.5 4C0.223858 4 0 4.22386 0 4.5V10.5C0 10.7761 0.223858 11 0.5 11H14.5C14.7761 11 15 10.7761 15 10.5V4.5C15 4.22386 14.7761 4 14.5 4H0.5ZM1 10V5H2.075V7.5C2.075 7.73472 2.26528 7.925 2.5 7.925C2.73472 7.925 2.925 7.73472 2.925 7.5V5H4.075V6.5C4.075 6.73472 4.26528 6.925 4.5 6.925C4.73472 6.925 4.925 6.73472 4.925 6.5V5H6.075V6.5C6.075 6.73472 6.26528 6.925 6.5 6.925C6.73472 6.925 6.925 6.73472 6.925 6.5V5H8.075V7.5C8.075 7.73472 8.26528 7.925 8.5 7.925C8.73472 7.925 8.925 7.73472 8.925 7.5V5H10.075V6.5C10.075 6.73472 10.2653 6.925 10.5 6.925C10.7347 6.925 10.925 6.73472 10.925 6.5V5H12.075V6.5C12.075 6.73472 12.2653 6.925 12.5 6.925C12.7347 6.925 12.925 6.73472 12.925 6.5V5H14V10H1Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Mn=["color"],Sn=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Mn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))}),Ln=["color"],vt=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Ln);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4 6H11L7.5 10.5L4 6Z",fill:s}))}),En=["color"],yt=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,En);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4 9H11L7.5 4.5L4 9Z",fill:s}))}),Rn=["color"],wt=i.forwardRef(function(e,t){var r=e.color,s=r===void 0?"currentColor":r,o=L(e,Rn);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M7.49998 1L6.92321 2.00307L1.17498 12L0.599976 13H1.7535H13.2464H14.4L13.825 12L8.07674 2.00307L7.49998 1ZM7.49998 3.00613L2.3285 12H12.6714L7.49998 3.00613Z",fill:s,fillRule:"evenodd",clipRule:"evenodd"}))});function In(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pn(e){var t=In(e,"string");return typeof t=="symbol"?t:String(t)}function An(e,t,r){return t=Pn(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,s)}return r}function Ee(e){for(var t=1;t(e==null?void 0:e.reduce((t,r)=>t+r,0))/e.length;class Tn{constructor(t={}){this.names=[""],this.finished=[],this.gl=void 0,this.extension=void 0,this.query=void 0,this.paused=!1,this.overClock=!1,this.queryHasResult=!1,this.queryCreated=!1,this.isWebGL2=!0,this.memAccums=[],this.gpuAccums=[],this.activeAccums=[],this.logsAccums={mem:[],gpu:[],cpu:[],fps:[],fpsFixed:[]},this.fpsChart=[],this.gpuChart=[],this.cpuChart=[],this.memChart=[],this.paramLogger=()=>{},this.glFinish=()=>{},this.chartLogger=()=>{},this.chartLen=60,this.maxMemory=1500,this.chartHz=10,this.startCpuProfiling=!1,this.lastCalculateFixed=0,this.chartFrame=0,this.gpuTimeProcess=0,this.chartTime=0,this.activeQueries=0,this.circularId=0,this.detected=0,this.frameId=0,this.rafId=0,this.idleCbId=0,this.checkQueryId=0,this.uuid=void 0,this.currentCpu=0,this.currentMem=0,this.paramFrame=0,this.paramTime=0,this.now=()=>{},this.t0=0,window.GLPerf=window.GLPerf||{},Object.assign(this,t),this.fpsChart=new Array(this.chartLen).fill(0),this.gpuChart=new Array(this.chartLen).fill(0),this.cpuChart=new Array(this.chartLen).fill(0),this.memChart=new Array(this.chartLen).fill(0),this.now=()=>window.performance&&window.performance.now?window.performance.now():Date.now(),this.initGpu(),this.is120hz()}initGpu(){this.uuid=at.generateUUID(),this.gl&&(this.isWebGL2=!0,this.extension||(this.extension=this.gl.getExtension("EXT_disjoint_timer_query_webgl2")),this.extension===null&&(this.isWebGL2=!1))}is120hz(){let t=0;const r=s=>{++t<20?this.rafId=window.requestAnimationFrame(r):(this.detected=Math.ceil(1e3*t/(s-this.t0)/70),window.cancelAnimationFrame(this.rafId)),this.t0||(this.t0=s)};this.rafId=window.requestAnimationFrame(r)}addUI(t){this.names.indexOf(t)===-1&&(this.names.push(t),this.gpuAccums.push(0),this.activeAccums.push(!1))}nextFps(t){const r=16.666666666666668,s=r-t.timeRemaining(),o=r*k.fpsLimit/10/s;o<0||(k.value=o,k.isOverLimit<25?k.isOverLimit++:b.setState({overclockingFps:!0}))}nextFrame(t){this.frameId++;const r=t||this.now();let s=r-this.paramTime,o=0;if(this.frameId<=1)this.paramFrame=this.frameId,this.paramTime=r;else if(r>=this.paramTime){this.maxMemory=window.performance.memory?window.performance.memory.jsHeapSizeLimit/1048576:0;const l=this.frameId-this.paramFrame,a=l*1e3/s,c=b.getState().overclockingFps?k.value:a;if(o=this.isWebGL2?this.gpuAccums[0]:this.gpuAccums[0]/s,this.isWebGL2?this.gpuAccums[0]=0:Promise.all(this.finished).then(()=>{this.gpuAccums[0]=0,this.finished=[]}),this.currentMem=Math.round(window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize/1048576:0),window.performance&&this.startCpuProfiling){window.performance.mark("cpu-finished");const u=performance.measure("cpu-duration","cpu-started","cpu-finished");this.currentCpu=u.duration,this.logsAccums.cpu.push(this.currentCpu),this.startCpuProfiling=!1}this.logsAccums.mem.push(this.currentMem),this.logsAccums.fpsFixed.push(a),this.logsAccums.fps.push(c),this.logsAccums.gpu.push(o),this.overClock&&typeof window.requestIdleCallback<"u"&&(k.isOverLimit>0&&c>a?k.isOverLimit--:b.getState().overclockingFps&&b.setState({overclockingFps:!1})),r>=this.paramTime+180&&(this.paramLogger({cpu:re(this.logsAccums.cpu),gpu:re(this.logsAccums.gpu),mem:re(this.logsAccums.mem),fps:re(this.logsAccums.fps),duration:Math.round(s),maxMemory:this.maxMemory,frameCount:l}),this.logsAccums.mem=[],this.logsAccums.fps=[],this.logsAccums.gpu=[],this.logsAccums.cpu=[],this.paramFrame=this.frameId,this.paramTime=r),this.overClock&&r-this.lastCalculateFixed>=2*1e3&&(this.lastCalculateFixed=t,k.fpsLimit=Math.round(re(this.logsAccums.fpsFixed)/10)*100,b.setState({fpsLimit:k.fpsLimit/10}),this.logsAccums.fpsFixed=[],this.paramFrame=this.frameId,this.paramTime=r)}if(!this.detected||!this.chartFrame)this.chartFrame=this.frameId,this.chartTime=r,this.circularId=0;else{const l=r-this.chartTime;let a=this.chartHz*l/1e3;for(;--a>0&&this.detected;){const u=(this.frameId-this.chartFrame)/l*1e3,d=b.getState().overclockingFps?k.value:u;this.fpsChart[this.circularId%this.chartLen]=d;const g=1e3/this.currentMem,h=this.currentCpu,f=(this.isWebGL2?this.gpuAccums[1]*2:Math.round(this.gpuAccums[1]/s*100))+4;f>0&&(this.gpuChart[this.circularId%this.chartLen]=f),h>0&&(this.cpuChart[this.circularId%this.chartLen]=h),g>0&&(this.memChart[this.circularId%this.chartLen]=g);for(let p=0;p0&&(o||this.activeAccums.forEach((u,d)=>{this.gpuAccums[d]=c}))}}(s||!this.query)&&(this.queryCreated=!0,this.query=t.createQuery(),t.beginQuery(r.TIME_ELAPSED_EXT,this.query))}}endGpu(){const t=this.extension,r=this.gl;this.isWebGL2&&this.queryCreated&&r.getQuery(t.TIME_ELAPSED_EXT,r.CURRENT_QUERY)&&r.endQuery(t.TIME_ELAPSED_EXT)}begin(t){this.startGpu(),this.updateAccums(t)}end(t){this.endGpu(),this.updateAccums(t)}updateAccums(t){let r=this.names.indexOf(t);r===-1&&(r=this.names.length,this.addUI(t));const s=this.now();this.activeAccums[r]=!this.activeAccums[r],this.t0=s}}const _n=e=>{e.forEach((t,r)=>{const{meshes:s}=t;if(!s)return;let o={total:0,type:"Triangle",data:[]};Object.keys(s).forEach(l=>{const a=s[l],{geometry:c,material:u}=a;let d=c.index;const g=c.attributes.position;if(!g)return;let h=1;u.wireframe===!0&&(h=0);const f=d!==null?d.count:g.count,p=c.drawRange.start*h,m=c.drawRange.count*h,w=p,x=Math.min(f,p+m)-1;let C=1;const M=a.count||1;let S="Triangle",I=0;a.isMesh?u.wireframe===!0?(S="Line",C=C/2):(S="Triangle",C=C/3):a.isLine?(S="Line",a.isLineSegments?C=C/2:a.isLineLoop?C=C:C=C-1):a.isPoints?(S="Point",C=C):a.isSprite&&(S="Triangle",C=C/3);const E=Math.round(Math.max(0,x-w+1)*(C*M));E>I&&(I=E,o.type=S),o.total+=E,o.data.push({drawCount:E,type:S}),a.userData.drawCount={type:S,count:E}}),t.drawCounts=o})},zn=B.prototype.updateMatrixWorld,Hn=B.prototype.updateWorldMatrix,Qe=B.prototype.updateMatrix;let Q={value:0},$={value:0};const On=e=>{let t=""+e;return t=t.match("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"),t!==null},Ke=(e,t)=>{e.defines||(e.defines={}),e.defines&&!e.defines.muiPerf&&(e.defines=Object.assign(e.defines||{},{muiPerf:e.uuid}));const r=e.uuid;return t[r]||(t[r]={meshes:{},material:e},e.needsUpdate=!0),e.needsUpdate=!1,r},kn=e=>e==="muiPerf",b=Ut(e=>({log:null,paused:!1,triggerProgramsUpdate:0,customData:0,fpsLimit:60,overclockingFps:!1,chart:{data:{fps:[],cpu:[],gpu:[],mem:[]},circularId:0},gl:void 0,objectWithMaterials:null,scene:void 0,programs:new Map,sceneLength:void 0,tab:"infos"})),bt=({trackCPU:e,overClock:t,chart:r,deepAnalyze:s,matrixUpdate:o})=>{const{gl:l,scene:a}=K();b.setState({gl:l,scene:a});const c=i.useMemo(()=>{const u=new Tn({trackGPU:!0,overClock:t,chartLen:r?r.length:120,chartHz:r?r.hz:60,gl:l.getContext(),chartLogger:h=>{b.setState({chart:h})},paramLogger:h=>{b.setState({log:{maxMemory:h.maxMemory,gpu:h.gpu,cpu:h.cpu,mem:h.mem,fps:h.fps,totalTime:h.duration,frameCount:h.frameCount}})}}),d=new Map,g=new Map;return Object.defineProperty(Ue.prototype,"onBeforeRender",{get(){return(...h)=>{var f;u&&u.begin("profiler"),(f=d.get(this))===null||f===void 0||f(...h)}},set(h){d.set(this,h)},configurable:!0}),Object.defineProperty(Ue.prototype,"onAfterRender",{get(){return(...h)=>{var f;u&&u.end("profiler"),(f=g.get(this))===null||f===void 0||f(...h)}},set(h){g.set(this,h)},configurable:!0}),u},[]);return i.useEffect(()=>{c&&(c.overClock=t||!1,t===!1&&(b.setState({overclockingFps:!1}),k.value=0,k.isOverLimit=0),c.chartHz=(r==null?void 0:r.hz)||60,c.chartLen=(r==null?void 0:r.length)||120)},[t,c,r==null?void 0:r.length,r==null?void 0:r.hz]),i.useEffect(()=>{o&&(B.prototype.updateMatrixWorld=function(){(this.matrixWorldNeedsUpdate||arguments[0])&&Q.value++,zn.apply(this,arguments)},B.prototype.updateWorldMatrix=function(){Q.value++,Hn.apply(this,arguments)},B.prototype.updateMatrix=function(){$.value++,Qe.apply(this,arguments)}),l.info.autoReset=!1;let u=null,d=null;if(l.info)return u=fr(function(){b.getState().paused&&b.setState({paused:!1}),window.performance&&(window.performance.mark("cpu-started"),c.startCpuProfiling=!0),$.value-=1,Q.value=0,$.value=0,l.info&&l.info.reset()}),d=pr(function(){if(c&&!c.paused&&(c.nextFrame(window.performance.now()),t&&typeof window.requestIdleCallback<"u"&&(c.idleCbId=requestIdleCallback(c.nextFps))),s){var h,f;const p={},m=new Map;a.traverse(function(x){if((x instanceof it||x instanceof Gt)&&x.material){let C=x.material.uuid;Array.isArray(x.material)&&x.material.length>1?C=Ke(x.material[1],p):C=Ke(x.material,p),p[C].meshes[x.uuid]=x}}),l==null||(h=l.info)===null||h===void 0||(f=h.programs)===null||f===void 0||f.forEach(w=>{const x=w.cacheKey.split(","),C=x[x.findIndex(kn)+1];if(On(C)&&p[C]){const{material:M,meshes:S}=p[C];m.set(C,{program:w,material:M,meshes:S,drawCounts:{total:0,type:"triangle",data:[]},expand:!1,visible:!0})}}),m.size!==b.getState().programs.size&&(_n(m),b.setState({programs:m,triggerProgramsUpdate:b.getState().triggerProgramsUpdate++}))}}),()=>{c&&(typeof window.cancelIdleCallback<"u"&&window.cancelIdleCallback(c.idleCbId),window.cancelAnimationFrame(c.rafId),window.cancelAnimationFrame(c.checkQueryId)),o&&(B.prototype.updateMatrixWorld=Qe),u(),d()}},[c,l,e,r,o]),i.useEffect(()=>{const u=hr(function(){return c&&(c.paused=!0,$.value=0,Q.value=0,b.setState({paused:!0,log:{maxMemory:0,gpu:0,mem:0,cpu:0,fps:0,totalTime:0,frameCount:0}})),!1});return()=>{u()}},[]),null},Fn=R("div",{position:"fixed",top:0,right:0,zIndex:9999,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif`,backgroundColor:"rgba(36, 36, 36, .9)",color:"#fff",margin:0,minHeight:"100px",padding:"4px 0","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale",userSelect:"none","&.top-left":{right:"initial",left:0},"&.bottom-left":{right:"initial",top:"initial",bottom:0,left:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.bottom-right":{top:"initial",bottom:0,".__perf_toggle":{top:"-20px",bottom:"initial"}},"&.minimal":{backgroundColor:"rgba(36, 36, 36, .75)"},"*":{margin:"0",padding:"0",border:"0",fontSize:"100%",lineHeight:"1",verticalAlign:"baseline"}}),ye=R("small",{position:"absolute",right:0,fontSize:"10px"}),P=R("div",{display:"inline-flex",fontStyle:"normal",padding:0,lineHeight:"13px",fontSize:"14px",width:"62px",position:"relative",pointerEvents:"auto",cursor:"default",fontWeight:500,letterSpacing:"0px",textAlign:"left",height:"29px",whiteSpace:"nowrap",justifyContent:"space-evenly",fontVariantNumeric:"tabular-nums",small:{paddingLeft:"12px"},svg:{padding:0,color:"rgba(145, 145, 145, 0.3)",fontSize:"40px",position:"absolute",zIndex:1,maxHeight:"20px",left:" 50%",marginLeft:"-23px",top:"4px"}}),H=R("span",{verticalAlign:"bottom",position:"absolute",bottom:"5px",color:"rgba(101, 197, 188, 1)",textAlign:"right",letterSpacing:"1px",fontSize:"8px",fontWeight:"500",width:"60px"}),Un=R("div",{display:"flex"}),$n=R("div",{backgroundColor:"#404040",padding:"6px",display:"block",fontSize:"12px",marginBottom:"6px",cursor:"pointer","*":{cursor:"pointer !important"},"> span":{},small:{fontSize:"9px"},"> b":{marginRight:"4px",cursor:"pointer"}}),Zn=R("div",{height:"66px",overflow:"hidden",position:"absolute",pointerEvents:"none",display:"flex",top:"0px",justifyContent:"center",width:"100%",minWidth:"310px",margin:"0 auto",canvas:{background:"transparent !important",position:"absolute !important"}}),Gn=R("div",{textAlign:"center",fontWeight:700,fontSize:"12px",lineHeight:"12px",display:"flex",justifyContent:"center",alignItems:"center",verticalAlign:"middle",color:"#f1f1f1",padding:"7px",width:"100%",backgroundColor:"rgba(36, 36, 37, 0.8)",zIndex:1,position:"absolute",height:"100%"}),_e=R("div",{pointerEvents:"auto",justifyContent:"center",cursor:"pointer",fontSize:"12px",backgroundColor:"rgb(41, 43, 45)",marginTop:"6px",width:"auto",margin:"0",color:"rgba(145, 145, 145, 1)",textAlign:"center",display:"inline-block",verticalAlign:"middle",padding:"4px 6px","&.__perf_toggle_tab_active":{backgroundColor:"rgb(31 31 31)"},svg:{width:"12px",height:"12px",float:"left"}}),Nn=R("div",{pointerEvents:"auto",justifyContent:"center",cursor:"pointer",fontSize:"12px",float:"right",backgroundColor:"rgb(41, 43, 45)",width:"auto",margin:"0",color:"rgba(145, 145, 145, 1)",textAlign:"center",display:"inline-block",verticalAlign:"middle",padding:"4px 6px","&.__perf_toggle_tab_active":{backgroundColor:"rgb(31 31 31)"},svg:{width:"12px",height:"12px",float:"left"}}),Vn=R("div",{padding:"4px 6px",fontSize:"12px",pointerEvents:"auto"}),Bn=R("span",{fontWeight:"bold",letterSpacing:"0.08em",maxWidth:"145px",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",verticalAlign:"middle",fontSize:"11px",marginRight:"10px"}),Wn=R("div",{maxHeight:"50vh",overflowY:"auto",marginTop:"38px"}),qn=R("div",{marginTop:"0"}),Je=R("div",{display:"flex",position:"relative",fontWeight:"bold",color:"#fff",lineHeight:"14px",svg:{marginRight:"4px",display:"inline-block"}}),jt=R("ul",{display:"block",position:"relative",paddingLeft:"10px",margin:"6px 6px",img:{maxHeight:"60px",maxWidth:"100%",margin:"6px auto",display:"block"},"&:after":{content:"",position:"absolute",left:"0px",top:"0px",width:"1px",height:"100%",backgroundColor:"grey",transform:"translateX(-50%)",maxHeight:"50vh",overflowY:"auto"},li:{borderBottom:"1px solid #313131",display:"block",padding:"4px",margin:0,lineHeight:1,verticalAlign:"middle",height:"24px"},b:{fontWeight:"bold"},small:{textAlign:"revert",letterSpacing:"1px",fontSize:"10px",fontWeight:"500",marginLeft:"2px",color:"rgb(101, 197, 188)"}}),Mt=R("button",{fontWeight:"bold",letterSpacing:"0.02em",backgroundColor:"rgb(41, 43, 45)",color:"rgb(211, 211, 211)",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"block",verticalAlign:"middle",fontSize:"11px",padding:"5px",margin:"4px auto"}),Dn=R("div",{display:"flex",justifyContent:"center",cursor:"pointer",fontSize:"12px",backgroundColor:"rgb(41, 43, 45)",marginTop:"6px",width:"auto",margin:"0 auto",color:"rgba(145, 145, 145, 1)",textAlign:"center",position:"absolute",right:0,bottom:" -20px",svg:{width:"12px",height:"12px",float:"left"}}),Xn=R("li",{display:"flex !important",height:"auto !important",span:{height:"40px",display:"block",position:"relative"},b:{paddingLeft:"12px"}}),O=i.memo(({isPerf:e,color:t,colorBlind:r,customData:s,isMemory:o,isShadersInfo:l,metric:a,fontSize:c,offsetY:u=0,offsetX:d,round:g,hasInstance:h})=>{const{width:f,height:p}=K(x=>x.viewport),m=i.useRef(null),w=i.useRef(null);return z(function(){const C=b.getState().gl,M=b.getState().log;if(!M||!m.current||(s&&(m.current.text=b.getState().customData),!a))return;let S=M[a];if(l){var I;S=(I=C.info.programs)===null||I===void 0?void 0:I.length}else a==="matriceCount"?S=$.value:!e&&C.info.render&&(S=(o?C.info.memory:C.info.render)[a]);if(a==="fps"&&(m.current.color=b.getState().overclockingFps?A(r).overClock.toString():`rgb(${A(r).fps.toString()})`),m.current.text=(Math.round(S*Math.pow(10,g))/Math.pow(10,g)).toFixed(g),h){const E=C.info.instance;if(typeof E>"u"&&a!=="matriceCount")return;let T;a==="matriceCount"?T=Q.value:T=E[a],T>0?(m.current.fontSize=c/1.15,w.current.fontSize=S>0?c/1.4:c,m.current.position.y=p/2-u-c/1.9,w.current.text=" ± "+(Math.round(T*Math.pow(10,g))/Math.pow(10,g)).toFixed(g)):(m.current.position.y=p/2-u-c,m.current.fontSize=c)}$.value-=1,m.current.updateMatrix(),m.current.matrixWorld.copy(m.current.matrix)}),n.jsxs(i.Suspense,{fallback:null,children:[n.jsxs(Se,{textAlign:"justify",matrixAutoUpdate:!1,ref:m,fontSize:c,position:[-f/2+d+c,p/2-u-c,0],color:t,characters:"0123456789",onUpdate:x=>{x.updateMatrix(),$.value-=1,x.matrixWorld.copy(x.matrix)},children:[n.jsx("meshBasicMaterial",{blending:Fe}),"0"]}),h&&n.jsx(Se,{textAlign:"justify",matrixAutoUpdate:!1,ref:w,fontSize:8,position:[-f/2+d+c,p/2-u-c*1.15,0],color:"lightgrey",characters:"0123456789",onUpdate:x=>{x.updateMatrix(),$.value-=1,x.matrixWorld.copy(x.matrix)},children:n.jsx("meshBasicMaterial",{blending:Fe})})]})}),Yn=({colorBlind:e,customData:t,minimal:r,matrixUpdate:s})=>n.jsxs(n.Fragment,{children:[n.jsx(O,{colorBlind:e,color:`rgb(${A(e).fps.toString()})`,isPerf:!0,metric:"fps",fontSize:14,offsetX:140,round:0}),n.jsx(O,{color:`rgb(${A(e).cpu.toString()})`,isPerf:!0,metric:"cpu",fontSize:14,offsetX:72,round:3}),n.jsx(O,{color:`rgb(${A(e).gpu.toString()})`,isPerf:!0,metric:"gpu",fontSize:14,offsetX:10,round:3}),r?null:n.jsxs(n.Fragment,{children:[n.jsx(O,{metric:"calls",fontSize:14,offsetX:200,round:0,hasInstance:!0}),n.jsx(O,{metric:"triangles",fontSize:14,offsetX:260,round:0,hasInstance:!0}),n.jsx(O,{isMemory:!0,metric:"geometries",fontSize:14,offsetY:30,offsetX:0,round:0}),n.jsx(O,{isMemory:!0,metric:"textures",fontSize:14,offsetY:30,offsetX:80,round:0}),n.jsx(O,{isShadersInfo:!0,metric:"programs",fontSize:14,offsetY:30,offsetX:140,round:0}),n.jsx(O,{metric:"lines",fontSize:14,offsetY:30,offsetX:200,round:0,hasInstance:!0}),n.jsx(O,{metric:"points",fontSize:14,offsetY:30,offsetX:260,round:0,hasInstance:!0}),s&&n.jsx(O,{isPerf:!0,metric:"matriceCount",fontSize:14,offsetY:30,offsetX:320,round:0,hasInstance:!0})]}),t&&n.jsx(O,{color:`rgb(${A(e).custom.toString()})`,customData:t,fontSize:14,offsetY:0,offsetX:r?200:320,round:0})]}),Qn=({colorBlind:e,minimal:t,chart:r={length:30,hz:15}})=>{const s=i.useMemo(()=>({fps:new Float32Array(r.length*3),cpu:new Float32Array(r.length*3),gpu:new Float32Array(r.length*3)}),[r]),o=i.useRef(null),l=i.useRef(null),a=i.useRef(null),c=i.useRef(null),u=i.useMemo(()=>new j(0,0,0),[]),d=(g,h=1,f,p)=>{let m=0;const{width:w,height:x}=p,C=b.getState().chart.data[g];if(!C||C.length===0)return;const M=t?2:6,S=t?12:50;let I=C.length;for(let E=0;Em&&(m=C[T]*h),u.set(M+E/(I-1)*(w-M*2)-w/2,Math.min(100,C[T])*h/100*(x-M*2-S)-x/2,0),u.toArray(f.attributes.position.array,E*3))}f.attributes.position.needsUpdate=!0};return z(function({viewport:h}){d("fps",1,o.current,h),l.current&&l.current.color.set(b.getState().overclockingFps?A(e).overClock.toString():`rgb(${A(e).fps.toString()})`),d("gpu",5,a.current,h),d("cpu",5,c.current,h)}),n.jsxs(n.Fragment,{children:[n.jsxs("line",{children:[n.jsx("bufferGeometry",{ref:o,children:n.jsx("bufferAttribute",{attach:"attributes-position",count:r.length,array:s.fps,itemSize:3,usage:ie,needsUpdate:!0})}),n.jsx("lineBasicMaterial",{ref:l,color:`rgb(${A(e).fps.toString()})`,transparent:!0,opacity:.5})]}),n.jsxs("line",{children:[n.jsx("bufferGeometry",{ref:a,children:n.jsx("bufferAttribute",{attach:"attributes-position",count:r.length,array:s.gpu,itemSize:3,usage:ie,needsUpdate:!0})}),n.jsx("lineBasicMaterial",{color:`rgb(${A(e).gpu.toString()})`,transparent:!0,opacity:.5})]}),n.jsxs("line",{children:[n.jsx("bufferGeometry",{ref:c,children:n.jsx("bufferAttribute",{attach:"attributes-position",count:r.length,array:s.cpu,itemSize:3,usage:ie,needsUpdate:!0})}),n.jsx("lineBasicMaterial",{color:`rgb(${A(e).cpu.toString()})`,transparent:!0,opacity:.5})]})]})},Kn=({colorBlind:e,chart:t,customData:r,matrixUpdate:s,showGraph:o=!0,antialias:l=!0,minimal:a})=>{const c=i.useRef(void 0),u=b(d=>d.paused);return n.jsxs(Zn,{style:{display:"flex",position:"absolute",height:`${a?37:o?100:60}px`,minWidth:`${a?"100px":r?"370px":"310px"}`},children:[n.jsx(pt,{ref:c,orthographic:!0,dpr:l?[1,2]:1,gl:{antialias:!0,alpha:!0,stencil:!1,depth:!1},onCreated:({scene:d})=>{d.traverse(g=>{g.matrixWorldAutoUpdate=!1,g.matrixAutoUpdate=!1})},flat:!0,style:{marginBottom:"-42px",position:"relative",pointerEvents:"none",background:"transparent !important",height:`${a?37:o?100:60}px`},children:u?null:n.jsxs(n.Fragment,{children:[n.jsx(Jn,{}),n.jsx(Yn,{customData:r,minimal:a,matrixUpdate:s}),o&&n.jsx(Qn,{colorBlind:e,minimal:a,chart:t})]})}),u&&n.jsxs(Gn,{children:[n.jsx(vn,{})," PAUSED"]})]})},Jn=()=>(z(function({gl:t,scene:r,camera:s}){s.updateMatrix(),$.value-=1,s.matrixWorld.copy(s.matrix),s.matrixWorldInverse.copy(s.matrixWorld).invert(),t.render(r,s),Q.value=0,$.value=0},1/0),null);function es(e,t){if(e==null)return{};var r={},s=Object.keys(e),o,l;for(l=0;l=0)&&(r[o]=e[o]);return r}function ts(e,t){if(e==null)return{};var r=es(e,t),s,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s])}return r}const rs=["portal","className","children"],ns=i.forwardRef((e,t)=>{let{portal:r,className:s,children:o}=e,l=ts(e,rs);const a=K(g=>g.gl),c=i.useRef(null),u=i.useRef(null),d=(r==null?void 0:r.current)!=null?r.current:a.domElement.parentNode;return i.useLayoutEffect(()=>{if(!c.current||!d)return;const g=document.createElement("div"),h=u.current=$t(g);return d.appendChild(g),()=>{h.unmount(),u.current=null,d.removeChild(g)}},[d]),i.useLayoutEffect(()=>{const g=u.current;g&&g.render(n.jsx("div",{ref:t,className:s,children:o}))}),n.jsx("group",Ee(Ee({},l),{},{ref:c}))}),et=(e,t)=>{const r=o=>{switch(o){case 1e3:return"RepeatWrapping";case 1001:return"ClampToEdgeWrapping";case 1002:return"MirroredRepeatWrapping";default:return"ClampToEdgeWrapping"}},s=o=>{switch(o){case 3e3:return"LinearEncoding";case 3001:return"sRGBEncoding";case 3002:return"RGBEEncoding";case 3003:return"LogLuvEncoding";case 3004:return"RGBM7Encoding";case 3005:return"RGBM16Encoding";case 3006:return"RGBDEncoding";case 3007:return"GammaEncoding";default:return"ClampToEdgeWrapping"}};return{name:e,url:t.image.currentSrc,encoding:s(t.encoding),wrapT:r(t.image.wrapT),flipY:t.flipY.toString()}},ss=({program:e,material:t,setTexNumber:r})=>{const s=b(a=>a.gl),[o,l]=i.useState(null);return i.useEffect(()=>{if(s){const a=e==null?void 0:e.getUniforms();let c=0;const u=new Map;a.seq.forEach(d=>{if(!d.id.includes("uTroika")&&d.id!=="isOrthographic"&&d.id!=="uvTransform"&&d.id!=="lightProbe"&&d.id!=="projectionMatrix"&&d.id!=="viewMatrix"&&d.id!=="normalMatrix"&&d.id!=="modelMatrix"&&d.id!=="modelViewMatrix"){let g=[],h={name:d.id};d.cache&&(d.cache.forEach(f=>{typeof f<"u"&&g.push(f.toString().substring(0,4))}),h.value=g.join(),t[d.id]&&t[d.id].image&&t[d.id].image&&(c++,h.value=et(d.id,t[d.id])),h.value||(h.value="empty"),u.set(d.id,h))}}),t.uniforms&&Object.keys(t.uniforms).forEach(d=>{const g=t.uniforms[d];if(g.value){const{value:h}=g;let f={name:d};if(d.includes("uTroika"))return;if(h instanceof Nt)c++,f.value=et(d,h);else{let p=JSON.stringify(h);try{p=JSON.stringify(h)}catch{p=h.toString()}f.value=p}u.set(d,f)}}),c>0&&r(c),l(u)}},[]),n.jsx(jt,{children:o&&Array.from(o.values()).map(a=>n.jsx("span",{children:typeof a.value=="string"?n.jsx("li",{children:n.jsxs("span",{children:[a.name," :"," ",n.jsxs("b",{children:[a.value.substring(0,30),a.value.length>30?"...":""]})]})}):n.jsxs(n.Fragment,{children:[n.jsx("li",{children:n.jsxs("b",{children:[a.value.name,":"]})}),n.jsxs("div",{children:[Object.keys(a.value).map(c=>c!=="name"?n.jsx("div",{children:c==="url"?n.jsx("a",{href:a.value[c],target:"_blank",children:n.jsx("img",{src:a.value[c]})}):n.jsxs("li",{children:[c,": ",n.jsx("b",{children:a.value[c]})]})},c):null),n.jsxs(Mt,{onClick:()=>{var c;console.info(t[a.value.name]||(t==null||(c=t.uniforms[a.value.name])===null||c===void 0?void 0:c.value))},children:["console.info(",a.value.name,");"]})]})]})},a.name))})},os=({el:e})=>{b(s=>s.log);const t=b(s=>s.gl),r=s=>{if(!t)return 0;const o=Math.round(s.drawCounts.total/(t.info.render.triangles+t.info.render.lines+t.info.render.points)*100*10)/10;return isFinite(o)&&o||0};return n.jsx(n.Fragment,{children:e.drawCounts.total>0&&n.jsxs(P,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[e.drawCounts.type==="Triangle"?n.jsx(wt,{style:{top:"-1px"}}):n.jsx(Ct,{style:{top:"-1px"}}),e.drawCounts.total,n.jsxs("small",{children:[e.drawCounts.type,"s"]}),t&&n.jsxs(H,{style:{bottom:"-10px",width:"40px",fontWeight:"bold"},children:[e.visible&&!e.material.wireframe?r(e):0,"%"]})]})})},is=({el:e})=>{const[t,r]=i.useState(e.visible),[s,o]=i.useState(e.expand),[l,a]=i.useState(0),{meshes:c,program:u,material:d}=e;return n.jsxs(Vn,{children:[n.jsxs($n,{onClick:()=>{e.expand=!s,Object.keys(c).forEach(g=>{const h=c[g];h.material.wireframe=!1}),o(!s)},children:[n.jsx(_e,{style:{marginRight:"6px"},children:s?n.jsx("span",{children:n.jsx(vt,{})}):n.jsx("span",{children:n.jsx(yt,{})})}),u&&n.jsxs("span",{children:[n.jsx(Bn,{children:u.name}),n.jsxs(P,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[n.jsx(dn,{style:{top:"-1px"}}),Object.keys(c).length,n.jsx("small",{children:Object.keys(c).length>1?"users":"user"})]}),l>0&&n.jsxs(P,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[l>1?n.jsx(Le,{style:{top:"-1px"}}):n.jsx(Le,{style:{top:"-1px"}}),l,n.jsx("small",{children:"tex"})]}),n.jsx(os,{el:e}),d.glslVersion==="300 es"&&n.jsxs(P,{style:{height:"auto",width:"auto",margin:"0 4px"},children:[n.jsx(wn,{style:{top:"-1px"}}),"300",n.jsx("small",{children:"es"}),n.jsx(H,{style:{bottom:"-10px",width:"40px"},children:"glsl"})]})]}),n.jsx(Nn,{onPointerEnter:()=>{Object.keys(c).forEach(g=>{const h=c[g];h.material.wireframe=!0})},onPointerLeave:()=>{Object.keys(c).forEach(g=>{const h=c[g];h.material.wireframe=!1})},onClick:g=>{g.stopPropagation(),Object.keys(c).forEach(h=>{const f=c[h],p=!t;f.visible=p,e.visible=p,r(p)})},children:t?n.jsx(on,{}):n.jsx(nn,{})})]}),n.jsxs("div",{style:{maxHeight:s?"9999px":0,overflow:"hidden"},children:[n.jsxs(Je,{children:[n.jsx(Xr,{})," Uniforms:"]}),n.jsx(ss,{program:u,material:d,setTexNumber:a}),n.jsxs(Je,{children:[n.jsx(Qr,{})," Geometries:"]}),n.jsx(jt,{children:c&&Object.keys(c).map(g=>c[g]&&c[g].geometry&&n.jsxs(Xn,{children:[n.jsxs("span",{children:[c[g].geometry.type,": "]}),c[g].userData&&c[g].userData.drawCount&&n.jsxs("b",{children:[n.jsxs("div",{children:[c[g].userData.drawCount.count,n.jsxs("small",{children:[" ",c[g].userData.drawCount.type,"s"]})]}),n.jsx("br",{}),n.jsxs("div",{children:[Math.round(Zr(c[g].geometry)/1024*1e3)/1e3,"Kb",n.jsx("small",{children:" memory used"})]})]})]},g))}),n.jsxs(Mt,{onClick:()=>{console.info(d)},children:["console.info(",d.type,")"]})]})]})},as=()=>{b(t=>t.triggerProgramsUpdate);const e=b(t=>t.programs);return n.jsx(qn,{children:e&&Array.from(e.values()).map(t=>t&&t?n.jsx(is,{el:t},t.material.uuid):null)})},A=e=>({overClock:"#ff6eff",fps:e?"100, 143, 255":"238,38,110",cpu:e?"254, 254, 98":"66,226,46",gpu:e?"254,254,254":"253,151,31",custom:e?"86,180,233":"40,255,255"}),cs=({showGraph:e,colorBlind:t})=>{const r=b(o=>o.overclockingFps),s=b(o=>o.fpsLimit);return n.jsxs(H,{style:e?{color:r?A(t).overClock.toString():`rgb(${A(t).fps})`}:{},children:["FPS ",r?`${s}🚀`:""]})},ls=({showGraph:e,colorBlind:t,customData:r,minimal:s})=>{const o=b(l=>l.gl);return o?n.jsxs(Un,{children:[n.jsxs(P,{children:[n.jsx(pn,{}),n.jsx(H,{style:e?{color:`rgb(${A(t).gpu.toString()})`}:{},children:"GPU"}),n.jsx(ye,{children:"ms"})]}),n.jsxs(P,{children:[n.jsx(jn,{}),n.jsx(H,{style:e?{color:`rgb(${A(t).cpu.toString()})`}:{},children:"CPU"}),n.jsx(ye,{children:"ms"})]}),n.jsxs(P,{children:[n.jsx(ln,{}),n.jsx(cs,{showGraph:e,colorBlind:t})]}),!s&&o&&n.jsxs(P,{children:[n.jsx(Sn,{}),n.jsx(H,{children:o.info.render.calls===1?"call":"calls"})]}),!s&&o&&n.jsxs(P,{children:[n.jsx(wt,{}),n.jsx(H,{children:"Triangles"})]}),r&&n.jsxs(P,{children:[n.jsx(qr,{}),n.jsx(H,{style:e?{color:`rgb(${A(t).custom})`}:{},children:r.name}),r.info&&n.jsx(ye,{children:r.info})]})]}):null},us=({showGraph:e,colorBlind:t,deepAnalyze:r,customData:s,matrixUpdate:o,openByDefault:l,minimal:a})=>n.jsxs(n.Fragment,{children:[n.jsx(ls,{showGraph:e,colorBlind:t,customData:s,minimal:a}),!a&&n.jsx(fs,{matrixUpdate:o,openByDefault:l,deepAnalyze:r,showGraph:e})]}),ds=({matrixUpdate:e})=>n.jsxs("div",{children:[n.jsxs(P,{children:[n.jsx(gn,{}),n.jsx(H,{children:"Geometries"})]}),n.jsxs(P,{children:[n.jsx(Le,{}),n.jsx(H,{children:"Textures"})]}),n.jsxs(P,{children:[n.jsx(Ct,{}),n.jsx(H,{children:"shaders"})]}),n.jsxs(P,{children:[n.jsx(xn,{}),n.jsx(H,{children:"Lines"})]}),n.jsxs(P,{children:[n.jsx(Jr,{}),n.jsx(H,{children:"Points"})]}),e&&n.jsxs(P,{children:[n.jsx(tn,{}),n.jsx(H,{children:"Matrices"})]})]}),tt=({tab:e,title:t,set:r})=>{const s=b(o=>o.tab);return n.jsx(_e,{className:`${s===e?" __perf_toggle_tab_active":""}`,onClick:()=>{r(!0),b.setState({tab:e})},children:n.jsx("span",{children:t})})},fs=({openByDefault:e,showGraph:t,deepAnalyze:r,matrixUpdate:s})=>{const[o,l]=Zt.useState(e);return n.jsxs("span",{children:[n.jsx(ps,{show:o,showGraph:t,matrixUpdate:s}),e&&!r?null:n.jsxs(Dn,{className:"__perf_toggle",children:[r&&n.jsx(tt,{tab:"programs",title:"Programs",set:l}),r&&n.jsx(tt,{tab:"infos",title:"Infos",set:l}),n.jsx(_e,{onClick:()=>{l(!o)},children:o?n.jsxs("span",{children:[n.jsx(vt,{})," Minimize"]}):n.jsxs("span",{children:[n.jsx(yt,{})," More"]})})]})]})},ps=({show:e,showGraph:t,matrixUpdate:r})=>{const s=b(o=>o.tab);return n.jsxs(n.Fragment,{children:[n.jsx(ds,{matrixUpdate:r}),e&&n.jsx("div",{children:n.jsx(Wn,{style:{marginTop:t?"38px":0},children:s==="programs"&&n.jsx(as,{})})})]})},hs=({showGraph:e,colorBlind:t,openByDefault:r,className:s,overClock:o,style:l,position:a,chart:c,deepAnalyze:u,antialias:d,customData:g,matrixUpdate:h,minimal:f})=>{const p=i.useRef(null);return n.jsxs(n.Fragment,{children:[n.jsx(bt,{chart:c,overClock:o,deepAnalyze:u,matrixUpdate:h}),n.jsx(ns,{transform:!1,children:n.jsxs(Fn,{className:(s?" ".concat(s):" ")+` ${a||""} ${f?"minimal":""}`,style:Ee({minHeight:f?"37px":e?"100px":"60px"},l),ref:p,children:[n.jsx(Kn,{perfContainerRef:p,colorBlind:t,chart:c,showGraph:e,antialias:d,customData:g,minimal:f,matrixUpdate:h}),n.jsx(us,{colorBlind:t,showGraph:e,deepAnalyze:u,openByDefault:r,customData:g,matrixUpdate:h,minimal:f})]})})]})},gs=({headless:e=!1,colorBlind:t=!1,overClock:r=!1,showGraph:s=!0,trackCPU:o=!1,deepAnalyze:l=!1,antialias:a=!0,openByDefault:c=!0,customData:u,matrixUpdate:d=!1,position:g="top-right",chart:h={length:30,hz:15},className:f,style:p,minimal:m=!1})=>e?n.jsx(bt,{chart:h,deepAnalyze:l,matrixUpdate:d,overClock:r}):n.jsx(hs,{colorBlind:t,showGraph:s,trackCPU:o,openByDefault:c,className:f,style:p,overClock:r,position:g,antialias:a,chart:h,deepAnalyze:l,minimal:m,customData:u,matrixUpdate:d}),ms=(e,t,r,s,o)=>{const l=new Bt,a=1e-5;l.absarc(a,a,a,-Math.PI/2,-Math.PI,!0),l.absarc(a,t-s*2,a,Math.PI,Math.PI/2,!0),l.absarc(e-s*2,t-s*2,a,Math.PI/2,0,!0),l.absarc(e-s*2,a,a,0,-Math.PI/2,!0);const c=new Wt(l,{depth:r-s*2,bevelEnabled:!0,bevelSegments:o,steps:2,bevelSize:s,bevelThickness:s,curveSegments:o});c.center();const u=[],d=c.getAttribute("normal"),g=c.getAttribute("position");for(let h=0;h.9?(m=p.x/e+.5,w=1-(p.z/r+.5)):Math.abs(f.x)>.9?(m=-p.z/r+.5,w=1-(-p.y/t+.5)):Math.abs(f.z)>.9&&(m=p.x/e+.5,w=1-(-p.y/t+.5)),u.push(m,w)}return c.setAttribute("uv",new qt(u,2)),c};ms(10,10,10,2,10);const Re=new Vt(10,10,10),St=e=>e.node_type==="topic"&&(e.scale||1)>5,xs=500,Cs=800;let ne=null;const vs=500,ze=(e,t)=>{if(ne)return null;ne=setTimeout(()=>{ne&&(clearTimeout(ne),ne=null)},vs);const r=[];return e.forEach(o=>{const l=t.position.distanceTo(Dt.set(o.x,o.y,o.z));lo.distance-l.distance).slice(0,xs).map(o=>o.id)},G=new j(5e3,600,1600),rt=100,ys=600,ws=2e3,we={x:172.7392402058252,y:-239.04675366094037,z:-2e3};let X,se;const bs=4e3,js=2e3,Ms=e=>{const t=U(),r=v(y=>y.cameraFocusTrigger),s=N(y=>y.isUserDragging),o=N(y=>y.isUserScrolling),l=N(y=>y.setUserMovedCamera),a=v(y=>y.setNearbyNodeIds),c=v(y=>y.showSelectionGraph),u=v(y=>y.data),d=v(y=>y.graphStyle),{camera:g}=K(),[h,f]=i.useState(!1),[p,m]=i.useState(!1),[w,x]=i.useState(rt),C=i.useMemo(()=>{if(c)return new j(0,0,0);const y=u==null?void 0:u.nodes.find(V=>V.ref_id===(t==null?void 0:t.ref_id));let _=new j(2e3,2e3,3e3);if(y&&u){const V=u==null?void 0:u.nodes.filter(D=>{var ke;return(ke=y.children)==null?void 0:ke.find(Ot=>Ot===D.id)}),J=new j(y.x,y.y,y.z);let Ce=new j(0,0,0);V.map(D=>(Ce=Ce.add(new j(D.x,D.y,D.z).normalize()),D));const zt=y.scale?1-1/(y.scale+10):1,Ht=J.sub(Ce).multiplyScalar(.8*zt);_=J.add(Ht)}return _},[c,t,u]),M=i.useMemo(()=>{if(c)return new j(0,0,0);const y=u==null?void 0:u.nodes.find(_=>_.ref_id===(t==null?void 0:t.ref_id));return new j((y==null?void 0:y.x)||0,(y==null?void 0:y.y)||0,(y==null?void 0:y.z)||0)},[c,t,u]);i.useEffect(()=>{var y;c&&((y=e.current)==null||y.setLookAt(we.x,we.y,we.z,0,0,0,!1)),S()},[c]),i.useEffect(()=>{c?x(ws):(t==null?void 0:t.node_type)==="topic"?x(ys):x(rt)},[t,x,c]),i.useEffect(()=>{I()},[r]),i.useEffect(()=>{(s||o)&&(f(!0),m(!0))},[s,o,f,m]),i.useEffect(()=>{if(t)if(!c&&d==="earth"&&(e!=null&&e.current)){const y=e.current.camera.position.distanceTo(new j),_=Xt(M,-y/2);e.current.setLookAt(_.x,_.y,_.z,0,0,0,!0)}else X&&clearTimeout(X),X=setTimeout(()=>{m(!0),clearTimeout(X)},js),S();return()=>{X&&clearTimeout(X),se&&clearTimeout(se)}},[t]),z(y=>{e.current&&(h||E(C,y.camera),p||T(M,y.camera))});const S=()=>{if(t){const y=g.position.distanceTo(C);gr(y)}I()},I=()=>{f(!1),m(!1),l(!1),se&&clearTimeout(se),se=setTimeout(()=>{f(!0),m(!0)},bs)},E=(y,_)=>{if(_.position.distanceTo(y){var V;(V=e==null?void 0:e.current)==null||V.setLookAt(_.position.x,_.position.y,_.position.z,y.x,y.y,y.z,!0)};return null},Ss=1;let Z=null;const Ls=(e,{enabled:t})=>{const r=U();Ms(e);const s=N(g=>g.isUserDragging),o=v(g=>g.disableCameraRotation),l=v(g=>g.data),a=v(g=>g.graphStyle),c=v(g=>g.graphRadius),u=v(g=>g.setNearbyNodeIds);i.useEffect(()=>{t||(Z==null||Z.kill(),Z=null)},[t]);const d=i.useCallback(()=>{Z==null||Z.kill();const g={value:-244},h=mr.to(g,{duration:5,keyframes:{"0%":{value:10},"100%":{delay:2,ease:"Power4.easeIn",value:-200}},onComplete:()=>{Z=null},onInterrupt(){h.kill()},onUpdate:()=>{var p;const{value:f}=g;if(e.current){const m=ze((l==null?void 0:l.nodes)||[],e.current.camera);m&&u(m),(p=e.current)==null||p.dolly(f,!1)}}});h.play(),Z=h},[]);return i.useEffect(()=>{e.current&&c&&(a==="sphere"?(e.current.maxDistance=8e3,e.current.minDistance=200,e.current.setTarget(0,0,500,!0)):(e.current.maxDistance=e.current.getDistanceToFitSphere(c+200),e.current.minDistance=100))},[c,a,e]),i.useEffect(()=>{d()},[d,a]),i.useEffect(()=>{!r&&e.current&&e.current.setLookAt(G.x,G.y,G.z,0,0,0,!0)},[r]),z((g,h)=>{e.current&&(!o&&!s&&(e.current.azimuthAngle+=Ss*h*at.DEG2RAD),e.current.update(h))}),null},Es=({disableAnimations:e})=>{const t=i.useRef(null),r=v(f=>f.graphStyle),s=v(f=>f.data),o=v(f=>f.setNearbyNodeIds),l=v(f=>f.setDisableCameraRotation),[a]=i.useState(.8),{camera:c}=K(),[u,d,g,h]=N(f=>[f.isUserDragging,f.setIsUserDragging,f.isUserScrolling,f.isUserScrollingOnHtmlPanel]);return Ls(t,{enabled:!e&&!g&&!u}),i.useEffect(()=>{t.current&&t.current.setLookAt(G.x,G.y,G.z,0,0,0,!0)},[r]),i.useEffect(()=>{if(!u){const f=ze((s==null?void 0:s.nodes)||[],c);f&&o(f)}},[c,c.position,c.position.x,c.position.y,c.position.z,s==null?void 0:s.nodes,o,u]),i.useEffect(()=>{u&&l(!0)},[u,l]),n.jsx(xr,{ref:t,boundaryEnclosesCamera:!0,enabled:!h,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>d(!1),onStart:()=>d(!0),smoothTime:a})},xe={metalness:.9,roughness:0},Rs={...xe},Is=new ce(Rs),Ps=({hide:e})=>{const t=Te(),r=v(o=>o.graphStyle),s=i.useMemo(()=>t.nodes.map((o,l)=>{if(o.node_type==="topic")return!1;const a=!St(o),c=Pe(o.node_type||"",!0);return n.jsx(xt,{color:c,name:o.id,position:[o.x,o.y,o.z],scale:a?(o.scale||1)*.9:0,userData:o},`${o.ref_id||o.id}-instanced-node-${l}-${r}`)}),[r,t]);return n.jsx(Vr,{geometry:Re,material:Is,visible:!e,children:s})},Lt=new me,ge=Lt.load("noimage.jpeg"),nt=new ce({...xe,map:ge}),Et=.4,As=new ce({...xe,map:ge,transparent:!0,opacity:Et}),ue={},Ts=(e,t)=>{const[r,s]=i.useState(ge),[o,l]=i.useState(nt);return i.useEffect(()=>{const a=`${e}${t&&"-transparent"}`;if(ue[a]){s(ue[a].texture),l(ue[a].material);return}Lt.load(e,c=>{const u=new ce({map:c,transparent:t,opacity:t?Et:1,...xe});ue[a]={texture:c,material:u},s(c),l(u)},void 0,()=>{s(ge),l(t?As:nt)})},[e,t]),i.useEffect(()=>function(){r.dispose(),o.dispose()},[r,o]),o},He=i.memo(({node:e,hide:t,animated:r})=>{const s=i.useRef(null),[o]=i.useState(Re),l=U(),a=v(g=>g.showSelectionGraph),c=!!l&&e.ref_id===l.ref_id,u=Ts(e.image_url||"noimage.jpeg",!1);z((g,h)=>{r&&s.current&&(s.current.position.set(e.x,e.y,e.z),c&&(s.current.rotation.y+=h*1,s.current.rotation.x-=h*.6))}),i.useEffect(()=>function(){o.dispose()},[o]);const d=i.useMemo(()=>a&&c?20:c?(e.scale||1)*1.2:e.scale,[e,c,a]);return n.jsx(Cr,{enabled:!!c,children:n.jsx("mesh",{ref:s,geometry:Re,material:u,name:e.id,position:[e.x,e.y,e.z],scale:d,userData:e,visible:!t})})});He.displayName="Cube";const _s=q(ct)` text-align: center; diff --git a/build/assets/index-4e0797a7.js b/build/assets/index-0c223900.js similarity index 93% rename from build/assets/index-4e0797a7.js rename to build/assets/index-0c223900.js index af9ca9a47..2f640380d 100644 --- a/build/assets/index-4e0797a7.js +++ b/build/assets/index-0c223900.js @@ -1,4 +1,4 @@ -import{db as m,f as a,h as r,a_ as i,F as l,r as v,j as e}from"./index-c522bd40.js";import{u as b}from"./index-dae8afeb.js";import{b as w}from"./react-toastify.esm-1e5f1e5f.js";const y=m` +import{db as m,f as a,h as r,a_ as i,F as l,r as v,j as e}from"./index-b85f35cf.js";import{u as b}from"./index-b9c9b7e2.js";import{b as w}from"./react-toastify.esm-ce67a4f9.js";const y=m` 0% { transform: scale(0.8); } diff --git a/build/assets/index-70d242b4.js b/build/assets/index-111127f1.js similarity index 92% rename from build/assets/index-70d242b4.js rename to build/assets/index-111127f1.js index efaa94213..7a1774c67 100644 --- a/build/assets/index-70d242b4.js +++ b/build/assets/index-111127f1.js @@ -1,4 +1,4 @@ -import{j as e,f as l,h as o,F as c,r as i,i as S,a3 as b,z as M,bh as $}from"./index-c522bd40.js";import{B as E}from"./index-4e0797a7.js";import{u as w}from"./index-dae8afeb.js";import{S as R}from"./Skeleton-e77d8e84.js";import{C as D,B as y}from"./react-toastify.esm-1e5f1e5f.js";const T=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"})]}),z=({nodeName:d})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(I,{children:e.jsx(T,{})}),e.jsxs(A,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),A=l(c)` +import{j as e,f as l,h as o,F as c,r as i,i as S,a3 as b,z as M,bh as $}from"./index-b85f35cf.js";import{B as E}from"./index-0c223900.js";import{u as w}from"./index-b9c9b7e2.js";import{S as R}from"./Skeleton-bd55acf5.js";import{C as D,B as y}from"./react-toastify.esm-ce67a4f9.js";const T=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"})]}),z=({nodeName:d})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(I,{children:e.jsx(T,{})}),e.jsxs(A,{children:["Are you sure you want to delete ",d||"this item","?"]})]})}),A=l(c)` color: ${o.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-2ab7123b.js b/build/assets/index-1e89d407.js similarity index 94% rename from build/assets/index-2ab7123b.js rename to build/assets/index-1e89d407.js index 1adf8afc7..46026a627 100644 --- a/build/assets/index-2ab7123b.js +++ b/build/assets/index-1e89d407.js @@ -1,4 +1,4 @@ -import{f as t,h as o,F as d,j as a}from"./index-c522bd40.js";const i={podcast:{img:"audio_badge.svg",label:"podcast"},clip:{img:"audio_badge.svg",label:"clip"},show:{img:"show_badge.svg",label:"show"},tweet:{img:"twitter_badge.svg",label:"tweet"},twitter_space:{img:"audio_badge.svg",label:"clip"},youtube:{img:"video_badge.svg",label:"clip"},episode:{img:"video_badge.svg",label:"episode"},document:{img:"notes_badge.svg",label:"text"},image:{img:"image_badge.png",label:"image"}},p=({type:e})=>{var g,s,l;return a.jsxs(r,{children:[a.jsx("img",{alt:((g=i[e])==null?void 0:g.label)||e,className:"badge__img",src:((s=i[e])==null?void 0:s.img)||"generic_badge.svg"}),a.jsx("div",{className:"badge__label",children:((l=i[e])==null?void 0:l.label)||e})]})},r=t(d).attrs({direction:"row"})` +import{f as t,h as o,F as d,j as a}from"./index-b85f35cf.js";const i={podcast:{img:"audio_badge.svg",label:"podcast"},clip:{img:"audio_badge.svg",label:"clip"},show:{img:"show_badge.svg",label:"show"},tweet:{img:"twitter_badge.svg",label:"tweet"},twitter_space:{img:"audio_badge.svg",label:"clip"},youtube:{img:"video_badge.svg",label:"clip"},episode:{img:"video_badge.svg",label:"episode"},document:{img:"notes_badge.svg",label:"text"},image:{img:"image_badge.png",label:"image"}},p=({type:e})=>{var g,s,l;return a.jsxs(r,{children:[a.jsx("img",{alt:((g=i[e])==null?void 0:g.label)||e,className:"badge__img",src:((s=i[e])==null?void 0:s.img)||"generic_badge.svg"}),a.jsx("div",{className:"badge__label",children:((l=i[e])==null?void 0:l.label)||e})]})},r=t(d).attrs({direction:"row"})` cursor: pointer; background: ${o.white}; border-radius: 3px; diff --git a/build/assets/index-f4cecc6a.js b/build/assets/index-27eeda15.js similarity index 79% rename from build/assets/index-f4cecc6a.js rename to build/assets/index-27eeda15.js index f4791dbcd..7a9d33115 100644 --- a/build/assets/index-f4cecc6a.js +++ b/build/assets/index-27eeda15.js @@ -1,4 +1,4 @@ -import{f as N,T as B,j as e,F as a,C,r as s,a3 as L,h as v,z as F,D as b}from"./index-c522bd40.js";import{B as z}from"./index-4e0797a7.js";import{u as x}from"./index-dae8afeb.js";import{c as D,F as k,B as I,C as M}from"./react-toastify.esm-1e5f1e5f.js";import{u as R}from"./index-fd857883.js";import{T as _}from"./index-2d16147d.js";import{S as A}from"./Skeleton-e77d8e84.js";import"./index.esm-f21f36d4.js";import"./InfoIcon-6417fafc.js";const P=()=>e.jsxs(a,{children:[e.jsx(a,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(a,{align:"center",direction:"row",children:e.jsx(V,{children:"Edit node name"})})}),e.jsx(a,{mb:12,children:e.jsx(_,{id:"cy-topic",maxLength:50,name:"topic",placeholder:"Node name",rules:{...C}})})]}),V=N(B)` +import{f as N,T as B,j as e,F as a,C,r as s,a3 as L,h as v,z as F,D as b}from"./index-b85f35cf.js";import{B as z}from"./index-0c223900.js";import{u as x}from"./index-b9c9b7e2.js";import{c as D,F as k,B as I,C as M}from"./react-toastify.esm-ce67a4f9.js";import{u as R}from"./index-856cc0ad.js";import{T as _}from"./index-e6f0fb8d.js";import{S as A}from"./Skeleton-bd55acf5.js";import"./index.esm-ac56504e.js";import"./InfoIcon-de2f1e11.js";const P=()=>e.jsxs(a,{children:[e.jsx(a,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(a,{align:"center",direction:"row",children:e.jsx(V,{children:"Edit node name"})})}),e.jsx(a,{mb:12,children:e.jsx(_,{id:"cy-topic",maxLength:50,name:"topic",placeholder:"Node name",rules:{...C}})})]}),V=N(B)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-2be12e8f.js b/build/assets/index-2be12e8f.js new file mode 100644 index 000000000..2fb6679de --- /dev/null +++ b/build/assets/index-2be12e8f.js @@ -0,0 +1,127 @@ +import{f as y,h as j,F as t,T as S,x as $,r as h,j as e,bb as V,bc as W,C as B,b3 as H,I as K,b5 as Q,i as X,b4 as N,U as _,bg as Z,o as ee,be as te}from"./index-b85f35cf.js";import{B as T,C as M,i as se,c as oe,F as ne}from"./react-toastify.esm-ce67a4f9.js";import{B as re}from"./index-0c223900.js";import{u as I}from"./index-b9c9b7e2.js";import{S as ie}from"./index-7e285ddc.js";import{h as ae}from"./index.esm-ac56504e.js";import{C as ce}from"./CheckIcon-b94a1aa2.js";import{T as E}from"./index-e6f0fb8d.js";import{p as le}from"./index-30d16895.js";import{A as de}from"./index-39ab8de8.js";import{a as pe,i as xe}from"./constants-cde8ebc3.js";import"./InfoIcon-de2f1e11.js";import"./Popover-28c1573e.js";import"./useSlotProps-b8a587b0.js";import"./Select-f3cb55de.js";import"./Stack-b0e83988.js";import"./Popper-704ca55a.js";const me=({onClick:s,loading:p,error:c})=>{const x=$(a=>a.budget),[l,r]=h.useState(10),i="node";return h.useEffect(()=>{(async()=>{try{const m=await W(i);r(m.data.price)}catch(m){console.error("cannot fetch",m)}})()},[i]),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(fe,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ue,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[l," sats"]})]}),e.jsxs(he,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[V(x)," sats"]})]})]}),e.jsx(t,{children:e.jsx(T,{color:"secondary","data-testid":"check-icon",disabled:p||!!c,onClick:s,size:"large",startIcon:p?e.jsx(M,{size:24}):e.jsx(ce,{}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsxs(ge,{role:"tooltip",children:[e.jsxs(ye,{children:[e.jsx(ae,{fontSize:13}),e.jsx("span",{children:c})]}),e.jsx("div",{className:"tooltip",children:c})]}):null]})},ue=y(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` + width: 141px; + height: 61px; + border: 1px solid ${j.GRAY7}; + border-radius: 6px; + padding: 16px; + .title { + font-family: Barlow; + color: ${j.secondaryText4}; + font-size: 11px; + font-style: normal; + font-weight: 600; + } + + .value { + font-family: Barlow; + color: ${j.white}; + font-size: 18px; + font-style: normal; + font-weight: 500; + } +`,he=y(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` + color: ${j.secondaryText4}; + .title { + font-family: Barlow; + font-size: 11px; + font-style: normal; + font-weight: 600; + } + + .value { + font-family: Barlow; + font-size: 14px; + font-style: normal; + font-weight: 400; + } +`,fe=y(S)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,ye=y(t)` + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; + white-space: normal; + letter-spacing: 0.2px; + cursor: pointer; + padding-left: 4px; + font-size: 13px; + font-family: Barlow; + line-height: 18px; + justify-content: center; + + span { + margin-left: 4px; + } +`,ge=y(t)` + display: flex; + align-items: center; + color: ${j.primaryRed}; + position: relative; + margin-top: 20px; + + .tooltip { + position: absolute; + background-color: ${j.black}; + opacity: 0.8; + border-radius: 4px; + color: ${j.white}; + top: -10px; + left: 335px; + padding: 4px 8px; + font-size: 13px; + font-family: Barlow; + visibility: hidden; + width: 175px; + z-index: 1; + } + + &:hover .tooltip { + visibility: visible; + } + + &:focus .tooltip { + visibility: visible; + } +`,je=({type:s,onclose:p})=>e.jsxs(t,{children:[e.jsx(t,{mb:20,children:e.jsx(F,{children:"Comfirm New Type"})}),e.jsx(t,{mb:25,children:e.jsxs(F,{children:["Type: ",s]})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(T,{color:"secondary",onClick:p,size:"large",variant:"contained",children:"Cancel"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(T,{color:"secondary",size:"large",type:"submit",variant:"contained",children:"Confirm"})})]})]}),F=y(S)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,we=({skipToStep:s,nodeType:p})=>{const[c,x]=h.useState(!1),[l,r]=h.useState(),{watch:i,formState:{isValid:a}}=se();h.useEffect(()=>{(async()=>{x(!0);const o=await H(p),f=le(o);r(f),x(!1)})()},[p,i]);const m=n=>n.charAt(0).toUpperCase()+n.slice(1).replace(/_/g," "),u=l?[...l].sort((n,o)=>n.required&&!o.required?-1:!n.required&&o.required?1:0):[];return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(be,{children:"Set Attributes"})})}),e.jsx(Se,{children:c?e.jsx(t,{style:{margin:"auto"},children:e.jsx(M,{color:j.SECONDARY_BLUE})}):e.jsx(t,{className:"input__wrapper",children:u==null?void 0:u.map(({key:n,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(Te,{children:[e.jsx(S,{children:m(n)}),e.jsx(E,{id:"item-name",name:n,placeholder:o?"Required":"Optional",rules:{...o?B:{}}})]})}))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(T,{color:"secondary",onClick:()=>s("sourceType"),size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(T,{color:"secondary",disabled:!a||c||(l==null?void 0:l.some(n=>n.required&&!i(n.key))),onClick:()=>s("setBudget"),size:"large",variant:"contained",children:"Next"})})]})]})},be=y(S)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,Se=y(t)` + width: 100%; + display: flex; + justify-content: center; + gap: 10px; + margin: 0 0 15px 0; + + .input__wrapper { + display: flex; + gap: 15px; + max-height: 225px; + overflow-y: auto; + padding-right: 20px; + width: calc(100% + 20px); + } +`,Te=y(t)` + display: flex; + gap: 10px; + + #item-name { + color: ${j.GRAY7}; + -webkit-text-fill-color: ${j.GRAY7}; + } +`,Ce=({type:s,skipToStep:p,name:c,sourceLink:x})=>{const l=s==="Image"?c&&x:c;return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(Ne,{children:"Enter details"})})}),e.jsx(t,{mb:4,children:e.jsxs(S,{children:[s," name"]})}),e.jsx(t,{mb:12,children:e.jsx(E,{id:"cy-item-name",maxLength:250,name:"typeName",placeholder:"Paste name here...",rules:{...B}})}),s==="Image"?e.jsxs(e.Fragment,{children:[e.jsx(t,{mb:4,children:e.jsx(S,{children:"Link"})}),e.jsx(t,{mb:12,children:e.jsx(E,{id:"cy-item-link",maxLength:250,name:"sourceLink",placeholder:"Paste link here...",rules:{...B}})})]}):null,e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(T,{color:"secondary",onClick:()=>p("sourceType"),size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(T,{color:"secondary",disabled:!l,onClick:()=>p("setBudget"),size:"large",variant:"contained",children:"Next"})})]})]})},Ne=y(S)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,ke=s=>s.charAt(0).toUpperCase()+s.slice(1),ve=({skipToStep:s,allowNextStep:p,onSelectType:c,selectedType:x})=>{const[l]=K(n=>[n.customSchemaFlag]),[r,i]=h.useState(null),[a,m]=h.useState(!1);h.useEffect(()=>{(async()=>{if(l){m(!0);try{const o=await Q(),f=["about","schema"],g=o.schemas.filter(w=>!f.includes(w.type)&&!w.is_deleted).map(w=>({label:ke(w.type),value:w.type,type:w.type,action:()=>s("setAttribues")}));i(g)}catch(o){console.warn(o)}finally{m(!1)}}else i([...pe,xe])})()},[x,l,s]);const u=n=>{c((n==null?void 0:n.label)||"")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ze,{children:"Select Type"})})}),e.jsx(t,{direction:"row",mb:20,children:e.jsx(de,{autoFocus:!0,isLoading:a,onSelect:u,options:r})}),e.jsx(t,{children:e.jsx(T,{color:"secondary",disabled:!p,onClick:()=>s("source"),size:"large",type:"button",variant:"contained",children:"Next"})})]})},ze=y(S)` + font-size: 22px; + font-weight: 600; + font-family: 'Barlow'; +`,Be=async(s,p,c)=>{var x,l;if(s.nodeType==="Create custom type"){s.type;try{const r=await _.post("/schema",JSON.stringify(s),{});if(r.error){const{message:i}=r.error;throw new Error(i)}c(s,(x=r==null?void 0:r.data)==null?void 0:x.ref_id),close()}catch(r){let i=N;if(r.status===400){const a=await r.json();i=a.errorCode||(a==null?void 0:a.status)||N}else r instanceof Error&&(i=r.message);throw new Error(i)}}else{const r="node",{nodeType:i,typeName:a,...m}=s,u={node_data:{...m},node_type:i,name:a};s.nodeType==="Image"&&(u.node_data={...s.node_data,source_link:s.sourceLink});let n="";await Z(async()=>{const o=await ee.enable();u.pubkey=o==null?void 0:o.pubkey,n=await te()});try{const o=await _.post(`/${r}`,JSON.stringify(u),{Authorization:n});if(o.error){const{message:f}=o.error;throw new Error(f)}c(s,(l=o==null?void 0:o.data)==null?void 0:l.ref_id),close()}catch(o){let f=N;if(o.status===400)try{const g=await o.json();f=g.message||g.errorCode||(g==null?void 0:g.status)||N}catch{f=N}else o instanceof Error&&(f=o.message);throw new Error(f)}}},Ve=()=>{const[s,p]=h.useState("sourceType"),{close:c,visible:x}=I("addItem"),{open:l}=I("addType"),[r]=$(d=>[d.setBudget]),i=oe({mode:"onChange"}),{watch:a,setValue:m,reset:u}=i,[n,o]=h.useState(!1),[f,g]=h.useState(""),[w,O]=X(d=>[d.addNewNode,d.setSelectedNode]);h.useEffect(()=>()=>{p("sourceType"),u()},[x,u]);const v=a("nodeType"),P=a("typeName"),D=a("sourceLink"),R=a("type");a("title");const L=()=>{c()},z=d=>{p(d)},q=(d,b)=>{const k=b||`new-id-${Math.random()}`,C=d.nodeType.toLocaleLowerCase(),A={name:d.typeName,type:C,label:d.typeName,node_type:C,id:k,ref_id:k,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...d.sourceLink?{source_link:d.sourceLink}:{}};w(A),O(A)},U=i.handleSubmit(async d=>{o(!0);try{await Be(d,r,q),ie("Item Added"),L()}catch(b){let k=N;if((b==null?void 0:b.status)===400){const C=await b.json();k=C.errorCode||(C==null?void 0:C.status)||N}else b instanceof Error&&(k=b.message);g(String(k))}finally{o(!1)}}),G=d=>{d==="Create custom type"?l():m("nodeType",d)},Y={sourceType:e.jsx(ve,{allowNextStep:!!v,onSelectType:G,selectedType:v,skipToStep:z}),source:e.jsx(Ce,{name:P,skipToStep:z,sourceLink:D||"",type:v}),setBudget:e.jsx(me,{loading:n,onClick:()=>null}),createConfirmation:e.jsx(je,{onclose:L,type:R}),setAttribues:e.jsx(we,{nodeType:v,skipToStep:z})},J="small";return e.jsx(re,{id:"addItem",kind:J,onClose:c,preventOutsideClose:!0,children:e.jsx(ne,{...i,children:e.jsx("form",{id:"add-node-form",onSubmit:U,children:Y[s]})})})};export{Ve as AddItemModal}; diff --git a/build/assets/index-3b73036d.js b/build/assets/index-31f1e4e1.js similarity index 93% rename from build/assets/index-3b73036d.js rename to build/assets/index-31f1e4e1.js index 161f84786..650bb1f16 100644 --- a/build/assets/index-3b73036d.js +++ b/build/assets/index-31f1e4e1.js @@ -1,4 +1,4 @@ -import{j as e,r as i,A as B,y as A,F as u,bi as C,f as d,T as F,a3 as O,h as v,B as M}from"./index-c522bd40.js";import{B as z}from"./index-4e0797a7.js";import{u as T}from"./index-dae8afeb.js";import{I as D,b as P,c as N,F as R,C as S,B as Y}from"./react-toastify.esm-1e5f1e5f.js";import{A as _,T as X}from"./index-211330ba.js";import{a as H}from"./constants-cde8ebc3.js";import{A as U}from"./index-fd857883.js";import"./Popover-243f389d.js";import"./useSlotProps-96b7890f.js";import"./Select-72591674.js";import"./Stack-f811e4d7.js";import"./Popper-831e364f.js";const V=s=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),Z=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),$=s=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),q=({selectedType:s,setSelectedType:l})=>{const[p,a]=i.useState([]);i.useEffect(()=>{(async()=>{try{const{data:x}=await B();a(x.edge_types)}catch(x){console.warn(x)}})()},[a]);const c=o=>({label:o,value:o}),h=o=>{l((o==null?void 0:o.value)||"")};return e.jsx(_,{onSelect:h,options:p.map(c),selectedValue:s?c(s):null})},G=({onSelect:s,selectedValue:l})=>{const[p,a]=i.useState([]),[c,h]=i.useState(!1),o=async t=>{const g={muted:"False",sort_by:U,search:t,skip:"0",limit:"1000"};h(!0);try{const n=await C(g.search);a(n.data)}catch{a([])}finally{h(!1)}},x=i.useMemo(()=>A.debounce(o,300),[]),j=t=>{if(!t){a([]);return}t.length>2&&x(t)},b=t=>{const g=t?p.find(n=>n.ref_id===t.value):null;s(g||null)},r=t=>({label:t.search_value,value:t.ref_id,type:t.node_type}),w=t=>t.map(r);return l?e.jsxs(u,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:l.search_value}),e.jsx(D,{onClick:()=>s(null),size:"small",children:e.jsx(P,{})})]}):e.jsx(_,{handleInputChange:j,isLoading:c,onSelect:b,options:w(p)||H,selectedValue:l?r(l):null})},J=({from:s,onSelect:l,selectedType:p,setSelectedType:a,selectedToNode:c,setIsSwapped:h,isSwapped:o})=>{const x=()=>{h()};return e.jsxs(u,{mb:20,children:[e.jsx(u,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(u,{align:"center",direction:"row",children:e.jsx(Q,{children:"Add Edge"})})}),e.jsxs(W,{swap:o,children:[e.jsx(u,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:s})}),e.jsxs(u,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(q,{selectedType:p,setSelectedType:a})]}),e.jsx(u,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(G,{onSelect:l,selectedValue:c})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx($,{})}),e.jsx(re,{onClick:x,children:e.jsx(Z,{})}),e.jsx(ie,{children:e.jsx(V,{})})]})]})]})},K=d.div` +import{j as e,r as i,A as B,y as A,F as u,bi as C,f as d,T as F,a3 as O,h as v,B as M}from"./index-b85f35cf.js";import{B as z}from"./index-0c223900.js";import{u as T}from"./index-b9c9b7e2.js";import{I as D,b as P,c as N,F as R,C as S,B as Y}from"./react-toastify.esm-ce67a4f9.js";import{A as _,T as X}from"./index-39ab8de8.js";import{a as H}from"./constants-cde8ebc3.js";import{A as U}from"./index-856cc0ad.js";import"./Popover-28c1573e.js";import"./useSlotProps-b8a587b0.js";import"./Select-f3cb55de.js";import"./Stack-b0e83988.js";import"./Popper-704ca55a.js";const V=s=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),Z=s=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),$=s=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),q=({selectedType:s,setSelectedType:l})=>{const[p,a]=i.useState([]);i.useEffect(()=>{(async()=>{try{const{data:x}=await B();a(x.edge_types)}catch(x){console.warn(x)}})()},[a]);const c=o=>({label:o,value:o}),h=o=>{l((o==null?void 0:o.value)||"")};return e.jsx(_,{onSelect:h,options:p.map(c),selectedValue:s?c(s):null})},G=({onSelect:s,selectedValue:l})=>{const[p,a]=i.useState([]),[c,h]=i.useState(!1),o=async t=>{const g={muted:"False",sort_by:U,search:t,skip:"0",limit:"1000"};h(!0);try{const n=await C(g.search);a(n.data)}catch{a([])}finally{h(!1)}},x=i.useMemo(()=>A.debounce(o,300),[]),j=t=>{if(!t){a([]);return}t.length>2&&x(t)},b=t=>{const g=t?p.find(n=>n.ref_id===t.value):null;s(g||null)},r=t=>({label:t.search_value,value:t.ref_id,type:t.node_type}),w=t=>t.map(r);return l?e.jsxs(u,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:l.search_value}),e.jsx(D,{onClick:()=>s(null),size:"small",children:e.jsx(P,{})})]}):e.jsx(_,{handleInputChange:j,isLoading:c,onSelect:b,options:w(p)||H,selectedValue:l?r(l):null})},J=({from:s,onSelect:l,selectedType:p,setSelectedType:a,selectedToNode:c,setIsSwapped:h,isSwapped:o})=>{const x=()=>{h()};return e.jsxs(u,{mb:20,children:[e.jsx(u,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(u,{align:"center",direction:"row",children:e.jsx(Q,{children:"Add Edge"})})}),e.jsxs(W,{swap:o,children:[e.jsx(u,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:s})}),e.jsxs(u,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx(q,{selectedType:p,setSelectedType:a})]}),e.jsx(u,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(G,{onSelect:l,selectedValue:c})]})}),e.jsxs(K,{children:[e.jsx(ne,{children:e.jsx($,{})}),e.jsx(re,{onClick:x,children:e.jsx(Z,{})}),e.jsx(ie,{children:e.jsx(V,{})})]})]})]})},K=d.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-04e75ad0.js b/build/assets/index-341edfe1.js similarity index 98% rename from build/assets/index-04e75ad0.js rename to build/assets/index-341edfe1.js index a25d78d45..a4946b2a8 100644 --- a/build/assets/index-04e75ad0.js +++ b/build/assets/index-341edfe1.js @@ -1,4 +1,4 @@ -import{a as ft,g as ht,s as j,c as $t,_ as b,r as d,u as vt,b as nt,d as $,j as v,e as St,aT as Lt,f as te,a_ as rt,F as ee,T as oe}from"./index-c522bd40.js";import{o as Nt,y as re,z as bt}from"./react-toastify.esm-1e5f1e5f.js";import{c as kt,d as Ft,o as At,u as lt,a as le}from"./useSlotProps-96b7890f.js";let K;function jt(){if(K)return K;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),K="reverse",t.scrollLeft>0?K="default":(t.scrollLeft=1,t.scrollLeft===0&&(K="negative")),document.body.removeChild(t),K}function ne(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(jt()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function se(t){return ht("MuiTab",t)}const ae=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=ae,ie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ce=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:i,label:h,selected:p,disabled:u}=t,S={root:["root",i&&h&&"labelIcon",`textColor${$t(l)}`,s&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(S,se,e)},de=j(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${$t(l.textColor)}`],l.fullWidth&&e.fullWidth,l.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)})),ue=d.forwardRef(function(e,l){const s=vt({props:e,name:"MuiTab"}),{className:n,disabled:i=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:S="top",indicator:B,label:w,onChange:m,onClick:g,onFocus:O,selected:I,selectionFollowsFocus:y,textColor:H="inherit",value:C,wrapped:st=!1}=s,D=nt(s,ie),U=b({},s,{disabled:i,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:S,label:!!w,fullWidth:p,textColor:H,wrapped:st}),X=ce(U),L=u&&w&&d.isValidElement(u)?d.cloneElement(u,{className:$(X.iconWrapper,u.props.className)}):u,J=R=>{!I&&m&&m(R,C),g&&g(R)},_=R=>{y&&!I&&m&&m(R,C),O&&O(R)};return v.jsxs(de,b({focusRipple:!h,className:$(X.root,n),ref:l,role:"tab","aria-selected":I,disabled:i,onClick:J,onFocus:_,ownerState:U,tabIndex:I?0:-1},D,{children:[S==="top"||S==="start"?v.jsxs(d.Fragment,{children:[L,w]}):v.jsxs(d.Fragment,{children:[w,L]}),B]}))}),Xe=ue,be=kt(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),pe=kt(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function fe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function he(t,e,l,s={},n=()=>{}){const{ease:i=fe,duration:h=300}=s;let p=null;const u=e[t];let S=!1;const B=()=>{S=!0},w=m=>{if(S){n(new Error("Animation cancelled"));return}p===null&&(p=m);const g=Math.min(1,(m-p)/h);if(e[t]=i(g)*(l-u)+u,g>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(w)};return u===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(w),B)}const ve=["onChange"],Se={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function xe(t){const{onChange:e}=t,l=nt(t,ve),s=d.useRef(),n=d.useRef(null),i=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return re(()=>{const h=Ft(()=>{const u=s.current;i(),u!==s.current&&e(s.current)}),p=At(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),d.useEffect(()=>{i(),e(s.current)},[e]),v.jsx("div",b({style:Se,ref:n},l))}function me(t){return ht("MuiTabScrollButton",t)}const ge=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ye=ge,Be=["className","slots","slotProps","direction","orientation","disabled"],we=t=>{const{classes:e,orientation:l,disabled:s}=t;return St({root:["root",l,s&&"disabled"]},me,e)},Ce=j(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ye.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Te=d.forwardRef(function(e,l){var s,n;const i=vt({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:S}=i,B=nt(i,Be),m=Lt().direction==="rtl",g=b({isRtl:m},i),O=we(g),I=(s=p.StartScrollButtonIcon)!=null?s:be,y=(n=p.EndScrollButtonIcon)!=null?n:pe,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=lt({elementType:y,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return v.jsx(Ce,b({component:"div",className:$(O.root,h),ref:l,role:null,ownerState:g,tabIndex:null},B,{children:S==="left"?v.jsx(I,b({},H)):v.jsx(y,b({},C))}))}),Ie=Te;function Ee(t){return ht("MuiTabs",t)}const Me=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),pt=Me,Re=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],zt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Wt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const i=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||i)n=l(t,n);else{n.focus();return}}},ze=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:i,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Ee,u)},We=j("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Pe=j("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.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"})),$e=j("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Le=j("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})),Ne=j(xe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Pt={},ke=d.forwardRef(function(e,l){const s=vt({props:e,name:"MuiTabs"}),n=Lt(),i=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:S=!1,children:B,className:w,component:m="div",allowScrollButtonsMobile:g=!1,indicatorColor:O="primary",onChange:I,orientation:y="horizontal",ScrollButtonComponent:H=Ie,scrollButtons:C="auto",selectionFollowsFocus:st,slots:D={},slotProps:U={},TabIndicatorProps:X={},TabScrollButtonProps:L={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:at=!1}=s,Ot=nt(s,Re),E=R==="scrollable",T=y==="vertical",Y=T?"scrollTop":"scrollLeft",Q=T?"top":"left",Z=T?"bottom":"right",it=T?"clientHeight":"clientWidth",V=T?"height":"width",N=b({},s,{component:m,allowScrollButtonsMobile:g,indicatorColor:O,orientation:y,vertical:T,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:at,fixed:!E,hideScrollbar:E&&!at,scrollableX:E&&!T,scrollableY:E&&T,centered:S&&!E,scrollButtonsHideMobile:!g}),W=ze(N),Ht=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:U.startScrollButtonIcon,ownerState:N}),Dt=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:U.endScrollButtonIcon,ownerState:N}),[xt,Xt]=d.useState(!1),[k,mt]=d.useState(Pt),[gt,_t]=d.useState(!1),[yt,Kt]=d.useState(!1),[Bt,Ut]=d.useState(!1),[wt,Yt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,z=d.useRef(null),F=d.useRef(null),Tt=()=>{const o=z.current;let r;if(o){const a=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ne(o,n.direction),scrollWidth:o.scrollWidth,top:a.top,bottom:a.bottom,left:a.left,right:a.right}}let c;if(o&&_!==!1){const a=F.current.children;if(a.length>0){const f=a[Ct.get(_)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},q=bt(()=>{const{tabsMeta:o,tabMeta:r}=Tt();let c=0,a;if(T)a="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(a=i?"right":"left",r&&o){const x=i?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(i?-1:1)*(r[a]-o[a]+x)}const f={[a]:c,[V]:r?r[V]:0};if(isNaN(k[a])||isNaN(k[V]))mt(f);else{const x=Math.abs(k[a]-f[a]),M=Math.abs(k[V]-f[V]);(x>=1||M>=1)&&mt(f)}}),ct=(o,{animation:r=!0}={})=>{r?he(Y,z.current,o,{duration:n.transitions.duration.standard}):z.current[Y]=o},It=o=>{let r=z.current[Y];T?r+=o:(r+=o*(i?-1:1),r*=i&&jt()==="reverse"?-1:1),ct(r)},Et=()=>{const o=z.current[it];let r=0;const c=Array.from(F.current.children);for(let a=0;ao){a===0&&(r=o);break}r+=f[it]}return r},Vt=()=>{It(-1*Et())},qt=()=>{It(Et())},Gt=d.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Jt=()=>{const o={};o.scrollbarSizeListener=E?v.jsx(Ne,{onChange:Gt,className:$(W.scrollableX,W.hideScrollbar)}):null;const c=E&&(C==="auto"&&(gt||yt)||C===!0);return o.scrollButtonStart=c?v.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ht},orientation:y,direction:i?"right":"left",onClick:Vt,disabled:!gt},L,{className:$(W.scrollButtons,L.className)})):null,o.scrollButtonEnd=c?v.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Dt},orientation:y,direction:i?"left":"right",onClick:qt,disabled:!yt},L,{className:$(W.scrollButtons,L.className)})):null,o},Mt=bt(o=>{const{tabsMeta:r,tabMeta:c}=Tt();if(!(!c||!r)){if(c[Q]r[Z]){const a=r[Y]+(c[Z]-r[Z]);ct(a,{animation:o})}}}),tt=bt(()=>{E&&C!==!1&&Ut(!Bt)});d.useEffect(()=>{const o=Ft(()=>{z.current&&q()});let r;const c=x=>{x.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=r)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=r)==null||P.observe(G)})}),o(),tt()},a=At(z.current);a.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(F.current.children).forEach(x=>{r.observe(x)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(F.current,{childList:!0})),()=>{var x,M;o.clear(),a.removeEventListener("resize",o),(x=f)==null||x.disconnect(),(M=r)==null||M.disconnect()}},[q,tt]),d.useEffect(()=>{const o=Array.from(F.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&E&&C!==!1){const c=o[0],a=o[r-1],f={root:z.current,threshold:.99},x=ut=>{_t(!ut[0].isIntersecting)},M=new IntersectionObserver(x,f);M.observe(c);const G=ut=>{Kt(!ut[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(a),()=>{M.disconnect(),P.disconnect()}}},[E,C,Bt,B==null?void 0:B.length]),d.useEffect(()=>{Xt(!0)},[]),d.useEffect(()=>{q()}),d.useEffect(()=>{Mt(Pt!==k)},[Mt,k]),d.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Rt=v.jsx(Le,b({},X,{className:$(W.indicator,X.className),ownerState:N,style:b({},k,X.style)}));let et=0;const Qt=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?et:o.props.value;Ct.set(r,et);const c=r===_;return et+=1,d.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:c&&!xt&&Rt,selected:c,selectionFollowsFocus:st,onChange:I,textColor:J,value:r},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Zt=o=>{const r=F.current,c=le(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=y==="horizontal"?"ArrowLeft":"ArrowUp",x=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&i&&(f="ArrowRight",x="ArrowLeft"),o.key){case f:o.preventDefault(),ot(r,c,Wt);break;case x:o.preventDefault(),ot(r,c,zt);break;case"Home":o.preventDefault(),ot(r,null,zt);break;case"End":o.preventDefault(),ot(r,null,Wt);break}},dt=Jt();return v.jsxs(We,b({className:$(W.root,w),ownerState:N,ref:l,as:m},Ot,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,v.jsxs(Pe,{className:W.scroller,ownerState:N,style:{overflow:wt.overflow,[T?`margin${i?"Left":"Right"}`:"marginBottom"]:at?void 0:-wt.scrollbarWidth},ref:z,children:[v.jsx($e,{"aria-label":h,"aria-labelledby":p,"aria-orientation":y==="vertical"?"vertical":null,className:W.flexContainer,ownerState:N,onKeyDown:Zt,ref:F,role:"tablist",children:Qt}),xt&&Rt]}),dt.scrollButtonEnd]}))}),_e=ke,Fe=({kind:t,shape:e})=>{switch(t){case"small":return rt` +import{a as ft,g as ht,s as j,c as $t,_ as b,r as d,u as vt,b as nt,d as $,j as v,e as St,aT as Lt,f as te,a_ as rt,F as ee,T as oe}from"./index-b85f35cf.js";import{o as Nt,y as re,z as bt}from"./react-toastify.esm-ce67a4f9.js";import{c as kt,d as Ft,o as At,u as lt,a as le}from"./useSlotProps-b8a587b0.js";let K;function jt(){if(K)return K;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),K="reverse",t.scrollLeft>0?K="default":(t.scrollLeft=1,t.scrollLeft===0&&(K="negative")),document.body.removeChild(t),K}function ne(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(jt()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function se(t){return ht("MuiTab",t)}const ae=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=ae,ie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ce=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:i,label:h,selected:p,disabled:u}=t,S={root:["root",i&&h&&"labelIcon",`textColor${$t(l)}`,s&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(S,se,e)},de=j(Nt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${$t(l.textColor)}`],l.fullWidth&&e.fullWidth,l.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)})),ue=d.forwardRef(function(e,l){const s=vt({props:e,name:"MuiTab"}),{className:n,disabled:i=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:S="top",indicator:B,label:w,onChange:m,onClick:g,onFocus:O,selected:I,selectionFollowsFocus:y,textColor:H="inherit",value:C,wrapped:st=!1}=s,D=nt(s,ie),U=b({},s,{disabled:i,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:S,label:!!w,fullWidth:p,textColor:H,wrapped:st}),X=ce(U),L=u&&w&&d.isValidElement(u)?d.cloneElement(u,{className:$(X.iconWrapper,u.props.className)}):u,J=R=>{!I&&m&&m(R,C),g&&g(R)},_=R=>{y&&!I&&m&&m(R,C),O&&O(R)};return v.jsxs(de,b({focusRipple:!h,className:$(X.root,n),ref:l,role:"tab","aria-selected":I,disabled:i,onClick:J,onFocus:_,ownerState:U,tabIndex:I?0:-1},D,{children:[S==="top"||S==="start"?v.jsxs(d.Fragment,{children:[L,w]}):v.jsxs(d.Fragment,{children:[w,L]}),B]}))}),Xe=ue,be=kt(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),pe=kt(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function fe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function he(t,e,l,s={},n=()=>{}){const{ease:i=fe,duration:h=300}=s;let p=null;const u=e[t];let S=!1;const B=()=>{S=!0},w=m=>{if(S){n(new Error("Animation cancelled"));return}p===null&&(p=m);const g=Math.min(1,(m-p)/h);if(e[t]=i(g)*(l-u)+u,g>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(w)};return u===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(w),B)}const ve=["onChange"],Se={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function xe(t){const{onChange:e}=t,l=nt(t,ve),s=d.useRef(),n=d.useRef(null),i=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return re(()=>{const h=Ft(()=>{const u=s.current;i(),u!==s.current&&e(s.current)}),p=At(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),d.useEffect(()=>{i(),e(s.current)},[e]),v.jsx("div",b({style:Se,ref:n},l))}function me(t){return ht("MuiTabScrollButton",t)}const ge=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ye=ge,Be=["className","slots","slotProps","direction","orientation","disabled"],we=t=>{const{classes:e,orientation:l,disabled:s}=t;return St({root:["root",l,s&&"disabled"]},me,e)},Ce=j(Nt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ye.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Te=d.forwardRef(function(e,l){var s,n;const i=vt({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:S}=i,B=nt(i,Be),m=Lt().direction==="rtl",g=b({isRtl:m},i),O=we(g),I=(s=p.StartScrollButtonIcon)!=null?s:be,y=(n=p.EndScrollButtonIcon)!=null?n:pe,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),C=lt({elementType:y,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return v.jsx(Ce,b({component:"div",className:$(O.root,h),ref:l,role:null,ownerState:g,tabIndex:null},B,{children:S==="left"?v.jsx(I,b({},H)):v.jsx(y,b({},C))}))}),Ie=Te;function Ee(t){return ht("MuiTabs",t)}const Me=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),pt=Me,Re=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],zt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Wt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const i=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||i)n=l(t,n);else{n.focus();return}}},ze=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:i,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Ee,u)},We=j("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Pe=j("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.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"})),$e=j("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Le=j("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})),Ne=j(xe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Pt={},ke=d.forwardRef(function(e,l){const s=vt({props:e,name:"MuiTabs"}),n=Lt(),i=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:S=!1,children:B,className:w,component:m="div",allowScrollButtonsMobile:g=!1,indicatorColor:O="primary",onChange:I,orientation:y="horizontal",ScrollButtonComponent:H=Ie,scrollButtons:C="auto",selectionFollowsFocus:st,slots:D={},slotProps:U={},TabIndicatorProps:X={},TabScrollButtonProps:L={},textColor:J="primary",value:_,variant:R="standard",visibleScrollbar:at=!1}=s,Ot=nt(s,Re),E=R==="scrollable",T=y==="vertical",Y=T?"scrollTop":"scrollLeft",Q=T?"top":"left",Z=T?"bottom":"right",it=T?"clientHeight":"clientWidth",V=T?"height":"width",N=b({},s,{component:m,allowScrollButtonsMobile:g,indicatorColor:O,orientation:y,vertical:T,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:at,fixed:!E,hideScrollbar:E&&!at,scrollableX:E&&!T,scrollableY:E&&T,centered:S&&!E,scrollButtonsHideMobile:!g}),W=ze(N),Ht=lt({elementType:D.StartScrollButtonIcon,externalSlotProps:U.startScrollButtonIcon,ownerState:N}),Dt=lt({elementType:D.EndScrollButtonIcon,externalSlotProps:U.endScrollButtonIcon,ownerState:N}),[xt,Xt]=d.useState(!1),[k,mt]=d.useState(Pt),[gt,_t]=d.useState(!1),[yt,Kt]=d.useState(!1),[Bt,Ut]=d.useState(!1),[wt,Yt]=d.useState({overflow:"hidden",scrollbarWidth:0}),Ct=new Map,z=d.useRef(null),F=d.useRef(null),Tt=()=>{const o=z.current;let r;if(o){const a=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ne(o,n.direction),scrollWidth:o.scrollWidth,top:a.top,bottom:a.bottom,left:a.left,right:a.right}}let c;if(o&&_!==!1){const a=F.current.children;if(a.length>0){const f=a[Ct.get(_)];c=f?f.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},q=bt(()=>{const{tabsMeta:o,tabMeta:r}=Tt();let c=0,a;if(T)a="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(a=i?"right":"left",r&&o){const x=i?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(i?-1:1)*(r[a]-o[a]+x)}const f={[a]:c,[V]:r?r[V]:0};if(isNaN(k[a])||isNaN(k[V]))mt(f);else{const x=Math.abs(k[a]-f[a]),M=Math.abs(k[V]-f[V]);(x>=1||M>=1)&&mt(f)}}),ct=(o,{animation:r=!0}={})=>{r?he(Y,z.current,o,{duration:n.transitions.duration.standard}):z.current[Y]=o},It=o=>{let r=z.current[Y];T?r+=o:(r+=o*(i?-1:1),r*=i&&jt()==="reverse"?-1:1),ct(r)},Et=()=>{const o=z.current[it];let r=0;const c=Array.from(F.current.children);for(let a=0;ao){a===0&&(r=o);break}r+=f[it]}return r},Vt=()=>{It(-1*Et())},qt=()=>{It(Et())},Gt=d.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Jt=()=>{const o={};o.scrollbarSizeListener=E?v.jsx(Ne,{onChange:Gt,className:$(W.scrollableX,W.hideScrollbar)}):null;const c=E&&(C==="auto"&&(gt||yt)||C===!0);return o.scrollButtonStart=c?v.jsx(H,b({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ht},orientation:y,direction:i?"right":"left",onClick:Vt,disabled:!gt},L,{className:$(W.scrollButtons,L.className)})):null,o.scrollButtonEnd=c?v.jsx(H,b({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Dt},orientation:y,direction:i?"left":"right",onClick:qt,disabled:!yt},L,{className:$(W.scrollButtons,L.className)})):null,o},Mt=bt(o=>{const{tabsMeta:r,tabMeta:c}=Tt();if(!(!c||!r)){if(c[Q]r[Z]){const a=r[Y]+(c[Z]-r[Z]);ct(a,{animation:o})}}}),tt=bt(()=>{E&&C!==!1&&Ut(!Bt)});d.useEffect(()=>{const o=Ft(()=>{z.current&&q()});let r;const c=x=>{x.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=r)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=r)==null||P.observe(G)})}),o(),tt()},a=At(z.current);a.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(F.current.children).forEach(x=>{r.observe(x)})),typeof MutationObserver<"u"&&(f=new MutationObserver(c),f.observe(F.current,{childList:!0})),()=>{var x,M;o.clear(),a.removeEventListener("resize",o),(x=f)==null||x.disconnect(),(M=r)==null||M.disconnect()}},[q,tt]),d.useEffect(()=>{const o=Array.from(F.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&E&&C!==!1){const c=o[0],a=o[r-1],f={root:z.current,threshold:.99},x=ut=>{_t(!ut[0].isIntersecting)},M=new IntersectionObserver(x,f);M.observe(c);const G=ut=>{Kt(!ut[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(a),()=>{M.disconnect(),P.disconnect()}}},[E,C,Bt,B==null?void 0:B.length]),d.useEffect(()=>{Xt(!0)},[]),d.useEffect(()=>{q()}),d.useEffect(()=>{Mt(Pt!==k)},[Mt,k]),d.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Rt=v.jsx(Le,b({},X,{className:$(W.indicator,X.className),ownerState:N,style:b({},k,X.style)}));let et=0;const Qt=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?et:o.props.value;Ct.set(r,et);const c=r===_;return et+=1,d.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:c&&!xt&&Rt,selected:c,selectionFollowsFocus:st,onChange:I,textColor:J,value:r},et===1&&_===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Zt=o=>{const r=F.current,c=le(r).activeElement;if(c.getAttribute("role")!=="tab")return;let f=y==="horizontal"?"ArrowLeft":"ArrowUp",x=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&i&&(f="ArrowRight",x="ArrowLeft"),o.key){case f:o.preventDefault(),ot(r,c,Wt);break;case x:o.preventDefault(),ot(r,c,zt);break;case"Home":o.preventDefault(),ot(r,null,zt);break;case"End":o.preventDefault(),ot(r,null,Wt);break}},dt=Jt();return v.jsxs(We,b({className:$(W.root,w),ownerState:N,ref:l,as:m},Ot,{children:[dt.scrollButtonStart,dt.scrollbarSizeListener,v.jsxs(Pe,{className:W.scroller,ownerState:N,style:{overflow:wt.overflow,[T?`margin${i?"Left":"Right"}`:"marginBottom"]:at?void 0:-wt.scrollbarWidth},ref:z,children:[v.jsx($e,{"aria-label":h,"aria-labelledby":p,"aria-orientation":y==="vertical"?"vertical":null,className:W.flexContainer,ownerState:N,onKeyDown:Zt,ref:F,role:"tablist",children:Qt}),xt&&Rt]}),dt.scrollButtonEnd]}))}),_e=ke,Fe=({kind:t,shape:e})=>{switch(t){case"small":return rt` padding: 4px 8px; border-radius: ${e==="rounded"?"16px":"8px"}; height: 32px; diff --git a/build/assets/index-211330ba.js b/build/assets/index-39ab8de8.js similarity index 99% rename from build/assets/index-211330ba.js rename to build/assets/index-39ab8de8.js index 6b2d8a3d0..f6dc48d20 100644 --- a/build/assets/index-211330ba.js +++ b/build/assets/index-39ab8de8.js @@ -1,4 +1,4 @@ -import{r as h,j as d,_ as s,g as Be,a as _e,s as z,c as g,u as We,b as Ie,d as B,e as Ue,a5 as Y,a4 as Mo,cX as zo,f as Wo,h as ie,F as Uo}from"./index-c522bd40.js";import{i as Ae,P as No,u as Go,f as Ko,F as qo}from"./Popover-243f389d.js";import{a as Eo,u as bo,i as mo,o as yo,f as Ve,A as Xo,I as Yo,S as Zo,b as Jo,F as Qo,O as et}from"./Select-72591674.js";import{S as ot}from"./Stack-f811e4d7.js";import{c as jo}from"./useSlotProps-96b7890f.js";import{z as no,H as tt,t as Ho,o as Io,I as Vo}from"./react-toastify.esm-1e5f1e5f.js";import{P as Bo}from"./Popper-831e364f.js";const rt=e=>{const o=h.useRef({});return h.useEffect(()=>{o.current=e}),o.current},at=rt,nt=jo(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Po(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function lt(e={}){const{ignoreAccents:o=!0,ignoreCase:n=!0,limit:l,matchFrom:u="any",stringify:x,trim:b=!1}=e;return(c,{inputValue:y,getOptionLabel:f})=>{let P=b?y.trim():y;n&&(P=P.toLowerCase()),o&&(P=Po(P));const v=P?c.filter(R=>{let S=(x||f)(R);return n&&(S=S.toLowerCase()),o&&(S=Po(S)),u==="start"?S.indexOf(P)===0:S.indexOf(P)>-1}):c;return typeof l=="number"?v.slice(0,l):v}}function xo(e,o){for(let n=0;n{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function ct(e){const{unstable_isActiveElementInListbox:o=st,unstable_classNamePrefix:n="Mui",autoComplete:l=!1,autoHighlight:u=!1,autoSelect:x=!1,blurOnSelect:b=!1,clearOnBlur:c=!e.freeSolo,clearOnEscape:y=!1,componentName:f="useAutocomplete",defaultValue:P=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:R=!1,disabled:S,disabledItemsFocusable:w=!1,disableListWrap:Z=!1,filterOptions:G=it,filterSelectedOptions:J=!1,freeSolo:H=!1,getOptionDisabled:K,getOptionKey:te,getOptionLabel:xe=r=>{var t;return(t=r.label)!=null?t:r},groupBy:re,handleHomeEndKeys:q=!e.freeSolo,id:Pe,includeInputInList:ke=!1,inputValue:he,isOptionEqualToValue:Q=(r,t)=>r===t,multiple:C=!1,onChange:ee,onClose:_,onHighlightChange:se,onInputChange:E,onOpen:ge,open:ve,openOnFocus:L=!1,options:Oe,readOnly:ce=!1,selectOnFocus:Se=!e.freeSolo,value:pe}=e,A=Eo(Pe);let D=xe;D=r=>{const t=xe(r);return typeof t!="string"?String(t):t};const Ce=h.useRef(!1),we=h.useRef(!0),T=h.useRef(null),X=h.useRef(null),[Fe,io]=h.useState(null),[W,Ge]=h.useState(-1),Ye=u?0:-1,V=h.useRef(Ye),[p,ho]=bo({controlled:pe,default:P,name:f}),[k,be]=bo({controlled:he,default:"",name:f,state:"inputValue"}),[De,Ze]=h.useState(!1),Re=h.useCallback((r,t)=>{if(!(C?p.length!(J&&(C?p:[p]).some(t=>t!==null&&Q(r,t)))),{inputValue:eo&&so?"":k,getOptionLabel:D}):[],ae=at({filteredOptions:O,value:p,inputValue:k});h.useEffect(()=>{const r=p!==ae.value;De&&!r||H&&!r||Re(null,p)},[p,Re,De,ae.value,H]);const Ke=$e&&O.length>0&&!ce,Me=no(r=>{r===-1?T.current.focus():Fe.querySelector(`[data-tag-index="${r}"]`).focus()});h.useEffect(()=>{C&&W>p.length-1&&(Ge(-1),Me(-1))},[p,C,W,Me]);function ze(r,t){if(!X.current||r<0||r>=O.length)return-1;let a=r;for(;;){const i=X.current.querySelector(`[data-option-index="${a}"]`),I=w?!1:!i||i.disabled||i.getAttribute("aria-disabled")==="true";if(i&&i.hasAttribute("tabindex")&&!I)return a;if(t==="next"?a=(a+1)%O.length:a=(a-1+O.length)%O.length,a===r)return-1}}const ue=no(({event:r,index:t,reason:a="auto"})=>{if(V.current=t,t===-1?T.current.removeAttribute("aria-activedescendant"):T.current.setAttribute("aria-activedescendant",`${A}-option-${t}`),se&&se(r,t===-1?null:O[t],a),!X.current)return;const i=X.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let I=X.current;if(X.current.getAttribute("role")!=="listbox"&&(I=X.current.parentElement.querySelector('[role="listbox"]')),!I)return;if(t===-1){I.scrollTop=0;return}const F=X.current.querySelector(`[data-option-index="${t}"]`);if(F&&(F.classList.add(`${n}-focused`),a==="keyboard"&&F.classList.add(`${n}-focusVisible`),I.scrollHeight>I.clientHeight&&a!=="mouse"&&a!=="touch")){const M=F,fe=I.clientHeight+I.scrollTop,$o=M.offsetTop+M.offsetHeight;$o>fe?I.scrollTop=$o-I.clientHeight:M.offsetTop-M.offsetHeight*(re?1.3:0){if(!U)return;const F=ze((()=>{const M=O.length-1;if(t==="reset")return Ye;if(t==="start")return 0;if(t==="end")return M;const fe=V.current+t;return fe<0?fe===-1&&ke?-1:Z&&V.current!==-1||Math.abs(t)>1?0:M:fe>M?fe===M+1&&ke?-1:Z||Math.abs(t)>1?M:0:fe})(),a);if(ue({index:F,reason:i,event:r}),l&&t!=="reset")if(F===-1)T.current.value=k;else{const M=D(O[F]);T.current.value=M,M.toLowerCase().indexOf(k.toLowerCase())===0&&k.length>0&&T.current.setSelectionRange(k.length,M.length)}}),Ne=()=>{const r=(t,a)=>{const i=t?D(t):"",I=a?D(a):"";return i===I};if(V.current!==-1&&ae.filteredOptions&&ae.filteredOptions.length!==O.length&&ae.inputValue===k&&(C?p.length===ae.value.length&&ae.value.every((t,a)=>D(p[a])===D(t)):r(ae.value,p))){const t=ae.filteredOptions[V.current];if(t&&O.some(i=>D(i)===D(t)))return!0}return!1},qe=h.useCallback(()=>{if(!U||Ne())return;const r=C?p[0]:p;if(O.length===0||r==null){ne({diff:"reset"});return}if(X.current){if(r!=null){const t=O[V.current];if(C&&t&&xo(p,i=>Q(t,i))!==-1)return;const a=xo(O,i=>Q(i,r));a===-1?ne({diff:"reset"}):ue({index:a});return}if(V.current>=O.length-1){ue({index:O.length-1});return}ue({index:V.current})}},[O.length,C?!1:p,J,ne,ue,U,k,C]),co=no(r=>{tt(X,r),r&&qe()});h.useEffect(()=>{qe()},[qe]);const oe=r=>{$e||(Je(!0),Qe(!0),ge&&ge(r))},me=(r,t)=>{$e&&(Je(!1),_&&_(r,t))},de=(r,t,a,i)=>{if(C){if(p.length===t.length&&p.every((I,F)=>I===t[F]))return}else if(p===t)return;ee&&ee(r,t,a,i),ho(t)},Ee=h.useRef(!1),Le=(r,t,a="selectOption",i="options")=>{let I=a,F=t;if(C){F=Array.isArray(p)?p.slice():[];const M=xo(F,fe=>Q(t,fe));M===-1?F.push(t):i!=="freeSolo"&&(F.splice(M,1),I="removeOption")}Re(r,F),de(r,F,I,{option:t}),!R&&(!r||!r.ctrlKey&&!r.metaKey)&&me(r,I),(b===!0||b==="touch"&&Ee.current||b==="mouse"&&!Ee.current)&&T.current.blur()};function oo(r,t){if(r===-1)return-1;let a=r;for(;;){if(t==="next"&&a===p.length||t==="previous"&&a===-1)return-1;const i=Fe.querySelector(`[data-tag-index="${a}"]`);if(!i||!i.hasAttribute("tabindex")||i.disabled||i.getAttribute("aria-disabled")==="true")a+=t==="next"?1:-1;else return a}}const to=(r,t)=>{if(!C)return;k===""&&me(r,"toggleInput");let a=W;W===-1?k===""&&t==="previous"&&(a=p.length-1):(a+=t==="next"?1:-1,a<0&&(a=0),a===p.length&&(a=-1)),a=oo(a,t),Ge(a),Me(a)},ro=r=>{Ce.current=!0,be(""),E&&E(r,"","clear"),de(r,C?[]:null,"clear")},po=r=>t=>{if(r.onKeyDown&&r.onKeyDown(t),!t.defaultMuiPrevented&&(W!==-1&&["ArrowLeft","ArrowRight"].indexOf(t.key)===-1&&(Ge(-1),Me(-1)),t.which!==229))switch(t.key){case"Home":U&&q&&(t.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":U&&q&&(t.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ne({diff:-ko,direction:"previous",reason:"keyboard",event:t}),oe(t);break;case"PageDown":t.preventDefault(),ne({diff:ko,direction:"next",reason:"keyboard",event:t}),oe(t);break;case"ArrowDown":t.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:t}),oe(t);break;case"ArrowUp":t.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:t}),oe(t);break;case"ArrowLeft":to(t,"previous");break;case"ArrowRight":to(t,"next");break;case"Enter":if(V.current!==-1&&U){const a=O[V.current],i=K?K(a):!1;if(t.preventDefault(),i)return;Le(t,a,"selectOption"),l&&T.current.setSelectionRange(T.current.value.length,T.current.value.length)}else H&&k!==""&&eo===!1&&(C&&t.preventDefault(),Le(t,k,"createOption","freeSolo"));break;case"Escape":U?(t.preventDefault(),t.stopPropagation(),me(t,"escape")):y&&(k!==""||C&&p.length>0)&&(t.preventDefault(),t.stopPropagation(),ro(t));break;case"Backspace":if(C&&!ce&&k===""&&p.length>0){const a=W===-1?p.length-1:W,i=p.slice();i.splice(a,1),de(t,i,"removeOption",{option:p[a]})}break;case"Delete":if(C&&!ce&&k===""&&p.length>0&&W!==-1){const a=W,i=p.slice();i.splice(a,1),de(t,i,"removeOption",{option:p[a]})}break}},vo=r=>{Ze(!0),L&&!Ce.current&&oe(r)},je=r=>{if(o(X)){T.current.focus();return}Ze(!1),we.current=!0,Ce.current=!1,x&&V.current!==-1&&U?Le(r,O[V.current],"blur"):x&&H&&k!==""?Le(r,k,"blur","freeSolo"):c&&Re(r,p),me(r,"blur")},j=r=>{const t=r.target.value;k!==t&&(be(t),Qe(!1),E&&E(r,t,"input")),t===""?!v&&!C&&de(r,null,"clear"):oe(r)},N=r=>{const t=Number(r.currentTarget.getAttribute("data-option-index"));V.current!==t&&ue({event:r,index:t,reason:"mouse"})},le=r=>{ue({event:r,index:Number(r.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ee.current=!0},Co=r=>{const t=Number(r.currentTarget.getAttribute("data-option-index"));Le(r,O[t],"selectOption"),Ee.current=!1},uo=r=>t=>{const a=p.slice();a.splice(r,1),de(t,a,"removeOption",{option:p[r]})},fo=r=>{$e?me(r,"toggleInput"):oe(r)},go=r=>{r.currentTarget.contains(r.target)&&r.target.getAttribute("id")!==A&&r.preventDefault()},ao=r=>{r.currentTarget.contains(r.target)&&(T.current.focus(),Se&&we.current&&T.current.selectionEnd-T.current.selectionStart===0&&T.current.select(),we.current=!1)},Xe=r=>{!S&&(k===""||!$e)&&fo(r)};let Te=H&&k.length>0;Te=Te||(C?p.length>0:p!==null);let He=O;return re&&(He=O.reduce((r,t,a)=>{const i=re(t);return r.length>0&&r[r.length-1].group===i?r[r.length-1].options.push(t):r.push({key:a,index:a,group:i,options:[t]}),r},[])),S&&De&&je(),{getRootProps:(r={})=>s({"aria-owns":Ke?`${A}-listbox`:null},r,{onKeyDown:po(r),onMouseDown:go,onClick:ao}),getInputLabelProps:()=>({id:`${A}-label`,htmlFor:A}),getInputProps:()=>({id:A,value:k,onBlur:je,onFocus:vo,onChange:j,onMouseDown:Xe,"aria-activedescendant":U?"":null,"aria-autocomplete":l?"both":"list","aria-controls":Ke?`${A}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:T,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ro}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:fo}),getTagProps:({index:r})=>s({key:r,"data-tag-index":r,tabIndex:-1},!ce&&{onDelete:uo(r)}),getListboxProps:()=>({role:"listbox",id:`${A}-listbox`,"aria-labelledby":`${A}-label`,ref:co,onMouseDown:r=>{r.preventDefault()}}),getOptionProps:({index:r,option:t})=>{var a;const i=(C?p:[p]).some(F=>F!=null&&Q(t,F)),I=K?K(t):!1;return{key:(a=te==null?void 0:te(t))!=null?a:D(t),tabIndex:-1,role:"option",id:`${A}-option-${r}`,onMouseMove:N,onClick:Co,onTouchStart:le,"data-option-index":r,"aria-disabled":I,"aria-selected":i}},id:A,inputValue:k,value:p,dirty:Te,expanded:U&&Fe,popupOpen:U,focused:De||W!==-1,anchorEl:Fe,setAnchorEl:io,focusedTag:W,groupedOptions:He}}function pt(e){return Be("MuiListSubheader",e)}_e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const ut=["className","color","component","disableGutters","disableSticky","inset"],dt=e=>{const{classes:o,color:n,disableGutters:l,inset:u,disableSticky:x}=e,b={root:["root",n!=="default"&&`color${g(n)}`,!l&&"gutters",u&&"inset",!x&&"sticky"]};return Ue(b,pt,o)},ft=z("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color!=="default"&&o[`color${g(n.color)}`],!n.disableGutters&&o.gutters,n.inset&&o.inset,!n.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>s({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),_o=h.forwardRef(function(o,n){const l=We({props:o,name:"MuiListSubheader"}),{className:u,color:x="default",component:b="li",disableGutters:c=!1,disableSticky:y=!1,inset:f=!1}=l,P=Ie(l,ut),v=s({},l,{color:x,component:b,disableGutters:c,disableSticky:y,inset:f}),R=dt(v);return d.jsx(ft,s({as:b,className:B(R.root,u),ref:n,ownerState:v},P))});_o.muiSkipListHighlight=!0;const gt=_o,bt=jo(d.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 mt(e){return Be("MuiChip",e)}const xt=_e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),$=xt,ht=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],vt=e=>{const{classes:o,disabled:n,size:l,color:u,iconColor:x,onDelete:b,clickable:c,variant:y}=e,f={root:["root",y,n&&"disabled",`size${g(l)}`,`color${g(u)}`,c&&"clickable",c&&`clickableColor${g(u)}`,b&&"deletable",b&&`deletableColor${g(u)}`,`${y}${g(u)}`],label:["label",`label${g(l)}`],avatar:["avatar",`avatar${g(l)}`,`avatarColor${g(u)}`],icon:["icon",`icon${g(l)}`,`iconColor${g(x)}`],deleteIcon:["deleteIcon",`deleteIcon${g(l)}`,`deleteIconColor${g(u)}`,`deleteIcon${g(y)}Color${g(u)}`]};return Ue(f,mt,o)},Ct=z("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{color:l,iconColor:u,clickable:x,onDelete:b,size:c,variant:y}=n;return[{[`& .${$.avatar}`]:o.avatar},{[`& .${$.avatar}`]:o[`avatar${g(c)}`]},{[`& .${$.avatar}`]:o[`avatarColor${g(l)}`]},{[`& .${$.icon}`]:o.icon},{[`& .${$.icon}`]:o[`icon${g(c)}`]},{[`& .${$.icon}`]:o[`iconColor${g(u)}`]},{[`& .${$.deleteIcon}`]:o.deleteIcon},{[`& .${$.deleteIcon}`]:o[`deleteIcon${g(c)}`]},{[`& .${$.deleteIcon}`]:o[`deleteIconColor${g(l)}`]},{[`& .${$.deleteIcon}`]:o[`deleteIcon${g(y)}Color${g(l)}`]},o.root,o[`size${g(c)}`],o[`color${g(l)}`],x&&o.clickable,x&&l!=="default"&&o[`clickableColor${g(l)})`],b&&o.deletable,b&&l!=="default"&&o[`deletableColor${g(l)}`],o[y],o[`${y}${g(l)}`]]}})(({theme:e,ownerState:o})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return s({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",[`&.${$.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${$.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${$.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${$.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${$.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${$.icon}`]:s({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&s({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},o.color!=="default"&&{color:"inherit"})),[`& .${$.deleteIcon}`]:s({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Y(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)`:Y(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)`:Y(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&&{[`&.${$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Y(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${$.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>s({},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}))`:Y(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Y(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, &.${$.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>s({},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]}`,[`&.${$.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${$.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${$.avatar}`]:{marginLeft:4},[`& .${$.avatarSmall}`]:{marginLeft:2},[`& .${$.icon}`]:{marginLeft:4},[`& .${$.iconSmall}`]:{marginLeft:2},[`& .${$.deleteIcon}`]:{marginRight:5},[`& .${$.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)`:Y(e.palette[o.color].main,.7)}`,[`&.${$.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Y(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Y(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${$.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Y(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),$t=z("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:n}=e,{size:l}=n;return[o.label,o[`label${g(l)}`]]}})(({ownerState:e})=>s({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Oo(e){return e.key==="Backspace"||e.key==="Delete"}const yt=h.forwardRef(function(o,n){const l=We({props:o,name:"MuiChip"}),{avatar:u,className:x,clickable:b,color:c="default",component:y,deleteIcon:f,disabled:P=!1,icon:v,label:R,onClick:S,onDelete:w,onKeyDown:Z,onKeyUp:G,size:J="medium",variant:H="filled",tabIndex:K,skipFocusWhenDisabled:te=!1}=l,xe=Ie(l,ht),re=h.useRef(null),q=Ho(re,n),Pe=L=>{L.stopPropagation(),w&&w(L)},ke=L=>{L.currentTarget===L.target&&Oo(L)&&L.preventDefault(),Z&&Z(L)},he=L=>{L.currentTarget===L.target&&(w&&Oo(L)?w(L):L.key==="Escape"&&re.current&&re.current.blur()),G&&G(L)},Q=b!==!1&&S?!0:b,C=Q||w?Io:y||"div",ee=s({},l,{component:C,disabled:P,size:J,color:c,iconColor:h.isValidElement(v)&&v.props.color||c,onDelete:!!w,clickable:Q,variant:H}),_=vt(ee),se=C===Io?s({component:y||"div",focusVisibleClassName:_.focusVisible},w&&{disableRipple:!0}):{};let E=null;w&&(E=f&&h.isValidElement(f)?h.cloneElement(f,{className:B(f.props.className,_.deleteIcon),onClick:Pe}):d.jsx(bt,{className:B(_.deleteIcon),onClick:Pe}));let ge=null;u&&h.isValidElement(u)&&(ge=h.cloneElement(u,{className:B(_.avatar,u.props.className)}));let ve=null;return v&&h.isValidElement(v)&&(ve=h.cloneElement(v,{className:B(_.icon,v.props.className)})),d.jsxs(Ct,s({as:C,className:B(_.root,x),disabled:Q&&P?!0:void 0,onClick:S,onKeyDown:ke,onKeyUp:he,ref:q,tabIndex:te&&P?-1:K,ownerState:ee},se,xe,{children:[ge||ve,d.jsx($t,{className:B(_.label),ownerState:ee,children:R}),E]}))}),It=yt;function Pt(e){return Be("MuiAutocomplete",e)}const kt=_e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),m=kt;var So,Ro;const Ot=["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"],St=["ref"],Rt=["key"],Lt=e=>{const{classes:o,disablePortal:n,expanded:l,focused:u,fullWidth:x,hasClearIcon:b,hasPopupIcon:c,inputFocused:y,popupOpen:f,size:P}=e,v={root:["root",l&&"expanded",u&&"focused",x&&"fullWidth",b&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",y&&"inputFocused"],tag:["tag",`tagSize${g(P)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ue(v,Pt,o)},Tt=z("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{fullWidth:l,hasClearIcon:u,hasPopupIcon:x,inputFocused:b,size:c}=n;return[{[`& .${m.tag}`]:o.tag},{[`& .${m.tag}`]:o[`tagSize${g(c)}`]},{[`& .${m.inputRoot}`]:o.inputRoot},{[`& .${m.input}`]:o.input},{[`& .${m.input}`]:b&&o.inputFocused},o.root,l&&o.fullWidth,x&&o.hasPopupIcon,u&&o.hasClearIcon]}})(({ownerState:e})=>s({[`&.${m.focused} .${m.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${m.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${m.tag}`]:s({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${m.inputRoot}`]:{flexWrap:"wrap",[`.${m.hasPopupIcon}&, .${m.hasClearIcon}&`]:{paddingRight:26+4},[`.${m.hasPopupIcon}.${m.hasClearIcon}&`]:{paddingRight:52+4},[`& .${m.input}`]:{width:0,minWidth:30}},[`& .${mo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${mo.root}.${Ae.sizeSmall}`]:{[`& .${mo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${yo.root}`]:{padding:9,[`.${m.hasPopupIcon}&, .${m.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${m.hasPopupIcon}.${m.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${m.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${m.endAdornment}`]:{right:9}},[`& .${yo.root}.${Ae.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${m.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ve.root}`]:{paddingTop:19,paddingLeft:8,[`.${m.hasPopupIcon}&, .${m.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${m.hasPopupIcon}.${m.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ve.input}`]:{padding:"7px 4px"},[`& .${m.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Ae.sizeSmall}`]:{paddingBottom:1,[`& .${Ve.input}`]:{padding:"2.5px 4px"}},[`& .${Ae.hiddenLabel}`]:{paddingTop:8},[`& .${Ve.root}.${Ae.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${m.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ve.root}.${Ae.hiddenLabel}.${Ae.sizeSmall}`]:{[`& .${m.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${m.input}`]:s({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),At=z("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),wt=z(Vo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Ft=z(Vo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>s({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>s({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dt=z(Bo,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${m.option}`]:o.option},o.popper,n.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>s({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),Mt=z(No,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>s({},e.typography.body1,{overflow:"auto"})),zt=z("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Nt=z("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Et=z("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",[`& .${m.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"},[`&.${m.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"},[`&.${m.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})`:Y(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${m.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Y(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${m.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Y(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),jt=z(gt,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Ht=z("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${m.option}`]:{paddingLeft:24}}),Vt=h.forwardRef(function(o,n){var l,u,x,b;const c=We({props:o,name:"MuiAutocomplete"}),{autoComplete:y=!1,autoHighlight:f=!1,autoSelect:P=!1,blurOnSelect:v=!1,ChipProps:R,className:S,clearIcon:w=So||(So=d.jsx(nt,{fontSize:"small"})),clearOnBlur:Z=!c.freeSolo,clearOnEscape:G=!1,clearText:J="Clear",closeText:H="Close",componentsProps:K={},defaultValue:te=c.multiple?[]:null,disableClearable:xe=!1,disableCloseOnSelect:re=!1,disabled:q=!1,disabledItemsFocusable:Pe=!1,disableListWrap:ke=!1,disablePortal:he=!1,filterSelectedOptions:Q=!1,forcePopupIcon:C="auto",freeSolo:ee=!1,fullWidth:_=!1,getLimitTagsText:se=t=>`+${t}`,getOptionLabel:E,groupBy:ge,handleHomeEndKeys:ve=!c.freeSolo,includeInputInList:L=!1,limitTags:Oe=-1,ListboxComponent:ce="ul",ListboxProps:Se,loading:pe=!1,loadingText:A="Loading…",multiple:D=!1,noOptionsText:Ce="No options",openOnFocus:we=!1,openText:T="Open",PaperComponent:X=No,PopperComponent:Fe=Bo,popupIcon:io=Ro||(Ro=d.jsx(Xo,{})),readOnly:W=!1,renderGroup:Ge,renderInput:Ye,renderOption:V,renderTags:p,selectOnFocus:ho=!c.freeSolo,size:k="medium",slotProps:be={}}=c,De=Ie(c,Ot),{getRootProps:Ze,getInputProps:Re,getInputLabelProps:$e,getPopupIndicatorProps:Je,getClearProps:so,getTagProps:Qe,getListboxProps:eo,getOptionProps:U,value:O,dirty:ae,expanded:Ke,id:Me,popupOpen:ze,focused:ue,focusedTag:ne,anchorEl:Ne,setAnchorEl:qe,inputValue:co,groupedOptions:oe}=ct(s({},c,{componentName:"Autocomplete"})),me=!xe&&!q&&ae&&!W,de=(!ee||C===!0)&&C!==!1,{onMouseDown:Ee}=Re(),{ref:Le}=Se??{},oo=eo(),{ref:to}=oo,ro=Ie(oo,St),po=Ho(to,Le),je=E||(t=>{var a;return(a=t.label)!=null?a:t}),j=s({},c,{disablePortal:he,expanded:Ke,focused:ue,fullWidth:_,getOptionLabel:je,hasClearIcon:me,hasPopupIcon:de,inputFocused:ne===-1,popupOpen:ze,size:k}),N=Lt(j);let le;if(D&&O.length>0){const t=a=>s({className:N.tag,disabled:q},Qe(a));p?le=p(O,t,j):le=O.map((a,i)=>d.jsx(It,s({label:je(a),size:k},t({index:i}),R)))}if(Oe>-1&&Array.isArray(le)){const t=le.length-Oe;!ue&&t>0&&(le=le.splice(0,Oe),le.push(d.jsx("span",{className:N.tag,children:se(t)},le.length)))}const uo=Ge||(t=>d.jsxs("li",{children:[d.jsx(jt,{className:N.groupLabel,ownerState:j,component:"div",children:t.group}),d.jsx(Ht,{className:N.groupUl,ownerState:j,children:t.children})]},t.key)),go=V||((t,a)=>{const{key:i}=t,I=Ie(t,Rt);return d.jsx("li",s({},I,{children:je(a)}),i)}),ao=(t,a)=>{const i=U({option:t,index:a});return go(s({},i,{className:N.option}),t,{selected:i["aria-selected"],index:a,inputValue:co},j)},Xe=(l=be.clearIndicator)!=null?l:K.clearIndicator,Te=(u=be.paper)!=null?u:K.paper,He=(x=be.popper)!=null?x:K.popper,r=(b=be.popupIndicator)!=null?b:K.popupIndicator;return d.jsxs(h.Fragment,{children:[d.jsx(Tt,s({ref:n,className:B(N.root,S),ownerState:j},Ze(De),{children:Ye({id:Me,disabled:q,fullWidth:!0,size:k==="small"?"small":void 0,InputLabelProps:$e(),InputProps:s({ref:qe,className:N.inputRoot,startAdornment:le,onClick:t=>{t.target===t.currentTarget&&Ee(t)}},(me||de)&&{endAdornment:d.jsxs(At,{className:N.endAdornment,ownerState:j,children:[me?d.jsx(wt,s({},so(),{"aria-label":J,title:J,ownerState:j},Xe,{className:B(N.clearIndicator,Xe==null?void 0:Xe.className),children:w})):null,de?d.jsx(Ft,s({},Je(),{disabled:q,"aria-label":ze?H:T,title:ze?H:T,ownerState:j},r,{className:B(N.popupIndicator,r==null?void 0:r.className),children:io})):null]})}),inputProps:s({className:N.input,disabled:q,readOnly:W},Re())})})),Ne?d.jsx(Dt,s({as:Fe,disablePortal:he,style:{width:Ne?Ne.clientWidth:null},ownerState:j,role:"presentation",anchorEl:Ne,open:ze},He,{className:B(N.popper,He==null?void 0:He.className),children:d.jsxs(Mt,s({ownerState:j,as:X},Te,{className:B(N.paper,Te==null?void 0:Te.className),children:[pe&&oe.length===0?d.jsx(zt,{className:N.loading,ownerState:j,children:A}):null,oe.length===0&&!ee&&!pe?d.jsx(Nt,{className:N.noOptions,ownerState:j,role:"presentation",onMouseDown:t=>{t.preventDefault()},children:Ce}):null,oe.length>0?d.jsx(Et,s({as:ce,className:N.listbox,ownerState:j},ro,Se,{ref:po,children:oe.map((t,a)=>ge?uo({key:t.key,group:t.group,children:t.options.map((i,I)=>ao(i,t.index+I))}):ao(t,a))})):null]}))})):null]})}),Bt=Vt;function _t(e){return Be("MuiCircularProgress",e)}_e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Wt=["className","color","disableShrink","size","style","thickness","value","variant"];let lo=e=>e,Lo,To,Ao,wo;const ye=44,Ut=Mo(Lo||(Lo=lo` +import{r as h,j as d,_ as s,g as Be,a as _e,s as z,c as g,u as We,b as Ie,d as B,e as Ue,a5 as Y,a4 as Mo,cX as zo,f as Wo,h as ie,F as Uo}from"./index-b85f35cf.js";import{i as Ae,P as No,u as Go,f as Ko,F as qo}from"./Popover-28c1573e.js";import{a as Eo,u as bo,i as mo,o as yo,f as Ve,A as Xo,I as Yo,S as Zo,b as Jo,F as Qo,O as et}from"./Select-f3cb55de.js";import{S as ot}from"./Stack-b0e83988.js";import{c as jo}from"./useSlotProps-b8a587b0.js";import{z as no,H as tt,t as Ho,o as Io,I as Vo}from"./react-toastify.esm-ce67a4f9.js";import{P as Bo}from"./Popper-704ca55a.js";const rt=e=>{const o=h.useRef({});return h.useEffect(()=>{o.current=e}),o.current},at=rt,nt=jo(d.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Po(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function lt(e={}){const{ignoreAccents:o=!0,ignoreCase:n=!0,limit:l,matchFrom:u="any",stringify:x,trim:b=!1}=e;return(c,{inputValue:y,getOptionLabel:f})=>{let P=b?y.trim():y;n&&(P=P.toLowerCase()),o&&(P=Po(P));const v=P?c.filter(R=>{let S=(x||f)(R);return n&&(S=S.toLowerCase()),o&&(S=Po(S)),u==="start"?S.indexOf(P)===0:S.indexOf(P)>-1}):c;return typeof l=="number"?v.slice(0,l):v}}function xo(e,o){for(let n=0;n{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function ct(e){const{unstable_isActiveElementInListbox:o=st,unstable_classNamePrefix:n="Mui",autoComplete:l=!1,autoHighlight:u=!1,autoSelect:x=!1,blurOnSelect:b=!1,clearOnBlur:c=!e.freeSolo,clearOnEscape:y=!1,componentName:f="useAutocomplete",defaultValue:P=e.multiple?[]:null,disableClearable:v=!1,disableCloseOnSelect:R=!1,disabled:S,disabledItemsFocusable:w=!1,disableListWrap:Z=!1,filterOptions:G=it,filterSelectedOptions:J=!1,freeSolo:H=!1,getOptionDisabled:K,getOptionKey:te,getOptionLabel:xe=r=>{var t;return(t=r.label)!=null?t:r},groupBy:re,handleHomeEndKeys:q=!e.freeSolo,id:Pe,includeInputInList:ke=!1,inputValue:he,isOptionEqualToValue:Q=(r,t)=>r===t,multiple:C=!1,onChange:ee,onClose:_,onHighlightChange:se,onInputChange:E,onOpen:ge,open:ve,openOnFocus:L=!1,options:Oe,readOnly:ce=!1,selectOnFocus:Se=!e.freeSolo,value:pe}=e,A=Eo(Pe);let D=xe;D=r=>{const t=xe(r);return typeof t!="string"?String(t):t};const Ce=h.useRef(!1),we=h.useRef(!0),T=h.useRef(null),X=h.useRef(null),[Fe,io]=h.useState(null),[W,Ge]=h.useState(-1),Ye=u?0:-1,V=h.useRef(Ye),[p,ho]=bo({controlled:pe,default:P,name:f}),[k,be]=bo({controlled:he,default:"",name:f,state:"inputValue"}),[De,Ze]=h.useState(!1),Re=h.useCallback((r,t)=>{if(!(C?p.length!(J&&(C?p:[p]).some(t=>t!==null&&Q(r,t)))),{inputValue:eo&&so?"":k,getOptionLabel:D}):[],ae=at({filteredOptions:O,value:p,inputValue:k});h.useEffect(()=>{const r=p!==ae.value;De&&!r||H&&!r||Re(null,p)},[p,Re,De,ae.value,H]);const Ke=$e&&O.length>0&&!ce,Me=no(r=>{r===-1?T.current.focus():Fe.querySelector(`[data-tag-index="${r}"]`).focus()});h.useEffect(()=>{C&&W>p.length-1&&(Ge(-1),Me(-1))},[p,C,W,Me]);function ze(r,t){if(!X.current||r<0||r>=O.length)return-1;let a=r;for(;;){const i=X.current.querySelector(`[data-option-index="${a}"]`),I=w?!1:!i||i.disabled||i.getAttribute("aria-disabled")==="true";if(i&&i.hasAttribute("tabindex")&&!I)return a;if(t==="next"?a=(a+1)%O.length:a=(a-1+O.length)%O.length,a===r)return-1}}const ue=no(({event:r,index:t,reason:a="auto"})=>{if(V.current=t,t===-1?T.current.removeAttribute("aria-activedescendant"):T.current.setAttribute("aria-activedescendant",`${A}-option-${t}`),se&&se(r,t===-1?null:O[t],a),!X.current)return;const i=X.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let I=X.current;if(X.current.getAttribute("role")!=="listbox"&&(I=X.current.parentElement.querySelector('[role="listbox"]')),!I)return;if(t===-1){I.scrollTop=0;return}const F=X.current.querySelector(`[data-option-index="${t}"]`);if(F&&(F.classList.add(`${n}-focused`),a==="keyboard"&&F.classList.add(`${n}-focusVisible`),I.scrollHeight>I.clientHeight&&a!=="mouse"&&a!=="touch")){const M=F,fe=I.clientHeight+I.scrollTop,$o=M.offsetTop+M.offsetHeight;$o>fe?I.scrollTop=$o-I.clientHeight:M.offsetTop-M.offsetHeight*(re?1.3:0){if(!U)return;const F=ze((()=>{const M=O.length-1;if(t==="reset")return Ye;if(t==="start")return 0;if(t==="end")return M;const fe=V.current+t;return fe<0?fe===-1&&ke?-1:Z&&V.current!==-1||Math.abs(t)>1?0:M:fe>M?fe===M+1&&ke?-1:Z||Math.abs(t)>1?M:0:fe})(),a);if(ue({index:F,reason:i,event:r}),l&&t!=="reset")if(F===-1)T.current.value=k;else{const M=D(O[F]);T.current.value=M,M.toLowerCase().indexOf(k.toLowerCase())===0&&k.length>0&&T.current.setSelectionRange(k.length,M.length)}}),Ne=()=>{const r=(t,a)=>{const i=t?D(t):"",I=a?D(a):"";return i===I};if(V.current!==-1&&ae.filteredOptions&&ae.filteredOptions.length!==O.length&&ae.inputValue===k&&(C?p.length===ae.value.length&&ae.value.every((t,a)=>D(p[a])===D(t)):r(ae.value,p))){const t=ae.filteredOptions[V.current];if(t&&O.some(i=>D(i)===D(t)))return!0}return!1},qe=h.useCallback(()=>{if(!U||Ne())return;const r=C?p[0]:p;if(O.length===0||r==null){ne({diff:"reset"});return}if(X.current){if(r!=null){const t=O[V.current];if(C&&t&&xo(p,i=>Q(t,i))!==-1)return;const a=xo(O,i=>Q(i,r));a===-1?ne({diff:"reset"}):ue({index:a});return}if(V.current>=O.length-1){ue({index:O.length-1});return}ue({index:V.current})}},[O.length,C?!1:p,J,ne,ue,U,k,C]),co=no(r=>{tt(X,r),r&&qe()});h.useEffect(()=>{qe()},[qe]);const oe=r=>{$e||(Je(!0),Qe(!0),ge&&ge(r))},me=(r,t)=>{$e&&(Je(!1),_&&_(r,t))},de=(r,t,a,i)=>{if(C){if(p.length===t.length&&p.every((I,F)=>I===t[F]))return}else if(p===t)return;ee&&ee(r,t,a,i),ho(t)},Ee=h.useRef(!1),Le=(r,t,a="selectOption",i="options")=>{let I=a,F=t;if(C){F=Array.isArray(p)?p.slice():[];const M=xo(F,fe=>Q(t,fe));M===-1?F.push(t):i!=="freeSolo"&&(F.splice(M,1),I="removeOption")}Re(r,F),de(r,F,I,{option:t}),!R&&(!r||!r.ctrlKey&&!r.metaKey)&&me(r,I),(b===!0||b==="touch"&&Ee.current||b==="mouse"&&!Ee.current)&&T.current.blur()};function oo(r,t){if(r===-1)return-1;let a=r;for(;;){if(t==="next"&&a===p.length||t==="previous"&&a===-1)return-1;const i=Fe.querySelector(`[data-tag-index="${a}"]`);if(!i||!i.hasAttribute("tabindex")||i.disabled||i.getAttribute("aria-disabled")==="true")a+=t==="next"?1:-1;else return a}}const to=(r,t)=>{if(!C)return;k===""&&me(r,"toggleInput");let a=W;W===-1?k===""&&t==="previous"&&(a=p.length-1):(a+=t==="next"?1:-1,a<0&&(a=0),a===p.length&&(a=-1)),a=oo(a,t),Ge(a),Me(a)},ro=r=>{Ce.current=!0,be(""),E&&E(r,"","clear"),de(r,C?[]:null,"clear")},po=r=>t=>{if(r.onKeyDown&&r.onKeyDown(t),!t.defaultMuiPrevented&&(W!==-1&&["ArrowLeft","ArrowRight"].indexOf(t.key)===-1&&(Ge(-1),Me(-1)),t.which!==229))switch(t.key){case"Home":U&&q&&(t.preventDefault(),ne({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":U&&q&&(t.preventDefault(),ne({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ne({diff:-ko,direction:"previous",reason:"keyboard",event:t}),oe(t);break;case"PageDown":t.preventDefault(),ne({diff:ko,direction:"next",reason:"keyboard",event:t}),oe(t);break;case"ArrowDown":t.preventDefault(),ne({diff:1,direction:"next",reason:"keyboard",event:t}),oe(t);break;case"ArrowUp":t.preventDefault(),ne({diff:-1,direction:"previous",reason:"keyboard",event:t}),oe(t);break;case"ArrowLeft":to(t,"previous");break;case"ArrowRight":to(t,"next");break;case"Enter":if(V.current!==-1&&U){const a=O[V.current],i=K?K(a):!1;if(t.preventDefault(),i)return;Le(t,a,"selectOption"),l&&T.current.setSelectionRange(T.current.value.length,T.current.value.length)}else H&&k!==""&&eo===!1&&(C&&t.preventDefault(),Le(t,k,"createOption","freeSolo"));break;case"Escape":U?(t.preventDefault(),t.stopPropagation(),me(t,"escape")):y&&(k!==""||C&&p.length>0)&&(t.preventDefault(),t.stopPropagation(),ro(t));break;case"Backspace":if(C&&!ce&&k===""&&p.length>0){const a=W===-1?p.length-1:W,i=p.slice();i.splice(a,1),de(t,i,"removeOption",{option:p[a]})}break;case"Delete":if(C&&!ce&&k===""&&p.length>0&&W!==-1){const a=W,i=p.slice();i.splice(a,1),de(t,i,"removeOption",{option:p[a]})}break}},vo=r=>{Ze(!0),L&&!Ce.current&&oe(r)},je=r=>{if(o(X)){T.current.focus();return}Ze(!1),we.current=!0,Ce.current=!1,x&&V.current!==-1&&U?Le(r,O[V.current],"blur"):x&&H&&k!==""?Le(r,k,"blur","freeSolo"):c&&Re(r,p),me(r,"blur")},j=r=>{const t=r.target.value;k!==t&&(be(t),Qe(!1),E&&E(r,t,"input")),t===""?!v&&!C&&de(r,null,"clear"):oe(r)},N=r=>{const t=Number(r.currentTarget.getAttribute("data-option-index"));V.current!==t&&ue({event:r,index:t,reason:"mouse"})},le=r=>{ue({event:r,index:Number(r.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ee.current=!0},Co=r=>{const t=Number(r.currentTarget.getAttribute("data-option-index"));Le(r,O[t],"selectOption"),Ee.current=!1},uo=r=>t=>{const a=p.slice();a.splice(r,1),de(t,a,"removeOption",{option:p[r]})},fo=r=>{$e?me(r,"toggleInput"):oe(r)},go=r=>{r.currentTarget.contains(r.target)&&r.target.getAttribute("id")!==A&&r.preventDefault()},ao=r=>{r.currentTarget.contains(r.target)&&(T.current.focus(),Se&&we.current&&T.current.selectionEnd-T.current.selectionStart===0&&T.current.select(),we.current=!1)},Xe=r=>{!S&&(k===""||!$e)&&fo(r)};let Te=H&&k.length>0;Te=Te||(C?p.length>0:p!==null);let He=O;return re&&(He=O.reduce((r,t,a)=>{const i=re(t);return r.length>0&&r[r.length-1].group===i?r[r.length-1].options.push(t):r.push({key:a,index:a,group:i,options:[t]}),r},[])),S&&De&&je(),{getRootProps:(r={})=>s({"aria-owns":Ke?`${A}-listbox`:null},r,{onKeyDown:po(r),onMouseDown:go,onClick:ao}),getInputLabelProps:()=>({id:`${A}-label`,htmlFor:A}),getInputProps:()=>({id:A,value:k,onBlur:je,onFocus:vo,onChange:j,onMouseDown:Xe,"aria-activedescendant":U?"":null,"aria-autocomplete":l?"both":"list","aria-controls":Ke?`${A}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:T,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ro}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:fo}),getTagProps:({index:r})=>s({key:r,"data-tag-index":r,tabIndex:-1},!ce&&{onDelete:uo(r)}),getListboxProps:()=>({role:"listbox",id:`${A}-listbox`,"aria-labelledby":`${A}-label`,ref:co,onMouseDown:r=>{r.preventDefault()}}),getOptionProps:({index:r,option:t})=>{var a;const i=(C?p:[p]).some(F=>F!=null&&Q(t,F)),I=K?K(t):!1;return{key:(a=te==null?void 0:te(t))!=null?a:D(t),tabIndex:-1,role:"option",id:`${A}-option-${r}`,onMouseMove:N,onClick:Co,onTouchStart:le,"data-option-index":r,"aria-disabled":I,"aria-selected":i}},id:A,inputValue:k,value:p,dirty:Te,expanded:U&&Fe,popupOpen:U,focused:De||W!==-1,anchorEl:Fe,setAnchorEl:io,focusedTag:W,groupedOptions:He}}function pt(e){return Be("MuiListSubheader",e)}_e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const ut=["className","color","component","disableGutters","disableSticky","inset"],dt=e=>{const{classes:o,color:n,disableGutters:l,inset:u,disableSticky:x}=e,b={root:["root",n!=="default"&&`color${g(n)}`,!l&&"gutters",u&&"inset",!x&&"sticky"]};return Ue(b,pt,o)},ft=z("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color!=="default"&&o[`color${g(n.color)}`],!n.disableGutters&&o.gutters,n.inset&&o.inset,!n.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>s({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),_o=h.forwardRef(function(o,n){const l=We({props:o,name:"MuiListSubheader"}),{className:u,color:x="default",component:b="li",disableGutters:c=!1,disableSticky:y=!1,inset:f=!1}=l,P=Ie(l,ut),v=s({},l,{color:x,component:b,disableGutters:c,disableSticky:y,inset:f}),R=dt(v);return d.jsx(ft,s({as:b,className:B(R.root,u),ref:n,ownerState:v},P))});_o.muiSkipListHighlight=!0;const gt=_o,bt=jo(d.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 mt(e){return Be("MuiChip",e)}const xt=_e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),$=xt,ht=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],vt=e=>{const{classes:o,disabled:n,size:l,color:u,iconColor:x,onDelete:b,clickable:c,variant:y}=e,f={root:["root",y,n&&"disabled",`size${g(l)}`,`color${g(u)}`,c&&"clickable",c&&`clickableColor${g(u)}`,b&&"deletable",b&&`deletableColor${g(u)}`,`${y}${g(u)}`],label:["label",`label${g(l)}`],avatar:["avatar",`avatar${g(l)}`,`avatarColor${g(u)}`],icon:["icon",`icon${g(l)}`,`iconColor${g(x)}`],deleteIcon:["deleteIcon",`deleteIcon${g(l)}`,`deleteIconColor${g(u)}`,`deleteIcon${g(y)}Color${g(u)}`]};return Ue(f,mt,o)},Ct=z("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{color:l,iconColor:u,clickable:x,onDelete:b,size:c,variant:y}=n;return[{[`& .${$.avatar}`]:o.avatar},{[`& .${$.avatar}`]:o[`avatar${g(c)}`]},{[`& .${$.avatar}`]:o[`avatarColor${g(l)}`]},{[`& .${$.icon}`]:o.icon},{[`& .${$.icon}`]:o[`icon${g(c)}`]},{[`& .${$.icon}`]:o[`iconColor${g(u)}`]},{[`& .${$.deleteIcon}`]:o.deleteIcon},{[`& .${$.deleteIcon}`]:o[`deleteIcon${g(c)}`]},{[`& .${$.deleteIcon}`]:o[`deleteIconColor${g(l)}`]},{[`& .${$.deleteIcon}`]:o[`deleteIcon${g(y)}Color${g(l)}`]},o.root,o[`size${g(c)}`],o[`color${g(l)}`],x&&o.clickable,x&&l!=="default"&&o[`clickableColor${g(l)})`],b&&o.deletable,b&&l!=="default"&&o[`deletableColor${g(l)}`],o[y],o[`${y}${g(l)}`]]}})(({theme:e,ownerState:o})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return s({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",[`&.${$.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${$.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${$.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${$.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${$.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${$.icon}`]:s({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&s({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},o.color!=="default"&&{color:"inherit"})),[`& .${$.deleteIcon}`]:s({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Y(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)`:Y(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)`:Y(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&&{[`&.${$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Y(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${$.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>s({},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}))`:Y(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Y(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, &.${$.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>s({},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]}`,[`&.${$.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${$.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${$.avatar}`]:{marginLeft:4},[`& .${$.avatarSmall}`]:{marginLeft:2},[`& .${$.icon}`]:{marginLeft:4},[`& .${$.iconSmall}`]:{marginLeft:2},[`& .${$.deleteIcon}`]:{marginRight:5},[`& .${$.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)`:Y(e.palette[o.color].main,.7)}`,[`&.${$.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Y(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${$.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Y(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${$.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Y(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),$t=z("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:n}=e,{size:l}=n;return[o.label,o[`label${g(l)}`]]}})(({ownerState:e})=>s({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Oo(e){return e.key==="Backspace"||e.key==="Delete"}const yt=h.forwardRef(function(o,n){const l=We({props:o,name:"MuiChip"}),{avatar:u,className:x,clickable:b,color:c="default",component:y,deleteIcon:f,disabled:P=!1,icon:v,label:R,onClick:S,onDelete:w,onKeyDown:Z,onKeyUp:G,size:J="medium",variant:H="filled",tabIndex:K,skipFocusWhenDisabled:te=!1}=l,xe=Ie(l,ht),re=h.useRef(null),q=Ho(re,n),Pe=L=>{L.stopPropagation(),w&&w(L)},ke=L=>{L.currentTarget===L.target&&Oo(L)&&L.preventDefault(),Z&&Z(L)},he=L=>{L.currentTarget===L.target&&(w&&Oo(L)?w(L):L.key==="Escape"&&re.current&&re.current.blur()),G&&G(L)},Q=b!==!1&&S?!0:b,C=Q||w?Io:y||"div",ee=s({},l,{component:C,disabled:P,size:J,color:c,iconColor:h.isValidElement(v)&&v.props.color||c,onDelete:!!w,clickable:Q,variant:H}),_=vt(ee),se=C===Io?s({component:y||"div",focusVisibleClassName:_.focusVisible},w&&{disableRipple:!0}):{};let E=null;w&&(E=f&&h.isValidElement(f)?h.cloneElement(f,{className:B(f.props.className,_.deleteIcon),onClick:Pe}):d.jsx(bt,{className:B(_.deleteIcon),onClick:Pe}));let ge=null;u&&h.isValidElement(u)&&(ge=h.cloneElement(u,{className:B(_.avatar,u.props.className)}));let ve=null;return v&&h.isValidElement(v)&&(ve=h.cloneElement(v,{className:B(_.icon,v.props.className)})),d.jsxs(Ct,s({as:C,className:B(_.root,x),disabled:Q&&P?!0:void 0,onClick:S,onKeyDown:ke,onKeyUp:he,ref:q,tabIndex:te&&P?-1:K,ownerState:ee},se,xe,{children:[ge||ve,d.jsx($t,{className:B(_.label),ownerState:ee,children:R}),E]}))}),It=yt;function Pt(e){return Be("MuiAutocomplete",e)}const kt=_e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),m=kt;var So,Ro;const Ot=["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"],St=["ref"],Rt=["key"],Lt=e=>{const{classes:o,disablePortal:n,expanded:l,focused:u,fullWidth:x,hasClearIcon:b,hasPopupIcon:c,inputFocused:y,popupOpen:f,size:P}=e,v={root:["root",l&&"expanded",u&&"focused",x&&"fullWidth",b&&"hasClearIcon",c&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",y&&"inputFocused"],tag:["tag",`tagSize${g(P)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",f&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ue(v,Pt,o)},Tt=z("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{fullWidth:l,hasClearIcon:u,hasPopupIcon:x,inputFocused:b,size:c}=n;return[{[`& .${m.tag}`]:o.tag},{[`& .${m.tag}`]:o[`tagSize${g(c)}`]},{[`& .${m.inputRoot}`]:o.inputRoot},{[`& .${m.input}`]:o.input},{[`& .${m.input}`]:b&&o.inputFocused},o.root,l&&o.fullWidth,x&&o.hasPopupIcon,u&&o.hasClearIcon]}})(({ownerState:e})=>s({[`&.${m.focused} .${m.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${m.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${m.tag}`]:s({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${m.inputRoot}`]:{flexWrap:"wrap",[`.${m.hasPopupIcon}&, .${m.hasClearIcon}&`]:{paddingRight:26+4},[`.${m.hasPopupIcon}.${m.hasClearIcon}&`]:{paddingRight:52+4},[`& .${m.input}`]:{width:0,minWidth:30}},[`& .${mo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${mo.root}.${Ae.sizeSmall}`]:{[`& .${mo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${yo.root}`]:{padding:9,[`.${m.hasPopupIcon}&, .${m.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${m.hasPopupIcon}.${m.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${m.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${m.endAdornment}`]:{right:9}},[`& .${yo.root}.${Ae.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${m.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ve.root}`]:{paddingTop:19,paddingLeft:8,[`.${m.hasPopupIcon}&, .${m.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${m.hasPopupIcon}.${m.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Ve.input}`]:{padding:"7px 4px"},[`& .${m.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Ae.sizeSmall}`]:{paddingBottom:1,[`& .${Ve.input}`]:{padding:"2.5px 4px"}},[`& .${Ae.hiddenLabel}`]:{paddingTop:8},[`& .${Ve.root}.${Ae.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${m.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ve.root}.${Ae.hiddenLabel}.${Ae.sizeSmall}`]:{[`& .${m.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${m.input}`]:s({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),At=z("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),wt=z(Vo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Ft=z(Vo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>s({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>s({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dt=z(Bo,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${m.option}`]:o.option},o.popper,n.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>s({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),Mt=z(No,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>s({},e.typography.body1,{overflow:"auto"})),zt=z("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Nt=z("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Et=z("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",[`& .${m.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"},[`&.${m.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"},[`&.${m.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})`:Y(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${m.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Y(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${m.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Y(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),jt=z(gt,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Ht=z("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${m.option}`]:{paddingLeft:24}}),Vt=h.forwardRef(function(o,n){var l,u,x,b;const c=We({props:o,name:"MuiAutocomplete"}),{autoComplete:y=!1,autoHighlight:f=!1,autoSelect:P=!1,blurOnSelect:v=!1,ChipProps:R,className:S,clearIcon:w=So||(So=d.jsx(nt,{fontSize:"small"})),clearOnBlur:Z=!c.freeSolo,clearOnEscape:G=!1,clearText:J="Clear",closeText:H="Close",componentsProps:K={},defaultValue:te=c.multiple?[]:null,disableClearable:xe=!1,disableCloseOnSelect:re=!1,disabled:q=!1,disabledItemsFocusable:Pe=!1,disableListWrap:ke=!1,disablePortal:he=!1,filterSelectedOptions:Q=!1,forcePopupIcon:C="auto",freeSolo:ee=!1,fullWidth:_=!1,getLimitTagsText:se=t=>`+${t}`,getOptionLabel:E,groupBy:ge,handleHomeEndKeys:ve=!c.freeSolo,includeInputInList:L=!1,limitTags:Oe=-1,ListboxComponent:ce="ul",ListboxProps:Se,loading:pe=!1,loadingText:A="Loading…",multiple:D=!1,noOptionsText:Ce="No options",openOnFocus:we=!1,openText:T="Open",PaperComponent:X=No,PopperComponent:Fe=Bo,popupIcon:io=Ro||(Ro=d.jsx(Xo,{})),readOnly:W=!1,renderGroup:Ge,renderInput:Ye,renderOption:V,renderTags:p,selectOnFocus:ho=!c.freeSolo,size:k="medium",slotProps:be={}}=c,De=Ie(c,Ot),{getRootProps:Ze,getInputProps:Re,getInputLabelProps:$e,getPopupIndicatorProps:Je,getClearProps:so,getTagProps:Qe,getListboxProps:eo,getOptionProps:U,value:O,dirty:ae,expanded:Ke,id:Me,popupOpen:ze,focused:ue,focusedTag:ne,anchorEl:Ne,setAnchorEl:qe,inputValue:co,groupedOptions:oe}=ct(s({},c,{componentName:"Autocomplete"})),me=!xe&&!q&&ae&&!W,de=(!ee||C===!0)&&C!==!1,{onMouseDown:Ee}=Re(),{ref:Le}=Se??{},oo=eo(),{ref:to}=oo,ro=Ie(oo,St),po=Ho(to,Le),je=E||(t=>{var a;return(a=t.label)!=null?a:t}),j=s({},c,{disablePortal:he,expanded:Ke,focused:ue,fullWidth:_,getOptionLabel:je,hasClearIcon:me,hasPopupIcon:de,inputFocused:ne===-1,popupOpen:ze,size:k}),N=Lt(j);let le;if(D&&O.length>0){const t=a=>s({className:N.tag,disabled:q},Qe(a));p?le=p(O,t,j):le=O.map((a,i)=>d.jsx(It,s({label:je(a),size:k},t({index:i}),R)))}if(Oe>-1&&Array.isArray(le)){const t=le.length-Oe;!ue&&t>0&&(le=le.splice(0,Oe),le.push(d.jsx("span",{className:N.tag,children:se(t)},le.length)))}const uo=Ge||(t=>d.jsxs("li",{children:[d.jsx(jt,{className:N.groupLabel,ownerState:j,component:"div",children:t.group}),d.jsx(Ht,{className:N.groupUl,ownerState:j,children:t.children})]},t.key)),go=V||((t,a)=>{const{key:i}=t,I=Ie(t,Rt);return d.jsx("li",s({},I,{children:je(a)}),i)}),ao=(t,a)=>{const i=U({option:t,index:a});return go(s({},i,{className:N.option}),t,{selected:i["aria-selected"],index:a,inputValue:co},j)},Xe=(l=be.clearIndicator)!=null?l:K.clearIndicator,Te=(u=be.paper)!=null?u:K.paper,He=(x=be.popper)!=null?x:K.popper,r=(b=be.popupIndicator)!=null?b:K.popupIndicator;return d.jsxs(h.Fragment,{children:[d.jsx(Tt,s({ref:n,className:B(N.root,S),ownerState:j},Ze(De),{children:Ye({id:Me,disabled:q,fullWidth:!0,size:k==="small"?"small":void 0,InputLabelProps:$e(),InputProps:s({ref:qe,className:N.inputRoot,startAdornment:le,onClick:t=>{t.target===t.currentTarget&&Ee(t)}},(me||de)&&{endAdornment:d.jsxs(At,{className:N.endAdornment,ownerState:j,children:[me?d.jsx(wt,s({},so(),{"aria-label":J,title:J,ownerState:j},Xe,{className:B(N.clearIndicator,Xe==null?void 0:Xe.className),children:w})):null,de?d.jsx(Ft,s({},Je(),{disabled:q,"aria-label":ze?H:T,title:ze?H:T,ownerState:j},r,{className:B(N.popupIndicator,r==null?void 0:r.className),children:io})):null]})}),inputProps:s({className:N.input,disabled:q,readOnly:W},Re())})})),Ne?d.jsx(Dt,s({as:Fe,disablePortal:he,style:{width:Ne?Ne.clientWidth:null},ownerState:j,role:"presentation",anchorEl:Ne,open:ze},He,{className:B(N.popper,He==null?void 0:He.className),children:d.jsxs(Mt,s({ownerState:j,as:X},Te,{className:B(N.paper,Te==null?void 0:Te.className),children:[pe&&oe.length===0?d.jsx(zt,{className:N.loading,ownerState:j,children:A}):null,oe.length===0&&!ee&&!pe?d.jsx(Nt,{className:N.noOptions,ownerState:j,role:"presentation",onMouseDown:t=>{t.preventDefault()},children:Ce}):null,oe.length>0?d.jsx(Et,s({as:ce,className:N.listbox,ownerState:j},ro,Se,{ref:po,children:oe.map((t,a)=>ge?uo({key:t.key,group:t.group,children:t.options.map((i,I)=>ao(i,t.index+I))}):ao(t,a))})):null]}))})):null]})}),Bt=Vt;function _t(e){return Be("MuiCircularProgress",e)}_e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Wt=["className","color","disableShrink","size","style","thickness","value","variant"];let lo=e=>e,Lo,To,Ao,wo;const ye=44,Ut=Mo(Lo||(Lo=lo` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-d7d885cc.js b/build/assets/index-3e35ec51.js similarity index 82% rename from build/assets/index-d7d885cc.js rename to build/assets/index-3e35ec51.js index 7334abad8..03a687040 100644 --- a/build/assets/index-d7d885cc.js +++ b/build/assets/index-3e35ec51.js @@ -1,4 +1,4 @@ -import{V as P,U as R,P as V,W as X,X as Y,Z as q,$ as K,a0 as Q,f as u,i as z,j as s,r as d,a1 as Z,h,F as p,a2 as J,a3 as B,k as b,n as ee,T as j,S as te,m as _,x as se,O as oe}from"./index-c522bd40.js";import{B as $,e as ne,I as G,f as ae,g as re,A as ie,P as ce,b as F,h as le,u as de,Q as xe,C as M,i as pe,S as he,a as ue,d as fe,c as ye,G as me,L as ge,F as ke,v as _e}from"./react-toastify.esm-1e5f1e5f.js";import{S as be}from"./index-0a908253.js";const v=[...E("Topic",20),{name:"bitcoin",edge_count:0,node_type:"Topic",ref_id:"b30aeba5-54a8-4227-8f05-79798a721996"},{name:"bitcoin",edge_count:0,node_type:"Topic",ref_id:"fc3a46e2-28ec-4a5f-9836-8308ef515005"},...E("Organization",20),...E("People",2)];[...A(v.filter(e=>e.node_type==="Topic"),v.filter(e=>e.node_type==="Organization")),...A(v.filter(e=>e.node_type==="Topic"),v.filter(e=>e.node_type==="People"))];function E(e,o){const t=[];for(let n=0;n{const r=f.edge_count||0,i=t.radius-t.radius*r/o;let c;r in a?c=a[r]:(c=Math.random()*300,a[r]=c);const x=i+c,g=Math.random()*Math.PI*2;return{...f,x:t.x+x*Math.cos(g),y:n,z:t.z+x*Math.sin(g)}})}const we=300,Se=(e,o)=>{const t=e.reduce((r,i)=>(r[i.node_type]?r[i.node_type].push(i):r[i.node_type]=[i],r),{}),n=Object.keys(t),a={x:0,y:0,z:0,radius:1e3},l=n.reduce((r,i,c)=>{const x=c%2===0?c/2:-Math.ceil(c/2),g=Math.max(...t[i].map(w=>w.edge_count||0),1),k=je(t[i],g,a,x*we);return[...r,...k]},[]),f=o.map(r=>{const i=l.find(k=>k.ref_id===r.source),c=l.find(k=>k.ref_id===r.target),x=new P((i==null?void 0:i.x)||0,(i==null?void 0:i.y)||0,(i==null?void 0:i.z)||0),g=new P((c==null?void 0:c.x)||0,(c==null?void 0:c.y)||0,(c==null?void 0:c.z)||0);return{...r,sourcePosition:x,targetPosition:g}});return{nodes:l,links:f,nodeTypes:n}},I={links:[],nodes:[]},ve=async(e,o,t)=>{try{return Ie(e,o,t)}catch{return console.log(I),I}},Ee=async(e,o)=>{new URLSearchParams({...V||X?{free:"true"}:{},...o}).toString();try{return await R.get("/prediction/graph/search?top_node_count=5&limit=5"+(o.word?`&word=${o.word}`:""))}catch(t){return console.error(t),null}return null},Te=async e=>{try{return await R.get(`/node/${e}`)}catch(o){return console.error(o),null}return null},Gt=async(e,o)=>{try{return await R.get(`/prediction/graph/edges/${e}?skip=${o}&limit=4&sort_by="edge_count"`)}catch(t){return console.error(t),null}return null},Ie=async(e,o,t)=>{try{const a=await Ee(o,t);if(a)return Re(a,e)}catch(n){return console.error(n),I}},Re=(e,o)=>{let{edges:t,nodes:n}=e;return console.log(o),Se(n,t)},ze={data:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,graphRadius:Y?1600:3056,graphStyle:localStorage.getItem("graphStyle")||"sphere",hoveredNode:null,selectedNode:null,cameraFocusTrigger:!1,selectedNodeRelativeIds:[],nearbyNodeIds:[],showSelectionGraph:!1,nodesNormalized:{},edgesNormalized:{},isFetching:!1,nodeTypes:[]},S=q()(K((e,o)=>({...ze,fetchData:async(t,n)=>{if(o().isFetching)return;e({isFetching:!0});const a=await ve(o().graphStyle,t,n??{}),l={};a==null||a.nodes.forEach(r=>{const i=r.ref_id;i&&(l[i]=r)});const f={};a==null||a.links.forEach(r=>{const i=`${r.source}-${r.target}`;i&&(f[i]=r)}),n!=null&&n.word&&await Q(),e({data:{nodes:(a==null?void 0:a.nodes)||[],links:(a==null?void 0:a.links)||[]},nodeTypes:a==null?void 0:a.nodeTypes,nodesNormalized:l,edgesNormalized:f,isFetching:!1,disableCameraRotation:!1,nearbyNodeIds:[],selectedNodeRelativeIds:[],showSelectionGraph:!1})},setIsFetching:t=>e({isFetching:t}),setData:t=>e({data:t}),removeLink:(t,n)=>{const{data:a,selectedNodeRelativeIds:l}=o();if(a){const{nodes:f,links:r}=a;e({data:{nodes:f,links:r.filter(i=>i.ref_id!==t)},selectedNodeRelativeIds:l.filter(i=>i!==n)})}},setSelectionData:t=>e({selectionGraphData:t}),setDisableCameraRotation:t=>e({disableCameraRotation:t}),setGraphRadius:t=>e({graphRadius:t}),setGraphStyle:t=>e({graphStyle:t}),setHoveredNode:t=>e({hoveredNode:t}),setSelectedNode:t=>{const n=o().selectedNode;if((n==null?void 0:n.ref_id)!==(t==null?void 0:t.ref_id)){const{data:a}=o(),l=[];t!=null&&t.ref_id&&(a==null||a.links.forEach(f=>{f.target===(t==null?void 0:t.ref_id)&&l.push(f.source),f.source===(t==null?void 0:t.ref_id)&&l.push(f.target)})),e({hoveredNode:null,selectedNode:t,showSelectionGraph:!!(t!=null&&t.ref_id),disableCameraRotation:!0,selectedNodeRelativeIds:l,...t!=null&&t.ref_id?{}:{selectionGraphData:{nodes:[],links:[]}}})}},setSelectedNodeRelativeIds:t=>e({selectedNodeRelativeIds:t}),setCameraFocusTrigger:t=>e({cameraFocusTrigger:t}),setNearbyNodeIds:t=>{const n=o().nearbyNodeIds;(t.length!==n.length||t[0]!==n[0])&&e({nearbyNodeIds:t})},setShowSelectionGraph:t=>e({showSelectionGraph:t}),addNewNode:t=>{const{data:n}=o();if(!n)return;const a={...n,nodes:[t,...n.nodes]};e({data:a})},addNewLink:t=>{const{data:n}=o();if(!n)return;const a=n.nodes.map(r=>r.ref_id===t.source||r.ref_id===t.target?{...r,edge_count:(r.edge_count||0)+1}:r),f={links:[...n.links,t],nodes:a};e({data:f})}}))),Ft=()=>S(e=>e.selectedNode),De=()=>{const[e,o]=z(t=>[t.cameraFocusTrigger,t.setCameraFocusTrigger]);return s.jsx(Ce,{href:"",onClick:()=>o(!e),size:"medium",startIcon:s.jsx(ne,{})})},Ce=u($)` +import{V as P,U as R,P as V,W as X,X as Y,Z as q,$ as K,a0 as Q,f as u,i as z,j as s,r as d,a1 as Z,h,F as p,a2 as J,a3 as B,k as b,n as ee,T as j,S as te,m as _,x as se,O as oe}from"./index-b85f35cf.js";import{B as $,e as ne,I as G,f as ae,g as re,A as ie,P as ce,b as F,h as le,u as de,Q as xe,C as M,i as pe,S as he,a as ue,d as fe,c as ye,G as me,L as ge,F as ke,v as _e}from"./react-toastify.esm-ce67a4f9.js";import{S as be}from"./index-f774867a.js";const v=[...E("Topic",20),{name:"bitcoin",edge_count:0,node_type:"Topic",ref_id:"b30aeba5-54a8-4227-8f05-79798a721996"},{name:"bitcoin",edge_count:0,node_type:"Topic",ref_id:"fc3a46e2-28ec-4a5f-9836-8308ef515005"},...E("Organization",20),...E("People",2)];[...A(v.filter(e=>e.node_type==="Topic"),v.filter(e=>e.node_type==="Organization")),...A(v.filter(e=>e.node_type==="Topic"),v.filter(e=>e.node_type==="People"))];function E(e,o){const t=[];for(let n=0;n{const r=f.edge_count||0,i=t.radius-t.radius*r/o;let c;r in a?c=a[r]:(c=Math.random()*300,a[r]=c);const x=i+c,g=Math.random()*Math.PI*2;return{...f,x:t.x+x*Math.cos(g),y:n,z:t.z+x*Math.sin(g)}})}const we=300,Se=(e,o)=>{const t=e.reduce((r,i)=>(r[i.node_type]?r[i.node_type].push(i):r[i.node_type]=[i],r),{}),n=Object.keys(t),a={x:0,y:0,z:0,radius:1e3},l=n.reduce((r,i,c)=>{const x=c%2===0?c/2:-Math.ceil(c/2),g=Math.max(...t[i].map(w=>w.edge_count||0),1),k=je(t[i],g,a,x*we);return[...r,...k]},[]),f=o.map(r=>{const i=l.find(k=>k.ref_id===r.source),c=l.find(k=>k.ref_id===r.target),x=new P((i==null?void 0:i.x)||0,(i==null?void 0:i.y)||0,(i==null?void 0:i.z)||0),g=new P((c==null?void 0:c.x)||0,(c==null?void 0:c.y)||0,(c==null?void 0:c.z)||0);return{...r,sourcePosition:x,targetPosition:g}});return{nodes:l,links:f,nodeTypes:n}},I={links:[],nodes:[]},ve=async(e,o,t)=>{try{return Ie(e,o,t)}catch{return console.log(I),I}},Ee=async(e,o)=>{new URLSearchParams({...V||X?{free:"true"}:{},...o}).toString();try{return await R.get("/prediction/graph/search?top_node_count=5&limit=5"+(o.word?`&word=${o.word}`:""))}catch(t){return console.error(t),null}return null},Te=async e=>{try{return await R.get(`/node/${e}`)}catch(o){return console.error(o),null}return null},Gt=async(e,o)=>{try{return await R.get(`/prediction/graph/edges/${e}?skip=${o}&limit=4&sort_by="edge_count"`)}catch(t){return console.error(t),null}return null},Ie=async(e,o,t)=>{try{const a=await Ee(o,t);if(a)return Re(a,e)}catch(n){return console.error(n),I}},Re=(e,o)=>{let{edges:t,nodes:n}=e;return console.log(o),Se(n,t)},ze={data:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!1,graphRadius:Y?1600:3056,graphStyle:localStorage.getItem("graphStyle")||"sphere",hoveredNode:null,selectedNode:null,cameraFocusTrigger:!1,selectedNodeRelativeIds:[],nearbyNodeIds:[],showSelectionGraph:!1,nodesNormalized:{},edgesNormalized:{},isFetching:!1,nodeTypes:[]},S=q()(K((e,o)=>({...ze,fetchData:async(t,n)=>{if(o().isFetching)return;e({isFetching:!0});const a=await ve(o().graphStyle,t,n??{}),l={};a==null||a.nodes.forEach(r=>{const i=r.ref_id;i&&(l[i]=r)});const f={};a==null||a.links.forEach(r=>{const i=`${r.source}-${r.target}`;i&&(f[i]=r)}),n!=null&&n.word&&await Q(),e({data:{nodes:(a==null?void 0:a.nodes)||[],links:(a==null?void 0:a.links)||[]},nodeTypes:a==null?void 0:a.nodeTypes,nodesNormalized:l,edgesNormalized:f,isFetching:!1,disableCameraRotation:!1,nearbyNodeIds:[],selectedNodeRelativeIds:[],showSelectionGraph:!1})},setIsFetching:t=>e({isFetching:t}),setData:t=>e({data:t}),removeLink:(t,n)=>{const{data:a,selectedNodeRelativeIds:l}=o();if(a){const{nodes:f,links:r}=a;e({data:{nodes:f,links:r.filter(i=>i.ref_id!==t)},selectedNodeRelativeIds:l.filter(i=>i!==n)})}},setSelectionData:t=>e({selectionGraphData:t}),setDisableCameraRotation:t=>e({disableCameraRotation:t}),setGraphRadius:t=>e({graphRadius:t}),setGraphStyle:t=>e({graphStyle:t}),setHoveredNode:t=>e({hoveredNode:t}),setSelectedNode:t=>{const n=o().selectedNode;if((n==null?void 0:n.ref_id)!==(t==null?void 0:t.ref_id)){const{data:a}=o(),l=[];t!=null&&t.ref_id&&(a==null||a.links.forEach(f=>{f.target===(t==null?void 0:t.ref_id)&&l.push(f.source),f.source===(t==null?void 0:t.ref_id)&&l.push(f.target)})),e({hoveredNode:null,selectedNode:t,showSelectionGraph:!!(t!=null&&t.ref_id),disableCameraRotation:!0,selectedNodeRelativeIds:l,...t!=null&&t.ref_id?{}:{selectionGraphData:{nodes:[],links:[]}}})}},setSelectedNodeRelativeIds:t=>e({selectedNodeRelativeIds:t}),setCameraFocusTrigger:t=>e({cameraFocusTrigger:t}),setNearbyNodeIds:t=>{const n=o().nearbyNodeIds;(t.length!==n.length||t[0]!==n[0])&&e({nearbyNodeIds:t})},setShowSelectionGraph:t=>e({showSelectionGraph:t}),addNewNode:t=>{const{data:n}=o();if(!n)return;const a={...n,nodes:[t,...n.nodes]};e({data:a})},addNewLink:t=>{const{data:n}=o();if(!n)return;const a=n.nodes.map(r=>r.ref_id===t.source||r.ref_id===t.target?{...r,edge_count:(r.edge_count||0)+1}:r),f={links:[...n.links,t],nodes:a};e({data:f})}}))),Ft=()=>S(e=>e.selectedNode),De=()=>{const[e,o]=z(t=>[t.cameraFocusTrigger,t.setCameraFocusTrigger]);return s.jsx(Ce,{href:"",onClick:()=>o(!e),size:"medium",startIcon:s.jsx(ne,{})})},Ce=u($)` && { padding: 0; width: 32px; @@ -143,7 +143,7 @@ import{V as P,U as R,P as V,W as X,X as Y,Z as q,$ as K,a0 as Q,f as u,i as z,j font-weight: 400; line-height: 24px; margin: 1px; -`,lt={},dt=d.createContext(lt),xt=()=>{const[e,o]=d.useState(!1),t=d.useMemo(()=>({isShow:e,setIsShow:o}),[e]);return s.jsx(dt.Provider,{value:t})},pt=d.lazy(()=>_(()=>import("./index-cbae5b15.js"),["assets/index-cbae5b15.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-04e75ad0.js","assets/useSlotProps-96b7890f.js","assets/index-2d16147d.js","assets/index.esm-f21f36d4.js","assets/InfoIcon-6417fafc.js"]).then(({SettingsModal:e})=>({default:e}))),ht=d.lazy(()=>_(()=>import("./index-488af8fb.js"),["assets/index-488af8fb.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/CheckIcon-1dbe3e4f.js","assets/index-2d16147d.js","assets/index.esm-f21f36d4.js","assets/InfoIcon-6417fafc.js"]).then(({AddContentModal:e})=>({default:e}))),ut=d.lazy(()=>_(()=>import("./index-10529c72.js"),["assets/index-10529c72.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/CheckIcon-1dbe3e4f.js","assets/index-2d16147d.js","assets/index.esm-f21f36d4.js","assets/InfoIcon-6417fafc.js","assets/index-211330ba.js","assets/Popover-243f389d.js","assets/useSlotProps-96b7890f.js","assets/Select-72591674.js","assets/Stack-f811e4d7.js","assets/Popper-831e364f.js","assets/index-0a908253.js"]).then(({AddItemModal:e})=>({default:e}))),ft=d.lazy(()=>_(()=>import("./index-dea9ab33.js"),["assets/index-dea9ab33.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/ChevronUpIcon-e45e7605.js","assets/ChevronDownIcon-e923c599.js","assets/index-04e75ad0.js","assets/useSlotProps-96b7890f.js","assets/Popover-243f389d.js","assets/index.esm-f21f36d4.js","assets/index-2d16147d.js","assets/InfoIcon-6417fafc.js","assets/index-fd857883.js","assets/Popper-831e364f.js","assets/CheckIcon-1dbe3e4f.js","assets/SettingsIcon-52b7c188.js"]).then(({SourcesTableModal:e})=>({default:e}))),yt=d.lazy(()=>_(()=>import("./index-f4cecc6a.js"),["assets/index-f4cecc6a.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-fd857883.js","assets/index-2d16147d.js","assets/index.esm-f21f36d4.js","assets/InfoIcon-6417fafc.js","assets/Skeleton-e77d8e84.js"]).then(({EditNodeNameModal:e})=>({default:e}))),mt=d.lazy(()=>_(()=>import("./index-1e6f3f24.js"),["assets/index-1e6f3f24.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/Skeleton-e77d8e84.js"]).then(({RemoveNodeModal:e})=>({default:e}))),gt=d.lazy(()=>_(()=>import("./index-05052fac.js"),["assets/index-05052fac.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-211330ba.js","assets/Popover-243f389d.js","assets/useSlotProps-96b7890f.js","assets/Select-72591674.js","assets/Stack-f811e4d7.js","assets/Popper-831e364f.js","assets/index-0a908253.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),kt=()=>s.jsxs(s.Fragment,{children:[s.jsx(ut,{}),s.jsx(ht,{}),s.jsx(pt,{}),s.jsx(yt,{}),s.jsx(mt,{}),s.jsx(ft,{}),s.jsx(gt,{})]}),_t=u(xe)` +`,lt={},dt=d.createContext(lt),xt=()=>{const[e,o]=d.useState(!1),t=d.useMemo(()=>({isShow:e,setIsShow:o}),[e]);return s.jsx(dt.Provider,{value:t})},pt=d.lazy(()=>_(()=>import("./index-af9ec5c1.js"),["assets/index-af9ec5c1.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-341edfe1.js","assets/useSlotProps-b8a587b0.js","assets/index-e6f0fb8d.js","assets/index.esm-ac56504e.js","assets/InfoIcon-de2f1e11.js"]).then(({SettingsModal:e})=>({default:e}))),ht=d.lazy(()=>_(()=>import("./index-dd766344.js"),["assets/index-dd766344.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/CheckIcon-b94a1aa2.js","assets/index-e6f0fb8d.js","assets/index.esm-ac56504e.js","assets/InfoIcon-de2f1e11.js"]).then(({AddContentModal:e})=>({default:e}))),ut=d.lazy(()=>_(()=>import("./index-9a5d03e5.js"),["assets/index-9a5d03e5.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/CheckIcon-b94a1aa2.js","assets/index-e6f0fb8d.js","assets/index.esm-ac56504e.js","assets/InfoIcon-de2f1e11.js","assets/index-39ab8de8.js","assets/Popover-28c1573e.js","assets/useSlotProps-b8a587b0.js","assets/Select-f3cb55de.js","assets/Stack-b0e83988.js","assets/Popper-704ca55a.js","assets/index-f774867a.js"]).then(({AddItemModal:e})=>({default:e}))),ft=d.lazy(()=>_(()=>import("./index-d1eb23da.js"),["assets/index-d1eb23da.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/ChevronUpIcon-6e1fca04.js","assets/ChevronDownIcon-cf5b6e54.js","assets/index-341edfe1.js","assets/useSlotProps-b8a587b0.js","assets/Popover-28c1573e.js","assets/index.esm-ac56504e.js","assets/index-e6f0fb8d.js","assets/InfoIcon-de2f1e11.js","assets/index-856cc0ad.js","assets/Popper-704ca55a.js","assets/CheckIcon-b94a1aa2.js","assets/SettingsIcon-cd476525.js"]).then(({SourcesTableModal:e})=>({default:e}))),yt=d.lazy(()=>_(()=>import("./index-27eeda15.js"),["assets/index-27eeda15.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-856cc0ad.js","assets/index-e6f0fb8d.js","assets/index.esm-ac56504e.js","assets/InfoIcon-de2f1e11.js","assets/Skeleton-bd55acf5.js"]).then(({EditNodeNameModal:e})=>({default:e}))),mt=d.lazy(()=>_(()=>import("./index-425defa3.js"),["assets/index-425defa3.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/Skeleton-bd55acf5.js"]).then(({RemoveNodeModal:e})=>({default:e}))),gt=d.lazy(()=>_(()=>import("./index-84d1451b.js"),["assets/index-84d1451b.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-39ab8de8.js","assets/Popover-28c1573e.js","assets/useSlotProps-b8a587b0.js","assets/Select-f3cb55de.js","assets/Stack-b0e83988.js","assets/Popper-704ca55a.js","assets/index-f774867a.js"]).then(({AddNodeEdgeModal:e})=>({default:e}))),kt=()=>s.jsxs(s.Fragment,{children:[s.jsx(ut,{}),s.jsx(ht,{}),s.jsx(pt,{}),s.jsx(yt,{}),s.jsx(mt,{}),s.jsx(ft,{}),s.jsx(gt,{})]}),_t=u(xe)` .Toastify__toast { background-color: ${h.body}; } @@ -189,4 +189,4 @@ import{V as P,U as R,P as V,W as X,X as Y,Z as q,$ as K,a0 as Q,f as u,i as z,j color: ${h.white}; font-size: 12px; opacity: 0.5; -`,Ct=d.lazy(()=>_(()=>import("./index-6b65029d.js"),["assets/index-6b65029d.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/SourcesTableIcon-d2644acb.js","assets/SettingsIcon-52b7c188.js","assets/index-dae8afeb.js"]).then(({MainToolbar:e})=>({default:e}))),Pt=d.lazy(()=>_(()=>import("./index-e6397dbc.js"),["assets/index-e6397dbc.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-7bc58129.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/DeleteIcon-9344ab3f.js","assets/index.esm-f21f36d4.js","assets/EditIcon-26187d62.js","assets/PlusIcon-8eca7748.js","assets/index-dae8afeb.js","assets/index-0a908253.js"]).then(({Universe:e})=>({default:e})));d.lazy(()=>_(()=>import("./index-c49cd75f.js"),["assets/index-c49cd75f.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-0a908253.js","assets/ChevronRightIcon-83b85265.js","assets/Select-72591674.js","assets/Popover-243f389d.js","assets/useSlotProps-96b7890f.js","assets/ChevronDownIcon-e923c599.js","assets/generateCategoricalChart-876bdce4.js","assets/InfoIcon-6417fafc.js","assets/index.esm-f21f36d4.js","assets/ChevronRightIcon-6125620a.css","assets/index-2ab7123b.js","assets/CheckIcon-1dbe3e4f.js"]).then(({SideBar:e})=>({default:e})));const At=()=>{const[e,o]=se(y=>[y.setBudget,y.setNodeCount]),[t,n,a,l,f]=[b(y=>y.setSidebarOpen),b(y=>y.currentSearch),b(y=>y.setCurrentSearch),b(y=>y.setRelevanceSelected),b(y=>y.setTranscriptOpen)],[r,i]=S(y=>[y.fetchData,y.setSelectedNode]),c=fe(),x=ye({mode:"onChange"}),g=x.handleSubmit(({search:y})=>{f(!1),i(null),l(!1),a(y)}),k=d.useCallback(async()=>{await r(e,{word:n??""}),t(!0),n&&await oe(e)},[r,n,t,e]);d.useEffect(()=>{k()},[n,k]);const w=d.useCallback(()=>{o("INCREMENT")},[o]);return d.useEffect(()=>{c&&(c.on("connect_error",y=>{console.error("Socket connection error:",y)}),c.on("newnode",w))},[c,w]),d.useEffect(()=>()=>{c&&c.disconnect()},[c]),s.jsxs(s.Fragment,{children:[s.jsx(me,{}),s.jsx(it,{}),s.jsx(ge,{hidden:!V}),s.jsx(d.Suspense,{fallback:s.jsx("div",{children:"Loading..."}),children:s.jsxs(zt,{direction:"row",children:[s.jsxs(ke,{...x,children:[s.jsx(Ct,{}),!1,s.jsx(Pt,{}),s.jsx(nt,{}),s.jsxs(Dt,{children:["v",_e]}),s.jsx(st,{}),s.jsx(It,{onSubmit:g})]}),s.jsx(kt,{}),s.jsx(_t,{}),s.jsx(xt,{})]})})]})},Mt=Object.freeze(Object.defineProperty({__proto__:null,AppNew:At},Symbol.toStringTag,{value:"Module"}));export{S as a,Gt as f,Mt as i,Ft as u}; +`,Ct=d.lazy(()=>_(()=>import("./index-d440b5f0.js"),["assets/index-d440b5f0.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/SourcesTableIcon-9e0ca82c.js","assets/SettingsIcon-cd476525.js","assets/index-b9c9b7e2.js"]).then(({MainToolbar:e})=>({default:e}))),Pt=d.lazy(()=>_(()=>import("./index-f0140d93.js"),["assets/index-f0140d93.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-e0d568ee.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/DeleteIcon-7b7519eb.js","assets/index.esm-ac56504e.js","assets/EditIcon-67ff5cde.js","assets/PlusIcon-261fd641.js","assets/index-b9c9b7e2.js","assets/index-f774867a.js"]).then(({Universe:e})=>({default:e})));d.lazy(()=>_(()=>import("./index-b492ed52.js"),["assets/index-b492ed52.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-f774867a.js","assets/ChevronRightIcon-27a1f67e.js","assets/Select-f3cb55de.js","assets/Popover-28c1573e.js","assets/useSlotProps-b8a587b0.js","assets/ChevronDownIcon-cf5b6e54.js","assets/generateCategoricalChart-a6175423.js","assets/InfoIcon-de2f1e11.js","assets/index.esm-ac56504e.js","assets/ChevronRightIcon-6125620a.css","assets/index-1e89d407.js","assets/CheckIcon-b94a1aa2.js"]).then(({SideBar:e})=>({default:e})));const At=()=>{const[e,o]=se(y=>[y.setBudget,y.setNodeCount]),[t,n,a,l,f]=[b(y=>y.setSidebarOpen),b(y=>y.currentSearch),b(y=>y.setCurrentSearch),b(y=>y.setRelevanceSelected),b(y=>y.setTranscriptOpen)],[r,i]=S(y=>[y.fetchData,y.setSelectedNode]),c=fe(),x=ye({mode:"onChange"}),g=x.handleSubmit(({search:y})=>{f(!1),i(null),l(!1),a(y)}),k=d.useCallback(async()=>{await r(e,{word:n??""}),t(!0),n&&await oe(e)},[r,n,t,e]);d.useEffect(()=>{k()},[n,k]);const w=d.useCallback(()=>{o("INCREMENT")},[o]);return d.useEffect(()=>{c&&(c.on("connect_error",y=>{console.error("Socket connection error:",y)}),c.on("newnode",w))},[c,w]),d.useEffect(()=>()=>{c&&c.disconnect()},[c]),s.jsxs(s.Fragment,{children:[s.jsx(me,{}),s.jsx(it,{}),s.jsx(ge,{hidden:!V}),s.jsx(d.Suspense,{fallback:s.jsx("div",{children:"Loading..."}),children:s.jsxs(zt,{direction:"row",children:[s.jsxs(ke,{...x,children:[s.jsx(Ct,{}),!1,s.jsx(Pt,{}),s.jsx(nt,{}),s.jsxs(Dt,{children:["v",_e]}),s.jsx(st,{}),s.jsx(It,{onSubmit:g})]}),s.jsx(kt,{}),s.jsx(_t,{}),s.jsx(xt,{})]})})]})},Mt=Object.freeze(Object.defineProperty({__proto__:null,AppNew:At},Symbol.toStringTag,{value:"Module"}));export{S as a,Gt as f,Mt as i,Ft as u}; diff --git a/build/assets/index-1e6f3f24.js b/build/assets/index-425defa3.js similarity index 82% rename from build/assets/index-1e6f3f24.js rename to build/assets/index-425defa3.js index f9194ba50..a7827bd6b 100644 --- a/build/assets/index-1e6f3f24.js +++ b/build/assets/index-425defa3.js @@ -1,4 +1,4 @@ -import{f as y,T as w,j as e,F as n,r as t,a3 as S,h as g,z as v,bh as T}from"./index-c522bd40.js";import{B}from"./index-4e0797a7.js";import{u as C}from"./index-dae8afeb.js";import{S as E}from"./Skeleton-e77d8e84.js";import{B as d,C as b}from"./react-toastify.esm-1e5f1e5f.js";const z=()=>e.jsx(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(L,{children:"Remove node"})})})}),L=y(w)` +import{f as y,T as w,j as e,F as n,r as t,a3 as S,h as g,z as v,bh as T}from"./index-b85f35cf.js";import{B}from"./index-0c223900.js";import{u as C}from"./index-b9c9b7e2.js";import{S as E}from"./Skeleton-bd55acf5.js";import{B as d,C as b}from"./react-toastify.esm-ce67a4f9.js";const z=()=>e.jsx(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(L,{children:"Remove node"})})})}),L=y(w)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-59318f27.js b/build/assets/index-47761ce5.js similarity index 95% rename from build/assets/index-59318f27.js rename to build/assets/index-47761ce5.js index b4363367c..2060343bc 100644 --- a/build/assets/index-59318f27.js +++ b/build/assets/index-47761ce5.js @@ -1,4 +1,4 @@ -import{g as ee,a as te,s as P,_ as S,a7 as Ce,r as g,b as se,j as t,d as ne,c as E,e as oe,u as ue,aT as Be,a$ as K,b0 as re,a5 as le,b1 as Te,b2 as ze,f as w,F as x,T as R,i as Re,k as he,K as Ne,C as ae,h as v,b3 as Fe,b4 as X,U as Q,b5 as Ee,G as Pe,b6 as Ae,x as Me,I as Ie}from"./index-c522bd40.js";import{B as xe}from"./index-4e0797a7.js";import{u as V}from"./index-dae8afeb.js";import{o as De,h as Oe,c as ge,F as me,C as H,p as Ge,i as Le,I as fe,B as Y}from"./react-toastify.esm-1e5f1e5f.js";import{B as be,T as We,a as Ve}from"./index-04e75ad0.js";import{T as q}from"./index-2d16147d.js";import{A as ye}from"./index-211330ba.js";import{p as _e,c as Ue}from"./index-30d16895.js";import{O as de,N as qe}from"./constants-cde8ebc3.js";import{D as Ke}from"./DeleteIcon-9344ab3f.js";import{P as we}from"./PlusIcon-8eca7748.js";import{e as He}from"./Stack-f811e4d7.js";import{u as Ye,a as Je}from"./Popover-243f389d.js";import{u as Ze}from"./Select-72591674.js";import{S as Xe,a as D,b as Qe,E as et}from"./index-48249864.js";import{E as tt}from"./EditIcon-26187d62.js";import{M as st,a as nt}from"./ChevronUpIcon-e45e7605.js";import"./useSlotProps-96b7890f.js";import"./index.esm-f21f36d4.js";import"./InfoIcon-6417fafc.js";import"./Popper-831e364f.js";import"./generateCategoricalChart-876bdce4.js";import"./index-fd857883.js";import"./CheckIcon-1dbe3e4f.js";import"./ChevronDownIcon-e923c599.js";function ot(e){return ee("PrivateSwitchBase",e)}te("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const rt=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],at=e=>{const{classes:s,checked:n,disabled:o,edge:r}=e,a={root:["root",n&&"checked",o&&"disabled",r&&`edge${E(r)}`],input:["input"]};return oe(a,ot,s)},it=P(De)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ct=P("input",{shouldForwardProp:Ce})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lt=g.forwardRef(function(s,n){const{autoFocus:o,checked:r,checkedIcon:a,className:l,defaultChecked:p,disabled:d,disableFocusRipple:c=!1,edge:i=!1,icon:u,id:h,inputProps:f,inputRef:C,name:F,onBlur:b,onChange:T,onFocus:A,readOnly:M,required:G=!1,tabIndex:m,type:y,value:k}=s,$=se(s,rt),[U,I]=Ze({controlled:r,default:!!p,name:"SwitchBase",state:"checked"}),z=Ye(),Se=B=>{A&&A(B),z&&z.onFocus&&z.onFocus(B)},ve=B=>{b&&b(B),z&&z.onBlur&&z.onBlur(B)},$e=B=>{if(B.nativeEvent.defaultPrevented)return;const ce=B.target.checked;I(ce),T&&T(B,ce)};let L=d;z&&typeof L>"u"&&(L=z.disabled);const ke=y==="checkbox"||y==="radio",J=S({},s,{checked:U,disabled:L,disableFocusRipple:c,edge:i}),ie=at(J);return t.jsxs(it,S({component:"span",className:ne(ie.root,l),centerRipple:!0,focusRipple:!c,disabled:L,tabIndex:null,role:void 0,onFocus:Se,onBlur:ve,ownerState:J,ref:n},$,{children:[t.jsx(ct,S({autoFocus:o,checked:r,defaultChecked:p,className:ie.input,disabled:L,id:ke?h:void 0,name:F,onChange:$e,readOnly:M,ref:C,required:G,ownerState:J,tabIndex:m,type:y},y==="checkbox"&&k===void 0?{}:{value:k},f)),U?a:u]}))}),dt=lt,pt=g.createContext(),pe=pt;function ut(e){return ee("MuiGrid",e)}const ht=[0,1,2,3,4,5,6,7,8,9,10],xt=["column-reverse","column","row-reverse","row"],gt=["nowrap","wrap-reverse","wrap"],W=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],mt=te("MuiGrid",["root","container","item","zeroMinWidth",...ht.map(e=>`spacing-xs-${e}`),...xt.map(e=>`direction-xs-${e}`),...gt.map(e=>`wrap-xs-${e}`),...W.map(e=>`grid-xs-${e}`),...W.map(e=>`grid-sm-${e}`),...W.map(e=>`grid-md-${e}`),...W.map(e=>`grid-lg-${e}`),...W.map(e=>`grid-xl-${e}`)]),_=mt,ft=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function O(e){const s=parseFloat(e);return`${s}${String(e).replace(String(s),"")||"px"}`}function bt({theme:e,ownerState:s}){let n;return e.breakpoints.keys.reduce((o,r)=>{let a={};if(s[r]&&(n=s[r]),!n)return o;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=K({values:s.columns,breakpoints:e.breakpoints.values}),p=typeof l=="object"?l[r]:l;if(p==null)return o;const d=`${Math.round(n/p*1e8)/1e6}%`;let c={};if(s.container&&s.item&&s.columnSpacing!==0){const i=e.spacing(s.columnSpacing);if(i!=="0px"){const u=`calc(${d} + ${O(i)})`;c={flexBasis:u,maxWidth:u}}}a=S({flexBasis:d,flexGrow:0,maxWidth:d},c)}return e.breakpoints.values[r]===0?Object.assign(o,a):o[e.breakpoints.up(r)]=a,o},{})}function yt({theme:e,ownerState:s}){const n=K({values:s.direction,breakpoints:e.breakpoints.values});return re({theme:e},n,o=>{const r={flexDirection:o};return o.indexOf("column")===0&&(r[`& > .${_.item}`]={maxWidth:"none"}),r})}function je({breakpoints:e,values:s}){let n="";Object.keys(s).forEach(r=>{n===""&&s[r]!==0&&(n=r)});const o=Object.keys(e).sort((r,a)=>e[r]-e[a]);return o.slice(0,o.indexOf(n))}function wt({theme:e,ownerState:s}){const{container:n,rowSpacing:o}=s;let r={};if(n&&o!==0){const a=K({values:o,breakpoints:e.breakpoints.values});let l;typeof a=="object"&&(l=je({breakpoints:e.breakpoints.values,values:a})),r=re({theme:e},a,(p,d)=>{var c;const i=e.spacing(p);return i!=="0px"?{marginTop:`-${O(i)}`,[`& > .${_.item}`]:{paddingTop:O(i)}}:(c=l)!=null&&c.includes(d)?{}:{marginTop:0,[`& > .${_.item}`]:{paddingTop:0}}})}return r}function jt({theme:e,ownerState:s}){const{container:n,columnSpacing:o}=s;let r={};if(n&&o!==0){const a=K({values:o,breakpoints:e.breakpoints.values});let l;typeof a=="object"&&(l=je({breakpoints:e.breakpoints.values,values:a})),r=re({theme:e},a,(p,d)=>{var c;const i=e.spacing(p);return i!=="0px"?{width:`calc(100% + ${O(i)})`,marginLeft:`-${O(i)}`,[`& > .${_.item}`]:{paddingLeft:O(i)}}:(c=l)!=null&&c.includes(d)?{}:{width:"100%",marginLeft:0,[`& > .${_.item}`]:{paddingLeft:0}}})}return r}function St(e,s,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const o=[];return s.forEach(r=>{const a=e[r];Number(a)>0&&o.push(n[`spacing-${r}-${String(a)}`])}),o}const vt=P("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:n}=e,{container:o,direction:r,item:a,spacing:l,wrap:p,zeroMinWidth:d,breakpoints:c}=n;let i=[];o&&(i=St(l,c,s));const u=[];return c.forEach(h=>{const f=n[h];f&&u.push(s[`grid-${h}-${String(f)}`])}),[s.root,o&&s.container,a&&s.item,d&&s.zeroMinWidth,...i,r!=="row"&&s[`direction-xs-${String(r)}`],p!=="wrap"&&s[`wrap-xs-${String(p)}`],...u]}})(({ownerState:e})=>S({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),yt,wt,jt,bt);function $t(e,s){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return s.forEach(o=>{const r=e[o];if(Number(r)>0){const a=`spacing-${o}-${String(r)}`;n.push(a)}}),n}const kt=e=>{const{classes:s,container:n,direction:o,item:r,spacing:a,wrap:l,zeroMinWidth:p,breakpoints:d}=e;let c=[];n&&(c=$t(a,d));const i=[];d.forEach(h=>{const f=e[h];f&&i.push(`grid-${h}-${String(f)}`)});const u={root:["root",n&&"container",r&&"item",p&&"zeroMinWidth",...c,o!=="row"&&`direction-xs-${String(o)}`,l!=="wrap"&&`wrap-xs-${String(l)}`,...i]};return oe(u,ut,s)},Ct=g.forwardRef(function(s,n){const o=ue({props:s,name:"MuiGrid"}),{breakpoints:r}=Be(),a=He(o),{className:l,columns:p,columnSpacing:d,component:c="div",container:i=!1,direction:u="row",item:h=!1,rowSpacing:f,spacing:C=0,wrap:F="wrap",zeroMinWidth:b=!1}=a,T=se(a,ft),A=f||C,M=d||C,G=g.useContext(pe),m=i?p||12:G,y={},k=S({},T);r.keys.forEach(I=>{T[I]!=null&&(y[I]=T[I],delete k[I])});const $=S({},a,{columns:m,container:i,direction:u,item:h,rowSpacing:A,columnSpacing:M,wrap:F,zeroMinWidth:b,spacing:C},y,{breakpoints:r.keys}),U=kt($);return t.jsx(pe.Provider,{value:m,children:t.jsx(vt,S({ownerState:$,className:ne(U.root,l),as:c,ref:n},k))})}),N=Ct;function Bt(e){return ee("MuiSwitch",e)}const Tt=te("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),j=Tt,zt=["className","color","edge","size","sx"],Rt=e=>{const{classes:s,edge:n,size:o,color:r,checked:a,disabled:l}=e,p={root:["root",n&&`edge${E(n)}`,`size${E(o)}`],switchBase:["switchBase",`color${E(r)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=oe(p,Bt,s);return S({},s,d)},Nt=P("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:n}=e;return[s.root,n.edge&&s[`edge${E(n.edge)}`],s[`size${E(n.size)}`]]}})(({ownerState:e})=>S({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${j.thumb}`]:{width:16,height:16},[`& .${j.switchBase}`]:{padding:4,[`&.${j.checked}`]:{transform:"translateX(16px)"}}})),Ft=P(dt,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,s)=>{const{ownerState:n}=e;return[s.switchBase,{[`& .${j.input}`]:s.input},n.color!=="default"&&s[`color${E(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${j.checked}`]:{transform:"translateX(20px)"},[`&.${j.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${j.checked} + .${j.track}`]:{opacity:.5},[`&.${j.disabled} + .${j.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${j.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:s})=>S({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:le(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},s.color!=="default"&&{[`&.${j.checked}`]:{color:(e.vars||e).palette[s.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[s.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:le(e.palette[s.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${j.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${s.color}DisabledColor`]:`${e.palette.mode==="light"?Te(e.palette[s.color].main,.62):ze(e.palette[s.color].main,.55)}`}},[`&.${j.checked} + .${j.track}`]:{backgroundColor:(e.vars||e).palette[s.color].main}})),Et=P("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,s)=>s.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Pt=P("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,s)=>s.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),At=g.forwardRef(function(s,n){const o=ue({props:s,name:"MuiSwitch"}),{className:r,color:a="primary",edge:l=!1,size:p="medium",sx:d}=o,c=se(o,zt),i=S({},o,{color:a,edge:l,size:p}),u=Rt(i),h=t.jsx(Pt,{className:u.thumb,ownerState:i});return t.jsxs(Nt,{className:ne(u.root,r),sx:d,ownerState:i,children:[t.jsx(Ft,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:i},c,{classes:S({},u,{root:u.switchBase})})),t.jsx(Et,{className:u.track,ownerState:i})]})}),Mt=At,It=({onClose:e})=>{const[s]=Re(o=>[o.graphStyle]),n=()=>{localStorage.setItem("graphStyle",s),e()};return t.jsxs(Dt,{direction:"column",children:[t.jsx(Ot,{children:"Default graph view:"}),t.jsx(Oe,{}),t.jsx(x,{mt:308,children:t.jsx(be,{kind:"big",onClick:n,children:"Save Changes"})})]})},Dt=w(x)` +import{g as ee,a as te,s as P,_ as S,a7 as Ce,r as g,b as se,j as t,d as ne,c as E,e as oe,u as ue,aT as Be,a$ as K,b0 as re,a5 as le,b1 as Te,b2 as ze,f as w,F as x,T as R,i as Re,k as he,K as Ne,C as ae,h as v,b3 as Fe,b4 as X,U as Q,b5 as Ee,G as Pe,b6 as Ae,x as Me,I as Ie}from"./index-b85f35cf.js";import{B as xe}from"./index-0c223900.js";import{u as V}from"./index-b9c9b7e2.js";import{o as De,h as Oe,c as ge,F as me,C as H,p as Ge,i as Le,I as fe,B as Y}from"./react-toastify.esm-ce67a4f9.js";import{B as be,T as We,a as Ve}from"./index-341edfe1.js";import{T as q}from"./index-e6f0fb8d.js";import{A as ye}from"./index-39ab8de8.js";import{p as _e,c as Ue}from"./index-30d16895.js";import{O as de,N as qe}from"./constants-cde8ebc3.js";import{D as Ke}from"./DeleteIcon-7b7519eb.js";import{P as we}from"./PlusIcon-261fd641.js";import{e as He}from"./Stack-b0e83988.js";import{u as Ye,a as Je}from"./Popover-28c1573e.js";import{u as Ze}from"./Select-f3cb55de.js";import{S as Xe,a as D,b as Qe,E as et}from"./index-49e7e9f0.js";import{E as tt}from"./EditIcon-67ff5cde.js";import{M as st,a as nt}from"./ChevronUpIcon-6e1fca04.js";import"./useSlotProps-b8a587b0.js";import"./index.esm-ac56504e.js";import"./InfoIcon-de2f1e11.js";import"./Popper-704ca55a.js";import"./generateCategoricalChart-a6175423.js";import"./index-856cc0ad.js";import"./CheckIcon-b94a1aa2.js";import"./ChevronDownIcon-cf5b6e54.js";function ot(e){return ee("PrivateSwitchBase",e)}te("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const rt=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],at=e=>{const{classes:s,checked:n,disabled:o,edge:r}=e,a={root:["root",n&&"checked",o&&"disabled",r&&`edge${E(r)}`],input:["input"]};return oe(a,ot,s)},it=P(De)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ct=P("input",{shouldForwardProp:Ce})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lt=g.forwardRef(function(s,n){const{autoFocus:o,checked:r,checkedIcon:a,className:l,defaultChecked:p,disabled:d,disableFocusRipple:c=!1,edge:i=!1,icon:u,id:h,inputProps:f,inputRef:C,name:F,onBlur:b,onChange:T,onFocus:A,readOnly:M,required:G=!1,tabIndex:m,type:y,value:k}=s,$=se(s,rt),[U,I]=Ze({controlled:r,default:!!p,name:"SwitchBase",state:"checked"}),z=Ye(),Se=B=>{A&&A(B),z&&z.onFocus&&z.onFocus(B)},ve=B=>{b&&b(B),z&&z.onBlur&&z.onBlur(B)},$e=B=>{if(B.nativeEvent.defaultPrevented)return;const ce=B.target.checked;I(ce),T&&T(B,ce)};let L=d;z&&typeof L>"u"&&(L=z.disabled);const ke=y==="checkbox"||y==="radio",J=S({},s,{checked:U,disabled:L,disableFocusRipple:c,edge:i}),ie=at(J);return t.jsxs(it,S({component:"span",className:ne(ie.root,l),centerRipple:!0,focusRipple:!c,disabled:L,tabIndex:null,role:void 0,onFocus:Se,onBlur:ve,ownerState:J,ref:n},$,{children:[t.jsx(ct,S({autoFocus:o,checked:r,defaultChecked:p,className:ie.input,disabled:L,id:ke?h:void 0,name:F,onChange:$e,readOnly:M,ref:C,required:G,ownerState:J,tabIndex:m,type:y},y==="checkbox"&&k===void 0?{}:{value:k},f)),U?a:u]}))}),dt=lt,pt=g.createContext(),pe=pt;function ut(e){return ee("MuiGrid",e)}const ht=[0,1,2,3,4,5,6,7,8,9,10],xt=["column-reverse","column","row-reverse","row"],gt=["nowrap","wrap-reverse","wrap"],W=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],mt=te("MuiGrid",["root","container","item","zeroMinWidth",...ht.map(e=>`spacing-xs-${e}`),...xt.map(e=>`direction-xs-${e}`),...gt.map(e=>`wrap-xs-${e}`),...W.map(e=>`grid-xs-${e}`),...W.map(e=>`grid-sm-${e}`),...W.map(e=>`grid-md-${e}`),...W.map(e=>`grid-lg-${e}`),...W.map(e=>`grid-xl-${e}`)]),_=mt,ft=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function O(e){const s=parseFloat(e);return`${s}${String(e).replace(String(s),"")||"px"}`}function bt({theme:e,ownerState:s}){let n;return e.breakpoints.keys.reduce((o,r)=>{let a={};if(s[r]&&(n=s[r]),!n)return o;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const l=K({values:s.columns,breakpoints:e.breakpoints.values}),p=typeof l=="object"?l[r]:l;if(p==null)return o;const d=`${Math.round(n/p*1e8)/1e6}%`;let c={};if(s.container&&s.item&&s.columnSpacing!==0){const i=e.spacing(s.columnSpacing);if(i!=="0px"){const u=`calc(${d} + ${O(i)})`;c={flexBasis:u,maxWidth:u}}}a=S({flexBasis:d,flexGrow:0,maxWidth:d},c)}return e.breakpoints.values[r]===0?Object.assign(o,a):o[e.breakpoints.up(r)]=a,o},{})}function yt({theme:e,ownerState:s}){const n=K({values:s.direction,breakpoints:e.breakpoints.values});return re({theme:e},n,o=>{const r={flexDirection:o};return o.indexOf("column")===0&&(r[`& > .${_.item}`]={maxWidth:"none"}),r})}function je({breakpoints:e,values:s}){let n="";Object.keys(s).forEach(r=>{n===""&&s[r]!==0&&(n=r)});const o=Object.keys(e).sort((r,a)=>e[r]-e[a]);return o.slice(0,o.indexOf(n))}function wt({theme:e,ownerState:s}){const{container:n,rowSpacing:o}=s;let r={};if(n&&o!==0){const a=K({values:o,breakpoints:e.breakpoints.values});let l;typeof a=="object"&&(l=je({breakpoints:e.breakpoints.values,values:a})),r=re({theme:e},a,(p,d)=>{var c;const i=e.spacing(p);return i!=="0px"?{marginTop:`-${O(i)}`,[`& > .${_.item}`]:{paddingTop:O(i)}}:(c=l)!=null&&c.includes(d)?{}:{marginTop:0,[`& > .${_.item}`]:{paddingTop:0}}})}return r}function jt({theme:e,ownerState:s}){const{container:n,columnSpacing:o}=s;let r={};if(n&&o!==0){const a=K({values:o,breakpoints:e.breakpoints.values});let l;typeof a=="object"&&(l=je({breakpoints:e.breakpoints.values,values:a})),r=re({theme:e},a,(p,d)=>{var c;const i=e.spacing(p);return i!=="0px"?{width:`calc(100% + ${O(i)})`,marginLeft:`-${O(i)}`,[`& > .${_.item}`]:{paddingLeft:O(i)}}:(c=l)!=null&&c.includes(d)?{}:{width:"100%",marginLeft:0,[`& > .${_.item}`]:{paddingLeft:0}}})}return r}function St(e,s,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const o=[];return s.forEach(r=>{const a=e[r];Number(a)>0&&o.push(n[`spacing-${r}-${String(a)}`])}),o}const vt=P("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:n}=e,{container:o,direction:r,item:a,spacing:l,wrap:p,zeroMinWidth:d,breakpoints:c}=n;let i=[];o&&(i=St(l,c,s));const u=[];return c.forEach(h=>{const f=n[h];f&&u.push(s[`grid-${h}-${String(f)}`])}),[s.root,o&&s.container,a&&s.item,d&&s.zeroMinWidth,...i,r!=="row"&&s[`direction-xs-${String(r)}`],p!=="wrap"&&s[`wrap-xs-${String(p)}`],...u]}})(({ownerState:e})=>S({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),yt,wt,jt,bt);function $t(e,s){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return s.forEach(o=>{const r=e[o];if(Number(r)>0){const a=`spacing-${o}-${String(r)}`;n.push(a)}}),n}const kt=e=>{const{classes:s,container:n,direction:o,item:r,spacing:a,wrap:l,zeroMinWidth:p,breakpoints:d}=e;let c=[];n&&(c=$t(a,d));const i=[];d.forEach(h=>{const f=e[h];f&&i.push(`grid-${h}-${String(f)}`)});const u={root:["root",n&&"container",r&&"item",p&&"zeroMinWidth",...c,o!=="row"&&`direction-xs-${String(o)}`,l!=="wrap"&&`wrap-xs-${String(l)}`,...i]};return oe(u,ut,s)},Ct=g.forwardRef(function(s,n){const o=ue({props:s,name:"MuiGrid"}),{breakpoints:r}=Be(),a=He(o),{className:l,columns:p,columnSpacing:d,component:c="div",container:i=!1,direction:u="row",item:h=!1,rowSpacing:f,spacing:C=0,wrap:F="wrap",zeroMinWidth:b=!1}=a,T=se(a,ft),A=f||C,M=d||C,G=g.useContext(pe),m=i?p||12:G,y={},k=S({},T);r.keys.forEach(I=>{T[I]!=null&&(y[I]=T[I],delete k[I])});const $=S({},a,{columns:m,container:i,direction:u,item:h,rowSpacing:A,columnSpacing:M,wrap:F,zeroMinWidth:b,spacing:C},y,{breakpoints:r.keys}),U=kt($);return t.jsx(pe.Provider,{value:m,children:t.jsx(vt,S({ownerState:$,className:ne(U.root,l),as:c,ref:n},k))})}),N=Ct;function Bt(e){return ee("MuiSwitch",e)}const Tt=te("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),j=Tt,zt=["className","color","edge","size","sx"],Rt=e=>{const{classes:s,edge:n,size:o,color:r,checked:a,disabled:l}=e,p={root:["root",n&&`edge${E(n)}`,`size${E(o)}`],switchBase:["switchBase",`color${E(r)}`,a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=oe(p,Bt,s);return S({},s,d)},Nt=P("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:n}=e;return[s.root,n.edge&&s[`edge${E(n.edge)}`],s[`size${E(n.size)}`]]}})(({ownerState:e})=>S({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${j.thumb}`]:{width:16,height:16},[`& .${j.switchBase}`]:{padding:4,[`&.${j.checked}`]:{transform:"translateX(16px)"}}})),Ft=P(dt,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,s)=>{const{ownerState:n}=e;return[s.switchBase,{[`& .${j.input}`]:s.input},n.color!=="default"&&s[`color${E(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${j.checked}`]:{transform:"translateX(20px)"},[`&.${j.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${j.checked} + .${j.track}`]:{opacity:.5},[`&.${j.disabled} + .${j.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${j.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:s})=>S({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:le(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},s.color!=="default"&&{[`&.${j.checked}`]:{color:(e.vars||e).palette[s.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[s.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:le(e.palette[s.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${j.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${s.color}DisabledColor`]:`${e.palette.mode==="light"?Te(e.palette[s.color].main,.62):ze(e.palette[s.color].main,.55)}`}},[`&.${j.checked} + .${j.track}`]:{backgroundColor:(e.vars||e).palette[s.color].main}})),Et=P("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,s)=>s.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Pt=P("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,s)=>s.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),At=g.forwardRef(function(s,n){const o=ue({props:s,name:"MuiSwitch"}),{className:r,color:a="primary",edge:l=!1,size:p="medium",sx:d}=o,c=se(o,zt),i=S({},o,{color:a,edge:l,size:p}),u=Rt(i),h=t.jsx(Pt,{className:u.thumb,ownerState:i});return t.jsxs(Nt,{className:ne(u.root,r),sx:d,ownerState:i,children:[t.jsx(Ft,S({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:i},c,{classes:S({},u,{root:u.switchBase})})),t.jsx(Et,{className:u.track,ownerState:i})]})}),Mt=At,It=({onClose:e})=>{const[s]=Re(o=>[o.graphStyle]),n=()=>{localStorage.setItem("graphStyle",s),e()};return t.jsxs(Dt,{direction:"column",children:[t.jsx(Ot,{children:"Default graph view:"}),t.jsx(Oe,{}),t.jsx(x,{mt:308,children:t.jsx(be,{kind:"big",onClick:n,children:"Save Changes"})})]})},Dt=w(x)` display: flex; gap: 10px; padding: 36px; diff --git a/build/assets/index-48249864.js b/build/assets/index-49e7e9f0.js similarity index 87% rename from build/assets/index-48249864.js rename to build/assets/index-49e7e9f0.js index 6de11e5b8..4bd479324 100644 --- a/build/assets/index-48249864.js +++ b/build/assets/index-49e7e9f0.js @@ -1,6 +1,6 @@ -import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d as Rt,e as Ft,F as h,T as _,f as u,h as c,i as re,k as ne,l as U,m as F,n as Wt,S as Vt,o as Gt,p as Ut,q as ut,t as xt,v as Ue,Y as He,R as Ye,w as Ht,x as de,y as ft,z as mt,A as Yt,B as Zt,C as Kt,D as je,E as qt,G as P,H as Qt,I as Xt,J as Jt,K as er,L as tr,M as rr,N as nr,O as gt,P as or,Q as sr}from"./index-c522bd40.js";import{A as ir,a as yt,C as L,u as ar,B as H,I as V,b as K,S as be,c as pe,F as he,Q as lr,d as cr,G as dr,L as pr,v as hr}from"./react-toastify.esm-1e5f1e5f.js";import{f as Ze,G as ur,u as xr,c as Ke,D as jt,a as fr,E as mr,L as ke,b as xe,C as gr,A as yr,i as ie,d as jr,e as Be,g as br,h as Cr,j as bt,k as qe,l as vr,X as Ct,Y as vt,m as wr,n as Sr,T as _r,P as Tr,S as kr,o as Ar,p as $r}from"./generateCategoricalChart-876bdce4.js";import{M as Er,a as Lr,b as Nr,c as Pr,d as wt,e as Ir}from"./index.esm-f21f36d4.js";import{T as Br,a as J,b as zr,F as ze,M as Ce,C as St,N as Or,c as Mr,D as _t,d as Dr}from"./ChevronUpIcon-e45e7605.js";import{s as ee,T as Tt,u as z,A as Fe,I as Rr,E as Fr,D as Wr,a as Qe,b as kt,Q as At,V as $t,S as Vr}from"./index-fd857883.js";import{P as ve,I as we,a as We,F as Gr}from"./Popover-243f389d.js";import{B as Ur,T as le}from"./index-2d16147d.js";import{u as G}from"./index-dae8afeb.js";import{B as Ve}from"./index-4e0797a7.js";import{P as Et}from"./Popper-831e364f.js";import{C as Ge}from"./CheckIcon-1dbe3e4f.js";import{C as Hr}from"./ChevronDownIcon-e923c599.js";import{e as Yr,S as Zr}from"./Stack-f811e4d7.js";import{P as Kr}from"./PlusIcon-8eca7748.js";import{T as qr,a as Qr,B as Lt}from"./index-04e75ad0.js";function Xr(t){return zt("MuiTypography",t)}Ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Jr=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],en=t=>{const{align:r,gutterBottom:o,noWrap:s,paragraph:i,variant:l,classes:a}=t,n={root:["root",l,t.align!=="inherit"&&`align${ht(r)}`,o&&"gutterBottom",s&&"noWrap",i&&"paragraph"]};return Ft(n,Xr,a)},tn=Re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.variant&&r[o.variant],o.align!=="inherit"&&r[`align${ht(o.align)}`],o.noWrap&&r.noWrap,o.gutterBottom&&r.gutterBottom,o.paragraph&&r.paragraph]}})(({theme:t,ownerState:r})=>me({margin:0},r.variant==="inherit"&&{font:"inherit"},r.variant!=="inherit"&&t.typography[r.variant],r.align!=="inherit"&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})),Xe={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},rn={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nn=t=>rn[t]||t,on=x.forwardRef(function(r,o){const s=Mt({props:r,name:"MuiTypography"}),i=nn(s.color),l=Yr(me({},s,{color:i})),{align:a="inherit",className:n,component:d,gutterBottom:p=!1,noWrap:g=!1,paragraph:f=!1,variant:y="body1",variantMapping:j=Xe}=l,b=Dt(l,Jr),m=me({},l,{align:a,color:i,className:n,component:d,gutterBottom:p,noWrap:g,paragraph:f,variant:y,variantMapping:j}),C=d||(f?"p":j[y]||Xe[y])||"span",w=en(m);return e.jsx(tn,me({as:C,ref:o,ownerState:m,className:Rt(w.root,n)},b))}),Je=on;function Oe(t){const r=new Date(Number(t)*1e3),o=r.getFullYear(),s=(1+r.getMonth()).toString().padStart(2,"0");return`${r.getDate().toString().padStart(2,"0")}/${s}/${o}`}const sn=({twitterHandle:t})=>e.jsx(e.Fragment,{children:e.jsx(h,{direction:"row",children:e.jsx(h,{align:"flex-start",pb:12,children:e.jsxs(_,{children:["Tweet by @",t]})})})}),an=u(h)(({theme:t})=>({position:"absolute",top:"65px",right:"55px",width:"300px",pointerEvents:"none",background:c.dashboardHeader,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:c.primaryText1,zIndex:100,transition:"opacity 0.6s",padding:t.spacing(2,3),[t.breakpoints.down("sm")]:{padding:t.spacing(1,1.5)}})),ln=u(h)` +import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d as Rt,e as Ft,F as h,T as _,f as u,h as c,i as re,k as ne,l as U,m as F,n as Wt,S as Vt,o as Gt,p as Ut,q as ut,t as xt,v as Ue,Y as He,R as Ye,w as Ht,x as de,y as ft,z as mt,A as Yt,B as Zt,C as Kt,D as je,E as qt,G as P,H as Qt,I as Xt,J as Jt,K as er,L as tr,M as rr,N as nr,O as gt,P as or,Q as sr}from"./index-b85f35cf.js";import{A as ir,a as yt,C as E,u as ar,B as H,I as V,b as K,S as be,c as pe,F as he,Q as lr,d as cr,G as dr,L as pr,v as hr}from"./react-toastify.esm-ce67a4f9.js";import{f as Ze,G as ur,u as xr,c as Ke,D as jt,a as fr,E as mr,L as ke,b as xe,C as gr,A as yr,i as ie,d as jr,e as Be,g as br,h as Cr,j as bt,k as qe,l as vr,X as Ct,Y as vt,m as wr,n as Sr,T as _r,P as Tr,S as kr,o as Ar,p as $r}from"./generateCategoricalChart-a6175423.js";import{M as Lr,a as Er,b as Nr,c as Pr,d as wt,e as Ir}from"./index.esm-ac56504e.js";import{T as Br,a as J,b as zr,F as ze,M as Ce,C as St,N as Or,c as Mr,D as _t,d as Dr}from"./ChevronUpIcon-6e1fca04.js";import{s as ee,T as Tt,u as z,A as Fe,I as Rr,E as Fr,D as Wr,a as Qe,b as kt,Q as At,V as $t,S as Vr}from"./index-856cc0ad.js";import{P as ve,I as we,a as We,F as Gr}from"./Popover-28c1573e.js";import{B as Ur,T as le}from"./index-e6f0fb8d.js";import{u as G}from"./index-b9c9b7e2.js";import{B as Ve}from"./index-0c223900.js";import{P as Lt}from"./Popper-704ca55a.js";import{C as Ge}from"./CheckIcon-b94a1aa2.js";import{C as Hr}from"./ChevronDownIcon-cf5b6e54.js";import{e as Yr,S as Zr}from"./Stack-b0e83988.js";import{P as Kr}from"./PlusIcon-261fd641.js";import{T as qr,a as Qr,B as Et}from"./index-341edfe1.js";function Xr(t){return zt("MuiTypography",t)}Ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Jr=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],en=t=>{const{align:r,gutterBottom:o,noWrap:s,paragraph:i,variant:l,classes:a}=t,n={root:["root",l,t.align!=="inherit"&&`align${ht(r)}`,o&&"gutterBottom",s&&"noWrap",i&&"paragraph"]};return Ft(n,Xr,a)},tn=Re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.variant&&r[o.variant],o.align!=="inherit"&&r[`align${ht(o.align)}`],o.noWrap&&r.noWrap,o.gutterBottom&&r.gutterBottom,o.paragraph&&r.paragraph]}})(({theme:t,ownerState:r})=>me({margin:0},r.variant==="inherit"&&{font:"inherit"},r.variant!=="inherit"&&t.typography[r.variant],r.align!=="inherit"&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})),Xe={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},rn={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nn=t=>rn[t]||t,on=x.forwardRef(function(r,o){const s=Mt({props:r,name:"MuiTypography"}),i=nn(s.color),l=Yr(me({},s,{color:i})),{align:a="inherit",className:n,component:d,gutterBottom:p=!1,noWrap:g=!1,paragraph:f=!1,variant:y="body1",variantMapping:j=Xe}=l,b=Dt(l,Jr),m=me({},l,{align:a,color:i,className:n,component:d,gutterBottom:p,noWrap:g,paragraph:f,variant:y,variantMapping:j}),C=d||(f?"p":j[y]||Xe[y])||"span",w=en(m);return e.jsx(tn,me({as:C,ref:o,ownerState:m,className:Rt(w.root,n)},b))}),Je=on;function Oe(t){const r=new Date(Number(t)*1e3),o=r.getFullYear(),s=(1+r.getMonth()).toString().padStart(2,"0");return`${r.getDate().toString().padStart(2,"0")}/${s}/${o}`}const sn=({twitterHandle:t})=>e.jsx(e.Fragment,{children:e.jsx(h,{direction:"row",children:e.jsx(h,{align:"flex-start",pb:12,children:e.jsxs(_,{children:["Tweet by @",t]})})})}),an=u(h)(({theme:t})=>({position:"absolute",top:"65px",right:"55px",width:"300px",pointerEvents:"none",background:c.dashboardHeader,boxShadow:"0px 1px 6px rgba(0, 0, 0, 0.1)",color:c.primaryText1,zIndex:100,transition:"opacity 0.6s",padding:t.spacing(2,3),[t.breakpoints.down("sm")]:{padding:t.spacing(1,1.5)}})),ln=u(h)` width: 22.5%; -`,cn=({node:t})=>{if(!t)return null;const{node_type:r,show_title:o,episode_title:s,description:i,label:l,text:a,type:n,twitter_handle:d}=t,p=t.guests;let g=!1,f=!1;p&&(p.length&&p[0]!==null&&(g=!0),typeof p[0]=="object"&&(f=!0));let y=t.image_url;if(n==="twitter_space"&&(y="twitter_placeholder.png"),y==null)switch(r){case"guest":y="person_placeholder2.png";break;default:y="noimage.jpeg"}return r==="topic"?null:e.jsx(an,{borderRadius:8,px:24,py:16,children:r==="tweet"?e.jsx(sn,{twitterHandle:d}):e.jsxs(e.Fragment,{children:[e.jsxs(h,{direction:"row",children:[e.jsx(ln,{}),e.jsx(h,{align:"flex-start",pb:12,children:e.jsx(_,{children:r==null?void 0:r.toUpperCase()})})]}),e.jsxs(h,{direction:"row",children:[e.jsx(h,{pr:12,children:e.jsx(ir,{src:y,type:"person"})}),e.jsxs("div",{children:[n==="guest"?e.jsxs(h,{direction:"column",children:[e.jsx(_,{children:l}),a&&e.jsx(h,{pt:4,children:e.jsxs(_,{color:"primaryText1",kind:"tiny",children:["@",a]})})]}):e.jsx(_,{color:"primaryText1",kind:"tiny",children:o}),e.jsxs(h,{pt:4,children:[r==="clip"||r==="episode"&&e.jsx(_,{color:"primaryText1",children:"Episode"}),r==="clip"?e.jsx(_,{as:"div",kind:"regularBold",children:Ze(i)}):e.jsx(_,{color:"primaryText1",kind:"tiny",children:s})]}),e.jsxs(h,{pt:12,children:[r==="clip"&&e.jsx(_,{color:"primaryText1",children:"Episode"}),e.jsx(_,{color:"primaryText1",kind:"tiny",children:r==="clip"?s:Ze(i)})]}),g&&e.jsxs(h,{pt:12,children:[e.jsx(_,{color:"primaryText1",children:"People"}),e.jsx(h,{pt:4,children:e.jsx(_,{color:"primaryText1",kind:"tiny",children:f?p.map(j=>j.name?j.name:`@${j.twitter_handle}`).join(", "):p==null?void 0:p.join(", ")})})]})]})]})]})})},dn=()=>{const[t]=re(r=>[r.hoveredNode]);return e.jsxs(pn,{children:[t&&e.jsx("div",{id:"tooltip-portal",children:e.jsx(cn,{node:t})}),e.jsx(yt,{})]})},pn=u("div")(({theme:t})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",[t.breakpoints.down("sm")]:{top:50}})),hn=({fullSize:t=!0})=>{const r=ne(o=>o.sidebarIsOpen);return e.jsx(un,{align:"center",className:U({"sidebar-is-open":r&&!t}),justify:"center",children:e.jsx(L,{color:c.SECONDARY_BLUE,size:64})})},un=u(h)` +`,cn=({node:t})=>{if(!t)return null;const{node_type:r,show_title:o,episode_title:s,description:i,label:l,text:a,type:n,twitter_handle:d}=t,p=t.guests;let g=!1,f=!1;p&&(p.length&&p[0]!==null&&(g=!0),typeof p[0]=="object"&&(f=!0));let y=t.image_url;if(n==="twitter_space"&&(y="twitter_placeholder.png"),y==null)switch(r){case"guest":y="person_placeholder2.png";break;default:y="noimage.jpeg"}return r==="topic"?null:e.jsx(an,{borderRadius:8,px:24,py:16,children:r==="tweet"?e.jsx(sn,{twitterHandle:d}):e.jsxs(e.Fragment,{children:[e.jsxs(h,{direction:"row",children:[e.jsx(ln,{}),e.jsx(h,{align:"flex-start",pb:12,children:e.jsx(_,{children:r==null?void 0:r.toUpperCase()})})]}),e.jsxs(h,{direction:"row",children:[e.jsx(h,{pr:12,children:e.jsx(ir,{src:y,type:"person"})}),e.jsxs("div",{children:[n==="guest"?e.jsxs(h,{direction:"column",children:[e.jsx(_,{children:l}),a&&e.jsx(h,{pt:4,children:e.jsxs(_,{color:"primaryText1",kind:"tiny",children:["@",a]})})]}):e.jsx(_,{color:"primaryText1",kind:"tiny",children:o}),e.jsxs(h,{pt:4,children:[r==="clip"||r==="episode"&&e.jsx(_,{color:"primaryText1",children:"Episode"}),r==="clip"?e.jsx(_,{as:"div",kind:"regularBold",children:Ze(i)}):e.jsx(_,{color:"primaryText1",kind:"tiny",children:s})]}),e.jsxs(h,{pt:12,children:[r==="clip"&&e.jsx(_,{color:"primaryText1",children:"Episode"}),e.jsx(_,{color:"primaryText1",kind:"tiny",children:r==="clip"?s:Ze(i)})]}),g&&e.jsxs(h,{pt:12,children:[e.jsx(_,{color:"primaryText1",children:"People"}),e.jsx(h,{pt:4,children:e.jsx(_,{color:"primaryText1",kind:"tiny",children:f?p.map(j=>j.name?j.name:`@${j.twitter_handle}`).join(", "):p==null?void 0:p.join(", ")})})]})]})]})]})})},dn=()=>{const[t]=re(r=>[r.hoveredNode]);return e.jsxs(pn,{children:[t&&e.jsx("div",{id:"tooltip-portal",children:e.jsx(cn,{node:t})}),e.jsx(yt,{})]})},pn=u("div")(({theme:t})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",[t.breakpoints.down("sm")]:{top:50}})),hn=({fullSize:t=!0})=>{const r=ne(o=>o.sidebarIsOpen);return e.jsx(un,{align:"center",className:U({"sidebar-is-open":r&&!t}),justify:"center",children:e.jsx(E,{color:c.SECONDARY_BLUE,size:64})})},un=u(h)` position: absolute; left: 0; right: 0; @@ -8,7 +8,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a top: 0; background-color: ${c.black}; z-index: 1; -`,xn=x.lazy(()=>F(()=>import("./index-59318f27.js"),["assets/index-59318f27.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-04e75ad0.js","assets/useSlotProps-96b7890f.js","assets/index-2d16147d.js","assets/index.esm-f21f36d4.js","assets/InfoIcon-6417fafc.js","assets/index-211330ba.js","assets/Popover-243f389d.js","assets/Select-72591674.js","assets/Stack-f811e4d7.js","assets/Popper-831e364f.js","assets/index-30d16895.js","assets/constants-cde8ebc3.js","assets/DeleteIcon-9344ab3f.js","assets/PlusIcon-8eca7748.js","assets/EditIcon-26187d62.js","assets/ChevronUpIcon-e45e7605.js","assets/ChevronDownIcon-e923c599.js","assets/generateCategoricalChart-876bdce4.js","assets/index-fd857883.js","assets/CheckIcon-1dbe3e4f.js"]).then(({SettingsModal:t})=>({default:t}))),fn=x.lazy(()=>F(()=>import("./index-3d04ae19.js"),["assets/index-3d04ae19.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/index-aaab6905.js","assets/index.esm-f21f36d4.js","assets/CheckIcon-1dbe3e4f.js","assets/index-2d16147d.js","assets/InfoIcon-6417fafc.js"]).then(({AddContentModal:t})=>({default:t}))),mn=x.lazy(()=>F(()=>import("./index-f4a6d193.js"),["assets/index-f4a6d193.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/index-aaab6905.js","assets/index.esm-f21f36d4.js","assets/CheckIcon-1dbe3e4f.js","assets/index-2d16147d.js","assets/InfoIcon-6417fafc.js","assets/index-30d16895.js","assets/index-211330ba.js","assets/Popover-243f389d.js","assets/useSlotProps-96b7890f.js","assets/Select-72591674.js","assets/Stack-f811e4d7.js","assets/Popper-831e364f.js","assets/constants-cde8ebc3.js"]).then(({AddItemModal:t})=>({default:t}))),gn=x.lazy(()=>F(()=>import("./index-b9e1797f.js"),["assets/index-b9e1797f.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/generateCategoricalChart-876bdce4.js","assets/Popover-243f389d.js","assets/useSlotProps-96b7890f.js","assets/InfoIcon-6417fafc.js","assets/index.esm-f21f36d4.js","assets/ChevronUpIcon-e45e7605.js","assets/ChevronDownIcon-e923c599.js","assets/index-04e75ad0.js","assets/index-fd857883.js","assets/index-2d16147d.js","assets/Popper-831e364f.js","assets/CheckIcon-1dbe3e4f.js","assets/Stack-f811e4d7.js","assets/PlusIcon-8eca7748.js"]).then(({SourcesTableModal:t})=>({default:t}))),yn=x.lazy(()=>F(()=>import("./index-b3c0721c.js"),["assets/index-b3c0721c.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-2d16147d.js","assets/index.esm-f21f36d4.js","assets/InfoIcon-6417fafc.js","assets/Skeleton-e77d8e84.js"]).then(({EditNodeNameModal:t})=>({default:t}))),jn=x.lazy(()=>F(()=>import("./index-70d242b4.js"),["assets/index-70d242b4.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/Skeleton-e77d8e84.js"]).then(({RemoveNodeModal:t})=>({default:t}))),bn=x.lazy(()=>F(()=>import("./index-3b73036d.js"),["assets/index-3b73036d.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-4e0797a7.js","assets/index-dae8afeb.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-211330ba.js","assets/Popover-243f389d.js","assets/useSlotProps-96b7890f.js","assets/Select-72591674.js","assets/Stack-f811e4d7.js","assets/Popper-831e364f.js","assets/constants-cde8ebc3.js","assets/index-fd857883.js"]).then(({AddNodeEdgeModal:t})=>({default:t}))),Cn=()=>e.jsxs(e.Fragment,{children:[e.jsx(mn,{}),e.jsx(fn,{}),e.jsx(xn,{}),e.jsx(yn,{}),e.jsx(jn,{}),e.jsx(gn,{}),e.jsx(bn,{})]}),vn=()=>{const t=ne(r=>r.appMetaData);return e.jsxs(wn,{children:[e.jsxs(Sn,{children:[e.jsx(e.Fragment,{children:t.title&&e.jsx(_,{className:"title",color:"white",children:t.title})}),e.jsx(_,{className:"subtitle",children:" Second Brain"})]}),e.jsx(Vt,{})]})},wn=u(h).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,xn=x.lazy(()=>F(()=>import("./index-47761ce5.js"),["assets/index-47761ce5.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-341edfe1.js","assets/useSlotProps-b8a587b0.js","assets/index-e6f0fb8d.js","assets/index.esm-ac56504e.js","assets/InfoIcon-de2f1e11.js","assets/index-39ab8de8.js","assets/Popover-28c1573e.js","assets/Select-f3cb55de.js","assets/Stack-b0e83988.js","assets/Popper-704ca55a.js","assets/index-30d16895.js","assets/constants-cde8ebc3.js","assets/DeleteIcon-7b7519eb.js","assets/PlusIcon-261fd641.js","assets/EditIcon-67ff5cde.js","assets/ChevronUpIcon-6e1fca04.js","assets/ChevronDownIcon-cf5b6e54.js","assets/generateCategoricalChart-a6175423.js","assets/index-856cc0ad.js","assets/CheckIcon-b94a1aa2.js"]).then(({SettingsModal:t})=>({default:t}))),fn=x.lazy(()=>F(()=>import("./index-7ec3af29.js"),["assets/index-7ec3af29.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/index-7e285ddc.js","assets/index.esm-ac56504e.js","assets/CheckIcon-b94a1aa2.js","assets/index-e6f0fb8d.js","assets/InfoIcon-de2f1e11.js"]).then(({AddContentModal:t})=>({default:t}))),mn=x.lazy(()=>F(()=>import("./index-2be12e8f.js"),["assets/index-2be12e8f.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/index-7e285ddc.js","assets/index.esm-ac56504e.js","assets/CheckIcon-b94a1aa2.js","assets/index-e6f0fb8d.js","assets/InfoIcon-de2f1e11.js","assets/index-30d16895.js","assets/index-39ab8de8.js","assets/Popover-28c1573e.js","assets/useSlotProps-b8a587b0.js","assets/Select-f3cb55de.js","assets/Stack-b0e83988.js","assets/Popper-704ca55a.js","assets/constants-cde8ebc3.js"]).then(({AddItemModal:t})=>({default:t}))),gn=x.lazy(()=>F(()=>import("./index-d7a5eaa0.js"),["assets/index-d7a5eaa0.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/generateCategoricalChart-a6175423.js","assets/Popover-28c1573e.js","assets/useSlotProps-b8a587b0.js","assets/InfoIcon-de2f1e11.js","assets/index.esm-ac56504e.js","assets/ChevronUpIcon-6e1fca04.js","assets/ChevronDownIcon-cf5b6e54.js","assets/index-341edfe1.js","assets/index-856cc0ad.js","assets/index-e6f0fb8d.js","assets/Popper-704ca55a.js","assets/CheckIcon-b94a1aa2.js","assets/Stack-b0e83988.js","assets/PlusIcon-261fd641.js"]).then(({SourcesTableModal:t})=>({default:t}))),yn=x.lazy(()=>F(()=>import("./index-6d7b2c18.js"),["assets/index-6d7b2c18.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-e6f0fb8d.js","assets/index.esm-ac56504e.js","assets/InfoIcon-de2f1e11.js","assets/Skeleton-bd55acf5.js"]).then(({EditNodeNameModal:t})=>({default:t}))),jn=x.lazy(()=>F(()=>import("./index-111127f1.js"),["assets/index-111127f1.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/Skeleton-bd55acf5.js"]).then(({RemoveNodeModal:t})=>({default:t}))),bn=x.lazy(()=>F(()=>import("./index-31f1e4e1.js"),["assets/index-31f1e4e1.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-0c223900.js","assets/index-b9c9b7e2.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-39ab8de8.js","assets/Popover-28c1573e.js","assets/useSlotProps-b8a587b0.js","assets/Select-f3cb55de.js","assets/Stack-b0e83988.js","assets/Popper-704ca55a.js","assets/constants-cde8ebc3.js","assets/index-856cc0ad.js"]).then(({AddNodeEdgeModal:t})=>({default:t}))),Cn=()=>e.jsxs(e.Fragment,{children:[e.jsx(mn,{}),e.jsx(fn,{}),e.jsx(xn,{}),e.jsx(yn,{}),e.jsx(jn,{}),e.jsx(gn,{}),e.jsx(bn,{})]}),vn=()=>{const t=ne(r=>r.appMetaData);return e.jsxs(wn,{children:[e.jsxs(Sn,{children:[e.jsx(e.Fragment,{children:t.title&&e.jsx(_,{className:"title",color:"white",children:t.title})}),e.jsx(_,{className:"subtitle",children:" Second Brain"})]}),e.jsx(Vt,{})]})},wn=u(h).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; position: absolute; top: 0px; @@ -134,7 +134,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a ${_} { margin-bottom: 0; } -`,En=({data:t})=>{const r=re(a=>a.setQueuedSources),[o,s]=x.useState(""),i=async a=>{if(t!=null&&t.length)try{const n=await Gt.enable();await Ut(a,n.pubkey),r(t.filter(d=>d.ref_id!==a))}catch(n){console.warn(n)}},l=async a=>{if(!(!a||!(t!=null&&t.length))){s(a);try{await ut(a),r(t==null?void 0:t.filter(n=>n.ref_id!==a))}catch(n){console.warn(n)}finally{s("")}}};return t!=null&&t.length?e.jsxs(Ce,{component:"table",children:[e.jsx(_e,{children:e.jsxs(J,{component:"tr",children:[e.jsx(v,{className:"empty"}),e.jsx(v,{children:"Type"}),e.jsx(v,{children:"Source"}),e.jsx(v,{}),e.jsx(v,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(Se,{children:[e.jsx(v,{className:"empty"}),e.jsx(v,{children:ee[a.source_type]}),e.jsx(v,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(tt,{href:`${Tt}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(tt,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(v,{className:"cell-center",children:e.jsxs(h,{direction:"row",justify:"space-between",children:[e.jsx("div",{className:"approve-wrapper",children:e.jsx(et,{className:"centered",onClick:()=>i(a.ref_id),children:e.jsx(Er,{color:c.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:o===a.ref_id?e.jsx(L,{color:c.white,size:16}):e.jsx(St,{message:"Are you sure ?",onConfirm:()=>l(a.ref_id),children:e.jsx(et,{className:"centered",children:e.jsx(Lr,{color:c.primaryRed,fontSize:24})})})})]})}),e.jsx(v,{className:"empty"})]},a.source))})]}):e.jsxs(h,{children:[e.jsx(_,{children:"There is not any results for selected filters"}),e.jsx(ze,{})]})},et=u(h)` +`,Ln=({data:t})=>{const r=re(a=>a.setQueuedSources),[o,s]=x.useState(""),i=async a=>{if(t!=null&&t.length)try{const n=await Gt.enable();await Ut(a,n.pubkey),r(t.filter(d=>d.ref_id!==a))}catch(n){console.warn(n)}},l=async a=>{if(!(!a||!(t!=null&&t.length))){s(a);try{await ut(a),r(t==null?void 0:t.filter(n=>n.ref_id!==a))}catch(n){console.warn(n)}finally{s("")}}};return t!=null&&t.length?e.jsxs(Ce,{component:"table",children:[e.jsx(_e,{children:e.jsxs(J,{component:"tr",children:[e.jsx(v,{className:"empty"}),e.jsx(v,{children:"Type"}),e.jsx(v,{children:"Source"}),e.jsx(v,{}),e.jsx(v,{className:"empty"})]})}),(t==null?void 0:t.length)&&e.jsx("tbody",{children:t==null?void 0:t.map(a=>e.jsxs(Se,{children:[e.jsx(v,{className:"empty"}),e.jsx(v,{children:ee[a.source_type]}),e.jsx(v,{width:"268px",children:a.source_type==="twitter_handle"?e.jsxs(tt,{href:`${Tt}/${a.source}?open=system`,target:"_blank",children:["@",a.source]}):e.jsx(tt,{href:`${a.source}?open=system`,target:"_blank",children:a.source})}),e.jsx(v,{className:"cell-center",children:e.jsxs(h,{direction:"row",justify:"space-between",children:[e.jsx("div",{className:"approve-wrapper",children:e.jsx(et,{className:"centered",onClick:()=>i(a.ref_id),children:e.jsx(Lr,{color:c.primaryGreen,fontSize:24})})}),e.jsx("div",{className:"delete-wrapper",children:o===a.ref_id?e.jsx(E,{color:c.white,size:16}):e.jsx(St,{message:"Are you sure ?",onConfirm:()=>l(a.ref_id),children:e.jsx(et,{className:"centered",children:e.jsx(Er,{color:c.primaryRed,fontSize:24})})})})]})}),e.jsx(v,{className:"empty"})]},a.source))})]}):e.jsxs(h,{children:[e.jsx(_,{children:"There is not any results for selected filters"}),e.jsx(ze,{})]})},et=u(h)` width: 20px; height: 20px; border-radius: 50%; @@ -157,7 +157,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a &:hover { cursor: pointer; } -`,Ln=()=>{const[t,r]=x.useState(!0),[o,s]=x.useState(""),[i,l]=re(d=>[d.queuedSources,d.setQueuedSources]);x.useEffect(()=>{(async()=>{r(!0);try{const p=await xt({approved:"False"});l(p.data)}catch(p){console.warn(p)}finally{r(!1)}})()},[l]);const a=d=>{s(o===d||!d?"":d)},n=i==null?void 0:i.filter(d=>!o||d.source_type===o);return e.jsxs(Nn,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(Te,{align:"flex-start",justify:"space-between",children:[e.jsx(_,{className:"title",children:"Queued Sources"}),e.jsx(_,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(h,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ge,{className:U({selected:!o}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(ee).map(d=>e.jsx(ge,{className:U({selected:d===o}),onClick:()=>a(d),size:"small",children:ee[d]},d))]}),e.jsx(Pn,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(L,{color:c.white}):e.jsx(En,{data:n})})]})},Nn=u(h)` +`,En=()=>{const[t,r]=x.useState(!0),[o,s]=x.useState(""),[i,l]=re(d=>[d.queuedSources,d.setQueuedSources]);x.useEffect(()=>{(async()=>{r(!0);try{const p=await xt({approved:"False"});l(p.data)}catch(p){console.warn(p)}finally{r(!1)}})()},[l]);const a=d=>{s(o===d||!d?"":d)},n=i==null?void 0:i.filter(d=>!o||d.source_type===o);return e.jsxs(Nn,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsxs(Te,{align:"flex-start",justify:"space-between",children:[e.jsx(_,{className:"title",children:"Queued Sources"}),e.jsx(_,{className:"subtitle",children:"This is a queue of pending sources waiting for approval or denial from graph users. If you think a source will provide good content for the graph, you can pay to approve it. Think of this as an investment: you pay to add it to the source table, and if the content is popular you will earn from it. If content is not relevant to the graph, you should deny it."})]}),e.jsxs(h,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ge,{className:U({selected:!o}),onClick:()=>a(""),size:"small",children:"All"}),Object.keys(ee).map(d=>e.jsx(ge,{className:U({selected:d===o}),onClick:()=>a(d),size:"small",children:ee[d]},d))]}),e.jsx(Pn,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(E,{color:c.white}):e.jsx(Ln,{data:n})})]})},Nn=u(h)` flex: 1; .title { @@ -244,7 +244,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a } } width: 100%; -`,On=({data:t,canEdit:r=!1})=>{const o=re(n=>n.setSources),[s,i]=x.useState(""),l=async(n,d)=>{if(t!=null&&t.length)try{await Ht(n,d);const p=t==null?void 0:t.findIndex(f=>f.ref_id===n),g=[...t];g[p]={...g[p],source:d.source},o(g)}catch(p){console.warn(p)}},a=async n=>{if(!(!n||!(t!=null&&t.length))){i(n);try{await ut(n),o(t==null?void 0:t.filter(d=>d.ref_id!==n))}catch(d){console.warn(d)}finally{i("")}}};return t!=null&&t.length?e.jsxs(Ce,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(_e,{children:e.jsxs(J,{component:"tr",children:[e.jsx(v,{className:"empty"}),e.jsx(v,{children:"Type"}),e.jsx(v,{align:"left",children:"Source"}),r&&e.jsx(v,{align:"left"}),e.jsx(v,{className:"empty"})]})}),e.jsx(Mr,{component:"tbody",children:t==null?void 0:t.map(n=>e.jsxs(Se,{children:[e.jsx(v,{className:"empty"}),e.jsx(v,{align:"left",children:ee[n.source_type]}),e.jsx(v,{align:"left",children:e.jsx(Mn,{condition:r,wrapper:d=>e.jsx(Dn,{id:n.ref_id,onSave:p=>l(n.ref_id,{source:p,source_type:n.source_type}),value:n.source,children:d}),children:n.source_type===Ue||n.source_type===He||n.source_type===Ye?e.jsxs(e.Fragment,{children:[n.source_type===Ue&&e.jsxs(Ee,{href:`${Tt}/${n.source}`,target:"_blank",children:["@",n.source]}),n.source_type===He&&e.jsx(Ee,{href:`${n.source}${n.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:n.source}),n.source_type===Ye&&e.jsx(Ee,{href:n.source,target:"_blank",children:n.source})]}):e.jsx("div",{children:n.source})})}),r&&e.jsx(v,{align:"left",children:e.jsx("div",{className:"delete-wrapper",id:`delete-${n.source}`,children:s===n.ref_id?e.jsx(L,{color:c.white}):e.jsx(St,{message:"Are you sure ?",onConfirm:()=>a(n.ref_id),children:e.jsx(X,{className:"centered",children:e.jsx(Nr,{})})})})}),e.jsx(v,{className:"empty"})]},n.source))})]}):e.jsxs(Fn,{children:[e.jsx(Or,{}),e.jsx(_,{className:"text",children:"There is not any results for selected filters"})]})};function Mn({condition:t,wrapper:r,children:o}){return t?r(o):o}const Dn=({value:t,onSave:r,id:o,children:s})=>{const[i,l]=x.useState(!1),[a,n]=x.useState(t),[d,p]=x.useState(!1),g=async()=>{if(o){p(!0);try{await r(a),l(!1)}catch(f){console.warn(f)}finally{p(!1)}}};return e.jsx("div",{children:i?e.jsxs(Rn,{direction:"row",children:[e.jsx(Ur,{className:"editable-cell__input",name:"cell-input",onChange:f=>n(f),value:a}),e.jsx(X,{align:"center",justify:"center",children:d?e.jsx(L,{}):e.jsx(Pr,{onClick:g})}),e.jsx(X,{align:"center",className:"secondary",justify:"center",onClick:()=>l(!1),children:e.jsx(wt,{})})]}):e.jsxs(Wn,{direction:"row",children:[s,e.jsx(X,{onClick:()=>l(!0),children:e.jsx(Ir,{size:20})})]})})},Rn=u(h)` +`,On=({data:t,canEdit:r=!1})=>{const o=re(n=>n.setSources),[s,i]=x.useState(""),l=async(n,d)=>{if(t!=null&&t.length)try{await Ht(n,d);const p=t==null?void 0:t.findIndex(f=>f.ref_id===n),g=[...t];g[p]={...g[p],source:d.source},o(g)}catch(p){console.warn(p)}},a=async n=>{if(!(!n||!(t!=null&&t.length))){i(n);try{await ut(n),o(t==null?void 0:t.filter(d=>d.ref_id!==n))}catch(d){console.warn(d)}finally{i("")}}};return t!=null&&t.length?e.jsxs(Ce,{"aria-label":"a dense table",component:"table",id:"sources-table",size:"small",children:[e.jsx(_e,{children:e.jsxs(J,{component:"tr",children:[e.jsx(v,{className:"empty"}),e.jsx(v,{children:"Type"}),e.jsx(v,{align:"left",children:"Source"}),r&&e.jsx(v,{align:"left"}),e.jsx(v,{className:"empty"})]})}),e.jsx(Mr,{component:"tbody",children:t==null?void 0:t.map(n=>e.jsxs(Se,{children:[e.jsx(v,{className:"empty"}),e.jsx(v,{align:"left",children:ee[n.source_type]}),e.jsx(v,{align:"left",children:e.jsx(Mn,{condition:r,wrapper:d=>e.jsx(Dn,{id:n.ref_id,onSave:p=>l(n.ref_id,{source:p,source_type:n.source_type}),value:n.source,children:d}),children:n.source_type===Ue||n.source_type===He||n.source_type===Ye?e.jsxs(e.Fragment,{children:[n.source_type===Ue&&e.jsxs(Le,{href:`${Tt}/${n.source}`,target:"_blank",children:["@",n.source]}),n.source_type===He&&e.jsx(Le,{href:`${n.source}${n.source.includes("?")?"&":"?"}open=system`,target:"_blank",children:n.source}),n.source_type===Ye&&e.jsx(Le,{href:n.source,target:"_blank",children:n.source})]}):e.jsx("div",{children:n.source})})}),r&&e.jsx(v,{align:"left",children:e.jsx("div",{className:"delete-wrapper",id:`delete-${n.source}`,children:s===n.ref_id?e.jsx(E,{color:c.white}):e.jsx(St,{message:"Are you sure ?",onConfirm:()=>a(n.ref_id),children:e.jsx(X,{className:"centered",children:e.jsx(Nr,{})})})})}),e.jsx(v,{className:"empty"})]},n.source))})]}):e.jsxs(Fn,{children:[e.jsx(Or,{}),e.jsx(_,{className:"text",children:"There is not any results for selected filters"})]})};function Mn({condition:t,wrapper:r,children:o}){return t?r(o):o}const Dn=({value:t,onSave:r,id:o,children:s})=>{const[i,l]=x.useState(!1),[a,n]=x.useState(t),[d,p]=x.useState(!1),g=async()=>{if(o){p(!0);try{await r(a),l(!1)}catch(f){console.warn(f)}finally{p(!1)}}};return e.jsx("div",{children:i?e.jsxs(Rn,{direction:"row",children:[e.jsx(Ur,{className:"editable-cell__input",name:"cell-input",onChange:f=>n(f),value:a}),e.jsx(X,{align:"center",justify:"center",children:d?e.jsx(E,{}):e.jsx(Pr,{onClick:g})}),e.jsx(X,{align:"center",className:"secondary",justify:"center",onClick:()=>l(!1),children:e.jsx(wt,{})})]}):e.jsxs(Wn,{direction:"row",children:[s,e.jsx(X,{onClick:()=>l(!0),children:e.jsx(Ir,{size:20})})]})})},Rn=u(h)` display: flex; width: 250px; border: 2px solid ${c.lightBlue300}; @@ -304,13 +304,13 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a visibility: visible; } } -`,Ee=u.a` +`,Le=u.a` color: ${c.white}; text-decoration: underline; &:visited { color: ${c.white}; } -`,Vn=()=>{const[t,r]=x.useState(!0),[o,s]=x.useState(""),[i,l]=re(f=>[f.sources,f.setSources]),[a]=de(f=>[f.isAdmin]),[n,d]=x.useState("");x.useEffect(()=>{(async()=>{r(!0);try{const y=await xt();l(y.data)}catch(y){console.warn(y)}finally{r(!1)}})()},[l]);const p=f=>{s(o===f||!f?"":f)},g=x.useMemo(()=>i==null?void 0:i.filter(f=>(!o||f.source_type===o)&&(f.source.toLowerCase().startsWith(n.toLowerCase())||f.source.toLowerCase().includes(n.toLowerCase()))),[n,o,i]);return e.jsxs(Gn,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(Te,{align:"center",direction:"row",justify:"space-between",children:e.jsx(_,{className:"title",children:"Sources for this Graph"})}),e.jsx(Hn,{children:e.jsx(In,{activeIcon:e.jsx(K,{}),defaultIcon:e.jsx(be,{}),loadingIcon:e.jsx(L,{color:c.PRIMARY_BLUE,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(h,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ge,{className:U({selected:!o}),onClick:()=>p(""),size:"small",children:"All"}),Object.keys(ee).map(f=>e.jsx(ge,{className:U({selected:f===o}),onClick:()=>p(f),size:"small",children:ee[f]},f))]}),e.jsx(Un,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(L,{color:c.white}):e.jsx(On,{canEdit:a,data:g})})]})},Gn=u(h)` +`,Vn=()=>{const[t,r]=x.useState(!0),[o,s]=x.useState(""),[i,l]=re(f=>[f.sources,f.setSources]),[a]=de(f=>[f.isAdmin]),[n,d]=x.useState("");x.useEffect(()=>{(async()=>{r(!0);try{const y=await xt();l(y.data)}catch(y){console.warn(y)}finally{r(!1)}})()},[l]);const p=f=>{s(o===f||!f?"":f)},g=x.useMemo(()=>i==null?void 0:i.filter(f=>(!o||f.source_type===o)&&(f.source.toLowerCase().startsWith(n.toLowerCase())||f.source.toLowerCase().includes(n.toLowerCase()))),[n,o,i]);return e.jsxs(Gn,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(Te,{align:"center",direction:"row",justify:"space-between",children:e.jsx(_,{className:"title",children:"Sources for this Graph"})}),e.jsx(Hn,{children:e.jsx(In,{activeIcon:e.jsx(K,{}),defaultIcon:e.jsx(be,{}),loadingIcon:e.jsx(E,{color:c.PRIMARY_BLUE,size:24}),onSearch:d,placeholder:"Find Source"})}),e.jsxs(h,{className:"filters",direction:"row",pb:16,px:36,children:[e.jsx(ge,{className:U({selected:!o}),onClick:()=>p(""),size:"small",children:"All"}),Object.keys(ee).map(f=>e.jsx(ge,{className:U({selected:f===o}),onClick:()=>p(f),size:"small",children:ee[f]},f))]}),e.jsx(Un,{align:"center",justify:t?"center":"flex-start",children:t?e.jsx(E,{color:c.white}):e.jsx(On,{canEdit:a,data:g})})]})},Gn=u(h)` flex: 1; .title { font-size: 20px; @@ -332,13 +332,13 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a width: 100%; `,Hn=u(h)` margin: 0 0 16px 36px; -`,Yn=({placeholder:t,activeIcon:r,loadingIcon:o,defaultIcon:s,...i})=>{const[l,a]=z(j=>[j.filters,j.setFilters]),[n,d]=x.useState(!1),p=()=>{a({search:""}),d(!1)},g=j=>{!j.target.value&&p(),a({search:j.target.value})},f=j=>{const{value:b}=j.currentTarget;a({search:b}),!n&&(d(!0),setTimeout(()=>{b||p(),d(!1)},1e3),b||p())},y=()=>n?e.jsx(nt,{children:e.jsx(Le,{type:"button",children:o})}):e.jsx(nt,{children:l.search?e.jsx(Le,{onClick:p,type:"button",children:r}):e.jsx(Le,{type:"button",children:s})});return e.jsxs(Zn,{children:[e.jsx(Kn,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search sources"},onChange:g,onKeyDown:j=>{j.key==="Enter"&&f(j)},placeholder:t,value:l.search,...i}),y()]})},nt=u(h)` +`,Yn=({placeholder:t,activeIcon:r,loadingIcon:o,defaultIcon:s,...i})=>{const[l,a]=z(j=>[j.filters,j.setFilters]),[n,d]=x.useState(!1),p=()=>{a({search:""}),d(!1)},g=j=>{!j.target.value&&p(),a({search:j.target.value})},f=j=>{const{value:b}=j.currentTarget;a({search:b}),!n&&(d(!0),setTimeout(()=>{b||p(),d(!1)},1e3),b||p())},y=()=>n?e.jsx(nt,{children:e.jsx(Ee,{type:"button",children:o})}):e.jsx(nt,{children:l.search?e.jsx(Ee,{onClick:p,type:"button",children:r}):e.jsx(Ee,{type:"button",children:s})});return e.jsxs(Zn,{children:[e.jsx(Kn,{autoComplete:"off",autoCorrect:"off",inputProps:{"aria-label":"search sources"},onChange:g,onKeyDown:j=>{j.key==="Enter"&&f(j)},placeholder:t,value:l.search,...i}),y()]})},nt=u(h)` top: -50%; right: -3%; z-index: 3; position: absolute; transform: translate(-50%, 50%); -`,Le=u(V)` +`,Ee=u(V)` font-size: 24px; `,Zn=u(ve)` && { @@ -388,7 +388,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a } } width: 100%; -`,qn=({onSelect:t,selectedTopic:r})=>{const[o,s]=x.useState(!1),[i,l]=x.useState(""),[a,n]=x.useState([]),[d,p]=x.useState(!1),g=x.useRef(null);x.useEffect(()=>()=>n([]),[n]);const f=async m=>{const C={muted:"False",sort_by:Fe,search:m,skip:"0",limit:"1000"};p(!0);try{const w=await mt(C);n(w.data)}catch{n([])}finally{p(!1)}},y=x.useMemo(()=>ft.debounce(f,300),[]),j=m=>{t(m)},b=m=>{if(l(m),!m){n([]);return}m.length>2&&y(m)};return r?e.jsxs(Jn,{children:[e.jsx("div",{className:"value",children:r.name}),e.jsx(h,{className:"icon",onClick:()=>t(null),children:e.jsx(K,{})})]}):e.jsxs(e.Fragment,{children:[e.jsxs(ve,{ref:g,component:"form",onSubmit:m=>m.preventDefault(),sx:{p:"2px 4px",display:"flex",alignItems:"center",width:200},children:[e.jsx(we,{inputProps:{"aria-label":"search topic"},onChange:m=>b(m.target.value),onFocus:()=>s(!0),placeholder:"Search",size:"small",sx:{ml:1,flex:1},value:i}),i&&e.jsxs(e.Fragment,{children:[e.jsx(ot,{"aria-label":"search",onClick:()=>b(""),type:"button",children:e.jsx(K,{})}),e.jsx(_t,{orientation:"vertical",sx:{height:28,m:.5}})]}),e.jsx(ot,{"aria-label":"search",type:"button",children:d?e.jsx(L,{color:c.white,size:24}):e.jsx(be,{})})]}),g.current&&a.length?e.jsx(Xn,{anchorEl:g.current,open:o,placement:"bottom",children:e.jsx(e.Fragment,{children:a.map(m=>e.jsx(Qn,{className:U({active:r===m.ref_id}),onClick:()=>j(m),children:m.name},"option"))})}):null]})},Qn=u(h).attrs({direction:"row",align:"center"})` +`,qn=({onSelect:t,selectedTopic:r})=>{const[o,s]=x.useState(!1),[i,l]=x.useState(""),[a,n]=x.useState([]),[d,p]=x.useState(!1),g=x.useRef(null);x.useEffect(()=>()=>n([]),[n]);const f=async m=>{const C={muted:"False",sort_by:Fe,search:m,skip:"0",limit:"1000"};p(!0);try{const w=await mt(C);n(w.data)}catch{n([])}finally{p(!1)}},y=x.useMemo(()=>ft.debounce(f,300),[]),j=m=>{t(m)},b=m=>{if(l(m),!m){n([]);return}m.length>2&&y(m)};return r?e.jsxs(Jn,{children:[e.jsx("div",{className:"value",children:r.name}),e.jsx(h,{className:"icon",onClick:()=>t(null),children:e.jsx(K,{})})]}):e.jsxs(e.Fragment,{children:[e.jsxs(ve,{ref:g,component:"form",onSubmit:m=>m.preventDefault(),sx:{p:"2px 4px",display:"flex",alignItems:"center",width:200},children:[e.jsx(we,{inputProps:{"aria-label":"search topic"},onChange:m=>b(m.target.value),onFocus:()=>s(!0),placeholder:"Search",size:"small",sx:{ml:1,flex:1},value:i}),i&&e.jsxs(e.Fragment,{children:[e.jsx(ot,{"aria-label":"search",onClick:()=>b(""),type:"button",children:e.jsx(K,{})}),e.jsx(_t,{orientation:"vertical",sx:{height:28,m:.5}})]}),e.jsx(ot,{"aria-label":"search",type:"button",children:d?e.jsx(E,{color:c.white,size:24}):e.jsx(be,{})})]}),g.current&&a.length?e.jsx(Xn,{anchorEl:g.current,open:o,placement:"bottom",children:e.jsx(e.Fragment,{children:a.map(m=>e.jsx(Qn,{className:U({active:r===m.ref_id}),onClick:()=>j(m),children:m.name},"option"))})}):null]})},Qn=u(h).attrs({direction:"row",align:"center"})` font-family: Barlow; font-size: 13px; font-style: normal; @@ -410,7 +410,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a width: 9px; font-size: 10px; } -`,Xn=u(Et)` +`,Xn=u(Lt)` && { z-index: 99999; background: ${c.BUTTON1}; @@ -501,11 +501,11 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a } `,Ne=u(h)` flex: 1 1 100%; -`,ao=({topic:t,onClose:r})=>{const{close:o}=G("addEdge"),[s]=z(b=>[b.data]),i=pe({mode:"onChange"}),[l,a]=x.useState(!1),[n,d]=x.useState(null),[p,g]=x.useState(""),f=()=>{r(),o()},y=async()=>{if(!(!n||!s)){a(!0);try{await Zt({from:t.ref_id,to:n==null?void 0:n.ref_id,relationship:p});const{ref_id:b}=t,{ref_id:m}=n;if(s){const C={...s};C[b]={...C[b],edgeList:[...C[b].edgeList,p]},C[m]&&(C[m]={...C[m],edgeList:[...C[m].edgeList,p]}),z.setState({data:C})}f()}catch(b){console.warn(b)}finally{a(!1)}}},j=l||!n||!p;return e.jsx(Ve,{id:"addEdge",kind:"large",onClose:f,preventOutsideClose:!0,children:e.jsxs(he,{...i,children:[e.jsx(oo,{from:t.name,onSelect:d,selectedTopic:n,selectedType:p,setSelectedType:g}),e.jsxs(H,{color:"secondary",disabled:j,onClick:y,size:"large",variant:"contained",children:["Confirm",l&&e.jsx(L,{color:c.BLUE_PRESS_STATE,size:10})]})]})})},lo=()=>e.jsxs(h,{children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(co,{children:"Edit topic"})})}),e.jsx(h,{mb:12,children:e.jsx(le,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Add your topic",rules:{...Kt}})})]}),co=u(_)` +`,ao=({topic:t,onClose:r})=>{const{close:o}=G("addEdge"),[s]=z(b=>[b.data]),i=pe({mode:"onChange"}),[l,a]=x.useState(!1),[n,d]=x.useState(null),[p,g]=x.useState(""),f=()=>{r(),o()},y=async()=>{if(!(!n||!s)){a(!0);try{await Zt({from:t.ref_id,to:n==null?void 0:n.ref_id,relationship:p});const{ref_id:b}=t,{ref_id:m}=n;if(s){const C={...s};C[b]={...C[b],edgeList:[...C[b].edgeList,p]},C[m]&&(C[m]={...C[m],edgeList:[...C[m].edgeList,p]}),z.setState({data:C})}f()}catch(b){console.warn(b)}finally{a(!1)}}},j=l||!n||!p;return e.jsx(Ve,{id:"addEdge",kind:"large",onClose:f,preventOutsideClose:!0,children:e.jsxs(he,{...i,children:[e.jsx(oo,{from:t.name,onSelect:d,selectedTopic:n,selectedType:p,setSelectedType:g}),e.jsxs(H,{color:"secondary",disabled:j,onClick:y,size:"large",variant:"contained",children:["Confirm",l&&e.jsx(E,{color:c.BLUE_PRESS_STATE,size:10})]})]})})},lo=()=>e.jsxs(h,{children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(co,{children:"Edit topic"})})}),e.jsx(h,{mb:12,children:e.jsx(le,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Add your topic",rules:{...Kt}})})]}),co=u(_)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; -`,po=({topic:t,onClose:r})=>{const{close:o}=G("editTopic"),[s]=z(j=>[j.data]),i=pe({mode:"onChange"}),{watch:l,setValue:a,reset:n}=i,[d,p]=x.useState(!1);x.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{n()}),[t,a,n]);const g=l("name"),f=()=>{r(),o()},y=async()=>{p(!0);try{if(await je((t==null?void 0:t.ref_id)||"",{name:g.trim()}),s){const j={...s};j[t==null?void 0:t.ref_id].name=g.trim(),z.setState({data:j})}f()}catch(j){console.warn(j)}finally{p(!1)}};return e.jsx(Ve,{id:"editTopic",kind:"regular",onClose:f,preventOutsideClose:!0,children:e.jsxs(he,{...i,children:[e.jsx(lo,{}),e.jsxs(H,{color:"secondary",disabled:d,onClick:y,size:"large",variant:"contained",children:["Save",d&&e.jsx(L,{color:c.BLUE_PRESS_STATE,size:10})]})]})})},ho=({onSelect:t,selectedTopic:r})=>{const[o,s]=x.useState(!1),[i,l]=x.useState(""),[a,n]=x.useState([]),[d,p]=x.useState(!1),g=x.useRef(null);x.useEffect(()=>()=>n([]),[n]);const f=async m=>{const C={muted:"False",sort_by:Fe,search:m,skip:"0",limit:"1000"};p(!0);try{const w=await mt(C);n(w.data)}catch{n([])}finally{p(!1)}},y=x.useMemo(()=>ft.debounce(f,300),[]),j=m=>{t(m)},b=m=>{if(l(m),!m){n([]);return}m.length>2&&y(m)};return r?e.jsxs(fo,{children:[e.jsx("div",{className:"value",children:r.name}),e.jsx(h,{className:"icon",onClick:()=>t(null),children:e.jsx(K,{})})]}):e.jsxs(e.Fragment,{children:[e.jsxs(ve,{ref:g,component:"form",onSubmit:m=>m.preventDefault(),sx:{p:"2px 4px",display:"flex",alignItems:"center",width:200},children:[e.jsx(we,{inputProps:{"aria-label":"search topic"},onChange:m=>b(m.target.value),onFocus:()=>s(!0),placeholder:"Search",size:"small",sx:{ml:1,flex:1},value:i}),i&&e.jsxs(e.Fragment,{children:[e.jsx(st,{"aria-label":"search",onClick:()=>b(""),type:"button",children:e.jsx(K,{})}),e.jsx(_t,{orientation:"vertical",sx:{height:28,m:.5}})]}),e.jsx(st,{"aria-label":"search",type:"button",children:d?e.jsx(L,{color:c.white,size:24}):e.jsx(be,{})})]}),g.current&&a.length?e.jsx(xo,{anchorEl:g.current,open:o,placement:"bottom",children:e.jsx(e.Fragment,{children:a.map(m=>e.jsx(uo,{className:U({active:r===m.ref_id}),onClick:()=>j(m),children:m.name},"option"))})}):null]})},uo=u(h).attrs({direction:"row",align:"center"})` +`,po=({topic:t,onClose:r})=>{const{close:o}=G("editTopic"),[s]=z(j=>[j.data]),i=pe({mode:"onChange"}),{watch:l,setValue:a,reset:n}=i,[d,p]=x.useState(!1);x.useEffect(()=>(t&&a("name",t==null?void 0:t.name),()=>{n()}),[t,a,n]);const g=l("name"),f=()=>{r(),o()},y=async()=>{p(!0);try{if(await je((t==null?void 0:t.ref_id)||"",{name:g.trim()}),s){const j={...s};j[t==null?void 0:t.ref_id].name=g.trim(),z.setState({data:j})}f()}catch(j){console.warn(j)}finally{p(!1)}};return e.jsx(Ve,{id:"editTopic",kind:"regular",onClose:f,preventOutsideClose:!0,children:e.jsxs(he,{...i,children:[e.jsx(lo,{}),e.jsxs(H,{color:"secondary",disabled:d,onClick:y,size:"large",variant:"contained",children:["Save",d&&e.jsx(E,{color:c.BLUE_PRESS_STATE,size:10})]})]})})},ho=({onSelect:t,selectedTopic:r})=>{const[o,s]=x.useState(!1),[i,l]=x.useState(""),[a,n]=x.useState([]),[d,p]=x.useState(!1),g=x.useRef(null);x.useEffect(()=>()=>n([]),[n]);const f=async m=>{const C={muted:"False",sort_by:Fe,search:m,skip:"0",limit:"1000"};p(!0);try{const w=await mt(C);n(w.data)}catch{n([])}finally{p(!1)}},y=x.useMemo(()=>ft.debounce(f,300),[]),j=m=>{t(m)},b=m=>{if(l(m),!m){n([]);return}m.length>2&&y(m)};return r?e.jsxs(fo,{children:[e.jsx("div",{className:"value",children:r.name}),e.jsx(h,{className:"icon",onClick:()=>t(null),children:e.jsx(K,{})})]}):e.jsxs(e.Fragment,{children:[e.jsxs(ve,{ref:g,component:"form",onSubmit:m=>m.preventDefault(),sx:{p:"2px 4px",display:"flex",alignItems:"center",width:200},children:[e.jsx(we,{inputProps:{"aria-label":"search topic"},onChange:m=>b(m.target.value),onFocus:()=>s(!0),placeholder:"Search",size:"small",sx:{ml:1,flex:1},value:i}),i&&e.jsxs(e.Fragment,{children:[e.jsx(st,{"aria-label":"search",onClick:()=>b(""),type:"button",children:e.jsx(K,{})}),e.jsx(_t,{orientation:"vertical",sx:{height:28,m:.5}})]}),e.jsx(st,{"aria-label":"search",type:"button",children:d?e.jsx(E,{color:c.white,size:24}):e.jsx(be,{})})]}),g.current&&a.length?e.jsx(xo,{anchorEl:g.current,open:o,placement:"bottom",children:e.jsx(e.Fragment,{children:a.map(m=>e.jsx(uo,{className:U({active:r===m.ref_id}),onClick:()=>j(m),children:m.name},"option"))})}):null]})},uo=u(h).attrs({direction:"row",align:"center"})` font-family: Barlow; font-size: 13px; font-style: normal; @@ -527,7 +527,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a width: 9px; font-size: 10px; } -`,xo=u(Et)` +`,xo=u(Lt)` && { z-index: 99999; background: ${c.BUTTON1}; @@ -572,7 +572,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a } `,it=u(h)` flex: 1 1 100%; -`,jo=({topic:t,onClose:r})=>{const{close:o}=G("mergeTopic"),[s,i,l]=z(w=>[w.data,w.ids,w.total]),a=pe({mode:"onChange"}),{watch:n,setValue:d,reset:p}=a,[g,f]=x.useState(!1),[y,j]=x.useState(null);x.useEffect(()=>(t&&d("topic",t==null?void 0:t.name),()=>{p()}),[t,d,p]);const b=n("topic"),m=()=>{r(),o()},C=async()=>{if(!(!y||!s)){f(!0);try{await qt({from:t.ref_id,to:y==null?void 0:y.ref_id});const{ref_id:w}=t;if(s[w]={...s[w],edgeList:[Rr],edgeCount:s[w].edgeCount-1},z.setState({ids:i.filter($=>$!==y.ref_id),total:l-1}),s){const $={...s};$[t==null?void 0:t.ref_id].name=b.trim(),z.setState({data:$})}m()}catch(w){console.warn(w)}finally{f(!1)}}};return e.jsx(Ve,{id:"mergeTopic",kind:"regular",onClose:m,preventOutsideClose:!0,children:e.jsxs(he,{...a,children:[e.jsx(mo,{from:t.name,onSelect:j,selectedTopic:y}),e.jsxs(H,{color:"secondary",disabled:g,onClick:C,size:"large",variant:"contained",children:["Merge topics",g&&e.jsx(L,{color:c.BLUE_PRESS_STATE,size:10})]})]})})},bo=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.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"})}),Co=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),vo=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.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"})}),Pe=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),at=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),lt=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),wo=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{opacity:"0.4",children:[e.jsx("mask",{id:"mask0_5162_13105",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_5162_13105)",children:e.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),So=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_5162_13106",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_5162_13106)",children:e.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),_o=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_5577_416)",children:e.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),To=({topic:t,onClick:r,onSearch:o,checkedStates:s,setCheckedStates:i})=>{const[l,a]=z(k=>[k.ids,k.total]),[n,d]=x.useState(!1),p=Oe(t.date_added_to_graph),g=async(k,S)=>{d(!0);try{await je(k,{muted_topic:S}),z.setState({ids:l.filter(T=>T!==k),total:a-1})}catch(T){console.warn(T)}},f=k=>{i(S=>({...S,[k]:!S[k]}))},y=(k,S)=>{var T;(T=window.getSelection())!=null&&T.toString()?k.preventDefault():o(S.name)},j=t.edgeList.slice(0,1),b=t.edgeList.length-j.length,[m,C]=P.useState(null),w=k=>{C(k.currentTarget)},$=()=>{C(null)},E=!!m,I=s[t.ref_id]?"visible":"";return e.jsxs(Se,{className:s[t.ref_id]?"checked":"",children:[e.jsx(v,{children:e.jsx($o,{className:`checkbox-section ${I}`,onClick:()=>f(t.ref_id),children:e.jsx(Eo,{checked:s[t.ref_id],children:e.jsx(Lo,{children:s[t.ref_id]&&e.jsx(Ge,{})})})})}),e.jsx(v,{onClick:k=>y(k,t),children:e.jsx(Ao,{children:t.name})}),e.jsx(v,{children:t.node_type}),e.jsx(v,{children:t.edgeCount}),e.jsxs(v,{children:[e.jsx(We,{anchorEl:m,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:$,open:E,sx:{pointerEvents:"none","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Je,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),j.join(", "),b>0&&e.jsx(Je,{"aria-haspopup":"true","aria-owns":E?"mouse-over-popover":void 0,component:"span",onMouseEnter:w,onMouseLeave:$,sx:{cursor:"context-menu"},children:",..."})]}),e.jsx(v,{children:e.jsx("span",{children:p})}),e.jsx(v,{className:"cell-center",children:e.jsx(h,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:n?e.jsx(ko,{children:e.jsx(L,{color:c.white,size:16})}):e.jsxs(h,{direction:"row",children:[t.muted_topic?e.jsx(V,{className:"centered",onClick:()=>g(t.ref_id,!1),children:e.jsx(So,{})}):e.jsx(V,{className:"centered",onClick:()=>g(t.ref_id,!0),children:e.jsx(wo,{})}),e.jsx(V,{onClick:k=>r(k,t.ref_id),children:e.jsx(_o,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},ko=u.span` +`,jo=({topic:t,onClose:r})=>{const{close:o}=G("mergeTopic"),[s,i,l]=z(w=>[w.data,w.ids,w.total]),a=pe({mode:"onChange"}),{watch:n,setValue:d,reset:p}=a,[g,f]=x.useState(!1),[y,j]=x.useState(null);x.useEffect(()=>(t&&d("topic",t==null?void 0:t.name),()=>{p()}),[t,d,p]);const b=n("topic"),m=()=>{r(),o()},C=async()=>{if(!(!y||!s)){f(!0);try{await qt({from:t.ref_id,to:y==null?void 0:y.ref_id});const{ref_id:w}=t;if(s[w]={...s[w],edgeList:[Rr],edgeCount:s[w].edgeCount-1},z.setState({ids:i.filter($=>$!==y.ref_id),total:l-1}),s){const $={...s};$[t==null?void 0:t.ref_id].name=b.trim(),z.setState({data:$})}m()}catch(w){console.warn(w)}finally{f(!1)}}};return e.jsx(Ve,{id:"mergeTopic",kind:"regular",onClose:m,preventOutsideClose:!0,children:e.jsxs(he,{...a,children:[e.jsx(mo,{from:t.name,onSelect:j,selectedTopic:y}),e.jsxs(H,{color:"secondary",disabled:g,onClick:C,size:"large",variant:"contained",children:["Merge topics",g&&e.jsx(E,{color:c.BLUE_PRESS_STATE,size:10})]})]})})},bo=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.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"})}),Co=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),vo=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.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"})}),Pe=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),at=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),lt=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),wo=t=>e.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.jsxs("g",{opacity:"0.4",children:[e.jsx("mask",{id:"mask0_5162_13105",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_5162_13105)",children:e.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),So=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_5162_13106",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_5162_13106)",children:e.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),_o=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:e.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),e.jsx("g",{mask:"url(#mask0_5577_416)",children:e.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),To=({topic:t,onClick:r,onSearch:o,checkedStates:s,setCheckedStates:i})=>{const[l,a]=z(k=>[k.ids,k.total]),[n,d]=x.useState(!1),p=Oe(t.date_added_to_graph),g=async(k,S)=>{d(!0);try{await je(k,{muted_topic:S}),z.setState({ids:l.filter(T=>T!==k),total:a-1})}catch(T){console.warn(T)}},f=k=>{i(S=>({...S,[k]:!S[k]}))},y=(k,S)=>{var T;(T=window.getSelection())!=null&&T.toString()?k.preventDefault():o(S.name)},j=t.edgeList.slice(0,1),b=t.edgeList.length-j.length,[m,C]=P.useState(null),w=k=>{C(k.currentTarget)},$=()=>{C(null)},L=!!m,I=s[t.ref_id]?"visible":"";return e.jsxs(Se,{className:s[t.ref_id]?"checked":"",children:[e.jsx(v,{children:e.jsx($o,{className:`checkbox-section ${I}`,onClick:()=>f(t.ref_id),children:e.jsx(Lo,{checked:s[t.ref_id],children:e.jsx(Eo,{children:s[t.ref_id]&&e.jsx(Ge,{})})})})}),e.jsx(v,{onClick:k=>y(k,t),children:e.jsx(Ao,{children:t.name})}),e.jsx(v,{children:t.node_type}),e.jsx(v,{children:t.edgeCount}),e.jsxs(v,{children:[e.jsx(We,{anchorEl:m,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:"mouse-over-popover",onClose:$,open:L,sx:{pointerEvents:"none","& .MuiPaper-root":{backgroundColor:"rgba(0, 0, 0, 0.9)",borderRadius:"4px",width:"160px"}},transformOrigin:{vertical:"bottom",horizontal:"center"},children:e.jsx(Je,{sx:{p:1.5,fontSize:"13px",fontWeight:400,lineHeight:"1.8",wordWrap:"break-word"},children:t.edgeList.join(", ")})}),j.join(", "),b>0&&e.jsx(Je,{"aria-haspopup":"true","aria-owns":L?"mouse-over-popover":void 0,component:"span",onMouseEnter:w,onMouseLeave:$,sx:{cursor:"context-menu"},children:",..."})]}),e.jsx(v,{children:e.jsx("span",{children:p})}),e.jsx(v,{className:"cell-center",children:e.jsx(h,{direction:"row",justify:"space-between",children:e.jsx("div",{className:"approve-wrapper",children:n?e.jsx(ko,{children:e.jsx(E,{color:c.white,size:16})}):e.jsxs(h,{direction:"row",children:[t.muted_topic?e.jsx(V,{className:"centered",onClick:()=>g(t.ref_id,!1),children:e.jsx(So,{})}):e.jsx(V,{className:"centered",onClick:()=>g(t.ref_id,!0),children:e.jsx(wo,{})}),e.jsx(V,{onClick:k=>r(k,t.ref_id),children:e.jsx(_o,{"data-testid":"ThreeDotsIcons"})})]})})})})]},t.name)},ko=u.span` margin-left: 12px; `,Ao=u.span` cursor: pointer; @@ -588,7 +588,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a &.visible { visibility: visible; } -`,Eo=u.div` +`,Lo=u.div` width: 14px; height: 14px; border-radius: 4px; @@ -598,13 +598,13 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a justify-content: center; align-items: center; margin-left: 12px; -`,Lo=u.div` +`,Eo=u.div` display: flex; align-items: center; justify-content: center; border-radius: 2px; background-color: transparent; -`,No=x.memo(To),Po=({setShowMuteUnmute:t,showMuted:r,onTopicEdit:o,onChangeFilter:s,checkedStates:i,setCheckedStates:l})=>{const{close:a}=G("sourcesTable"),[n,d]=x.useState(!1),[p,g]=P.useState(null),[f,y]=P.useState(""),j=Object.values(i).filter(A=>A).length,[b,m]=ne(A=>[A.setSearchFormValue,A.setCurrentSearch]),[C,w,$]=z(A=>[A.data,A.ids,A.total]),E=x.useCallback((A,M)=>{g(A.currentTarget),y(M)},[]),I=()=>{g(null)},k=A=>{b(A),m(A),a()},S=A=>{o(f,A),I()},T=A=>{s(A)},N=!!p,R=N?"simple-popover":void 0,Y=async()=>{d(!0);const A=[];try{Object.keys(i).forEach(M=>{if(i[M]){const oe=je(M,{muted_topic:r});z.setState({ids:w.filter(Z=>Z!==M),total:$-1}),A.push(oe)}}),await Promise.all(A),d(!1)}catch(M){console.error("Error:",M),d(!1)}};return C?e.jsx(e.Fragment,{children:Object.keys(C).length?e.jsx(Wo,{align:"center",justify:n?"center":"flex-start",children:n?e.jsx(L,{color:c.white}):e.jsxs(e.Fragment,{children:[e.jsxs(Ce,{component:"table",children:[e.jsx(_e,{children:e.jsxs(J,{component:"tr",children:[e.jsx(v,{className:"empty"}),e.jsx(v,{children:e.jsxs(Ie,{onClick:()=>T(Fe),children:["Name ",e.jsx(Pe,{})]})}),e.jsx(v,{children:"Type"}),e.jsx(v,{children:e.jsxs(Ie,{onClick:()=>T(Fr),children:["Count ",e.jsx(Pe,{})]})}),e.jsx(v,{children:"Edge list"}),e.jsx(v,{children:e.jsxs(Ie,{onClick:()=>T(Wr),children:["Date ",e.jsx(Pe,{})]})}),e.jsx(v,{children:e.jsx(h,{px:8,children:e.jsxs(Io,{onClick:t,children:[e.jsx(Bo,{checked:r,children:e.jsx(zo,{children:r&&e.jsx(Ge,{})})}),"Muted"]})})})]})}),j>0&&e.jsxs(J,{component:"tr",children:[e.jsx(v,{children:e.jsx(V,{onClick:()=>l({}),children:e.jsx(K,{})})}),e.jsx(v,{children:e.jsxs(Fo,{children:[e.jsxs(Ro,{children:[e.jsx(Mo,{children:j}),"selected"]}),e.jsx(Do,{onClick:Y,role:"button",children:r?e.jsxs(e.Fragment,{children:[e.jsx(lt,{})," Unmute All"]}):e.jsxs(e.Fragment,{children:[e.jsx(at,{})," Mute All"]})})]})})]}),C&&e.jsx("tbody",{children:w==null?void 0:w.map(A=>e.jsx(No,{checkedStates:i,onClick:E,onSearch:k,setCheckedStates:l,topic:C[A]},A))})]}),f?e.jsxs(Oo,{anchorEl:p,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:R,onClose:I,open:N,transformOrigin:{vertical:"top",horizontal:"right"},children:[r?e.jsxs(ae,{onClick:()=>S("unMute"),children:[" ",e.jsx(lt,{"data-testid":""})," Unmute"]}):e.jsxs(ae,{onClick:()=>S("mute"),children:[" ",e.jsx(at,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(ae,{onClick:()=>S("editTopic"),children:[e.jsx(Co,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(ae,{onClick:()=>S("mergeTopic"),children:[e.jsx(vo,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(ae,{onClick:()=>S("addEdge"),children:[e.jsx(bo,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})}):e.jsxs(h,{children:[e.jsx(_,{children:"There is not any results for selected filters"}),e.jsx(ze,{})]})}):e.jsxs(h,{children:[e.jsx(_,{children:"There is not any results for selected filters"}),e.jsx(ze,{})]})},Io=u.td` +`,No=x.memo(To),Po=({setShowMuteUnmute:t,showMuted:r,onTopicEdit:o,onChangeFilter:s,checkedStates:i,setCheckedStates:l})=>{const{close:a}=G("sourcesTable"),[n,d]=x.useState(!1),[p,g]=P.useState(null),[f,y]=P.useState(""),j=Object.values(i).filter(A=>A).length,[b,m]=ne(A=>[A.setSearchFormValue,A.setCurrentSearch]),[C,w,$]=z(A=>[A.data,A.ids,A.total]),L=x.useCallback((A,M)=>{g(A.currentTarget),y(M)},[]),I=()=>{g(null)},k=A=>{b(A),m(A),a()},S=A=>{o(f,A),I()},T=A=>{s(A)},N=!!p,R=N?"simple-popover":void 0,Y=async()=>{d(!0);const A=[];try{Object.keys(i).forEach(M=>{if(i[M]){const oe=je(M,{muted_topic:r});z.setState({ids:w.filter(Z=>Z!==M),total:$-1}),A.push(oe)}}),await Promise.all(A),d(!1)}catch(M){console.error("Error:",M),d(!1)}};return C?e.jsx(e.Fragment,{children:Object.keys(C).length?e.jsx(Wo,{align:"center",justify:n?"center":"flex-start",children:n?e.jsx(E,{color:c.white}):e.jsxs(e.Fragment,{children:[e.jsxs(Ce,{component:"table",children:[e.jsx(_e,{children:e.jsxs(J,{component:"tr",children:[e.jsx(v,{className:"empty"}),e.jsx(v,{children:e.jsxs(Ie,{onClick:()=>T(Fe),children:["Name ",e.jsx(Pe,{})]})}),e.jsx(v,{children:"Type"}),e.jsx(v,{children:e.jsxs(Ie,{onClick:()=>T(Fr),children:["Count ",e.jsx(Pe,{})]})}),e.jsx(v,{children:"Edge list"}),e.jsx(v,{children:e.jsxs(Ie,{onClick:()=>T(Wr),children:["Date ",e.jsx(Pe,{})]})}),e.jsx(v,{children:e.jsx(h,{px:8,children:e.jsxs(Io,{onClick:t,children:[e.jsx(Bo,{checked:r,children:e.jsx(zo,{children:r&&e.jsx(Ge,{})})}),"Muted"]})})})]})}),j>0&&e.jsxs(J,{component:"tr",children:[e.jsx(v,{children:e.jsx(V,{onClick:()=>l({}),children:e.jsx(K,{})})}),e.jsx(v,{children:e.jsxs(Fo,{children:[e.jsxs(Ro,{children:[e.jsx(Mo,{children:j}),"selected"]}),e.jsx(Do,{onClick:Y,role:"button",children:r?e.jsxs(e.Fragment,{children:[e.jsx(lt,{})," Unmute All"]}):e.jsxs(e.Fragment,{children:[e.jsx(at,{})," Mute All"]})})]})})]}),C&&e.jsx("tbody",{children:w==null?void 0:w.map(A=>e.jsx(No,{checkedStates:i,onClick:L,onSearch:k,setCheckedStates:l,topic:C[A]},A))})]}),f?e.jsxs(Oo,{anchorEl:p,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:R,onClose:I,open:N,transformOrigin:{vertical:"top",horizontal:"right"},children:[r?e.jsxs(ae,{onClick:()=>S("unMute"),children:[" ",e.jsx(lt,{"data-testid":""})," Unmute"]}):e.jsxs(ae,{onClick:()=>S("mute"),children:[" ",e.jsx(at,{"data-testid":"VisibilityOff"})," Mute"]}),e.jsxs(ae,{onClick:()=>S("editTopic"),children:[e.jsx(Co,{"data-testid":"EditTopicIcon"})," Rename"]}),e.jsxs(ae,{onClick:()=>S("mergeTopic"),children:[e.jsx(vo,{"data-testid":"MergeIcon"})," Merge"]}),e.jsxs(ae,{onClick:()=>S("addEdge"),children:[e.jsx(bo,{"data-testid":"AddCircleIcon"})," Add edge"]})]}):null]})}):e.jsxs(h,{children:[e.jsx(_,{children:"There is not any results for selected filters"}),e.jsx(ze,{})]})}):e.jsxs(h,{children:[e.jsx(_,{children:"There is not any results for selected filters"}),e.jsx(ze,{})]})},Io=u.td` cursor: pointer; display: flex; align-items: center; @@ -685,7 +685,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a overflow: auto; flex: 1; width: 100%; -`,Vo=()=>{const[t,r]=x.useState(!1),[o,s,i,l,a,n,d]=z(T=>[T.data,T.ids,T.total,T.setTopics,T.filters,T.setFilters,T.terminate]),{open:p}=G("editTopic"),{open:g}=G("mergeTopic"),{open:f}=G("addEdge"),[y,j]=x.useState(null),[b,m]=x.useState({}),C={editTopic:p,mergeTopic:g,addEdge:f},w=x.useRef([]);x.useEffect(()=>{s.length&&(w.current=s)},[s]),x.useEffect(()=>{(async()=>{try{r(!0),await l()}catch{console.error("err")}finally{r(!1)}})()},[l,a]);const $=async()=>{try{r(!0),n({page:a.page+1})}catch(T){console.error("Error loading more data:",T)}finally{r(!1)}};x.useEffect(()=>()=>{d()},[d]);const E=T=>{n({sortBy:T})},I=()=>{j(null)},k=async(T,N)=>{try{await je(T,{muted_topic:N==="mute"}),z.setState({ids:s.filter(R=>R!==T),total:i-1})}catch(R){console.warn(R)}},S=async(T,N)=>{o&&(j(o[T]),["mute","unMute"].includes(N)&&await k(T,N),typeof C[N]=="function"&&C[N]())};return e.jsxs(e.Fragment,{children:[e.jsxs(Go,{direction:"column",justify:"flex-end",children:[e.jsx(Te,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(_,{className:"title",children:"Topics"})}),e.jsx(Ho,{children:e.jsx(Yn,{activeIcon:e.jsx(K,{}),defaultIcon:e.jsx(be,{}),loadingIcon:e.jsx(L,{color:c.PRIMARY_BLUE,size:24}),placeholder:"Search ..."})}),e.jsx(Uo,{align:"center",justify:t&&!o?"center":"flex-start",children:t&&!o?e.jsx(L,{color:c.white}):e.jsxs(e.Fragment,{children:[e.jsx(Po,{checkedStates:b,onChangeFilter:E,onTopicEdit:S,setCheckedStates:m,setShowMuteUnmute:()=>n({muted:!a.muted}),showMuted:a.muted}),i>s.length?e.jsxs(H,{className:"load-more",disabled:t,onClick:$,children:["Load more",t&&e.jsx(L,{color:c.BLUE_PRESS_STATE,size:10})]}):null]})})]}),y&&e.jsx(jo,{onClose:I,topic:y}),y&&e.jsx(po,{onClose:I,topic:y}),y&&e.jsx(ao,{onClose:I,topic:y})]})},Go=u(h)` +`,Vo=()=>{const[t,r]=x.useState(!1),[o,s,i,l,a,n,d]=z(T=>[T.data,T.ids,T.total,T.setTopics,T.filters,T.setFilters,T.terminate]),{open:p}=G("editTopic"),{open:g}=G("mergeTopic"),{open:f}=G("addEdge"),[y,j]=x.useState(null),[b,m]=x.useState({}),C={editTopic:p,mergeTopic:g,addEdge:f},w=x.useRef([]);x.useEffect(()=>{s.length&&(w.current=s)},[s]),x.useEffect(()=>{(async()=>{try{r(!0),await l()}catch{console.error("err")}finally{r(!1)}})()},[l,a]);const $=async()=>{try{r(!0),n({page:a.page+1})}catch(T){console.error("Error loading more data:",T)}finally{r(!1)}};x.useEffect(()=>()=>{d()},[d]);const L=T=>{n({sortBy:T})},I=()=>{j(null)},k=async(T,N)=>{try{await je(T,{muted_topic:N==="mute"}),z.setState({ids:s.filter(R=>R!==T),total:i-1})}catch(R){console.warn(R)}},S=async(T,N)=>{o&&(j(o[T]),["mute","unMute"].includes(N)&&await k(T,N),typeof C[N]=="function"&&C[N]())};return e.jsxs(e.Fragment,{children:[e.jsxs(Go,{direction:"column",justify:"flex-end",children:[e.jsx(Te,{align:"flex-start",direction:"row",justify:"space-between",children:e.jsx(_,{className:"title",children:"Topics"})}),e.jsx(Ho,{children:e.jsx(Yn,{activeIcon:e.jsx(K,{}),defaultIcon:e.jsx(be,{}),loadingIcon:e.jsx(E,{color:c.PRIMARY_BLUE,size:24}),placeholder:"Search ..."})}),e.jsx(Uo,{align:"center",justify:t&&!o?"center":"flex-start",children:t&&!o?e.jsx(E,{color:c.white}):e.jsxs(e.Fragment,{children:[e.jsx(Po,{checkedStates:b,onChangeFilter:L,onTopicEdit:S,setCheckedStates:m,setShowMuteUnmute:()=>n({muted:!a.muted}),showMuted:a.muted}),i>s.length?e.jsxs(H,{className:"load-more",disabled:t,onClick:$,children:["Load more",t&&e.jsx(E,{color:c.BLUE_PRESS_STATE,size:10})]}):null]})})]}),y&&e.jsx(jo,{onClose:I,topic:y}),y&&e.jsx(po,{onClose:I,topic:y}),y&&e.jsx(ao,{onClose:I,topic:y})]})},Go=u(h)` flex: 1; .title { @@ -749,7 +749,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a font-weight: 400; line-height: normal; } -`,Jo=()=>{const[t,r]=x.useState([]),[o,s]=x.useState(!0),[i,l]=x.useState(10),[a,n]=x.useState(!0),d={only_content:"true",sort_by:"date",limit:i.toString()},p=async()=>{s(!0);try{const f=await Qt(d);r(f.nodes),s(!1)}catch(f){console.error("Error fetching data:",f),s(!1)}};x.useEffect(()=>{p()},[i]);const g=()=>{l(i+10),p()};return e.jsxs(es,{direction:"column",justify:"flex-end",children:[e.jsx(Te,{align:"center",direction:"row",justify:"space-between",children:e.jsx(_,{className:"title",children:"Content I've added to the graph"})}),e.jsxs(ts,{align:"center",justify:o?"center":"flex-start",children:[o?e.jsx(L,{color:c.white}):e.jsx(e.Fragment,{children:e.jsx(qo,{nodes:t})}),o?null:a?e.jsx(H,{onClick:g,size:"medium",children:"Load More"}):e.jsx(rs,{children:"No new nodes available"})]})]})},es=u(h)` +`,Jo=()=>{const[t,r]=x.useState([]),[o,s]=x.useState(!0),[i,l]=x.useState(10),[a,n]=x.useState(!0),d={only_content:"true",sort_by:"date",limit:i.toString()},p=async()=>{s(!0);try{const f=await Qt(d);r(f.nodes),s(!1)}catch(f){console.error("Error fetching data:",f),s(!1)}};x.useEffect(()=>{p()},[i]);const g=()=>{l(i+10),p()};return e.jsxs(es,{direction:"column",justify:"flex-end",children:[e.jsx(Te,{align:"center",direction:"row",justify:"space-between",children:e.jsx(_,{className:"title",children:"Content I've added to the graph"})}),e.jsxs(ts,{align:"center",justify:o?"center":"flex-start",children:[o?e.jsx(E,{color:c.white}):e.jsx(e.Fragment,{children:e.jsx(qo,{nodes:t})}),o?null:a?e.jsx(H,{onClick:g,size:"medium",children:"Load More"}):e.jsx(rs,{children:"No new nodes available"})]})]})},es=u(h)` flex: 1; .title { @@ -789,7 +789,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a color: ${c.GRAY3}; font-family: Barlow; font-size: 14px; -`,ns=[{label:$t,component:Jo},{label:Vr,component:Vn},{label:At,component:Ln},{label:kt,component:Vo}],os=t=>{const{children:r,value:o,index:s,...i}=t;return o===s?e.jsx(cs,{"aria-labelledby":`simple-tab-${s}`,hidden:o!==s,id:`simple-tabpanel-${s}`,role:"tabpanel",...i,children:r}):null};function ss(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const is=()=>{const[t,r]=x.useState(0),[o]=de(n=>[n.isAdmin]),[s]=Xt(n=>[n.queuedSourcesFlag]),i=Jt(),l=(n,d)=>{r(d)},a=ns.filter(({label:n})=>n===kt?o:n===At?o&&s:n===$t?i:!0);return e.jsxs(ds,{direction:"column",children:[e.jsx(as,{"aria-label":"sources tabs",onChange:l,value:t,children:a.map((n,d)=>e.jsx(ls,{color:c.white,disableRipple:!0,label:n.label,...ss(d)},n.label))}),a.map((n,d)=>e.jsx(os,{index:d,value:t,children:e.jsx(n.component,{})},n.label))]})},as=u(qr)` +`,ns=[{label:$t,component:Jo},{label:Vr,component:Vn},{label:At,component:En},{label:kt,component:Vo}],os=t=>{const{children:r,value:o,index:s,...i}=t;return o===s?e.jsx(cs,{"aria-labelledby":`simple-tab-${s}`,hidden:o!==s,id:`simple-tabpanel-${s}`,role:"tabpanel",...i,children:r}):null};function ss(t){return{id:`simple-tab-${t}`,"aria-controls":`simple-tabpanel-${t}`}}const is=()=>{const[t,r]=x.useState(0),[o]=de(n=>[n.isAdmin]),[s]=Xt(n=>[n.queuedSourcesFlag]),i=Jt(),l=(n,d)=>{r(d)},a=ns.filter(({label:n})=>n===kt?o:n===At?o&&s:n===$t?i:!0);return e.jsxs(ds,{direction:"column",children:[e.jsx(as,{"aria-label":"sources tabs",onChange:l,value:t,children:a.map((n,d)=>e.jsx(ls,{color:c.white,disableRipple:!0,label:n.label,...ss(d)},n.label))}),a.map((n,d)=>e.jsx(os,{index:d,value:t,children:e.jsx(n.component,{})},n.label))]})},as=u(qr)` && { background: rgba(0, 0, 0, 0.2); border-radius: 9px 9px 0 0; @@ -820,7 +820,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a `,ds=u(h)` min-height: 0; flex: 1; -`,fe={required:{message:"The field is required",value:!0}},ps=({initialValues:t})=>{const r=pe({defaultValues:t,mode:"onSubmit"}),{isSubmitting:o}=r.formState,s=r.handleSubmit(async i=>{try{await er(i)}catch(l){console.warn(l)}});return e.jsx(he,{...r,children:e.jsx("form",{id:"add-node-form",onSubmit:s,children:e.jsxs(e.Fragment,{children:[e.jsxs(h,{children:[e.jsx(h,{pt:12,children:e.jsx(le,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...fe}})}),e.jsx(h,{pt:12,children:e.jsx(le,{id:"cy-about-id",label:"Graph Description",maxLength:50,name:"description",placeholder:"Type graph description here...",rules:{...fe}})}),e.jsx(h,{pt:12,children:e.jsx(le,{id:"cy-about-mission_statement-id",label:"Mission Statement",maxLength:50,name:"mission_statement",placeholder:"Type mission statement here...",rules:{...fe}})}),e.jsx(h,{pt:12,children:e.jsx(le,{id:"cy-about-search_term-id",label:"Search Term",maxLength:50,name:"search_term",placeholder:"Type search term here...",rules:{...fe}})})]}),e.jsx(h,{pt:8,children:o?e.jsx(hs,{children:e.jsx(L,{color:c.white,size:20})}):e.jsx(Lt,{disabled:o,id:"add-node-submit-cta",kind:"big",type:"submit",children:"Save changes"})})]})})})},hs=u(h).attrs({align:"center",background:"primaryButton",borderRadius:8,justify:"center"})` +`,fe={required:{message:"The field is required",value:!0}},ps=({initialValues:t})=>{const r=pe({defaultValues:t,mode:"onSubmit"}),{isSubmitting:o}=r.formState,s=r.handleSubmit(async i=>{try{await er(i)}catch(l){console.warn(l)}});return e.jsx(he,{...r,children:e.jsx("form",{id:"add-node-form",onSubmit:s,children:e.jsxs(e.Fragment,{children:[e.jsxs(h,{children:[e.jsx(h,{pt:12,children:e.jsx(le,{id:"cy-about-title-id",label:"Graph Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...fe}})}),e.jsx(h,{pt:12,children:e.jsx(le,{id:"cy-about-id",label:"Graph Description",maxLength:50,name:"description",placeholder:"Type graph description here...",rules:{...fe}})}),e.jsx(h,{pt:12,children:e.jsx(le,{id:"cy-about-mission_statement-id",label:"Mission Statement",maxLength:50,name:"mission_statement",placeholder:"Type mission statement here...",rules:{...fe}})}),e.jsx(h,{pt:12,children:e.jsx(le,{id:"cy-about-search_term-id",label:"Search Term",maxLength:50,name:"search_term",placeholder:"Type search term here...",rules:{...fe}})})]}),e.jsx(h,{pt:8,children:o?e.jsx(hs,{children:e.jsx(E,{color:c.white,size:20})}):e.jsx(Et,{disabled:o,id:"add-node-submit-cta",kind:"big",type:"submit",children:"Save changes"})})]})})})},hs=u(h).attrs({align:"center",background:"primaryButton",borderRadius:8,justify:"center"})` padding: 16px 24px; opacity: 0.5; `,us=({initialValues:t})=>e.jsxs(e.Fragment,{children:[t.title&&e.jsxs(h,{pt:12,children:[e.jsx(_,{kind:"regular",children:"Graph Title"}),e.jsx(h,{pt:12,children:e.jsx(_,{className:"value",kind:"medium",children:t.title})})]}),t.description&&e.jsxs(h,{pt:12,children:[e.jsx(_,{kind:"regular",children:"Graph Description"}),e.jsx(h,{pt:12,children:e.jsx(_,{className:"value",kind:"medium",children:t.description})})]}),t.mission_statement&&e.jsxs(h,{pt:12,children:[e.jsx(_,{kind:"regular",children:"Mission Statement"}),e.jsx(h,{pt:12,children:e.jsx(_,{className:"value",kind:"medium",children:t.mission_statement})})]})]}),xs=()=>{const[t]=de(o=>[o.isAdmin]),r=ne(o=>o.appMetaData);return e.jsxs(fs,{align:"stretch",direction:"column",justify:"flex-end",children:[e.jsx(gs,{align:"center",direction:"row",justify:"space-between",children:e.jsx(_,{className:"title",children:"About"})}),e.jsx(ms,{align:"stretch",justify:"flex-start",children:t?e.jsx(ps,{initialValues:r}):e.jsx(us,{initialValues:r})})]})},fs=u(h)` @@ -848,7 +848,7 @@ import{g as zt,a as Ot,s as Re,c as ht,_ as me,r as x,u as Mt,b as Dt,j as e,d a margin-bottom: 0; } `;var ys=["type","layout","connectNulls","ref"];function te(t){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},te(t)}function js(t,r){if(t==null)return{};var o=bs(t,r),s,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(o[s]=t[s])}return o}function bs(t,r){if(t==null)return{};var o={},s=Object.keys(t),i,l;for(l=0;l=0)&&(o[i]=t[i]);return o}function ce(){return ce=Object.assign?Object.assign.bind():function(t){for(var r=1;rt.length)&&(r=t.length);for(var o=0,s=new Array(r);o"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 ye(t){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},ye(t)}function D(t,r,o){return r=Nt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function Nt(t){var r=Ls(t,"string");return te(r)==="symbol"?r:String(r)}function Ls(t,r){if(te(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(te(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var ue=function(t){ks(o,t);var r=As(o);function o(){var s;_s(this,o);for(var i=arguments.length,l=new Array(i),a=0;ay){b=[].concat(Q(p.slice(0,m)),[y-C]);break}var w=b.length%2===0?[0,j]:[j];return[].concat(Q(o.repeat(p,f)),Q(b),w).map(function($){return"".concat($,"px")}).join(", ")}),D(W(s),"id",xr("recharts-line-")),D(W(s),"pathRef",function(n){s.mainCurve=n}),D(W(s),"handleAnimationEnd",function(){s.setState({isAnimationFinished:!0}),s.props.onAnimationEnd&&s.props.onAnimationEnd()}),D(W(s),"handleAnimationStart",function(){s.setState({isAnimationFinished:!1}),s.props.onAnimationStart&&s.props.onAnimationStart()}),s}return Ts(o,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();this.setState({totalLength:i})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();i!==this.state.totalLength&&this.setState({totalLength:i})}}},{key:"getTotalLength",value:function(){var i=this.mainCurve;try{return i&&i.getTotalLength&&i.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(i,l){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,n=a.points,d=a.xAxis,p=a.yAxis,g=a.layout,f=a.children,y=fr(f,mr);if(!y)return null;var j=function(C,w){return{x:C.x,y:C.y,value:C.value,errorVal:bt(C.payload,w)}},b={clipPath:i?"url(#clipPath-".concat(l,")"):null};return P.createElement(ke,b,y.map(function(m){return P.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:n,xAxis:d,yAxis:p,layout:g,dataPointFormatter:j})}))}},{key:"renderDots",value:function(i,l,a){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var d=this.props,p=d.dot,g=d.points,f=d.dataKey,y=xe(this.props),j=xe(p,!0),b=g.map(function(C,w){var $=O(O(O({key:"dot-".concat(w),r:3},y),j),{},{value:C.value,dataKey:f,cx:C.x,cy:C.y,index:w,payload:C.payload});return o.renderDotItem(p,$)}),m={clipPath:i?"url(#clipPath-".concat(l?"":"dots-").concat(a,")"):null};return P.createElement(ke,ce({className:"recharts-line-dots",key:"dots"},m),b)}},{key:"renderCurveStatically",value:function(i,l,a,n){var d=this.props,p=d.type,g=d.layout,f=d.connectNulls;d.ref;var y=js(d,ys),j=O(O(O({},xe(y,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:l?"url(#clipPath-".concat(a,")"):null,points:i},n),{},{type:p,layout:g,connectNulls:f});return P.createElement(gr,ce({},j,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(i,l){var a=this,n=this.props,d=n.points,p=n.strokeDasharray,g=n.isAnimationActive,f=n.animationBegin,y=n.animationDuration,j=n.animationEasing,b=n.animationId,m=n.animateNewValues,C=n.width,w=n.height,$=this.state,E=$.prevPoints,I=$.totalLength;return P.createElement(yr,{begin:f,duration:y,isActive:g,easing:j,from:{t:0},to:{t:1},key:"line-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(k){var S=k.t;if(E){var T=E.length/d.length,N=d.map(function(B,oe){var Z=Math.floor(oe*T);if(E[Z]){var se=E[Z],q=ie(se.x,B.x),Pt=ie(se.y,B.y);return O(O({},B),{},{x:q(S),y:Pt(S)})}if(m){var It=ie(C*2,B.x),Bt=ie(w/2,B.y);return O(O({},B),{},{x:It(S),y:Bt(S)})}return O(O({},B),{},{x:B.x,y:B.y})});return a.renderCurveStatically(N,i,l)}var R=ie(0,I),Y=R(S),A;if(p){var M="".concat(p).split(/[,\s]+/gim).map(function(B){return parseFloat(B)});A=a.getStrokeDasharray(Y,I,M)}else A=a.generateSimpleStrokeDasharray(I,Y);return a.renderCurveStatically(d,i,l,{strokeDasharray:A})})}},{key:"renderCurve",value:function(i,l){var a=this.props,n=a.points,d=a.isAnimationActive,p=this.state,g=p.prevPoints,f=p.totalLength;return d&&n&&n.length&&(!g&&f>0||!jr(g,n))?this.renderCurveWithAnimation(i,l):this.renderCurveStatically(n,i,l)}},{key:"render",value:function(){var i,l=this.props,a=l.hide,n=l.dot,d=l.points,p=l.className,g=l.xAxis,f=l.yAxis,y=l.top,j=l.left,b=l.width,m=l.height,C=l.isAnimationActive,w=l.id;if(a||!d||!d.length)return null;var $=this.state.isAnimationFinished,E=d.length===1,I=Ke("recharts-line",p),k=g&&g.allowDataOverflow,S=f&&f.allowDataOverflow,T=k||S,N=Be(w)?this.id:w,R=(i=xe(n))!==null&&i!==void 0?i:{r:3,strokeWidth:2},Y=R.r,A=Y===void 0?3:Y,M=R.strokeWidth,B=M===void 0?2:M,oe=br(n)?n:{},Z=oe.clipDot,se=Z===void 0?!0:Z,q=A*2+B;return P.createElement(ke,{className:I},k||S?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(N)},P.createElement("rect",{x:k?j:j-b/2,y:S?y:y-m/2,width:k?b:b*2,height:S?m:m*2})),!se&&P.createElement("clipPath",{id:"clipPath-dots-".concat(N)},P.createElement("rect",{x:j-q/2,y:y-q/2,width:b+q,height:m+q}))):null,!E&&this.renderCurve(T,N),this.renderErrorBar(T,N),(E||n)&&this.renderDots(T,se,N),(!C||$)&&Cr.renderCallByParent(this.props,d))}}],[{key:"getDerivedStateFromProps",value:function(i,l){return i.animationId!==l.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,prevPoints:l.curPoints}:i.points!==l.curPoints?{curPoints:i.points}:null}},{key:"repeat",value:function(i,l){for(var a=i.length%2!==0?[].concat(Q(i),[0]):i,n=[],d=0;de.jsx(jt,{cx:t,cy:r,fill:c.blueTextAccent,r:2}),Is=({data:t,width:r=500,height:o=300})=>e.jsx(e.Fragment,{children:(t==null?void 0:t.length)&&e.jsxs(Ns,{data:t,height:o,id:"cy-sentiment-chart",margin:{bottom:5,left:-20,right:30,top:5},width:r,children:[e.jsx(Sr,{stroke:c.lightBlue300,strokeDasharray:"5 5"}),e.jsx(Ct,{dataKey:"date",interval:Math.floor(t.length/3),stroke:c.blueTextAccent}),e.jsx(vt,{domain:[0,10],stroke:c.blueTextAccent}),e.jsx(_r,{}),e.jsx(ue,{dataKey:"score",dot:e.jsx(Ps,{}),stroke:"#8884d8",type:"monotone"})]})}),Bs=()=>{const[t,r]=x.useState(void 0),[o]=de(a=>[a.setBudget]),[s,i]=x.useState(!1),l=async()=>{i(!0),rr(o).then(async a=>{r(a==null?void 0:a.data.filter(n=>n.date).map(n=>({date:nr.unix(Number(String(n.date).split(".")[0])).format("MM/DD/YY"),score:n.sentiment_score}))),await gt(o)}).catch().finally(()=>{i(!1)})};return e.jsxs(zs,{align:"flex-start",direction:"column",id:"cy-sentiment-chart-wrapper",justify:"flex-end",children:[e.jsx(_,{className:"title",children:"Sentiment chart"}),s&&e.jsx(Zr,{alignItems:"center",component:"div",flexGrow:1,p:4,spacing:2,width:"100%",children:e.jsx(Tr,{color:c.white})}),!(t!=null&&t.length)&&e.jsx(Os,{className:"button",id:"cy-get-sentiments-btn",onClick:l,children:"Get top 100 sentiments"}),e.jsx(Is,{data:t})]})},zs=u(h)` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vs(t,r){if(t){if(typeof t=="string")return Me(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Me(t,r)}}function ws(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ss(t){if(Array.isArray(t))return Me(t)}function Me(t,r){(r==null||r>t.length)&&(r=t.length);for(var o=0,s=new Array(r);o"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 ye(t){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},ye(t)}function D(t,r,o){return r=Nt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function Nt(t){var r=Es(t,"string");return te(r)==="symbol"?r:String(r)}function Es(t,r){if(te(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(te(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var ue=function(t){ks(o,t);var r=As(o);function o(){var s;_s(this,o);for(var i=arguments.length,l=new Array(i),a=0;ay){b=[].concat(Q(p.slice(0,m)),[y-C]);break}var w=b.length%2===0?[0,j]:[j];return[].concat(Q(o.repeat(p,f)),Q(b),w).map(function($){return"".concat($,"px")}).join(", ")}),D(W(s),"id",xr("recharts-line-")),D(W(s),"pathRef",function(n){s.mainCurve=n}),D(W(s),"handleAnimationEnd",function(){s.setState({isAnimationFinished:!0}),s.props.onAnimationEnd&&s.props.onAnimationEnd()}),D(W(s),"handleAnimationStart",function(){s.setState({isAnimationFinished:!1}),s.props.onAnimationStart&&s.props.onAnimationStart()}),s}return Ts(o,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();this.setState({totalLength:i})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var i=this.getTotalLength();i!==this.state.totalLength&&this.setState({totalLength:i})}}},{key:"getTotalLength",value:function(){var i=this.mainCurve;try{return i&&i.getTotalLength&&i.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(i,l){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,n=a.points,d=a.xAxis,p=a.yAxis,g=a.layout,f=a.children,y=fr(f,mr);if(!y)return null;var j=function(C,w){return{x:C.x,y:C.y,value:C.value,errorVal:bt(C.payload,w)}},b={clipPath:i?"url(#clipPath-".concat(l,")"):null};return P.createElement(ke,b,y.map(function(m){return P.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:n,xAxis:d,yAxis:p,layout:g,dataPointFormatter:j})}))}},{key:"renderDots",value:function(i,l,a){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var d=this.props,p=d.dot,g=d.points,f=d.dataKey,y=xe(this.props),j=xe(p,!0),b=g.map(function(C,w){var $=O(O(O({key:"dot-".concat(w),r:3},y),j),{},{value:C.value,dataKey:f,cx:C.x,cy:C.y,index:w,payload:C.payload});return o.renderDotItem(p,$)}),m={clipPath:i?"url(#clipPath-".concat(l?"":"dots-").concat(a,")"):null};return P.createElement(ke,ce({className:"recharts-line-dots",key:"dots"},m),b)}},{key:"renderCurveStatically",value:function(i,l,a,n){var d=this.props,p=d.type,g=d.layout,f=d.connectNulls;d.ref;var y=js(d,ys),j=O(O(O({},xe(y,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:l?"url(#clipPath-".concat(a,")"):null,points:i},n),{},{type:p,layout:g,connectNulls:f});return P.createElement(gr,ce({},j,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(i,l){var a=this,n=this.props,d=n.points,p=n.strokeDasharray,g=n.isAnimationActive,f=n.animationBegin,y=n.animationDuration,j=n.animationEasing,b=n.animationId,m=n.animateNewValues,C=n.width,w=n.height,$=this.state,L=$.prevPoints,I=$.totalLength;return P.createElement(yr,{begin:f,duration:y,isActive:g,easing:j,from:{t:0},to:{t:1},key:"line-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(k){var S=k.t;if(L){var T=L.length/d.length,N=d.map(function(B,oe){var Z=Math.floor(oe*T);if(L[Z]){var se=L[Z],q=ie(se.x,B.x),Pt=ie(se.y,B.y);return O(O({},B),{},{x:q(S),y:Pt(S)})}if(m){var It=ie(C*2,B.x),Bt=ie(w/2,B.y);return O(O({},B),{},{x:It(S),y:Bt(S)})}return O(O({},B),{},{x:B.x,y:B.y})});return a.renderCurveStatically(N,i,l)}var R=ie(0,I),Y=R(S),A;if(p){var M="".concat(p).split(/[,\s]+/gim).map(function(B){return parseFloat(B)});A=a.getStrokeDasharray(Y,I,M)}else A=a.generateSimpleStrokeDasharray(I,Y);return a.renderCurveStatically(d,i,l,{strokeDasharray:A})})}},{key:"renderCurve",value:function(i,l){var a=this.props,n=a.points,d=a.isAnimationActive,p=this.state,g=p.prevPoints,f=p.totalLength;return d&&n&&n.length&&(!g&&f>0||!jr(g,n))?this.renderCurveWithAnimation(i,l):this.renderCurveStatically(n,i,l)}},{key:"render",value:function(){var i,l=this.props,a=l.hide,n=l.dot,d=l.points,p=l.className,g=l.xAxis,f=l.yAxis,y=l.top,j=l.left,b=l.width,m=l.height,C=l.isAnimationActive,w=l.id;if(a||!d||!d.length)return null;var $=this.state.isAnimationFinished,L=d.length===1,I=Ke("recharts-line",p),k=g&&g.allowDataOverflow,S=f&&f.allowDataOverflow,T=k||S,N=Be(w)?this.id:w,R=(i=xe(n))!==null&&i!==void 0?i:{r:3,strokeWidth:2},Y=R.r,A=Y===void 0?3:Y,M=R.strokeWidth,B=M===void 0?2:M,oe=br(n)?n:{},Z=oe.clipDot,se=Z===void 0?!0:Z,q=A*2+B;return P.createElement(ke,{className:I},k||S?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(N)},P.createElement("rect",{x:k?j:j-b/2,y:S?y:y-m/2,width:k?b:b*2,height:S?m:m*2})),!se&&P.createElement("clipPath",{id:"clipPath-dots-".concat(N)},P.createElement("rect",{x:j-q/2,y:y-q/2,width:b+q,height:m+q}))):null,!L&&this.renderCurve(T,N),this.renderErrorBar(T,N),(L||n)&&this.renderDots(T,se,N),(!C||$)&&Cr.renderCallByParent(this.props,d))}}],[{key:"getDerivedStateFromProps",value:function(i,l){return i.animationId!==l.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,prevPoints:l.curPoints}:i.points!==l.curPoints?{curPoints:i.points}:null}},{key:"repeat",value:function(i,l){for(var a=i.length%2!==0?[].concat(Q(i),[0]):i,n=[],d=0;de.jsx(jt,{cx:t,cy:r,fill:c.blueTextAccent,r:2}),Is=({data:t,width:r=500,height:o=300})=>e.jsx(e.Fragment,{children:(t==null?void 0:t.length)&&e.jsxs(Ns,{data:t,height:o,id:"cy-sentiment-chart",margin:{bottom:5,left:-20,right:30,top:5},width:r,children:[e.jsx(Sr,{stroke:c.lightBlue300,strokeDasharray:"5 5"}),e.jsx(Ct,{dataKey:"date",interval:Math.floor(t.length/3),stroke:c.blueTextAccent}),e.jsx(vt,{domain:[0,10],stroke:c.blueTextAccent}),e.jsx(_r,{}),e.jsx(ue,{dataKey:"score",dot:e.jsx(Ps,{}),stroke:"#8884d8",type:"monotone"})]})}),Bs=()=>{const[t,r]=x.useState(void 0),[o]=de(a=>[a.setBudget]),[s,i]=x.useState(!1),l=async()=>{i(!0),rr(o).then(async a=>{r(a==null?void 0:a.data.filter(n=>n.date).map(n=>({date:nr.unix(Number(String(n.date).split(".")[0])).format("MM/DD/YY"),score:n.sentiment_score}))),await gt(o)}).catch().finally(()=>{i(!1)})};return e.jsxs(zs,{align:"flex-start",direction:"column",id:"cy-sentiment-chart-wrapper",justify:"flex-end",children:[e.jsx(_,{className:"title",children:"Sentiment chart"}),s&&e.jsx(Zr,{alignItems:"center",component:"div",flexGrow:1,p:4,spacing:2,width:"100%",children:e.jsx(Tr,{color:c.white})}),!(t!=null&&t.length)&&e.jsx(Os,{className:"button",id:"cy-get-sentiments-btn",onClick:l,children:"Get top 100 sentiments"}),e.jsx(Is,{data:t})]})},zs=u(h)` border-radius: 8px; box-shadow: 0px 5px 6px rgb(0 0 0 / 50%); padding: 16px; @@ -857,7 +857,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-bottom: 16px; font-size: 20px; } -`,Os=u(Lt)` +`,Os=u(Et)` height: 48px; `,Ms=600,Ds={about:e.jsx(xs,{}),sentiment:e.jsx(Bs,{}),sources:e.jsx(is,{}),"":null},Rs=()=>{const[t,r]=ne(o=>[o.secondarySidebarActiveTab,o.setSecondarySidebarActiveTab]);return e.jsx(kr,{direction:"left",in:!!t,mountOnEnter:!0,unmountOnExit:!0,children:e.jsxs(Fs,{id:"secondary-sidebar-wrapper",children:[e.jsx(Ws,{id:"cy-close-secondary-sidebar",onClick:()=>r(""),children:e.jsx(wt,{})}),Ds[t]]})})},Fs=u(h)(({theme:t})=>({background:c.BG1,height:"100vh",padding:"16px 20px",width:"100%",zIndex:30,display:"flex",[t.breakpoints.up("sm")]:{width:Ms}})),Ws=u(h).attrs({align:"center",justify:"center",p:5})` background-color: ${c.inputBg1}; @@ -899,4 +899,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: ${c.white}; font-size: 12px; opacity: 0.5; -`,Hs=x.lazy(()=>F(()=>import("./index-4c973ba9.js"),["assets/index-4c973ba9.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/SourcesTableIcon-d2644acb.js","assets/SettingsIcon-52b7c188.js","assets/index-dae8afeb.js"]).then(({MainToolbar:t})=>({default:t}))),Ys=x.lazy(()=>F(()=>import("./index-2980925d.js"),["assets/index-2980925d.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/index-7bc58129.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/generateCategoricalChart-876bdce4.js","assets/Popover-243f389d.js","assets/useSlotProps-96b7890f.js","assets/InfoIcon-6417fafc.js","assets/index-2ab7123b.js","assets/index.esm-f21f36d4.js","assets/EditIcon-26187d62.js","assets/PlusIcon-8eca7748.js","assets/index-dae8afeb.js","assets/ChevronUpIcon-e45e7605.js","assets/ChevronDownIcon-e923c599.js","assets/index-04e75ad0.js","assets/index-fd857883.js","assets/index-2d16147d.js","assets/index-4e0797a7.js","assets/Popper-831e364f.js","assets/CheckIcon-1dbe3e4f.js","assets/Stack-f811e4d7.js"]).then(({Universe:t})=>({default:t}))),Zs=x.lazy(()=>F(()=>import("./index-07ec87ed.js"),["assets/index-07ec87ed.js","assets/index-c522bd40.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/CheckIcon-1dbe3e4f.js","assets/ChevronDownIcon-e923c599.js","assets/ChevronUpIcon-e45e7605.js","assets/index-04e75ad0.js","assets/useSlotProps-96b7890f.js","assets/Popover-243f389d.js","assets/ChevronRightIcon-83b85265.js","assets/Select-72591674.js","assets/generateCategoricalChart-876bdce4.js","assets/InfoIcon-6417fafc.js","assets/index.esm-f21f36d4.js","assets/ChevronRightIcon-6125620a.css","assets/index-0a908253.js","assets/index-2ab7123b.js","assets/Skeleton-e77d8e84.js","assets/PlusIcon-8eca7748.js","assets/index-dae8afeb.js","assets/index-4e0797a7.js"]).then(({SideBar:t})=>({default:t}))),Ks=()=>{const[t,r]=de(S=>[S.setBudget,S.setNodeCount]),[o,s]=x.useState(!1),{setSidebarOpen:i,currentSearch:l,setCurrentSearch:a,setRelevanceSelected:n,setTranscriptOpen:d}=ne(S=>S),p=Ar(S=>S.setTeachMeAnswer),{data:g,setData:f,fetchData:y,graphStyle:j,setSelectedNode:b,setCategoryFilter:m}=re(S=>S),C=cr(),w=pe({mode:"onChange"}),$=w.handleSubmit(({search:S})=>{d(!1),b(null),n(!1),a(S),p(""),m(null)}),E=x.useCallback(async()=>{await y(t,{...l?{word:l}:{}}),i(!0),l?await gt(t):b(null)},[y,t,l,i,b]);x.useEffect(()=>{E()},[l,E]);const I=()=>{if(g){s(!0);const S=sr(j,g.nodes);f(S),s(!1)}};x.useEffect(()=>{I()},[j]);const k=x.useCallback(()=>{r("INCREMENT")},[r]);return x.useEffect(()=>{C&&(C.on("connect_error",S=>{console.error("Socket connection error:",S)}),C.on("newnode",k))},[C,k]),x.useEffect(()=>()=>{C&&C.disconnect()},[C]),e.jsxs(e.Fragment,{children:[e.jsx(dr,{}),e.jsx(_n,{}),e.jsx(pr,{hidden:!or}),e.jsx(x.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsxs(Gs,{direction:"row",children:[e.jsx($r,{children:e.jsxs(he,{...w,children:[e.jsx(Hs,{}),e.jsx(Zs,{onSubmit:$}),e.jsx(Ys,{}),o&&e.jsx(hn,{fullSize:!1}),e.jsx(dn,{}),e.jsx(Rs,{}),e.jsx(vn,{}),e.jsxs(Us,{children:["v",hr]}),e.jsx(yt,{})]})}),e.jsx(Cn,{}),e.jsx(Vs,{}),e.jsx($n,{})]})})]})},hi=Object.freeze(Object.defineProperty({__proto__:null,App:Ks},Symbol.toStringTag,{value:"Module"}));export{Co as E,dn as O,hn as P,Se as S,v as a,_e as b,is as c,hi as i}; +`,Hs=x.lazy(()=>F(()=>import("./index-b8c5588f.js"),["assets/index-b8c5588f.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/SourcesTableIcon-9e0ca82c.js","assets/SettingsIcon-cd476525.js","assets/index-b9c9b7e2.js"]).then(({MainToolbar:t})=>({default:t}))),Ys=x.lazy(()=>F(()=>import("./index-027fb887.js"),["assets/index-027fb887.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/index-e0d568ee.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/generateCategoricalChart-a6175423.js","assets/Popover-28c1573e.js","assets/useSlotProps-b8a587b0.js","assets/InfoIcon-de2f1e11.js","assets/index-1e89d407.js","assets/index.esm-ac56504e.js","assets/EditIcon-67ff5cde.js","assets/PlusIcon-261fd641.js","assets/index-b9c9b7e2.js","assets/ChevronUpIcon-6e1fca04.js","assets/ChevronDownIcon-cf5b6e54.js","assets/index-341edfe1.js","assets/index-856cc0ad.js","assets/index-e6f0fb8d.js","assets/index-0c223900.js","assets/Popper-704ca55a.js","assets/CheckIcon-b94a1aa2.js","assets/Stack-b0e83988.js"]).then(({Universe:t})=>({default:t}))),Zs=x.lazy(()=>F(()=>import("./index-b1d32821.js"),["assets/index-b1d32821.js","assets/index-b85f35cf.js","assets/index-3f17fe3b.css","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/CheckIcon-b94a1aa2.js","assets/ChevronDownIcon-cf5b6e54.js","assets/ChevronUpIcon-6e1fca04.js","assets/index-341edfe1.js","assets/useSlotProps-b8a587b0.js","assets/Popover-28c1573e.js","assets/ChevronRightIcon-27a1f67e.js","assets/Select-f3cb55de.js","assets/generateCategoricalChart-a6175423.js","assets/InfoIcon-de2f1e11.js","assets/index.esm-ac56504e.js","assets/ChevronRightIcon-6125620a.css","assets/index-f774867a.js","assets/index-1e89d407.js","assets/Skeleton-bd55acf5.js","assets/PlusIcon-261fd641.js","assets/index-b9c9b7e2.js","assets/index-0c223900.js"]).then(({SideBar:t})=>({default:t}))),Ks=()=>{const[t,r]=de(S=>[S.setBudget,S.setNodeCount]),[o,s]=x.useState(!1),{setSidebarOpen:i,currentSearch:l,setCurrentSearch:a,setRelevanceSelected:n,setTranscriptOpen:d}=ne(S=>S),p=Ar(S=>S.setTeachMeAnswer),{data:g,setData:f,fetchData:y,graphStyle:j,setSelectedNode:b,setCategoryFilter:m}=re(S=>S),C=cr(),w=pe({mode:"onChange"}),$=w.handleSubmit(({search:S})=>{d(!1),b(null),n(!1),a(S),p(""),m(null)}),L=x.useCallback(async()=>{await y(t,{...l?{word:l}:{}}),i(!0),l?await gt(t):b(null)},[y,t,l,i,b]);x.useEffect(()=>{L()},[l,L]);const I=()=>{if(g){s(!0);const S=sr(j,g.nodes);f(S),s(!1)}};x.useEffect(()=>{I()},[j]);const k=x.useCallback(()=>{r("INCREMENT")},[r]);return x.useEffect(()=>(C&&(C.connect(),C.on("connect_error",S=>{console.error("Socket connection error:",S)}),C.on("newnode",k)),()=>{C&&C.off()}),[C,k]),e.jsxs(e.Fragment,{children:[e.jsx(dr,{}),e.jsx(_n,{}),e.jsx(pr,{hidden:!or}),e.jsx(x.Suspense,{fallback:e.jsx("div",{children:"Loading..."}),children:e.jsxs(Gs,{direction:"row",children:[e.jsx($r,{children:e.jsxs(he,{...w,children:[e.jsx(Hs,{}),e.jsx(Zs,{onSubmit:$}),e.jsx(Ys,{}),o&&e.jsx(hn,{fullSize:!1}),e.jsx(dn,{}),e.jsx(Rs,{}),e.jsx(vn,{}),e.jsxs(Us,{children:["v",hr]}),e.jsx(yt,{})]})}),e.jsx(Cn,{}),e.jsx(Vs,{}),e.jsx($n,{})]})})]})},hi=Object.freeze(Object.defineProperty({__proto__:null,App:Ks},Symbol.toStringTag,{value:"Module"}));export{Co as E,dn as O,hn as P,Se as S,v as a,_e as b,is as c,hi as i}; diff --git a/build/assets/index-b3c0721c.js b/build/assets/index-6d7b2c18.js similarity index 87% rename from build/assets/index-b3c0721c.js rename to build/assets/index-6d7b2c18.js index 99da55597..95a708d57 100644 --- a/build/assets/index-b3c0721c.js +++ b/build/assets/index-6d7b2c18.js @@ -1,4 +1,4 @@ -import{f as m,h as c,T as B,j as e,F as o,C as w,r,a3 as V,z as $,D as A}from"./index-c522bd40.js";import{B as P}from"./index-4e0797a7.js";import{u as p}from"./index-dae8afeb.js";import{c as q,F as G,B as E,C as H}from"./react-toastify.esm-1e5f1e5f.js";import{T as S}from"./index-2d16147d.js";import{S as O}from"./Skeleton-e77d8e84.js";import"./index.esm-f21f36d4.js";import"./InfoIcon-6417fafc.js";const _=/^https:\/\/.*\.(png|jpg|svg)$/;function C(s){return!!_.test(s)}const W=({isValidImageUrl:s})=>e.jsxs(o,{children:[e.jsx(o,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(o,{align:"center",direction:"row",children:e.jsx(Y,{children:"Edit Node"})})}),e.jsxs(o,{mb:18,children:[e.jsx(T,{style:{marginBottom:8},children:"Node Name"}),e.jsx(S,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...w}})]}),e.jsxs(o,{mb:36,children:[e.jsx(T,{style:{marginBottom:8},children:"image_url"}),e.jsx(S,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"image_url",rules:{...w,...s?{}:{pattern:{message:"Please enter a valid URL",value:_},validate:{source:C}}}})]})]}),Y=m(B)` +import{f as m,h as c,T as B,j as e,F as o,C as w,r,a3 as V,z as $,D as A}from"./index-b85f35cf.js";import{B as P}from"./index-0c223900.js";import{u as p}from"./index-b9c9b7e2.js";import{c as q,F as G,B as E,C as H}from"./react-toastify.esm-ce67a4f9.js";import{T as S}from"./index-e6f0fb8d.js";import{S as O}from"./Skeleton-bd55acf5.js";import"./index.esm-ac56504e.js";import"./InfoIcon-de2f1e11.js";const _=/^https:\/\/.*\.(png|jpg|svg)$/;function C(s){return!!_.test(s)}const W=({isValidImageUrl:s})=>e.jsxs(o,{children:[e.jsx(o,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(o,{align:"center",direction:"row",children:e.jsx(Y,{children:"Edit Node"})})}),e.jsxs(o,{mb:18,children:[e.jsx(T,{style:{marginBottom:8},children:"Node Name"}),e.jsx(S,{id:"cy-topic",maxLength:50,name:"name",placeholder:"Node name",rules:{...w}})]}),e.jsxs(o,{mb:36,children:[e.jsx(T,{style:{marginBottom:8},children:"image_url"}),e.jsx(S,{id:"cy-image_url",maxLength:500,name:"image_url",placeholder:"image_url",rules:{...w,...s?{}:{pattern:{message:"Please enter a valid URL",value:_},validate:{source:C}}}})]})]}),Y=m(B)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-aaab6905.js b/build/assets/index-7e285ddc.js similarity index 62% rename from build/assets/index-aaab6905.js rename to build/assets/index-7e285ddc.js index 894745680..22b58f2eb 100644 --- a/build/assets/index-aaab6905.js +++ b/build/assets/index-7e285ddc.js @@ -1,4 +1,4 @@ -import{f as i,j as t,h as a}from"./index-c522bd40.js";import{M as n}from"./index.esm-f21f36d4.js";import{q as e}from"./react-toastify.esm-1e5f1e5f.js";const r=i.div` +import{f as i,j as t,h as a}from"./index-b85f35cf.js";import{M as n}from"./index.esm-ac56504e.js";import{q as e}from"./react-toastify.esm-ce67a4f9.js";const r=i.div` display: Flex; justify-content: center; align-items: center; diff --git a/build/assets/index-3d04ae19.js b/build/assets/index-7ec3af29.js similarity index 95% rename from build/assets/index-3d04ae19.js rename to build/assets/index-7ec3af29.js index aaff709af..2215e2463 100644 --- a/build/assets/index-3d04ae19.js +++ b/build/assets/index-7ec3af29.js @@ -1,4 +1,4 @@ -import{b7 as R,Y as S,v as b,b8 as P,R as _,b9 as Z,ba as U,f as u,h as l,x as O,r as p,j as e,F as n,bb as J,T as j,bc as K,C as Q,b4 as g,W as X,o as ee,bd as te,be as se,U as ne,bf as oe,O as ie}from"./index-c522bd40.js";import{B as w,C as re,c as ae,F as le}from"./react-toastify.esm-1e5f1e5f.js";import{B as ce}from"./index-4e0797a7.js";import{u as de}from"./index-dae8afeb.js";import{S as ue}from"./index-aaab6905.js";import{h as xe}from"./index.esm-f21f36d4.js";import{C as fe}from"./CheckIcon-1dbe3e4f.js";import{T as C}from"./index-2d16147d.js";import"./InfoIcon-6417fafc.js";const $=/\btwitter\.com\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,he=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,we=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/[^/]+\/status\/(\d+)/,be=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,je=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ye=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Se=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function _e(t){return[he,Se,pe,ge,we,be].some(i=>i.test(t))?R:ye.test(t)?S:$.test(t)?b:me.test(t)?P:je.test(t)?_:ve.test(t)?Z:U}const ze=(t,s="")=>{const r=(s===b?$:/@(\w+)/).exec(t);return r?r[1]:null},A=t=>!!t&&[b,S,_].includes(t),Ee=({onClick:t,loading:s,type:i,error:r})=>{const o=O(d=>d.budget),[f,c]=p.useState(10),a=A(i)?"radar":"add_node";return p.useEffect(()=>{(async()=>{try{const x=await K(a);c(x.data.price)}catch(x){console.error("cannot fetch",x)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Ce,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[f," sats"]})]}),e.jsxs(Be,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[J(o)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!r,onClick:t,size:"large",startIcon:s?e.jsx(re,{size:24}):e.jsx(fe,{}),type:"submit",variant:"contained",children:"Approve"})}),r?e.jsxs($e,{role:"tooltip",children:[e.jsxs(Re,{children:[e.jsx(xe,{fontSize:13}),e.jsx("span",{children:r})]}),e.jsx("div",{className:"tooltip",children:r})]}):null]})},ke=u(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{b7 as R,Y as S,v as b,b8 as P,R as _,b9 as Z,ba as U,f as u,h as l,x as O,r as p,j as e,F as n,bb as J,T as j,bc as K,C as Q,b4 as g,W as X,o as ee,bd as te,be as se,U as ne,bf as oe,O as ie}from"./index-b85f35cf.js";import{B as w,C as re,c as ae,F as le}from"./react-toastify.esm-ce67a4f9.js";import{B as ce}from"./index-0c223900.js";import{u as de}from"./index-b9c9b7e2.js";import{S as ue}from"./index-7e285ddc.js";import{h as xe}from"./index.esm-ac56504e.js";import{C as fe}from"./CheckIcon-b94a1aa2.js";import{T as C}from"./index-e6f0fb8d.js";import"./InfoIcon-de2f1e11.js";const $=/\btwitter\.com\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,pe=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,he=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,we=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,me=/https:\/\/twitter\.com\/[^/]+\/status\/(\d+)/,be=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,je=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ye=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,ve=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Se=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function _e(t){return[he,Se,pe,ge,we,be].some(i=>i.test(t))?R:ye.test(t)?S:$.test(t)?b:me.test(t)?P:je.test(t)?_:ve.test(t)?Z:U}const ze=(t,s="")=>{const r=(s===b?$:/@(\w+)/).exec(t);return r?r[1]:null},A=t=>!!t&&[b,S,_].includes(t),Ee=({onClick:t,loading:s,type:i,error:r})=>{const o=O(d=>d.budget),[f,c]=p.useState(10),a=A(i)?"radar":"add_node";return p.useEffect(()=>{(async()=>{try{const x=await K(a);c(x.data.price)}catch(x){console.error("cannot fetch",x)}})()},[a]),e.jsxs(n,{children:[e.jsx(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(n,{align:"center",direction:"row",children:e.jsx(Ce,{children:"Approve Cost"})})}),e.jsxs(n,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(ke,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[f," sats"]})]}),e.jsxs(Be,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[J(o)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:s||!!r,onClick:t,size:"large",startIcon:s?e.jsx(re,{size:24}):e.jsx(fe,{}),type:"submit",variant:"contained",children:"Approve"})}),r?e.jsxs($e,{role:"tooltip",children:[e.jsxs(Re,{children:[e.jsx(xe,{fontSize:13}),e.jsx("span",{children:r})]}),e.jsx("div",{className:"tooltip",children:r})]}):null]})},ke=u(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-05052fac.js b/build/assets/index-84d1451b.js similarity index 86% rename from build/assets/index-05052fac.js rename to build/assets/index-84d1451b.js index c926bee90..741d6f7ec 100644 --- a/build/assets/index-05052fac.js +++ b/build/assets/index-84d1451b.js @@ -1,4 +1,4 @@ -import{r as c,j as t,A,f as h,h as m,T as B,F as d,V as j,B as L}from"./index-c522bd40.js";import{B as z}from"./index-4e0797a7.js";import{u as S}from"./index-dae8afeb.js";import{c as N,F,C as y,B as O}from"./react-toastify.esm-1e5f1e5f.js";import{a as T}from"./index-d7d885cc.js";import{A as E}from"./index-211330ba.js";import"./index-0a908253.js";import"./Popover-243f389d.js";import"./useSlotProps-96b7890f.js";import"./Select-72591674.js";import"./Stack-f811e4d7.js";import"./Popper-831e364f.js";const P=({selectedType:s,setSelectedType:i})=>{const[a,l]=c.useState([]);c.useEffect(()=>{(async()=>{try{const{data:n}=await A();l(n.edge_types)}catch(n){console.warn(n)}})()},[l]);const o=e=>({label:e,value:e}),p=e=>{i((e==null?void 0:e.value)||"")};return t.jsx(E,{onSelect:p,options:a.map(o),selectedValue:s?o(s):null})},R=({onSelect:s,selectedValue:i})=>{const[a=[]]=T(e=>{var n;return[(n=e==null?void 0:e.data)==null?void 0:n.nodes]}),l=e=>{const n=e?a.find(u=>u.ref_id===e.value):null;s(n||null)},o=e=>({label:e.name,value:e.ref_id,type:e.node_type}),p=e=>e.map(o);return t.jsx(E,{onSelect:l,options:p(a),selectedValue:i?o(i):null})},k=({from:s,onSelect:i,selectedType:a,setSelectedType:l,selectedToNode:o})=>t.jsxs(d,{mb:20,children:[t.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:t.jsx(d,{align:"center",direction:"row",children:t.jsx(V,{children:"Add edge"})})}),t.jsxs(I,{mb:12,children:[t.jsxs(x,{children:[t.jsx("div",{className:"label",children:"From"}),t.jsx("div",{children:s})]}),t.jsxs(x,{children:[t.jsx("div",{className:"label",children:"Type"}),t.jsx(P,{selectedType:a,setSelectedType:l})]}),t.jsxs(x,{children:[t.jsx("div",{className:"label",children:"To"}),t.jsx(R,{onSelect:i,selectedValue:o})]})]})]}),V=h(B)` +import{r as c,j as t,A,f as h,h as m,T as B,F as d,V as j,B as L}from"./index-b85f35cf.js";import{B as z}from"./index-0c223900.js";import{u as S}from"./index-b9c9b7e2.js";import{c as N,F,C as y,B as O}from"./react-toastify.esm-ce67a4f9.js";import{a as T}from"./index-3e35ec51.js";import{A as E}from"./index-39ab8de8.js";import"./index-f774867a.js";import"./Popover-28c1573e.js";import"./useSlotProps-b8a587b0.js";import"./Select-f3cb55de.js";import"./Stack-b0e83988.js";import"./Popper-704ca55a.js";const P=({selectedType:s,setSelectedType:i})=>{const[a,l]=c.useState([]);c.useEffect(()=>{(async()=>{try{const{data:n}=await A();l(n.edge_types)}catch(n){console.warn(n)}})()},[l]);const o=e=>({label:e,value:e}),p=e=>{i((e==null?void 0:e.value)||"")};return t.jsx(E,{onSelect:p,options:a.map(o),selectedValue:s?o(s):null})},R=({onSelect:s,selectedValue:i})=>{const[a=[]]=T(e=>{var n;return[(n=e==null?void 0:e.data)==null?void 0:n.nodes]}),l=e=>{const n=e?a.find(u=>u.ref_id===e.value):null;s(n||null)},o=e=>({label:e.name,value:e.ref_id,type:e.node_type}),p=e=>e.map(o);return t.jsx(E,{onSelect:l,options:p(a),selectedValue:i?o(i):null})},k=({from:s,onSelect:i,selectedType:a,setSelectedType:l,selectedToNode:o})=>t.jsxs(d,{mb:20,children:[t.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:t.jsx(d,{align:"center",direction:"row",children:t.jsx(V,{children:"Add edge"})})}),t.jsxs(I,{mb:12,children:[t.jsxs(x,{children:[t.jsx("div",{className:"label",children:"From"}),t.jsx("div",{children:s})]}),t.jsxs(x,{children:[t.jsx("div",{className:"label",children:"Type"}),t.jsx(P,{selectedType:a,setSelectedType:l})]}),t.jsxs(x,{children:[t.jsx("div",{className:"label",children:"To"}),t.jsx(R,{onSelect:i,selectedValue:o})]})]})]}),V=h(B)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-fd857883.js b/build/assets/index-856cc0ad.js similarity index 93% rename from build/assets/index-fd857883.js rename to build/assets/index-856cc0ad.js index 7ab50b2e4..37e0be25d 100644 --- a/build/assets/index-fd857883.js +++ b/build/assets/index-856cc0ad.js @@ -1 +1 @@ -import{R as d,v as l,Y as u,Z as S,z as E}from"./index-c522bd40.js";const A={[d]:"RSS link",[l]:"Twitter Handle",[u]:"Youtube channel"},h="Sources Table",w="Queued Sources",C="Topics",L="View Content",_="date",N="edge_count",m="alphabetically",y="https://twitter.com",D="IS_ALIAS",R="https://www.twitter.com/anyuser/status/",T={data:null,ids:[],total:0,filters:{muted:!1,sortBy:_,page:0,pageSize:50}},O=S((a,c)=>({...T,setTopics:async()=>{const{data:e,ids:i,filters:t}=c(),p=I(t);t.page===0&&a({data:null,ids:[],total:0});try{const s=await E(p),n=t.page===0?{}:{...e||{}},r=t.page===0?[]:[...i];s.data.forEach(o=>{n[o.ref_id]=o,r.push(o.ref_id)}),a({data:n,ids:r,total:s.totalCount})}catch(s){console.log(s)}},setFilters:e=>a({filters:{...c().filters,page:0,...e}}),terminate:()=>a(T)})),I=a=>({muted:a.muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,search:a.search||"",...a.search?{}:{node_type:"Topic"}});export{m as A,_ as D,N as E,D as I,w as Q,h as S,y as T,L as V,R as a,C as b,A as s,O as u}; +import{R as d,v as l,Y as u,Z as S,z as E}from"./index-b85f35cf.js";const A={[d]:"RSS link",[l]:"Twitter Handle",[u]:"Youtube channel"},h="Sources Table",w="Queued Sources",C="Topics",L="View Content",_="date",N="edge_count",m="alphabetically",y="https://twitter.com",D="IS_ALIAS",R="https://www.twitter.com/anyuser/status/",T={data:null,ids:[],total:0,filters:{muted:!1,sortBy:_,page:0,pageSize:50}},O=S((a,c)=>({...T,setTopics:async()=>{const{data:e,ids:i,filters:t}=c(),p=I(t);t.page===0&&a({data:null,ids:[],total:0});try{const s=await E(p),n=t.page===0?{}:{...e||{}},r=t.page===0?[]:[...i];s.data.forEach(o=>{n[o.ref_id]=o,r.push(o.ref_id)}),a({data:n,ids:r,total:s.totalCount})}catch(s){console.log(s)}},setFilters:e=>a({filters:{...c().filters,page:0,...e}}),terminate:()=>a(T)})),I=a=>({muted:a.muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,search:a.search||"",...a.search?{}:{node_type:"Topic"}});export{m as A,_ as D,N as E,D as I,w as Q,h as S,y as T,L as V,R as a,C as b,A as s,O as u}; diff --git a/build/assets/index-10529c72.js b/build/assets/index-9a5d03e5.js similarity index 90% rename from build/assets/index-10529c72.js rename to build/assets/index-9a5d03e5.js index 5ed48bf71..4a808a04f 100644 --- a/build/assets/index-10529c72.js +++ b/build/assets/index-9a5d03e5.js @@ -1,4 +1,4 @@ -import{f as x,h as f,x as I,r as p,j as e,F as o,bb as G,T as u,bc as U,C as v,b4 as V,bg as q,U as J,bf as Y,O as H,o as K,be as Q}from"./index-c522bd40.js";import{B as y,c as W,F as X}from"./react-toastify.esm-1e5f1e5f.js";import{B as Z}from"./index-4e0797a7.js";import{a as k}from"./index-d7d885cc.js";import{u as ee}from"./index-dae8afeb.js";import{C as te}from"./CheckIcon-1dbe3e4f.js";import{T as N}from"./index-2d16147d.js";import{A as oe}from"./index-211330ba.js";import"./index-0a908253.js";import"./index.esm-f21f36d4.js";import"./InfoIcon-6417fafc.js";import"./Popover-243f389d.js";import"./useSlotProps-96b7890f.js";import"./Select-72591674.js";import"./Stack-f811e4d7.js";import"./Popper-831e364f.js";const ne=({onClick:n,loading:a})=>{const i=I(l=>l.budget),[c,d]=p.useState(10),r="node";return p.useEffect(()=>{(async()=>{try{const t=await U(r);d(t.data.price)}catch(t){console.error("cannot fetch",t)}})()},[r]),e.jsxs(o,{children:[e.jsx(o,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(o,{align:"center",direction:"row",children:e.jsx(ae,{children:"Approve Cost"})})}),e.jsxs(o,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(se,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[c," sats"]})]}),e.jsxs(re,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[G(i)," sats"]})]})]}),e.jsx(o,{children:e.jsx(y,{color:"secondary","data-testid":"check-icon",disabled:a,onClick:n,size:"large",startIcon:e.jsx(te,{}),type:"submit",variant:"contained",children:"Approve"})})]})},se=x(o).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{f as x,h as f,x as I,r as p,j as e,F as o,bb as G,T as u,bc as U,C as v,b4 as V,bg as q,U as J,bf as Y,O as H,o as K,be as Q}from"./index-b85f35cf.js";import{B as y,c as W,F as X}from"./react-toastify.esm-ce67a4f9.js";import{B as Z}from"./index-0c223900.js";import{a as k}from"./index-3e35ec51.js";import{u as ee}from"./index-b9c9b7e2.js";import{C as te}from"./CheckIcon-b94a1aa2.js";import{T as N}from"./index-e6f0fb8d.js";import{A as oe}from"./index-39ab8de8.js";import"./index-f774867a.js";import"./index.esm-ac56504e.js";import"./InfoIcon-de2f1e11.js";import"./Popover-28c1573e.js";import"./useSlotProps-b8a587b0.js";import"./Select-f3cb55de.js";import"./Stack-b0e83988.js";import"./Popper-704ca55a.js";const ne=({onClick:n,loading:a})=>{const i=I(l=>l.budget),[c,d]=p.useState(10),r="node";return p.useEffect(()=>{(async()=>{try{const t=await U(r);d(t.data.price)}catch(t){console.error("cannot fetch",t)}})()},[r]),e.jsxs(o,{children:[e.jsx(o,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(o,{align:"center",direction:"row",children:e.jsx(ae,{children:"Approve Cost"})})}),e.jsxs(o,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(se,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[c," sats"]})]}),e.jsxs(re,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[G(i)," sats"]})]})]}),e.jsx(o,{children:e.jsx(y,{color:"secondary","data-testid":"check-icon",disabled:a,onClick:n,size:"large",startIcon:e.jsx(te,{}),type:"submit",variant:"contained",children:"Approve"})})]})},se=x(o).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${f.GRAY7}; diff --git a/build/assets/index-cbae5b15.js b/build/assets/index-af9ec5c1.js similarity index 88% rename from build/assets/index-cbae5b15.js rename to build/assets/index-af9ec5c1.js index 4cedcca4a..a7cc3661e 100644 --- a/build/assets/index-cbae5b15.js +++ b/build/assets/index-af9ec5c1.js @@ -1,4 +1,4 @@ -import{f as i,F as n,T as g,i as w,j as e,k as b,K as A,C as B,h as c,r as v,x as C}from"./index-c522bd40.js";import{B as F}from"./index-4e0797a7.js";import{u as M}from"./index-dae8afeb.js";import{h as $,c as k,F as D,C as G}from"./react-toastify.esm-1e5f1e5f.js";import{B as f,T as R,a as L}from"./index-04e75ad0.js";import{T as x}from"./index-2d16147d.js";import"./useSlotProps-96b7890f.js";import"./index.esm-f21f36d4.js";import"./InfoIcon-6417fafc.js";const P=({onClose:a})=>{const[s]=w(t=>[t.graphStyle]),r=()=>{localStorage.setItem("graphStyle",s),a()};return e.jsxs(V,{direction:"column",children:[e.jsx(z,{children:"Default graph view:"}),e.jsx($,{}),e.jsx(n,{mt:308,children:e.jsx(f,{kind:"big",onClick:r,children:"Save changes"})})]})},V=i(n)` +import{f as i,F as n,T as g,i as w,j as e,k as b,K as A,C as B,h as c,r as v,x as C}from"./index-b85f35cf.js";import{B as F}from"./index-0c223900.js";import{u as M}from"./index-b9c9b7e2.js";import{h as $,c as k,F as D,C as G}from"./react-toastify.esm-ce67a4f9.js";import{B as f,T as R,a as L}from"./index-341edfe1.js";import{T as x}from"./index-e6f0fb8d.js";import"./useSlotProps-b8a587b0.js";import"./index.esm-ac56504e.js";import"./InfoIcon-de2f1e11.js";const P=({onClose:a})=>{const[s]=w(t=>[t.graphStyle]),r=()=>{localStorage.setItem("graphStyle",s),a()};return e.jsxs(V,{direction:"column",children:[e.jsx(z,{children:"Default graph view:"}),e.jsx($,{}),e.jsx(n,{mt:308,children:e.jsx(f,{kind:"big",onClick:r,children:"Save changes"})})]})},V=i(n)` display: flex; gap: 10px; padding: 36px; diff --git a/build/assets/index-07ec87ed.js b/build/assets/index-b1d32821.js similarity index 99% rename from build/assets/index-07ec87ed.js rename to build/assets/index-b1d32821.js index ee3ff5908..538ba8195 100644 --- a/build/assets/index-07ec87ed.js +++ b/build/assets/index-b1d32821.js @@ -1,4 +1,4 @@ -import{aT as ji,r as P,f as C,h as k,i as pe,j as s,l as Ue,F as g,T as K,N as $t,k as ge,aU as ar,aV as Ci,x as ur,o as Si,aW as vi,O as Ei,a3 as he,aX as dn,a1 as Ti,aY as fn,ac as Ii,aZ as Ai,I as Pi}from"./index-c522bd40.js";import{k as zi,l as mt,A as ye,B as ce,d as _i,I as cr,f as at,g as pr,m as ut,P as Ht,C as Vt,n as Li,i as hr,b as Bi,S as Oi}from"./react-toastify.esm-1e5f1e5f.js";import{C as dr}from"./CheckIcon-1dbe3e4f.js";import{C as fr}from"./ChevronDownIcon-e923c599.js";import{d as Mi}from"./ChevronUpIcon-e45e7605.js";import{F as xr,a as Ri,T as Di}from"./Popover-243f389d.js";import{G as mr,L as Ut,B as Gt,H as Fi,M as Ni,R as $i,a as Hi,S as Vi,b as Ui,N as gr,C as Gi,D as yr,c as wr,d as Yi,f as qi,g as kr,e as Wi,P as Qi,h as br,s as xn,V as Xi,F as Zi,E as Ki,i as Ji,j as eo,k as jr,l as to}from"./ChevronRightIcon-83b85265.js";import{S as no}from"./index-0a908253.js";import{f as rt,o as Cr,P as Sr,n as ro,X as io,Y as oo,T as lo,D as so,S as Yt,q as vr}from"./generateCategoricalChart-876bdce4.js";import{T as We}from"./index-2ab7123b.js";import{S as ao}from"./Skeleton-e77d8e84.js";import{g as uo,d as co}from"./index.esm-f21f36d4.js";import{I as po,S as ho,O as fo}from"./Select-72591674.js";import{I as xo}from"./InfoIcon-6417fafc.js";import{P as mo}from"./PlusIcon-8eca7748.js";import{u as Pt}from"./index-dae8afeb.js";import{B as go}from"./index-4e0797a7.js";import"./index-04e75ad0.js";import"./useSlotProps-96b7890f.js";const yo=(e,t="down")=>{const n=ji(),[r,i]=P.useState(!1),o=n.breakpoints[t](e).split("@media")[1].trim();return P.useEffect(()=>{const l=()=>{const{matches:a}=window.matchMedia(o);i(a)};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[o]),r},wo=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function ko(e){return e.tldr_topic??e.name}var it=globalThis&&globalThis.__assign||function(){return it=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var d;const[e,t]=P.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:i}=pe(f=>f),o=n==="undefined"?"Other":n,l=((d=i.find(f=>f.name===o))==null?void 0:d.count)||0,a=f=>f?f.charAt(0).toUpperCase()+f.slice(1):"",u=f=>{t(f.currentTarget)},c=()=>{t(null)},h=f=>{r(f),c()};return s.jsxs("div",{children:[s.jsxs(vo,{onClick:u,children:[s.jsx("div",{className:"text",children:"Show"}),s.jsx("div",{className:"value","data-testid":"value",children:`${a(o)} (${l})`}),s.jsx("div",{className:"icon",children:e?s.jsx(Mi,{}):s.jsx(fr,{})})]}),s.jsx(To,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:c,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:s.jsx(xr,{children:i.map(({name:f,count:p})=>s.jsxs(Eo,{className:Ue({active:f===n}),onClick:()=>h(f),children:[s.jsx("span",{className:"icon",children:f===n?s.jsx(dr,{}):null}),s.jsx("span",{children:`${a(f)} (${p})`})]},f))})})]})},vo=C(g).attrs({direction:"row",align:"center"})` +import{aT as ji,r as P,f as C,h as k,i as pe,j as s,l as Ue,F as g,T as K,N as $t,k as ge,aU as ar,aV as Ci,x as ur,o as Si,aW as vi,O as Ei,a3 as he,aX as dn,a1 as Ti,aY as fn,ac as Ii,aZ as Ai,I as Pi}from"./index-b85f35cf.js";import{k as zi,l as mt,A as ye,B as ce,d as _i,I as cr,f as at,g as pr,m as ut,P as Ht,C as Vt,n as Li,i as hr,b as Bi,S as Oi}from"./react-toastify.esm-ce67a4f9.js";import{C as dr}from"./CheckIcon-b94a1aa2.js";import{C as fr}from"./ChevronDownIcon-cf5b6e54.js";import{d as Mi}from"./ChevronUpIcon-6e1fca04.js";import{F as xr,a as Ri,T as Di}from"./Popover-28c1573e.js";import{G as mr,L as Ut,B as Gt,H as Fi,M as Ni,R as $i,a as Hi,S as Vi,b as Ui,N as gr,C as Gi,D as yr,c as wr,d as Yi,f as qi,g as kr,e as Wi,P as Qi,h as br,s as xn,V as Xi,F as Zi,E as Ki,i as Ji,j as eo,k as jr,l as to}from"./ChevronRightIcon-27a1f67e.js";import{S as no}from"./index-f774867a.js";import{f as rt,o as Cr,P as Sr,n as ro,X as io,Y as oo,T as lo,D as so,S as Yt,q as vr}from"./generateCategoricalChart-a6175423.js";import{T as We}from"./index-1e89d407.js";import{S as ao}from"./Skeleton-bd55acf5.js";import{g as uo,d as co}from"./index.esm-ac56504e.js";import{I as po,S as ho,O as fo}from"./Select-f3cb55de.js";import{I as xo}from"./InfoIcon-de2f1e11.js";import{P as mo}from"./PlusIcon-261fd641.js";import{u as Pt}from"./index-b9c9b7e2.js";import{B as go}from"./index-0c223900.js";import"./index-341edfe1.js";import"./useSlotProps-b8a587b0.js";const yo=(e,t="down")=>{const n=ji(),[r,i]=P.useState(!1),o=n.breakpoints[t](e).split("@media")[1].trim();return P.useEffect(()=>{const l=()=>{const{matches:a}=window.matchMedia(o);i(a)};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[o]),r},wo=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function ko(e){return e.tldr_topic??e.name}var it=globalThis&&globalThis.__assign||function(){return it=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{var d;const[e,t]=P.useState(null),{sidebarFilter:n,setSidebarFilter:r,sidebarFilterCounts:i}=pe(f=>f),o=n==="undefined"?"Other":n,l=((d=i.find(f=>f.name===o))==null?void 0:d.count)||0,a=f=>f?f.charAt(0).toUpperCase()+f.slice(1):"",u=f=>{t(f.currentTarget)},c=()=>{t(null)},h=f=>{r(f),c()};return s.jsxs("div",{children:[s.jsxs(vo,{onClick:u,children:[s.jsx("div",{className:"text",children:"Show"}),s.jsx("div",{className:"value","data-testid":"value",children:`${a(o)} (${l})`}),s.jsx("div",{className:"icon",children:e?s.jsx(Mi,{}):s.jsx(fr,{})})]}),s.jsx(To,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:c,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:s.jsx(xr,{children:i.map(({name:f,count:p})=>s.jsxs(Eo,{className:Ue({active:f===n}),onClick:()=>h(f),children:[s.jsx("span",{className:"icon",children:f===n?s.jsx(dr,{}):null}),s.jsx("span",{children:`${a(f)} (${p})`})]},f))})})]})},vo=C(g).attrs({direction:"row",align:"center"})` cursor: pointer; flex-grow: 1; color: ${k.GRAY6}; diff --git a/build/assets/index-c49cd75f.js b/build/assets/index-b492ed52.js similarity index 98% rename from build/assets/index-c49cd75f.js rename to build/assets/index-b492ed52.js index 0c089d6d5..2136d4493 100644 --- a/build/assets/index-c49cd75f.js +++ b/build/assets/index-b492ed52.js @@ -1,4 +1,4 @@ -import{f as n,h as i,F as s,i as I,r as f,k as E,x as be,j as e,T as k,o as ke,aW as ve,O as $e,a3 as _,N as L,a1 as Se,l as Te}from"./index-c522bd40.js";import{d as _e,B as R,A as z,I as Q,f as G,g as q,m as U,P as K,C as X,i as ze,b as Be,S as Ce}from"./react-toastify.esm-1e5f1e5f.js";import{S as Ie}from"./index-0a908253.js";import{a as Pe}from"./index-d7d885cc.js";import{M as Ee,R as Ae,a as Me,S as Re,b as Ge,m as De,N as J,G as Z,L as H,B as Fe,H as Ye,C as Le,D as ee,c as te,d as He,f as We,g as se,e as Oe,P as Ve,h as oe,s as O,V as Ne,F as Qe,E as qe,i as Ue,j as Ke,k as Xe,l as Je}from"./ChevronRightIcon-83b85265.js";import{o as ie,P as re,n as Ze,X as et,Y as tt,T as st,D as ot,f as ne,S as W,q as ae}from"./generateCategoricalChart-876bdce4.js";import{g as it,d as rt}from"./index.esm-f21f36d4.js";import{T as nt,F as at}from"./Popover-243f389d.js";import{I as lt,S as ct,O as xt}from"./Select-72591674.js";import{C as dt}from"./ChevronDownIcon-e923c599.js";import{T as M}from"./index-2ab7123b.js";import{C as pt}from"./CheckIcon-1dbe3e4f.js";import{I as ht}from"./InfoIcon-6417fafc.js";import"./useSlotProps-96b7890f.js";const yt=48,ut=8,ft={PaperProps:{style:{maxHeight:yt*4.5+ut,width:250}}},gt=["Beginner","Intermediate","Advanced","Expert"],mt=()=>{const t=I(p=>p.data),[o,r]=f.useState(""),[a,l]=f.useState("Beginner"),d=E(p=>p.currentSearch),c=_e(),[h]=be(p=>[p.setBudget]),[u,x,g,b,y]=ie(p=>[p.askedQuestions,p.askedQuestionsAnswers,p.setAskedQuestion,p.setAskedQuestionAnswer,p.hasQuestionInProgress]),w=f.useCallback(p=>{b(p.answer)},[b]);f.useEffect(()=>{c&&w&&c.on("askquestionhook",w)},[w,c]);const S=async()=>{o&&(g(o),r(""));try{const p=t==null?void 0:t.nodes.filter(C=>C.text),T=p==null?void 0:p.slice(0,5),F=(T!=null&&T.length?T.map(C=>C.text).join(" "):"").substring(0,2500).replace(/[?&=+/#]/g,C=>`\\${C}`);d&&(await ke.enable(),await ve({expertise_level:a,question_text:o,search_term:d,transcripts:F},h),await $e(h))}catch(p){console.error(p)}},m=a&&o.trim()&&!y,v=p=>{l(p.target.value)},B=async p=>{if(y){p.preventDefault();return}p.keyCode===13&&p.shiftKey===!1&&m&&(p.preventDefault(),S())};return e.jsxs(jt,{children:[e.jsx(s,{children:e.jsx(s,{children:e.jsxs(at,{component:"div",children:[e.jsx(bt,{id:"select-label",size:"small",children:"Expertise level"}),e.jsx(kt,{id:"demo-multiple-name",input:e.jsx(xt,{label:"Expertise level"}),labelId:"select-label",MenuProps:ft,onChange:v,size:"small",value:a,children:gt.map(p=>e.jsx(Ee,{component:"li",value:p,children:p},p))})]})})}),e.jsx(St,{children:u==null?void 0:u.map((p,T)=>e.jsxs(s,{className:"response",py:12,children:[e.jsx(k,{kind:"medium",children:p}),e.jsx(s,{py:12,children:(x==null?void 0:x[T])!==void 0?e.jsx(k,{color:"unreadMsgText",children:x[T]}):e.jsxs(s,{align:"center",py:12,children:[e.jsx(s,{align:"center",py:12,children:e.jsx(re,{color:i.white})}),e.jsx(s,{align:"center",py:12,children:e.jsx(k,{children:"Generating response"})})]})})]},p))}),e.jsxs(vt,{onKeyDown:B,py:12,tabIndex:-1,children:[e.jsx(wt,{disabled:y,onChange:p=>r(p.target.value),placeholder:"Enter your question",value:o}),e.jsx($t,{children:e.jsx(it,{color:m?i.white:i.gray300,size:"18"})})]})]})},jt=n.div` +import{f as n,h as i,F as s,i as I,r as f,k as E,x as be,j as e,T as k,o as ke,aW as ve,O as $e,a3 as _,N as L,a1 as Se,l as Te}from"./index-b85f35cf.js";import{d as _e,B as R,A as z,I as Q,f as G,g as q,m as U,P as K,C as X,i as ze,b as Be,S as Ce}from"./react-toastify.esm-ce67a4f9.js";import{S as Ie}from"./index-f774867a.js";import{a as Pe}from"./index-3e35ec51.js";import{M as Ee,R as Ae,a as Me,S as Re,b as Ge,m as De,N as J,G as Z,L as H,B as Fe,H as Ye,C as Le,D as ee,c as te,d as He,f as We,g as se,e as Oe,P as Ve,h as oe,s as O,V as Ne,F as Qe,E as qe,i as Ue,j as Ke,k as Xe,l as Je}from"./ChevronRightIcon-27a1f67e.js";import{o as ie,P as re,n as Ze,X as et,Y as tt,T as st,D as ot,f as ne,S as W,q as ae}from"./generateCategoricalChart-a6175423.js";import{g as it,d as rt}from"./index.esm-ac56504e.js";import{T as nt,F as at}from"./Popover-28c1573e.js";import{I as lt,S as ct,O as xt}from"./Select-f3cb55de.js";import{C as dt}from"./ChevronDownIcon-cf5b6e54.js";import{T as M}from"./index-1e89d407.js";import{C as pt}from"./CheckIcon-b94a1aa2.js";import{I as ht}from"./InfoIcon-de2f1e11.js";import"./useSlotProps-b8a587b0.js";const yt=48,ut=8,ft={PaperProps:{style:{maxHeight:yt*4.5+ut,width:250}}},gt=["Beginner","Intermediate","Advanced","Expert"],mt=()=>{const t=I(p=>p.data),[o,r]=f.useState(""),[a,l]=f.useState("Beginner"),d=E(p=>p.currentSearch),c=_e(),[h]=be(p=>[p.setBudget]),[u,x,g,b,y]=ie(p=>[p.askedQuestions,p.askedQuestionsAnswers,p.setAskedQuestion,p.setAskedQuestionAnswer,p.hasQuestionInProgress]),w=f.useCallback(p=>{b(p.answer)},[b]);f.useEffect(()=>{c&&w&&c.on("askquestionhook",w)},[w,c]);const S=async()=>{o&&(g(o),r(""));try{const p=t==null?void 0:t.nodes.filter(C=>C.text),T=p==null?void 0:p.slice(0,5),F=(T!=null&&T.length?T.map(C=>C.text).join(" "):"").substring(0,2500).replace(/[?&=+/#]/g,C=>`\\${C}`);d&&(await ke.enable(),await ve({expertise_level:a,question_text:o,search_term:d,transcripts:F},h),await $e(h))}catch(p){console.error(p)}},m=a&&o.trim()&&!y,v=p=>{l(p.target.value)},B=async p=>{if(y){p.preventDefault();return}p.keyCode===13&&p.shiftKey===!1&&m&&(p.preventDefault(),S())};return e.jsxs(jt,{children:[e.jsx(s,{children:e.jsx(s,{children:e.jsxs(at,{component:"div",children:[e.jsx(bt,{id:"select-label",size:"small",children:"Expertise level"}),e.jsx(kt,{id:"demo-multiple-name",input:e.jsx(xt,{label:"Expertise level"}),labelId:"select-label",MenuProps:ft,onChange:v,size:"small",value:a,children:gt.map(p=>e.jsx(Ee,{component:"li",value:p,children:p},p))})]})})}),e.jsx(St,{children:u==null?void 0:u.map((p,T)=>e.jsxs(s,{className:"response",py:12,children:[e.jsx(k,{kind:"medium",children:p}),e.jsx(s,{py:12,children:(x==null?void 0:x[T])!==void 0?e.jsx(k,{color:"unreadMsgText",children:x[T]}):e.jsxs(s,{align:"center",py:12,children:[e.jsx(s,{align:"center",py:12,children:e.jsx(re,{color:i.white})}),e.jsx(s,{align:"center",py:12,children:e.jsx(k,{children:"Generating response"})})]})})]},p))}),e.jsxs(vt,{onKeyDown:B,py:12,tabIndex:-1,children:[e.jsx(wt,{disabled:y,onChange:p=>r(p.target.value),placeholder:"Enter your question",value:o}),e.jsx($t,{children:e.jsx(it,{color:m?i.white:i.gray300,size:"18"})})]})]})},jt=n.div` margin-top: 20px; `,wt=n(nt)` background: ${i.inputBg1}; diff --git a/build/assets/index-c522bd40.js b/build/assets/index-b85f35cf.js similarity index 99% rename from build/assets/index-c522bd40.js rename to build/assets/index-b85f35cf.js index d81ca23ea..a960d0c2d 100644 --- a/build/assets/index-c522bd40.js +++ b/build/assets/index-b85f35cf.js @@ -58,7 +58,7 @@ Error generating stack: `+nt.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var h$4=reactExports,n$2=shimExports;function p$2(et,o){return et===o&&(et!==0||1/et===1/o)||et!==et&&o!==o}var q$3=typeof Object.is=="function"?Object.is:p$2,r$4=n$2.useSyncExternalStore,t$2=h$4.useRef,u$1=h$4.useEffect,v$4=h$4.useMemo,w$3=h$4.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(et,o,tt,it,at){var nt=t$2(null);if(nt.current===null){var ot={hasValue:!1,value:null};nt.current=ot}else ot=nt.current;nt=v$4(function(){function st(mt){if(!lt){if(lt=!0,ht=mt,mt=it(mt),at!==void 0&&ot.hasValue){var ct=ot.value;if(at(ct,mt))return ut=ct}return ut=mt}if(ct=ut,q$3(ht,mt))return ct;var pt=it(mt);return at!==void 0&&at(ct,pt)?ct:(ht=mt,ut=pt)}var lt=!1,ht,ut,dt=tt===void 0?null:tt;return[function(){return st(o())},dt===null?void 0:function(){return st(dt())}]},[o,tt,it,at]);var rt=r$4(et,nt[0],nt[1]);return u$1(function(){ot.hasValue=!0,ot.value=rt},[rt]),w$3(rt),rt};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports),{useDebugValue}=React,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;function useStore(et,o=et.getState,tt){const it=useSyncExternalStoreWithSelector(et.subscribe,et.getState,et.getServerState||et.getState,o,tt);return useDebugValue(it),it}const createImpl=et=>{const o=typeof et=="function"?createStore(et):et,tt=(it,at)=>useStore(o,it,at);return Object.assign(tt,o),tt},create$3=et=>et?createImpl(et):createImpl;var react=et=>create$3(et);const defaultData$4={trendingTopicsFlag:!0,queuedSourcesFlag:!1,v2Flag:!1,customSchemaFlag:!1,graphBluePrint:!1},useFeatureFlagStore=create$3(et=>({...defaultData$4,setTrendingTopicsFlag:o=>et({trendingTopicsFlag:o}),setV2Flag:o=>et({v2Flag:o}),setQueuedSourcesFlag:o=>et({queuedSourcesFlag:o}),setCustomSchemaFlag:o=>et({customSchemaFlag:o}),setGraphBluePrint:o=>et({graphBluePrint:o})})),assertNever=et=>{throw new Error(`Unexpected object: ${et}`)};var dist$4={exports:{}},lib$2={},postMessage$1={};Object.defineProperty(postMessage$1,"__esModule",{value:!0});postMessage$1.removeEventer=postMessage$1.addEventer=postMessage$1.postMessage=void 0;function postMessage(et){var o=window;if(o.sendToElectron)return o.sendToElectron("sphinx-bridge",et);o.ReactNativeWebView&&o.ReactNativeWebView.postMessage?o.ReactNativeWebView.postMessage(JSON.stringify(et)):o.webkit&&o.webkit.messageHandlers&&o.webkit.messageHandlers.sphinx&&o.webkit.messageHandlers.sphinx?o.webkit.messageHandlers.sphinx.postMessage(et):o.Android?o.Android.receiveMessage(JSON.stringify(et)):o.parent.postMessage(et,"*")}postMessage$1.postMessage=postMessage;function addEventer(et){var o=window;if(o.sendToElectron){o.EE&&o.EE.once("sphinx-bridge",et);return}else o.ReactNativeWebView&&o.ReactNativeWebView.postMessage?document.addEventListener("message",function(tt){var it={};try{it=JSON.parse(tt.data)}catch{}et({data:it})}):o.webkit&&o.webkit.messageHandlers&&o.webkit.messageHandlers.sphinx&&o.webkit.messageHandlers.sphinx?o.sphinxMessage=function(tt){var it={};try{it=JSON.parse(tt)}catch{}et({data:it})}:o.Android?o.sphinxMessage=function(tt){var it={};try{it=JSON.parse(tt)}catch{}et({data:it})}:o.addEventListener("message",et)}postMessage$1.addEventer=addEventer;function removeEventer(et){var o=window;o.sendToElectron||(o.ReactNativeWebView&&o.ReactNativeWebView.postMessage?document.removeEventListener("message",et):o.webkit&&o.webkit.messageHandlers&&o.webkit.messageHandlers.sphinx&&o.webkit.messageHandlers.sphinx||o.Android?o.sphinxMessage=null:o.removeEventListener("message",et))}postMessage$1.removeEventer=removeEventer;(function(et){var o=commonjsGlobal&&commonjsGlobal.__assign||function(){return o=Object.assign||function(st){for(var lt,ht=1,ut=arguments.length;ht0&&mt[mt.length-1])&&(gt[0]===6||gt[0]===2)){ht=0;continue}if(gt[0]===3&&(!mt||gt[1]>mt[0]&>[1] ENABLE!"),this.isEnabled)return[2,{budget:this.budget,pubkey:this.pubkey,application:ot}];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.AUTHORIZE)];case 2:return ht=dt.sent(),ht.pubkey?(this.isEnabled=!0,this.pubkey=ht.pubkey,[2,ht]):[3,4];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[3,4];case 4:return[2,null]}})})},st.prototype.authorize=function(lt,ht,ut){return tt(this,void 0,void 0,function(){var dt,mt,ct,pt;return it(this,function(wt){switch(wt.label){case 0:ut&&(this.logging=!0),this.logging&&console.log("=> AUTHORIZE!"),wt.label=1;case 1:return wt.trys.push([1,3,,4]),dt=ht||!1,[4,this.postMsg(nt.AUTHORIZE,{challenge:lt,noBudget:dt})];case 2:return mt=wt.sent(),ct=mt.budget||mt.budget===0,(dt||ct)&&mt.pubkey?(this.isEnabled=!0,this.budget=mt.budget||0,this.pubkey=mt.pubkey,[2,mt]):[3,4];case 3:return pt=wt.sent(),this.logging&&console.log(pt),[3,4];case 4:return[2,null]}})})},st.prototype.topup=function(){return tt(this,void 0,void 0,function(){var lt,ht,ut;return it(this,function(dt){switch(dt.label){case 0:this.logging&&console.log("=> TOP UP"),dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.SETBUDGET)];case 2:return lt=dt.sent(),ht=lt.budget||lt.budget===0,ht?(this.budget=lt.budget,[2,lt]):[3,4];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[3,4];case 4:return[2,null]}})})},st.prototype.keysend=function(lt,ht){return tt(this,void 0,void 0,function(){var ut,dt,mt;return it(this,function(ct){switch(ct.label){case 0:if(this.logging&&console.log("=> KEYSEND"),!this.isEnabled)return[2,null];if(!lt||!ht)return[2,null];if(lt.length!==66)return[2,null];if(ht<1)return[2,null];if(ht>this.budget)return[2,null];ct.label=1;case 1:return ct.trys.push([1,3,,4]),ut={dest:lt,amt:ht},[4,this.postMsg(nt.KEYSEND,ut)];case 2:return dt=ct.sent(),dt&&dt.success&&(this.budget=this.budget-ht,dt.budget=this.budget),[2,dt];case 3:return mt=ct.sent(),this.logging&&console.log(mt),[2,null];case 4:return[2]}})})},st.prototype.updated=function(){return tt(this,void 0,void 0,function(){var lt,ht;return it(this,function(ut){switch(ut.label){case 0:if(this.logging&&console.log("=> UDPATED"),!this.isEnabled)return[2,null];ut.label=1;case 1:return ut.trys.push([1,3,,4]),[4,this.postMsg(nt.UPDATED)];case 2:return lt=ut.sent(),[2,lt];case 3:return ht=ut.sent(),this.logging&&console.log(ht),[2,null];case 4:return[2]}})})},st.prototype.sendPayment=function(lt){return tt(this,void 0,void 0,function(){var ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> SEND PAYMENT"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.PAYMENT,{paymentRequest:lt})];case 2:return ht=dt.sent(),[2,ht];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.saveLsat=function(lt,ht,ut){return tt(this,void 0,void 0,function(){var dt,mt;return it(this,function(ct){switch(ct.label){case 0:this.logging&&console.log("=> SAVE LSAT"),ct.label=1;case 1:return ct.trys.push([1,3,,4]),[4,this.postMsg(nt.LSAT,{paymentRequest:lt,macaroon:ht,issuer:ut})];case 2:return dt=ct.sent(),[2,dt];case 3:return mt=ct.sent(),this.logging&&console.log(mt),[2,mt];case 4:return[2]}})})},st.prototype.getLsat=function(lt){return tt(this,void 0,void 0,function(){var ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> GET LSAT"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.GETLSAT,{issuer:lt})];case 2:return ht=dt.sent(),[2,ht];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,ut];case 4:return[2]}})})},st.prototype.updateLsat=function(lt,ht){return tt(this,void 0,void 0,function(){var ut,dt;return it(this,function(mt){switch(mt.label){case 0:if(this.logging&&console.log("=> UPDATE LSAT"),!this.isEnabled)return[2,null];mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,this.postMsg(nt.UPDATELSAT,{identifier:lt,status:ht})];case 2:return ut=mt.sent(),[2,ut];case 3:return dt=mt.sent(),this.logging&&console.log(dt),[2,dt];case 4:return[2]}})})},st.prototype.makeInvoice=function(lt,ht){return tt(this,void 0,void 0,function(){var ut,dt;return it(this,function(mt){switch(mt.label){case 0:if(this.logging&&console.log("=> MAKE INVOICE"),!this.isEnabled)return[2,null];mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,this.postMsg(nt.INVOICE,{amt:lt,memo:ht})];case 2:return ut=mt.sent(),[2,ut];case 3:return dt=mt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},st.prototype.signMessage=function(lt){return tt(this,void 0,void 0,function(){var ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> SIGN MESSAGE"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.SIGN,{message:lt})];case 2:return ht=dt.sent(),[2,ht];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.verifyMessage=function(lt,ht){return tt(this,void 0,void 0,function(){var ut,dt;return it(this,function(mt){switch(mt.label){case 0:if(this.logging&&console.log("=> VERIFY MESSAGE"),!this.isEnabled)return[2,null];mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,this.postMsg(nt.SIGN,{signature:lt,message:ht})];case 2:return ut=mt.sent(),[2,ut];case 3:return dt=mt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},st.prototype.reload=function(lt){return tt(this,void 0,void 0,function(){var ht,ut,dt;return it(this,function(mt){switch(mt.label){case 0:this.logging&&console.log("=> RELOAD"),mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,this.postMsg(nt.RELOAD,{password:lt})];case 2:return ht=mt.sent(),ut=ht.budget||ht.budget===0,ut&&ht.pubkey?(this.isEnabled=!0,this.budget=ht.budget,this.pubkey=ht.pubkey,[2,ht]):[3,4];case 3:return dt=mt.sent(),this.logging&&console.log(dt),[3,4];case 4:return[2,null]}})})},st.prototype.saveGraphData=function(lt){return tt(this,void 0,void 0,function(){var ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> SAVEDATA"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.SAVEDATA,{data:{type:lt.type,metaData:lt.metaData}})];case 2:return ht=dt.sent(),[2,ht];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.getPersonData=function(){return tt(this,void 0,void 0,function(){var lt,ht;return it(this,function(ut){switch(ut.label){case 0:if(this.logging&&console.log("=> GETPERSONDATA"),!this.isEnabled)return[2,null];ut.label=1;case 1:return ut.trys.push([1,3,,4]),[4,this.postMsg(nt.GETPERSONDATA)];case 2:return lt=ut.sent(),[2,lt];case 3:return ht=ut.sent(),this.logging&&console.log(ht),[2,null];case 4:return[2]}})})},st.prototype.getBudget=function(){return tt(this,void 0,void 0,function(){var lt,ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> GETBUDGET"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.GETBUDGET)];case 2:return lt=dt.sent(),ht=lt.budget||lt.budget===0,ht?(this.budget=lt.budget,[2,lt]):[3,4];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.setBudget=function(){return tt(this,void 0,void 0,function(){var lt,ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> SETBUDGET"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.SETBUDGET)];case 2:return lt=dt.sent(),ht=lt.budget||lt.budget===0,ht?(this.budget=lt.budget,[2,lt]):[3,4];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.postMsg=function(lt,ht){var ut,dt=this;dt.active&&Promise.reject(new Error("User is busy")),dt.active=lt;var mt=window;return!((ut=mt.kmpJsBridge)===null||ut===void 0)&&ut.callNative?new Promise(function(ct,pt){mt.kmpJsBridge.callNative("sphinx-bridge",JSON.stringify(o({application:ot,type:lt},ht||{})),function(wt){var gt={};try{gt=JSON.parse(wt)}catch{}Object.keys(gt).length===0||gt.application!==ot||(dt.active=null,gt.error?pt(gt.error):ct(gt))})}):new Promise(function(ct,pt){at.postMessage(o({application:ot,type:lt},ht||{}));function wt(gt){!gt.data||gt.data.application!==ot||(gt.data.error?(dt.active=null,pt(gt.data.error)):(dt.active=null,ct(gt.data)),at.removeEventer(wt))}at.addEventer(wt)})},st}();et.default=rt})(lib$2);var dist$3=dist$4.exports;Object.defineProperty(dist$3,"__esModule",{value:!0});var lib_1=lib$2,sphinx=new lib_1.default;dist$4.exports=sphinx;var distExports$1=dist$4.exports;const{origin:origin$1,host}=window.location,getUrlFormEnv=()=>({}).VITE_APP_API_URL,API_URL=getUrlFormEnv()||apiUrlFromSwarmHost()||"https://knowledge-graph.sphinx.chat";function apiUrlFromSwarmHost(){const et=window.location.origin;let o=et;if(host.includes("swarm")){if(host.startsWith("nav")){const tt=host.split(".");tt[0]="boltwall",o=`https://${tt.join(".")}`}}else(et==="https://second-brain.sphinx.chat"||origin$1.includes("localhost"))&&(o="https://knowledge-graph.sphinx.chat");return`${o}/api`}const request=async(et,o)=>{const tt=localStorage==null?void 0:localStorage.getItem("admin");let it=et;if(tt){const nt=new URL(et),ot=new URLSearchParams(nt.search);if(!ot.has("sig")&&!ot.has("msg")){const rt=await getSignedMessageFromRelay();ot.append("sig",rt.signature),ot.append("msg",rt.message),nt.search=ot.toString(),it=nt.toString()}}const at=await fetch(it,o);if(!at.ok)throw at;return at.json()},api$1={delete:(et,o)=>request(`${API_URL}${et}`,{headers:{...o,"Content-Type":"application/json"},method:"DELETE"}),get:(et,o)=>request(`${API_URL}${et}`,o?{headers:o}:void 0),post:(et,o,tt)=>request(`${API_URL}${et}`,{body:o,headers:{...tt,"Content-Type":"application/json"},method:"POST"}),put:(et,o,tt)=>request(`${API_URL}${et}`,{body:o,headers:{...tt,"Content-Type":"application/json"},method:"PUT"})},colors={black:"rgb(0, 0, 0)",bluePressState:"rgb(57, 97, 220)",blueTextAccent:"rgb(130, 180, 255)",body:"rgb(21, 30, 39)",boostBg1:"rgb(32, 63, 62)",budgetExplanationModalBg:"rgb(21, 28, 35)",dashboardHeader:"rgba(26, 36, 46, 0.3)",dashboardSearch:"rgb(21, 30, 39)",dashboardWashedoutText:"rgb(107, 122, 141)",divider1:"rgb(21, 30, 39)",divider2:"rgb(16, 19, 23)",divider3:"rgb(71, 81, 94)",gray100:"rgba(51, 51, 51, 0.2)",gray200:"rgba(51, 51, 51, 0.4)",gray300:"rgba(51, 51, 51, 0.6)",gray400:"rgba(51, 51, 51, 0.8)",gray500:"rgb(51, 51, 51)",green100:"rgba(73, 201, 152, 0.2)",green200:"rgba(73, 201, 152, 0.4)",green300:"rgba(73, 201, 152, 0.6)",green400:"rgba(73, 201, 152, 0.8)",greenBorder:"rgb(47, 179, 121)",headerBackground:"rgb(26, 36, 46)",inputBg1:"rgb(32, 39, 47)",inputBg2:"rgb(20, 22, 26)",inputOutline1:"rgb(71, 81, 94)",inputPlaceholder:"rgb(76, 86, 101)",lightBlue100:"rgba(93, 143, 221, 0.2)",lightBlue200:"rgba(93, 143, 221, 0.4)",lightBlue300:"rgba(93, 143, 221, 0.6)",lightBlue400:"rgba(93, 143, 221, 0.8)",lightBlue500:"rgb(93, 143, 221)",lightGray:"rgb(187, 187, 187)",listBg:"rgb(21, 30, 39)",mainBottomIcons:"rgb(144, 155, 170)",modalAuth:"#909baa",modalBg:"rgb(25, 33, 40)",modalShield:"#618aff",modalWhiteOverlayBg:"rgba(255, 255, 255, 0.2)",placeholderText:"rgb(85, 97, 113)",primaryBlueBorder:"rgb(80, 120, 242)",primaryBlue:"rgba(97, 138, 255, 1)",primaryButton:"rgb(130, 180, 255)",primaryGreen:"rgb(73, 201, 152)",primaryRed:"rgb(237, 116, 116)",primaryText1:"rgb(255, 255, 255)",receivedIcon:"rgb(130, 180, 255)",receivedMsgBg:"rgb(34, 46, 58)",secondaryRed:"rgb(255, 143, 128)",secondaryText4:"rgb(107, 122, 141)",sentMsgBg:"rgb(62, 97, 137)",sentMsgBgPress:"rgb(44, 66, 91)",text2:"rgb(255, 255, 255)",textMessages:"rgb(255, 255, 255)",transactionBg:"rgb(30, 41, 52)",transactionBgBorder:"rgb(21, 30, 39)",transactionBlueText:"rgb(130, 180, 255)",unreadMsgText:"rgb(186, 193, 198)",washedOutGreen:"rgb(47, 116, 96)",washedOutReceivedText:"rgb(85, 97, 113)",washedOutSentText:"rgb(130, 156, 185)",white:"rgb(255, 255, 255)",transparentWhite:"#ffffff88",transparentBlack:"#000000bb",BG1:"rgba(35, 37, 47, 1)",BG1_NORMAL:"rgba(28, 30, 38, 1)",BG1_HOVER:"rgba(21, 22, 28, 1)",BG1_PRESS:"#0E0F13",BG2:"rgba(22, 23, 29, 1)",BG2_ACTIVE_INPUT:"rgba(16, 17, 22, 1)",BG3:"rgba(28, 30, 38, 1)",GRAY3:"rgba(186, 193, 198, 1)",GRAY6:"#909BAA",GRAY7:"rgba(107, 122, 141, 1)",SECONDARY_BLUE:"rgba(130, 180, 255, 1)",PRIMARY_BLUE:"rgba(97, 138, 255, 1)",BUTTON1:"rgba(48, 51, 66, 1)",BUTTON1_HOVER:"rgba(44, 47, 60, 1)",BUTTON1_PRESS:"rgba(41, 44, 56, 1)",PRIMARY_BLUE_BORDER:"rgba(80, 120, 242, 1)",BLUE_PRESS_STATE:"rgba(57, 97, 220, 1)",DROPDOWN_SELECTED:"rgba(97, 138, 255, 0.2)",DROPDOWN_HOVER:"rgba(0, 0, 0, 0.07)",DROPDOWN_BG:"rgba(48, 51, 66, 1)",SCROLL_BAR:"rgba(255, 255, 255, 0.1)"};function formatBudget(et){return et===null?"?":et.toLocaleString("en-US").split(",").join(" ")}//! moment.js + */var h$4=reactExports,n$2=shimExports;function p$2(et,o){return et===o&&(et!==0||1/et===1/o)||et!==et&&o!==o}var q$3=typeof Object.is=="function"?Object.is:p$2,r$4=n$2.useSyncExternalStore,t$2=h$4.useRef,u$1=h$4.useEffect,v$4=h$4.useMemo,w$3=h$4.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(et,o,tt,it,at){var nt=t$2(null);if(nt.current===null){var ot={hasValue:!1,value:null};nt.current=ot}else ot=nt.current;nt=v$4(function(){function st(mt){if(!lt){if(lt=!0,ht=mt,mt=it(mt),at!==void 0&&ot.hasValue){var ct=ot.value;if(at(ct,mt))return ut=ct}return ut=mt}if(ct=ut,q$3(ht,mt))return ct;var pt=it(mt);return at!==void 0&&at(ct,pt)?ct:(ht=mt,ut=pt)}var lt=!1,ht,ut,dt=tt===void 0?null:tt;return[function(){return st(o())},dt===null?void 0:function(){return st(dt())}]},[o,tt,it,at]);var rt=r$4(et,nt[0],nt[1]);return u$1(function(){ot.hasValue=!0,ot.value=rt},[rt]),w$3(rt),rt};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports),{useDebugValue}=React,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;function useStore(et,o=et.getState,tt){const it=useSyncExternalStoreWithSelector(et.subscribe,et.getState,et.getServerState||et.getState,o,tt);return useDebugValue(it),it}const createImpl=et=>{const o=typeof et=="function"?createStore(et):et,tt=(it,at)=>useStore(o,it,at);return Object.assign(tt,o),tt},create$3=et=>et?createImpl(et):createImpl;var react=et=>create$3(et);const defaultData$4={trendingTopicsFlag:!0,queuedSourcesFlag:!1,v2Flag:!1,customSchemaFlag:!1,graphBluePrint:!1},useFeatureFlagStore=create$3(et=>({...defaultData$4,setTrendingTopicsFlag:o=>et({trendingTopicsFlag:o}),setV2Flag:o=>et({v2Flag:o}),setQueuedSourcesFlag:o=>et({queuedSourcesFlag:o}),setCustomSchemaFlag:o=>et({customSchemaFlag:o}),setGraphBluePrint:o=>et({graphBluePrint:o})})),assertNever=et=>{throw new Error(`Unexpected object: ${et}`)};var dist$4={exports:{}},lib$2={},postMessage$1={};Object.defineProperty(postMessage$1,"__esModule",{value:!0});postMessage$1.removeEventer=postMessage$1.addEventer=postMessage$1.postMessage=void 0;function postMessage(et){var o=window;if(o.sendToElectron)return o.sendToElectron("sphinx-bridge",et);o.ReactNativeWebView&&o.ReactNativeWebView.postMessage?o.ReactNativeWebView.postMessage(JSON.stringify(et)):o.webkit&&o.webkit.messageHandlers&&o.webkit.messageHandlers.sphinx&&o.webkit.messageHandlers.sphinx?o.webkit.messageHandlers.sphinx.postMessage(et):o.Android?o.Android.receiveMessage(JSON.stringify(et)):o.parent.postMessage(et,"*")}postMessage$1.postMessage=postMessage;function addEventer(et){var o=window;if(o.sendToElectron){o.EE&&o.EE.once("sphinx-bridge",et);return}else o.ReactNativeWebView&&o.ReactNativeWebView.postMessage?document.addEventListener("message",function(tt){var it={};try{it=JSON.parse(tt.data)}catch{}et({data:it})}):o.webkit&&o.webkit.messageHandlers&&o.webkit.messageHandlers.sphinx&&o.webkit.messageHandlers.sphinx?o.sphinxMessage=function(tt){var it={};try{it=JSON.parse(tt)}catch{}et({data:it})}:o.Android?o.sphinxMessage=function(tt){var it={};try{it=JSON.parse(tt)}catch{}et({data:it})}:o.addEventListener("message",et)}postMessage$1.addEventer=addEventer;function removeEventer(et){var o=window;o.sendToElectron||(o.ReactNativeWebView&&o.ReactNativeWebView.postMessage?document.removeEventListener("message",et):o.webkit&&o.webkit.messageHandlers&&o.webkit.messageHandlers.sphinx&&o.webkit.messageHandlers.sphinx||o.Android?o.sphinxMessage=null:o.removeEventListener("message",et))}postMessage$1.removeEventer=removeEventer;(function(et){var o=commonjsGlobal&&commonjsGlobal.__assign||function(){return o=Object.assign||function(st){for(var lt,ht=1,ut=arguments.length;ht0&&mt[mt.length-1])&&(gt[0]===6||gt[0]===2)){ht=0;continue}if(gt[0]===3&&(!mt||gt[1]>mt[0]&>[1] ENABLE!"),this.isEnabled)return[2,{budget:this.budget,pubkey:this.pubkey,application:ot}];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.AUTHORIZE)];case 2:return ht=dt.sent(),ht.pubkey?(this.isEnabled=!0,this.pubkey=ht.pubkey,[2,ht]):[3,4];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[3,4];case 4:return[2,null]}})})},st.prototype.authorize=function(lt,ht,ut){return tt(this,void 0,void 0,function(){var dt,mt,ct,pt;return it(this,function(wt){switch(wt.label){case 0:ut&&(this.logging=!0),this.logging&&console.log("=> AUTHORIZE!"),wt.label=1;case 1:return wt.trys.push([1,3,,4]),dt=ht||!1,[4,this.postMsg(nt.AUTHORIZE,{challenge:lt,noBudget:dt})];case 2:return mt=wt.sent(),ct=mt.budget||mt.budget===0,(dt||ct)&&mt.pubkey?(this.isEnabled=!0,this.budget=mt.budget||0,this.pubkey=mt.pubkey,[2,mt]):[3,4];case 3:return pt=wt.sent(),this.logging&&console.log(pt),[3,4];case 4:return[2,null]}})})},st.prototype.topup=function(){return tt(this,void 0,void 0,function(){var lt,ht,ut;return it(this,function(dt){switch(dt.label){case 0:this.logging&&console.log("=> TOP UP"),dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.SETBUDGET)];case 2:return lt=dt.sent(),ht=lt.budget||lt.budget===0,ht?(this.budget=lt.budget,[2,lt]):[3,4];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[3,4];case 4:return[2,null]}})})},st.prototype.keysend=function(lt,ht){return tt(this,void 0,void 0,function(){var ut,dt,mt;return it(this,function(ct){switch(ct.label){case 0:if(this.logging&&console.log("=> KEYSEND"),!this.isEnabled)return[2,null];if(!lt||!ht)return[2,null];if(lt.length!==66)return[2,null];if(ht<1)return[2,null];if(ht>this.budget)return[2,null];ct.label=1;case 1:return ct.trys.push([1,3,,4]),ut={dest:lt,amt:ht},[4,this.postMsg(nt.KEYSEND,ut)];case 2:return dt=ct.sent(),dt&&dt.success&&(this.budget=this.budget-ht,dt.budget=this.budget),[2,dt];case 3:return mt=ct.sent(),this.logging&&console.log(mt),[2,null];case 4:return[2]}})})},st.prototype.updated=function(){return tt(this,void 0,void 0,function(){var lt,ht;return it(this,function(ut){switch(ut.label){case 0:if(this.logging&&console.log("=> UDPATED"),!this.isEnabled)return[2,null];ut.label=1;case 1:return ut.trys.push([1,3,,4]),[4,this.postMsg(nt.UPDATED)];case 2:return lt=ut.sent(),[2,lt];case 3:return ht=ut.sent(),this.logging&&console.log(ht),[2,null];case 4:return[2]}})})},st.prototype.sendPayment=function(lt){return tt(this,void 0,void 0,function(){var ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> SEND PAYMENT"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.PAYMENT,{paymentRequest:lt})];case 2:return ht=dt.sent(),[2,ht];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.saveLsat=function(lt,ht,ut){return tt(this,void 0,void 0,function(){var dt,mt;return it(this,function(ct){switch(ct.label){case 0:this.logging&&console.log("=> SAVE LSAT"),ct.label=1;case 1:return ct.trys.push([1,3,,4]),[4,this.postMsg(nt.LSAT,{paymentRequest:lt,macaroon:ht,issuer:ut})];case 2:return dt=ct.sent(),[2,dt];case 3:return mt=ct.sent(),this.logging&&console.log(mt),[2,mt];case 4:return[2]}})})},st.prototype.getLsat=function(lt){return tt(this,void 0,void 0,function(){var ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> GET LSAT"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.GETLSAT,{issuer:lt})];case 2:return ht=dt.sent(),[2,ht];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,ut];case 4:return[2]}})})},st.prototype.updateLsat=function(lt,ht){return tt(this,void 0,void 0,function(){var ut,dt;return it(this,function(mt){switch(mt.label){case 0:if(this.logging&&console.log("=> UPDATE LSAT"),!this.isEnabled)return[2,null];mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,this.postMsg(nt.UPDATELSAT,{identifier:lt,status:ht})];case 2:return ut=mt.sent(),[2,ut];case 3:return dt=mt.sent(),this.logging&&console.log(dt),[2,dt];case 4:return[2]}})})},st.prototype.makeInvoice=function(lt,ht){return tt(this,void 0,void 0,function(){var ut,dt;return it(this,function(mt){switch(mt.label){case 0:if(this.logging&&console.log("=> MAKE INVOICE"),!this.isEnabled)return[2,null];mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,this.postMsg(nt.INVOICE,{amt:lt,memo:ht})];case 2:return ut=mt.sent(),[2,ut];case 3:return dt=mt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},st.prototype.signMessage=function(lt){return tt(this,void 0,void 0,function(){var ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> SIGN MESSAGE"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.SIGN,{message:lt})];case 2:return ht=dt.sent(),[2,ht];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.verifyMessage=function(lt,ht){return tt(this,void 0,void 0,function(){var ut,dt;return it(this,function(mt){switch(mt.label){case 0:if(this.logging&&console.log("=> VERIFY MESSAGE"),!this.isEnabled)return[2,null];mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,this.postMsg(nt.SIGN,{signature:lt,message:ht})];case 2:return ut=mt.sent(),[2,ut];case 3:return dt=mt.sent(),this.logging&&console.log(dt),[2,null];case 4:return[2]}})})},st.prototype.reload=function(lt){return tt(this,void 0,void 0,function(){var ht,ut,dt;return it(this,function(mt){switch(mt.label){case 0:this.logging&&console.log("=> RELOAD"),mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,this.postMsg(nt.RELOAD,{password:lt})];case 2:return ht=mt.sent(),ut=ht.budget||ht.budget===0,ut&&ht.pubkey?(this.isEnabled=!0,this.budget=ht.budget,this.pubkey=ht.pubkey,[2,ht]):[3,4];case 3:return dt=mt.sent(),this.logging&&console.log(dt),[3,4];case 4:return[2,null]}})})},st.prototype.saveGraphData=function(lt){return tt(this,void 0,void 0,function(){var ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> SAVEDATA"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.SAVEDATA,{data:{type:lt.type,metaData:lt.metaData}})];case 2:return ht=dt.sent(),[2,ht];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.getPersonData=function(){return tt(this,void 0,void 0,function(){var lt,ht;return it(this,function(ut){switch(ut.label){case 0:if(this.logging&&console.log("=> GETPERSONDATA"),!this.isEnabled)return[2,null];ut.label=1;case 1:return ut.trys.push([1,3,,4]),[4,this.postMsg(nt.GETPERSONDATA)];case 2:return lt=ut.sent(),[2,lt];case 3:return ht=ut.sent(),this.logging&&console.log(ht),[2,null];case 4:return[2]}})})},st.prototype.getBudget=function(){return tt(this,void 0,void 0,function(){var lt,ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> GETBUDGET"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.GETBUDGET)];case 2:return lt=dt.sent(),ht=lt.budget||lt.budget===0,ht?(this.budget=lt.budget,[2,lt]):[3,4];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.setBudget=function(){return tt(this,void 0,void 0,function(){var lt,ht,ut;return it(this,function(dt){switch(dt.label){case 0:if(this.logging&&console.log("=> SETBUDGET"),!this.isEnabled)return[2,null];dt.label=1;case 1:return dt.trys.push([1,3,,4]),[4,this.postMsg(nt.SETBUDGET)];case 2:return lt=dt.sent(),ht=lt.budget||lt.budget===0,ht?(this.budget=lt.budget,[2,lt]):[3,4];case 3:return ut=dt.sent(),this.logging&&console.log(ut),[2,null];case 4:return[2]}})})},st.prototype.postMsg=function(lt,ht){var ut,dt=this;dt.active&&Promise.reject(new Error("User is busy")),dt.active=lt;var mt=window;return!((ut=mt.kmpJsBridge)===null||ut===void 0)&&ut.callNative?new Promise(function(ct,pt){mt.kmpJsBridge.callNative("sphinx-bridge",JSON.stringify(o({application:ot,type:lt},ht||{})),function(wt){var gt={};try{gt=JSON.parse(wt)}catch{}Object.keys(gt).length===0||gt.application!==ot||(dt.active=null,gt.error?pt(gt.error):ct(gt))})}):new Promise(function(ct,pt){at.postMessage(o({application:ot,type:lt},ht||{}));function wt(gt){!gt.data||gt.data.application!==ot||(gt.data.error?(dt.active=null,pt(gt.data.error)):(dt.active=null,ct(gt.data)),at.removeEventer(wt))}at.addEventer(wt)})},st}();et.default=rt})(lib$2);var dist$3=dist$4.exports;Object.defineProperty(dist$3,"__esModule",{value:!0});var lib_1=lib$2,sphinx=new lib_1.default;dist$4.exports=sphinx;var distExports$1=dist$4.exports;const{origin:origin$1,host}=window.location,getUrlFormEnv=()=>({}).VITE_APP_API_URL,API_URL=getUrlFormEnv()||apiUrlFromSwarmHost()||"https://knowledge-graph.sphinx.chat";function apiUrlFromSwarmHost(){const et=window.location.origin;let o=et;if(host.includes("swarm")){if(host.startsWith("nav")){const tt=host.split(".");tt[0]="boltwall",o=`https://${tt.join(".")}`}}else(et==="https://second-brain.sphinx.chat"||origin$1.includes("localhost"))&&(o="https://knowledge-graph.sphinx.chat");return`${o}/api`}function removeApi(et){const o=/\/api$/;return et.replace(o,"")}const request=async(et,o)=>{const tt=localStorage==null?void 0:localStorage.getItem("admin");let it=et;if(tt){const nt=new URL(et),ot=new URLSearchParams(nt.search);if(!ot.has("sig")&&!ot.has("msg")){const rt=await getSignedMessageFromRelay();ot.append("sig",rt.signature),ot.append("msg",rt.message),nt.search=ot.toString(),it=nt.toString()}}const at=await fetch(it,o);if(!at.ok)throw at;return at.json()},api$1={delete:(et,o)=>request(`${API_URL}${et}`,{headers:{...o,"Content-Type":"application/json"},method:"DELETE"}),get:(et,o)=>request(`${API_URL}${et}`,o?{headers:o}:void 0),post:(et,o,tt)=>request(`${API_URL}${et}`,{body:o,headers:{...tt,"Content-Type":"application/json"},method:"POST"}),put:(et,o,tt)=>request(`${API_URL}${et}`,{body:o,headers:{...tt,"Content-Type":"application/json"},method:"PUT"})},colors={black:"rgb(0, 0, 0)",bluePressState:"rgb(57, 97, 220)",blueTextAccent:"rgb(130, 180, 255)",body:"rgb(21, 30, 39)",boostBg1:"rgb(32, 63, 62)",budgetExplanationModalBg:"rgb(21, 28, 35)",dashboardHeader:"rgba(26, 36, 46, 0.3)",dashboardSearch:"rgb(21, 30, 39)",dashboardWashedoutText:"rgb(107, 122, 141)",divider1:"rgb(21, 30, 39)",divider2:"rgb(16, 19, 23)",divider3:"rgb(71, 81, 94)",gray100:"rgba(51, 51, 51, 0.2)",gray200:"rgba(51, 51, 51, 0.4)",gray300:"rgba(51, 51, 51, 0.6)",gray400:"rgba(51, 51, 51, 0.8)",gray500:"rgb(51, 51, 51)",green100:"rgba(73, 201, 152, 0.2)",green200:"rgba(73, 201, 152, 0.4)",green300:"rgba(73, 201, 152, 0.6)",green400:"rgba(73, 201, 152, 0.8)",greenBorder:"rgb(47, 179, 121)",headerBackground:"rgb(26, 36, 46)",inputBg1:"rgb(32, 39, 47)",inputBg2:"rgb(20, 22, 26)",inputOutline1:"rgb(71, 81, 94)",inputPlaceholder:"rgb(76, 86, 101)",lightBlue100:"rgba(93, 143, 221, 0.2)",lightBlue200:"rgba(93, 143, 221, 0.4)",lightBlue300:"rgba(93, 143, 221, 0.6)",lightBlue400:"rgba(93, 143, 221, 0.8)",lightBlue500:"rgb(93, 143, 221)",lightGray:"rgb(187, 187, 187)",listBg:"rgb(21, 30, 39)",mainBottomIcons:"rgb(144, 155, 170)",modalAuth:"#909baa",modalBg:"rgb(25, 33, 40)",modalShield:"#618aff",modalWhiteOverlayBg:"rgba(255, 255, 255, 0.2)",placeholderText:"rgb(85, 97, 113)",primaryBlueBorder:"rgb(80, 120, 242)",primaryBlue:"rgba(97, 138, 255, 1)",primaryButton:"rgb(130, 180, 255)",primaryGreen:"rgb(73, 201, 152)",primaryRed:"rgb(237, 116, 116)",primaryText1:"rgb(255, 255, 255)",receivedIcon:"rgb(130, 180, 255)",receivedMsgBg:"rgb(34, 46, 58)",secondaryRed:"rgb(255, 143, 128)",secondaryText4:"rgb(107, 122, 141)",sentMsgBg:"rgb(62, 97, 137)",sentMsgBgPress:"rgb(44, 66, 91)",text2:"rgb(255, 255, 255)",textMessages:"rgb(255, 255, 255)",transactionBg:"rgb(30, 41, 52)",transactionBgBorder:"rgb(21, 30, 39)",transactionBlueText:"rgb(130, 180, 255)",unreadMsgText:"rgb(186, 193, 198)",washedOutGreen:"rgb(47, 116, 96)",washedOutReceivedText:"rgb(85, 97, 113)",washedOutSentText:"rgb(130, 156, 185)",white:"rgb(255, 255, 255)",transparentWhite:"#ffffff88",transparentBlack:"#000000bb",BG1:"rgba(35, 37, 47, 1)",BG1_NORMAL:"rgba(28, 30, 38, 1)",BG1_HOVER:"rgba(21, 22, 28, 1)",BG1_PRESS:"#0E0F13",BG2:"rgba(22, 23, 29, 1)",BG2_ACTIVE_INPUT:"rgba(16, 17, 22, 1)",BG3:"rgba(28, 30, 38, 1)",GRAY3:"rgba(186, 193, 198, 1)",GRAY6:"#909BAA",GRAY7:"rgba(107, 122, 141, 1)",SECONDARY_BLUE:"rgba(130, 180, 255, 1)",PRIMARY_BLUE:"rgba(97, 138, 255, 1)",BUTTON1:"rgba(48, 51, 66, 1)",BUTTON1_HOVER:"rgba(44, 47, 60, 1)",BUTTON1_PRESS:"rgba(41, 44, 56, 1)",PRIMARY_BLUE_BORDER:"rgba(80, 120, 242, 1)",BLUE_PRESS_STATE:"rgba(57, 97, 220, 1)",DROPDOWN_SELECTED:"rgba(97, 138, 255, 0.2)",DROPDOWN_HOVER:"rgba(0, 0, 0, 0.07)",DROPDOWN_BG:"rgba(48, 51, 66, 1)",SCROLL_BAR:"rgba(255, 255, 255, 0.1)"};function formatBudget(et){return et===null?"?":et.toLocaleString("en-US").split(",").join(" ")}//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT @@ -298,7 +298,7 @@ PROCEED WITH CAUTION! animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; `),indeterminate2Keyframe)),LinearProgress=reactExports.forwardRef(function(o,tt){const it=useThemeProps({props:o,name:"MuiLinearProgress"}),{className:at,color:nt="primary",value:ot,valueBuffer:rt,variant:st="indeterminate"}=it,lt=_objectWithoutPropertiesLoose(it,_excluded$1),ht=_extends$1({},it,{color:nt,variant:st}),ut=useUtilityClasses(ht),dt=useTheme(),mt={},ct={bar1:{},bar2:{}};if((st==="determinate"||st==="buffer")&&ot!==void 0){mt["aria-valuenow"]=Math.round(ot),mt["aria-valuemin"]=0,mt["aria-valuemax"]=100;let pt=ot-100;dt.direction==="rtl"&&(pt=-pt),ct.bar1.transform=`translateX(${pt}%)`}if(st==="buffer"&&rt!==void 0){let pt=(rt||0)-100;dt.direction==="rtl"&&(pt=-pt),ct.bar2.transform=`translateX(${pt}%)`}return jsxRuntimeExports.jsxs(LinearProgressRoot,_extends$1({className:clsx$1(ut.root,at),ownerState:ht,role:"progressbar"},mt,{ref:tt},lt,{children:[st==="buffer"?jsxRuntimeExports.jsx(LinearProgressDashed,{className:ut.dashed,ownerState:ht}):null,jsxRuntimeExports.jsx(LinearProgressBar1,{className:ut.bar1,ownerState:ht,style:ct.bar1}),st==="determinate"?null:jsxRuntimeExports.jsx(LinearProgressBar2,{className:ut.bar2,ownerState:ht,style:ct.bar2})]}))}),LinearProgress$1=LinearProgress,formatNumberWithCommas=(et,o="en-US")=>{try{return new Intl.NumberFormat(o).format(et)}catch(tt){return console.error("Error formatting number:",tt),et.toString()}};let signingPromise=null;async function getSignedMessageFromRelay(){let et="";const o=localStorage.getItem("signature");if(o){const tt=JSON.parse(o);return{signature:tt.signature,message:tt.message}}try{et=`${window.crypto.randomUUID()}${new Date().getTime()}`}catch{return{message:"",signature:""}}return isSphinx()?(signingPromise||(isE2E?signingPromise=sphinxBridge.signMessage(et).then(tt=>{signingPromise=null;const it={message:et,signature:tt.response.sig};return storeSignatureInLocalStorage({...it}),{...it}}).catch(tt=>(signingPromise=null,console.error(tt),{message:"",signature:""})):signingPromise=distExports$1.signMessage(et).then(tt=>{signingPromise=null;const it={message:et,signature:tt.signature};return storeSignatureInLocalStorage({...it}),{...it}}).catch(tt=>(signingPromise=null,console.error(tt),{message:"",signature:""}))),signingPromise):Promise.resolve({message:"",signature:""})}function storeSignatureInLocalStorage(et){localStorage.setItem("signature",JSON.stringify({...et}))}const _excluded=["localeText"],MuiPickersAdapterContext=reactExports.createContext(null),LocalizationProvider=function(o){var tt;const{localeText:it}=o,at=_objectWithoutPropertiesLoose(o,_excluded),{utils:nt,localeText:ot}=(tt=reactExports.useContext(MuiPickersAdapterContext))!=null?tt:{utils:void 0,localeText:void 0},rt=useThemeProps({props:at,name:"MuiLocalizationProvider"}),{children:st,dateAdapter:lt,dateFormats:ht,dateLibInstance:ut,adapterLocale:dt,localeText:mt}=rt,ct=reactExports.useMemo(()=>_extends$1({},mt,ot,it),[mt,ot,it]),pt=reactExports.useMemo(()=>{if(!lt)return nt||null;const vt=new lt({locale:dt,formats:ht,instance:ut});if(!vt.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` `));return vt},[lt,dt,ht,ut,nt]),wt=reactExports.useMemo(()=>pt?{minDate:pt.date("1900-01-01T00:00:00.000"),maxDate:pt.date("2099-12-31T00:00:00.000")}:null,[pt]),gt=reactExports.useMemo(()=>({utils:pt,defaultDates:wt,localeText:ct}),[wt,pt,ct]);return jsxRuntimeExports.jsx(MuiPickersAdapterContext.Provider,{value:gt,children:st})},formatTokenMap={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},defaultFormats={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},MISSING_TIMEZONE_PLUGIN=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(` -`);class AdapterMoment{constructor({locale:o,formats:tt,instance:it}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=formatTokenMap,this.setLocaleToValue=at=>{const nt=this.getCurrentLocaleCode();return nt===at.locale()?at:at.locale(nt)},this.syncMomentLocale=at=>{var nt;const ot=hooks.locale(),rt=(nt=this.locale)!=null?nt:"en-us";if(ot!==rt){hooks.locale(rt);const st=at();return hooks.locale(ot),st}return at()},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=at=>{const nt=this.moment(at).local();return this.locale===void 0?nt:nt.locale(this.locale)},this.createUTCDate=at=>{const nt=this.moment.utc(at);return this.locale===void 0?nt:nt.locale(this.locale)},this.createTZDate=(at,nt)=>{if(!this.hasTimezonePlugin())throw new Error(MISSING_TIMEZONE_PLUGIN);const ot=nt==="default"?this.moment(at):this.moment.tz(at,nt);return this.locale===void 0?ot:ot.locale(this.locale)},this.date=at=>{if(at===null)return null;const nt=this.moment(at);return nt.locale(this.getCurrentLocaleCode()),nt},this.dateWithTimezone=(at,nt)=>at===null?null:nt==="UTC"?this.createUTCDate(at):nt==="system"||nt==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(at):this.createTZDate(at,nt),this.getTimezone=at=>{var nt,ot,rt;const st=(nt=at._z)==null?void 0:nt.name,lt=at.isUTC()?"UTC":"system";return(ot=st??((rt=this.moment.defaultZone)==null?void 0:rt.name))!=null?ot:lt},this.setTimezone=(at,nt)=>{var ot,rt;if(this.getTimezone(at)===nt)return at;if(nt==="UTC")return at.clone().utc();if(nt==="system")return at.clone().local();if(!this.hasTimezonePlugin()){if(nt!=="default")throw new Error(MISSING_TIMEZONE_PLUGIN);return at}const st=nt==="default"?(ot=(rt=this.moment.defaultZone)==null?void 0:rt.name)!=null?ot:"system":nt;if(st==="system")return at.clone().local();const lt=at.clone();return lt.tz(st),lt},this.toJsDate=at=>at.toDate(),this.parseISO=at=>this.moment(at,!0),this.toISO=at=>at.toISOString(),this.parse=(at,nt)=>at===""?null:this.locale?this.moment(at,nt,this.locale,!0):this.moment(at,nt,!0),this.getCurrentLocaleCode=()=>this.locale||hooks.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(hooks.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=at=>{const nt=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return at.match(nt).map(ot=>{const rt=ot[0];return rt==="L"||rt===";"?hooks.localeData(this.getCurrentLocaleCode()).longDateFormat(ot):ot}).join("")},this.getFormatHelperText=at=>this.expandFormat(at).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=at=>at===null,this.isValid=at=>this.moment(at).isValid(),this.format=(at,nt)=>this.formatByString(at,this.formats[nt]),this.formatByString=(at,nt)=>{const ot=at.clone();return ot.locale(this.getCurrentLocaleCode()),ot.format(nt)},this.formatNumber=at=>at,this.getDiff=(at,nt,ot)=>at.diff(nt,ot),this.isEqual=(at,nt)=>at===null&&nt===null?!0:this.moment(at).isSame(nt),this.isSameYear=(at,nt)=>at.isSame(nt,"year"),this.isSameMonth=(at,nt)=>at.isSame(nt,"month"),this.isSameDay=(at,nt)=>at.isSame(nt,"day"),this.isSameHour=(at,nt)=>at.isSame(nt,"hour"),this.isAfter=(at,nt)=>at.isAfter(nt),this.isAfterYear=(at,nt)=>at.isAfter(nt,"year"),this.isAfterDay=(at,nt)=>at.isAfter(nt,"day"),this.isBefore=(at,nt)=>at.isBefore(nt),this.isBeforeYear=(at,nt)=>at.isBefore(nt,"year"),this.isBeforeDay=(at,nt)=>at.isBefore(nt,"day"),this.isWithinRange=(at,[nt,ot])=>at.isBetween(nt,ot,null,"[]"),this.startOfYear=at=>at.clone().startOf("year"),this.startOfMonth=at=>at.clone().startOf("month"),this.startOfWeek=at=>at.clone().startOf("week"),this.startOfDay=at=>at.clone().startOf("day"),this.endOfYear=at=>at.clone().endOf("year"),this.endOfMonth=at=>at.clone().endOf("month"),this.endOfWeek=at=>at.clone().endOf("week"),this.endOfDay=at=>at.clone().endOf("day"),this.addYears=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"years"):at.clone().add(nt,"years"),this.addMonths=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"months"):at.clone().add(nt,"months"),this.addWeeks=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"weeks"):at.clone().add(nt,"weeks"),this.addDays=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"days"):at.clone().add(nt,"days"),this.addHours=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"hours"):at.clone().add(nt,"hours"),this.addMinutes=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"minutes"):at.clone().add(nt,"minutes"),this.addSeconds=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"seconds"):at.clone().add(nt,"seconds"),this.getYear=at=>at.get("year"),this.getMonth=at=>at.get("month"),this.getDate=at=>at.get("date"),this.getHours=at=>at.get("hours"),this.getMinutes=at=>at.get("minutes"),this.getSeconds=at=>at.get("seconds"),this.getMilliseconds=at=>at.get("milliseconds"),this.setYear=(at,nt)=>at.clone().year(nt),this.setMonth=(at,nt)=>at.clone().month(nt),this.setDate=(at,nt)=>at.clone().date(nt),this.setHours=(at,nt)=>at.clone().hours(nt),this.setMinutes=(at,nt)=>at.clone().minutes(nt),this.setSeconds=(at,nt)=>at.clone().seconds(nt),this.setMilliseconds=(at,nt)=>at.clone().milliseconds(nt),this.getDaysInMonth=at=>at.daysInMonth(),this.getNextMonth=at=>at.clone().add(1,"month"),this.getPreviousMonth=at=>at.clone().subtract(1,"month"),this.getMonthArray=at=>{const ot=[this.startOfYear(at)];for(;ot.length<12;){const rt=ot[ot.length-1];ot.push(this.getNextMonth(rt))}return ot},this.mergeDateAndTime=(at,nt)=>at.clone().hour(nt.hour()).minute(nt.minute()).second(nt.second()),this.getWeekdays=()=>this.syncMomentLocale(()=>hooks.weekdaysShort(!0)),this.getWeekArray=at=>{const nt=this.setLocaleToValue(at),ot=nt.clone().startOf("month").startOf("week"),rt=nt.clone().endOf("month").endOf("week");let st=0,lt=ot;const ht=[];for(;lt.isBefore(rt);){const ut=Math.floor(st/7);ht[ut]=ht[ut]||[],ht[ut].push(lt),lt=lt.clone().add(1,"day"),st+=1}return ht},this.getWeekNumber=at=>at.week(),this.getYearRange=(at,nt)=>{const ot=this.moment(at).startOf("year"),rt=this.moment(nt).endOf("year"),st=[];let lt=ot;for(;lt.isBefore(rt);)st.push(lt),lt=lt.clone().add(1,"year");return st},this.getMeridiemText=at=>this.is12HourCycleInCurrentLocale()?hooks.localeData(this.getCurrentLocaleCode()).meridiem(at==="am"?0:13,0,!1):at==="am"?"AM":"PM",this.moment=it||hooks,this.locale=o,this.formats=_extends$1({},defaultFormats,tt)}}const MuiButton={defaultProps:{disableElevation:!0,disableRipple:!0},styleOverrides:{root:{display:"inline-flex",padding:"12px 20px",justifyContent:"center",alignItems:"center",gap:"10px",borderRadius:"200px",background:colors.BUTTON1,color:"var(--Primary-Text, #fff)",fontFamily:"Barlow",fontSize:"12px",fontStyle:"normal",fontWeight:"400",lineHeight:"8px",cursor:"pointer",columnGap:"6px","&:hover":{background:colors.BUTTON1_HOVER,color:colors.GRAY3,outline:"none",boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"none",background:colors.BUTTON1_PRESS,color:colors.GRAY6},"&:active":{outline:"none",boxShadow:"none",background:colors.BUTTON1_PRESS,color:colors.GRAY6},"&.MuiButton-sizeSmall":{fontSize:"11px",lineHeight:"14px",fontWeight:500,height:"28px"},"&.MuiButton-sizeMedium":{height:"32px",fontSize:"13px",lineHeight:"14px",fontWeight:500},"&.MuiButton-sizeLarge":{fontSize:"1.2rem",height:"40px"},"&.MuiButton-outlined":{}},textPrimary:{"& .MuiButton-endIcon":{color:colors.GRAY6},"& .MuiButton-startIcon":{color:colors.GRAY6}},outlined:{borderColor:colors.BUTTON1,borderWidth:"1px",backgroundColor:"transparent","&:hover":{borderColor:colors.BUTTON1_HOVER,backgroundColor:"transparent",color:colors.GRAY3},"&:active":{backgroundColor:colors.BUTTON1_PRESS,color:colors.GRAY6}},containedSecondary:{backgroundColor:colors.PRIMARY_BLUE,borderRadius:"6px",color:"white","&:hover":{backgroundColor:colors.PRIMARY_BLUE_BORDER,color:colors.white},"&:active":{backgroundColor:colors.BLUE_PRESS_STATE,color:colors.white},"&:focus":{backgroundColor:colors.BLUE_PRESS_STATE,color:colors.white},"&.MuiButton-sizeSmall":{fontSize:"11px",lineHeight:"14px",fontWeight:500},"&.MuiButton-sizeLarge":{fontSize:"14px",maxHeight:"40px",fontWeight:600,lineHeight:"16px"},"&.Mui-disabled":{background:"rgba(48, 51, 66, 0.50)",color:"rgba(82, 86, 110, 1)"}},textSecondary:{color:"purple","&:hover":{color:"darkpurple"}},startIcon:{fontSize:"20px",marginRight:0,"& > *:nth-of-type(1)":{fontSize:"20px"}},endIcon:{fontSize:"20px","& > *:nth-of-type(1)":{fontSize:"20px"}}}},PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(et=>{PACKET_TYPES_REVERSE[PACKET_TYPES[et]]=et});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=et=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(et):et&&et.buffer instanceof ArrayBuffer,encodePacket=({type:et,data:o},tt,it)=>withNativeBlob$1&&o instanceof Blob?tt?it(o):encodeBlobAsBase64(o,it):withNativeArrayBuffer$2&&(o instanceof ArrayBuffer||isView$1(o))?tt?it(o):encodeBlobAsBase64(new Blob([o]),it):it(PACKET_TYPES[et]+(o||"")),encodeBlobAsBase64=(et,o)=>{const tt=new FileReader;return tt.onload=function(){const it=tt.result.split(",")[1];o("b"+(it||""))},tt.readAsDataURL(et)};function toArray(et){return et instanceof Uint8Array?et:et instanceof ArrayBuffer?new Uint8Array(et):new Uint8Array(et.buffer,et.byteOffset,et.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(et,o){if(withNativeBlob$1&&et.data instanceof Blob)return et.data.arrayBuffer().then(toArray).then(o);if(withNativeArrayBuffer$2&&(et.data instanceof ArrayBuffer||isView$1(et.data)))return o(toArray(et.data));encodePacket(et,!1,tt=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),o(TEXT_ENCODER.encode(tt))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let et=0;et{let o=et.length*.75,tt=et.length,it,at=0,nt,ot,rt,st;et[et.length-1]==="="&&(o--,et[et.length-2]==="="&&o--);const lt=new ArrayBuffer(o),ht=new Uint8Array(lt);for(it=0;it>4,ht[at++]=(ot&15)<<4|rt>>2,ht[at++]=(rt&3)<<6|st&63;return lt},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(et,o)=>{if(typeof et!="string")return{type:"message",data:mapBinary(et,o)};const tt=et.charAt(0);return tt==="b"?{type:"message",data:decodeBase64Packet(et.substring(1),o)}:PACKET_TYPES_REVERSE[tt]?et.length>1?{type:PACKET_TYPES_REVERSE[tt],data:et.substring(1)}:{type:PACKET_TYPES_REVERSE[tt]}:ERROR_PACKET},decodeBase64Packet=(et,o)=>{if(withNativeArrayBuffer$1){const tt=decode$1(et);return mapBinary(tt,o)}else return{base64:!0,data:et}},mapBinary=(et,o)=>{switch(o){case"blob":return et instanceof Blob?et:new Blob([et]);case"arraybuffer":default:return et instanceof ArrayBuffer?et:et.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(et,o)=>{const tt=et.length,it=new Array(tt);let at=0;et.forEach((nt,ot)=>{encodePacket(nt,!1,rt=>{it[ot]=rt,++at===tt&&o(it.join(SEPARATOR))})})},decodePayload=(et,o)=>{const tt=et.split(SEPARATOR),it=[];for(let at=0;at{const it=tt.length;let at;if(it<126)at=new Uint8Array(1),new DataView(at.buffer).setUint8(0,it);else if(it<65536){at=new Uint8Array(3);const nt=new DataView(at.buffer);nt.setUint8(0,126),nt.setUint16(1,it)}else{at=new Uint8Array(9);const nt=new DataView(at.buffer);nt.setUint8(0,127),nt.setBigUint64(1,BigInt(it))}et.data&&typeof et.data!="string"&&(at[0]|=128),o.enqueue(at),o.enqueue(tt)})}})}let TEXT_DECODER;function totalLength(et){return et.reduce((o,tt)=>o+tt.length,0)}function concatChunks(et,o){if(et[0].length===o)return et.shift();const tt=new Uint8Array(o);let it=0;for(let at=0;atMath.pow(2,53-32)-1){rt.enqueue(ERROR_PACKET);break}at=ht*Math.pow(2,32)+lt.getUint32(4),it=3}else{if(totalLength(tt)et){rt.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(et){if(et)return mixin(et)}function mixin(et){for(var o in Emitter.prototype)et[o]=Emitter.prototype[o];return et}Emitter.prototype.on=Emitter.prototype.addEventListener=function(et,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+et]=this._callbacks["$"+et]||[]).push(o),this};Emitter.prototype.once=function(et,o){function tt(){this.off(et,tt),o.apply(this,arguments)}return tt.fn=o,this.on(et,tt),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(et,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var tt=this._callbacks["$"+et];if(!tt)return this;if(arguments.length==1)return delete this._callbacks["$"+et],this;for(var it,at=0;attypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(et,...o){return o.reduce((tt,it)=>(et.hasOwnProperty(it)&&(tt[it]=et[it]),tt),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(et,o){o.useNativeTimers?(et.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),et.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(et.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),et.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(et){return typeof et=="string"?utf8Length(et):Math.ceil((et.byteLength||et.size)*BASE64_OVERHEAD)}function utf8Length(et){let o=0,tt=0;for(let it=0,at=et.length;it=57344?tt+=3:(it++,tt+=4);return tt}function encode$1(et){let o="";for(let tt in et)et.hasOwnProperty(tt)&&(o.length&&(o+="&"),o+=encodeURIComponent(tt)+"="+encodeURIComponent(et[tt]));return o}function decode(et){let o={},tt=et.split("&");for(let it=0,at=tt.length;it0);return o}function yeast(){const et=encode(+new Date);return et!==prev?(seed=0,prev=et):et+"."+encode(seed++)}for(;i$1{this.readyState="paused",o()};if(this.polling||!this.writable){let it=0;this.polling&&(it++,this.once("pollComplete",function(){--it||tt()})),this.writable||(it++,this.once("drain",function(){--it||tt()}))}else tt()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(o){const tt=it=>{if(this.readyState==="opening"&&it.type==="open"&&this.onOpen(),it.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(it)};decodePayload(o,this.socket.binaryType).forEach(tt),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const o=()=>{this.write([{type:"close"}])};this.readyState==="open"?o():this.once("open",o)}write(o){this.writable=!1,encodePayload(o,tt=>{this.doWrite(tt,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const o=this.opts.secure?"https":"http",tt=this.query||{};return this.opts.timestampRequests!==!1&&(tt[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!tt.sid&&(tt.b64=1),this.createUri(o,tt)}request(o={}){return Object.assign(o,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request$1(this.uri(),o)}doWrite(o,tt){const it=this.request({method:"POST",data:o});it.on("success",tt),it.on("error",(at,nt)=>{this.onError("xhr post error",at,nt)})}doPoll(){const o=this.request();o.on("data",this.onData.bind(this)),o.on("error",(tt,it)=>{this.onError("xhr poll error",tt,it)}),this.pollXhr=o}}let Request$1=class gu extends Emitter{constructor(o,tt){super(),installTimerFunctions(this,tt),this.opts=tt,this.method=tt.method||"GET",this.uri=o,this.data=tt.data!==void 0?tt.data:null,this.create()}create(){var o;const tt=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");tt.xdomain=!!this.opts.xd;const it=this.xhr=new XHR(tt);try{it.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){it.setDisableHeaderCheck&&it.setDisableHeaderCheck(!0);for(let at in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(at)&&it.setRequestHeader(at,this.opts.extraHeaders[at])}}catch{}if(this.method==="POST")try{it.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{it.setRequestHeader("Accept","*/*")}catch{}(o=this.opts.cookieJar)===null||o===void 0||o.addCookies(it),"withCredentials"in it&&(it.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(it.timeout=this.opts.requestTimeout),it.onreadystatechange=()=>{var at;it.readyState===3&&((at=this.opts.cookieJar)===null||at===void 0||at.parseCookies(it)),it.readyState===4&&(it.status===200||it.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof it.status=="number"?it.status:0)},0))},it.send(this.data)}catch(at){this.setTimeoutFn(()=>{this.onError(at)},0);return}typeof document<"u"&&(this.index=gu.requestsCount++,gu.requests[this.index]=this)}onError(o){this.emitReserved("error",o,this.xhr),this.cleanup(!0)}cleanup(o){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty,o)try{this.xhr.abort()}catch{}typeof document<"u"&&delete gu.requests[this.index],this.xhr=null}}onLoad(){const o=this.xhr.responseText;o!==null&&(this.emitReserved("data",o),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Request$1.requestsCount=0;Request$1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const et="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(et,unloadHandler,!1)}}function unloadHandler(){for(let et in Request$1.requests)Request$1.requests.hasOwnProperty(et)&&Request$1.requests[et].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?o=>Promise.resolve().then(o):(o,tt)=>tt(o,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(o){super(o),this.supportsBinary=!o.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const o=this.uri(),tt=this.opts.protocols,it=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(it.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?tt?new WebSocket(o,tt):new WebSocket(o):new WebSocket(o,tt,it)}catch(at){return this.emitReserved("error",at)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=o=>this.onClose({description:"websocket connection closed",context:o}),this.ws.onmessage=o=>this.onData(o.data),this.ws.onerror=o=>this.onError("websocket error",o)}write(o){this.writable=!1;for(let tt=0;tt{const ot={};try{usingBrowserWebSocket&&this.ws.send(nt)}catch{}at&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const o=this.opts.secure?"wss":"ws",tt=this.query||{};return this.opts.timestampRequests&&(tt[this.opts.timestampParam]=yeast()),this.supportsBinary||(tt.b64=1),this.createUri(o,tt)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(o=>{this.onError("webtransport error",o)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(o=>{const tt=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),it=o.readable.pipeThrough(tt).getReader(),at=createPacketEncoderStream();at.readable.pipeTo(o.writable),this.writer=at.writable.getWriter();const nt=()=>{it.read().then(({done:rt,value:st})=>{rt||(this.onPacket(st),nt())}).catch(rt=>{})};nt();const ot={type:"open"};this.query.sid&&(ot.data=`{"sid":"${this.query.sid}"}`),this.writer.write(ot).then(()=>this.onOpen())})}))}write(o){this.writable=!1;for(let tt=0;tt{at&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var o;(o=this.transport)===null||o===void 0||o.close()}}const transports={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(et){if(et.length>2e3)throw"URI too long";const o=et,tt=et.indexOf("["),it=et.indexOf("]");tt!=-1&&it!=-1&&(et=et.substring(0,tt)+et.substring(tt,it).replace(/:/g,";")+et.substring(it,et.length));let at=re.exec(et||""),nt={},ot=14;for(;ot--;)nt[parts[ot]]=at[ot]||"";return tt!=-1&&it!=-1&&(nt.source=o,nt.host=nt.host.substring(1,nt.host.length-1).replace(/;/g,":"),nt.authority=nt.authority.replace("[","").replace("]","").replace(/;/g,":"),nt.ipv6uri=!0),nt.pathNames=pathNames(nt,nt.path),nt.queryKey=queryKey(nt,nt.query),nt}function pathNames(et,o){const tt=/\/{2,9}/g,it=o.replace(tt,"/").split("/");return(o.slice(0,1)=="/"||o.length===0)&&it.splice(0,1),o.slice(-1)=="/"&&it.splice(it.length-1,1),it}function queryKey(et,o){const tt={};return o.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(it,at,nt){at&&(tt[at]=nt)}),tt}let Socket$1=class Ys extends Emitter{constructor(o,tt={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],o&&typeof o=="object"&&(tt=o,o=null),o?(o=parse(o),tt.hostname=o.host,tt.secure=o.protocol==="https"||o.protocol==="wss",tt.port=o.port,o.query&&(tt.query=o.query)):tt.host&&(tt.hostname=parse(tt.host).host),installTimerFunctions(this,tt),this.secure=tt.secure!=null?tt.secure:typeof location<"u"&&location.protocol==="https:",tt.hostname&&!tt.port&&(tt.port=this.secure?"443":"80"),this.hostname=tt.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=tt.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=tt.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},tt),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(o){const tt=Object.assign({},this.opts.query);tt.EIO=protocol$1,tt.transport=o,this.id&&(tt.sid=this.id);const it=Object.assign({},this.opts,{query:tt,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[o]);return new transports[o](it)}open(){let o;if(this.opts.rememberUpgrade&&Ys.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)o="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else o=this.transports[0];this.readyState="opening";try{o=this.createTransport(o)}catch{this.transports.shift(),this.open();return}o.open(),this.setTransport(o)}setTransport(o){this.transport&&this.transport.removeAllListeners(),this.transport=o,o.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",tt=>this.onClose("transport close",tt))}probe(o){let tt=this.createTransport(o),it=!1;Ys.priorWebsocketSuccess=!1;const at=()=>{it||(tt.send([{type:"ping",data:"probe"}]),tt.once("packet",ut=>{if(!it)if(ut.type==="pong"&&ut.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",tt),!tt)return;Ys.priorWebsocketSuccess=tt.name==="websocket",this.transport.pause(()=>{it||this.readyState!=="closed"&&(ht(),this.setTransport(tt),tt.send([{type:"upgrade"}]),this.emitReserved("upgrade",tt),tt=null,this.upgrading=!1,this.flush())})}else{const dt=new Error("probe error");dt.transport=tt.name,this.emitReserved("upgradeError",dt)}}))};function nt(){it||(it=!0,ht(),tt.close(),tt=null)}const ot=ut=>{const dt=new Error("probe error: "+ut);dt.transport=tt.name,nt(),this.emitReserved("upgradeError",dt)};function rt(){ot("transport closed")}function st(){ot("socket closed")}function lt(ut){tt&&ut.name!==tt.name&&nt()}const ht=()=>{tt.removeListener("open",at),tt.removeListener("error",ot),tt.removeListener("close",rt),this.off("close",st),this.off("upgrading",lt)};tt.once("open",at),tt.once("error",ot),tt.once("close",rt),this.once("close",st),this.once("upgrading",lt),this.upgrades.indexOf("webtransport")!==-1&&o!=="webtransport"?this.setTimeoutFn(()=>{it||tt.open()},200):tt.open()}onOpen(){if(this.readyState="open",Ys.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let o=0;const tt=this.upgrades.length;for(;o{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const o=this.getWritablePackets();this.transport.send(o),this.prevBufferLen=o.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let tt=1;for(let it=0;it0&&tt>this.maxPayload)return this.writeBuffer.slice(0,it);tt+=2}return this.writeBuffer}write(o,tt,it){return this.sendPacket("message",o,tt,it),this}send(o,tt,it){return this.sendPacket("message",o,tt,it),this}sendPacket(o,tt,it,at){if(typeof tt=="function"&&(at=tt,tt=void 0),typeof it=="function"&&(at=it,it=null),this.readyState==="closing"||this.readyState==="closed")return;it=it||{},it.compress=it.compress!==!1;const nt={type:o,data:tt,options:it};this.emitReserved("packetCreate",nt),this.writeBuffer.push(nt),at&&this.once("flush",at),this.flush()}close(){const o=()=>{this.onClose("forced close"),this.transport.close()},tt=()=>{this.off("upgrade",tt),this.off("upgradeError",tt),o()},it=()=>{this.once("upgrade",tt),this.once("upgradeError",tt)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?it():o()}):this.upgrading?it():o()),this}onError(o){Ys.priorWebsocketSuccess=!1,this.emitReserved("error",o),this.onClose("transport error",o)}onClose(o,tt){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",o,tt),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(o){const tt=[];let it=0;const at=o.length;for(;ittypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(et):et.buffer instanceof ArrayBuffer,toString$2=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString$2.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString$2.call(File)==="[object FileConstructor]";function isBinary(et){return withNativeArrayBuffer&&(et instanceof ArrayBuffer||isView(et))||withNativeBlob&&et instanceof Blob||withNativeFile&&et instanceof File}function hasBinary(et,o){if(!et||typeof et!="object")return!1;if(Array.isArray(et)){for(let tt=0,it=et.length;tt=0&&et.num{delete this.acks[o];for(let ot=0;ot{this.io.clearTimeoutFn(nt),tt.apply(this,[null,...ot])}}emitWithAck(o,...tt){const it=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((at,nt)=>{tt.push((ot,rt)=>it?ot?nt(ot):at(rt):at(ot)),this.emit(o,...tt)})}_addToQueue(o){let tt;typeof o[o.length-1]=="function"&&(tt=o.pop());const it={id:this._queueSeq++,tryCount:0,pending:!1,args:o,flags:Object.assign({fromQueue:!0},this.flags)};o.push((at,...nt)=>it!==this._queue[0]?void 0:(at!==null?it.tryCount>this._opts.retries&&(this._queue.shift(),tt&&tt(at)):(this._queue.shift(),tt&&tt(null,...nt)),it.pending=!1,this._drainQueue())),this._queue.push(it),this._drainQueue()}_drainQueue(o=!1){if(!this.connected||this._queue.length===0)return;const tt=this._queue[0];tt.pending&&!o||(tt.pending=!0,tt.tryCount++,this.flags=tt.flags,this.emit.apply(this,tt.args))}packet(o){o.nsp=this.nsp,this.io._packet(o)}onopen(){typeof this.auth=="function"?this.auth(o=>{this._sendConnectPacket(o)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(o){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},o):o})}onerror(o){this.connected||this.emitReserved("connect_error",o)}onclose(o,tt){this.connected=!1,delete this.id,this.emitReserved("disconnect",o,tt)}onpacket(o){if(o.nsp===this.nsp)switch(o.type){case PacketType.CONNECT:o.data&&o.data.sid?this.onconnect(o.data.sid,o.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(o);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(o);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const it=new Error(o.data.message);it.data=o.data.data,this.emitReserved("connect_error",it);break}}onevent(o){const tt=o.data||[];o.id!=null&&tt.push(this.ack(o.id)),this.connected?this.emitEvent(tt):this.receiveBuffer.push(Object.freeze(tt))}emitEvent(o){if(this._anyListeners&&this._anyListeners.length){const tt=this._anyListeners.slice();for(const it of tt)it.apply(this,o)}super.emit.apply(this,o),this._pid&&o.length&&typeof o[o.length-1]=="string"&&(this._lastOffset=o[o.length-1])}ack(o){const tt=this;let it=!1;return function(...at){it||(it=!0,tt.packet({type:PacketType.ACK,id:o,data:at}))}}onack(o){const tt=this.acks[o.id];typeof tt=="function"&&(tt.apply(this,o.data),delete this.acks[o.id])}onconnect(o,tt){this.id=o,this.recovered=tt&&this._pid===tt,this._pid=tt,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(o=>this.emitEvent(o)),this.receiveBuffer=[],this.sendBuffer.forEach(o=>{this.notifyOutgoingListeners(o),this.packet(o)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(o=>o()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(o){return this.flags.compress=o,this}get volatile(){return this.flags.volatile=!0,this}timeout(o){return this.flags.timeout=o,this}onAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(o),this}prependAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(o),this}offAny(o){if(!this._anyListeners)return this;if(o){const tt=this._anyListeners;for(let it=0;it0&&et.jitter<=1?et.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var et=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var o=Math.random(),tt=Math.floor(o*this.jitter*et);et=Math.floor(o*10)&1?et+tt:et-tt}return Math.min(et,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(et){this.ms=et};Backoff.prototype.setMax=function(et){this.max=et};Backoff.prototype.setJitter=function(et){this.jitter=et};class Manager extends Emitter{constructor(o,tt){var it;super(),this.nsps={},this.subs=[],o&&typeof o=="object"&&(tt=o,o=void 0),tt=tt||{},tt.path=tt.path||"/socket.io",this.opts=tt,installTimerFunctions(this,tt),this.reconnection(tt.reconnection!==!1),this.reconnectionAttempts(tt.reconnectionAttempts||1/0),this.reconnectionDelay(tt.reconnectionDelay||1e3),this.reconnectionDelayMax(tt.reconnectionDelayMax||5e3),this.randomizationFactor((it=tt.randomizationFactor)!==null&&it!==void 0?it:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(tt.timeout==null?2e4:tt.timeout),this._readyState="closed",this.uri=o;const at=tt.parser||parser;this.encoder=new at.Encoder,this.decoder=new at.Decoder,this._autoConnect=tt.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(o){return arguments.length?(this._reconnection=!!o,this):this._reconnection}reconnectionAttempts(o){return o===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=o,this)}reconnectionDelay(o){var tt;return o===void 0?this._reconnectionDelay:(this._reconnectionDelay=o,(tt=this.backoff)===null||tt===void 0||tt.setMin(o),this)}randomizationFactor(o){var tt;return o===void 0?this._randomizationFactor:(this._randomizationFactor=o,(tt=this.backoff)===null||tt===void 0||tt.setJitter(o),this)}reconnectionDelayMax(o){var tt;return o===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=o,(tt=this.backoff)===null||tt===void 0||tt.setMax(o),this)}timeout(o){return arguments.length?(this._timeout=o,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(o){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const tt=this.engine,it=this;this._readyState="opening",this.skipReconnect=!1;const at=on(tt,"open",function(){it.onopen(),o&&o()}),nt=rt=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",rt),o?o(rt):this.maybeReconnectOnOpen()},ot=on(tt,"error",nt);if(this._timeout!==!1){const rt=this._timeout,st=this.setTimeoutFn(()=>{at(),nt(new Error("timeout")),tt.close()},rt);this.opts.autoUnref&&st.unref(),this.subs.push(()=>{this.clearTimeoutFn(st)})}return this.subs.push(at),this.subs.push(ot),this}connect(o){return this.open(o)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const o=this.engine;this.subs.push(on(o,"ping",this.onping.bind(this)),on(o,"data",this.ondata.bind(this)),on(o,"error",this.onerror.bind(this)),on(o,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(o){try{this.decoder.add(o)}catch(tt){this.onclose("parse error",tt)}}ondecoded(o){nextTick(()=>{this.emitReserved("packet",o)},this.setTimeoutFn)}onerror(o){this.emitReserved("error",o)}socket(o,tt){let it=this.nsps[o];return it?this._autoConnect&&!it.active&&it.connect():(it=new Socket(this,o,tt),this.nsps[o]=it),it}_destroy(o){const tt=Object.keys(this.nsps);for(const it of tt)if(this.nsps[it].active)return;this._close()}_packet(o){const tt=this.encoder.encode(o);for(let it=0;ito()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(o,tt){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",o,tt),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const o=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const tt=this.backoff.duration();this._reconnecting=!0;const it=this.setTimeoutFn(()=>{o.skipReconnect||(this.emitReserved("reconnect_attempt",o.backoff.attempts),!o.skipReconnect&&o.open(at=>{at?(o._reconnecting=!1,o.reconnect(),this.emitReserved("reconnect_error",at)):o.onreconnect()}))},tt);this.opts.autoUnref&&it.unref(),this.subs.push(()=>{this.clearTimeoutFn(it)})}}onreconnect(){const o=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",o)}}const cache={};function lookup(et,o){typeof et=="object"&&(o=et,et=void 0),o=o||{};const tt=url(et,o.path||"/socket.io"),it=tt.source,at=tt.id,nt=tt.path,ot=cache[at]&&nt in cache[at].nsps,rt=o.forceNew||o["force new connection"]||o.multiplex===!1||ot;let st;return rt?st=new Manager(it,o):(cache[at]||(cache[at]=new Manager(it,o)),st=cache[at]),tt.query&&!o.query&&(o.query=tt.queryKey),st.socket(tt.path,o)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});const SocketContext=reactExports.createContext(void 0),contextValue={socket:lookup(API_URL)},SocketProvider=({children:et})=>jsxRuntimeExports.jsx(SocketContext.Provider,{value:contextValue,children:et}),palette=createPalette({mode:"dark",primary:{main:colors.primaryButton}}),appTheme=createTheme({palette,components:{MuiButton,MuiPopover:{styleOverrides:{root:{zIndex:99999}}}},typography:{button:{textTransform:"none",whiteSpace:"nowrap"}},breakpoints:{values:{xs:breakpoints.small,sm:breakpoints.medium,md:breakpoints.large,lg:1200,xl:1500}}}),AppProviders=({children:et})=>jsxRuntimeExports.jsxs(ThemeProvider,{theme:appTheme,children:[jsxRuntimeExports.jsx(StyledEngineProvider,{injectFirst:!0}),jsxRuntimeExports.jsx(Le,{theme:appTheme,children:jsxRuntimeExports.jsx(LocalizationProvider,{dateAdapter:AdapterMoment,children:jsxRuntimeExports.jsx(SocketProvider,{children:et})})})]}),background=Ae` +`);class AdapterMoment{constructor({locale:o,formats:tt,instance:it}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=formatTokenMap,this.setLocaleToValue=at=>{const nt=this.getCurrentLocaleCode();return nt===at.locale()?at:at.locale(nt)},this.syncMomentLocale=at=>{var nt;const ot=hooks.locale(),rt=(nt=this.locale)!=null?nt:"en-us";if(ot!==rt){hooks.locale(rt);const st=at();return hooks.locale(ot),st}return at()},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=at=>{const nt=this.moment(at).local();return this.locale===void 0?nt:nt.locale(this.locale)},this.createUTCDate=at=>{const nt=this.moment.utc(at);return this.locale===void 0?nt:nt.locale(this.locale)},this.createTZDate=(at,nt)=>{if(!this.hasTimezonePlugin())throw new Error(MISSING_TIMEZONE_PLUGIN);const ot=nt==="default"?this.moment(at):this.moment.tz(at,nt);return this.locale===void 0?ot:ot.locale(this.locale)},this.date=at=>{if(at===null)return null;const nt=this.moment(at);return nt.locale(this.getCurrentLocaleCode()),nt},this.dateWithTimezone=(at,nt)=>at===null?null:nt==="UTC"?this.createUTCDate(at):nt==="system"||nt==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(at):this.createTZDate(at,nt),this.getTimezone=at=>{var nt,ot,rt;const st=(nt=at._z)==null?void 0:nt.name,lt=at.isUTC()?"UTC":"system";return(ot=st??((rt=this.moment.defaultZone)==null?void 0:rt.name))!=null?ot:lt},this.setTimezone=(at,nt)=>{var ot,rt;if(this.getTimezone(at)===nt)return at;if(nt==="UTC")return at.clone().utc();if(nt==="system")return at.clone().local();if(!this.hasTimezonePlugin()){if(nt!=="default")throw new Error(MISSING_TIMEZONE_PLUGIN);return at}const st=nt==="default"?(ot=(rt=this.moment.defaultZone)==null?void 0:rt.name)!=null?ot:"system":nt;if(st==="system")return at.clone().local();const lt=at.clone();return lt.tz(st),lt},this.toJsDate=at=>at.toDate(),this.parseISO=at=>this.moment(at,!0),this.toISO=at=>at.toISOString(),this.parse=(at,nt)=>at===""?null:this.locale?this.moment(at,nt,this.locale,!0):this.moment(at,nt,!0),this.getCurrentLocaleCode=()=>this.locale||hooks.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(hooks.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=at=>{const nt=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return at.match(nt).map(ot=>{const rt=ot[0];return rt==="L"||rt===";"?hooks.localeData(this.getCurrentLocaleCode()).longDateFormat(ot):ot}).join("")},this.getFormatHelperText=at=>this.expandFormat(at).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=at=>at===null,this.isValid=at=>this.moment(at).isValid(),this.format=(at,nt)=>this.formatByString(at,this.formats[nt]),this.formatByString=(at,nt)=>{const ot=at.clone();return ot.locale(this.getCurrentLocaleCode()),ot.format(nt)},this.formatNumber=at=>at,this.getDiff=(at,nt,ot)=>at.diff(nt,ot),this.isEqual=(at,nt)=>at===null&&nt===null?!0:this.moment(at).isSame(nt),this.isSameYear=(at,nt)=>at.isSame(nt,"year"),this.isSameMonth=(at,nt)=>at.isSame(nt,"month"),this.isSameDay=(at,nt)=>at.isSame(nt,"day"),this.isSameHour=(at,nt)=>at.isSame(nt,"hour"),this.isAfter=(at,nt)=>at.isAfter(nt),this.isAfterYear=(at,nt)=>at.isAfter(nt,"year"),this.isAfterDay=(at,nt)=>at.isAfter(nt,"day"),this.isBefore=(at,nt)=>at.isBefore(nt),this.isBeforeYear=(at,nt)=>at.isBefore(nt,"year"),this.isBeforeDay=(at,nt)=>at.isBefore(nt,"day"),this.isWithinRange=(at,[nt,ot])=>at.isBetween(nt,ot,null,"[]"),this.startOfYear=at=>at.clone().startOf("year"),this.startOfMonth=at=>at.clone().startOf("month"),this.startOfWeek=at=>at.clone().startOf("week"),this.startOfDay=at=>at.clone().startOf("day"),this.endOfYear=at=>at.clone().endOf("year"),this.endOfMonth=at=>at.clone().endOf("month"),this.endOfWeek=at=>at.clone().endOf("week"),this.endOfDay=at=>at.clone().endOf("day"),this.addYears=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"years"):at.clone().add(nt,"years"),this.addMonths=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"months"):at.clone().add(nt,"months"),this.addWeeks=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"weeks"):at.clone().add(nt,"weeks"),this.addDays=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"days"):at.clone().add(nt,"days"),this.addHours=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"hours"):at.clone().add(nt,"hours"),this.addMinutes=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"minutes"):at.clone().add(nt,"minutes"),this.addSeconds=(at,nt)=>nt<0?at.clone().subtract(Math.abs(nt),"seconds"):at.clone().add(nt,"seconds"),this.getYear=at=>at.get("year"),this.getMonth=at=>at.get("month"),this.getDate=at=>at.get("date"),this.getHours=at=>at.get("hours"),this.getMinutes=at=>at.get("minutes"),this.getSeconds=at=>at.get("seconds"),this.getMilliseconds=at=>at.get("milliseconds"),this.setYear=(at,nt)=>at.clone().year(nt),this.setMonth=(at,nt)=>at.clone().month(nt),this.setDate=(at,nt)=>at.clone().date(nt),this.setHours=(at,nt)=>at.clone().hours(nt),this.setMinutes=(at,nt)=>at.clone().minutes(nt),this.setSeconds=(at,nt)=>at.clone().seconds(nt),this.setMilliseconds=(at,nt)=>at.clone().milliseconds(nt),this.getDaysInMonth=at=>at.daysInMonth(),this.getNextMonth=at=>at.clone().add(1,"month"),this.getPreviousMonth=at=>at.clone().subtract(1,"month"),this.getMonthArray=at=>{const ot=[this.startOfYear(at)];for(;ot.length<12;){const rt=ot[ot.length-1];ot.push(this.getNextMonth(rt))}return ot},this.mergeDateAndTime=(at,nt)=>at.clone().hour(nt.hour()).minute(nt.minute()).second(nt.second()),this.getWeekdays=()=>this.syncMomentLocale(()=>hooks.weekdaysShort(!0)),this.getWeekArray=at=>{const nt=this.setLocaleToValue(at),ot=nt.clone().startOf("month").startOf("week"),rt=nt.clone().endOf("month").endOf("week");let st=0,lt=ot;const ht=[];for(;lt.isBefore(rt);){const ut=Math.floor(st/7);ht[ut]=ht[ut]||[],ht[ut].push(lt),lt=lt.clone().add(1,"day"),st+=1}return ht},this.getWeekNumber=at=>at.week(),this.getYearRange=(at,nt)=>{const ot=this.moment(at).startOf("year"),rt=this.moment(nt).endOf("year"),st=[];let lt=ot;for(;lt.isBefore(rt);)st.push(lt),lt=lt.clone().add(1,"year");return st},this.getMeridiemText=at=>this.is12HourCycleInCurrentLocale()?hooks.localeData(this.getCurrentLocaleCode()).meridiem(at==="am"?0:13,0,!1):at==="am"?"AM":"PM",this.moment=it||hooks,this.locale=o,this.formats=_extends$1({},defaultFormats,tt)}}const MuiButton={defaultProps:{disableElevation:!0,disableRipple:!0},styleOverrides:{root:{display:"inline-flex",padding:"12px 20px",justifyContent:"center",alignItems:"center",gap:"10px",borderRadius:"200px",background:colors.BUTTON1,color:"var(--Primary-Text, #fff)",fontFamily:"Barlow",fontSize:"12px",fontStyle:"normal",fontWeight:"400",lineHeight:"8px",cursor:"pointer",columnGap:"6px","&:hover":{background:colors.BUTTON1_HOVER,color:colors.GRAY3,outline:"none",boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"none",background:colors.BUTTON1_PRESS,color:colors.GRAY6},"&:active":{outline:"none",boxShadow:"none",background:colors.BUTTON1_PRESS,color:colors.GRAY6},"&.MuiButton-sizeSmall":{fontSize:"11px",lineHeight:"14px",fontWeight:500,height:"28px"},"&.MuiButton-sizeMedium":{height:"32px",fontSize:"13px",lineHeight:"14px",fontWeight:500},"&.MuiButton-sizeLarge":{fontSize:"1.2rem",height:"40px"},"&.MuiButton-outlined":{}},textPrimary:{"& .MuiButton-endIcon":{color:colors.GRAY6},"& .MuiButton-startIcon":{color:colors.GRAY6}},outlined:{borderColor:colors.BUTTON1,borderWidth:"1px",backgroundColor:"transparent","&:hover":{borderColor:colors.BUTTON1_HOVER,backgroundColor:"transparent",color:colors.GRAY3},"&:active":{backgroundColor:colors.BUTTON1_PRESS,color:colors.GRAY6}},containedSecondary:{backgroundColor:colors.PRIMARY_BLUE,borderRadius:"6px",color:"white","&:hover":{backgroundColor:colors.PRIMARY_BLUE_BORDER,color:colors.white},"&:active":{backgroundColor:colors.BLUE_PRESS_STATE,color:colors.white},"&:focus":{backgroundColor:colors.BLUE_PRESS_STATE,color:colors.white},"&.MuiButton-sizeSmall":{fontSize:"11px",lineHeight:"14px",fontWeight:500},"&.MuiButton-sizeLarge":{fontSize:"14px",maxHeight:"40px",fontWeight:600,lineHeight:"16px"},"&.Mui-disabled":{background:"rgba(48, 51, 66, 0.50)",color:"rgba(82, 86, 110, 1)"}},textSecondary:{color:"purple","&:hover":{color:"darkpurple"}},startIcon:{fontSize:"20px",marginRight:0,"& > *:nth-of-type(1)":{fontSize:"20px"}},endIcon:{fontSize:"20px","& > *:nth-of-type(1)":{fontSize:"20px"}}}},PACKET_TYPES=Object.create(null);PACKET_TYPES.open="0";PACKET_TYPES.close="1";PACKET_TYPES.ping="2";PACKET_TYPES.pong="3";PACKET_TYPES.message="4";PACKET_TYPES.upgrade="5";PACKET_TYPES.noop="6";const PACKET_TYPES_REVERSE=Object.create(null);Object.keys(PACKET_TYPES).forEach(et=>{PACKET_TYPES_REVERSE[PACKET_TYPES[et]]=et});const ERROR_PACKET={type:"error",data:"parser error"},withNativeBlob$1=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",withNativeArrayBuffer$2=typeof ArrayBuffer=="function",isView$1=et=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(et):et&&et.buffer instanceof ArrayBuffer,encodePacket=({type:et,data:o},tt,it)=>withNativeBlob$1&&o instanceof Blob?tt?it(o):encodeBlobAsBase64(o,it):withNativeArrayBuffer$2&&(o instanceof ArrayBuffer||isView$1(o))?tt?it(o):encodeBlobAsBase64(new Blob([o]),it):it(PACKET_TYPES[et]+(o||"")),encodeBlobAsBase64=(et,o)=>{const tt=new FileReader;return tt.onload=function(){const it=tt.result.split(",")[1];o("b"+(it||""))},tt.readAsDataURL(et)};function toArray(et){return et instanceof Uint8Array?et:et instanceof ArrayBuffer?new Uint8Array(et):new Uint8Array(et.buffer,et.byteOffset,et.byteLength)}let TEXT_ENCODER;function encodePacketToBinary(et,o){if(withNativeBlob$1&&et.data instanceof Blob)return et.data.arrayBuffer().then(toArray).then(o);if(withNativeArrayBuffer$2&&(et.data instanceof ArrayBuffer||isView$1(et.data)))return o(toArray(et.data));encodePacket(et,!1,tt=>{TEXT_ENCODER||(TEXT_ENCODER=new TextEncoder),o(TEXT_ENCODER.encode(tt))})}const chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let et=0;et{let o=et.length*.75,tt=et.length,it,at=0,nt,ot,rt,st;et[et.length-1]==="="&&(o--,et[et.length-2]==="="&&o--);const lt=new ArrayBuffer(o),ht=new Uint8Array(lt);for(it=0;it>4,ht[at++]=(ot&15)<<4|rt>>2,ht[at++]=(rt&3)<<6|st&63;return lt},withNativeArrayBuffer$1=typeof ArrayBuffer=="function",decodePacket=(et,o)=>{if(typeof et!="string")return{type:"message",data:mapBinary(et,o)};const tt=et.charAt(0);return tt==="b"?{type:"message",data:decodeBase64Packet(et.substring(1),o)}:PACKET_TYPES_REVERSE[tt]?et.length>1?{type:PACKET_TYPES_REVERSE[tt],data:et.substring(1)}:{type:PACKET_TYPES_REVERSE[tt]}:ERROR_PACKET},decodeBase64Packet=(et,o)=>{if(withNativeArrayBuffer$1){const tt=decode$1(et);return mapBinary(tt,o)}else return{base64:!0,data:et}},mapBinary=(et,o)=>{switch(o){case"blob":return et instanceof Blob?et:new Blob([et]);case"arraybuffer":default:return et instanceof ArrayBuffer?et:et.buffer}},SEPARATOR=String.fromCharCode(30),encodePayload=(et,o)=>{const tt=et.length,it=new Array(tt);let at=0;et.forEach((nt,ot)=>{encodePacket(nt,!1,rt=>{it[ot]=rt,++at===tt&&o(it.join(SEPARATOR))})})},decodePayload=(et,o)=>{const tt=et.split(SEPARATOR),it=[];for(let at=0;at{const it=tt.length;let at;if(it<126)at=new Uint8Array(1),new DataView(at.buffer).setUint8(0,it);else if(it<65536){at=new Uint8Array(3);const nt=new DataView(at.buffer);nt.setUint8(0,126),nt.setUint16(1,it)}else{at=new Uint8Array(9);const nt=new DataView(at.buffer);nt.setUint8(0,127),nt.setBigUint64(1,BigInt(it))}et.data&&typeof et.data!="string"&&(at[0]|=128),o.enqueue(at),o.enqueue(tt)})}})}let TEXT_DECODER;function totalLength(et){return et.reduce((o,tt)=>o+tt.length,0)}function concatChunks(et,o){if(et[0].length===o)return et.shift();const tt=new Uint8Array(o);let it=0;for(let at=0;atMath.pow(2,53-32)-1){rt.enqueue(ERROR_PACKET);break}at=ht*Math.pow(2,32)+lt.getUint32(4),it=3}else{if(totalLength(tt)et){rt.enqueue(ERROR_PACKET);break}}}})}const protocol$1=4;function Emitter(et){if(et)return mixin(et)}function mixin(et){for(var o in Emitter.prototype)et[o]=Emitter.prototype[o];return et}Emitter.prototype.on=Emitter.prototype.addEventListener=function(et,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+et]=this._callbacks["$"+et]||[]).push(o),this};Emitter.prototype.once=function(et,o){function tt(){this.off(et,tt),o.apply(this,arguments)}return tt.fn=o,this.on(et,tt),this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(et,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var tt=this._callbacks["$"+et];if(!tt)return this;if(arguments.length==1)return delete this._callbacks["$"+et],this;for(var it,at=0;attypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function pick(et,...o){return o.reduce((tt,it)=>(et.hasOwnProperty(it)&&(tt[it]=et[it]),tt),{})}const NATIVE_SET_TIMEOUT=globalThisShim.setTimeout,NATIVE_CLEAR_TIMEOUT=globalThisShim.clearTimeout;function installTimerFunctions(et,o){o.useNativeTimers?(et.setTimeoutFn=NATIVE_SET_TIMEOUT.bind(globalThisShim),et.clearTimeoutFn=NATIVE_CLEAR_TIMEOUT.bind(globalThisShim)):(et.setTimeoutFn=globalThisShim.setTimeout.bind(globalThisShim),et.clearTimeoutFn=globalThisShim.clearTimeout.bind(globalThisShim))}const BASE64_OVERHEAD=1.33;function byteLength(et){return typeof et=="string"?utf8Length(et):Math.ceil((et.byteLength||et.size)*BASE64_OVERHEAD)}function utf8Length(et){let o=0,tt=0;for(let it=0,at=et.length;it=57344?tt+=3:(it++,tt+=4);return tt}function encode$1(et){let o="";for(let tt in et)et.hasOwnProperty(tt)&&(o.length&&(o+="&"),o+=encodeURIComponent(tt)+"="+encodeURIComponent(et[tt]));return o}function decode(et){let o={},tt=et.split("&");for(let it=0,at=tt.length;it0);return o}function yeast(){const et=encode(+new Date);return et!==prev?(seed=0,prev=et):et+"."+encode(seed++)}for(;i$1{this.readyState="paused",o()};if(this.polling||!this.writable){let it=0;this.polling&&(it++,this.once("pollComplete",function(){--it||tt()})),this.writable||(it++,this.once("drain",function(){--it||tt()}))}else tt()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(o){const tt=it=>{if(this.readyState==="opening"&&it.type==="open"&&this.onOpen(),it.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(it)};decodePayload(o,this.socket.binaryType).forEach(tt),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const o=()=>{this.write([{type:"close"}])};this.readyState==="open"?o():this.once("open",o)}write(o){this.writable=!1,encodePayload(o,tt=>{this.doWrite(tt,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const o=this.opts.secure?"https":"http",tt=this.query||{};return this.opts.timestampRequests!==!1&&(tt[this.opts.timestampParam]=yeast()),!this.supportsBinary&&!tt.sid&&(tt.b64=1),this.createUri(o,tt)}request(o={}){return Object.assign(o,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Request$1(this.uri(),o)}doWrite(o,tt){const it=this.request({method:"POST",data:o});it.on("success",tt),it.on("error",(at,nt)=>{this.onError("xhr post error",at,nt)})}doPoll(){const o=this.request();o.on("data",this.onData.bind(this)),o.on("error",(tt,it)=>{this.onError("xhr poll error",tt,it)}),this.pollXhr=o}}let Request$1=class gu extends Emitter{constructor(o,tt){super(),installTimerFunctions(this,tt),this.opts=tt,this.method=tt.method||"GET",this.uri=o,this.data=tt.data!==void 0?tt.data:null,this.create()}create(){var o;const tt=pick(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");tt.xdomain=!!this.opts.xd;const it=this.xhr=new XHR(tt);try{it.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){it.setDisableHeaderCheck&&it.setDisableHeaderCheck(!0);for(let at in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(at)&&it.setRequestHeader(at,this.opts.extraHeaders[at])}}catch{}if(this.method==="POST")try{it.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{it.setRequestHeader("Accept","*/*")}catch{}(o=this.opts.cookieJar)===null||o===void 0||o.addCookies(it),"withCredentials"in it&&(it.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(it.timeout=this.opts.requestTimeout),it.onreadystatechange=()=>{var at;it.readyState===3&&((at=this.opts.cookieJar)===null||at===void 0||at.parseCookies(it)),it.readyState===4&&(it.status===200||it.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof it.status=="number"?it.status:0)},0))},it.send(this.data)}catch(at){this.setTimeoutFn(()=>{this.onError(at)},0);return}typeof document<"u"&&(this.index=gu.requestsCount++,gu.requests[this.index]=this)}onError(o){this.emitReserved("error",o,this.xhr),this.cleanup(!0)}cleanup(o){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=empty,o)try{this.xhr.abort()}catch{}typeof document<"u"&&delete gu.requests[this.index],this.xhr=null}}onLoad(){const o=this.xhr.responseText;o!==null&&(this.emitReserved("data",o),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};Request$1.requestsCount=0;Request$1.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",unloadHandler);else if(typeof addEventListener=="function"){const et="onpagehide"in globalThisShim?"pagehide":"unload";addEventListener(et,unloadHandler,!1)}}function unloadHandler(){for(let et in Request$1.requests)Request$1.requests.hasOwnProperty(et)&&Request$1.requests[et].abort()}const nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?o=>Promise.resolve().then(o):(o,tt)=>tt(o,0))(),WebSocket=globalThisShim.WebSocket||globalThisShim.MozWebSocket,usingBrowserWebSocket=!0,defaultBinaryType="arraybuffer",isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class WS extends Transport{constructor(o){super(o),this.supportsBinary=!o.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const o=this.uri(),tt=this.opts.protocols,it=isReactNative?{}:pick(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(it.headers=this.opts.extraHeaders);try{this.ws=usingBrowserWebSocket&&!isReactNative?tt?new WebSocket(o,tt):new WebSocket(o):new WebSocket(o,tt,it)}catch(at){return this.emitReserved("error",at)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=o=>this.onClose({description:"websocket connection closed",context:o}),this.ws.onmessage=o=>this.onData(o.data),this.ws.onerror=o=>this.onError("websocket error",o)}write(o){this.writable=!1;for(let tt=0;tt{const ot={};try{usingBrowserWebSocket&&this.ws.send(nt)}catch{}at&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const o=this.opts.secure?"wss":"ws",tt=this.query||{};return this.opts.timestampRequests&&(tt[this.opts.timestampParam]=yeast()),this.supportsBinary||(tt.b64=1),this.createUri(o,tt)}check(){return!!WebSocket}}class WT extends Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(o=>{this.onError("webtransport error",o)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(o=>{const tt=createPacketDecoderStream(Number.MAX_SAFE_INTEGER,this.socket.binaryType),it=o.readable.pipeThrough(tt).getReader(),at=createPacketEncoderStream();at.readable.pipeTo(o.writable),this.writer=at.writable.getWriter();const nt=()=>{it.read().then(({done:rt,value:st})=>{rt||(this.onPacket(st),nt())}).catch(rt=>{})};nt();const ot={type:"open"};this.query.sid&&(ot.data=`{"sid":"${this.query.sid}"}`),this.writer.write(ot).then(()=>this.onOpen())})}))}write(o){this.writable=!1;for(let tt=0;tt{at&&nextTick(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var o;(o=this.transport)===null||o===void 0||o.close()}}const transports={websocket:WS,webtransport:WT,polling:Polling},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(et){if(et.length>2e3)throw"URI too long";const o=et,tt=et.indexOf("["),it=et.indexOf("]");tt!=-1&&it!=-1&&(et=et.substring(0,tt)+et.substring(tt,it).replace(/:/g,";")+et.substring(it,et.length));let at=re.exec(et||""),nt={},ot=14;for(;ot--;)nt[parts[ot]]=at[ot]||"";return tt!=-1&&it!=-1&&(nt.source=o,nt.host=nt.host.substring(1,nt.host.length-1).replace(/;/g,":"),nt.authority=nt.authority.replace("[","").replace("]","").replace(/;/g,":"),nt.ipv6uri=!0),nt.pathNames=pathNames(nt,nt.path),nt.queryKey=queryKey(nt,nt.query),nt}function pathNames(et,o){const tt=/\/{2,9}/g,it=o.replace(tt,"/").split("/");return(o.slice(0,1)=="/"||o.length===0)&&it.splice(0,1),o.slice(-1)=="/"&&it.splice(it.length-1,1),it}function queryKey(et,o){const tt={};return o.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(it,at,nt){at&&(tt[at]=nt)}),tt}let Socket$1=class Ys extends Emitter{constructor(o,tt={}){super(),this.binaryType=defaultBinaryType,this.writeBuffer=[],o&&typeof o=="object"&&(tt=o,o=null),o?(o=parse(o),tt.hostname=o.host,tt.secure=o.protocol==="https"||o.protocol==="wss",tt.port=o.port,o.query&&(tt.query=o.query)):tt.host&&(tt.hostname=parse(tt.host).host),installTimerFunctions(this,tt),this.secure=tt.secure!=null?tt.secure:typeof location<"u"&&location.protocol==="https:",tt.hostname&&!tt.port&&(tt.port=this.secure?"443":"80"),this.hostname=tt.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=tt.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=tt.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},tt),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(o){const tt=Object.assign({},this.opts.query);tt.EIO=protocol$1,tt.transport=o,this.id&&(tt.sid=this.id);const it=Object.assign({},this.opts,{query:tt,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[o]);return new transports[o](it)}open(){let o;if(this.opts.rememberUpgrade&&Ys.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)o="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else o=this.transports[0];this.readyState="opening";try{o=this.createTransport(o)}catch{this.transports.shift(),this.open();return}o.open(),this.setTransport(o)}setTransport(o){this.transport&&this.transport.removeAllListeners(),this.transport=o,o.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",tt=>this.onClose("transport close",tt))}probe(o){let tt=this.createTransport(o),it=!1;Ys.priorWebsocketSuccess=!1;const at=()=>{it||(tt.send([{type:"ping",data:"probe"}]),tt.once("packet",ut=>{if(!it)if(ut.type==="pong"&&ut.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",tt),!tt)return;Ys.priorWebsocketSuccess=tt.name==="websocket",this.transport.pause(()=>{it||this.readyState!=="closed"&&(ht(),this.setTransport(tt),tt.send([{type:"upgrade"}]),this.emitReserved("upgrade",tt),tt=null,this.upgrading=!1,this.flush())})}else{const dt=new Error("probe error");dt.transport=tt.name,this.emitReserved("upgradeError",dt)}}))};function nt(){it||(it=!0,ht(),tt.close(),tt=null)}const ot=ut=>{const dt=new Error("probe error: "+ut);dt.transport=tt.name,nt(),this.emitReserved("upgradeError",dt)};function rt(){ot("transport closed")}function st(){ot("socket closed")}function lt(ut){tt&&ut.name!==tt.name&&nt()}const ht=()=>{tt.removeListener("open",at),tt.removeListener("error",ot),tt.removeListener("close",rt),this.off("close",st),this.off("upgrading",lt)};tt.once("open",at),tt.once("error",ot),tt.once("close",rt),this.once("close",st),this.once("upgrading",lt),this.upgrades.indexOf("webtransport")!==-1&&o!=="webtransport"?this.setTimeoutFn(()=>{it||tt.open()},200):tt.open()}onOpen(){if(this.readyState="open",Ys.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let o=0;const tt=this.upgrades.length;for(;o{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const o=this.getWritablePackets();this.transport.send(o),this.prevBufferLen=o.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let tt=1;for(let it=0;it0&&tt>this.maxPayload)return this.writeBuffer.slice(0,it);tt+=2}return this.writeBuffer}write(o,tt,it){return this.sendPacket("message",o,tt,it),this}send(o,tt,it){return this.sendPacket("message",o,tt,it),this}sendPacket(o,tt,it,at){if(typeof tt=="function"&&(at=tt,tt=void 0),typeof it=="function"&&(at=it,it=null),this.readyState==="closing"||this.readyState==="closed")return;it=it||{},it.compress=it.compress!==!1;const nt={type:o,data:tt,options:it};this.emitReserved("packetCreate",nt),this.writeBuffer.push(nt),at&&this.once("flush",at),this.flush()}close(){const o=()=>{this.onClose("forced close"),this.transport.close()},tt=()=>{this.off("upgrade",tt),this.off("upgradeError",tt),o()},it=()=>{this.once("upgrade",tt),this.once("upgradeError",tt)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?it():o()}):this.upgrading?it():o()),this}onError(o){Ys.priorWebsocketSuccess=!1,this.emitReserved("error",o),this.onClose("transport error",o)}onClose(o,tt){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",o,tt),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(o){const tt=[];let it=0;const at=o.length;for(;ittypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(et):et.buffer instanceof ArrayBuffer,toString$2=Object.prototype.toString,withNativeBlob=typeof Blob=="function"||typeof Blob<"u"&&toString$2.call(Blob)==="[object BlobConstructor]",withNativeFile=typeof File=="function"||typeof File<"u"&&toString$2.call(File)==="[object FileConstructor]";function isBinary(et){return withNativeArrayBuffer&&(et instanceof ArrayBuffer||isView(et))||withNativeBlob&&et instanceof Blob||withNativeFile&&et instanceof File}function hasBinary(et,o){if(!et||typeof et!="object")return!1;if(Array.isArray(et)){for(let tt=0,it=et.length;tt=0&&et.num{delete this.acks[o];for(let ot=0;ot{this.io.clearTimeoutFn(nt),tt.apply(this,[null,...ot])}}emitWithAck(o,...tt){const it=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((at,nt)=>{tt.push((ot,rt)=>it?ot?nt(ot):at(rt):at(ot)),this.emit(o,...tt)})}_addToQueue(o){let tt;typeof o[o.length-1]=="function"&&(tt=o.pop());const it={id:this._queueSeq++,tryCount:0,pending:!1,args:o,flags:Object.assign({fromQueue:!0},this.flags)};o.push((at,...nt)=>it!==this._queue[0]?void 0:(at!==null?it.tryCount>this._opts.retries&&(this._queue.shift(),tt&&tt(at)):(this._queue.shift(),tt&&tt(null,...nt)),it.pending=!1,this._drainQueue())),this._queue.push(it),this._drainQueue()}_drainQueue(o=!1){if(!this.connected||this._queue.length===0)return;const tt=this._queue[0];tt.pending&&!o||(tt.pending=!0,tt.tryCount++,this.flags=tt.flags,this.emit.apply(this,tt.args))}packet(o){o.nsp=this.nsp,this.io._packet(o)}onopen(){typeof this.auth=="function"?this.auth(o=>{this._sendConnectPacket(o)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(o){this.packet({type:PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},o):o})}onerror(o){this.connected||this.emitReserved("connect_error",o)}onclose(o,tt){this.connected=!1,delete this.id,this.emitReserved("disconnect",o,tt)}onpacket(o){if(o.nsp===this.nsp)switch(o.type){case PacketType.CONNECT:o.data&&o.data.sid?this.onconnect(o.data.sid,o.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case PacketType.EVENT:case PacketType.BINARY_EVENT:this.onevent(o);break;case PacketType.ACK:case PacketType.BINARY_ACK:this.onack(o);break;case PacketType.DISCONNECT:this.ondisconnect();break;case PacketType.CONNECT_ERROR:this.destroy();const it=new Error(o.data.message);it.data=o.data.data,this.emitReserved("connect_error",it);break}}onevent(o){const tt=o.data||[];o.id!=null&&tt.push(this.ack(o.id)),this.connected?this.emitEvent(tt):this.receiveBuffer.push(Object.freeze(tt))}emitEvent(o){if(this._anyListeners&&this._anyListeners.length){const tt=this._anyListeners.slice();for(const it of tt)it.apply(this,o)}super.emit.apply(this,o),this._pid&&o.length&&typeof o[o.length-1]=="string"&&(this._lastOffset=o[o.length-1])}ack(o){const tt=this;let it=!1;return function(...at){it||(it=!0,tt.packet({type:PacketType.ACK,id:o,data:at}))}}onack(o){const tt=this.acks[o.id];typeof tt=="function"&&(tt.apply(this,o.data),delete this.acks[o.id])}onconnect(o,tt){this.id=o,this.recovered=tt&&this._pid===tt,this._pid=tt,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(o=>this.emitEvent(o)),this.receiveBuffer=[],this.sendBuffer.forEach(o=>{this.notifyOutgoingListeners(o),this.packet(o)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(o=>o()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(o){return this.flags.compress=o,this}get volatile(){return this.flags.volatile=!0,this}timeout(o){return this.flags.timeout=o,this}onAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(o),this}prependAny(o){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(o),this}offAny(o){if(!this._anyListeners)return this;if(o){const tt=this._anyListeners;for(let it=0;it0&&et.jitter<=1?et.jitter:0,this.attempts=0}Backoff.prototype.duration=function(){var et=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var o=Math.random(),tt=Math.floor(o*this.jitter*et);et=Math.floor(o*10)&1?et+tt:et-tt}return Math.min(et,this.max)|0};Backoff.prototype.reset=function(){this.attempts=0};Backoff.prototype.setMin=function(et){this.ms=et};Backoff.prototype.setMax=function(et){this.max=et};Backoff.prototype.setJitter=function(et){this.jitter=et};class Manager extends Emitter{constructor(o,tt){var it;super(),this.nsps={},this.subs=[],o&&typeof o=="object"&&(tt=o,o=void 0),tt=tt||{},tt.path=tt.path||"/socket.io",this.opts=tt,installTimerFunctions(this,tt),this.reconnection(tt.reconnection!==!1),this.reconnectionAttempts(tt.reconnectionAttempts||1/0),this.reconnectionDelay(tt.reconnectionDelay||1e3),this.reconnectionDelayMax(tt.reconnectionDelayMax||5e3),this.randomizationFactor((it=tt.randomizationFactor)!==null&&it!==void 0?it:.5),this.backoff=new Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(tt.timeout==null?2e4:tt.timeout),this._readyState="closed",this.uri=o;const at=tt.parser||parser;this.encoder=new at.Encoder,this.decoder=new at.Decoder,this._autoConnect=tt.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(o){return arguments.length?(this._reconnection=!!o,this):this._reconnection}reconnectionAttempts(o){return o===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=o,this)}reconnectionDelay(o){var tt;return o===void 0?this._reconnectionDelay:(this._reconnectionDelay=o,(tt=this.backoff)===null||tt===void 0||tt.setMin(o),this)}randomizationFactor(o){var tt;return o===void 0?this._randomizationFactor:(this._randomizationFactor=o,(tt=this.backoff)===null||tt===void 0||tt.setJitter(o),this)}reconnectionDelayMax(o){var tt;return o===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=o,(tt=this.backoff)===null||tt===void 0||tt.setMax(o),this)}timeout(o){return arguments.length?(this._timeout=o,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(o){if(~this._readyState.indexOf("open"))return this;this.engine=new Socket$1(this.uri,this.opts);const tt=this.engine,it=this;this._readyState="opening",this.skipReconnect=!1;const at=on(tt,"open",function(){it.onopen(),o&&o()}),nt=rt=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",rt),o?o(rt):this.maybeReconnectOnOpen()},ot=on(tt,"error",nt);if(this._timeout!==!1){const rt=this._timeout,st=this.setTimeoutFn(()=>{at(),nt(new Error("timeout")),tt.close()},rt);this.opts.autoUnref&&st.unref(),this.subs.push(()=>{this.clearTimeoutFn(st)})}return this.subs.push(at),this.subs.push(ot),this}connect(o){return this.open(o)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const o=this.engine;this.subs.push(on(o,"ping",this.onping.bind(this)),on(o,"data",this.ondata.bind(this)),on(o,"error",this.onerror.bind(this)),on(o,"close",this.onclose.bind(this)),on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(o){try{this.decoder.add(o)}catch(tt){this.onclose("parse error",tt)}}ondecoded(o){nextTick(()=>{this.emitReserved("packet",o)},this.setTimeoutFn)}onerror(o){this.emitReserved("error",o)}socket(o,tt){let it=this.nsps[o];return it?this._autoConnect&&!it.active&&it.connect():(it=new Socket(this,o,tt),this.nsps[o]=it),it}_destroy(o){const tt=Object.keys(this.nsps);for(const it of tt)if(this.nsps[it].active)return;this._close()}_packet(o){const tt=this.encoder.encode(o);for(let it=0;ito()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(o,tt){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",o,tt),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const o=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const tt=this.backoff.duration();this._reconnecting=!0;const it=this.setTimeoutFn(()=>{o.skipReconnect||(this.emitReserved("reconnect_attempt",o.backoff.attempts),!o.skipReconnect&&o.open(at=>{at?(o._reconnecting=!1,o.reconnect(),this.emitReserved("reconnect_error",at)):o.onreconnect()}))},tt);this.opts.autoUnref&&it.unref(),this.subs.push(()=>{this.clearTimeoutFn(it)})}}onreconnect(){const o=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",o)}}const cache={};function lookup(et,o){typeof et=="object"&&(o=et,et=void 0),o=o||{};const tt=url(et,o.path||"/socket.io"),it=tt.source,at=tt.id,nt=tt.path,ot=cache[at]&&nt in cache[at].nsps,rt=o.forceNew||o["force new connection"]||o.multiplex===!1||ot;let st;return rt?st=new Manager(it,o):(cache[at]||(cache[at]=new Manager(it,o)),st=cache[at]),tt.query&&!o.query&&(o.query=tt.queryKey),st.socket(tt.path,o)}Object.assign(lookup,{Manager,Socket,io:lookup,connect:lookup});const SocketContext=reactExports.createContext(void 0),contextValue={socket:lookup(removeApi(API_URL),{autoConnect:!1})},SocketProvider=({children:et})=>jsxRuntimeExports.jsx(SocketContext.Provider,{value:contextValue,children:et}),palette=createPalette({mode:"dark",primary:{main:colors.primaryButton}}),appTheme=createTheme({palette,components:{MuiButton,MuiPopover:{styleOverrides:{root:{zIndex:99999}}}},typography:{button:{textTransform:"none",whiteSpace:"nowrap"}},breakpoints:{values:{xs:breakpoints.small,sm:breakpoints.medium,md:breakpoints.large,lg:1200,xl:1500}}}),AppProviders=({children:et})=>jsxRuntimeExports.jsxs(ThemeProvider,{theme:appTheme,children:[jsxRuntimeExports.jsx(StyledEngineProvider,{injectFirst:!0}),jsxRuntimeExports.jsx(Le,{theme:appTheme,children:jsxRuntimeExports.jsx(LocalizationProvider,{dateAdapter:AdapterMoment,children:jsxRuntimeExports.jsx(SocketProvider,{children:et})})})]}),background=Ae` ${({background:et})=>et&&`background-color: ${colors[et]};`} `,switchProp$3=(et,o)=>{switch(et){case"borderColor":return`border-color: ${o};`;case"borderRadius":return`border-radius: ${o}px;`;case"borderRadiusBottomLeft":return`border-bottom-left-radius: ${o}px;`;case"borderRadiusBottomRight":return`border-bottom-right-radius: ${o}px;`;case"borderRadiusTopLeft":return`border-top-left-radius: ${o}px;`;case"borderRadiusTopRight":return`border-top-right-radius: ${o}px;`;case"borderSize":return` border-style: solid; @@ -3741,4 +3741,4 @@ A Bitcoin Podcast. align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-48249864.js").then(et=>et.i),["assets/index-48249864.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/generateCategoricalChart-876bdce4.js","assets/Popover-243f389d.js","assets/useSlotProps-96b7890f.js","assets/InfoIcon-6417fafc.js","assets/index.esm-f21f36d4.js","assets/ChevronUpIcon-e45e7605.js","assets/ChevronDownIcon-e923c599.js","assets/index-04e75ad0.js","assets/index-fd857883.js","assets/index-2d16147d.js","assets/index-dae8afeb.js","assets/index-4e0797a7.js","assets/Popper-831e364f.js","assets/CheckIcon-1dbe3e4f.js","assets/Stack-f811e4d7.js","assets/PlusIcon-8eca7748.js"]).then(({App:et})=>({default:et}))),LazyAppNew=reactExports.lazy(()=>__vitePreload(()=>import("./index-d7d885cc.js").then(et=>et.i),["assets/index-d7d885cc.js","assets/react-toastify.esm-1e5f1e5f.js","assets/react-toastify-b60658ac.css","assets/index-0a908253.js"]).then(({AppNew:et})=>({default:et}))),AppContainer=()=>{const[et]=useFeatureFlagStore(tt=>[tt.v2Flag]),o=et?jsxRuntimeExports.jsx(LazyAppNew,{}):jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:o})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(AppContainer,{}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(AppContainer,{})}));reportWebVitals();overrideConsole();export{devtools as $,getEdgeTypes as A,postEdgeType as B,requiredRule as C,putNodeData as D,postMergeTopics as E,Flex as F,React as G,getNodeContent as H,useFeatureFlagStore as I,isSphinx as J,postAboutData as K,isFunction$3 as L,getSentimentData as M,hooks as N,updateBudget as O,isDevelopment as P,getGraphDataPositions as Q,RSS as R,Stats as S,Text as T,api$1 as U,Vector3 as V,isE2E as W,isChileGraph as X,YOUTUBE_CHANNEL as Y,create$3 as Z,_extends$1 as _,generateUtilityClasses as a,resolveBreakpointValues as a$,saveSearchTerm as a0,lottie as a1,LinearProgress$1 as a2,useSelectedNode as a3,keyframes as a4,alpha as a5,reactDomExports as a6,rootShouldForwardProp as a7,resolveProps as a8,ReactDOM as a9,Float32BufferAttribute as aA,variableVector3 as aB,getPointAbove as aC,MeshStandardMaterial as aD,maxChildrenDisplayed as aE,nodesAreRelatives as aF,NODE_RELATIVE_HIGHLIGHT_COLORS as aG,generateLinksFromNodeData as aH,runForceSimulation as aI,EARTH_RADIUS as aJ,EARTH_DATA_PADDING as aK,CatmullRomCurve3 as aL,DoubleSide as aM,BufferAttribute as aN,GRAPH_GROUND_COLOR as aO,GRAPH_LIGHT_INTENSITY as aP,GRAPH_FOG_COLOR as aQ,addToGlobalForE2e as aR,outlineEffectColor as aS,useTheme as aT,useFilteredNodes as aU,saveConsumedContent as aV,postAskQuestion as aW,getFullTranscript as aX,commonjsGlobal as aY,getTrends as aZ,Ae as a_,$2AODx$react as aa,PropTypes as ab,getDefaultExportFromCjs as ac,$e as ad,graphStyles as ae,NodesIcon as af,SocketContext as ag,TextureLoader as ah,DynamicDrawUsage as ai,Group as aj,Color as ak,Material as al,Matrix4 as am,Quaternion as an,Mesh as ao,react as ap,NormalBlending as aq,createRoot as ar,Object3D as as,Scene as at,MathUtils as au,Points as av,Texture as aw,BoxGeometry as ax,Shape as ay,ExtrudeGeometry as az,_objectWithoutPropertiesLoose as b,FrontSide as b$,handleBreakpoints as b0,lighten as b1,darken as b2,getNodeType as b3,NODE_ADD_ERROR as b4,getNodeSchemaTypes as b5,getSchemaAll as b6,LINK as b7,TWITTER_SOURCE as b8,WEB_PAGE as b9,NoToneMapping as bA,ACESFilmicToneMapping as bB,WebGLRenderer as bC,Camera as bD,BasicShadowMap as bE,PCFShadowMap as bF,VSMShadowMap as bG,Vector2 as bH,Clock as bI,THREE as bJ,DefaultLoadingManager as bK,Frustum as bL,Box3 as bM,InstancedBufferGeometry as bN,InstancedInterleavedBuffer as bO,InterleavedBufferAttribute as bP,WireframeGeometry as bQ,ShaderMaterial as bR,UniformsUtils as bS,UniformsLib as bT,REVISION as bU,Vector4 as bV,Line3 as bW,MeshDepthMaterial as bX,RGBADepthPacking as bY,MeshDistanceMaterial as bZ,ShaderChunk as b_,DOCUMENT as ba,formatBudget as bb,getPriceData as bc,sphinxBridge as bd,getLSat as be,payLsat as bf,executeIfProd as bg,deleteNode as bh,getEdges as bi,Ray as bj,Sphere as bk,QuadraticBezierCurve3 as bl,forceSimulation as bm,forceCollide as bn,forceCenter as bo,forceManyBody as bp,forceLink as bq,NODE_TYPE_COLORS as br,Layers as bs,RGBAFormat as bt,UnsignedByteType as bu,BufferGeometry as bv,Raycaster as bw,OrthographicCamera as bx,PerspectiveCamera as by,PCFSoftShadowMap as bz,capitalize as c,createTheme$1 as c$,LinearFilter as c0,BackSide as c1,InstancedBufferAttribute as c2,Matrix3 as c3,MeshBasicMaterial as c4,PlaneGeometry as c5,WebGLCubeRenderTarget as c6,CubeCamera as c7,EventDispatcher as c8,WebGLRenderTarget as c9,isTypedArray_1 as cA,isObject_1 as cB,keys_1 as cC,isArguments_1 as cD,_isIndex as cE,isLength_1 as cF,_Set as cG,_arrayPush as cH,isArrayLike_1 as cI,_baseUnary as cJ,_defineProperty$1 as cK,_root as cL,_getPrototype as cM,_baseAssignValue as cN,slotShouldForwardProp as cO,Timer as cP,useSyncExternalStoreExports as cQ,createStore as cR,dispatch as cS,timer as cT,now as cU,getAugmentedNamespace as cV,propTypesExports as cW,css as cX,defaultSxConfig$1 as cY,isPlainObject as cZ,createStyled as c_,NearestFilter as ca,FloatType as cb,BasicDepthPacking as cc,MeshNormalMaterial as cd,DepthTexture as ce,DepthStencilFormat as cf,UnsignedInt248Type as cg,UnsignedIntType as ch,Uniform as ci,RepeatWrapping as cj,NoBlending as ck,LinearEncoding as cl,sRGBEncoding as cm,HalfFloatType as cn,_baseGetTag as co,isObjectLike_1 as cp,isArray_1 as cq,_MapCache as cr,_Symbol as cs,isObject$b as ct,_Uint8Array as cu,eq_1 as cv,_getAllKeys as cw,_Stack as cx,_getTag as cy,isBufferExports as cz,clsx$1 as d,useThemeProps$1 as d0,createUnarySpacing as d1,deepmerge as d2,mergeBreakpointsInOrder as d3,getValue as d4,formatMuiErrorMessage as d5,useTheme$3 as d6,Global as d7,useTheme$2 as d8,defaultTheme$1 as d9,THEME_ID as da,We as db,composeClasses as e,styled$3 as f,generateUtilityClass as g,colors as h,useDataStore as i,jsxRuntimeExports as j,useAppStore as k,clsx as l,__vitePreload as m,media as n,distExports$1 as o,approveRadarData as p,deleteRadarData as q,reactExports as r,styled$1 as s,getRadarData as t,useThemeProps as u,TWITTER_HANDLE as v,putRadarData as w,useUserStore as x,lodashExports as y,getTopicsData as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-49e7e9f0.js").then(et=>et.i),["assets/index-49e7e9f0.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/generateCategoricalChart-a6175423.js","assets/Popover-28c1573e.js","assets/useSlotProps-b8a587b0.js","assets/InfoIcon-de2f1e11.js","assets/index.esm-ac56504e.js","assets/ChevronUpIcon-6e1fca04.js","assets/ChevronDownIcon-cf5b6e54.js","assets/index-341edfe1.js","assets/index-856cc0ad.js","assets/index-e6f0fb8d.js","assets/index-b9c9b7e2.js","assets/index-0c223900.js","assets/Popper-704ca55a.js","assets/CheckIcon-b94a1aa2.js","assets/Stack-b0e83988.js","assets/PlusIcon-261fd641.js"]).then(({App:et})=>({default:et}))),LazyAppNew=reactExports.lazy(()=>__vitePreload(()=>import("./index-3e35ec51.js").then(et=>et.i),["assets/index-3e35ec51.js","assets/react-toastify.esm-ce67a4f9.js","assets/react-toastify-b60658ac.css","assets/index-f774867a.js"]).then(({AppNew:et})=>({default:et}))),AppContainer=()=>{const[et]=useFeatureFlagStore(tt=>[tt.v2Flag]),o=et?jsxRuntimeExports.jsx(LazyAppNew,{}):jsxRuntimeExports.jsx(LazyApp,{});return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsx(AuthGuard,{children:o})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(AppContainer,{}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(AppContainer,{})}));reportWebVitals();overrideConsole();export{devtools as $,getEdgeTypes as A,postEdgeType as B,requiredRule as C,putNodeData as D,postMergeTopics as E,Flex as F,React as G,getNodeContent as H,useFeatureFlagStore as I,isSphinx as J,postAboutData as K,isFunction$3 as L,getSentimentData as M,hooks as N,updateBudget as O,isDevelopment as P,getGraphDataPositions as Q,RSS as R,Stats as S,Text as T,api$1 as U,Vector3 as V,isE2E as W,isChileGraph as X,YOUTUBE_CHANNEL as Y,create$3 as Z,_extends$1 as _,generateUtilityClasses as a,resolveBreakpointValues as a$,saveSearchTerm as a0,lottie as a1,LinearProgress$1 as a2,useSelectedNode as a3,keyframes as a4,alpha as a5,reactDomExports as a6,rootShouldForwardProp as a7,resolveProps as a8,ReactDOM as a9,Float32BufferAttribute as aA,variableVector3 as aB,getPointAbove as aC,MeshStandardMaterial as aD,maxChildrenDisplayed as aE,nodesAreRelatives as aF,NODE_RELATIVE_HIGHLIGHT_COLORS as aG,generateLinksFromNodeData as aH,runForceSimulation as aI,EARTH_RADIUS as aJ,EARTH_DATA_PADDING as aK,CatmullRomCurve3 as aL,DoubleSide as aM,BufferAttribute as aN,GRAPH_GROUND_COLOR as aO,GRAPH_LIGHT_INTENSITY as aP,GRAPH_FOG_COLOR as aQ,addToGlobalForE2e as aR,outlineEffectColor as aS,useTheme as aT,useFilteredNodes as aU,saveConsumedContent as aV,postAskQuestion as aW,getFullTranscript as aX,commonjsGlobal as aY,getTrends as aZ,Ae as a_,$2AODx$react as aa,PropTypes as ab,getDefaultExportFromCjs as ac,$e as ad,graphStyles as ae,NodesIcon as af,SocketContext as ag,TextureLoader as ah,DynamicDrawUsage as ai,Group as aj,Color as ak,Material as al,Matrix4 as am,Quaternion as an,Mesh as ao,react as ap,NormalBlending as aq,createRoot as ar,Object3D as as,Scene as at,MathUtils as au,Points as av,Texture as aw,BoxGeometry as ax,Shape as ay,ExtrudeGeometry as az,_objectWithoutPropertiesLoose as b,FrontSide as b$,handleBreakpoints as b0,lighten as b1,darken as b2,getNodeType as b3,NODE_ADD_ERROR as b4,getNodeSchemaTypes as b5,getSchemaAll as b6,LINK as b7,TWITTER_SOURCE as b8,WEB_PAGE as b9,NoToneMapping as bA,ACESFilmicToneMapping as bB,WebGLRenderer as bC,Camera as bD,BasicShadowMap as bE,PCFShadowMap as bF,VSMShadowMap as bG,Vector2 as bH,Clock as bI,THREE as bJ,DefaultLoadingManager as bK,Frustum as bL,Box3 as bM,InstancedBufferGeometry as bN,InstancedInterleavedBuffer as bO,InterleavedBufferAttribute as bP,WireframeGeometry as bQ,ShaderMaterial as bR,UniformsUtils as bS,UniformsLib as bT,REVISION as bU,Vector4 as bV,Line3 as bW,MeshDepthMaterial as bX,RGBADepthPacking as bY,MeshDistanceMaterial as bZ,ShaderChunk as b_,DOCUMENT as ba,formatBudget as bb,getPriceData as bc,sphinxBridge as bd,getLSat as be,payLsat as bf,executeIfProd as bg,deleteNode as bh,getEdges as bi,Ray as bj,Sphere as bk,QuadraticBezierCurve3 as bl,forceSimulation as bm,forceCollide as bn,forceCenter as bo,forceManyBody as bp,forceLink as bq,NODE_TYPE_COLORS as br,Layers as bs,RGBAFormat as bt,UnsignedByteType as bu,BufferGeometry as bv,Raycaster as bw,OrthographicCamera as bx,PerspectiveCamera as by,PCFSoftShadowMap as bz,capitalize as c,createTheme$1 as c$,LinearFilter as c0,BackSide as c1,InstancedBufferAttribute as c2,Matrix3 as c3,MeshBasicMaterial as c4,PlaneGeometry as c5,WebGLCubeRenderTarget as c6,CubeCamera as c7,EventDispatcher as c8,WebGLRenderTarget as c9,isTypedArray_1 as cA,isObject_1 as cB,keys_1 as cC,isArguments_1 as cD,_isIndex as cE,isLength_1 as cF,_Set as cG,_arrayPush as cH,isArrayLike_1 as cI,_baseUnary as cJ,_defineProperty$1 as cK,_root as cL,_getPrototype as cM,_baseAssignValue as cN,slotShouldForwardProp as cO,Timer as cP,useSyncExternalStoreExports as cQ,createStore as cR,dispatch as cS,timer as cT,now as cU,getAugmentedNamespace as cV,propTypesExports as cW,css as cX,defaultSxConfig$1 as cY,isPlainObject as cZ,createStyled as c_,NearestFilter as ca,FloatType as cb,BasicDepthPacking as cc,MeshNormalMaterial as cd,DepthTexture as ce,DepthStencilFormat as cf,UnsignedInt248Type as cg,UnsignedIntType as ch,Uniform as ci,RepeatWrapping as cj,NoBlending as ck,LinearEncoding as cl,sRGBEncoding as cm,HalfFloatType as cn,_baseGetTag as co,isObjectLike_1 as cp,isArray_1 as cq,_MapCache as cr,_Symbol as cs,isObject$b as ct,_Uint8Array as cu,eq_1 as cv,_getAllKeys as cw,_Stack as cx,_getTag as cy,isBufferExports as cz,clsx$1 as d,useThemeProps$1 as d0,createUnarySpacing as d1,deepmerge as d2,mergeBreakpointsInOrder as d3,getValue as d4,formatMuiErrorMessage as d5,useTheme$3 as d6,Global as d7,useTheme$2 as d8,defaultTheme$1 as d9,THEME_ID as da,We as db,composeClasses as e,styled$3 as f,generateUtilityClass as g,colors as h,useDataStore as i,jsxRuntimeExports as j,useAppStore as k,clsx as l,__vitePreload as m,media as n,distExports$1 as o,approveRadarData as p,deleteRadarData as q,reactExports as r,styled$1 as s,getRadarData as t,useThemeProps as u,TWITTER_HANDLE as v,putRadarData as w,useUserStore as x,lodashExports as y,getTopicsData as z}; diff --git a/build/assets/index-4c973ba9.js b/build/assets/index-b8c5588f.js similarity index 91% rename from build/assets/index-4c973ba9.js rename to build/assets/index-b8c5588f.js index 2f3d13ebd..15800f5ba 100644 --- a/build/assets/index-4c973ba9.js +++ b/build/assets/index-b8c5588f.js @@ -1,4 +1,4 @@ -import{x as u,j as t,T as e,f as a,h as o,F as c}from"./index-c522bd40.js";import{A as g,a as b,S as m}from"./SourcesTableIcon-d2644acb.js";import{S as j}from"./SettingsIcon-52b7c188.js";import{u as i}from"./index-dae8afeb.js";const S=()=>{const{open:n}=i("sourcesTable"),{open:d}=i("addItem"),{open:l}=i("addContent"),{open:p}=i("settings"),[x]=u(h=>[h.isAdmin]);return t.jsxs(f,{children:[t.jsx(y,{children:t.jsx("img",{alt:"Second brain",src:"logo.svg"})}),x&&t.jsxs(s,{"data-testid":"add-item-modal",onClick:d,children:[t.jsx(r,{children:t.jsx(g,{})}),t.jsx(e,{children:"Add Item"})]}),t.jsxs(s,{"data-testid":"add-content-modal",onClick:l,children:[t.jsx(r,{children:t.jsx(b,{})}),t.jsx(e,{children:"Add Content"})]}),t.jsxs(s,{id:"cy-open-soure-table",onClick:n,children:[t.jsx(r,{children:t.jsx(m,{})}),t.jsx(e,{children:"Source Table"})]}),t.jsxs(s,{"data-testid":"settings-modal",onClick:p,children:[t.jsx(r,{children:t.jsx(j,{})}),t.jsx(e,{children:"Settings"})]})]})},f=a(c).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{x as u,j as t,T as e,f as a,h as o,F as c}from"./index-b85f35cf.js";import{A as g,a as b,S as m}from"./SourcesTableIcon-9e0ca82c.js";import{S as j}from"./SettingsIcon-cd476525.js";import{u as i}from"./index-b9c9b7e2.js";const S=()=>{const{open:n}=i("sourcesTable"),{open:d}=i("addItem"),{open:l}=i("addContent"),{open:p}=i("settings"),[x]=u(h=>[h.isAdmin]);return t.jsxs(f,{children:[t.jsx(y,{children:t.jsx("img",{alt:"Second brain",src:"logo.svg"})}),x&&t.jsxs(s,{"data-testid":"add-item-modal",onClick:d,children:[t.jsx(r,{children:t.jsx(g,{})}),t.jsx(e,{children:"Add Item"})]}),t.jsxs(s,{"data-testid":"add-content-modal",onClick:l,children:[t.jsx(r,{children:t.jsx(b,{})}),t.jsx(e,{children:"Add Content"})]}),t.jsxs(s,{id:"cy-open-soure-table",onClick:n,children:[t.jsx(r,{children:t.jsx(m,{})}),t.jsx(e,{children:"Source Table"})]}),t.jsxs(s,{"data-testid":"settings-modal",onClick:p,children:[t.jsx(r,{children:t.jsx(j,{})}),t.jsx(e,{children:"Settings"})]})]})},f=a(c).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-dae8afeb.js b/build/assets/index-b9c9b7e2.js similarity index 89% rename from build/assets/index-dae8afeb.js rename to build/assets/index-b9c9b7e2.js index 30095c19b..20f9c79e1 100644 --- a/build/assets/index-dae8afeb.js +++ b/build/assets/index-b9c9b7e2.js @@ -1 +1 @@ -import{Z as l}from"./index-c522bd40.js";const d={addNodeModalData:null,currentModals:{budgetExplanation:!1,sourcesTable:!1,addItem:!1,addType:!1,addContent:!1,editTopic:!1,addEdge:!1,addSource:!1,settings:!1,mergeTopic:!1,briefDescription:!1,editNodeName:!1,removeNode:!1,removeNodeType:!1,addEdgeToNode:!1}},t=l(e=>({...d,close:a=>{e(o=>({addNodeModalData:null,currentModals:{...o.currentModals,[a]:!1}}))},open:a=>{e(o=>({currentModals:{...o.currentModals,[a]:!0}}))}})),n=e=>{const{open:a,close:o,currentModals:s}=t();return{close:()=>o(e),open:()=>a(e),visible:s[e]}};export{n as u}; +import{Z as l}from"./index-b85f35cf.js";const d={addNodeModalData:null,currentModals:{budgetExplanation:!1,sourcesTable:!1,addItem:!1,addType:!1,addContent:!1,editTopic:!1,addEdge:!1,addSource:!1,settings:!1,mergeTopic:!1,briefDescription:!1,editNodeName:!1,removeNode:!1,removeNodeType:!1,addEdgeToNode:!1}},t=l(e=>({...d,close:a=>{e(o=>({addNodeModalData:null,currentModals:{...o.currentModals,[a]:!1}}))},open:a=>{e(o=>({currentModals:{...o.currentModals,[a]:!0}}))}})),n=e=>{const{open:a,close:o,currentModals:s}=t();return{close:()=>o(e),open:()=>a(e),visible:s[e]}};export{n as u}; diff --git a/build/assets/index-b9e1797f.js b/build/assets/index-b9e1797f.js deleted file mode 100644 index e1e3ab923..000000000 --- a/build/assets/index-b9e1797f.js +++ /dev/null @@ -1 +0,0 @@ -import{j as o}from"./index-c522bd40.js";import{B as m}from"./index-4e0797a7.js";import{u as r}from"./index-dae8afeb.js";import{c as p}from"./index-48249864.js";import"./react-toastify.esm-1e5f1e5f.js";import"./generateCategoricalChart-876bdce4.js";import"./Popover-243f389d.js";import"./useSlotProps-96b7890f.js";import"./InfoIcon-6417fafc.js";import"./index.esm-f21f36d4.js";import"./ChevronUpIcon-e45e7605.js";import"./ChevronDownIcon-e923c599.js";import"./index-04e75ad0.js";import"./index-fd857883.js";import"./index-2d16147d.js";import"./Popper-831e364f.js";import"./CheckIcon-1dbe3e4f.js";import"./Stack-f811e4d7.js";import"./PlusIcon-8eca7748.js";const h=()=>{const{close:t}=r("sourcesTable"),{visible:i}=r("addContent");return i?null:o.jsx(m,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,children:o.jsx(p,{})})};export{h as SourcesTableModal}; diff --git a/build/assets/index-dea9ab33.js b/build/assets/index-d1eb23da.js similarity index 97% rename from build/assets/index-dea9ab33.js rename to build/assets/index-d1eb23da.js index a26fa9adf..294c08187 100644 --- a/build/assets/index-dea9ab33.js +++ b/build/assets/index-d1eb23da.js @@ -1,4 +1,4 @@ -import{f as d,h as n,T as _,F as p,R as J,v as X,Y as Z,i as F,r as h,j as e,o as Fe,p as Pe,q as we,l as z,t as ye,w as Me,x as be,y as Se,z as ve,A as Oe,B as Ge,C as De,D as Te,E as We,G as de,I as Ye}from"./index-c522bd40.js";import{B as P}from"./index-4e0797a7.js";import{u as E}from"./index-dae8afeb.js";import{T as Ue,a as M,b as Ve,F as ee,M as te,C as Ce,N as He,c as qe,D as se,d as $e}from"./ChevronUpIcon-e45e7605.js";import{B,C as T,I as R,b as A,S as O,c as ne,F as oe}from"./react-toastify.esm-1e5f1e5f.js";import{M as _e,a as ke,b as Qe,c as Ke,d as Je,e as Xe}from"./index.esm-f21f36d4.js";import{P as G,I as D,a as re,F as ze}from"./Popover-243f389d.js";import{B as Ze,T as et}from"./index-2d16147d.js";import{A as Ee,u as $}from"./index-fd857883.js";import{P as Ne}from"./Popper-831e364f.js";import{C as Be}from"./CheckIcon-1dbe3e4f.js";import{C as Ae}from"./ChevronDownIcon-e923c599.js";import{S as tt}from"./SettingsIcon-52b7c188.js";import{T as st,a as nt}from"./index-04e75ad0.js";import"./useSlotProps-96b7890f.js";import"./InfoIcon-6417fafc.js";const j=d(Ue)` +import{f as d,h as n,T as _,F as p,R as J,v as X,Y as Z,i as F,r as h,j as e,o as Fe,p as Pe,q as we,l as z,t as ye,w as Me,x as be,y as Se,z as ve,A as Oe,B as Ge,C as De,D as Te,E as We,G as de,I as Ye}from"./index-b85f35cf.js";import{B as P}from"./index-0c223900.js";import{u as E}from"./index-b9c9b7e2.js";import{T as Ue,a as M,b as Ve,F as ee,M as te,C as Ce,N as He,c as qe,D as se,d as $e}from"./ChevronUpIcon-6e1fca04.js";import{B,C as T,I as R,b as A,S as O,c as ne,F as oe}from"./react-toastify.esm-ce67a4f9.js";import{M as _e,a as ke,b as Qe,c as Ke,d as Je,e as Xe}from"./index.esm-ac56504e.js";import{P as G,I as D,a as re,F as ze}from"./Popover-28c1573e.js";import{B as Ze,T as et}from"./index-e6f0fb8d.js";import{A as Ee,u as $}from"./index-856cc0ad.js";import{P as Ne}from"./Popper-704ca55a.js";import{C as Be}from"./CheckIcon-b94a1aa2.js";import{C as Ae}from"./ChevronDownIcon-cf5b6e54.js";import{S as tt}from"./SettingsIcon-cd476525.js";import{T as st,a as nt}from"./index-341edfe1.js";import"./useSlotProps-b8a587b0.js";import"./InfoIcon-de2f1e11.js";const j=d(Ue)` && { color: ${n.white}; border: none; diff --git a/build/assets/index-6b65029d.js b/build/assets/index-d440b5f0.js similarity index 91% rename from build/assets/index-6b65029d.js rename to build/assets/index-d440b5f0.js index f0ece44e7..c5ce29961 100644 --- a/build/assets/index-6b65029d.js +++ b/build/assets/index-d440b5f0.js @@ -1,4 +1,4 @@ -import{x as u,j as t,T as e,f as a,h as o,F as c}from"./index-c522bd40.js";import{A as g,a as b,S as m}from"./SourcesTableIcon-d2644acb.js";import{S as j}from"./SettingsIcon-52b7c188.js";import{u as i}from"./index-dae8afeb.js";const S=()=>{const{open:n}=i("sourcesTable"),{open:d}=i("addItem"),{open:l}=i("addContent"),{open:p}=i("settings"),[x]=u(h=>[h.isAdmin]);return t.jsxs(f,{children:[t.jsx(y,{children:t.jsx("img",{alt:"Second brain",src:"logo.svg"})}),(x||!0)&&t.jsxs(s,{"data-testid":"add-item-modal",onClick:d,children:[t.jsx(r,{children:t.jsx(g,{})}),t.jsx(e,{children:"Add Item"})]}),t.jsxs(s,{"data-testid":"add-content-modal",onClick:l,children:[t.jsx(r,{children:t.jsx(b,{})}),t.jsx(e,{children:"Add Content"})]}),t.jsxs(s,{id:"cy-open-soure-table",onClick:n,children:[t.jsx(r,{children:t.jsx(m,{})}),t.jsx(e,{children:"Source Table"})]}),t.jsxs(s,{"data-testid":"settings-modal",onClick:p,children:[t.jsx(r,{children:t.jsx(j,{})}),t.jsx(e,{children:"Settings"})]})]})},f=a(c).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{x as u,j as t,T as e,f as a,h as o,F as c}from"./index-b85f35cf.js";import{A as g,a as b,S as m}from"./SourcesTableIcon-9e0ca82c.js";import{S as j}from"./SettingsIcon-cd476525.js";import{u as i}from"./index-b9c9b7e2.js";const S=()=>{const{open:n}=i("sourcesTable"),{open:d}=i("addItem"),{open:l}=i("addContent"),{open:p}=i("settings"),[x]=u(h=>[h.isAdmin]);return t.jsxs(f,{children:[t.jsx(y,{children:t.jsx("img",{alt:"Second brain",src:"logo.svg"})}),(x||!0)&&t.jsxs(s,{"data-testid":"add-item-modal",onClick:d,children:[t.jsx(r,{children:t.jsx(g,{})}),t.jsx(e,{children:"Add Item"})]}),t.jsxs(s,{"data-testid":"add-content-modal",onClick:l,children:[t.jsx(r,{children:t.jsx(b,{})}),t.jsx(e,{children:"Add Content"})]}),t.jsxs(s,{id:"cy-open-soure-table",onClick:n,children:[t.jsx(r,{children:t.jsx(m,{})}),t.jsx(e,{children:"Source Table"})]}),t.jsxs(s,{"data-testid":"settings-modal",onClick:p,children:[t.jsx(r,{children:t.jsx(j,{})}),t.jsx(e,{children:"Settings"})]})]})},f=a(c).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-d7a5eaa0.js b/build/assets/index-d7a5eaa0.js new file mode 100644 index 000000000..892fb4574 --- /dev/null +++ b/build/assets/index-d7a5eaa0.js @@ -0,0 +1 @@ +import{j as o}from"./index-b85f35cf.js";import{B as m}from"./index-0c223900.js";import{u as r}from"./index-b9c9b7e2.js";import{c as p}from"./index-49e7e9f0.js";import"./react-toastify.esm-ce67a4f9.js";import"./generateCategoricalChart-a6175423.js";import"./Popover-28c1573e.js";import"./useSlotProps-b8a587b0.js";import"./InfoIcon-de2f1e11.js";import"./index.esm-ac56504e.js";import"./ChevronUpIcon-6e1fca04.js";import"./ChevronDownIcon-cf5b6e54.js";import"./index-341edfe1.js";import"./index-856cc0ad.js";import"./index-e6f0fb8d.js";import"./Popper-704ca55a.js";import"./CheckIcon-b94a1aa2.js";import"./Stack-b0e83988.js";import"./PlusIcon-261fd641.js";const h=()=>{const{close:t}=r("sourcesTable"),{visible:i}=r("addContent");return i?null:o.jsx(m,{background:"BG1",id:"sourcesTable",kind:"large",noWrap:!0,onClose:t,children:o.jsx(p,{})})};export{h as SourcesTableModal}; diff --git a/build/assets/index-488af8fb.js b/build/assets/index-dd766344.js similarity index 96% rename from build/assets/index-488af8fb.js rename to build/assets/index-dd766344.js index a4d965749..955863b3a 100644 --- a/build/assets/index-488af8fb.js +++ b/build/assets/index-dd766344.js @@ -1,4 +1,4 @@ -import{b7 as z,Y as b,v as m,b8 as k,R as j,b9 as E,ba as L,f as u,h as d,x as N,r as h,j as e,F as n,bb as M,T as y,bc as V,C as Y,b4 as q,bg as H,U as W,bf as J,O as K,o as Q,be as X}from"./index-c522bd40.js";import{B as w,c as ee,F as te}from"./react-toastify.esm-1e5f1e5f.js";import{B as ne}from"./index-4e0797a7.js";import{u as se}from"./index-dae8afeb.js";import{C as oe}from"./CheckIcon-1dbe3e4f.js";import{T as _}from"./index-2d16147d.js";import"./index.esm-f21f36d4.js";import"./InfoIcon-6417fafc.js";const C=/\btwitter\.com\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,re=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ie=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,ae=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,ce=/https:\/\/twitter\.com\/[^/]+\/status\/(\d+)/,de=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,le=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ue=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,xe=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,fe=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function he(t){return[ie,fe,re,ae,de].some(s=>s.test(t))?z:ue.test(t)?b:C.test(t)?m:ce.test(t)?k:le.test(t)?j:xe.test(t)?E:L}const we=(t,r="")=>{const a=(r===m?C:/@(\w+)/).exec(t);return a?a[1]:null},B=t=>!!t&&[m,b,j].includes(t),ge=({onClick:t,loading:r,type:s})=>{const a=N(i=>i.budget),[x,o]=h.useState(10),c=B(s)?"radar":"add_node";return h.useEffect(()=>{(async()=>{try{const l=await V(c);o(l.data.price)}catch(l){console.error("cannot fetch",l)}})()},[c]),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(me,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[x," sats"]})]}),e.jsxs(pe,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[M(a)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:r,onClick:t,size:"large",startIcon:e.jsx(oe,{}),type:"submit",variant:"contained",children:"Approve"})})]})},me=u(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{b7 as z,Y as b,v as m,b8 as k,R as j,b9 as E,ba as L,f as u,h as d,x as N,r as h,j as e,F as n,bb as M,T as y,bc as V,C as Y,b4 as q,bg as H,U as W,bf as J,O as K,o as Q,be as X}from"./index-b85f35cf.js";import{B as w,c as ee,F as te}from"./react-toastify.esm-ce67a4f9.js";import{B as ne}from"./index-0c223900.js";import{u as se}from"./index-b9c9b7e2.js";import{C as oe}from"./CheckIcon-b94a1aa2.js";import{T as _}from"./index-e6f0fb8d.js";import"./index.esm-ac56504e.js";import"./InfoIcon-de2f1e11.js";const C=/\btwitter\.com\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,re=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ie=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,ae=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,ce=/https:\/\/twitter\.com\/[^/]+\/status\/(\d+)/,de=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,le=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss.xml|.*.rss|.*\?(feed|format)=rss)$/,ue=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,xe=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,fe=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/;function he(t){return[ie,fe,re,ae,de].some(s=>s.test(t))?z:ue.test(t)?b:C.test(t)?m:ce.test(t)?k:le.test(t)?j:xe.test(t)?E:L}const we=(t,r="")=>{const a=(r===m?C:/@(\w+)/).exec(t);return a?a[1]:null},B=t=>!!t&&[m,b,j].includes(t),ge=({onClick:t,loading:r,type:s})=>{const a=N(i=>i.budget),[x,o]=h.useState(10),c=B(s)?"radar":"add_node";return h.useEffect(()=>{(async()=>{try{const l=await V(c);o(l.data.price)}catch(l){console.error("cannot fetch",l)}})()},[c]),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(me,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[x," sats"]})]}),e.jsxs(pe,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[M(a)," sats"]})]})]}),e.jsx(n,{children:e.jsx(w,{color:"secondary","data-testid":"check-icon",disabled:r,onClick:t,size:"large",startIcon:e.jsx(oe,{}),type:"submit",variant:"contained",children:"Approve"})})]})},me=u(n).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${d.GRAY7}; diff --git a/build/assets/index-7bc58129.js b/build/assets/index-e0d568ee.js similarity index 99% rename from build/assets/index-7bc58129.js rename to build/assets/index-e0d568ee.js index 521eafbfe..33fec9626 100644 --- a/build/assets/index-7bc58129.js +++ b/build/assets/index-e0d568ee.js @@ -1,4 +1,4 @@ -import{r as V,ac as r0,bs as _d,aw as Xh,bt as XT,bu as Ps,bv as Gp,al as Wp,ak as Cr,bw as ZT,bx as Hp,by as Iu,at as _h,bz as vd,bA as QT,bB as KT,bC as JT,bD as s0,bE as $T,bF as eS,bG as tS,V as Ve,bH as pt,bI as nS,_ as ii,bJ as i0,ar as rS,aM as So,bK as Gc,bL as sS,bM as Zh,bN as o0,aA as tp,bO as np,bP as Ea,bQ as iS,bk as jp,bR as us,bS as rp,bT as S_,bU as Qh,bV as zi,am as a0,bW as oS,ao as Uu,au as aS,bX as l0,bY as vh,bZ as lS,b_ as uS,b$ as u0,c0 as Fa,c1 as Jl,c2 as cS,c3 as hS,c4 as fS,c5 as qp,c6 as dS,c7 as pS,j as La,c8 as Yp,c9 as Ar,ca as za,cb as mS,cc as el,cd as gS,ce as _S,cf as vS,cg as yS,ch as TS,ci as Ne,cj as SS,ck as hi,cl as c0,cm as h0,aN as Wc,G as sp,cn as wS,Z as xS}from"./index-c522bd40.js";import{_ as Jt,s as cs}from"./react-toastify.esm-1e5f1e5f.js";var f0={exports:{}},Bo={};/** +import{r as V,ac as r0,bs as _d,aw as Xh,bt as XT,bu as Ps,bv as Gp,al as Wp,ak as Cr,bw as ZT,bx as Hp,by as Iu,at as _h,bz as vd,bA as QT,bB as KT,bC as JT,bD as s0,bE as $T,bF as eS,bG as tS,V as Ve,bH as pt,bI as nS,_ as ii,bJ as i0,ar as rS,aM as So,bK as Gc,bL as sS,bM as Zh,bN as o0,aA as tp,bO as np,bP as Ea,bQ as iS,bk as jp,bR as us,bS as rp,bT as S_,bU as Qh,bV as zi,am as a0,bW as oS,ao as Uu,au as aS,bX as l0,bY as vh,bZ as lS,b_ as uS,b$ as u0,c0 as Fa,c1 as Jl,c2 as cS,c3 as hS,c4 as fS,c5 as qp,c6 as dS,c7 as pS,j as La,c8 as Yp,c9 as Ar,ca as za,cb as mS,cc as el,cd as gS,ce as _S,cf as vS,cg as yS,ch as TS,ci as Ne,cj as SS,ck as hi,cl as c0,cm as h0,aN as Wc,G as sp,cn as wS,Z as xS}from"./index-b85f35cf.js";import{_ as Jt,s as cs}from"./react-toastify.esm-ce67a4f9.js";var f0={exports:{}},Bo={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-2d16147d.js b/build/assets/index-e6f0fb8d.js similarity index 98% rename from build/assets/index-2d16147d.js rename to build/assets/index-e6f0fb8d.js index f03b695f7..f0a99ece7 100644 --- a/build/assets/index-2d16147d.js +++ b/build/assets/index-e6f0fb8d.js @@ -1,4 +1,4 @@ -import{f as N,h as F,r as I,j as E,a6 as fe,ac as de,F as O,T as pe}from"./index-c522bd40.js";import{i as he,D as ge,E as me}from"./react-toastify.esm-1e5f1e5f.js";import{h as ve}from"./index.esm-f21f36d4.js";import{b as be,I as xe}from"./InfoIcon-6417fafc.js";const j={autoComplete:"off",colorName:"black",disabled:!1,maxLength:524288,placeholder:"",placeholderTextColor:"gray100",returnKeyType:"done",textAlign:"left",type:"text"},ke={billTo:"billing organization",city:"billing address-level2",country:"billing country-name",creditCardCVC:"cc-csc",creditCardExpiryDate:"cc-exp",creditCardName:"cc-name",creditCardNumber:"cc-number",currentPassword:"current-password",email:"username email",firstName:"given-name",lastName:"family-name",newPassword:"new-password",off:"off",on:"on",oneTimeCode:"one-time-code",organization:"organization",province:"billing address-level1",streetAddress:"billing street-address",tel:"tel-national",url:"url"},Pe=` +import{f as N,h as F,r as I,j as E,a6 as fe,ac as de,F as O,T as pe}from"./index-b85f35cf.js";import{i as he,D as ge,E as me}from"./react-toastify.esm-ce67a4f9.js";import{h as ve}from"./index.esm-ac56504e.js";import{b as be,I as xe}from"./InfoIcon-de2f1e11.js";const j={autoComplete:"off",colorName:"black",disabled:!1,maxLength:524288,placeholder:"",placeholderTextColor:"gray100",returnKeyType:"done",textAlign:"left",type:"text"},ke={billTo:"billing organization",city:"billing address-level2",country:"billing country-name",creditCardCVC:"cc-csc",creditCardExpiryDate:"cc-exp",creditCardName:"cc-name",creditCardNumber:"cc-number",currentPassword:"current-password",email:"username email",firstName:"given-name",lastName:"family-name",newPassword:"new-password",off:"off",on:"on",oneTimeCode:"one-time-code",organization:"organization",province:"billing address-level1",streetAddress:"billing street-address",tel:"tel-national",url:"url"},Pe=` &:-webkit-autofill:active, &:-webkit-autofill:focus, &:-webkit-autofill:hover { diff --git a/build/assets/index-e6397dbc.js b/build/assets/index-f0140d93.js similarity index 98% rename from build/assets/index-e6397dbc.js rename to build/assets/index-f0140d93.js index edf9cdc9e..aebbdbd4e 100644 --- a/build/assets/index-e6397dbc.js +++ b/build/assets/index-f0140d93.js @@ -1,4 +1,4 @@ -import{r as n,_ as V,aj as Te,ak as De,V as b,ai as U,am as ge,bj as Me,bk as Re,ax as Ae,ay as Le,az as Ge,aA as Ue,aC as Oe,au as Fe,j as d,aE as Be,f as W,h as T,F as X,bl as he,bm as $e,bn as He,bo as Ve,bp as We,bq as qe,br as Y,x as Ye,af as Xe,i as me,aO as Ze,aP as Ke,aQ as Qe,k as Je,l as et,aR as tt,a3 as ot}from"./index-c522bd40.js";import{e as nt,m as re,b as N,g as R,u as xe,p as st,h as rt,i as it,H as Z,k as at,T as ye,l as be,n as ct,L as lt,C as ut,P as dt,A as ft,o as pt,q as gt,j as ht,r as mt,E as xt,V as yt,B as bt,R as ae,O as St,s as wt}from"./index-7bc58129.js";import{j as Se,C as Pt}from"./react-toastify.esm-1e5f1e5f.js";import{u as A,a as S,f as Ct}from"./index-d7d885cc.js";import{D as we}from"./DeleteIcon-9344ab3f.js";import{d as vt}from"./index.esm-f21f36d4.js";import{E as _t}from"./EditIcon-26187d62.js";import{P as jt}from"./PlusIcon-8eca7748.js";import{u as Q}from"./index-dae8afeb.js";import"./index-0a908253.js";const ce=new ge,J=new Me,le=new Re,ee=new b;class kt extends Te{constructor(){super(),this.size=0,this.color=new De("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,i){var s,a;const r=this.instance.current;if(!r||!r.geometry)return;const l=r.userData.instances.indexOf(this.instanceKey);if(l===-1||l>r.geometry.drawRange.count)return;const o=(s=(a=t.params.Points)==null?void 0:a.threshold)!==null&&s!==void 0?s:1;if(le.set(this.getWorldPosition(ee),o),t.ray.intersectsSphere(le)===!1)return;ce.copy(r.matrixWorld).invert(),J.copy(t.ray).applyMatrix4(ce);const c=o/((this.scale.x+this.scale.y+this.scale.z)/3),h=c*c,p=J.distanceSqToPoint(ee);if(pt.far)return;i.push({distance:g,distanceToRay:Math.sqrt(p),point:u,index:l,face:null,object:this})}}}let L,F;const Pe=n.createContext(null),ue=new ge,de=new b,Nt=n.forwardRef(({children:e,range:t,limit:i=1e3,...s},a)=>{const r=n.useRef(null),[l,o]=n.useState([]),[[c,h,p]]=n.useState(()=>[new Float32Array(i*3),Float32Array.from({length:i*3},()=>1),Float32Array.from({length:i},()=>1)]);n.useEffect(()=>{r.current.geometry.attributes.position.needsUpdate=!0}),N(()=>{for(r.current.updateMatrix(),r.current.updateMatrixWorld(),ue.copy(r.current.matrixWorld).invert(),r.current.geometry.drawRange.count=Math.min(i,t!==void 0?t:i,l.length),L=0;L({getParent:()=>r,subscribe:g=>(o(y=>[...y,g]),()=>o(y=>y.filter(P=>P.current!==g.current)))}),[]);return n.createElement("points",V({userData:{instances:l},matrixAutoUpdate:!1,ref:re([a,r]),raycast:()=>null},s),n.createElement("bufferGeometry",null,n.createElement("bufferAttribute",{attach:"attributes-position",count:c.length/3,array:c,itemSize:3,usage:U}),n.createElement("bufferAttribute",{attach:"attributes-color",count:h.length/3,array:h,itemSize:3,usage:U}),n.createElement("bufferAttribute",{attach:"attributes-size",count:p.length,array:p,itemSize:1,usage:U})),n.createElement(Pe.Provider,{value:u},e))}),Et=n.forwardRef(({children:e,...t},i)=>{n.useMemo(()=>nt({PositionPoint:kt}),[]);const s=n.useRef(),{subscribe:a,getParent:r}=n.useContext(Pe);return n.useLayoutEffect(()=>a(s),[]),n.createElement("positionPoint",V({instance:r(),instanceKey:s,ref:re([i,s])},t),e)}),zt=n.forwardRef(({children:e,positions:t,colors:i,sizes:s,stride:a=3,...r},l)=>{const o=n.useRef(null);return N(()=>{const c=o.current.geometry.attributes;c.position.needsUpdate=!0,i&&(c.color.needsUpdate=!0),s&&(c.size.needsUpdate=!0)}),n.createElement("points",V({ref:re([l,o])},r),n.createElement("bufferGeometry",null,n.createElement("bufferAttribute",{attach:"attributes-position",count:t.length/a,array:t,itemSize:a,usage:U}),i&&n.createElement("bufferAttribute",{attach:"attributes-color",count:i.length/a,array:i,itemSize:3,usage:U}),s&&n.createElement("bufferAttribute",{attach:"attributes-size",count:s.length/a,array:s,itemSize:1,usage:U})),e)}),It=n.forwardRef((e,t)=>e.positions instanceof Float32Array?n.createElement(zt,V({},e,{ref:t})):n.createElement(Nt,V({},e,{ref:t}))),Tt=(e,t,i,s,a)=>{const r=new Le,l=1e-5;r.absarc(l,l,l,-Math.PI/2,-Math.PI,!0),r.absarc(l,t-s*2,l,Math.PI,Math.PI/2,!0),r.absarc(e-s*2,t-s*2,l,Math.PI/2,0,!0),r.absarc(e-s*2,l,l,0,-Math.PI/2,!0);const o=new Ge(r,{depth:i-s*2,bevelEnabled:!0,bevelSegments:a,steps:2,bevelSize:s,bevelThickness:s,curveSegments:a});o.center();const c=[],h=o.getAttribute("normal"),p=o.getAttribute("position");for(let u=0;u.9?(P=y.x/e+.5,v=1-(y.z/i+.5)):Math.abs(g.x)>.9?(P=-y.z/i+.5,v=1-(-y.y/t+.5)):Math.abs(g.z)>.9&&(P=y.x/e+.5,v=1-(-y.y/t+.5)),c.push(P,v)}return o.setAttribute("uv",new Ue(c,2)),o};Tt(10,10,10,2,10);new Ae(10,10,10);const Dt=500,Mt=800,Rt=new b(0,0,0),At=16777215;let B=null;const Lt=500,ie=(e,t)=>{if(B)return null;B=setTimeout(()=>{B&&(clearTimeout(B),B=null)},Lt);const i=[];return e.forEach(a=>{const r=t.position.distanceTo(Rt.set(a.x,a.y,a.z));ra.distance-r.distance).slice(0,Dt).map(a=>a.id)},M=new b(0,0,0),fe=100,Gt=600,Ut=2e3,te={x:172.7392402058252,y:-239.04675366094037,z:-2e3};let G,$;const Ot=4e3,Ft=2e3,Bt=e=>{const t=A(),i=S(m=>m.cameraFocusTrigger),s=R(m=>m.isUserDragging),a=R(m=>m.isUserScrolling),r=R(m=>m.setUserMovedCamera),l=S(m=>m.setNearbyNodeIds),o=S(m=>m.showSelectionGraph),c=S(m=>m.data),h=S(m=>m.graphStyle),{camera:p}=xe(),[u,g]=n.useState(!1),[y,P]=n.useState(!1),[v,E]=n.useState(fe),f=n.useMemo(()=>{if(o)return new b(0,0,0);const m=c==null?void 0:c.nodes.find(I=>I.ref_id===(t==null?void 0:t.ref_id));let _=new b(2e3,2e3,3e3);if(m&&c){const I=[],O=new b(m.x,m.y,m.z);let K=new b(0,0,0);I.map(q=>(K=K.add(new b(q.x,q.y,q.z).normalize()),q));const ze=m.edge_count?1-1/(m.edge_count+10):1,Ie=O.sub(K).multiplyScalar(.8*ze);_=O.add(Ie)}return _},[o,t,c]),C=n.useMemo(()=>{if(o)return new b(0,0,0);const m=c==null?void 0:c.nodes.find(_=>_.ref_id===(t==null?void 0:t.ref_id));return new b((m==null?void 0:m.x)||0,(m==null?void 0:m.y)||0,(m==null?void 0:m.z)||0)},[o,t,c]);n.useEffect(()=>{var m;o&&((m=e.current)==null||m.setLookAt(te.x,te.y,te.z,0,0,0,!1)),j()},[o]),n.useEffect(()=>{o?E(Ut):(t==null?void 0:t.node_type)==="topic"?E(Gt):E(fe)},[t,E,o]),n.useEffect(()=>{x()},[i]),n.useEffect(()=>{(s||a)&&(g(!0),P(!0))},[s,a,g,P]),n.useEffect(()=>{if(t)if(!o&&h==="earth"&&(e!=null&&e.current)){const m=e.current.camera.position.distanceTo(new b),_=Oe(C,-m/2);e.current.setLookAt(_.x,_.y,_.z,0,0,0,!0)}else G&&clearTimeout(G),G=setTimeout(()=>{P(!0),clearTimeout(G)},Ft),j();return()=>{G&&clearTimeout(G),$&&clearTimeout($)}},[t]),N(m=>{e.current&&(u||w(f,m.camera),y||z(C,m.camera))});const j=()=>{if(t){const m=p.position.distanceTo(f);st(m)}x()},x=()=>{g(!1),P(!1),r(!1),$&&clearTimeout($),$=setTimeout(()=>{g(!0),P(!0)},Ot)},w=(m,_)=>{if(_.position.distanceTo(m){var I;(I=e==null?void 0:e.current)==null||I.setLookAt(_.position.x,_.position.y,_.position.z,m.x,m.y,m.z,!0)};return null},$t=1;let D=null;const Ht=(e,{enabled:t})=>{const i=A();Bt(e);const s=R(p=>p.isUserDragging),a=S(p=>p.disableCameraRotation),r=S(p=>p.data),l=S(p=>p.graphStyle),o=S(p=>p.graphRadius),c=S(p=>p.setNearbyNodeIds);n.useEffect(()=>{t||(D==null||D.kill(),D=null)},[t]);const h=n.useCallback(()=>{D==null||D.kill();const p={value:-244},u=rt.to(p,{duration:5,keyframes:{"0%":{value:10},"100%":{delay:2,ease:"Power4.easeIn",value:-200}},onComplete:()=>{D=null},onInterrupt(){u.kill()},onUpdate:()=>{var y;const{value:g}=p;if(e.current){const P=ie((r==null?void 0:r.nodes)||[],e.current.camera);P&&c(P),(y=e.current)==null||y.dolly(g,!1)}}});u.play(),D=u},[]);return n.useEffect(()=>{e.current&&o&&(l==="sphere"?(e.current.maxDistance=8e3,e.current.minDistance=200,e.current.setTarget(0,0,500,!0)):(e.current.maxDistance=e.current.getDistanceToFitSphere(o+200),e.current.minDistance=100))},[o,l,e]),n.useEffect(()=>{h()},[h,l]),n.useEffect(()=>{!i&&e.current&&e.current.setLookAt(M.x,M.y,M.z,0,0,0,!0)},[i]),N((p,u)=>{e.current&&(!a&&!s&&(e.current.azimuthAngle+=$t*u*Fe.DEG2RAD),e.current.update(u))}),null},Vt=({disableAnimations:e})=>{const t=n.useRef(null),i=S(g=>g.graphStyle),s=S(g=>g.data),a=S(g=>g.setNearbyNodeIds),r=S(g=>g.setDisableCameraRotation),[l]=n.useState(.8),{camera:o}=xe(),[c,h,p,u]=R(g=>[g.isUserDragging,g.setIsUserDragging,g.isUserScrolling,g.isUserScrollingOnHtmlPanel]);return Ht(t,{enabled:!e&&!p&&!c}),n.useEffect(()=>{t.current&&t.current.setLookAt(M.x,M.y,M.z,0,0,0,!0)},[i]),n.useEffect(()=>{if(!c){const g=ie((s==null?void 0:s.nodes)||[],o);g&&a(g)}},[o,o.position,o.position.x,o.position.y,o.position.z,s==null?void 0:s.nodes,a,c]),n.useEffect(()=>{c&&r(!0)},[c,r]),d.jsx(it,{ref:t,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>h(!1),onStart:()=>h(!0),smoothTime:l})},Wt=["#ffffff","#ffffcc","#ccffcc","#ffccff","#ccccff","#ffd699","#c2f0c2","#ff6666","#99ccff","#ffb3b3"],qt=new b,Yt=({position:e,userData:t})=>{const i=n.useRef(null),[s,a]=S(o=>[o.selectedNode,o.nodeTypes]),r=S(o=>o.showSelectionGraph);return N(()=>{if(r&&i.current){const o=qt.set((t==null?void 0:t.x)||0,(t==null?void 0:t.y)||0,(t==null?void 0:t.z)||0);i.current.position.copy(o)}}),n.useEffect(()=>function(){i.current&&i.current.clear()},[i]),(s==null?void 0:s.ref_id)===(t==null?void 0:t.ref_id)?null:d.jsx("group",{ref:i,position:e,children:d.jsx(Z,{center:!0,sprite:!0,zIndexRange:[0,0],children:d.jsx(Xt,{bgColor:Wt[Math.max(a.indexOf(t.node_type),0)],children:t.node_type})})})},Ce=n.memo(()=>{const e=S(r=>r.data),t=S(r=>r.showSelectionGraph),i=S(r=>r.selectionGraphData),s=S(r=>r.selectedNodeRelativeIds),a=n.useMemo(()=>(t?i.nodes:(e==null?void 0:e.nodes)||[]).filter(c=>s.includes((c==null?void 0:c.ref_id)||"")).slice(0,Be).map(c=>{const h=new b((c==null?void 0:c.x)||0,(c==null?void 0:c.y)||0,(c==null?void 0:c.z)||0),p=[];return d.jsx(Yt,{position:h,relativeIds:p,userData:c},`node-badge-${c.ref_id}`)}),[s,e==null?void 0:e.nodes,t,i]);return d.jsx(n.Fragment,{children:a.length?a:null},"node-badges")});Ce.displayName="RelevanceBadges";const Xt=W.div` +import{r as n,_ as V,aj as Te,ak as De,V as b,ai as U,am as ge,bj as Me,bk as Re,ax as Ae,ay as Le,az as Ge,aA as Ue,aC as Oe,au as Fe,j as d,aE as Be,f as W,h as T,F as X,bl as he,bm as $e,bn as He,bo as Ve,bp as We,bq as qe,br as Y,x as Ye,af as Xe,i as me,aO as Ze,aP as Ke,aQ as Qe,k as Je,l as et,aR as tt,a3 as ot}from"./index-b85f35cf.js";import{e as nt,m as re,b as N,g as R,u as xe,p as st,h as rt,i as it,H as Z,k as at,T as ye,l as be,n as ct,L as lt,C as ut,P as dt,A as ft,o as pt,q as gt,j as ht,r as mt,E as xt,V as yt,B as bt,R as ae,O as St,s as wt}from"./index-e0d568ee.js";import{j as Se,C as Pt}from"./react-toastify.esm-ce67a4f9.js";import{u as A,a as S,f as Ct}from"./index-3e35ec51.js";import{D as we}from"./DeleteIcon-7b7519eb.js";import{d as vt}from"./index.esm-ac56504e.js";import{E as _t}from"./EditIcon-67ff5cde.js";import{P as jt}from"./PlusIcon-261fd641.js";import{u as Q}from"./index-b9c9b7e2.js";import"./index-f774867a.js";const ce=new ge,J=new Me,le=new Re,ee=new b;class kt extends Te{constructor(){super(),this.size=0,this.color=new De("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var t;return(t=this.instance.current)==null?void 0:t.geometry}raycast(t,i){var s,a;const r=this.instance.current;if(!r||!r.geometry)return;const l=r.userData.instances.indexOf(this.instanceKey);if(l===-1||l>r.geometry.drawRange.count)return;const o=(s=(a=t.params.Points)==null?void 0:a.threshold)!==null&&s!==void 0?s:1;if(le.set(this.getWorldPosition(ee),o),t.ray.intersectsSphere(le)===!1)return;ce.copy(r.matrixWorld).invert(),J.copy(t.ray).applyMatrix4(ce);const c=o/((this.scale.x+this.scale.y+this.scale.z)/3),h=c*c,p=J.distanceSqToPoint(ee);if(pt.far)return;i.push({distance:g,distanceToRay:Math.sqrt(p),point:u,index:l,face:null,object:this})}}}let L,F;const Pe=n.createContext(null),ue=new ge,de=new b,Nt=n.forwardRef(({children:e,range:t,limit:i=1e3,...s},a)=>{const r=n.useRef(null),[l,o]=n.useState([]),[[c,h,p]]=n.useState(()=>[new Float32Array(i*3),Float32Array.from({length:i*3},()=>1),Float32Array.from({length:i},()=>1)]);n.useEffect(()=>{r.current.geometry.attributes.position.needsUpdate=!0}),N(()=>{for(r.current.updateMatrix(),r.current.updateMatrixWorld(),ue.copy(r.current.matrixWorld).invert(),r.current.geometry.drawRange.count=Math.min(i,t!==void 0?t:i,l.length),L=0;L({getParent:()=>r,subscribe:g=>(o(y=>[...y,g]),()=>o(y=>y.filter(P=>P.current!==g.current)))}),[]);return n.createElement("points",V({userData:{instances:l},matrixAutoUpdate:!1,ref:re([a,r]),raycast:()=>null},s),n.createElement("bufferGeometry",null,n.createElement("bufferAttribute",{attach:"attributes-position",count:c.length/3,array:c,itemSize:3,usage:U}),n.createElement("bufferAttribute",{attach:"attributes-color",count:h.length/3,array:h,itemSize:3,usage:U}),n.createElement("bufferAttribute",{attach:"attributes-size",count:p.length,array:p,itemSize:1,usage:U})),n.createElement(Pe.Provider,{value:u},e))}),Et=n.forwardRef(({children:e,...t},i)=>{n.useMemo(()=>nt({PositionPoint:kt}),[]);const s=n.useRef(),{subscribe:a,getParent:r}=n.useContext(Pe);return n.useLayoutEffect(()=>a(s),[]),n.createElement("positionPoint",V({instance:r(),instanceKey:s,ref:re([i,s])},t),e)}),zt=n.forwardRef(({children:e,positions:t,colors:i,sizes:s,stride:a=3,...r},l)=>{const o=n.useRef(null);return N(()=>{const c=o.current.geometry.attributes;c.position.needsUpdate=!0,i&&(c.color.needsUpdate=!0),s&&(c.size.needsUpdate=!0)}),n.createElement("points",V({ref:re([l,o])},r),n.createElement("bufferGeometry",null,n.createElement("bufferAttribute",{attach:"attributes-position",count:t.length/a,array:t,itemSize:a,usage:U}),i&&n.createElement("bufferAttribute",{attach:"attributes-color",count:i.length/a,array:i,itemSize:3,usage:U}),s&&n.createElement("bufferAttribute",{attach:"attributes-size",count:s.length/a,array:s,itemSize:1,usage:U})),e)}),It=n.forwardRef((e,t)=>e.positions instanceof Float32Array?n.createElement(zt,V({},e,{ref:t})):n.createElement(Nt,V({},e,{ref:t}))),Tt=(e,t,i,s,a)=>{const r=new Le,l=1e-5;r.absarc(l,l,l,-Math.PI/2,-Math.PI,!0),r.absarc(l,t-s*2,l,Math.PI,Math.PI/2,!0),r.absarc(e-s*2,t-s*2,l,Math.PI/2,0,!0),r.absarc(e-s*2,l,l,0,-Math.PI/2,!0);const o=new Ge(r,{depth:i-s*2,bevelEnabled:!0,bevelSegments:a,steps:2,bevelSize:s,bevelThickness:s,curveSegments:a});o.center();const c=[],h=o.getAttribute("normal"),p=o.getAttribute("position");for(let u=0;u.9?(P=y.x/e+.5,v=1-(y.z/i+.5)):Math.abs(g.x)>.9?(P=-y.z/i+.5,v=1-(-y.y/t+.5)):Math.abs(g.z)>.9&&(P=y.x/e+.5,v=1-(-y.y/t+.5)),c.push(P,v)}return o.setAttribute("uv",new Ue(c,2)),o};Tt(10,10,10,2,10);new Ae(10,10,10);const Dt=500,Mt=800,Rt=new b(0,0,0),At=16777215;let B=null;const Lt=500,ie=(e,t)=>{if(B)return null;B=setTimeout(()=>{B&&(clearTimeout(B),B=null)},Lt);const i=[];return e.forEach(a=>{const r=t.position.distanceTo(Rt.set(a.x,a.y,a.z));ra.distance-r.distance).slice(0,Dt).map(a=>a.id)},M=new b(0,0,0),fe=100,Gt=600,Ut=2e3,te={x:172.7392402058252,y:-239.04675366094037,z:-2e3};let G,$;const Ot=4e3,Ft=2e3,Bt=e=>{const t=A(),i=S(m=>m.cameraFocusTrigger),s=R(m=>m.isUserDragging),a=R(m=>m.isUserScrolling),r=R(m=>m.setUserMovedCamera),l=S(m=>m.setNearbyNodeIds),o=S(m=>m.showSelectionGraph),c=S(m=>m.data),h=S(m=>m.graphStyle),{camera:p}=xe(),[u,g]=n.useState(!1),[y,P]=n.useState(!1),[v,E]=n.useState(fe),f=n.useMemo(()=>{if(o)return new b(0,0,0);const m=c==null?void 0:c.nodes.find(I=>I.ref_id===(t==null?void 0:t.ref_id));let _=new b(2e3,2e3,3e3);if(m&&c){const I=[],O=new b(m.x,m.y,m.z);let K=new b(0,0,0);I.map(q=>(K=K.add(new b(q.x,q.y,q.z).normalize()),q));const ze=m.edge_count?1-1/(m.edge_count+10):1,Ie=O.sub(K).multiplyScalar(.8*ze);_=O.add(Ie)}return _},[o,t,c]),C=n.useMemo(()=>{if(o)return new b(0,0,0);const m=c==null?void 0:c.nodes.find(_=>_.ref_id===(t==null?void 0:t.ref_id));return new b((m==null?void 0:m.x)||0,(m==null?void 0:m.y)||0,(m==null?void 0:m.z)||0)},[o,t,c]);n.useEffect(()=>{var m;o&&((m=e.current)==null||m.setLookAt(te.x,te.y,te.z,0,0,0,!1)),j()},[o]),n.useEffect(()=>{o?E(Ut):(t==null?void 0:t.node_type)==="topic"?E(Gt):E(fe)},[t,E,o]),n.useEffect(()=>{x()},[i]),n.useEffect(()=>{(s||a)&&(g(!0),P(!0))},[s,a,g,P]),n.useEffect(()=>{if(t)if(!o&&h==="earth"&&(e!=null&&e.current)){const m=e.current.camera.position.distanceTo(new b),_=Oe(C,-m/2);e.current.setLookAt(_.x,_.y,_.z,0,0,0,!0)}else G&&clearTimeout(G),G=setTimeout(()=>{P(!0),clearTimeout(G)},Ft),j();return()=>{G&&clearTimeout(G),$&&clearTimeout($)}},[t]),N(m=>{e.current&&(u||w(f,m.camera),y||z(C,m.camera))});const j=()=>{if(t){const m=p.position.distanceTo(f);st(m)}x()},x=()=>{g(!1),P(!1),r(!1),$&&clearTimeout($),$=setTimeout(()=>{g(!0),P(!0)},Ot)},w=(m,_)=>{if(_.position.distanceTo(m){var I;(I=e==null?void 0:e.current)==null||I.setLookAt(_.position.x,_.position.y,_.position.z,m.x,m.y,m.z,!0)};return null},$t=1;let D=null;const Ht=(e,{enabled:t})=>{const i=A();Bt(e);const s=R(p=>p.isUserDragging),a=S(p=>p.disableCameraRotation),r=S(p=>p.data),l=S(p=>p.graphStyle),o=S(p=>p.graphRadius),c=S(p=>p.setNearbyNodeIds);n.useEffect(()=>{t||(D==null||D.kill(),D=null)},[t]);const h=n.useCallback(()=>{D==null||D.kill();const p={value:-244},u=rt.to(p,{duration:5,keyframes:{"0%":{value:10},"100%":{delay:2,ease:"Power4.easeIn",value:-200}},onComplete:()=>{D=null},onInterrupt(){u.kill()},onUpdate:()=>{var y;const{value:g}=p;if(e.current){const P=ie((r==null?void 0:r.nodes)||[],e.current.camera);P&&c(P),(y=e.current)==null||y.dolly(g,!1)}}});u.play(),D=u},[]);return n.useEffect(()=>{e.current&&o&&(l==="sphere"?(e.current.maxDistance=8e3,e.current.minDistance=200,e.current.setTarget(0,0,500,!0)):(e.current.maxDistance=e.current.getDistanceToFitSphere(o+200),e.current.minDistance=100))},[o,l,e]),n.useEffect(()=>{h()},[h,l]),n.useEffect(()=>{!i&&e.current&&e.current.setLookAt(M.x,M.y,M.z,0,0,0,!0)},[i]),N((p,u)=>{e.current&&(!a&&!s&&(e.current.azimuthAngle+=$t*u*Fe.DEG2RAD),e.current.update(u))}),null},Vt=({disableAnimations:e})=>{const t=n.useRef(null),i=S(g=>g.graphStyle),s=S(g=>g.data),a=S(g=>g.setNearbyNodeIds),r=S(g=>g.setDisableCameraRotation),[l]=n.useState(.8),{camera:o}=xe(),[c,h,p,u]=R(g=>[g.isUserDragging,g.setIsUserDragging,g.isUserScrolling,g.isUserScrollingOnHtmlPanel]);return Ht(t,{enabled:!e&&!p&&!c}),n.useEffect(()=>{t.current&&t.current.setLookAt(M.x,M.y,M.z,0,0,0,!0)},[i]),n.useEffect(()=>{if(!c){const g=ie((s==null?void 0:s.nodes)||[],o);g&&a(g)}},[o,o.position,o.position.x,o.position.y,o.position.z,s==null?void 0:s.nodes,a,c]),n.useEffect(()=>{c&&r(!0)},[c,r]),d.jsx(it,{ref:t,boundaryEnclosesCamera:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>h(!1),onStart:()=>h(!0),smoothTime:l})},Wt=["#ffffff","#ffffcc","#ccffcc","#ffccff","#ccccff","#ffd699","#c2f0c2","#ff6666","#99ccff","#ffb3b3"],qt=new b,Yt=({position:e,userData:t})=>{const i=n.useRef(null),[s,a]=S(o=>[o.selectedNode,o.nodeTypes]),r=S(o=>o.showSelectionGraph);return N(()=>{if(r&&i.current){const o=qt.set((t==null?void 0:t.x)||0,(t==null?void 0:t.y)||0,(t==null?void 0:t.z)||0);i.current.position.copy(o)}}),n.useEffect(()=>function(){i.current&&i.current.clear()},[i]),(s==null?void 0:s.ref_id)===(t==null?void 0:t.ref_id)?null:d.jsx("group",{ref:i,position:e,children:d.jsx(Z,{center:!0,sprite:!0,zIndexRange:[0,0],children:d.jsx(Xt,{bgColor:Wt[Math.max(a.indexOf(t.node_type),0)],children:t.node_type})})})},Ce=n.memo(()=>{const e=S(r=>r.data),t=S(r=>r.showSelectionGraph),i=S(r=>r.selectionGraphData),s=S(r=>r.selectedNodeRelativeIds),a=n.useMemo(()=>(t?i.nodes:(e==null?void 0:e.nodes)||[]).filter(c=>s.includes((c==null?void 0:c.ref_id)||"")).slice(0,Be).map(c=>{const h=new b((c==null?void 0:c.x)||0,(c==null?void 0:c.y)||0,(c==null?void 0:c.z)||0),p=[];return d.jsx(Yt,{position:h,relativeIds:p,userData:c},`node-badge-${c.ref_id}`)}),[s,e==null?void 0:e.nodes,t,i]);return d.jsx(n.Fragment,{children:a.length?a:null},"node-badges")});Ce.displayName="RelevanceBadges";const Xt=W.div` position: absolute; left: 50%; top: 20%; diff --git a/build/assets/index-f4a6d193.js b/build/assets/index-f4a6d193.js deleted file mode 100644 index 35ccbaca2..000000000 --- a/build/assets/index-f4a6d193.js +++ /dev/null @@ -1,127 +0,0 @@ -import{f as u,h as g,F as t,T as S,x as $,r as f,j as e,bb as q,bc as W,C as B,b3 as H,I as K,b5 as Q,i as X,b4 as N,U as _,bg as Z,o as ee,be as te}from"./index-c522bd40.js";import{B as T,C as M,i as se,c as oe,F as ne}from"./react-toastify.esm-1e5f1e5f.js";import{B as re}from"./index-4e0797a7.js";import{u as I}from"./index-dae8afeb.js";import{S as ie}from"./index-aaab6905.js";import{h as ae}from"./index.esm-f21f36d4.js";import{C as ce}from"./CheckIcon-1dbe3e4f.js";import{T as E}from"./index-2d16147d.js";import{p as le}from"./index-30d16895.js";import{A as de}from"./index-211330ba.js";import{a as pe,i as xe}from"./constants-cde8ebc3.js";import"./InfoIcon-6417fafc.js";import"./Popover-243f389d.js";import"./useSlotProps-96b7890f.js";import"./Select-72591674.js";import"./Stack-f811e4d7.js";import"./Popper-831e364f.js";const me=({onClick:s,loading:p,error:a})=>{const m=$(i=>i.budget),[c,n]=f.useState(10),r="node";return f.useEffect(()=>{(async()=>{try{const h=await W(r);n(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[r]),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(ue,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(he,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[c," sats"]})]}),e.jsxs(fe,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[q(m)," sats"]})]})]}),e.jsx(t,{children:e.jsx(T,{color:"secondary","data-testid":"check-icon",disabled:p||!!a,onClick:s,size:"large",startIcon:p?e.jsx(M,{size:24}):e.jsx(ce,{}),type:"submit",variant:"contained",children:"Approve"})}),a?e.jsxs(ge,{role:"tooltip",children:[e.jsxs(ye,{children:[e.jsx(ae,{fontSize:13}),e.jsx("span",{children:a})]}),e.jsx("div",{className:"tooltip",children:a})]}):null]})},he=u(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` - width: 141px; - height: 61px; - border: 1px solid ${g.GRAY7}; - border-radius: 6px; - padding: 16px; - .title { - font-family: Barlow; - color: ${g.secondaryText4}; - font-size: 11px; - font-style: normal; - font-weight: 600; - } - - .value { - font-family: Barlow; - color: ${g.white}; - font-size: 18px; - font-style: normal; - font-weight: 500; - } -`,fe=u(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` - color: ${g.secondaryText4}; - .title { - font-family: Barlow; - font-size: 11px; - font-style: normal; - font-weight: 600; - } - - .value { - font-family: Barlow; - font-size: 14px; - font-style: normal; - font-weight: 400; - } -`,ue=u(S)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,ye=u(t)` - display: -webkit-box; - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - overflow: hidden; - white-space: normal; - letter-spacing: 0.2px; - cursor: pointer; - padding-left: 4px; - font-size: 13px; - font-family: Barlow; - line-height: 18px; - justify-content: center; - - span { - margin-left: 4px; - } -`,ge=u(t)` - display: flex; - align-items: center; - color: ${g.primaryRed}; - position: relative; - margin-top: 20px; - - .tooltip { - position: absolute; - background-color: ${g.black}; - opacity: 0.8; - border-radius: 4px; - color: ${g.white}; - top: -10px; - left: 335px; - padding: 4px 8px; - font-size: 13px; - font-family: Barlow; - visibility: hidden; - width: 175px; - z-index: 1; - } - - &:hover .tooltip { - visibility: visible; - } - - &:focus .tooltip { - visibility: visible; - } -`,je=({type:s,onclose:p})=>e.jsxs(t,{children:[e.jsx(t,{mb:20,children:e.jsx(F,{children:"Comfirm New Type"})}),e.jsx(t,{mb:25,children:e.jsxs(F,{children:["Type: ",s]})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(T,{color:"secondary",onClick:p,size:"large",variant:"contained",children:"Cancel"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(T,{color:"secondary",size:"large",type:"submit",variant:"contained",children:"Confirm"})})]})]}),F=u(S)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,we=({skipToStep:s,nodeType:p})=>{const[a,m]=f.useState(!1),[c,n]=f.useState(),{watch:r,formState:{isValid:i}}=se();f.useEffect(()=>{(async()=>{m(!0);const x=await H(p),o=le(x);n(o),m(!1)})()},[p,r]);const h=l=>l.charAt(0).toUpperCase()+l.slice(1).replace(/_/g," ");return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(be,{children:"Set Attributes"})})}),e.jsx(Se,{children:a?e.jsx(t,{style:{margin:"auto"},children:e.jsx(M,{color:g.SECONDARY_BLUE})}):e.jsx(t,{className:"input__wrapper",children:c==null?void 0:c.map(({key:l,required:x})=>e.jsx(e.Fragment,{children:e.jsxs(Te,{children:[e.jsx(S,{children:h(l)}),e.jsx(E,{id:"item-name",name:l,placeholder:x?"Required":"Optional",rules:{...x?B:{}}})]})}))})}),e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(T,{color:"secondary",onClick:()=>s("sourceType"),size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(T,{color:"secondary",disabled:!i||a||(c==null?void 0:c.some(l=>l.required&&!r(l.key))),onClick:()=>s("setBudget"),size:"large",variant:"contained",children:"Next"})})]})]})},be=u(S)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,Se=u(t)` - width: 100%; - display: flex; - justify-content: center; - gap: 10px; - margin: 0 0 15px 0; - - .input__wrapper { - display: flex; - gap: 15px; - max-height: 225px; - overflow-y: auto; - padding-right: 20px; - width: calc(100% + 20px); - } -`,Te=u(t)` - display: flex; - gap: 10px; - - #item-name { - color: ${g.GRAY7}; - -webkit-text-fill-color: ${g.GRAY7}; - } -`,Ce=({type:s,skipToStep:p,name:a,sourceLink:m})=>{const c=s==="Image"?a&&m:a;return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(Ne,{children:"Enter details"})})}),e.jsx(t,{mb:4,children:e.jsxs(S,{children:[s," name"]})}),e.jsx(t,{mb:12,children:e.jsx(E,{id:"cy-item-name",maxLength:250,name:"typeName",placeholder:"Paste name here...",rules:{...B}})}),s==="Image"?e.jsxs(e.Fragment,{children:[e.jsx(t,{mb:4,children:e.jsx(S,{children:"Link"})}),e.jsx(t,{mb:12,children:e.jsx(E,{id:"cy-item-link",maxLength:250,name:"sourceLink",placeholder:"Paste link here...",rules:{...B}})})]}):null,e.jsxs(t,{direction:"row",children:[e.jsx(t,{grow:1,children:e.jsx(T,{color:"secondary",onClick:()=>p("sourceType"),size:"large",variant:"contained",children:"Prev"})}),e.jsx(t,{grow:1,ml:20,children:e.jsx(T,{color:"secondary",disabled:!c,onClick:()=>p("setBudget"),size:"large",variant:"contained",children:"Next"})})]})]})},Ne=u(S)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,ke=s=>s.charAt(0).toUpperCase()+s.slice(1),ve=({skipToStep:s,allowNextStep:p,onSelectType:a,selectedType:m})=>{const[c]=K(x=>[x.customSchemaFlag]),[n,r]=f.useState(null),[i,h]=f.useState(!1);f.useEffect(()=>{(async()=>{if(c){h(!0);try{const o=await Q(),j=["about","schema"],y=o.schemas.filter(w=>!j.includes(w.type)&&!w.is_deleted).map(w=>({label:ke(w.type),value:w.type,type:w.type,action:()=>s("setAttribues")}));r(y)}catch(o){console.warn(o)}finally{h(!1)}}else r([...pe,xe])})()},[m,c,s]);const l=x=>{a((x==null?void 0:x.label)||"")};return e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ze,{children:"Select Type"})})}),e.jsx(t,{direction:"row",mb:20,children:e.jsx(de,{autoFocus:!0,isLoading:i,onSelect:l,options:n})}),e.jsx(t,{children:e.jsx(T,{color:"secondary",disabled:!p,onClick:()=>s("source"),size:"large",type:"button",variant:"contained",children:"Next"})})]})},ze=u(S)` - font-size: 22px; - font-weight: 600; - font-family: 'Barlow'; -`,Be=async(s,p,a)=>{var m,c;if(s.nodeType==="Create custom type"){s.type;try{const n=await _.post("/schema",JSON.stringify(s),{});if(n.error){const{message:r}=n.error;throw new Error(r)}a(s,(m=n==null?void 0:n.data)==null?void 0:m.ref_id),close()}catch(n){let r=N;if(n.status===400){const i=await n.json();r=i.errorCode||(i==null?void 0:i.status)||N}else n instanceof Error&&(r=n.message);throw new Error(r)}}else{const n="node",{nodeType:r,typeName:i,...h}=s,l={node_data:{...h},node_type:r,name:i};s.nodeType==="Image"&&(l.node_data={...s.node_data,source_link:s.sourceLink});let x="";await Z(async()=>{const o=await ee.enable();l.pubkey=o==null?void 0:o.pubkey,x=await te()});try{const o=await _.post(`/${n}`,JSON.stringify(l),{Authorization:x});if(o.error){const{message:j}=o.error;throw new Error(j)}a(s,(c=o==null?void 0:o.data)==null?void 0:c.ref_id),close()}catch(o){let j=N;if(o.status===400)try{const y=await o.json();j=y.message||y.errorCode||(y==null?void 0:y.status)||N}catch{j=N}else o instanceof Error&&(j=o.message);throw new Error(j)}}},qe=()=>{const[s,p]=f.useState("sourceType"),{close:a,visible:m}=I("addItem"),{open:c}=I("addType"),[n]=$(d=>[d.setBudget]),r=oe({mode:"onChange"}),{watch:i,setValue:h,reset:l}=r,[x,o]=f.useState(!1),[j,y]=f.useState(""),[w,O]=X(d=>[d.addNewNode,d.setSelectedNode]);f.useEffect(()=>()=>{p("sourceType"),l()},[m,l]);const v=i("nodeType"),P=i("typeName"),D=i("sourceLink"),R=i("type");i("title");const A=()=>{a()},z=d=>{p(d)},U=(d,b)=>{const k=b||`new-id-${Math.random()}`,C=d.nodeType.toLocaleLowerCase(),L={name:d.typeName,type:C,label:d.typeName,node_type:C,id:k,ref_id:k,x:Math.random(),y:Math.random(),z:Math.random(),date:parseInt((new Date().getTime()/1e3).toFixed(0),10),weight:4,...d.sourceLink?{source_link:d.sourceLink}:{}};w(L),O(L)},G=r.handleSubmit(async d=>{o(!0);try{await Be(d,n,U),ie("Item Added"),A()}catch(b){let k=N;if((b==null?void 0:b.status)===400){const C=await b.json();k=C.errorCode||(C==null?void 0:C.status)||N}else b instanceof Error&&(k=b.message);y(String(k))}finally{o(!1)}}),Y=d=>{d==="Create custom type"?c():h("nodeType",d)},J={sourceType:e.jsx(ve,{allowNextStep:!!v,onSelectType:Y,selectedType:v,skipToStep:z}),source:e.jsx(Ce,{name:P,skipToStep:z,sourceLink:D||"",type:v}),setBudget:e.jsx(me,{loading:x,onClick:()=>null}),createConfirmation:e.jsx(je,{onclose:A,type:R}),setAttribues:e.jsx(we,{nodeType:v,skipToStep:z})},V="small";return e.jsx(re,{id:"addItem",kind:V,onClose:a,preventOutsideClose:!0,children:e.jsx(ne,{...r,children:e.jsx("form",{id:"add-node-form",onSubmit:G,children:J[s]})})})};export{qe as AddItemModal}; diff --git a/build/assets/index-0a908253.js b/build/assets/index-f774867a.js similarity index 87% rename from build/assets/index-0a908253.js rename to build/assets/index-f774867a.js index 2285fd498..65ec55805 100644 --- a/build/assets/index-0a908253.js +++ b/build/assets/index-f774867a.js @@ -1,4 +1,4 @@ -import{f as s,h as e,a_ as p,j as n}from"./index-c522bd40.js";import{i as c}from"./react-toastify.esm-1e5f1e5f.js";const i=s.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` +import{f as s,h as e,a_ as p,j as n}from"./index-b85f35cf.js";import{i as c}from"./react-toastify.esm-ce67a4f9.js";const i=s.input.attrs(()=>({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 20px; diff --git a/build/assets/index.esm-f21f36d4.js b/build/assets/index.esm-ac56504e.js similarity index 98% rename from build/assets/index.esm-f21f36d4.js rename to build/assets/index.esm-ac56504e.js index d071b77d3..10a58f319 100644 --- a/build/assets/index.esm-f21f36d4.js +++ b/build/assets/index.esm-ac56504e.js @@ -1 +1 @@ -import{G as h}from"./index-c522bd40.js";var g={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},d=h.createContext&&h.createContext(g),i=globalThis&&globalThis.__assign||function(){return i=Object.assign||function(t){for(var a,e=1,r=arguments.length;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 Bl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Wl=typeof window<"u"?d.useLayoutEffect:d.useEffect,Hl=Wl;function Kn(e){const t=d.useRef(e);return Hl(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Ri(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Bl(n,t)})},e)}let Ar=!0,mo=!1,Ti;const Ul={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 Kl(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ul[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Gl(e){e.metaKey||e.altKey||e.ctrlKey||(Ar=!0)}function Ur(){Ar=!1}function Yl(){this.visibilityState==="hidden"&&mo&&(Ar=!0)}function ql(e){e.addEventListener("keydown",Gl,!0),e.addEventListener("mousedown",Ur,!0),e.addEventListener("pointerdown",Ur,!0),e.addEventListener("touchstart",Ur,!0),e.addEventListener("visibilitychange",Yl,!0)}function Xl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ar||Kl(t)}function Zl(){const e=d.useCallback(o=>{o!=null&&ql(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(mo=!0,window.clearTimeout(Ti),Ti=window.setTimeout(()=>{mo=!1},100),t.current=!1,!0):!1}function r(o){return Xl(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function bo(e,t){return bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},bo(e,t)}function Jl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bo(e,t)}const ki=h.createContext(null);function Ql(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jo(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 eu(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]),N.jsx("span",{className:p,style:g,children:N.jsx("span",{className:m})})}const au=kr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),He=au,cu=["center","classes","className"];let Dr=e=>e,Oi,Pi,Ai,Di;const vo=550,lu=80,uu=Yo(Oi||(Oi=Dr` +import{r as d,G as h,_ as Z,b as Ln,d as Fe,j as N,a as kr,a4 as Yo,s as zt,u as Or,g as qo,e as Xo,c as Ce,a5 as Jt,a6 as Zo,a7 as Rl,a8 as Tl,a9 as pa,aa as kl,ab as se,ac as Ol,ad as Pl,f as Xe,i as Pr,h as ot,F as Rt,I as Al,x as Dl,ae as Il,l as Si,af as Ml,Z as Ll,$ as jl,a2 as Fl,a3 as ha,k as Nl,ag as Vl}from"./index-b85f35cf.js";const zl=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 Bl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Wl=typeof window<"u"?d.useLayoutEffect:d.useEffect,Hl=Wl;function Kn(e){const t=d.useRef(e);return Hl(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function Ri(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Bl(n,t)})},e)}let Ar=!0,mo=!1,Ti;const Ul={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 Kl(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ul[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Gl(e){e.metaKey||e.altKey||e.ctrlKey||(Ar=!0)}function Ur(){Ar=!1}function Yl(){this.visibilityState==="hidden"&&mo&&(Ar=!0)}function ql(e){e.addEventListener("keydown",Gl,!0),e.addEventListener("mousedown",Ur,!0),e.addEventListener("pointerdown",Ur,!0),e.addEventListener("touchstart",Ur,!0),e.addEventListener("visibilitychange",Yl,!0)}function Xl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ar||Kl(t)}function Zl(){const e=d.useCallback(o=>{o!=null&&ql(o.ownerDocument)},[]),t=d.useRef(!1);function n(){return t.current?(mo=!0,window.clearTimeout(Ti),Ti=window.setTimeout(()=>{mo=!1},100),t.current=!1,!0):!1}function r(o){return Xl(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function bo(e,t){return bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},bo(e,t)}function Jl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bo(e,t)}const ki=h.createContext(null);function Ql(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jo(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 eu(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]),N.jsx("span",{className:p,style:g,children:N.jsx("span",{className:m})})}const au=kr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),He=au,cu=["center","classes","className"];let Dr=e=>e,Oi,Pi,Ai,Di;const vo=550,lu=80,uu=Yo(Oi||(Oi=Dr` 0% { transform: scale(0); opacity: 0.1; diff --git a/build/assets/useSlotProps-96b7890f.js b/build/assets/useSlotProps-b8a587b0.js similarity index 97% rename from build/assets/useSlotProps-96b7890f.js rename to build/assets/useSlotProps-b8a587b0.js index 70a94a9f4..2e6b445d7 100644 --- a/build/assets/useSlotProps-96b7890f.js +++ b/build/assets/useSlotProps-b8a587b0.js @@ -1 +1 @@ -import{g as R,a as I,s as E,c as g,r as h,u as b,b as C,_ as a,j as S,d as k,e as A}from"./index-c522bd40.js";import{t as T}from"./react-toastify.esm-1e5f1e5f.js";function G(e,t=166){let o;function n(...l){const s=()=>{e.apply(this,l)};clearTimeout(o),o=setTimeout(s,t)}return n.clear=()=>{clearTimeout(o)},n}function j(e){return e&&e.ownerDocument||document}function J(e){return j(e).defaultView||window}function H(e){return R("MuiSvgIcon",e)}I("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=e=>{const{color:t,fontSize:o,classes:n}=e,l={root:["root",t!=="inherit"&&`color${g(t)}`,`fontSize${g(o)}`]};return A(l,H,n)},O=E("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color!=="inherit"&&t[`color${g(o.color)}`],t[`fontSize${g(o.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var o,n,l,s,m,i,v,r,f,c,u,p,d;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(o=e.transitions)==null||(n=o.create)==null?void 0:n.call(o,"fill",{duration:(l=e.transitions)==null||(l=l.duration)==null?void 0:l.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(m=s.pxToRem)==null?void 0:m.call(s,20))||"1.25rem",medium:((i=e.typography)==null||(v=i.pxToRem)==null?void 0:v.call(i,24))||"1.5rem",large:((r=e.typography)==null||(f=r.pxToRem)==null?void 0:f.call(r,35))||"2.1875rem"}[t.fontSize],color:(c=(u=(e.vars||e).palette)==null||(u=u[t.color])==null?void 0:u.main)!=null?c:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(d=(e.vars||e).palette)==null||(d=d.action)==null?void 0:d.disabled,inherit:void 0}[t.color]}}),N=h.forwardRef(function(t,o){const n=b({props:t,name:"MuiSvgIcon"}),{children:l,className:s,color:m="inherit",component:i="svg",fontSize:v="medium",htmlColor:r,inheritViewBox:f=!1,titleAccess:c,viewBox:u="0 0 24 24"}=n,p=C(n,B),d=h.isValidElement(l)&&l.type==="svg",y=a({},n,{color:m,component:i,fontSize:v,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:u,hasSvgAsChild:d}),x={};f||(x.viewBox=u);const z=M(y);return S.jsxs(O,a({as:i,className:k(z.root,s),focusable:"false",color:r,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:o},x,p,d&&l.props,{ownerState:y,children:[d?l.props.children:l,c?S.jsx("title",{children:c}):null]}))});N.muiName="SvgIcon";const $=N;function K(e,t){function o(n,l){return S.jsx($,a({"data-testid":`${t}Icon`,ref:l},n,{children:e}))}return o.muiName=$.muiName,h.memo(h.forwardRef(o))}function U(e){return typeof e=="string"}function V(e,t,o){return e===void 0||U(e)?t:a({},t,{ownerState:a({},t.ownerState,o)})}function W(e,t=[]){if(e===void 0)return{};const o={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{o[n]=e[n]}),o}function D(e,t,o){return typeof e=="function"?e(t,o):e}function P(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(o.match(/^on[A-Z]/)&&typeof e[o]=="function")).forEach(o=>{t[o]=e[o]}),t}function F(e){const{getSlotProps:t,additionalProps:o,externalSlotProps:n,externalForwardedProps:l,className:s}=e;if(!t){const p=w(o==null?void 0:o.className,s,l==null?void 0:l.className,n==null?void 0:n.className),d=a({},o==null?void 0:o.style,l==null?void 0:l.style,n==null?void 0:n.style),y=a({},o,l,n);return p.length>0&&(y.className=p),Object.keys(d).length>0&&(y.style=d),{props:y,internalRef:void 0}}const m=W(a({},l,n)),i=_(n),v=_(l),r=t(m),f=w(r==null?void 0:r.className,o==null?void 0:o.className,s,l==null?void 0:l.className,n==null?void 0:n.className),c=a({},r==null?void 0:r.style,o==null?void 0:o.style,l==null?void 0:l.style,n==null?void 0:n.style),u=a({},r,o,v,i);return f.length>0&&(u.className=f),Object.keys(c).length>0&&(u.style=c),{props:u,internalRef:r.ref}}const L=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Q(e){var t;const{elementType:o,externalSlotProps:n,ownerState:l,skipResolvingSlotProps:s=!1}=e,m=C(e,L),i=s?{}:D(n,l),{props:v,internalRef:r}=F(a({},m,{externalSlotProps:i})),f=T(r,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return V(o,a({},v,{ref:f}),l)}export{j as a,K as c,G as d,W as e,U as i,J as o,Q as u}; +import{g as R,a as I,s as E,c as g,r as h,u as b,b as C,_ as a,j as S,d as k,e as A}from"./index-b85f35cf.js";import{t as T}from"./react-toastify.esm-ce67a4f9.js";function G(e,t=166){let o;function n(...l){const s=()=>{e.apply(this,l)};clearTimeout(o),o=setTimeout(s,t)}return n.clear=()=>{clearTimeout(o)},n}function j(e){return e&&e.ownerDocument||document}function J(e){return j(e).defaultView||window}function H(e){return R("MuiSvgIcon",e)}I("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],M=e=>{const{color:t,fontSize:o,classes:n}=e,l={root:["root",t!=="inherit"&&`color${g(t)}`,`fontSize${g(o)}`]};return A(l,H,n)},O=E("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.color!=="inherit"&&t[`color${g(o.color)}`],t[`fontSize${g(o.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var o,n,l,s,m,i,v,r,f,c,u,p,d;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(o=e.transitions)==null||(n=o.create)==null?void 0:n.call(o,"fill",{duration:(l=e.transitions)==null||(l=l.duration)==null?void 0:l.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(m=s.pxToRem)==null?void 0:m.call(s,20))||"1.25rem",medium:((i=e.typography)==null||(v=i.pxToRem)==null?void 0:v.call(i,24))||"1.5rem",large:((r=e.typography)==null||(f=r.pxToRem)==null?void 0:f.call(r,35))||"2.1875rem"}[t.fontSize],color:(c=(u=(e.vars||e).palette)==null||(u=u[t.color])==null?void 0:u.main)!=null?c:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(d=(e.vars||e).palette)==null||(d=d.action)==null?void 0:d.disabled,inherit:void 0}[t.color]}}),N=h.forwardRef(function(t,o){const n=b({props:t,name:"MuiSvgIcon"}),{children:l,className:s,color:m="inherit",component:i="svg",fontSize:v="medium",htmlColor:r,inheritViewBox:f=!1,titleAccess:c,viewBox:u="0 0 24 24"}=n,p=C(n,B),d=h.isValidElement(l)&&l.type==="svg",y=a({},n,{color:m,component:i,fontSize:v,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:u,hasSvgAsChild:d}),x={};f||(x.viewBox=u);const z=M(y);return S.jsxs(O,a({as:i,className:k(z.root,s),focusable:"false",color:r,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:o},x,p,d&&l.props,{ownerState:y,children:[d?l.props.children:l,c?S.jsx("title",{children:c}):null]}))});N.muiName="SvgIcon";const $=N;function K(e,t){function o(n,l){return S.jsx($,a({"data-testid":`${t}Icon`,ref:l},n,{children:e}))}return o.muiName=$.muiName,h.memo(h.forwardRef(o))}function U(e){return typeof e=="string"}function V(e,t,o){return e===void 0||U(e)?t:a({},t,{ownerState:a({},t.ownerState,o)})}function W(e,t=[]){if(e===void 0)return{};const o={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{o[n]=e[n]}),o}function D(e,t,o){return typeof e=="function"?e(t,o):e}function P(e){var t,o,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(o.match(/^on[A-Z]/)&&typeof e[o]=="function")).forEach(o=>{t[o]=e[o]}),t}function F(e){const{getSlotProps:t,additionalProps:o,externalSlotProps:n,externalForwardedProps:l,className:s}=e;if(!t){const p=w(o==null?void 0:o.className,s,l==null?void 0:l.className,n==null?void 0:n.className),d=a({},o==null?void 0:o.style,l==null?void 0:l.style,n==null?void 0:n.style),y=a({},o,l,n);return p.length>0&&(y.className=p),Object.keys(d).length>0&&(y.style=d),{props:y,internalRef:void 0}}const m=W(a({},l,n)),i=_(n),v=_(l),r=t(m),f=w(r==null?void 0:r.className,o==null?void 0:o.className,s,l==null?void 0:l.className,n==null?void 0:n.className),c=a({},r==null?void 0:r.style,o==null?void 0:o.style,l==null?void 0:l.style,n==null?void 0:n.style),u=a({},r,o,v,i);return f.length>0&&(u.className=f),Object.keys(c).length>0&&(u.style=c),{props:u,internalRef:r.ref}}const L=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Q(e){var t;const{elementType:o,externalSlotProps:n,ownerState:l,skipResolvingSlotProps:s=!1}=e,m=C(e,L),i=s?{}:D(n,l),{props:v,internalRef:r}=F(a({},m,{externalSlotProps:i})),f=T(r,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return V(o,a({},v,{ref:f}),l)}export{j as a,K as c,G as d,W as e,U as i,J as o,Q as u}; diff --git a/build/index.html b/build/index.html index d44e9dcf8..c16e2cde5 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 - +