diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-01-04 14:43:58 +0000 |
---|---|---|
committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-01-04 14:43:58 +0000 |
commit | e52842ba7d328595852a70e72f6ed0c4201d417e (patch) | |
tree | 5eca31cee3578ac4b904d4b4231a75a6c54a889e /out | |
parent | 0183a6f241623b3a943bf5d374869d3f50a93933 (diff) |
chore: build
Diffstat (limited to 'out')
-rw-r--r-- | out/404.html | 2 | ||||
-rw-r--r-- | out/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js (renamed from out/_next/static/KwUZTaKahwrvSE4nx8EJC/_buildManifest.js) | 2 | ||||
-rw-r--r-- | out/_next/static/Pwq1CsSy3iH9VqD4549T8/_ssgManifest.js (renamed from out/_next/static/KwUZTaKahwrvSE4nx8EJC/_ssgManifest.js) | 0 | ||||
-rw-r--r-- | out/_next/static/chunks/pages/index-5515a79c57ad297aac65.js | 1 | ||||
-rw-r--r-- | out/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js | 1 | ||||
-rw-r--r-- | out/index.html | 2 |
6 files changed, 4 insertions, 4 deletions
diff --git a/out/404.html b/out/404.html index f0f1722..ed3af32 100644 --- a/out/404.html +++ b/out/404.html @@ -1 +1 @@ -<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-96298ddac7773fa5ecad.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-965b0767a8d0eaf0c110.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js" defer=""></script><script src="/_next/static/chunks/pages/_error-ea939aab753d9e9db3bd.js" defer=""></script><script src="/_next/static/KwUZTaKahwrvSE4nx8EJC/_buildManifest.js" defer=""></script><script src="/_next/static/KwUZTaKahwrvSE4nx8EJC/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0\.5:0.125rem;--chakra-space-1\.5:0.375rem;--chakra-space-2\.5:0.625rem;--chakra-space-3\.5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0\.5:0.125rem;--chakra-sizes-1\.5:0.375rem;--chakra-sizes-2\.5:0.625rem;--chakra-sizes-3\.5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1syi0wy">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><div style="color:#000;background:#fff;font-family:-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body { margin: 0 }</style><h1 style="display:inline-block;border-right:1px solid rgba(0, 0, 0,.3);margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"KwUZTaKahwrvSE4nx8EJC","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
\ No newline at end of file +<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"/><meta charSet="utf-8"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-96298ddac7773fa5ecad.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-965b0767a8d0eaf0c110.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js" defer=""></script><script src="/_next/static/chunks/pages/_error-ea939aab753d9e9db3bd.js" defer=""></script><script src="/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js" defer=""></script><script src="/_next/static/Pwq1CsSy3iH9VqD4549T8/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0\.5:0.125rem;--chakra-space-1\.5:0.375rem;--chakra-space-2\.5:0.625rem;--chakra-space-3\.5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0\.5:0.125rem;--chakra-sizes-1\.5:0.375rem;--chakra-sizes-2\.5:0.625rem;--chakra-sizes-3\.5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1syi0wy">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><div style="color:#000;background:#fff;font-family:-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body { margin: 0 }</style><h1 style="display:inline-block;border-right:1px solid rgba(0, 0, 0,.3);margin:0;margin-right:20px;padding:10px 23px 10px 0;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block;text-align:left;line-height:49px;height:49px;vertical-align:middle"><h2 style="font-size:14px;font-weight:normal;line-height:inherit;margin:0;padding:0">This page could not be found<!-- -->.</h2></div></div></div><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"Pwq1CsSy3iH9VqD4549T8","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
\ No newline at end of file diff --git a/out/_next/static/KwUZTaKahwrvSE4nx8EJC/_buildManifest.js b/out/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js index 4c9d986..97179fa 100644 --- a/out/_next/static/KwUZTaKahwrvSE4nx8EJC/_buildManifest.js +++ b/out/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-b53d39280eb7028fd5fb.js","static/chunks/17007de1-7d8b9c17ee7cc8107af3.js","static/chunks/252f366e-54a484ebfe8fe95dfdbb.js","static/chunks/95b64a6e-860b8751a48619de0c76.js","static/chunks/0c428ae2-753f1ebbec24c403674c.js","static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js","static/chunks/b5f2ed29-c14b12daa385c4cc7854.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/css/9aeb688eb5e47ce218d8.css","static/chunks/911-811443f68e27e1fd4f52.js","static/chunks/pages/index-5515a79c57ad297aac65.js"],"/_error":["static/chunks/pages/_error-ea939aab753d9e9db3bd.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file +self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-b53d39280eb7028fd5fb.js","static/chunks/17007de1-7d8b9c17ee7cc8107af3.js","static/chunks/252f366e-54a484ebfe8fe95dfdbb.js","static/chunks/95b64a6e-860b8751a48619de0c76.js","static/chunks/0c428ae2-753f1ebbec24c403674c.js","static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js","static/chunks/b5f2ed29-c14b12daa385c4cc7854.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/css/9aeb688eb5e47ce218d8.css","static/chunks/911-811443f68e27e1fd4f52.js","static/chunks/pages/index-8162019a78766f0a3f9d.js"],"/_error":["static/chunks/pages/_error-ea939aab753d9e9db3bd.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file diff --git a/out/_next/static/KwUZTaKahwrvSE4nx8EJC/_ssgManifest.js b/out/_next/static/Pwq1CsSy3iH9VqD4549T8/_ssgManifest.js index 0511aa8..0511aa8 100644 --- a/out/_next/static/KwUZTaKahwrvSE4nx8EJC/_ssgManifest.js +++ b/out/_next/static/Pwq1CsSy3iH9VqD4549T8/_ssgManifest.js diff --git a/out/_next/static/chunks/pages/index-5515a79c57ad297aac65.js b/out/_next/static/chunks/pages/index-5515a79c57ad297aac65.js deleted file mode 100644 index e13ca34..0000000 --- a/out/_next/static/chunks/pages/index-5515a79c57ad297aac65.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{20624:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return Cr},GraphPage:function(){return yr},default:function(){return mr},getThemeColor:function(){return kr},hexToRGBA:function(){return Sr},normalizeLinkEnds:function(){return wr}});var r=t(15861),i=t(42982),o=t(4942),l=t(70885),s=t(87757),c=t.n(s),a=t(40980),u=t(74860),d=t(95869),h=t(48017),g=t(94096),f=t(96699),p=t(48420),x=t(57775),j=t(54309),b=t(52596),v=t(9008),m=t(67294),y=t(32802),C=t.n(y),O=t(47516),w=t(63750),k=t(22003),S=t(31122),N=t(7520),P=t(36194),D=[],I={};for(var z in P.oY)for(var L in P.oY[z]){var E=z+L;"LinearNone"===E&&(E="Linear"),D.push(E),I[E]=P.oY[z][L]}var Z=I,T={enabled:!0,charge:-700,collision:!0,collisionStrength:20,centering:!0,centeringStrength:.2,linkStrength:.3,linkIts:1,alphaDecay:.05,alphaTarget:0,alphaMin:0,velocityDecay:.25,gravity:.3,gravityOn:!0,gravityLocal:!1},R={orphans:!1,dailies:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],dirsBlocklist:[],dirsAllowlist:[],bad:!0,nodes:[],links:[],date:[],noter:!0},B={method:"degree"},F={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:3,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:10,labelLength:40,labelWordWrap:25,labelLineSpace:1,labelDynamicDegree:8,labelDynamicStrength:.5,highlight:!0,highlightNodeSize:1.1,highlightLinkSize:.7,highlightFade:.8,highlightAnim:!0,animationSpeed:360,algorithmOptions:D,algorithmName:"CircularOut",linkColorScheme:"gray.500",nodeColorScheme:["red.500","gray.600","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","orange.500"],nodeHighlight:"purple.500",linkHighlight:"purple.500",backgroundColor:"white",emacsNodeColor:"gray.800",labelTextColor:"black",labelBackgroundColor:"",labelBackgroundOpacity:.7,citeDashes:!0,citeDashLength:35,citeGapLength:15,citeLinkColor:"gray.700",citeLinkHighlightColor:"",citeNodeColor:"black",refDashes:!0,refDashLength:35,refGapLength:15,refLinkColor:"gray.700",refLinkHighlightColor:"",refNodeColor:"black",nodeSizeLinks:.5,nodeZoomSize:1.2},H={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},W={highlight:"hover",local:"double",follow:"never",context:"right",preview:"click",backgroundExitsLocal:!1},A={neighbors:1},M=["red.500","orange.500","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","white","gray.100","gray.200","gray.300","gray.400","gray.500","gray.600","gray.700","gray.800","gray.900","black"],V=t(11252),X=t(336),_=t(85675),U=t(72026),q=t(64115),G=t(49364),J=t(94030),Q=t(85305),K=t(46617),$=t(50862),Y=t(68928),ee=t(55830),ne=t(2827);function te(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function re(e,n){te("open",{id:e.id},n)}var ie=t(77787),oe=t(45987),le=t(80658),se=t(38554),ce=t.n(se),ae=t(84461),ue=t(73808),de=t(53869),he=t(39629);function ge(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ge(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var pe={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var xe=function(e,n){return fe(fe({},e),{},{delay:(0,ue.hj)(n)?n:null===n||void 0===n?void 0:n.enter})},je=function(e,n){return fe(fe({},e),{},{delay:(0,ue.hj)(n)?n:null===n||void 0===n?void 0:n.exit})},be=t(85893),ve=["in","unmountOnExit","animateOpacity","startingSize","endingSize","dimension","style","className","transition","transitionEnd"];function me(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ye(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?me(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):me(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ce=function(e){return null!=e&&parseInt(e.toString(),10)>0},Oe={exit:{size:{duration:.2,ease:pe.ease},opacity:{duration:.3,ease:pe.ease}},enter:{size:{duration:.3,ease:pe.ease},opacity:{duration:.4,ease:pe.ease}}},we={exit:function(e){var n,t,r=e.animateOpacity,i=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return ye(ye({},r&&{opacity:Ce(i)?1:0}),{},(t={overflow:"hidden"},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:je(Oe.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,i=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return ye(ye({},r&&{opacity:1}),{},(t={},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:xe(Oe.enter,c)),t))}},ke=m.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,i=e.animateOpacity,o=void 0===i||i,s=e.startingSize,c=void 0===s?0:s,a=e.endingSize,u=void 0===a?"auto":a,d=e.dimension,h=void 0===d?"height":d,g=e.style,f=e.className,p=e.transition,x=e.transitionEnd,j=(0,oe.Z)(e,ve),b=m.useState(!1),v=(0,l.Z)(b,2),y=v[0],C=v[1];m.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,le.ZK)({condition:Boolean(c>0&&r),message:"startingSize and unmountOnExit are mutually exclusive. You can't use them together"});var O=parseFloat(c.toString())>0,w={startingSize:c,endingSize:u,animateOpacity:o,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:ce()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:O?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,be.jsx)(de.M,{initial:!1,custom:w,children:k&&(0,be.jsx)(he.E.div,ye(ye({ref:n},j),{},{className:(0,ae.cx)("chakra-collapse",f),style:ye({overflow:"hidden",display:"block"},g),custom:w,variants:we,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));function Se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Se(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}ue.Ts&&(ke.displayName="Collapse");var Pe=function(e){var n=e.setTagColors,t=e.setFilter,r=e.filter,l=e.tagColors,s=e.target,c=r.tagsBlacklist,a=r.tagsWhitelist,d=c.indexOf(s)>-1,f=a.indexOf(s)>-1,p=(0,u.q)();return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(V.sN,{icon:(0,be.jsx)(h.xu,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:p.onToggle,children:(0,be.jsx)(q.x,{children:"Change color"})}),(0,be.jsx)(ke,{in:p.isOpen,children:(0,be.jsxs)(g.k,{ml:2,mt:2,flexWrap:"wrap",children:[(0,be.jsx)(h.xu,{children:(0,be.jsx)(h.xu,{tabIndex:0,cursor:"pointer",onClick:function(){return n((function(e){return Object.fromEntries(Object.keys(e).filter((function(e){return e!==s})).map((function(n){return[n,e[n]]})))}))},bgColor:"",m:1,borderRadius:"sm",borderColor:"gray.600",borderWidth:1,height:3,width:3})},"empty"),M.map((function(e){return(0,be.jsx)(h.xu,{children:(0,be.jsx)(h.xu,{tabIndex:0,cursor:"pointer",onClick:function(){return n(Ne(Ne({},l),{},(0,o.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))]})}),!f&&(0,be.jsx)(V.sN,{onClick:function(){t(d?function(e){return Ne(Ne({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return Ne(Ne({},e),{},{tagsBlacklist:[].concat((0,i.Z)(e.tagsBlacklist),[s])})})},icon:d?(0,be.jsx)(Q.V,{}):(0,be.jsx)(ie.t,{}),children:d?"Remove from blocklist":"Add to blocklist"}),!d&&(0,be.jsx)(V.sN,{onClick:function(){t(f?function(e){return Ne(Ne({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return Ne(Ne({},e),{},{tagsWhitelist:[].concat((0,i.Z)(e.tagsWhitelist),[s])})})},icon:f?(0,be.jsx)(Q.V,{}):(0,be.jsx)(ee.O,{}),children:f?"Remove from allowlist":"Add to allowlist"})]})},De=function(e){e.background;var n,t,r=e.target,i=(e.nodeType,e.coordinates),o=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,a=e.setPreviewNode,d=e.setTagColors,h=e.tagColors,g=e.setFilter,f=e.filter,p=(0,u.q)(),x=p.isOpen,j=p.onOpen,b=p.onClose;(0,m.useRef)();return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(V.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,be.jsx)(V.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:i.left,top:i.top,right:i.right,bottom:i.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,be.jsxs)(be.Fragment,{children:[r&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(X.X,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,be.jsx)(V.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(V.sN,{onClick:function(){return o(r,"add")},icon:(0,be.jsx)(J.I,{}),children:"Expand local graph at node"}),(0,be.jsx)(V.sN,{onClick:function(){return o(r,"replace")},icon:(0,be.jsx)(O.DvO,{}),children:"Open local graph for this node"}),(0,be.jsx)(V.sN,{onClick:function(){return o(r,"remove")},icon:(0,be.jsx)(Q.V,{}),children:"Exclude node from local graph"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,be.jsx)(V.sN,{icon:(0,be.jsx)($.d,{}),onClick:function(){return function(e,n){te("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,be.jsx)(V.sN,{icon:(0,be.jsx)(K.d,{}),onClick:function(){return re(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,be.jsx)(V.sN,{icon:(0,be.jsx)(Y.h,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,be.jsx)(V.sN,{icon:(0,be.jsx)(O.DvO,{}),onClick:function(){return o(r,"replace")},children:"Open local graph"}),(0,be.jsx)(V.sN,{icon:(0,be.jsx)(ee.O,{}),onClick:function(){a(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,be.jsx)(V.sN,{closeOnSelect:!1,icon:(0,be.jsx)(ne.p,{color:"red.500"}),color:"red.500",onClick:j,children:"Permanently delete note"})]}):(0,be.jsx)(Pe,{target:r,tagColors:h,filter:f,setTagColors:d,setFilter:g})})}),"string"!==typeof r&&(0,be.jsxs)(_.u_,{isCentered:!0,isOpen:x,onClose:b,children:[(0,be.jsx)(_.ZA,{}),(0,be.jsxs)(_.hz,{zIndex:"popover",children:[(0,be.jsx)(_.xB,{children:"Delete node?"}),(0,be.jsx)(_.ol,{}),(0,be.jsx)(_.fe,{children:(0,be.jsxs)(U.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,be.jsx)(q.x,{children:"This will permanently delete your note:"}),(0,be.jsx)(q.x,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,be.jsx)(q.x,{children:"This will only delete the from this heading until but not including the next node. Your parent file and all other nodes will not be deleted."}),(0,be.jsx)(q.x,{children:"Are you sure you want to do continue?"})]})}),(0,be.jsxs)(_.mz,{children:[(0,be.jsx)(G.z,{mr:3,onClick:function(){console.log("closing"),b(),l()},children:"Cancel"}),(0,be.jsx)(G.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&te("delete",{id:e.id,file:e.file},n)}(r,c),b(),l()},children:"Delete node"})]})]})]})]})},Ie=t(67101),ze=t(5434),Le=t(35255),Ee=t(56884),Ze=t(51649),Te=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),i=e.canRedo,o=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode,s=e.outline,c=e.setOutline,a=e.collapse,u=e.setCollapse;return(0,be.jsxs)(g.k,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pr:1,children:[(0,be.jsx)(g.k,{children:(0,be.jsxs)(Ie.h,{isAttached:!0,children:[(0,be.jsx)(f.u,{label:"Go backward",children:(0,be.jsx)(p.h,{_focus:{},variant:"subtle",icon:(0,be.jsx)(Le.w,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return o()}})}),(0,be.jsx)(f.u,{label:"Go forward",children:(0,be.jsx)(p.h,{_focus:{},variant:"subtle",icon:(0,be.jsx)(Ee.X,{}),"aria-label":"Next node",disabled:!i,onClick:function(){return l()}})})]})}),(0,be.jsxs)(g.k,{children:[(0,be.jsx)(f.u,{label:"Justify content",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Justify content",icon:[(0,be.jsx)(O.v9V,{},"justify"),(0,be.jsx)(O.YSr,{},"left"),(0,be.jsx)(O.RXA,{},"right"),(0,be.jsx)(O.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})}),(0,be.jsx)(f.u,{label:"Toggle outline view",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Justify content",icon:s?(0,be.jsx)(Ze.XQM,{}):(0,be.jsx)(Ze.JfF,{}),onClick:function(){return c((function(e){return!e}))}})}),(0,be.jsx)(f.u,{label:"Toggle headers",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Toggle headers",icon:a?(0,be.jsx)(ze.omV,{}):(0,be.jsx)(ze.egf,{}),onClick:function(){return u((function(e){return!e}))}})})]})]})},Re=t(35528);function Be(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Be(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var He=function(e){var n,t,r,o=e.filter,l=e.setFilter,s=e.tagColors,c=(e.setTagColors,e.openContextMenu),a=e.previewNode;return null!==a&&void 0!==a&&a.tags&&null!==(null===a||void 0===a||null===(n=a.tags)||void 0===n?void 0:n[0])?(0,be.jsx)(g.k,{mb:2,flexWrap:"wrap",children:null===a||void 0===a||null===(t=a.tags)||void 0===t||null===(r=t.map)||void 0===r?void 0:r.call(t,(function(e){var n,t,r,a=null!==(n=o.tagsBlacklist)&&void 0!==n?n:[],u=null!==(t=o.tagsWhitelist)&&void 0!==t?t:[],d=a.includes(e),h=u.includes(e);return(0,be.jsxs)(Re.Vp,{tabIndex:0,mr:2,mt:2,onContextMenu:function(n){n.preventDefault(),c(e,n)},cursor:"pointer",onClick:function(){l(d?function(n){return Fe(Fe({},n),{},{tagsBlacklist:n.tagsBlacklist.filter((function(n){return n!==e})),tagsWhitelist:[].concat((0,i.Z)(n.tagsWhitelist),[e])})}:h?function(n){return Fe(Fe({},n),{},{tagsWhitelist:n.tagsWhitelist.filter((function(n){return n!==e}))})}:function(n){return Fe(Fe({},n),{},{tagsBlacklist:[].concat((0,i.Z)(n.tagsBlacklist),[e])})})},size:"sm",variant:"outline",colorScheme:(null===(r=s[e])||void 0===r?void 0:r.replaceAll(/(.*?)\..*/g,"$1"))||void 0,children:[(0,be.jsx)(Re.Sn,{children:e}),d?(0,be.jsx)(Re.bq,{as:ie.t}):h?(0,be.jsx)(Re.bq,{as:ee.O}):null]},e)}))}):null},We=t(18835),Ae=t.n(We),Me=t(13816),Ve=t.n(Me),Xe=t(42728),_e=t.n(Xe),Ue=t(77890),qe=t.n(Ue),Ge=t(94986),Je=t.n(Ge),Qe=t(88541),Ke=t.n(Qe),$e=t(71167),Ye=t.n($e),en=(t(85062),t(27431)),nn=t.n(en),tn=t(12861),rn=t.n(tn),on=t(10043),ln=t.n(on),sn=t(80816),cn=t(93545),an=t.n(cn),un=t(15941),dn=t.n(un),hn=t(67597),gn=t.n(hn),fn=t(44549),pn=t.n(fn),xn=t(78818),jn=t.n(xn),bn=t(49444),vn=t(45170),mn=t(67273),yn=t(29356),Cn={".headingFlex":{flexDirection:"row-reverse",justifyContent:"flex-end"},".outlineHeadingButton":{display:"none"},h1:{color:"black",lineHeight:"1.2",fontSize:"16",fontWeight:"bold",paddingTop:2},h2:{fontSize:"14",color:"black",fontWeight:"bold",fontStyle:"bold italic",paddingTop:2},h3:{fontSize:"13",color:"black",paddingTop:2},h4:{fontSize:"12",fontStyle:"italic",color:"black",paddingTop:2},".sectionContent":{paddingTop:2}},On={".headingFlex":{flexDirection:"row",justifyContent:"flex-start"},".viewerHeadingButton":{display:"none"},".sectionContent":{mt:3,paddingLeft:4,ml:"11px",borderLeftWidth:"1px",borderLeftColor:"gray.500"},".preHeadingContent":{},"h1,h2,h3,h4,h5,h6,h7,h8":{pl:1,lineHeight:"1.25",color:"black",fontSize:15,fontWeight:700},".sec":{pt:1},".wrapClass > div > p":{mb:2},p:{fontWeight:500,fontSize:14,pb:2}},wn={".katex":{overflowX:"scroll"},ol:{paddingLeft:4,py:1},"li::marker":{fontSize:12,fontWeight:"bold"},li:{pt:1},ul:{paddingLeft:"5"},p:{fontSize:"14",fontWeight:"500 !important",pb:2},div:{hyphens:"auto !important"},".title":{textAlign:"center",marginBottom:".2em"},".subtitle":{textAlign:"center",fontSize:"medium",fontWeight:"bold",marginTop:0},".TODO":{color:"red.500"},".equationContainer":{display:"table",textAlign:"center",width:"100%"},".equation":{verticalAlign:"middle"},".equation-label":{display:"tableCell",textAlign:"right",verticalAlign:"middle"},".inlinetask":{padding:"10px",border:"2px solid gray",margin:"10px",background:"#ffffcc"},"#org-div-home-and-up":{textAlign:"right",fontSize:"70 % ",whiteSpace:"nowrap"},textarea:{overflowX:"auto"},".linenr":{fontSize:"smaller"},".org-info-js_info-navigation":{borderStyle:"none"},"#org-info-js_console-label":{fontSize:"10px",fontWeight:"bold",whiteSpace:"nowrap"},".org-info-js_search-highlight":{backgroundColor:"#ffff00",color:"#000000",fontWeight:"bold"},".org-svg":{width:"90%"},".DONE":{color:"green"},".priority":{fontFamily:"monospace",color:"orange"},".tag":{backgroundColor:"white",fontFamily:"monospace",padding:"2px",fontSize:"80%",fontWeight:"normal"},".timestamp":{color:"#bebebe"},".timestamp-kwd":{color:"#5f9ea0"},".org-right":{marginLeft:"auto",marginRight:"0px",textAlign:"right"},".org-left":{marginLeft:"0px",marginRight:"auto",textAlign:"left"},".org-center":{marginLeft:"auto",marginRight:"auto",textAlign:"center"},".underline":{textDecoration:"underline"},"#postamble p":{fontSize:"90%",margin:".2em"},"#preamble p":{fontSize:"90%",margin:".2em"},"p.verse":{marginLeft:"3%"},pre:{borderRadius:"3px",backgroundColor:"white",padding:"8pt",fontFamily:"monospace",overflow:"auto",margin:"1.2em"},"pre.src":{position:"relative",overflow:"auto"},"pre.src:before":{display:"none",position:"absolute",top:"-8px",right:"12px",padding:"3px",backgroundColor:"white"},"caption.t-above":{captionSide:"top"},"caption.t-bottom":{captionSide:"bottom"},"th.org-right":{textAlign:"center"},"th.org-left":{textAlign:"center"},"th.org-center":{textAlign:"center"},"td.org-right":{textAlign:"right"},"td.org-left":{textAlign:"left"},"td.org-center":{textAlign:"center"},".footpara":{display:"inline"},".footdef":{marginBottom:"1em"},".figure":{padding:"1em"},".figure p":{textAlign:"center"}},kn=t(86658),Sn=["style"];function Nn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Pn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Nn(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Nn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Dn=function(e){var n=e.noUnderline,t=e.id,r=e.setSidebarHighlightedNode,i=e.setPreviewNode,o=e.nodeById,l=e.openContextMenu,s=e.href,c=e.children,u=e.isWiki,d=(0,m.useContext)(yn.N).highlightColor,h=kr(d,(0,a.useTheme)()),g=(s.replaceAll(/(.*?)\:?.*/g,"$1"),s.replaceAll(/.*?\:(.*)/g,"$1")),f=null!==t&&void 0!==t?t:g,p=u?"[[".concat(c,"]]"):c;return(0,be.jsx)(q.x,{as:"a",onMouseEnter:function(){return r(o[f])},onMouseLeave:function(){return r({})},tabIndex:0,display:"inline",overflow:"hidden",fontWeight:500,color:d,textDecoration:n?void 0:"underline",onContextMenu:function(e){e.preventDefault(),l(o[g],e)},onClick:function(){return i(o[g])},_hover:{textDecoration:"none",cursor:"pointer",bgColor:h+"22"},_focus:{outlineColor:d},children:p})},In=function(e){var n=e.href,t=e.children,r=(0,m.useContext)(yn.N).highlightColor;return(0,be.jsxs)(bn.r,{color:r,isExternal:!0,href:n,children:[t,(0,be.jsx)(Y.h,{mx:"1px",pb:"2px"})]})},zn=function(e){var n,t=e.href,r=e.children,i=e.nodeById,o=e.setSidebarHighlightedNode,l=e.previewNode,s=e.setPreviewNode,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,d=e.noUnderline,g=e.linksByNodeId,f=e.isWiki,p=e.macros,x=e.attachDir,j=(0,m.useState)(null),b=j[0],v=j[1],y=(0,m.useState)(!1),C=y[0],O=y[1],w=t.replaceAll(/(.*?)\:.*/g,"$1"),k=u?On:Cn;console.log(l);if((0,m.useEffect)((function(){w.replaceAll(/(http)?.*/g,"$1")||b||C&&fetch("http://localhost:35901/file/".concat(L)).then((function(e){return e.text()})).then((function(e){"error"===e||v(e)})).catch((function(e){return console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}),[C,b]),!w)return(0,be.jsx)(q.x,{color:"gray.700",children:r});if(w.replaceAll(/(http)?.*/g,"$1"))return(0,be.jsx)(In,{href:t,children:r});var S,N,P,D,I=t.replaceAll(/.*?\:(.*)/g,"$1"),z=function(e,n){if("id"===e)return n;if(e.includes("cite")){var t,r=null!==(t=c[n])&&void 0!==t&&t;return r?null!==r&&void 0!==r&&r.properties.FILELESS?"":null===r||void 0===r?void 0:r.id:""}return""}(w,I),L=encodeURIComponent(encodeURIComponent(null===(n=i[z])||void 0===n?void 0:n.file));return z?(0,be.jsx)(be.Fragment,{children:(0,be.jsxs)(vn.J2,{gutter:12,trigger:"hover",placement:"top-start",children:[(0,be.jsx)(vn.xo,{children:(0,be.jsx)(h.xu,{display:"inline",onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},children:(0,be.jsx)(Dn,{id:z,setSidebarHighlightedNode:o,setPreviewNode:s,nodeById:i,href:t,children:r,nodeByCite:c,openContextMenu:a,noUnderline:d,isWiki:f},null!==(S=null===(N=i[z])||void 0===N?void 0:N.title)&&void 0!==S?S:z)})}),(0,be.jsx)(mn.h,{children:(0,be.jsxs)(vn.yk,{transform:"scale(1)",boxShadow:"xl",position:"relative",zIndex:"tooltip",onMouseEnter:function(){var e;o(null!==(e=i[z])&&void 0!==e?e:{})},onMouseLeave:function(){o({})},children:[(0,be.jsx)(vn.QH,{}),(0,be.jsx)(vn.b,{pb:5,fontSize:"xs",position:"relative",zIndex:"tooltip",transform:"scale(1)",width:"100%",children:(0,be.jsx)(kn.$B,{autoHeight:!0,autoHeightMax:300,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,oe.Z)(e,Sn);return(0,be.jsx)(h.xu,Pn({style:Pn(Pn({},n),{},{borderRadius:0})},t))},children:(0,be.jsx)(h.xu,{w:"100%",color:"black",px:3,sx:Pn(Pn({},wn),k),children:(0,be.jsx)(Xn,{previewText:b,nodeById:i,setSidebarHighlightedNode:o,setPreviewNode:s,nodeByCite:c,openContextMenu:a,outline:u,linksByNodeId:g,macros:p,attachDir:x,previewNode:i[z],collapse:!1})})})})]},null!==(P=null===(D=i[z])||void 0===D?void 0:D.title)&&void 0!==P?P:z)})]})}):(0,be.jsx)(q.x,{as:"span",display:"inline",className:t,color:"base.700",cursor:"not-allowed",children:r})},Ln=t(25675),En=t(62520),Zn=t.n(En),Tn=t(53850),Rn=function(e){var n=e.src,t=e.file,r=(0,m.useState)(null);r[0],r[1];if(n.replaceAll(/(http)?.*/g,"$1"))return console.log(n.replaceAll(/(http)?.*/g,"$1")),(0,be.jsx)(Ln.default,{layout:"responsive",loader:function(e){var n=e.src;return e.width,e.quality,"".concat(n)},src:n,alt:"",width:"auto",height:"auto"});var i=n.replaceAll(/file:/g,""),o=Zn().dirname(t),l=Zn().isAbsolute(i)||"~"===i.slice(0,1)?i:Zn().join(o,i),s=encodeURIComponent(encodeURIComponent(l));return(0,be.jsx)(Tn.W,{my:4,position:"relative",children:(0,be.jsx)("img",{alt:"Wow, an image.",src:"http://localhost:35901/img/".concat(s)})})},Bn=t(14578),Fn=t(6780),Hn=t(6569),Wn=(0,m.createContext)({outline:!1,collapse:!0}),An=function(e){var n=e.children,t=e.className,r=(0,m.useState)(!0),i=r[0],o=r[1],l=(0,m.useContext)(Wn).collapse;if((0,m.useEffect)((function(){o(!l)}),[l]),"h0Wrapper headingWrapper"===t)return(0,be.jsxs)(h.xu,{className:"preHeadingContent",children:[" ",n]});var s=n;return(0,be.jsxs)(h.xu,{className:"sec",children:[(0,be.jsx)(h.xu,{display:"block",children:(0,be.jsxs)(g.k,{className:"headingFlex",alignItems:"baseline",children:[i&&s.length>0?(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(p.h,{className:"viewerHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,be.jsx)(Fn.g,{}),onClick:function(){return o(!i)},height:2,width:2}),(0,be.jsx)(p.h,{className:"outlineHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,be.jsx)(Bn.zOz,{}),onClick:function(){return o(!i)},height:2,width:2})]}):(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(p.h,{className:"viewerHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,be.jsx)(Hn.v,{}),onClick:function(){return o(!i)}}),(0,be.jsx)(p.h,{className:"outlineHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,be.jsx)(Bn.O6Y,{}),onClick:function(){return o(!i)}})]}),s[0]]})}),i&&(0,be.jsx)(h.xu,{className:"sectionContent",children:s.slice(1)})]})};function Mn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Vn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Mn(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Mn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Xn=function(e){var n,t,r=e.nodeById,i=e.setSidebarHighlightedNode,l=e.setPreviewNode,s=e.previewText,c=e.nodeByCite,a=e.previewNode,u=e.openContextMenu,d=e.outline,h=e.collapse,g=e.linksByNodeId,f=e.macros,p=e.attachDir;if(!a||!g)return null;var x=Ae()().use(Ve()).use(Je()).use(Ke(),{idDir:p||void 0}).use(qe()).use(_e(),{useSections:!0}),j=(null===(n=g[null===a||void 0===a?void 0:a.id])||void 0===n?void 0:n.reduce((function(e,n){var t=wr(n).filter((function(e){return e!==a.id})).join("");return Vn(Vn({},e),{},(0,o.Z)({},t,r[t]))}),{}))||{},b=Object.entries(j),v=Ae()().use(rn()).use(dn(),["yaml"]).use(gn()).use(sn.Z,{permaLinks:Object.keys(j),pageResolver:function(e){var n,t=b.find((function(n){var t;return(null===n||void 0===n||null===(t=n[1])||void 0===t?void 0:t.title)===e}));return[null!==(n=null===t||void 0===t?void 0:t[0])&&void 0!==n?n:""]},hrefTemplate:function(e){return console.log(e),"id:".concat(e)}}).use(pn()).use(an()).use(ln()).use(jn()),y=".md"===(null===a||void 0===a||null===(t=a.file)||void 0===t?void 0:t.slice(-3)),C=y?v:x;console.log(f);var O=(0,m.useMemo)((function(){return C.use(Ye(),{trust:function(e){return["\\htmlId","\\href"].includes(e.command)},macros:Vn({"\\eqref":"\\href{###1}{(\\text{#1})}","\\ref":"\\href{###1}{\\text{#1}}","\\label":"\\htmlId{#1}{}"},f)}).use(nn(),{createElement:m.createElement,components:{a:function(e){var n=e.children,t=e.href;return(0,be.jsx)(zn,{nodeByCite:c,setSidebarHighlightedNode:i,href:"".concat(t),nodeById:r,linksByNodeId:g,setPreviewNode:l,openContextMenu:u,outline:d,previewNode:a,isWiki:y,macros:f,attachDir:p,children:n})},img:function(e){var n=e.src;return(0,be.jsx)(Rn,{src:n,file:null===a||void 0===a?void 0:a.file})},section:function(e){var n=e.children,t=e.className;return(0,be.jsx)(An,{outline:d,collapse:h,className:t,children:n})},p:function(e){var n=e.children;return(0,be.jsx)("p",{lang:"en",children:n})}}})}),[null===a||void 0===a?void 0:a.id]),w=(0,m.useMemo)((function(){return O.processSync(s).result}),[s]);return(0,be.jsx)(Wn.Provider,{value:{collapse:h,outline:d},children:w})};var _n=function(e){var n=e.openContextMenu,t=e.setSidebarHighlightedNode,r=e.nodeById,i=e.nodeByCite,o=e.previewNode,l=e.setPreviewNode,s=e.outline,c=e.collapse,a=e.linksByNodeId,u=e.macros,d=e.attachDir,h=(0,m.useState)(""),g=h[0],f=h[1],p=encodeURIComponent(encodeURIComponent(o.file));return(0,m.useEffect)((function(){fetch("http://localhost:35901/file/".concat(p)).then((function(e){return e.text()})).then((function(e){if(""===e)return"(empty node)";"error"!==e&&(console.log(e),f(e))})).catch((function(e){return f("(could not find node)"),console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}),[o.id]),(0,be.jsx)(be.Fragment,{children:g&&o&&(0,be.jsx)(Xn,{nodeById:r,previewNode:o,setPreviewNode:l,previewText:g,nodeByCite:i,setSidebarHighlightedNode:t,openContextMenu:n,outline:s,collapse:c,linksByNodeId:a,attachDir:d,macros:u||{}})})},Un=function(e){var n,t=e.previewNode,r=e.setPreviewNode,i=e.setSidebarHighlightedNode,o=e.nodeById,s=e.linksByNodeId,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,d=e.macros,g=e.attachDir,f=(null!==(n=s[null===t||void 0===t?void 0:t.id])&&void 0!==n?n:[]).filter((function(e){var n=wr(e),r=(0,l.Z)(n,2),i=r[0];r[1];return i!==(null===t||void 0===t?void 0:t.id)})).map((function(e){return e.source}));return(0,be.jsxs)(h.xu,{className:"backlinks",borderRadius:"sm",mt:6,p:4,bg:"white",mb:10,children:[(0,be.jsx)("p",{style:{fontSize:16,fontWeight:600},children:"Linked references (".concat(f.length,")")}),(0,be.jsx)(U.gC,{py:2,spacing:3,alignItems:"start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(null===t||void 0===t?void 0:t.id)&&f.map((function(e){var n,l,f;n=null===(l=o[e])||void 0===l?void 0:l.title;return(0,be.jsx)(h.xu,{overflow:"hidden",py:1,borderRadius:"sm",width:"100%",children:(0,be.jsx)(zn,{linksByNodeId:s,nodeByCite:c,setSidebarHighlightedNode:i,href:"id:".concat(e),nodeById:o,previewNode:t,setPreviewNode:r,openContextMenu:a,outline:u,noUnderline:!0,attachDir:g,macros:d,children:null===(f=o[e])||void 0===f?void 0:f.title})},e)}))})]})};function qn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Gn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qn(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Jn=function(e){var n=e.setPreviewNode,t=e.justificationList,r=e.justification,i=e.previewNode,o=e.nodeById,l=e.nodeByCite,s=e.setSidebarHighlightedNode,c=e.linksByNodeId,a=e.openContextMenu,u=e.outline,d=e.collapse,f=e.macros,p=e.attachDir,x=u?On:Cn;return(0,be.jsx)(h.xu,{pr:8,pt:2,height:"100%",className:"org",sx:Gn(Gn(Gn({},wn),x),{},{textAlign:t[r]}),children:(null===i||void 0===i?void 0:i.id)&&(0,be.jsxs)(g.k,{className:"wrapClass",height:"100%",flexDirection:"column",justifyContent:"space-between",children:[(0,be.jsx)(_n,{setPreviewNode:n,previewNode:i,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,collapse:d,nodeById:o,linksByNodeId:c,macros:f,attachDir:p}),(0,be.jsx)(Un,{setPreviewNode:n,previewNode:i,nodeById:o,linksByNodeId:c,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,attachDir:p,macros:f||{}})]})})},Qn=function(e){var n=e.previewNode;return(0,be.jsx)(g.k,{maxW:"90%",children:(0,be.jsx)(X.X,{lineHeight:1.2,size:"md",fontWeight:600,pt:4,children:null===n||void 0===n?void 0:n.title})})},Kn=t(29119);function $n(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Yn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$n(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$n(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function et(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=nt(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n,s=null!=o&&"object"===typeof o&&!1===Array.isArray(o)?Yn(Yn({},n),o):l;s!==o&&i.update(s);var c=(0,m.useState)(s),a=c[0],u=c[1];(0,m.useEffect)((function(){a!==s&&u(s)}),[e]);var d=function(e){e instanceof Function?u((function(n){var t=e(n);return i.update(t),t})):(u(e),i.update(e))};return[a,d]}function nt(e,n){return{get:function(){var t=n.getItem(e);if(t&&"undefined"!==t)return JSON.parse(t)},update:function(t){n.setItem(e,JSON.stringify(t))},remove:function(){n.removeItem(e)}}}var tt=["style"];function rt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function it(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?rt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ot=function(e){var n=e.isOpen,t=e.onOpen,r=e.onClose,i=e.previewNode,o=e.setPreviewNode,s=e.nodeById,c=e.linksByNodeId,a=e.nodeByCite,u=e.setSidebarHighlightedNode,d=e.canUndo,f=e.canRedo,x=e.resetPreviewNode,j=e.previousPreviewNode,b=e.nextPreviewNode,v=e.openContextMenu,y=(e.scope,e.setScope,e.windowWidth),C=e.filter,w=e.setFilter,k=e.tagColors,S=e.setTagColors,N=e.macros,P=e.attachDir,D=((0,m.useContext)(yn.N).highlightColor,(0,m.useState)()),I=D[0],z=D[1],L=et("sidebarWidth",400),E=(0,l.Z)(L,2),Z=E[0],T=E[1];(0,m.useEffect)((function(){null!==i&&void 0!==i&&i.id?(t(),z(i)):r()}),[null===i||void 0===i?void 0:i.id]);var R=et("justification",1),B=(0,l.Z)(R,2),F=B[0],H=B[1],W=et("outline",!1),A=(0,l.Z)(W,2),M=A[0],V=A[1],X=(0,m.useState)("sans serif"),_=(X[0],X[1]),q=(0,m.useState)(0),G=(q[0],q[1]),J=(0,m.useState)(!1),Q=J[0],K=J[1];return(0,be.jsx)(ke,{animateOpacity:!1,dimension:"width",in:n,unmountOnExit:!0,startingSize:0,style:{height:"100vh"},children:(0,be.jsx)(Kn.e,{size:{height:"100vh",width:Z},onResizeStop:function(e,n,t,r){T((function(e){return e+r.width}))},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},minWidth:"220px",maxWidth:y-200,children:(0,be.jsxs)(g.k,{flexDir:"column",h:"100vh",pl:2,color:"black",bg:"alt.100",width:"100%",children:[(0,be.jsxs)(g.k,{pl:2,alignItems:"center",color:"black",width:"100%",children:[(0,be.jsx)(g.k,{pt:1,flexShrink:0,children:(0,be.jsx)(Te,{setJustification:H,setIndent:G,setFont:_,justification:F,setPreviewNode:o,canUndo:d,canRedo:f,resetPreviewNode:x,previousPreviewNode:j,nextPreviewNode:b,outline:M,setOutline:V,collapse:Q,setCollapse:K})}),(0,be.jsx)(g.k,{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",onContextMenu:function(e){e.preventDefault(),v(i,e)}}),(0,be.jsx)(g.k,{flexDir:"row",ml:"auto",children:(0,be.jsx)(p.h,{m:1,icon:(0,be.jsx)(O.T41,{}),"aria-label":"Options",variant:"subtle",onClick:function(e){v(i,e,{left:void 0,top:12,right:20-y,bottom:void 0})}})})]}),(0,be.jsx)(kn.$B,{autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,oe.Z)(e,tt);return(0,be.jsx)(h.xu,it({style:it(it({},n),{},{borderRadius:0})},t))},children:I&&(0,be.jsxs)(U.gC,{flexGrow:1,alignItems:"left",bg:"alt.100",paddingLeft:4,children:[(0,be.jsx)(Qn,{previewNode:I}),(0,be.jsx)(He,{filter:C,setFilter:w,tagColors:k,setTagColors:S,openContextMenu:v,previewNode:i}),(0,be.jsx)(Jn,{setPreviewNode:o,previewNode:i,nodeById:s,nodeByCite:a,setSidebarHighlightedNode:u,justification:F,justificationList:["justify","start","end","center"],linksByNodeId:c,openContextMenu:v,outline:M,setOutline:V,collapse:Q,macros:N,attachDir:P})]})})]})})})},lt=t(93924),st=t(83986),ct=t(48931),at=t(56769),ut=t(88134),dt=t(47647);function ht(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function gt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ht(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ht(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ft=function(e){var n=e.filter,t=e.listName,r=e.labelFilter,i=e.displayName,l=e.setFilter,s=e.options,c=void 0===s?[]:s,a=(0,m.useContext)(yn.N).highlightColor,u=c.map((function(e){return{value:e,label:r?e.replace(r,""):e}})),d=(0,m.useState)(n[t].map((function(e){return{value:e,label:r?null===e||void 0===e?void 0:e.replace(r,""):e}}))),h=d[0],g=d[1];return(0,be.jsx)(dt.CUIAutoComplete,{labelStyleProps:{fontWeight:300,fontSize:14},items:u,label:"Add tag to ".concat(i),placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:h,onSelectedItemsChange:function(e){e.selectedItems&&(g(e.selectedItems),l(gt(gt({},n),{},(0,o.Z)({},t,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{mt:2,height:8,focusBorderColor:a,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{justifyContent:"flex-start",fontSize:10,borderColor:a,borderWidth:1,borderRadius:"md",color:a,bg:"",height:4,mb:2},hideToggleButton:!0,itemRenderer:function(e){return e.label}})};function pt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var jt=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,i=e.highlightColor,l=e.tags.map((function(e){return{value:e,label:e}})),s=(0,m.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=s[0],a=s[1];return(0,be.jsxs)(h.xu,{children:[(0,be.jsx)(dt.CUIAutoComplete,{items:l,labelStyleProps:{fontWeight:300,fontSize:14},label:"Add tag to color",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(a(Array.from(new Set(e.selectedItems))),r(Object.fromEntries(Array.from(new Set(e.selectedItems)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{height:8,focusBorderColor:i,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{display:"none",rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,be.jsx)(h.xu,{width:"100%",children:(0,be.jsx)(q.x,{children:e})}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",children:(0,be.jsx)(h.xu,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,be.jsx)(mn.h,{children:(0,be.jsx)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,be.jsx)(V.sN,{onClick:function(){return r(xt(xt({},t),{},(0,o.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})})]}),(0,be.jsx)(p.h,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,be.jsx)(ne.p,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(c)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),a(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})},bt=t(24682),vt=t(24189),mt=function(e){var n=e.infoText;return(0,be.jsx)(h.xu,{paddingLeft:"1",children:(0,be.jsx)(f.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,be.jsx)(vt.h,{})})})},yt=["min","max","step","value"],Ct=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,i=void 0===r?10:r,o=e.step,l=void 0===o?.1:o,s=e.value,c=void 0===s?1:s,a=(0,oe.Z)(e,yt),u=a.onChange,d=a.label,g=a.infoText,p=(0,m.useContext)(yn.N).highlightColor;return(0,be.jsxs)(h.xu,{pt:1,pb:2,children:[(0,be.jsxs)(h.xu,{display:"flex",alignItems:"flex-end",mb:2,children:[(0,be.jsx)(q.x,{children:d}),g&&(0,be.jsx)(mt,{infoText:g})]}),(0,be.jsxs)(bt.iR,{value:c,onChange:u,min:t,max:i,step:l,children:[(0,be.jsx)(bt.Uj,{children:(0,be.jsx)(bt.Ms,{})}),(0,be.jsx)(f.u,{bg:p,label:c.toFixed(1),children:(0,be.jsx)(bt.gs,{bg:"white"})})]})]},d)},Ot=(0,m.createContext)({subDirs:["dailies",".attach"],attachDir:".attach",roamDir:"~/org",dailyDir:"dailies"});function wt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function kt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?wt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var St=function(e){var n=e.filter,t=e.setFilter,r=e.local,i=e.setLocal,o=e.tagColors,l=e.setTagColors,s=e.highlightColor,c=e.colorList,a=e.tags,u=(0,m.useContext)(Ot),d=u.roamDir,f=u.subDirs;return(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Link children to"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",size:"sm",children:function(){switch(n.parent){case"parent":return(0,be.jsx)(q.x,{children:"File"});case"heading":return(0,be.jsx)(q.x,{children:"Heading"});default:return(0,be.jsx)(q.x,{children:"Nothing"})}}()}),(0,be.jsx)(mn.h,{children:(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return kt(kt({},e),{},{parent:""})}))},children:"Nothing"}),(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return kt(kt({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return kt(kt({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})})]})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Orphans"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return kt(kt({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Dailies"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return kt(kt({},e),{},{dailies:!e.dailies})}))},isChecked:n.dailies})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Org-noter pages"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return kt(kt({},e),{},{noter:!e.noter})}))},isChecked:n.noter})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Citations without note files"}),(0,be.jsx)(ut.r,{onChange:function(){t(kt(kt({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Non-existent nodes"}),(0,be.jsx)(ut.r,{onChange:function(){l(kt(kt({},o),{},{bad:"white"})),t(kt(kt({},n),{},{bad:!n.bad}))},isChecked:n.bad})]}),(0,be.jsx)(Ct,{label:"Number of neighbors in local graph",value:r.neighbors,onChange:function(e){return i(kt(kt({},r),{},{neighbors:e}))},min:1,max:5,step:1})]}),(0,be.jsxs)(at.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:["Directory filters",(0,be.jsx)(at.XE,{})]}),(0,be.jsxs)(at.Hk,{pr:0,mr:0,children:[(0,be.jsx)(ft,{filter:n,setFilter:t,options:f,displayName:"directory blocklist",listName:"dirsBlocklist",labelFilter:d}),(0,be.jsx)(ft,{filter:n,setFilter:t,options:f,displayName:"directory allowlist",listName:"dirsAllowlist",labelFilter:d})]})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:["Tag filters",(0,be.jsx)(at.XE,{})]}),(0,be.jsxs)(at.Hk,{pr:0,mr:0,children:[(0,be.jsx)(ft,{filter:n,setFilter:t,options:a,displayName:"tag blocklist",listName:"tagsBlacklist"}),(0,be.jsx)(ft,{filter:n,setFilter:t,options:a,displayName:"tag allowlist",listName:"tagsWhitelist"})]})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:["Tag colors",(0,be.jsx)(at.XE,{})]}),(0,be.jsx)(at.Hk,{pr:0,mr:0,children:(0,be.jsx)(jt,{tags:a,colorList:c,tagColors:o,setTagColors:l,highlightColor:s})})]})]})]})},Nt=t(15267),Pt=function(e){var n=e.value,t=e.onChange,r=e.label,i=e.infoText,o=e.children;return(0,be.jsxs)(h.xu,{paddingTop:2,children:[(0,be.jsxs)(h.xu,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,be.jsxs)(h.xu,{display:"flex",alignItems:"center",children:[(0,be.jsx)(q.x,{children:r}),i&&(0,be.jsx)(mt,{infoText:i})]}),(0,be.jsx)(ut.r,{isChecked:!!n,onChange:t})]}),(0,be.jsx)(Nt.U,{in:!!n,animateOpacity:!0,children:(0,be.jsx)(h.xu,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:o})})]},r)};function Dt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function It(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Dt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var zt=function(e){var n=e.physics,t=e.setPhysics,r=(0,m.useCallback)((function(e,n,r){t((function(t){return It(It({},t),{},(0,o.Z)({},n,e/r))}))}),[]);return(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,be.jsxs)(Pt,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(It(It({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Also in local"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return It(It({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,be.jsx)(Ct,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,be.jsx)(Ct,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,be.jsx)(Ct,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,be.jsx)(Ct,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}})]}),(0,be.jsx)(h.xu,{children:(0,be.jsx)(at.UQ,{paddingLeft:3,allowToggle:!0,children:(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(q.x,{children:"Advanced"}),(0,be.jsx)(at.XE,{marginRight:2})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,be.jsx)(Pt,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(It(It({},n),{},{collision:!n.collision}))},children:(0,be.jsx)(Ct,{value:n.collisionStrength/5,onChange:function(e){return r(e,"collisionStrength",.2)},label:"Collision Radius",infoText:"Easy with this one, high values can lead to a real jiggly mess"})}),(0,be.jsx)(Ct,{label:"Link iterations",value:n.linkIts,onChange:function(e){return r(e,"linkIts",1)},min:0,max:6,step:1,infoText:"How many links down the line the physics of a single node affects (Slow)"}),(0,be.jsx)(Ct,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}}),(0,be.jsx)(Pt,{label:"Center nodes",value:n.centering,onChange:function(){return t(It(It({},n),{},{centering:!n.centering}))},infoText:"Keeps the nodes in the center of the viewport. If disabled you can drag the nodes anywhere you want.",children:(0,be.jsx)(Ct,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})};function Lt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Et(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Lt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Lt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Zt=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,i=e.setMouse;return(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Preview node"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:r.preview?r.preview[0].toUpperCase()+r.preview.slice(1):"Never"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{preview:""}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{preview:"click"}))},children:"Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{preview:"double"}))},children:"Double Click"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsxs)(g.k,{children:[(0,be.jsx)(q.x,{children:"Expand Node"}),(0,be.jsx)(mt,{infoText:"View only the node and its direct neighbors"})]}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:""}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:"click"}))},children:"Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:"double"}))},children:"Double Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Open in Emacs"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:""}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:"click"}))},children:"Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:"double"}))},children:"Double Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Follow Emacs by..."}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsxs)(g.k,{children:[(0,be.jsx)(q.x,{children:"Local graph"}),(0,be.jsx)(mt,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:"add"===n.localSame?"Add":"Replace"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,be.jsx)(Ct,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(Et(Et({},n),{},{zoomSpeed:e}))}}),(0,be.jsx)(Ct,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(Et(Et({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})},Tt=t(46049);function Rt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Bt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Rt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ft=function(e){var n=e.visuals,t=e.setVisuals;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsx)(h.xu,{children:(0,be.jsx)(Pt,{label:"Highlight",onChange:function(){return t((function(e){return Bt(Bt({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,be.jsxs)(U.gC,{spacing:1,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,be.jsx)(Ct,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{highlightLinkSize:e})}))}}),(0,be.jsx)(Ct,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{highlightNodeSize:e})}))}}),(0,be.jsx)(Ct,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{highlightFade:e})}))}}),(0,be.jsxs)(Pt,{label:"Highlight Animation",onChange:function(){t((function(e){return Bt(Bt({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,be.jsx)(Ct,{label:"Animation speed",onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,be.jsx)(Tt.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return Bt(Bt({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,be.jsx)("option",{value:e,children:e},e)}))})]})]})})})})},Ht=t(67546),Wt=t(93441);function At(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Mt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?At(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):At(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Vt=function(e){var n=e.label,t=e.colorList,r=e.value,i=e.visValue,l=e.setVisuals,s=e.noEmpty,c=(0,m.useCallback)((function(e){return l((function(n){return Mt(Mt({},n),{},(0,o.Z)({},r,e))}))}),[]);return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:n}),(0,be.jsxs)(vn.J2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(vn.xo,{children:(0,be.jsx)(G.z,{colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(h.xu,{bgColor:i,borderRadius:"sm",height:6,width:6})})}),(0,be.jsx)(mn.h,{children:(0,be.jsx)(vn.yk,{zIndex:"tooltip",maxW:36,position:"relative",children:(0,be.jsxs)(g.k,{flexWrap:"wrap",bgColor:"gray.200",children:[!s&&(0,be.jsx)(h.xu,{onClick:function(){return c("")},justifyContent:"space-between",alignItems:"center",display:"flex",m:1,children:(0,be.jsx)(h.xu,{height:6,width:6,borderColor:"gray.600",borderRadius:"xl",borderWidth:1})}),t.map((function(e){return(0,be.jsx)(h.xu,{m:1,onClick:function(){return c(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"xl",height:6,width:6})},e)}))]})})})]})]})};function Xt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _t(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ut=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,o=e.setHighlightColor;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Nodes"}),(0,be.jsx)(f.u,{label:"Shuffle node colors",children:(0,be.jsx)(p.h,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,be.jsx)(Ht.n,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(_t(_t({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,l.Z)(e,1)[0]-(0,l.Z)(n,1)[0]})).map((function(e){var n=(0,l.Z)(e,2);n[0];return n[1]}))}))}})}),(0,be.jsx)(f.u,{label:"Cycle node colors",children:(0,be.jsx)(p.h,{"aria-label":"Shift node colors",icon:(0,be.jsx)(Wt.L,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(_t(_t({},n),{},{nodeColorScheme:[].concat((0,i.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,be.jsx)(V.j2,{width:20,as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(g.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsx)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,be.jsx)(V.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(_t(_t({},n),{},{nodeColorScheme:e}))},children:M.map((function(e){return(0,be.jsx)(V.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,be.jsx)(h.xu,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Links"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(h.xu,{children:n.linkColorScheme?(0,be.jsx)(h.xu,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,be.jsx)(g.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(_t(_t({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(g.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),M.map((function(e){return(0,be.jsx)(V.sN,{onClick:function(){return t(_t(_t({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Accent"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(h.xu,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsx)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:M.map((function(e){return(0,be.jsx)(V.sN,{onClick:function(){return o(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,be.jsx)(Vt,{colorList:M,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,be.jsx)(Vt,{colorList:M,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,be.jsx)(Vt,{colorList:M,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,be.jsx)(Vt,{colorList:M,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function qt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Gt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Jt=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsxs)(h.xu,{children:[(0,be.jsx)(Ct,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(Gt(Gt({},n),{},{nodeRel:e}))}}),(0,be.jsx)(Ct,{label:"Node degree size multiplier",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(Gt(Gt({},n),{},{nodeSizeLinks:e}))}}),(0,be.jsx)(Ct,{label:"Node zoom invariance",value:n.nodeZoomSize,min:0,max:2,infoText:"How much the graph will try to keep the nodesize consistent across zoom scales. 0 is no consistency, node will always be their true size, 1 is linear, 2 is quadratic.",onChange:function(e){return t((function(n){return Gt(Gt({},n),{},{nodeZoomSize:e})}))}}),r&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(Ct,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(Gt(Gt({},n),{},{nodeOpacity:e}))}}),(0,be.jsx)(Ct,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(Gt(Gt({},n),{},{nodeResolution:e}))}})]}),(0,be.jsx)(Ct,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(Gt(Gt({},n),{},{linkWidth:e}))}}),r&&(0,be.jsx)(Ct,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(Gt(Gt({},n),{},{linkOpacity:e}))}}),(0,be.jsxs)(Pt,{label:"Link arrows",value:n.arrows,onChange:function(){return t(Gt(Gt({},n),{},{arrows:!n.arrows}))},children:[(0,be.jsx)(Ct,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(Gt(Gt({},n),{},{arrowsLength:10*e}))}}),(0,be.jsx)(Ct,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(Gt(Gt({},n),{},{arrowsPos:e}))}}),(0,be.jsx)(Vt,{colorList:M,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,be.jsxs)(Pt,{label:"Directional Particles",value:n.particles,onChange:function(){return t(Gt(Gt({},n),{},{particles:!n.particles}))},children:[(0,be.jsx)(Ct,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(Gt(Gt({},n),{},{particlesNumber:e}))}}),(0,be.jsx)(Ct,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(Gt(Gt({},n),{},{particlesWidth:e}))}})]})]})})};function Qt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Kt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Qt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Qt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var $t=function(e){var n=e.visuals,t=e.setVisuals;return(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.400"}),align:"stretch",color:"gray.800",children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Show labels"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:0}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:1}))},children:"On Highlight"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:2}))},children:"Always"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,be.jsxs)(Nt.U,{in:n.labels>1,animateOpacity:!0,children:[(0,be.jsx)(h.xu,{paddingTop:2,children:(0,be.jsx)(Ct,{label:"Label Appearance Scale",value:2*n.labelScale,onChange:function(e){return t(Kt(Kt({},n),{},{labelScale:e/2}))}})}),(0,be.jsxs)(h.xu,{paddingTop:2,children:[(0,be.jsx)(Ct,{label:"Label dynamicity",infoText:"By default, labels of nodes with more links will appear earlier than those with fewer. This slider changes the strength of this effect, put it at zero to disable it.",value:n.labelDynamicStrength,min:0,max:1,step:.05,onChange:function(e){return t((function(n){return Kt(Kt({},n),{},{labelDynamicStrength:e})}))}}),(0,be.jsx)(Nt.U,{in:n.labelDynamicStrength>0,children:(0,be.jsx)(Ct,{label:"Dynamic zoom degree cap",infoText:"The maximum number of links that is considered for the 'dynamic zoom effect'. Past this number all number of links are treated the same.",value:n.labelDynamicDegree,min:1,max:15,step:1,onChange:function(e){return t((function(n){return Kt(Kt({},n),{},{labelDynamicDegree:e})}))}})})]})]}),(0,be.jsx)(Vt,{colorList:M,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,be.jsxs)(h.xu,{children:[(0,be.jsx)(Vt,{colorList:M,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,be.jsx)(Nt.U,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,be.jsx)(h.xu,{paddingTop:2,children:(0,be.jsx)(Ct,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(Kt(Kt({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})})]}),(0,be.jsx)(Ct,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(Kt(Kt({},n),{},{labelFontSize:e}))}}),(0,be.jsx)(Ct,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(Kt(Kt({},n),{},{labelLength:e}))}}),(0,be.jsx)(Ct,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(Kt(Kt({},n),{},{labelWordWrap:e}))}}),(0,be.jsx)(Ct,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(Kt(Kt({},n),{},{labelLineSpace:e}))}})]})},Yt=t(67690),er=function(){var e=(0,m.useContext)(yn.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,be.jsx)(q.x,{children:"Theme"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,be.jsx)(V.j2,{as:G.z,size:"sm",colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:n[0]}),(0,be.jsxs)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{height:6,width:6})}),Object.keys(Yt.n).map((function(e,n){return(0,be.jsxs)(V.sN,{onClick:function(){return t([e,Yt.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,be.jsx)(q.x,{children:e}),(0,be.jsx)(g.k,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(Yt.n[e]).map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})};function nr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function tr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?nr(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var rr=function(e){var n=e.visuals,t=e.setVisuals;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(Pt,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t(tr(tr({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,be.jsx)(Ct,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t(tr(tr({},n),{},{citeDashLength:10*e}))}}),(0,be.jsx)(Ct,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t(tr(tr({},n),{},{citeGapLength:5*e}))}})]}),(0,be.jsx)(Vt,{colorList:M,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,be.jsx)(Vt,{colorList:M,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,be.jsx)(Vt,{colorList:M,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,be.jsxs)(Pt,{label:"Dash ref links",infoText:"Add dashes to citation links, whose target has a note, made with org-roam-bibtex",value:n.refDashes,onChange:function(){return t(tr(tr({},n),{},{refDashes:!n.refDashes}))},children:[(0,be.jsx)(Ct,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t(tr(tr({},n),{},{refDashLength:10*e}))}}),(0,be.jsx)(Ct,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t(tr(tr({},n),{},{refGapLength:5*e}))}})]}),(0,be.jsx)(Vt,{colorList:M,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,be.jsx)(Vt,{colorList:M,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,be.jsx)(Vt,{colorList:M,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})};function ir(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function or(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ir(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ir(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var lr=function(e){var n=e.coloring,t=e.setColoring;return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,be.jsx)(q.x,{children:"Graph coloring"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,size:"sm",colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:"degree"===n.method?"Links":"Communities"}),(0,be.jsx)(mn.h,{children:(0,be.jsxs)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return or(or({},e),{},{method:"degree"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Number of links"}),(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return or(or({},e),{},{method:"community"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Communities"})]})})]})]})},sr=function(e){var n=e.coloring,t=e.setColoring,r=e.visuals,i=e.setVisuals,o=e.highlightColor,l=e.setHighlightColor,s=e.threeDim,c=(0,m.useCallback)((function(e){return i(e)}),[]);return(0,be.jsxs)(U.gC,{justifyContent:"flex-start",align:"stretch",children:[(0,be.jsx)(er,{}),(0,be.jsx)(lr,{coloring:n,setColoring:t}),(0,be.jsxs)(at.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Colors"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Ut,{visuals:r,setVisualsCallback:c,highlightColor:o,setHighlightColor:l})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Nodes & Links"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Jt,{visuals:r,setVisuals:c,threeDim:s})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Labels"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)($t,{visuals:r,setVisuals:c})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Highlighting"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Ft,{visuals:r,setVisuals:c})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Citations"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(rr,{visuals:r,setVisuals:c})})]})]})]})},cr=["style"];function ar(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ur(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ar(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ar(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var dr=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,i=e.setThreeDim,o=e.filter,s=e.setFilter,c=e.visuals,a=e.setVisuals,u=e.mouse,d=e.setMouse,g=e.behavior,x=e.setBehavior,j=e.tags,b=e.tagColors,v=e.setTagColors,y=e.coloring,C=e.setColoring,O=e.local,w=e.setLocal,k=et("showTweaks",!1),S=(0,l.Z)(k,2),N=S[0],P=S[1],D=(0,m.useContext)(yn.N),I=D.highlightColor,z=D.setHighlightColor;return N?(0,be.jsxs)(h.xu,{position:"absolute",bg:"alt.100",w:"xs",marginTop:2,marginLeft:2,borderRadius:"lg",paddingBottom:5,zIndex:10,boxShadow:"xl",maxH:"95vh",fontSize:"sm",children:[(0,be.jsxs)(h.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,be.jsx)(f.u,{label:"2D",children:(0,be.jsx)(G.z,{onClick:function(){return i(!r)},variant:"subtle",zIndex:"overlay",children:r?"3D":"2D"})}),(0,be.jsxs)(h.xu,{display:"flex",alignItems:"center",children:[(0,be.jsx)(f.u,{label:"Reset settings to defaults",children:(0,be.jsx)(p.h,{"aria-label":"Reset Defaults",icon:(0,be.jsx)(st.A,{}),onClick:function(){a(F),s(R),d(W),t(T),x(H),C(B),z("purple.500"),w(A)},variant:"subtle",size:"sm"})}),(0,be.jsx)(p.h,{size:"sm",icon:(0,be.jsx)(ct.T,{}),"aria-label":"Close Tweak Panel",variant:"subtle",onClick:function(){return P(!1)}})]})]}),(0,be.jsx)(kn.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,oe.Z)(e,cr);return(0,be.jsx)(h.xu,ur(ur({},t),{},{style:ur(ur({},n),{},{borderRadius:10}),bg:I}))},children:(0,be.jsxs)(at.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Filter"})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(St,{filter:o,setFilter:s,tagColors:b,setTagColors:v,highlightColor:I,colorList:M,tags:j,local:O,setLocal:w})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{display:"flex",justifyContent:"space-between",children:(0,be.jsxs)(h.xu,{display:"flex",children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Physics"})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(zt,{physics:n,setPhysics:t})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Visual"})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(sr,{visuals:c,setVisuals:a,highlightColor:I,setHighlightColor:z,threeDim:r,coloring:y,setColoring:C})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Behavior"})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Zt,{behavior:g,setBehavior:x,mouse:u,setMouse:d})})]})]})})]}):(0,be.jsx)(h.xu,{position:"absolute",zIndex:"overlay",marginTop:1,marginLeft:0,display:N?"none":"block",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Settings",icon:(0,be.jsx)(lt.e,{}),onClick:function(){return P(!0)}})})},hr=t(22663),gr=t.n(hr);function fr(e){var n,t,r,o,l=e.labelBackgroundColor,s=e.labelTextColor,c=e.node,a=e.ctx,u=e.globalScale,d=e.highlightedNodes,h=e.previouslyHighlightedNodes,g=e.visuals,f=e.opacity,p=e.nodeSize,x=e.filteredLinksByNodeId,j=(e.nodeRel,e.hoverNode),b=e.lastHoverNode;if(c&&g.labels){var v=null!==(n=null===j||void 0===j?void 0:j.id)&&void 0!==n?n:"",m=null!==(t=null===b||void 0===b?void 0:b.id)&&void 0!==t?t:"",y=null!==(r=x[c.id])&&void 0!==r?r:[],C=!(!d[c.id]&&!h[c.id]),O=Math.min(5*(u-g.labelScale)+2*Math.pow(Math.min(y.length,g.labelDynamicDegree),g.labelDynamicStrength),1);if(!(O<.01)||C){var w=null!==(o=c.title)&&void 0!==o?o:"",k=w.substring(0,g.labelLength),S=Math.cbrt(g.nodeRel*p(c)/Math.pow(u,g.nodeZoomSize)),N=g.labelFontSize/Math.cbrt(Math.pow(u,g.nodeZoomSize)),P=[1.1*a.measureText(k).width,N].map((function(e){return e+.5*N})),D=function(e,n,t,r,i){return i?Math.max(e,r):1*e*(-1*(n.highlightFade*r-1))}(O,g,0,f,C);if(g.labelBackgroundColor&&g.labelBackgroundOpacity){var I=Sr(l,D*g.labelBackgroundOpacity);a.fillStyle=I,a.fillRect.apply(a,[c.x-P[0]/2,c.y-P[1]/2+S].concat((0,i.Z)(P)))}a.textAlign="center",a.textBaseline="middle";var z=Sr(s,D);a.fillStyle=z,a.font="".concat(N,"px Sans-Serif");var L=gr()(k,{width:g.labelWordWrap}).split("\n"),E=w.length>g.labelLength?[].concat((0,i.Z)(L.slice(0,-1)),["".concat(L.slice(-1),"...")]):L,Z=[v,m].includes(c.id)?1+.3*f:1;E.forEach((function(e,n){a.fillText(e,c.x,c.y+Z*S*8+g.labelLineSpace*N*n)}))}}}function pr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pr(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var jr=t.e(907).then(t.bind(t,99907)),br=t.g.window?t(24878).f$:null,vr=t.g.window?t(24878).s6:null;function mr(){var e=(0,m.useState)(!1),n=e[0],t=e[1];return(0,m.useEffect)((function(){t(!0)}),[]),n?(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(v.default,{children:(0,be.jsx)("title",{children:"ORUI"})}),(0,be.jsx)(yr,{})]}):null}function yr(){var e=et("3d",!1),n=(0,l.Z)(e,2),t=n[0],r=n[1],s=et("tagCols",{}),c=(0,l.Z)(s,2),a=c[0],x=c[1],b=(0,m.useState)({nodeIds:[],excludedNodeIds:[]}),v=b[0],y=b[1],C=et("physics",T),S=(0,l.Z)(C,2),P=S[0],D=S[1],I=et("filter",R),z=(0,l.Z)(I,2),L=z[0],E=z[1],Z=et("visuals",F),M=(0,l.Z)(Z,2),V=M[0],X=M[1],_=(0,m.useState)(null),U=_[0],q=_[1],G=(0,m.useState)(null),J=G[0],Q=G[1],K=et("behavior",H),$=(0,l.Z)(K,2),Y=$[0],ee=$[1],ne=et("mouse",W),te=(0,l.Z)(ne,2),re=te[0],ie=te[1],oe=et("coloring",B),le=(0,l.Z)(oe,2),se=le[0],ce=le[1],ae=et("local",A),ue=(0,l.Z)(ae,2),de=ue[0],he=ue[1],ge=(0,N.Z)({}),fe=(0,l.Z)(ge,2),pe=fe[0],xe=fe[1],je=xe.set,ve=xe.reset,me=xe.undo,ye=xe.redo,Ce=xe.canUndo,Oe=xe.canRedo,we=(pe.past,pe.present),ke=(pe.future,(0,m.useState)(null)),Se=ke[0],Ne=ke[1],Pe=(0,u.q)(),Ie=Pe.isOpen,ze=Pe.onOpen,Le=Pe.onClose,Ee=(0,m.useRef)({}),Ze=(0,m.useRef)({}),Te=(0,m.useRef)({}),Re=(0,m.useRef)([]),Be=(0,m.useRef)(null),Fe=(0,m.useState)({}),He=Fe[0],We=Fe[1],Ae=(0,m.useRef)({}),Me=(0,m.useRef)({nodes:[],links:[]});(0,m.useEffect)((function(){U&&(Me.current=U)}),[U]);var Ve=(0,m.useContext)(yn.N).setEmacsTheme,Xe=(0,m.useRef)({nodeIds:[],excludedNodeIds:[]}),_e=(0,m.useRef)(H);_e.current=Y;var Ue=(0,m.useRef)(null);Xe.current=v;var qe=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var l=Be.current,s=Xe.current,c=_e.current,a=null!==(t=Ze.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,i.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&y({nodeIds:[],excludedNodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,o,(function(e){return u[e.id]}))}),50);if(!s.nodeIds.length)return y((function(e){return xr(xr({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if("add"!==c.localSame)return y((function(e){return xr(xr({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return u[e]})))return y((function(e){return xr(xr({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);y((function(e){return xr(xr({},e),{},{nodeIds:[].concat((0,i.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50)}};(0,m.useEffect)((function(){Ue.current=new k.Z("ws://localhost:35903"),Ue.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),Ue.current.addEventListener("message",(function(e){var n=_e.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Ee.current;Re.current=null!==(n=e.tags)&&void 0!==n?n:[];var c=null!==(t=e.nodes)&&void 0!==t?t:[],a=null!==(r=e.links)&&void 0!==r?r:[],u=c.reduce((function(e,n){var t;return xr(xr({},e),{},(0,o.Z)({},n.file,[].concat((0,i.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),d=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){var n=t.filter((function(n){var t,r;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(null===(r=n.title)||void 0===r?void 0:r.replace(/ *\[\d*\/\d*\] */g,"")))})).reduce((function(e,n){return n.level>e.level&&(e=n),e}),r);return{source:e.id,target:(null===n||void 0===n?void 0:n.id)||r.id,type:"heading"}})):[]})),h=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));Ee.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,i.Z)(a),(0,i.Z)(d),(0,i.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Ee.current[n]?Ee.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),xr(xr({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),xr(xr({},e),{},{type:"bad"}))}));Ee.current=xr(xr({},Ee.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),Ze.current=p.reduce((function(e,n){var t,r,l;return xr(xr({},e),{},(l={},(0,o.Z)(l,n.source,[].concat((0,i.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,o.Z)(l,n.target,[].concat((0,i.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,i.Z)(c),f);Te.current=x.reduce((function(e,n){var t,r=null===(t=n.properties)||void 0===t?void 0:t.ROAM_REFS;if(null===r||void 0===r||!r.includes("cite"))return e;var i=r.replaceAll(/cite:(.*)/g,"$1");return i?xr(xr({},e),{},(0,o.Z)({},i,n)):e}),{});var j={nodes:x,links:p},b=Me.current;if(0===b.nodes.length){var v=JSON.parse(JSON.stringify(j));return Me.current=v,void q(v)}var m=[].concat((0,i.Z)(b.nodes.flatMap((function(e){var n,t=null!==(n=Ee.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[xr(xr({},e),t)]:[]}))),(0,i.Z)(Object.keys(Ee.current).filter((function(e){return!s[e]})).map((function(e){return Ee.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return xr(xr({},e),{},(0,o.Z)({},r,t))}),{}),C=p.map((function(e){var n=wr(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return xr(xr({},e),{},{source:m[y[r]],target:m[y[i]]})}));q({nodes:m,links:C})}(t.data);case"variables":return We(t.data),void console.log(t);case"theme":return Ve(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=Y.zoomSpeed,s=Y.zoomPadding;qe("local",t.data.id,r,s),Q(t.data.id);break;case"zoom":var c,a,u=(null===t||void 0===t||null===(c=t.data)||void 0===c?void 0:c.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;qe("zoom",t.data.id,u,d),Q(t.data.id);break;case"follow":qe(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),Q(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,m.useEffect)((function(){var e=Be.current;!e||v.nodeIds.length>1||(v.nodeIds.length||!P.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[v.nodeIds]);var Ge=(0,j.iP)(),Je=(0,l.Z)(Ge,2),Qe=Je[0],Ke=Je[1],$e=(0,m.useRef)(),Ye=(0,m.useState)(null),en=Ye[0],nn=Ye[1],tn=(0,m.useState)({left:0,top:0,right:void 0,bottom:void 0}),rn=tn[0],on=tn[1],ln=(0,u.q)();(0,d.O)({ref:$e,handler:function(){ln.onClose()}});var sn=function(e,n,t){on(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),nn(e),ln.onOpen()},cn=function(e,n){"remove"!==n?"replace"!==n?v.nodeIds.includes(e.id)||y((function(n){return xr(xr({},n),{},{nodeIds:[].concat((0,i.Z)(n.nodeIds),[e.id])})})):y({nodeIds:[e.id],excludedNodeIds:[]}):y((function(n){return xr(xr({},n),{},{excludedNodeIds:[].concat((0,i.Z)(n.excludedNodeIds),[e.id])})}))},an=(0,m.useState)({type:"Graph",title:"Graph",icon:(0,be.jsx)(O.DvO,{})}),un=(an[0],an[1],et("mainWindowWidth",Qe)),dn=(0,l.Z)(un,2),hn=dn[0],gn=dn[1];return console.log(He),(0,be.jsx)(Ot.Provider,{value:xr({},He),children:(0,be.jsxs)(h.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,be.jsx)(dr,{physics:P,setPhysics:D,threeDim:t,setThreeDim:r,filter:L,setFilter:E,visuals:V,setVisuals:X,mouse:re,setMouse:ie,behavior:Y,setBehavior:ee,tagColors:a,setTagColors:x,coloring:se,setColoring:ce,local:de,setLocal:he,tags:Re.current}),(0,be.jsx)(h.xu,{position:"absolute",children:U&&(0,be.jsx)(Cr,{nodeById:Ee.current,linksByNodeId:Ze.current,webSocket:Ue.current,variables:He,physics:P,graphData:U,threeDim:t,emacsNodeId:J,filter:L,visuals:V,behavior:Y,mouse:re,scope:v,setScope:y,tagColors:a,setPreviewNode:je,sidebarHighlightedNode:Se,windowWidth:Qe,windowHeight:Ke,openContextMenu:sn,contextMenu:ln,handleLocal:cn,mainWindowWidth:hn,setMainWindowWidth:gn,setContextMenuTarget:nn,graphRef:Be,clusterRef:Ae,coloring:se,local:de})}),(0,be.jsx)(h.xu,{position:"relative",zIndex:4,width:"100%",children:(0,be.jsx)(g.k,{className:"headerBar",h:10,flexDir:"column",children:(0,be.jsx)(g.k,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,be.jsxs)(g.k,{height:"100%",flexDirection:"row",children:[v.nodeIds.length>0&&(0,be.jsx)(f.u,{label:"Return to main graph",children:(0,be.jsx)(p.h,{m:1,icon:(0,be.jsx)(O.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return y((function(e){return xr(xr({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,be.jsx)(f.u,{label:Ie?"Close sidebar":"Open sidebar",children:(0,be.jsx)(p.h,{m:1,icon:(0,be.jsx)(w.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:Ie?Le:ze})})]})})})}),(0,be.jsx)(h.xu,{position:"relative",zIndex:4,children:(0,be.jsx)(ot,{isOpen:Ie,onOpen:ze,onClose:Le,previewNode:we,setPreviewNode:je,canUndo:Ce,canRedo:Oe,previousPreviewNode:me,nextPreviewNode:ye,resetPreviewNode:ve,setSidebarHighlightedNode:Ne,openContextMenu:sn,scope:v,setScope:y,windowWidth:Qe,tagColors:a,setTagColors:x,filter:L,setFilter:E,macros:He.katexMacros,attachDir:He.attachDir||"",nodeById:Ee.current,linksByNodeId:Ze.current,nodeByCite:Te.current})}),ln.isOpen&&(0,be.jsx)("div",{ref:$e,children:(0,be.jsx)(De,{scope:v,target:en,background:!1,coordinates:rn,handleLocal:cn,menuClose:ln.onClose.bind(ln),webSocket:Ue.current,setPreviewNode:je,setFilter:E,filter:L,setTagColors:x,tagColors:a})})]})})}var Cr=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,u=e.threeDim,d=e.linksByNodeId,g=e.filter,f=e.emacsNodeId,p=e.nodeById,j=e.visuals,v=e.behavior,y=e.mouse,O=e.scope,w=e.local,k=(e.setScope,e.webSocket),N=e.tagColors,P=e.setPreviewNode,D=e.sidebarHighlightedNode,I=e.windowWidth,z=e.windowHeight,L=(e.setContextMenuTarget,e.openContextMenu),E=e.contextMenu,T=e.handleLocal,R=e.variables,B=e.clusterRef,F=e.coloring,H=R.dailyDir,W=(R.roamDir,(0,m.useState)(null)),A=W[0],V=W[1],X=(0,a.useTheme)(),_=(0,m.useContext)(yn.N).emacsTheme,U=function(e,n,t){switch(e){case y.preview:P(n);break;case y.local:T(n,v.localSame);break;case y.follow:re(n,k);break;case y.context:L(n,t)}},q=(0,m.useRef)(null);(0,m.useEffect)((function(){f&&V(p[f])}),[f]);var G=(0,m.useRef)({}),J=(0,m.useRef)({}),Q=(0,m.useMemo)((function(){var e;J.current={};var n=null===s||void 0===s||null===(e=s.nodes)||void 0===e?void 0:e.filter((function(e){var n,t,r,i,l=e;return g.dirsBlocklist.length&&g.dirsBlocklist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||g.dirsAllowlist.length>0&&!g.dirsAllowlist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||g.tagsBlacklist.length&&g.tagsBlacklist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.tagsWhitelist.length>0&&!g.tagsWhitelist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==g&&void 0!==g&&g.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||g.dailies&&H&&null!==(r=l.file)&&void 0!==r&&r.includes(H)?(J.current=xr(xr({},J.current),{},(0,o.Z)({},l.id,l)),!1):!g.noter||null===(i=l.properties)||void 0===i||!i.NOTER_PAGE||(J.current=xr(xr({},J.current),{},(0,o.Z)({},l.id,l)),!1)})).filter((function(e){var n,t=(null!==(n=d[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!J.current[e.source]&&!J.current[e.target]}));return!g.orphans||(g.parent?0!==t.length:0!==t.length&&t.some((function(e){return!["parent","heading"].includes(e.type)})))})),t=n.map((function(e){return e.id})),r=s.links.filter((function(e){var n=wr(e),r=(0,l.Z)(n,2),i=r[0],o=r[1];if(!t.includes(i)||!t.includes(o))return!1;var s=e;return g.parent?"heading"===g.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));G.current=r.reduce((function(e,n){var t,r,s,c=n,a=wr(c),u=(0,l.Z)(a,2),d=u[0],h=u[1];return xr(xr({},e),{},(s={},(0,o.Z)(s,d,[].concat((0,i.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[c])),(0,o.Z)(s,h,[].concat((0,i.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{});var c=r.map((function(e){var n=wr(e),t=(0,l.Z)(n,2);return{target:t[0],source:t[1],weight:"cite"===e.type?1:2}}));if("community"===F.method){var a=C()().nodes(t).edges(c);B.current=a()}return{nodes:n,links:r}}),[g,s,F.method]),K=(0,m.useState)({nodes:[],links:[]}),$=K[0],Y=K[1];(0,m.useEffect)((function(){if(O.nodeIds.length){var e=O.nodeIds.length>1?$.nodes.filter((function(e){return!O.excludedNodeIds.includes(e.id)})):[],n=e.map((function(e){return e.id})),t=function(e,n,t){var r=[e[0]],i=[],o=[e[0]];return Array.from({length:t},(function(){r.forEach((function(e){var t;(null!==(t=G.current[e])&&void 0!==t?t:[]).forEach((function(e){var t=wr(e),r=(0,l.Z)(t,2),s=r[0],c=r[1];n.some((function(e){return[s,c].includes(e)}))||(o.includes(s)?o.includes(c)||i.push(c):i.push(s))}))})),r=i,i.forEach((function(e){return e&&o.push(e)})),i=[]})),o}(O.nodeIds,O.excludedNodeIds,w.neighbors),r=Q.nodes.filter((function(r){var i;return e.length?!n.includes(r.id)&&(null!==(i=G.current[r.id])&&void 0!==i?i:[]).some((function(e){var n=wr(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return O.nodeIds.includes(r)||O.nodeIds.includes(i)})):t.includes(r.id)})).map((function(e){return xr(xr({},e),{},{x:0,y:0,vy:0,vx:0})})),o=[].concat((0,i.Z)(e),(0,i.Z)(r)),s=o.map((function(e){return e.id})),c=(O.nodeIds.length>1?$.links:[]).filter((function(e){O.excludedNodeIds.some((function(n){return wr(e).includes(n)}))})),a=Q.links.filter((function(e){var t=wr(e),r=(0,l.Z)(t,2),i=r[0],o=r[1];return!(c.length&&n.includes(o)&&n.includes(i))&&(s.includes(i)&&s.includes(o))})).map((function(e){var n=wr(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,i.Z)(c),(0,i.Z)(a));Y({nodes:o,links:u})}}),[w.neighbors,g,JSON.stringify(O),JSON.stringify(s),Q.links,Q.nodes]),(0,m.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,jr;case 3:i=e.sent,!t.gravityOn||O.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),u&&r.d3Force("z",null)):(r.d3Force("x",i.forceX().strength(t.gravity)),r.d3Force("y",i.forceY().strength(t.gravity)),u&&r.d3Force("z",i.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",i.forceCenter().strength(t.centeringStrength)):r.d3Force("center",null),t.linkStrength&&r.d3Force("link").strength(t.linkStrength),t.linkIts&&r.d3Force("link").iterations(t.linkIts),t.charge&&r.d3Force("charge").strength(t.charge),r.d3Force("collide",t.collision?i.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,u,O]),(0,m.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,O.nodeIds.length]);var ee=(0,m.useRef)(0),ne=(0,m.useState)(1),te=ne[0],ie=ne[1],oe=(0,x._7)((function(e){return ie(e)}),{duration:j.animationSpeed,algorithm:Z[j.algorithmName]}),le=(0,l.Z)(oe,2),se=le[0],ce=le[1],ae=(0,x._7)((function(e){return ie(Math.min(te,-1*(e-1)))}),{duration:j.animationSpeed,algorithm:Z[j.algorithmName]}),ue=(0,l.Z)(ae,2),de=ue[0],he=ue[1],ge=(0,m.useMemo)((function(){var e;if(!q.current)return{};var n=G.current[q.current.id];return n?Object.fromEntries([null===(e=q.current)||void 0===e?void 0:e.id].concat((0,i.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[JSON.stringify(q.current),JSON.stringify(G.current)]);(0,m.useEffect)((function(){null!==D&&void 0!==D&&D.id?V(D):V(null)}),[D]);var fe=(0,m.useRef)(null);(0,m.useEffect)((function(){if(q.current=A,A&&(fe.current=A),!j.highlightAnim)return ie(A?1:0);A?se():(ce(),te>.5?de():ie(0))}),[A]);var pe=(0,m.useMemo)((function(){return Object.fromEntries(M.map((function(e){var n=kr(e,X),t=M.map((function(e){return[e,b.Z(n,kr(e,X))]}));return[e,Object.fromEntries(t)]})))}),[_]),xe=(0,m.useMemo)((function(){var e,n,t,r=null!==(e=G.current[null===(n=fe.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=fe.current)||void 0===t?void 0:t.id].concat((0,i.Z)(r.flatMap((function(e){return wr(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(A),fe.current,G.current]),je=function(e){var n,t,r,i,o,l=null!==(n=null===(t=G.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return"degree"===F.method?j.nodeColorScheme[(r=l,i=0,o=j.nodeColorScheme.length-1,Math.min(Math.max(r,i),o))]:j.nodeColorScheme[l&&B.current[e]%j.nodeColorScheme.length]},ve=function(e,n){return G.current[e].length>G.current[n].length?je(e):je(n)},me=(0,m.useMemo)((function(){return kr(j.labelTextColor,X)}),[j.labelTextColor,_]),ye=(0,m.useMemo)((function(){return kr(j.labelBackgroundColor,X)}),[j.labelBackgroundColor,_]),Ce=function(e){var n,t=null!==(n=G.current[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,i=3+t.length*j.nodeSizeLinks-(g.parent?0:r);return 1===j.highlightNodeSize?i:i*(ge[e.id]||xe[e.id]?1+te*(j.highlightNodeSize-1):1)},Oe=(0,m.useState)(!1),we=Oe[0],ke=Oe[1],Se=(0,m.useRef)(1),Ne={graphData:O.nodeIds.length?$:Q,width:I,height:z,backgroundColor:kr(j.backgroundColor,X),warmupTicks:1===O.nodeIds.length?100:O.nodeIds.length>1?20:0,onZoom:function(e){var n=e.k;e.x,e.y;return Se.current=n},nodeColor:function(e){return function(e,n){var t,r,i=ge[e.id]||xe[e.id];if(j.emacsNodeColor&&e.id===f)return kr(j.emacsNodeColor,n);if(N&&null!==e&&void 0!==e&&e.tags.some((function(e){return N[e]}))){var o=N[null===e||void 0===e?void 0:e.tags.filter((function(e){return N[e]}))[0]];return i?pe[o][o](j.highlightFade*te):pe[o][j.backgroundColor](j.highlightFade*te)}return j.citeNodeColor&&null!==e&&void 0!==e&&null!==(t=e.properties)&&void 0!==t&&t.ROAM_REFS&&null!==e&&void 0!==e&&null!==(r=e.properties)&&void 0!==r&&r.FILELESS?i?kr(j.citeNodeColor,n):pe[j.citeNodeColor][j.backgroundColor](j.highlightFade*te):j.refNodeColor&&e.properties.ROAM_REFS?i?kr(j.refNodeColor,n):pe[j.refNodeColor][j.backgroundColor](j.highlightFade*te):i?j.nodeHighlight?pe[je(e.id)][j.nodeHighlight](te):kr(je(e.id),n):pe[je(e.id)][j.backgroundColor](j.highlightFade*te)}(e,X)},nodeRelSize:j.nodeRel,nodeVal:function(e){return Ce(e)/Math.pow(Se.current,j.nodeZoomSize)},nodeCanvasObject:function(e,n,t){fr(xr({nodeRel:j.nodeRel,filteredLinksByNodeId:G.current,lastHoverNode:fe.current},{node:e,ctx:n,globalScale:t,highlightedNodes:ge,previouslyHighlightedNodes:xe,visuals:j,opacity:te,nodeSize:Ce,labelTextColor:me,labelBackgroundColor:ye,hoverNode:A}))},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:j.particles?j.particlesNumber:void 0,linkDirectionalArrowLength:j.arrows?j.arrowsLength:void 0,linkDirectionalArrowRelPos:j.arrowsPos,linkDirectionalArrowColor:j.arrowsColor?function(){return kr(j.arrowsColor,X)}:void 0,linkColor:function(e){var n,t="object"===typeof e.source?e.source.id:e.source,r="object"===typeof e.target?e.target.id:e.target,i=Or(e,q.current),o=Or(e,fe.current),l=i||o,s=e;return j.refLinkColor&&"ref"===s.type?l&&(j.refLinkHighlightColor||j.linkHighlight)?pe[j.refLinkColor][j.refLinkHighlightColor||j.linkHighlight](te):pe[j.refLinkColor][j.backgroundColor](j.highlightFade*te):j.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(j.citeLinkHighlightColor||j.linkHighlight)?pe[j.citeLinkColor][j.citeLinkHighlightColor||j.linkHighlight](te):pe[j.citeLinkColor][j.backgroundColor](j.highlightFade*te):function(e,n,t,r){if(!j.linkHighlight&&!j.linkColorScheme&&!t)return kr(ve(e,n),r);if(!t&&!j.linkColorScheme){var i=ve(e,n);return pe[i][j.backgroundColor](j.highlightFade*te)}return t?j.linkHighlight||j.linkColorScheme?j.linkHighlight?j.linkColorScheme?pe[j.linkColorScheme][j.linkHighlight](te):pe[ve(e,n)][j.linkHighlight](te):kr(j.linkColorScheme,r):kr(ve(e,n),r):pe[j.linkColorScheme][j.backgroundColor](j.highlightFade*te)}(t,r,l,X)},linkWidth:function(e){if(1===j.highlightLinkSize)return j.linkWidth;var n=Or(e,q.current),t=Or(e,fe.current);return n||t?j.linkWidth*(1+te*(j.highlightLinkSize-1)):j.linkWidth},linkDirectionalParticleWidth:j.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-ee.current<200;if(ee.current=n.timeStamp,r)return U("double",t,n);var i=ee.current;return setTimeout((function(){if(ee.current===i)return U("click",t,n)}),200)},onNodeHover:function(e){j.highlight&&(we||(A||(he(),ie(0)),V(e)))},onNodeRightClick:function(e,n){U("right",e,n)},onNodeDrag:function(e){V(e),ke(!0)},onNodeDragEnd:function(){V(null),ke(!1)}};return(0,be.jsx)(h.xu,{overflow:"hidden",onClick:E.onClose,children:u?(0,be.jsx)(vr,xr(xr({ref:n},Ne),{},{nodeThreeObjectExtend:!0,nodeOpacity:j.nodeOpacity,nodeResolution:j.nodeResolution,linkOpacity:j.linkOpacity,nodeThreeObject:function(e){if(j.labels&&(!(j.labels<3)||ge[e.id])){var n=new S.Z(e.title.substring(0,40));return n.color=kr(j.labelTextColor,X),n.backgroundColor=kr(j.labelBackgroundColor,X),n.padding=2,n.textHeight=8,n}}})):(0,be.jsx)(br,xr(xr({ref:n},Ne),{},{linkLineDash:function(e){var n,t=e;return j.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[j.citeDashLength,j.citeGapLength]:j.refDashes&&"ref"==t.type?[j.refDashLength,j.refGapLength]:null}}))})};function Or(e,n){var t,r;return(null===(t=e.source)||void 0===t?void 0:t.id)===(null===n||void 0===n?void 0:n.id)||(null===(r=e.target)||void 0===r?void 0:r.id)===(null===n||void 0===n?void 0:n.id)}function wr(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function kr(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)}function Sr(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(20624)}])}},function(e){e.O(0,[774,737,876,228,866,13,874,573,446,911,888,179],(function(){return n=45301,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
\ No newline at end of file diff --git a/out/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js b/out/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js new file mode 100644 index 0000000..c57f348 --- /dev/null +++ b/out/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{20624:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return Cr},GraphPage:function(){return yr},default:function(){return mr},getThemeColor:function(){return kr},hexToRGBA:function(){return Sr},normalizeLinkEnds:function(){return wr}});var r=t(15861),i=t(42982),o=t(4942),l=t(70885),s=t(87757),c=t.n(s),a=t(40980),u=t(74860),d=t(95869),h=t(48017),g=t(94096),f=t(96699),p=t(48420),x=t(57775),j=t(54309),b=t(52596),v=t(9008),m=t(67294),y=t(32802),C=t.n(y),O=t(47516),w=t(63750),k=t(22003),S=t(31122),N=t(7520),P=t(36194),D=[],I={};for(var z in P.oY)for(var L in P.oY[z]){var E=z+L;"LinearNone"===E&&(E="Linear"),D.push(E),I[E]=P.oY[z][L]}var Z=I,T={enabled:!0,charge:-700,collision:!0,collisionStrength:20,centering:!0,centeringStrength:.2,linkStrength:.3,linkIts:1,alphaDecay:.05,alphaTarget:0,alphaMin:0,velocityDecay:.25,gravity:.3,gravityOn:!0,gravityLocal:!1},R={orphans:!1,dailies:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],dirsBlocklist:[],dirsAllowlist:[],bad:!0,nodes:[],links:[],date:[],noter:!0},B={method:"degree"},F={particles:!1,particlesNumber:0,particlesWidth:4,arrows:!1,arrowsLength:1,arrowsPos:.5,arrowsColor:"",linkOpacity:.8,linkWidth:1,nodeRel:3,nodeOpacity:1,nodeResolution:12,labels:2,labelScale:1.5,labelFontSize:10,labelLength:40,labelWordWrap:25,labelLineSpace:1,labelDynamicDegree:8,labelDynamicStrength:.5,highlight:!0,highlightNodeSize:1.1,highlightLinkSize:.7,highlightFade:.8,highlightAnim:!0,animationSpeed:360,algorithmOptions:D,algorithmName:"CircularOut",linkColorScheme:"gray.500",nodeColorScheme:["red.500","gray.600","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","orange.500"],nodeHighlight:"purple.500",linkHighlight:"purple.500",backgroundColor:"white",emacsNodeColor:"gray.800",labelTextColor:"black",labelBackgroundColor:"",labelBackgroundOpacity:.7,citeDashes:!0,citeDashLength:35,citeGapLength:15,citeLinkColor:"gray.700",citeLinkHighlightColor:"",citeNodeColor:"black",refDashes:!0,refDashLength:35,refGapLength:15,refLinkColor:"gray.700",refLinkHighlightColor:"",refNodeColor:"black",nodeSizeLinks:.5,nodeZoomSize:1.2},H={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},W={highlight:"hover",local:"double",follow:"never",context:"right",preview:"click",backgroundExitsLocal:!1},A={neighbors:1},M=["red.500","orange.500","yellow.500","green.500","cyan.500","blue.500","pink.500","purple.500","white","gray.100","gray.200","gray.300","gray.400","gray.500","gray.600","gray.700","gray.800","gray.900","black"],V=t(11252),X=t(336),_=t(85675),U=t(72026),q=t(64115),G=t(49364),J=t(94030),Q=t(85305),K=t(46617),$=t(50862),Y=t(68928),ee=t(55830),ne=t(2827);function te(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function re(e,n){te("open",{id:e.id},n)}var ie=t(77787),oe=t(45987),le=t(80658),se=t(38554),ce=t.n(se),ae=t(84461),ue=t(73808),de=t(53869),he=t(39629);function ge(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ge(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var pe={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var xe=function(e,n){return fe(fe({},e),{},{delay:(0,ue.hj)(n)?n:null===n||void 0===n?void 0:n.enter})},je=function(e,n){return fe(fe({},e),{},{delay:(0,ue.hj)(n)?n:null===n||void 0===n?void 0:n.exit})},be=t(85893),ve=["in","unmountOnExit","animateOpacity","startingSize","endingSize","dimension","style","className","transition","transitionEnd"];function me(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ye(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?me(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):me(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ce=function(e){return null!=e&&parseInt(e.toString(),10)>0},Oe={exit:{size:{duration:.2,ease:pe.ease},opacity:{duration:.3,ease:pe.ease}},enter:{size:{duration:.3,ease:pe.ease},opacity:{duration:.4,ease:pe.ease}}},we={exit:function(e){var n,t,r=e.animateOpacity,i=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return ye(ye({},r&&{opacity:Ce(i)?1:0}),{},(t={overflow:"hidden"},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:je(Oe.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,i=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return ye(ye({},r&&{opacity:1}),{},(t={},(0,o.Z)(t,a,i),(0,o.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,o.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:xe(Oe.enter,c)),t))}},ke=m.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,i=e.animateOpacity,o=void 0===i||i,s=e.startingSize,c=void 0===s?0:s,a=e.endingSize,u=void 0===a?"auto":a,d=e.dimension,h=void 0===d?"height":d,g=e.style,f=e.className,p=e.transition,x=e.transitionEnd,j=(0,oe.Z)(e,ve),b=m.useState(!1),v=(0,l.Z)(b,2),y=v[0],C=v[1];m.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,le.ZK)({condition:Boolean(c>0&&r),message:"startingSize and unmountOnExit are mutually exclusive. You can't use them together"});var O=parseFloat(c.toString())>0,w={startingSize:c,endingSize:u,animateOpacity:o,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:ce()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:O?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,be.jsx)(de.M,{initial:!1,custom:w,children:k&&(0,be.jsx)(he.E.div,ye(ye({ref:n},j),{},{className:(0,ae.cx)("chakra-collapse",f),style:ye({overflow:"hidden",display:"block"},g),custom:w,variants:we,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));function Se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Se(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}ue.Ts&&(ke.displayName="Collapse");var Pe=function(e){var n=e.setTagColors,t=e.setFilter,r=e.filter,l=e.tagColors,s=e.target,c=r.tagsBlacklist,a=r.tagsWhitelist,d=c.indexOf(s)>-1,f=a.indexOf(s)>-1,p=(0,u.q)();return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(V.sN,{icon:(0,be.jsx)(h.xu,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:p.onToggle,children:(0,be.jsx)(q.x,{children:"Change color"})}),(0,be.jsx)(ke,{in:p.isOpen,children:(0,be.jsxs)(g.k,{ml:2,mt:2,flexWrap:"wrap",children:[(0,be.jsx)(h.xu,{children:(0,be.jsx)(h.xu,{tabIndex:0,cursor:"pointer",onClick:function(){return n((function(e){return Object.fromEntries(Object.keys(e).filter((function(e){return e!==s})).map((function(n){return[n,e[n]]})))}))},bgColor:"",m:1,borderRadius:"sm",borderColor:"gray.600",borderWidth:1,height:3,width:3})},"empty"),M.map((function(e){return(0,be.jsx)(h.xu,{children:(0,be.jsx)(h.xu,{tabIndex:0,cursor:"pointer",onClick:function(){return n(Ne(Ne({},l),{},(0,o.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))]})}),!f&&(0,be.jsx)(V.sN,{onClick:function(){t(d?function(e){return Ne(Ne({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return Ne(Ne({},e),{},{tagsBlacklist:[].concat((0,i.Z)(e.tagsBlacklist),[s])})})},icon:d?(0,be.jsx)(Q.V,{}):(0,be.jsx)(ie.t,{}),children:d?"Remove from blocklist":"Add to blocklist"}),!d&&(0,be.jsx)(V.sN,{onClick:function(){t(f?function(e){return Ne(Ne({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return Ne(Ne({},e),{},{tagsWhitelist:[].concat((0,i.Z)(e.tagsWhitelist),[s])})})},icon:f?(0,be.jsx)(Q.V,{}):(0,be.jsx)(ee.O,{}),children:f?"Remove from allowlist":"Add to allowlist"})]})},De=function(e){e.background;var n,t,r=e.target,i=(e.nodeType,e.coordinates),o=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,a=e.setPreviewNode,d=e.setTagColors,h=e.tagColors,g=e.setFilter,f=e.filter,p=(0,u.q)(),x=p.isOpen,j=p.onOpen,b=p.onClose;(0,m.useRef)();return(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(V.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,be.jsx)(V.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:i.left,top:i.top,right:i.right,bottom:i.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,be.jsxs)(be.Fragment,{children:[r&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(X.X,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,be.jsx)(V.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(V.sN,{onClick:function(){return o(r,"add")},icon:(0,be.jsx)(J.I,{}),children:"Expand local graph at node"}),(0,be.jsx)(V.sN,{onClick:function(){return o(r,"replace")},icon:(0,be.jsx)(O.DvO,{}),children:"Open local graph for this node"}),(0,be.jsx)(V.sN,{onClick:function(){return o(r,"remove")},icon:(0,be.jsx)(Q.V,{}),children:"Exclude node from local graph"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,be.jsx)(V.sN,{icon:(0,be.jsx)($.d,{}),onClick:function(){return function(e,n){te("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,be.jsx)(V.sN,{icon:(0,be.jsx)(K.d,{}),onClick:function(){return re(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,be.jsx)(V.sN,{icon:(0,be.jsx)(Y.h,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,be.jsx)(V.sN,{icon:(0,be.jsx)(O.DvO,{}),onClick:function(){return o(r,"replace")},children:"Open local graph"}),(0,be.jsx)(V.sN,{icon:(0,be.jsx)(ee.O,{}),onClick:function(){a(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,be.jsx)(V.sN,{closeOnSelect:!1,icon:(0,be.jsx)(ne.p,{color:"red.500"}),color:"red.500",onClick:j,children:"Permanently delete note"})]}):(0,be.jsx)(Pe,{target:r,tagColors:h,filter:f,setTagColors:d,setFilter:g})})}),"string"!==typeof r&&(0,be.jsxs)(_.u_,{isCentered:!0,isOpen:x,onClose:b,children:[(0,be.jsx)(_.ZA,{}),(0,be.jsxs)(_.hz,{zIndex:"popover",children:[(0,be.jsx)(_.xB,{children:"Delete node?"}),(0,be.jsx)(_.ol,{}),(0,be.jsx)(_.fe,{children:(0,be.jsxs)(U.gC,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,be.jsx)(q.x,{children:"This will permanently delete your note:"}),(0,be.jsx)(q.x,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,be.jsx)(q.x,{children:"This will only delete the from this heading until but not including the next node. Your parent file and all other nodes will not be deleted."}),(0,be.jsx)(q.x,{children:"Are you sure you want to do continue?"})]})}),(0,be.jsxs)(_.mz,{children:[(0,be.jsx)(G.z,{mr:3,onClick:function(){console.log("closing"),b(),l()},children:"Cancel"}),(0,be.jsx)(G.z,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&te("delete",{id:e.id,file:e.file},n)}(r,c),b(),l()},children:"Delete node"})]})]})]})]})},Ie=t(67101),ze=t(5434),Le=t(35255),Ee=t(56884),Ze=t(51649),Te=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),i=e.canRedo,o=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode,s=e.outline,c=e.setOutline,a=e.collapse,u=e.setCollapse;return(0,be.jsxs)(g.k,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pr:1,children:[(0,be.jsx)(g.k,{children:(0,be.jsxs)(Ie.h,{isAttached:!0,children:[(0,be.jsx)(f.u,{label:"Go backward",children:(0,be.jsx)(p.h,{_focus:{},variant:"subtle",icon:(0,be.jsx)(Le.w,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return o()}})}),(0,be.jsx)(f.u,{label:"Go forward",children:(0,be.jsx)(p.h,{_focus:{},variant:"subtle",icon:(0,be.jsx)(Ee.X,{}),"aria-label":"Next node",disabled:!i,onClick:function(){return l()}})})]})}),(0,be.jsxs)(g.k,{children:[(0,be.jsx)(f.u,{label:"Justify content",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Justify content",icon:[(0,be.jsx)(O.v9V,{},"justify"),(0,be.jsx)(O.YSr,{},"left"),(0,be.jsx)(O.RXA,{},"right"),(0,be.jsx)(O.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})}),(0,be.jsx)(f.u,{label:"Toggle outline view",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Justify content",icon:s?(0,be.jsx)(Ze.XQM,{}):(0,be.jsx)(Ze.JfF,{}),onClick:function(){return c((function(e){return!e}))}})}),(0,be.jsx)(f.u,{label:"Toggle headers",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Toggle headers",icon:a?(0,be.jsx)(ze.omV,{}):(0,be.jsx)(ze.egf,{}),onClick:function(){return u((function(e){return!e}))}})})]})]})},Re=t(35528);function Be(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Be(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Be(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var He=function(e){var n,t,r,o=e.filter,l=e.setFilter,s=e.tagColors,c=(e.setTagColors,e.openContextMenu),a=e.previewNode;return null!==a&&void 0!==a&&a.tags&&null!==(null===a||void 0===a||null===(n=a.tags)||void 0===n?void 0:n[0])?(0,be.jsx)(g.k,{mb:2,flexWrap:"wrap",children:null===a||void 0===a||null===(t=a.tags)||void 0===t||null===(r=t.map)||void 0===r?void 0:r.call(t,(function(e){var n,t,r,a=null!==(n=o.tagsBlacklist)&&void 0!==n?n:[],u=null!==(t=o.tagsWhitelist)&&void 0!==t?t:[],d=a.includes(e),h=u.includes(e);return(0,be.jsxs)(Re.Vp,{tabIndex:0,mr:2,mt:2,onContextMenu:function(n){n.preventDefault(),c(e,n)},cursor:"pointer",onClick:function(){l(d?function(n){return Fe(Fe({},n),{},{tagsBlacklist:n.tagsBlacklist.filter((function(n){return n!==e})),tagsWhitelist:[].concat((0,i.Z)(n.tagsWhitelist),[e])})}:h?function(n){return Fe(Fe({},n),{},{tagsWhitelist:n.tagsWhitelist.filter((function(n){return n!==e}))})}:function(n){return Fe(Fe({},n),{},{tagsBlacklist:[].concat((0,i.Z)(n.tagsBlacklist),[e])})})},size:"sm",variant:"outline",colorScheme:(null===(r=s[e])||void 0===r?void 0:r.replaceAll(/(.*?)\..*/g,"$1"))||void 0,children:[(0,be.jsx)(Re.Sn,{children:e}),d?(0,be.jsx)(Re.bq,{as:ie.t}):h?(0,be.jsx)(Re.bq,{as:ee.O}):null]},e)}))}):null},We=t(18835),Ae=t.n(We),Me=t(13816),Ve=t.n(Me),Xe=t(42728),_e=t.n(Xe),Ue=t(77890),qe=t.n(Ue),Ge=t(94986),Je=t.n(Ge),Qe=t(88541),Ke=t.n(Qe),$e=t(71167),Ye=t.n($e),en=(t(85062),t(27431)),nn=t.n(en),tn=t(12861),rn=t.n(tn),on=t(10043),ln=t.n(on),sn=t(80816),cn=t(93545),an=t.n(cn),un=t(15941),dn=t.n(un),hn=t(67597),gn=t.n(hn),fn=t(44549),pn=t.n(fn),xn=t(78818),jn=t.n(xn),bn=t(49444),vn=t(45170),mn=t(67273),yn=t(29356),Cn={".headingFlex":{flexDirection:"row-reverse",justifyContent:"flex-end"},".outlineHeadingButton":{display:"none"},h1:{color:"black",lineHeight:"1.2",fontSize:"16",fontWeight:"bold",paddingTop:2},h2:{fontSize:"14",color:"black",fontWeight:"bold",fontStyle:"bold italic",paddingTop:2},h3:{fontSize:"13",color:"black",paddingTop:2},h4:{fontSize:"12",fontStyle:"italic",color:"black",paddingTop:2},".sectionContent":{paddingTop:2}},On={".headingFlex":{flexDirection:"row",justifyContent:"flex-start"},".viewerHeadingButton":{display:"none"},".sectionContent":{mt:3,paddingLeft:4,ml:"11px",borderLeftWidth:"1px",borderLeftColor:"gray.500"},".preHeadingContent":{},"h1,h2,h3,h4,h5,h6,h7,h8":{pl:1,lineHeight:"1.25",color:"black",fontSize:15,fontWeight:700},".sec":{pt:1},".wrapClass > div > p":{mb:2},p:{fontWeight:500,fontSize:14,pb:2}},wn={".katex":{overflowX:"scroll"},ol:{paddingLeft:4,py:1},"li::marker":{fontSize:12,fontWeight:"bold"},li:{pt:1},ul:{paddingLeft:"5"},p:{fontSize:"14",fontWeight:"500 !important",pb:2},div:{hyphens:"auto !important"},".title":{textAlign:"center",marginBottom:".2em"},".subtitle":{textAlign:"center",fontSize:"medium",fontWeight:"bold",marginTop:0},".TODO":{color:"red.500"},".equationContainer":{display:"table",textAlign:"center",width:"100%"},".equation":{verticalAlign:"middle"},".equation-label":{display:"tableCell",textAlign:"right",verticalAlign:"middle"},".inlinetask":{padding:"10px",border:"2px solid gray",margin:"10px",background:"#ffffcc"},"#org-div-home-and-up":{textAlign:"right",fontSize:"70 % ",whiteSpace:"nowrap"},textarea:{overflowX:"auto"},".linenr":{fontSize:"smaller"},".org-info-js_info-navigation":{borderStyle:"none"},"#org-info-js_console-label":{fontSize:"10px",fontWeight:"bold",whiteSpace:"nowrap"},".org-info-js_search-highlight":{backgroundColor:"#ffff00",color:"#000000",fontWeight:"bold"},".org-svg":{width:"90%"},".DONE":{color:"green"},".priority":{fontFamily:"monospace",color:"orange"},".tag":{backgroundColor:"white",fontFamily:"monospace",padding:"2px",fontSize:"80%",fontWeight:"normal"},".timestamp":{color:"#bebebe"},".timestamp-kwd":{color:"#5f9ea0"},".org-right":{marginLeft:"auto",marginRight:"0px",textAlign:"right"},".org-left":{marginLeft:"0px",marginRight:"auto",textAlign:"left"},".org-center":{marginLeft:"auto",marginRight:"auto",textAlign:"center"},".underline":{textDecoration:"underline"},"#postamble p":{fontSize:"90%",margin:".2em"},"#preamble p":{fontSize:"90%",margin:".2em"},"p.verse":{marginLeft:"3%"},pre:{borderRadius:"3px",backgroundColor:"white",padding:"8pt",fontFamily:"monospace",overflow:"auto",margin:"1.2em"},"pre.src":{position:"relative",overflow:"auto"},"pre.src:before":{display:"none",position:"absolute",top:"-8px",right:"12px",padding:"3px",backgroundColor:"white"},"caption.t-above":{captionSide:"top"},"caption.t-bottom":{captionSide:"bottom"},"th.org-right":{textAlign:"center"},"th.org-left":{textAlign:"center"},"th.org-center":{textAlign:"center"},"td.org-right":{textAlign:"right"},"td.org-left":{textAlign:"left"},"td.org-center":{textAlign:"center"},".footpara":{display:"inline"},".footdef":{marginBottom:"1em"},".figure":{padding:"1em"},".figure p":{textAlign:"center"}},kn=t(86658),Sn=["style"];function Nn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Pn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Nn(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Nn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Dn=function(e){var n=e.noUnderline,t=e.id,r=e.setSidebarHighlightedNode,i=e.setPreviewNode,o=e.nodeById,l=e.openContextMenu,s=e.href,c=e.children,u=e.isWiki,d=(0,m.useContext)(yn.N).highlightColor,h=kr(d,(0,a.useTheme)()),g=(s.replaceAll(/(.*?)\:?.*/g,"$1"),s.replaceAll(/.*?\:(.*)/g,"$1")),f=null!==t&&void 0!==t?t:g,p=u?"[[".concat(c,"]]"):c;return(0,be.jsx)(q.x,{as:"a",onMouseEnter:function(){return r(o[f])},onMouseLeave:function(){return r({})},tabIndex:0,display:"inline",overflow:"hidden",fontWeight:500,color:d,textDecoration:n?void 0:"underline",onContextMenu:function(e){e.preventDefault(),l(o[g],e)},onClick:function(){return i(o[g])},_hover:{textDecoration:"none",cursor:"pointer",bgColor:h+"22"},_focus:{outlineColor:d},children:p})},In=function(e){var n=e.href,t=e.children,r=(0,m.useContext)(yn.N).highlightColor;return(0,be.jsxs)(bn.r,{color:r,isExternal:!0,href:n,children:[t,(0,be.jsx)(Y.h,{mx:"1px",pb:"2px"})]})},zn=function(e){var n,t=e.href,r=e.children,i=e.nodeById,o=e.setSidebarHighlightedNode,l=e.previewNode,s=e.setPreviewNode,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,d=e.noUnderline,g=e.linksByNodeId,f=e.isWiki,p=e.macros,x=e.attachDir,j=(0,m.useState)(null),b=j[0],v=j[1],y=(0,m.useState)(!1),C=y[0],O=y[1],w=t.replaceAll(/(.*?)\:.*/g,"$1"),k=u?On:Cn;console.log(l);if((0,m.useEffect)((function(){w.replaceAll(/(http)?.*/g,"$1")||b||C&&fetch("http://localhost:35901/file/".concat(L)).then((function(e){return e.text()})).then((function(e){"error"===e||v(e)})).catch((function(e){return console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}),[C,b]),!w)return(0,be.jsx)(q.x,{color:"gray.700",children:r});if(w.replaceAll(/(http)?.*/g,"$1"))return(0,be.jsx)(In,{href:t,children:r});var S,N,P,D,I=t.replaceAll(/.*?\:(.*)/g,"$1"),z=function(e,n){if("id"===e)return n;if(e.includes("cite")){var t,r=null!==(t=c[n])&&void 0!==t&&t;return r?null!==r&&void 0!==r&&r.properties.FILELESS?"":null===r||void 0===r?void 0:r.id:""}return""}(w,I),L=encodeURIComponent(encodeURIComponent(null===(n=i[z])||void 0===n?void 0:n.file));return z?(0,be.jsx)(be.Fragment,{children:(0,be.jsxs)(vn.J2,{gutter:12,trigger:"hover",placement:"top-start",children:[(0,be.jsx)(vn.xo,{children:(0,be.jsx)(h.xu,{display:"inline",onMouseEnter:function(){return O(!0)},onMouseLeave:function(){return O(!1)},children:(0,be.jsx)(Dn,{id:z,setSidebarHighlightedNode:o,setPreviewNode:s,nodeById:i,href:t,children:r,nodeByCite:c,openContextMenu:a,noUnderline:d,isWiki:f},null!==(S=null===(N=i[z])||void 0===N?void 0:N.title)&&void 0!==S?S:z)})}),(0,be.jsx)(mn.h,{children:(0,be.jsxs)(vn.yk,{transform:"scale(1)",boxShadow:"xl",position:"relative",zIndex:"tooltip",onMouseEnter:function(){var e;o(null!==(e=i[z])&&void 0!==e?e:{})},onMouseLeave:function(){o({})},children:[(0,be.jsx)(vn.QH,{}),(0,be.jsx)(vn.b,{pb:5,fontSize:"xs",position:"relative",zIndex:"tooltip",transform:"scale(1)",width:"100%",children:(0,be.jsx)(kn.$B,{autoHeight:!0,autoHeightMax:300,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,oe.Z)(e,Sn);return(0,be.jsx)(h.xu,Pn({style:Pn(Pn({},n),{},{borderRadius:0})},t))},children:(0,be.jsx)(h.xu,{w:"100%",color:"black",px:3,sx:Pn(Pn({},wn),k),children:(0,be.jsx)(Xn,{previewText:b,nodeById:i,setSidebarHighlightedNode:o,setPreviewNode:s,nodeByCite:c,openContextMenu:a,outline:u,linksByNodeId:g,macros:p,attachDir:x,previewNode:i[z],collapse:!1})})})})]},null!==(P=null===(D=i[z])||void 0===D?void 0:D.title)&&void 0!==P?P:z)})]})}):(0,be.jsx)(q.x,{as:"span",display:"inline",className:t,color:"base.700",cursor:"not-allowed",children:r})},Ln=t(25675),En=t(62520),Zn=t.n(En),Tn=t(53850),Rn=function(e){var n=e.src,t=e.file,r=(0,m.useState)(null);r[0],r[1];if(n.replaceAll(/(http)?.*/g,"$1"))return console.log(n.replaceAll(/(http)?.*/g,"$1")),(0,be.jsx)(Ln.default,{layout:"responsive",loader:function(e){var n=e.src;return e.width,e.quality,"".concat(n)},src:n,alt:"",width:"auto",height:"auto"});var i=n.replaceAll(/file:/g,""),o=Zn().dirname(t),l=Zn().isAbsolute(i)||"~"===i.slice(0,1)?i:Zn().join(o,i),s=encodeURIComponent(encodeURIComponent(l));return(0,be.jsx)(Tn.W,{my:4,position:"relative",children:(0,be.jsx)("img",{alt:"Wow, an image.",src:"http://localhost:35901/img/".concat(s)})})},Bn=t(14578),Fn=t(6780),Hn=t(6569),Wn=(0,m.createContext)({outline:!1,collapse:!0}),An=function(e){var n=e.children,t=e.className,r=(0,m.useState)(!0),i=r[0],o=r[1],l=(0,m.useContext)(Wn).collapse;if((0,m.useEffect)((function(){o(!l)}),[l]),"h0Wrapper headingWrapper"===t)return(0,be.jsxs)(h.xu,{className:"preHeadingContent",children:[" ",n]});var s=n;return(0,be.jsxs)(h.xu,{className:"sec",children:[(0,be.jsx)(h.xu,{display:"block",children:(0,be.jsxs)(g.k,{className:"headingFlex",alignItems:"baseline",children:[i&&s.length>0?(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(p.h,{className:"viewerHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,be.jsx)(Fn.g,{}),onClick:function(){return o(!i)},height:2,width:2}),(0,be.jsx)(p.h,{className:"outlineHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,be.jsx)(Bn.zOz,{}),onClick:function(){return o(!i)},height:2,width:2})]}):(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(p.h,{className:"viewerHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,be.jsx)(Hn.v,{}),onClick:function(){return o(!i)}}),(0,be.jsx)(p.h,{className:"outlineHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,be.jsx)(Bn.O6Y,{}),onClick:function(){return o(!i)}})]}),s[0]]})}),i&&(0,be.jsx)(h.xu,{className:"sectionContent",children:s.slice(1)})]})};function Mn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Vn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Mn(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Mn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Xn=function(e){var n,t,r=e.nodeById,i=e.setSidebarHighlightedNode,l=e.setPreviewNode,s=e.previewText,c=e.nodeByCite,a=e.previewNode,u=e.openContextMenu,d=e.outline,h=e.collapse,g=e.linksByNodeId,f=e.macros,p=e.attachDir;if(!a||!g)return null;var x=Ae()().use(Ve()).use(Je()).use(Ke(),{idDir:p||void 0}).use(qe()).use(_e(),{useSections:!0}),j=(null===(n=g[null===a||void 0===a?void 0:a.id])||void 0===n?void 0:n.reduce((function(e,n){var t=wr(n).filter((function(e){return e!==a.id})).join("");return Vn(Vn({},e),{},(0,o.Z)({},t,r[t]))}),{}))||{},b=Object.entries(j),v=Ae()().use(rn()).use(dn(),["yaml"]).use(gn()).use(sn.Z,{permaLinks:Object.keys(j),pageResolver:function(e){var n,t=b.find((function(n){var t;return(null===n||void 0===n||null===(t=n[1])||void 0===t?void 0:t.title)===e}));return[null!==(n=null===t||void 0===t?void 0:t[0])&&void 0!==n?n:""]},hrefTemplate:function(e){return console.log(e),"id:".concat(e)}}).use(pn()).use(an()).use(ln()).use(jn()),y=".md"===(null===a||void 0===a||null===(t=a.file)||void 0===t?void 0:t.slice(-3)),C=y?v:x;console.log(f);var O=(0,m.useMemo)((function(){return C.use(Ye(),{trust:function(e){return["\\htmlId","\\href"].includes(e.command)},macros:Vn({"\\eqref":"\\href{###1}{(\\text{#1})}","\\ref":"\\href{###1}{\\text{#1}}","\\label":"\\htmlId{#1}{}"},f)}).use(nn(),{createElement:m.createElement,components:{a:function(e){var n=e.children,t=e.href;return(0,be.jsx)(zn,{nodeByCite:c,setSidebarHighlightedNode:i,href:"".concat(t),nodeById:r,linksByNodeId:g,setPreviewNode:l,openContextMenu:u,outline:d,previewNode:a,isWiki:y,macros:f,attachDir:p,children:n})},img:function(e){var n=e.src;return(0,be.jsx)(Rn,{src:n,file:null===a||void 0===a?void 0:a.file})},section:function(e){var n=e.children,t=e.className;return(0,be.jsx)(An,{outline:d,collapse:h,className:t,children:n})},p:function(e){var n=e.children;return(0,be.jsx)("p",{lang:"en",children:n})}}})}),[null===a||void 0===a?void 0:a.id]),w=(0,m.useMemo)((function(){return O.processSync(s).result}),[s]);return(0,be.jsx)(Wn.Provider,{value:{collapse:h,outline:d},children:w})};var _n=function(e){var n=e.openContextMenu,t=e.setSidebarHighlightedNode,r=e.nodeById,i=e.nodeByCite,o=e.previewNode,l=e.setPreviewNode,s=e.outline,c=e.collapse,a=e.linksByNodeId,u=e.macros,d=e.attachDir,h=(0,m.useState)(""),g=h[0],f=h[1],p=encodeURIComponent(encodeURIComponent(o.file));return(0,m.useEffect)((function(){fetch("http://localhost:35901/file/".concat(p)).then((function(e){return e.text()})).then((function(e){if(""===e)return"(empty node)";"error"!==e&&(console.log(e),f(e))})).catch((function(e){return f("(could not find node)"),console.log(e),"Could not fetch the text for some reason, sorry!\n\n This can happen because you have an id with forward slashes (/) in it."}))}),[o.id]),(0,be.jsx)(be.Fragment,{children:g&&o&&(0,be.jsx)(Xn,{nodeById:r,previewNode:o,setPreviewNode:l,previewText:g,nodeByCite:i,setSidebarHighlightedNode:t,openContextMenu:n,outline:s,collapse:c,linksByNodeId:a,attachDir:d,macros:u||{}})})},Un=function(e){var n,t=e.previewNode,r=e.setPreviewNode,i=e.setSidebarHighlightedNode,o=e.nodeById,s=e.linksByNodeId,c=e.nodeByCite,a=e.openContextMenu,u=e.outline,d=e.macros,g=e.attachDir,f=(null!==(n=s[null===t||void 0===t?void 0:t.id])&&void 0!==n?n:[]).filter((function(e){var n=wr(e),r=(0,l.Z)(n,2),i=r[0];r[1];return i!==(null===t||void 0===t?void 0:t.id)})).map((function(e){return e.source}));return(0,be.jsxs)(h.xu,{className:"backlinks",borderRadius:"sm",mt:6,p:4,bg:"white",mb:10,children:[(0,be.jsx)("p",{style:{fontSize:16,fontWeight:600},children:"Linked references (".concat(f.length,")")}),(0,be.jsx)(U.gC,{py:2,spacing:3,alignItems:"start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(null===t||void 0===t?void 0:t.id)&&f.map((function(e){var n,l,f;n=null===(l=o[e])||void 0===l?void 0:l.title;return(0,be.jsx)(h.xu,{overflow:"hidden",py:1,borderRadius:"sm",width:"100%",children:(0,be.jsx)(zn,{linksByNodeId:s,nodeByCite:c,setSidebarHighlightedNode:i,href:"id:".concat(e),nodeById:o,previewNode:t,setPreviewNode:r,openContextMenu:a,outline:u,noUnderline:!0,attachDir:g,macros:d,children:null===(f=o[e])||void 0===f?void 0:f.title})},e)}))})]})};function qn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Gn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qn(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Jn=function(e){var n=e.setPreviewNode,t=e.justificationList,r=e.justification,i=e.previewNode,o=e.nodeById,l=e.nodeByCite,s=e.setSidebarHighlightedNode,c=e.linksByNodeId,a=e.openContextMenu,u=e.outline,d=e.collapse,f=e.macros,p=e.attachDir,x=u?On:Cn;return(0,be.jsx)(h.xu,{pr:8,pt:2,height:"100%",className:"org",sx:Gn(Gn(Gn({},wn),x),{},{textAlign:t[r]}),children:(null===i||void 0===i?void 0:i.id)&&(0,be.jsxs)(g.k,{className:"wrapClass",height:"100%",flexDirection:"column",justifyContent:"space-between",children:[(0,be.jsx)(_n,{setPreviewNode:n,previewNode:i,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,collapse:d,nodeById:o,linksByNodeId:c,macros:f,attachDir:p}),(0,be.jsx)(Un,{setPreviewNode:n,previewNode:i,nodeById:o,linksByNodeId:c,nodeByCite:l,setSidebarHighlightedNode:s,openContextMenu:a,outline:u,attachDir:p,macros:f||{}})]})})},Qn=function(e){var n=e.previewNode;return(0,be.jsx)(g.k,{maxW:"90%",children:(0,be.jsx)(X.X,{lineHeight:1.2,size:"md",fontWeight:600,pt:4,children:null===n||void 0===n?void 0:n.title})})},Kn=t(29119);function $n(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Yn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$n(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$n(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function et(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=nt(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),o=i.get(),l=void 0!==o?o:n,s=null!=o&&"object"===typeof o&&!1===Array.isArray(o)?Yn(Yn({},n),o):l;s!==o&&i.update(s);var c=(0,m.useState)(s),a=c[0],u=c[1];(0,m.useEffect)((function(){a!==s&&u(s)}),[e]);var d=function(e){e instanceof Function?u((function(n){var t=e(n);return i.update(t),t})):(u(e),i.update(e))};return[a,d]}function nt(e,n){return{get:function(){var t=n.getItem(e);if(t&&"undefined"!==t)return JSON.parse(t)},update:function(t){n.setItem(e,JSON.stringify(t))},remove:function(){n.removeItem(e)}}}var tt=["style"];function rt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function it(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?rt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ot=function(e){var n=e.isOpen,t=e.onOpen,r=e.onClose,i=e.previewNode,o=e.setPreviewNode,s=e.nodeById,c=e.linksByNodeId,a=e.nodeByCite,u=e.setSidebarHighlightedNode,d=e.canUndo,f=e.canRedo,x=e.resetPreviewNode,j=e.previousPreviewNode,b=e.nextPreviewNode,v=e.openContextMenu,y=(e.scope,e.setScope,e.windowWidth),C=e.filter,w=e.setFilter,k=e.tagColors,S=e.setTagColors,N=e.macros,P=e.attachDir,D=((0,m.useContext)(yn.N).highlightColor,(0,m.useState)()),I=D[0],z=D[1],L=et("sidebarWidth",400),E=(0,l.Z)(L,2),Z=E[0],T=E[1];(0,m.useEffect)((function(){null!==i&&void 0!==i&&i.id?(t(),z(i)):r()}),[null===i||void 0===i?void 0:i.id]);var R=et("justification",1),B=(0,l.Z)(R,2),F=B[0],H=B[1],W=et("outline",!1),A=(0,l.Z)(W,2),M=A[0],V=A[1],X=(0,m.useState)("sans serif"),_=(X[0],X[1]),q=(0,m.useState)(0),G=(q[0],q[1]),J=(0,m.useState)(!1),Q=J[0],K=J[1];return(0,be.jsx)(ke,{animateOpacity:!1,dimension:"width",in:n,unmountOnExit:!0,startingSize:0,style:{height:"100vh"},children:(0,be.jsx)(Kn.e,{size:{height:"100vh",width:Z},onResizeStop:function(e,n,t,r){T((function(e){return e+r.width}))},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},minWidth:"220px",maxWidth:y-200,children:(0,be.jsxs)(g.k,{flexDir:"column",h:"100vh",pl:2,color:"black",bg:"alt.100",width:"100%",children:[(0,be.jsxs)(g.k,{pl:2,alignItems:"center",color:"black",width:"100%",children:[(0,be.jsx)(g.k,{pt:1,flexShrink:0,children:(0,be.jsx)(Te,{setJustification:H,setIndent:G,setFont:_,justification:F,setPreviewNode:o,canUndo:d,canRedo:f,resetPreviewNode:x,previousPreviewNode:j,nextPreviewNode:b,outline:M,setOutline:V,collapse:Q,setCollapse:K})}),(0,be.jsx)(g.k,{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",onContextMenu:function(e){e.preventDefault(),v(i,e)}}),(0,be.jsx)(g.k,{flexDir:"row",ml:"auto",children:(0,be.jsx)(p.h,{m:1,icon:(0,be.jsx)(O.T41,{}),"aria-label":"Options",variant:"subtle",onClick:function(e){v(i,e,{left:void 0,top:12,right:20-y,bottom:void 0})}})})]}),(0,be.jsx)(kn.$B,{autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,oe.Z)(e,tt);return(0,be.jsx)(h.xu,it({style:it(it({},n),{},{borderRadius:0})},t))},children:I&&(0,be.jsxs)(U.gC,{flexGrow:1,alignItems:"left",bg:"alt.100",paddingLeft:4,children:[(0,be.jsx)(Qn,{previewNode:I}),(0,be.jsx)(He,{filter:C,setFilter:w,tagColors:k,setTagColors:S,openContextMenu:v,previewNode:i}),(0,be.jsx)(Jn,{setPreviewNode:o,previewNode:i,nodeById:s,nodeByCite:a,setSidebarHighlightedNode:u,justification:F,justificationList:["justify","start","end","center"],linksByNodeId:c,openContextMenu:v,outline:M,setOutline:V,collapse:Q,macros:N,attachDir:P})]})})]})})})},lt=t(93924),st=t(83986),ct=t(48931),at=t(56769),ut=t(88134),dt=t(47647);function ht(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function gt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ht(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ht(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ft=function(e){var n,t=e.filter,r=e.listName,i=e.labelFilter,l=e.displayName,s=e.setFilter,c=e.options,a=void 0===c?[]:c,u=(0,m.useContext)(yn.N).highlightColor,d=(null===a||void 0===a?void 0:a.map((function(e){return{value:e,label:i?e.replace(i,""):e}})))||[],h=(0,m.useState)((null===(n=t[r])||void 0===n?void 0:n.map((function(e){return{value:e,label:i?null===e||void 0===e?void 0:e.replace(i,""):e}})))||[]),g=h[0],f=h[1];return(0,be.jsx)(dt.CUIAutoComplete,{labelStyleProps:{fontWeight:300,fontSize:14},items:d,label:"Add tag to ".concat(l),placeholder:" ",onCreateItem:function(e){return null},disableCreateItem:!0,selectedItems:g,onSelectedItemsChange:function(e){e.selectedItems&&(f(e.selectedItems),s(gt(gt({},t),{},(0,o.Z)({},r,e.selectedItems.map((function(e){return e.value}))))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{mt:2,height:8,focusBorderColor:u,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{justifyContent:"flex-start",fontSize:10,borderColor:u,borderWidth:1,borderRadius:"md",color:u,bg:"",height:4,mb:2},hideToggleButton:!0,itemRenderer:function(e){return e.label}})};function pt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var jt=function(e){var n=e.colorList,t=e.tagColors,r=e.setTagColors,i=e.highlightColor,l=e.tags.map((function(e){return{value:e,label:e}})),s=(0,m.useState)(Object.keys(t).map((function(e){return{value:e,label:e}}))),c=s[0],a=s[1];return(0,be.jsxs)(h.xu,{children:[(0,be.jsx)(dt.CUIAutoComplete,{items:l,labelStyleProps:{fontWeight:300,fontSize:14},label:"Add tag to color",placeholder:" ",disableCreateItem:!0,selectedItems:c,onSelectedItemsChange:function(e){e.selectedItems&&(a(Array.from(new Set(e.selectedItems))),r(Object.fromEntries(Array.from(new Set(e.selectedItems)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))))},listItemStyleProps:{overflow:"hidden"},highlightItemBg:"gray.400",toggleButtonStyleProps:{variant:"outline"},inputStyleProps:{height:8,focusBorderColor:i,color:"gray.800",borderColor:"gray.500"},tagStyleProps:{display:"none",rounded:"full",bg:i,height:8,paddingLeft:4,fontWeight:"bold"},hideToggleButton:!0,itemRenderer:function(e){return e.label}}),(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:Object.keys(t).map((function(e){return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",width:"100%",pl:2,children:[(0,be.jsx)(h.xu,{width:"100%",children:(0,be.jsx)(q.x,{children:e})}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",children:(0,be.jsx)(h.xu,{bgColor:t[e],borderRadius:"sm",height:6,width:6})}),(0,be.jsx)(mn.h,{children:(0,be.jsx)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:n.map((function(n){return(0,be.jsx)(V.sN,{onClick:function(){return r(xt(xt({},t),{},(0,o.Z)({},e,n)))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:n,borderRadius:"sm",height:6,width:6})},n)}))})})]}),(0,be.jsx)(p.h,{"aria-label":"Delete tag color",variant:"ghost",icon:(0,be.jsx)(ne.p,{}),onClick:function(){r(Object.fromEntries(Array.from(new Set(c)).map((function(e){var n;return[e.label,null!==(n=t[e.label])&&void 0!==n?n:"gray.600"]})))),a(c.filter((function(n){return n.value!==e})))}})]},e)}))})]})},bt=t(24682),vt=t(24189),mt=function(e){var n=e.infoText;return(0,be.jsx)(h.xu,{paddingLeft:"1",children:(0,be.jsx)(f.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,be.jsx)(vt.h,{})})})},yt=["min","max","step","value"],Ct=function(e){var n=e.min,t=void 0===n?0:n,r=e.max,i=void 0===r?10:r,o=e.step,l=void 0===o?.1:o,s=e.value,c=void 0===s?1:s,a=(0,oe.Z)(e,yt),u=a.onChange,d=a.label,g=a.infoText,p=(0,m.useContext)(yn.N).highlightColor;return(0,be.jsxs)(h.xu,{pt:1,pb:2,children:[(0,be.jsxs)(h.xu,{display:"flex",alignItems:"flex-end",mb:2,children:[(0,be.jsx)(q.x,{children:d}),g&&(0,be.jsx)(mt,{infoText:g})]}),(0,be.jsxs)(bt.iR,{value:c,onChange:u,min:t,max:i,step:l,children:[(0,be.jsx)(bt.Uj,{children:(0,be.jsx)(bt.Ms,{})}),(0,be.jsx)(f.u,{bg:p,label:c.toFixed(1),children:(0,be.jsx)(bt.gs,{bg:"white"})})]})]},d)},Ot=(0,m.createContext)({subDirs:["dailies",".attach"],attachDir:".attach",roamDir:"~/org",dailyDir:"dailies"});function wt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function kt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?wt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):wt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var St=function(e){var n=e.filter,t=e.setFilter,r=e.local,i=e.setLocal,o=e.tagColors,l=e.setTagColors,s=e.highlightColor,c=e.colorList,a=e.tags,u=(0,m.useContext)(Ot),d=u.roamDir,f=u.subDirs;return(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Link children to"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",size:"sm",children:function(){switch(n.parent){case"parent":return(0,be.jsx)(q.x,{children:"File"});case"heading":return(0,be.jsx)(q.x,{children:"Heading"});default:return(0,be.jsx)(q.x,{children:"Nothing"})}}()}),(0,be.jsx)(mn.h,{children:(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return kt(kt({},e),{},{parent:""})}))},children:"Nothing"}),(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return kt(kt({},e),{},{parent:"parent"})}))},children:"Parent file node"}),(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return kt(kt({},e),{},{parent:"heading"})}))},children:"Next highest heading node"})]})})]})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Orphans"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return kt(kt({},e),{},{orphans:!e.orphans})}))},isChecked:n.orphans})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Dailies"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return kt(kt({},e),{},{dailies:!e.dailies})}))},isChecked:n.dailies})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Org-noter pages"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return kt(kt({},e),{},{noter:!e.noter})}))},isChecked:n.noter})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Citations without note files"}),(0,be.jsx)(ut.r,{onChange:function(){t(kt(kt({},n),{},{filelessCites:!n.filelessCites}))},isChecked:n.filelessCites})]}),(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Non-existent nodes"}),(0,be.jsx)(ut.r,{onChange:function(){l(kt(kt({},o),{},{bad:"white"})),t(kt(kt({},n),{},{bad:!n.bad}))},isChecked:n.bad})]}),(0,be.jsx)(Ct,{label:"Number of neighbors in local graph",value:r.neighbors,onChange:function(e){return i(kt(kt({},r),{},{neighbors:e}))},min:1,max:5,step:1})]}),(0,be.jsxs)(at.UQ,{padding:0,allowToggle:!0,allowMultiple:!0,paddingLeft:3,children:[(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:["Directory filters",(0,be.jsx)(at.XE,{})]}),(0,be.jsxs)(at.Hk,{pr:0,mr:0,children:[(0,be.jsx)(ft,{filter:n,setFilter:t,options:f,displayName:"directory blocklist",listName:"dirsBlocklist",labelFilter:d}),(0,be.jsx)(ft,{filter:n,setFilter:t,options:f,displayName:"directory allowlist",listName:"dirsAllowlist",labelFilter:d})]})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:["Tag filters",(0,be.jsx)(at.XE,{})]}),(0,be.jsxs)(at.Hk,{pr:0,mr:0,children:[(0,be.jsx)(ft,{filter:n,setFilter:t,options:a,displayName:"tag blocklist",listName:"tagsBlacklist"}),(0,be.jsx)(ft,{filter:n,setFilter:t,options:a,displayName:"tag allowlist",listName:"tagsWhitelist"})]})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:["Tag colors",(0,be.jsx)(at.XE,{})]}),(0,be.jsx)(at.Hk,{pr:0,mr:0,children:(0,be.jsx)(jt,{tags:a,colorList:c,tagColors:o,setTagColors:l,highlightColor:s})})]})]})]})},Nt=t(15267),Pt=function(e){var n=e.value,t=e.onChange,r=e.label,i=e.infoText,o=e.children;return(0,be.jsxs)(h.xu,{paddingTop:2,children:[(0,be.jsxs)(h.xu,{display:"flex",justifyContent:"space-between",paddingBottom:2,children:[(0,be.jsxs)(h.xu,{display:"flex",alignItems:"center",children:[(0,be.jsx)(q.x,{children:r}),i&&(0,be.jsx)(mt,{infoText:i})]}),(0,be.jsx)(ut.r,{isChecked:!!n,onChange:t})]}),(0,be.jsx)(Nt.U,{in:!!n,animateOpacity:!0,children:(0,be.jsx)(h.xu,{paddingLeft:4,paddingTop:2,paddingBottom:2,children:o})})]},r)};function Dt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function It(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Dt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var zt=function(e){var n=e.physics,t=e.setPhysics,r=(0,m.useCallback)((function(e,n,r){t((function(t){return It(It({},t),{},(0,o.Z)({},n,e/r))}))}),[]);return(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,be.jsxs)(Pt,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(It(It({},n),{},{gravityOn:!n.gravityOn}))},children:[(0,be.jsxs)(g.k,{justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Also in local"}),(0,be.jsx)(ut.r,{onChange:function(){t((function(e){return It(It({},e),{},{gravityLocal:!e.gravityLocal})}))},isChecked:n.gravityLocal})]}),(0,be.jsx)(Ct,{label:"Strength",value:10*n.gravity,onChange:function(e){return r(e,"gravity",10)}})]}),(0,be.jsx)(Ct,{value:-n.charge/100,onChange:function(e){return r(e,"charge",-.01)},label:"Repulsive Force"}),(0,be.jsx)(Ct,{value:5*n.linkStrength,onChange:function(e){return r(e,"linkStrength",5)},label:"Link Force"}),(0,be.jsx)(Ct,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return r(e,"alphaDecay",50)}})]}),(0,be.jsx)(h.xu,{children:(0,be.jsx)(at.UQ,{paddingLeft:3,allowToggle:!0,children:(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(q.x,{children:"Advanced"}),(0,be.jsx)(at.XE,{marginRight:2})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:3,color:"gray.800",children:[(0,be.jsx)(Pt,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(It(It({},n),{},{collision:!n.collision}))},children:(0,be.jsx)(Ct,{value:n.collisionStrength/5,onChange:function(e){return r(e,"collisionStrength",.2)},label:"Collision Radius",infoText:"Easy with this one, high values can lead to a real jiggly mess"})}),(0,be.jsx)(Ct,{label:"Link iterations",value:n.linkIts,onChange:function(e){return r(e,"linkIts",1)},min:0,max:6,step:1,infoText:"How many links down the line the physics of a single node affects (Slow)"}),(0,be.jsx)(Ct,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return r(e,"velocityDecay",10)}}),(0,be.jsx)(Pt,{label:"Center nodes",value:n.centering,onChange:function(){return t(It(It({},n),{},{centering:!n.centering}))},infoText:"Keeps the nodes in the center of the viewport. If disabled you can drag the nodes anywhere you want.",children:(0,be.jsx)(Ct,{label:"Centering Strength",value:n.centeringStrength,max:2,step:.01,onChange:function(e){return r(e,"centeringStrength",1)}})})]})})]})})})]})};function Lt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Et(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Lt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Lt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Zt=function(e){var n=e.behavior,t=e.setBehavior,r=e.mouse,i=e.setMouse;return(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",paddingLeft:7,color:"gray.800",children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Preview node"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:r.preview?r.preview[0].toUpperCase()+r.preview.slice(1):"Never"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{preview:""}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{preview:"click"}))},children:"Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{preview:"double"}))},children:"Double Click"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsxs)(g.k,{children:[(0,be.jsx)(q.x,{children:"Expand Node"}),(0,be.jsx)(mt,{infoText:"View only the node and its direct neighbors"})]}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:r.local?r.local[0].toUpperCase()+r.local.slice(1):"Never"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:""}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:"click"}))},children:"Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:"double"}))},children:"Double Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{local:"right"}))},children:"Right Click"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Open in Emacs"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:r.follow?r.follow[0].toUpperCase()+r.follow.slice(1):"Never"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:""}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:"click"}))},children:"Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:"double"}))},children:"Double Click"}),(0,be.jsx)(V.sN,{onClick:function(){return i(Et(Et({},r),{},{follow:"right"}))},children:"Right Click"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Follow Emacs by..."}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:n.follow[0].toUpperCase()+n.follow.slice(1)})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{follow:"color"}))},children:"Just coloring the currently opened node"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{follow:"local"}))},children:"Opening the local graph"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{follow:"zoom"}))},children:"Zooming to the current node"})]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsxs)(g.k,{children:[(0,be.jsx)(q.x,{children:"Local graph"}),(0,be.jsx)(mt,{infoText:"When in local mode and clicking a new node, should I add that node's local graph or open the new one?"})]}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,rightIcon:(0,be.jsx)(Hn.v,{}),colorScheme:"",color:"black",children:(0,be.jsx)(q.x,{children:"add"===n.localSame?"Add":"Replace"})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{bgColor:"gray.200",zIndex:"popover",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{localSame:"replace"}))},children:"Open that nodes graph"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Et(Et({},n),{},{localSame:"add"}))},children:"Add node to local graph"})]})]})]})]}),(0,be.jsx)(Ct,{label:"Zoom speed",value:n.zoomSpeed,min:0,max:4e3,step:100,onChange:function(e){return t(Et(Et({},n),{},{zoomSpeed:e}))}}),(0,be.jsx)(Ct,{label:"Zoom padding",value:n.zoomPadding,min:0,max:400,step:1,onChange:function(e){return t(Et(Et({},n),{},{zoomPadding:e}))},infoText:"How much to zoom out to accomodate all nodes when changing the view."})]})},Tt=t(46049);function Rt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Bt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Rt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Rt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ft=function(e){var n=e.visuals,t=e.setVisuals;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsx)(h.xu,{children:(0,be.jsx)(Pt,{label:"Highlight",onChange:function(){return t((function(e){return Bt(Bt({},e),{},{highlight:!e.highlight})}))},value:n.highlight,children:(0,be.jsxs)(U.gC,{spacing:1,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.400"}),align:"stretch",paddingLeft:0,children:[(0,be.jsx)(Ct,{label:"Highlight Link Thickness",value:n.highlightLinkSize,onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{highlightLinkSize:e})}))}}),(0,be.jsx)(Ct,{label:"Highlight Node Size",value:n.highlightNodeSize,onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{highlightNodeSize:e})}))}}),(0,be.jsx)(Ct,{min:0,max:1,label:"Highlight Fade",value:n.highlightFade,onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{highlightFade:e})}))}}),(0,be.jsxs)(Pt,{label:"Highlight Animation",onChange:function(){t((function(e){return Bt(Bt({},e),{},{highlightAnim:!e.highlightAnim})}))},value:n.highlightAnim,children:[(0,be.jsx)(Ct,{label:"Animation speed",onChange:function(e){return t((function(n){return Bt(Bt({},n),{},{animationSpeed:e})}))},value:n.animationSpeed,infoText:"Slower speed has a chance of being buggy",min:50,max:1e3,step:10}),(0,be.jsx)(Tt.Ph,{placeholder:n.algorithmName,onChange:function(e){t((function(n){return Bt(Bt({},n),{},{algorithmName:e.target.value})}))},children:n.algorithmOptions.map((function(e){return(0,be.jsx)("option",{value:e,children:e},e)}))})]})]})})})})},Ht=t(67546),Wt=t(93441);function At(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Mt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?At(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):At(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Vt=function(e){var n=e.label,t=e.colorList,r=e.value,i=e.visValue,l=e.setVisuals,s=e.noEmpty,c=(0,m.useCallback)((function(e){return l((function(n){return Mt(Mt({},n),{},(0,o.Z)({},r,e))}))}),[]);return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:n}),(0,be.jsxs)(vn.J2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(vn.xo,{children:(0,be.jsx)(G.z,{colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(h.xu,{bgColor:i,borderRadius:"sm",height:6,width:6})})}),(0,be.jsx)(mn.h,{children:(0,be.jsx)(vn.yk,{zIndex:"tooltip",maxW:36,position:"relative",children:(0,be.jsxs)(g.k,{flexWrap:"wrap",bgColor:"gray.200",children:[!s&&(0,be.jsx)(h.xu,{onClick:function(){return c("")},justifyContent:"space-between",alignItems:"center",display:"flex",m:1,children:(0,be.jsx)(h.xu,{height:6,width:6,borderColor:"gray.600",borderRadius:"xl",borderWidth:1})}),t.map((function(e){return(0,be.jsx)(h.xu,{m:1,onClick:function(){return c(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"xl",height:6,width:6})},e)}))]})})})]})]})};function Xt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _t(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ut=function(e){var n=e.visuals,t=e.setVisualsCallback,r=e.highlightColor,o=e.setHighlightColor;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Nodes"}),(0,be.jsx)(f.u,{label:"Shuffle node colors",children:(0,be.jsx)(p.h,{"aria-label":"Shuffle node colors",size:"sm",icon:(0,be.jsx)(Ht.n,{}),variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(_t(_t({},n),{},{nodeColorScheme:r.map((function(e){return[Math.random(),e]})).sort((function(e,n){return(0,l.Z)(e,1)[0]-(0,l.Z)(n,1)[0]})).map((function(e){var n=(0,l.Z)(e,2);n[0];return n[1]}))}))}})}),(0,be.jsx)(f.u,{label:"Cycle node colors",children:(0,be.jsx)(p.h,{"aria-label":"Shift node colors",icon:(0,be.jsx)(Wt.L,{}),size:"sm",variant:"ghost",onClick:function(){var e,r=null!==(e=n.nodeColorScheme)&&void 0!==e?e:[];t(_t(_t({},n),{},{nodeColorScheme:[].concat((0,i.Z)(r.slice(1,r.length)),[r[0]])}))}})}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",closeOnSelect:!1,matchWidth:!0,children:[(0,be.jsx)(V.j2,{width:20,as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(g.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsx)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:(0,be.jsx)(V.__,{width:500,type:"checkbox",defaultValue:n.nodeColorScheme,onChange:function(e){e.length&&t(_t(_t({},n),{},{nodeColorScheme:e}))},children:M.map((function(e){return(0,be.jsx)(V.ii,{isChecked:n.nodeColorScheme.some((function(n){return n===e})),value:e,isDisabled:1===n.nodeColorScheme.length&&n.nodeColorScheme[0]===e,children:(0,be.jsx)(h.xu,{justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})})},e)}))})})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Links"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(h.xu,{children:n.linkColorScheme?(0,be.jsx)(h.xu,{bgColor:n.linkColorScheme,borderRadius:"sm",height:6,width:6}):(0,be.jsx)(g.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(_t(_t({},n),{},{linkColorScheme:""}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(g.k,{height:6,width:6,flexDirection:"column",flexWrap:"wrap",children:n.nodeColorScheme.map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px",borderRadius:"2xl"},e)}))})}),M.map((function(e){return(0,be.jsx)(V.sN,{onClick:function(){return t(_t(_t({},n),{},{linkColorScheme:e}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))]})]})]})]}),(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Accent"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:(0,be.jsx)(h.xu,{bgColor:r,borderRadius:"sm",height:6,width:6})}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsx)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:M.map((function(e){return(0,be.jsx)(V.sN,{onClick:function(){return o(e)},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{bgColor:e,borderRadius:"sm",height:6,width:6})},e)}))})]})]})]}),(0,be.jsx)(Vt,{colorList:M,label:"Link highlight",setVisuals:t,value:"linkHighlight",visValue:n.linkHighlight}),(0,be.jsx)(Vt,{colorList:M,label:"Node highlight",setVisuals:t,value:"nodeHighlight",visValue:n.nodeHighlight}),(0,be.jsx)(Vt,{colorList:M,label:"Background",setVisuals:t,value:"backgroundColor",visValue:n.backgroundColor}),(0,be.jsx)(Vt,{colorList:M,label:"Emacs node",setVisuals:t,value:"emacsNodeColor",visValue:n.emacsNodeColor})]})})};function qt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Gt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?qt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Jt=function(e){var n=e.visuals,t=e.setVisuals,r=e.threeDim;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsxs)(h.xu,{children:[(0,be.jsx)(Ct,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(Gt(Gt({},n),{},{nodeRel:e}))}}),(0,be.jsx)(Ct,{label:"Node degree size multiplier",value:n.nodeSizeLinks,min:0,max:2,onChange:function(e){return t(Gt(Gt({},n),{},{nodeSizeLinks:e}))}}),(0,be.jsx)(Ct,{label:"Node zoom invariance",value:n.nodeZoomSize,min:0,max:2,infoText:"How much the graph will try to keep the nodesize consistent across zoom scales. 0 is no consistency, node will always be their true size, 1 is linear, 2 is quadratic.",onChange:function(e){return t((function(n){return Gt(Gt({},n),{},{nodeZoomSize:e})}))}}),r&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(Ct,{label:"Node opacity",value:n.nodeOpacity,min:0,max:1,onChange:function(e){return t(Gt(Gt({},n),{},{nodeOpacity:e}))}}),(0,be.jsx)(Ct,{label:"Node resolution",value:n.nodeResolution,min:5,max:32,step:1,onChange:function(e){return t(Gt(Gt({},n),{},{nodeResolution:e}))}})]}),(0,be.jsx)(Ct,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(Gt(Gt({},n),{},{linkWidth:e}))}}),r&&(0,be.jsx)(Ct,{label:"Link opacity",min:0,max:1,value:n.linkOpacity,onChange:function(e){return t(Gt(Gt({},n),{},{linkOpacity:e}))}}),(0,be.jsxs)(Pt,{label:"Link arrows",value:n.arrows,onChange:function(){return t(Gt(Gt({},n),{},{arrows:!n.arrows}))},children:[(0,be.jsx)(Ct,{label:"Arrow size",value:n.arrowsLength/10,onChange:function(e){return t(Gt(Gt({},n),{},{arrowsLength:10*e}))}}),(0,be.jsx)(Ct,{label:"Arrow Position",value:n.arrowsPos,min:0,max:1,step:.01,onChange:function(e){return t(Gt(Gt({},n),{},{arrowsPos:e}))}}),(0,be.jsx)(Vt,{colorList:M,label:"Arrow Color",setVisuals:t,value:"arrowsColor",visValue:n.arrowsColor},"arrow")]}),(0,be.jsxs)(Pt,{label:"Directional Particles",value:n.particles,onChange:function(){return t(Gt(Gt({},n),{},{particles:!n.particles}))},children:[(0,be.jsx)(Ct,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(Gt(Gt({},n),{},{particlesNumber:e}))}}),(0,be.jsx)(Ct,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(Gt(Gt({},n),{},{particlesWidth:e}))}})]})]})})};function Qt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Kt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Qt(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Qt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var $t=function(e){var n=e.visuals,t=e.setVisuals;return(0,be.jsxs)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.400"}),align:"stretch",color:"gray.800",children:[(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",children:[(0,be.jsx)(q.x,{children:"Show labels"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:n.labels?n.labels<2?"On Highlight":"Always":"Never"}),(0,be.jsxs)(mn.h,{children:[" ",(0,be.jsxs)(V.qy,{zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:0}))},children:"Never"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:1}))},children:"On Highlight"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:2}))},children:"Always"}),(0,be.jsx)(V.sN,{onClick:function(){return t(Kt(Kt({},n),{},{labels:3}))},children:"Always (even in 3D)"})]})]})]})]}),(0,be.jsxs)(Nt.U,{in:n.labels>1,animateOpacity:!0,children:[(0,be.jsx)(h.xu,{paddingTop:2,children:(0,be.jsx)(Ct,{label:"Label Appearance Scale",value:2*n.labelScale,onChange:function(e){return t(Kt(Kt({},n),{},{labelScale:e/2}))}})}),(0,be.jsxs)(h.xu,{paddingTop:2,children:[(0,be.jsx)(Ct,{label:"Label dynamicity",infoText:"By default, labels of nodes with more links will appear earlier than those with fewer. This slider changes the strength of this effect, put it at zero to disable it.",value:n.labelDynamicStrength,min:0,max:1,step:.05,onChange:function(e){return t((function(n){return Kt(Kt({},n),{},{labelDynamicStrength:e})}))}}),(0,be.jsx)(Nt.U,{in:n.labelDynamicStrength>0,children:(0,be.jsx)(Ct,{label:"Dynamic zoom degree cap",infoText:"The maximum number of links that is considered for the 'dynamic zoom effect'. Past this number all number of links are treated the same.",value:n.labelDynamicDegree,min:1,max:15,step:1,onChange:function(e){return t((function(n){return Kt(Kt({},n),{},{labelDynamicDegree:e})}))}})})]})]}),(0,be.jsx)(Vt,{colorList:M,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,be.jsxs)(h.xu,{children:[(0,be.jsx)(Vt,{colorList:M,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,be.jsx)(Nt.U,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,be.jsx)(h.xu,{paddingTop:2,children:(0,be.jsx)(Ct,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(Kt(Kt({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})})]}),(0,be.jsx)(Ct,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(Kt(Kt({},n),{},{labelFontSize:e}))}}),(0,be.jsx)(Ct,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(Kt(Kt({},n),{},{labelLength:e}))}}),(0,be.jsx)(Ct,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(Kt(Kt({},n),{},{labelWordWrap:e}))}}),(0,be.jsx)(Ct,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(Kt(Kt({},n),{},{labelLineSpace:e}))}})]})},Yt=t(67690),er=function(){var e=(0,m.useContext)(yn.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,be.jsx)(q.x,{children:"Theme"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,be.jsx)(V.j2,{as:G.z,size:"sm",colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:n[0]}),(0,be.jsxs)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,be.jsx)(h.xu,{height:6,width:6})}),Object.keys(Yt.n).map((function(e,n){return(0,be.jsxs)(V.sN,{onClick:function(){return t([e,Yt.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,be.jsx)(q.x,{children:e}),(0,be.jsx)(g.k,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(Yt.n[e]).map((function(e){return(0,be.jsx)(h.xu,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})};function nr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function tr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?nr(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var rr=function(e){var n=e.visuals,t=e.setVisuals;return(0,be.jsx)(U.gC,{spacing:2,justifyContent:"flex-start",divider:(0,be.jsx)(U.cX,{borderColor:"gray.500"}),align:"stretch",color:"gray.800",children:(0,be.jsxs)(h.xu,{children:[(0,be.jsxs)(Pt,{label:"Dash cite links",infoText:"Add dashes to citation links made with org-roam-bibtex",value:n.citeDashes,onChange:function(){return t(tr(tr({},n),{},{citeDashes:!n.citeDashes}))},children:[(0,be.jsx)(Ct,{label:"Dash length",value:n.citeDashLength/10,onChange:function(e){return t(tr(tr({},n),{},{citeDashLength:10*e}))}}),(0,be.jsx)(Ct,{label:"Gap length",value:n.citeGapLength/5,onChange:function(e){return t(tr(tr({},n),{},{citeGapLength:5*e}))}})]}),(0,be.jsx)(Vt,{colorList:M,label:"Citation node color",setVisuals:t,value:"citeNodeColor",visValue:n.citeNodeColor}),(0,be.jsx)(Vt,{colorList:M,label:"Citation link color",setVisuals:t,value:"citeLinkColor",visValue:n.citeLinkColor}),(0,be.jsx)(Vt,{colorList:M,label:"Reference link highlight",setVisuals:t,value:"citeLinkHighlightColor",visValue:n.citeLinkHighlightColor}),(0,be.jsxs)(Pt,{label:"Dash ref links",infoText:"Add dashes to citation links, whose target has a note, made with org-roam-bibtex",value:n.refDashes,onChange:function(){return t(tr(tr({},n),{},{refDashes:!n.refDashes}))},children:[(0,be.jsx)(Ct,{label:"Dash length",value:n.refDashLength/10,onChange:function(e){return t(tr(tr({},n),{},{refDashLength:10*e}))}}),(0,be.jsx)(Ct,{label:"Gap length",value:n.refGapLength/5,onChange:function(e){return t(tr(tr({},n),{},{refGapLength:5*e}))}})]}),(0,be.jsx)(Vt,{colorList:M,label:"Reference node color",setVisuals:t,value:"refNodeColor",visValue:n.refNodeColor}),(0,be.jsx)(Vt,{colorList:M,label:"Reference link color",setVisuals:t,value:"refLinkColor",visValue:n.refLinkColor}),(0,be.jsx)(Vt,{colorList:M,label:"Reference link highlight",setVisuals:t,value:"refLinkHighlightColor",visValue:n.refLinkHighlightColor})]})})};function ir(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function or(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ir(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ir(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var lr=function(e){var n=e.coloring,t=e.setColoring;return(0,be.jsxs)(g.k,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,be.jsx)(q.x,{children:"Graph coloring"}),(0,be.jsxs)(V.v2,{isLazy:!0,placement:"right",children:[(0,be.jsx)(V.j2,{as:G.z,size:"sm",colorScheme:"",color:"black",rightIcon:(0,be.jsx)(Hn.v,{}),children:"degree"===n.method?"Links":"Communities"}),(0,be.jsx)(mn.h,{children:(0,be.jsxs)(V.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return or(or({},e),{},{method:"degree"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Number of links"}),(0,be.jsx)(V.sN,{onClick:function(){return t((function(e){return or(or({},e),{},{method:"community"})}))},justifyContent:"space-between",alignItems:"center",display:"flex",children:"Communities"})]})})]})]})},sr=function(e){var n=e.coloring,t=e.setColoring,r=e.visuals,i=e.setVisuals,o=e.highlightColor,l=e.setHighlightColor,s=e.threeDim,c=(0,m.useCallback)((function(e){return i(e)}),[]);return(0,be.jsxs)(U.gC,{justifyContent:"flex-start",align:"stretch",children:[(0,be.jsx)(er,{}),(0,be.jsx)(lr,{coloring:n,setColoring:t}),(0,be.jsxs)(at.UQ,{allowToggle:!0,defaultIndex:[0],paddingLeft:3,children:[(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Colors"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Ut,{visuals:r,setVisualsCallback:c,highlightColor:o,setHighlightColor:l})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Nodes & Links"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Jt,{visuals:r,setVisuals:c,threeDim:s})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Labels"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)($t,{visuals:r,setVisuals:c})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Highlighting"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Ft,{visuals:r,setVisuals:c})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{children:(0,be.jsxs)(g.k,{justifyContent:"space-between",w:"100%",children:[(0,be.jsx)(q.x,{children:"Citations"}),(0,be.jsx)(at.XE,{marginRight:2})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(rr,{visuals:r,setVisuals:c})})]})]})]})},cr=["style"];function ar(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ur(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ar(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ar(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var dr=function(e){var n=e.physics,t=e.setPhysics,r=e.threeDim,i=e.setThreeDim,o=e.filter,s=e.setFilter,c=e.visuals,a=e.setVisuals,u=e.mouse,d=e.setMouse,g=e.behavior,x=e.setBehavior,j=e.tags,b=e.tagColors,v=e.setTagColors,y=e.coloring,C=e.setColoring,O=e.local,w=e.setLocal,k=et("showTweaks",!1),S=(0,l.Z)(k,2),N=S[0],P=S[1],D=(0,m.useContext)(yn.N),I=D.highlightColor,z=D.setHighlightColor;return N?(0,be.jsxs)(h.xu,{position:"absolute",bg:"alt.100",w:"xs",marginTop:2,marginLeft:2,borderRadius:"lg",paddingBottom:5,zIndex:10,boxShadow:"xl",maxH:"95vh",fontSize:"sm",children:[(0,be.jsxs)(h.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:2,paddingTop:1,children:[(0,be.jsx)(f.u,{label:"2D",children:(0,be.jsx)(G.z,{onClick:function(){return i(!r)},variant:"subtle",zIndex:"overlay",children:r?"3D":"2D"})}),(0,be.jsxs)(h.xu,{display:"flex",alignItems:"center",children:[(0,be.jsx)(f.u,{label:"Reset settings to defaults",children:(0,be.jsx)(p.h,{"aria-label":"Reset Defaults",icon:(0,be.jsx)(st.A,{}),onClick:function(){a(F),s(R),d(W),t(T),x(H),C(B),z("purple.500"),w(A)},variant:"subtle",size:"sm"})}),(0,be.jsx)(p.h,{size:"sm",icon:(0,be.jsx)(ct.T,{}),"aria-label":"Close Tweak Panel",variant:"subtle",onClick:function(){return P(!1)}})]})]}),(0,be.jsx)(kn.ZP,{autoHeight:!0,autoHeightMax:.85*globalThis.innerHeight,autoHide:!0,renderThumbVertical:function(e){var n=e.style,t=(0,oe.Z)(e,cr);return(0,be.jsx)(h.xu,ur(ur({},t),{},{style:ur(ur({},n),{},{borderRadius:10}),bg:I}))},children:(0,be.jsxs)(at.UQ,{allowMultiple:!0,allowToggle:!0,color:"black",children:[(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Filter"})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(St,{filter:o,setFilter:s,tagColors:b,setTagColors:v,highlightColor:I,colorList:M,tags:j,local:O,setLocal:w})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsx)(at.KF,{display:"flex",justifyContent:"space-between",children:(0,be.jsxs)(h.xu,{display:"flex",children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Physics"})]})}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(zt,{physics:n,setPhysics:t})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Visual"})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(sr,{visuals:c,setVisuals:a,highlightColor:I,setHighlightColor:z,threeDim:r,coloring:y,setColoring:C})})]}),(0,be.jsxs)(at.Qd,{children:[(0,be.jsxs)(at.KF,{children:[(0,be.jsx)(at.XE,{marginRight:2}),(0,be.jsx)(X.X,{size:"sm",children:"Behavior"})]}),(0,be.jsx)(at.Hk,{children:(0,be.jsx)(Zt,{behavior:g,setBehavior:x,mouse:u,setMouse:d})})]})]})})]}):(0,be.jsx)(h.xu,{position:"absolute",zIndex:"overlay",marginTop:1,marginLeft:0,display:N?"none":"block",children:(0,be.jsx)(p.h,{variant:"subtle","aria-label":"Settings",icon:(0,be.jsx)(lt.e,{}),onClick:function(){return P(!0)}})})},hr=t(22663),gr=t.n(hr);function fr(e){var n,t,r,o,l=e.labelBackgroundColor,s=e.labelTextColor,c=e.node,a=e.ctx,u=e.globalScale,d=e.highlightedNodes,h=e.previouslyHighlightedNodes,g=e.visuals,f=e.opacity,p=e.nodeSize,x=e.filteredLinksByNodeId,j=(e.nodeRel,e.hoverNode),b=e.lastHoverNode;if(c&&g.labels){var v=null!==(n=null===j||void 0===j?void 0:j.id)&&void 0!==n?n:"",m=null!==(t=null===b||void 0===b?void 0:b.id)&&void 0!==t?t:"",y=null!==(r=x[c.id])&&void 0!==r?r:[],C=!(!d[c.id]&&!h[c.id]),O=Math.min(5*(u-g.labelScale)+2*Math.pow(Math.min(y.length,g.labelDynamicDegree),g.labelDynamicStrength),1);if(!(O<.01)||C){var w=null!==(o=c.title)&&void 0!==o?o:"",k=w.substring(0,g.labelLength),S=Math.cbrt(g.nodeRel*p(c)/Math.pow(u,g.nodeZoomSize)),N=g.labelFontSize/Math.cbrt(Math.pow(u,g.nodeZoomSize)),P=[1.1*a.measureText(k).width,N].map((function(e){return e+.5*N})),D=function(e,n,t,r,i){return i?Math.max(e,r):1*e*(-1*(n.highlightFade*r-1))}(O,g,0,f,C);if(g.labelBackgroundColor&&g.labelBackgroundOpacity){var I=Sr(l,D*g.labelBackgroundOpacity);a.fillStyle=I,a.fillRect.apply(a,[c.x-P[0]/2,c.y-P[1]/2+S].concat((0,i.Z)(P)))}a.textAlign="center",a.textBaseline="middle";var z=Sr(s,D);a.fillStyle=z,a.font="".concat(N,"px Sans-Serif");var L=gr()(k,{width:g.labelWordWrap}).split("\n"),E=w.length>g.labelLength?[].concat((0,i.Z)(L.slice(0,-1)),["".concat(L.slice(-1),"...")]):L,Z=[v,m].includes(c.id)?1+.3*f:1;E.forEach((function(e,n){a.fillText(e,c.x,c.y+Z*S*8+g.labelLineSpace*N*n)}))}}}function pr(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function xr(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pr(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pr(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var jr=t.e(907).then(t.bind(t,99907)),br=t.g.window?t(24878).f$:null,vr=t.g.window?t(24878).s6:null;function mr(){var e=(0,m.useState)(!1),n=e[0],t=e[1];return(0,m.useEffect)((function(){t(!0)}),[]),n?(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)(v.default,{children:(0,be.jsx)("title",{children:"ORUI"})}),(0,be.jsx)(yr,{})]}):null}function yr(){var e=et("3d",!1),n=(0,l.Z)(e,2),t=n[0],r=n[1],s=et("tagCols",{}),c=(0,l.Z)(s,2),a=c[0],x=c[1],b=(0,m.useState)({nodeIds:[],excludedNodeIds:[]}),v=b[0],y=b[1],C=et("physics",T),S=(0,l.Z)(C,2),P=S[0],D=S[1],I=et("filter",R),z=(0,l.Z)(I,2),L=z[0],E=z[1],Z=et("visuals",F),M=(0,l.Z)(Z,2),V=M[0],X=M[1],_=(0,m.useState)(null),U=_[0],q=_[1],G=(0,m.useState)(null),J=G[0],Q=G[1],K=et("behavior",H),$=(0,l.Z)(K,2),Y=$[0],ee=$[1],ne=et("mouse",W),te=(0,l.Z)(ne,2),re=te[0],ie=te[1],oe=et("coloring",B),le=(0,l.Z)(oe,2),se=le[0],ce=le[1],ae=et("local",A),ue=(0,l.Z)(ae,2),de=ue[0],he=ue[1],ge=(0,N.Z)({}),fe=(0,l.Z)(ge,2),pe=fe[0],xe=fe[1],je=xe.set,ve=xe.reset,me=xe.undo,ye=xe.redo,Ce=xe.canUndo,Oe=xe.canRedo,we=(pe.past,pe.present),ke=(pe.future,(0,m.useState)(null)),Se=ke[0],Ne=ke[1],Pe=(0,u.q)(),Ie=Pe.isOpen,ze=Pe.onOpen,Le=Pe.onClose,Ee=(0,m.useRef)({}),Ze=(0,m.useRef)({}),Te=(0,m.useRef)({}),Re=(0,m.useRef)([]),Be=(0,m.useRef)(null),Fe=(0,m.useState)({}),He=Fe[0],We=Fe[1],Ae=(0,m.useRef)({}),Me=(0,m.useRef)({nodes:[],links:[]});(0,m.useEffect)((function(){U&&(Me.current=U)}),[U]);var Ve=(0,m.useContext)(yn.N).setEmacsTheme,Xe=(0,m.useRef)({nodeIds:[],excludedNodeIds:[]}),_e=(0,m.useRef)(H);_e.current=Y;var Ue=(0,m.useRef)(null);Xe.current=v;var qe=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var l=Be.current,s=Xe.current,c=_e.current,a=null!==(t=Ze.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,i.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&y({nodeIds:[],excludedNodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,o,(function(e){return u[e.id]}))}),50);if(!s.nodeIds.length)return y((function(e){return xr(xr({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if("add"!==c.localSame)return y((function(e){return xr(xr({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return u[e]})))return y((function(e){return xr(xr({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50);y((function(e){return xr(xr({},e),{},{nodeIds:[].concat((0,i.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,o)}),50)}};(0,m.useEffect)((function(){Ue.current=new k.Z("ws://localhost:35903"),Ue.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),Ue.current.addEventListener("message",(function(e){var n=_e.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Ee.current;Re.current=null!==(n=e.tags)&&void 0!==n?n:[];var c=null!==(t=e.nodes)&&void 0!==t?t:[],a=null!==(r=e.links)&&void 0!==r?r:[],u=c.reduce((function(e,n){var t;return xr(xr({},e),{},(0,o.Z)({},n.file,[].concat((0,i.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),d=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){var n=t.filter((function(n){var t,r;return!(n.level>=e.level||n.pos>=e.pos||null===(t=e.olp)||void 0===t||!t.includes(null===(r=n.title)||void 0===r?void 0:r.replace(/ *\[\d*\/\d*\] */g,"")))})).reduce((function(e,n){return n.level>e.level&&(e=n),e}),r);return{source:e.id,target:(null===n||void 0===n?void 0:n.id)||r.id,type:"heading"}})):[]})),h=Object.keys(u).flatMap((function(e){var n,t=null!==(n=u[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),i=t.filter((function(e){return 0!==e.level}));return r?i.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));Ee.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,i.Z)(a),(0,i.Z)(d),(0,i.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Ee.current[n]?Ee.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),xr(xr({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),xr(xr({},e),{},{type:"bad"}))}));Ee.current=xr(xr({},Ee.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),Ze.current=p.reduce((function(e,n){var t,r,l;return xr(xr({},e),{},(l={},(0,o.Z)(l,n.source,[].concat((0,i.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,o.Z)(l,n.target,[].concat((0,i.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,i.Z)(c),f);Te.current=x.reduce((function(e,n){var t,r=null===(t=n.properties)||void 0===t?void 0:t.ROAM_REFS;if(null===r||void 0===r||!r.includes("cite"))return e;var i=r.replaceAll(/cite:(.*)/g,"$1");return i?xr(xr({},e),{},(0,o.Z)({},i,n)):e}),{});var j={nodes:x,links:p},b=Me.current;if(0===b.nodes.length){var v=JSON.parse(JSON.stringify(j));return Me.current=v,void q(v)}var m=[].concat((0,i.Z)(b.nodes.flatMap((function(e){var n,t=null!==(n=Ee.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[xr(xr({},e),t)]:[]}))),(0,i.Z)(Object.keys(Ee.current).filter((function(e){return!s[e]})).map((function(e){return Ee.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return xr(xr({},e),{},(0,o.Z)({},r,t))}),{}),C=p.map((function(e){var n=wr(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return xr(xr({},e),{},{source:m[y[r]],target:m[y[i]]})}));q({nodes:m,links:C})}(t.data);case"variables":return We(t.data),void console.log(t);case"theme":return Ve(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=Y.zoomSpeed,s=Y.zoomPadding;qe("local",t.data.id,r,s),Q(t.data.id);break;case"zoom":var c,a,u=(null===t||void 0===t||null===(c=t.data)||void 0===c?void 0:c.speed)||n.zoomSpeed,d=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;qe("zoom",t.data.id,u,d),Q(t.data.id);break;case"follow":qe(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),Q(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,m.useEffect)((function(){var e=Be.current;!e||v.nodeIds.length>1||(v.nodeIds.length||!P.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[v.nodeIds]);var Ge=(0,j.iP)(),Je=(0,l.Z)(Ge,2),Qe=Je[0],Ke=Je[1],$e=(0,m.useRef)(),Ye=(0,m.useState)(null),en=Ye[0],nn=Ye[1],tn=(0,m.useState)({left:0,top:0,right:void 0,bottom:void 0}),rn=tn[0],on=tn[1],ln=(0,u.q)();(0,d.O)({ref:$e,handler:function(){ln.onClose()}});var sn=function(e,n,t){on(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),nn(e),ln.onOpen()},cn=function(e,n){"remove"!==n?"replace"!==n?v.nodeIds.includes(e.id)||y((function(n){return xr(xr({},n),{},{nodeIds:[].concat((0,i.Z)(n.nodeIds),[e.id])})})):y({nodeIds:[e.id],excludedNodeIds:[]}):y((function(n){return xr(xr({},n),{},{excludedNodeIds:[].concat((0,i.Z)(n.excludedNodeIds),[e.id])})}))},an=(0,m.useState)({type:"Graph",title:"Graph",icon:(0,be.jsx)(O.DvO,{})}),un=(an[0],an[1],et("mainWindowWidth",Qe)),dn=(0,l.Z)(un,2),hn=dn[0],gn=dn[1];return console.log(He),(0,be.jsx)(Ot.Provider,{value:xr({},He),children:(0,be.jsxs)(h.xu,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,be.jsx)(dr,{physics:P,setPhysics:D,threeDim:t,setThreeDim:r,filter:L,setFilter:E,visuals:V,setVisuals:X,mouse:re,setMouse:ie,behavior:Y,setBehavior:ee,tagColors:a,setTagColors:x,coloring:se,setColoring:ce,local:de,setLocal:he,tags:Re.current}),(0,be.jsx)(h.xu,{position:"absolute",children:U&&(0,be.jsx)(Cr,{nodeById:Ee.current,linksByNodeId:Ze.current,webSocket:Ue.current,variables:He,physics:P,graphData:U,threeDim:t,emacsNodeId:J,filter:L,visuals:V,behavior:Y,mouse:re,scope:v,setScope:y,tagColors:a,setPreviewNode:je,sidebarHighlightedNode:Se,windowWidth:Qe,windowHeight:Ke,openContextMenu:sn,contextMenu:ln,handleLocal:cn,mainWindowWidth:hn,setMainWindowWidth:gn,setContextMenuTarget:nn,graphRef:Be,clusterRef:Ae,coloring:se,local:de})}),(0,be.jsx)(h.xu,{position:"relative",zIndex:4,width:"100%",children:(0,be.jsx)(g.k,{className:"headerBar",h:10,flexDir:"column",children:(0,be.jsx)(g.k,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,be.jsxs)(g.k,{height:"100%",flexDirection:"row",children:[v.nodeIds.length>0&&(0,be.jsx)(f.u,{label:"Return to main graph",children:(0,be.jsx)(p.h,{m:1,icon:(0,be.jsx)(O.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return y((function(e){return xr(xr({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,be.jsx)(f.u,{label:Ie?"Close sidebar":"Open sidebar",children:(0,be.jsx)(p.h,{m:1,icon:(0,be.jsx)(w.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:Ie?Le:ze})})]})})})}),(0,be.jsx)(h.xu,{position:"relative",zIndex:4,children:(0,be.jsx)(ot,{isOpen:Ie,onOpen:ze,onClose:Le,previewNode:we,setPreviewNode:je,canUndo:Ce,canRedo:Oe,previousPreviewNode:me,nextPreviewNode:ye,resetPreviewNode:ve,setSidebarHighlightedNode:Ne,openContextMenu:sn,scope:v,setScope:y,windowWidth:Qe,tagColors:a,setTagColors:x,filter:L,setFilter:E,macros:He.katexMacros,attachDir:He.attachDir||"",nodeById:Ee.current,linksByNodeId:Ze.current,nodeByCite:Te.current})}),ln.isOpen&&(0,be.jsx)("div",{ref:$e,children:(0,be.jsx)(De,{scope:v,target:en,background:!1,coordinates:rn,handleLocal:cn,menuClose:ln.onClose.bind(ln),webSocket:Ue.current,setPreviewNode:je,setFilter:E,filter:L,setTagColors:x,tagColors:a})})]})})}var Cr=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,u=e.threeDim,d=e.linksByNodeId,g=e.filter,f=e.emacsNodeId,p=e.nodeById,j=e.visuals,v=e.behavior,y=e.mouse,O=e.scope,w=e.local,k=(e.setScope,e.webSocket),N=e.tagColors,P=e.setPreviewNode,D=e.sidebarHighlightedNode,I=e.windowWidth,z=e.windowHeight,L=(e.setContextMenuTarget,e.openContextMenu),E=e.contextMenu,T=e.handleLocal,R=e.variables,B=e.clusterRef,F=e.coloring,H=R.dailyDir,W=(R.roamDir,(0,m.useState)(null)),A=W[0],V=W[1],X=(0,a.useTheme)(),_=(0,m.useContext)(yn.N).emacsTheme,U=function(e,n,t){switch(e){case y.preview:P(n);break;case y.local:T(n,v.localSame);break;case y.follow:re(n,k);break;case y.context:L(n,t)}},q=(0,m.useRef)(null);(0,m.useEffect)((function(){f&&V(p[f])}),[f]);var G=(0,m.useRef)({}),J=(0,m.useRef)({}),Q=(0,m.useMemo)((function(){var e;J.current={};var n=null===s||void 0===s||null===(e=s.nodes)||void 0===e?void 0:e.filter((function(e){var n,t,r,i,l=e;return g.dirsBlocklist.length&&g.dirsBlocklist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||g.dirsAllowlist.length>0&&!g.dirsAllowlist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||g.tagsBlacklist.length&&g.tagsBlacklist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.tagsWhitelist.length>0&&!g.tagsWhitelist.some((function(e){var n;return(null===l||void 0===l||null===(n=l.tags)||void 0===n?void 0:n.indexOf(e))>-1}))||g.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==g&&void 0!==g&&g.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||g.dailies&&H&&null!==(r=l.file)&&void 0!==r&&r.includes(H)?(J.current=xr(xr({},J.current),{},(0,o.Z)({},l.id,l)),!1):!g.noter||null===(i=l.properties)||void 0===i||!i.NOTER_PAGE||(J.current=xr(xr({},J.current),{},(0,o.Z)({},l.id,l)),!1)})).filter((function(e){var n,t=(null!==(n=d[null===e||void 0===e?void 0:e.id])&&void 0!==n?n:[]).filter((function(e){return!J.current[e.source]&&!J.current[e.target]}));return!g.orphans||(g.parent?0!==t.length:0!==t.length&&t.some((function(e){return!["parent","heading"].includes(e.type)})))})),t=n.map((function(e){return e.id})),r=s.links.filter((function(e){var n=wr(e),r=(0,l.Z)(n,2),i=r[0],o=r[1];if(!t.includes(i)||!t.includes(o))return!1;var s=e;return g.parent?"heading"===g.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));G.current=r.reduce((function(e,n){var t,r,s,c=n,a=wr(c),u=(0,l.Z)(a,2),d=u[0],h=u[1];return xr(xr({},e),{},(s={},(0,o.Z)(s,d,[].concat((0,i.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[c])),(0,o.Z)(s,h,[].concat((0,i.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{});var c=r.map((function(e){var n=wr(e),t=(0,l.Z)(n,2);return{target:t[0],source:t[1],weight:"cite"===e.type?1:2}}));if("community"===F.method){var a=C()().nodes(t).edges(c);B.current=a()}return{nodes:n,links:r}}),[g,s,F.method]),K=(0,m.useState)({nodes:[],links:[]}),$=K[0],Y=K[1];(0,m.useEffect)((function(){if(O.nodeIds.length){var e=O.nodeIds.length>1?$.nodes.filter((function(e){return!O.excludedNodeIds.includes(e.id)})):[],n=e.map((function(e){return e.id})),t=function(e,n,t){var r=[e[0]],i=[],o=[e[0]];return Array.from({length:t},(function(){r.forEach((function(e){var t;(null!==(t=G.current[e])&&void 0!==t?t:[]).forEach((function(e){var t=wr(e),r=(0,l.Z)(t,2),s=r[0],c=r[1];n.some((function(e){return[s,c].includes(e)}))||(o.includes(s)?o.includes(c)||i.push(c):i.push(s))}))})),r=i,i.forEach((function(e){return e&&o.push(e)})),i=[]})),o}(O.nodeIds,O.excludedNodeIds,w.neighbors),r=Q.nodes.filter((function(r){var i;return e.length?!n.includes(r.id)&&(null!==(i=G.current[r.id])&&void 0!==i?i:[]).some((function(e){var n=wr(e),t=(0,l.Z)(n,2),r=t[0],i=t[1];return O.nodeIds.includes(r)||O.nodeIds.includes(i)})):t.includes(r.id)})).map((function(e){return xr(xr({},e),{},{x:0,y:0,vy:0,vx:0})})),o=[].concat((0,i.Z)(e),(0,i.Z)(r)),s=o.map((function(e){return e.id})),c=(O.nodeIds.length>1?$.links:[]).filter((function(e){O.excludedNodeIds.some((function(n){return wr(e).includes(n)}))})),a=Q.links.filter((function(e){var t=wr(e),r=(0,l.Z)(t,2),i=r[0],o=r[1];return!(c.length&&n.includes(o)&&n.includes(i))&&(s.includes(i)&&s.includes(o))})).map((function(e){var n=wr(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,i.Z)(c),(0,i.Z)(a));Y({nodes:o,links:u})}}),[w.neighbors,g,JSON.stringify(O),JSON.stringify(s),Q.links,Q.nodes]),(0,m.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,jr;case 3:i=e.sent,!t.gravityOn||O.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),u&&r.d3Force("z",null)):(r.d3Force("x",i.forceX().strength(t.gravity)),r.d3Force("y",i.forceY().strength(t.gravity)),u&&r.d3Force("z",i.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",i.forceCenter().strength(t.centeringStrength)):r.d3Force("center",null),t.linkStrength&&r.d3Force("link").strength(t.linkStrength),t.linkIts&&r.d3Force("link").iterations(t.linkIts),t.charge&&r.d3Force("charge").strength(t.charge),r.d3Force("collide",t.collision?i.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,u,O]),(0,m.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,O.nodeIds.length]);var ee=(0,m.useRef)(0),ne=(0,m.useState)(1),te=ne[0],ie=ne[1],oe=(0,x._7)((function(e){return ie(e)}),{duration:j.animationSpeed,algorithm:Z[j.algorithmName]}),le=(0,l.Z)(oe,2),se=le[0],ce=le[1],ae=(0,x._7)((function(e){return ie(Math.min(te,-1*(e-1)))}),{duration:j.animationSpeed,algorithm:Z[j.algorithmName]}),ue=(0,l.Z)(ae,2),de=ue[0],he=ue[1],ge=(0,m.useMemo)((function(){var e;if(!q.current)return{};var n=G.current[q.current.id];return n?Object.fromEntries([null===(e=q.current)||void 0===e?void 0:e.id].concat((0,i.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[JSON.stringify(q.current),JSON.stringify(G.current)]);(0,m.useEffect)((function(){null!==D&&void 0!==D&&D.id?V(D):V(null)}),[D]);var fe=(0,m.useRef)(null);(0,m.useEffect)((function(){if(q.current=A,A&&(fe.current=A),!j.highlightAnim)return ie(A?1:0);A?se():(ce(),te>.5?de():ie(0))}),[A]);var pe=(0,m.useMemo)((function(){return Object.fromEntries(M.map((function(e){var n=kr(e,X),t=M.map((function(e){return[e,b.Z(n,kr(e,X))]}));return[e,Object.fromEntries(t)]})))}),[_]),xe=(0,m.useMemo)((function(){var e,n,t,r=null!==(e=G.current[null===(n=fe.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=fe.current)||void 0===t?void 0:t.id].concat((0,i.Z)(r.flatMap((function(e){return wr(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(A),fe.current,G.current]),je=function(e){var n,t,r,i,o,l=null!==(n=null===(t=G.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return"degree"===F.method?j.nodeColorScheme[(r=l,i=0,o=j.nodeColorScheme.length-1,Math.min(Math.max(r,i),o))]:j.nodeColorScheme[l&&B.current[e]%j.nodeColorScheme.length]},ve=function(e,n){return G.current[e].length>G.current[n].length?je(e):je(n)},me=(0,m.useMemo)((function(){return kr(j.labelTextColor,X)}),[j.labelTextColor,_]),ye=(0,m.useMemo)((function(){return kr(j.labelBackgroundColor,X)}),[j.labelBackgroundColor,_]),Ce=function(e){var n,t=null!==(n=G.current[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,i=3+t.length*j.nodeSizeLinks-(g.parent?0:r);return 1===j.highlightNodeSize?i:i*(ge[e.id]||xe[e.id]?1+te*(j.highlightNodeSize-1):1)},Oe=(0,m.useState)(!1),we=Oe[0],ke=Oe[1],Se=(0,m.useRef)(1),Ne={graphData:O.nodeIds.length?$:Q,width:I,height:z,backgroundColor:kr(j.backgroundColor,X),warmupTicks:1===O.nodeIds.length?100:O.nodeIds.length>1?20:0,onZoom:function(e){var n=e.k;e.x,e.y;return Se.current=n},nodeColor:function(e){return function(e,n){var t,r,i=ge[e.id]||xe[e.id];if(j.emacsNodeColor&&e.id===f)return kr(j.emacsNodeColor,n);if(N&&null!==e&&void 0!==e&&e.tags.some((function(e){return N[e]}))){var o=N[null===e||void 0===e?void 0:e.tags.filter((function(e){return N[e]}))[0]];return i?pe[o][o](j.highlightFade*te):pe[o][j.backgroundColor](j.highlightFade*te)}return j.citeNodeColor&&null!==e&&void 0!==e&&null!==(t=e.properties)&&void 0!==t&&t.ROAM_REFS&&null!==e&&void 0!==e&&null!==(r=e.properties)&&void 0!==r&&r.FILELESS?i?kr(j.citeNodeColor,n):pe[j.citeNodeColor][j.backgroundColor](j.highlightFade*te):j.refNodeColor&&e.properties.ROAM_REFS?i?kr(j.refNodeColor,n):pe[j.refNodeColor][j.backgroundColor](j.highlightFade*te):i?j.nodeHighlight?pe[je(e.id)][j.nodeHighlight](te):kr(je(e.id),n):pe[je(e.id)][j.backgroundColor](j.highlightFade*te)}(e,X)},nodeRelSize:j.nodeRel,nodeVal:function(e){return Ce(e)/Math.pow(Se.current,j.nodeZoomSize)},nodeCanvasObject:function(e,n,t){fr(xr({nodeRel:j.nodeRel,filteredLinksByNodeId:G.current,lastHoverNode:fe.current},{node:e,ctx:n,globalScale:t,highlightedNodes:ge,previouslyHighlightedNodes:xe,visuals:j,opacity:te,nodeSize:Ce,labelTextColor:me,labelBackgroundColor:ye,hoverNode:A}))},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:j.particles?j.particlesNumber:void 0,linkDirectionalArrowLength:j.arrows?j.arrowsLength:void 0,linkDirectionalArrowRelPos:j.arrowsPos,linkDirectionalArrowColor:j.arrowsColor?function(){return kr(j.arrowsColor,X)}:void 0,linkColor:function(e){var n,t="object"===typeof e.source?e.source.id:e.source,r="object"===typeof e.target?e.target.id:e.target,i=Or(e,q.current),o=Or(e,fe.current),l=i||o,s=e;return j.refLinkColor&&"ref"===s.type?l&&(j.refLinkHighlightColor||j.linkHighlight)?pe[j.refLinkColor][j.refLinkHighlightColor||j.linkHighlight](te):pe[j.refLinkColor][j.backgroundColor](j.highlightFade*te):j.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(j.citeLinkHighlightColor||j.linkHighlight)?pe[j.citeLinkColor][j.citeLinkHighlightColor||j.linkHighlight](te):pe[j.citeLinkColor][j.backgroundColor](j.highlightFade*te):function(e,n,t,r){if(!j.linkHighlight&&!j.linkColorScheme&&!t)return kr(ve(e,n),r);if(!t&&!j.linkColorScheme){var i=ve(e,n);return pe[i][j.backgroundColor](j.highlightFade*te)}return t?j.linkHighlight||j.linkColorScheme?j.linkHighlight?j.linkColorScheme?pe[j.linkColorScheme][j.linkHighlight](te):pe[ve(e,n)][j.linkHighlight](te):kr(j.linkColorScheme,r):kr(ve(e,n),r):pe[j.linkColorScheme][j.backgroundColor](j.highlightFade*te)}(t,r,l,X)},linkWidth:function(e){if(1===j.highlightLinkSize)return j.linkWidth;var n=Or(e,q.current),t=Or(e,fe.current);return n||t?j.linkWidth*(1+te*(j.highlightLinkSize-1)):j.linkWidth},linkDirectionalParticleWidth:j.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-ee.current<200;if(ee.current=n.timeStamp,r)return U("double",t,n);var i=ee.current;return setTimeout((function(){if(ee.current===i)return U("click",t,n)}),200)},onNodeHover:function(e){j.highlight&&(we||(A||(he(),ie(0)),V(e)))},onNodeRightClick:function(e,n){U("right",e,n)},onNodeDrag:function(e){V(e),ke(!0)},onNodeDragEnd:function(){V(null),ke(!1)}};return(0,be.jsx)(h.xu,{overflow:"hidden",onClick:E.onClose,children:u?(0,be.jsx)(vr,xr(xr({ref:n},Ne),{},{nodeThreeObjectExtend:!0,nodeOpacity:j.nodeOpacity,nodeResolution:j.nodeResolution,linkOpacity:j.linkOpacity,nodeThreeObject:function(e){if(j.labels&&(!(j.labels<3)||ge[e.id])){var n=new S.Z(e.title.substring(0,40));return n.color=kr(j.labelTextColor,X),n.backgroundColor=kr(j.labelBackgroundColor,X),n.padding=2,n.textHeight=8,n}}})):(0,be.jsx)(br,xr(xr({ref:n},Ne),{},{linkLineDash:function(e){var n,t=e;return j.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[j.citeDashLength,j.citeGapLength]:j.refDashes&&"ref"==t.type?[j.refDashLength,j.refGapLength]:null}}))})};function Or(e,n){var t,r;return(null===(t=e.source)||void 0===t?void 0:t.id)===(null===n||void 0===n?void 0:n.id)||(null===(r=e.target)||void 0===r?void 0:r.id)===(null===n||void 0===n?void 0:n.id)}function wr(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function kr(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)}function Sr(e,n){return"rgba("+(e=e.replace("#","")).match(new RegExp("(.{"+e.length/3+"})","g")).map((function(n){return parseInt(e.length%2?n+n:n,16)})).concat(isFinite(n)?n:1).join(",")+")"}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(20624)}])}},function(e){e.O(0,[774,737,876,228,866,13,874,573,446,911,888,179],(function(){return n=45301,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
\ No newline at end of file diff --git a/out/index.html b/out/index.html index ad98be5..a767d09 100644 --- a/out/index.html +++ b/out/index.html @@ -1 +1 @@ -<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/9aeb688eb5e47ce218d8.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9aeb688eb5e47ce218d8.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-96298ddac7773fa5ecad.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-965b0767a8d0eaf0c110.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-b53d39280eb7028fd5fb.js" defer=""></script><script src="/_next/static/chunks/17007de1-7d8b9c17ee7cc8107af3.js" defer=""></script><script src="/_next/static/chunks/252f366e-54a484ebfe8fe95dfdbb.js" defer=""></script><script src="/_next/static/chunks/95b64a6e-860b8751a48619de0c76.js" defer=""></script><script src="/_next/static/chunks/0c428ae2-753f1ebbec24c403674c.js" defer=""></script><script src="/_next/static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js" defer=""></script><script src="/_next/static/chunks/b5f2ed29-c14b12daa385c4cc7854.js" defer=""></script><script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script><script src="/_next/static/chunks/911-811443f68e27e1fd4f52.js" defer=""></script><script src="/_next/static/chunks/pages/index-5515a79c57ad297aac65.js" defer=""></script><script src="/_next/static/KwUZTaKahwrvSE4nx8EJC/_buildManifest.js" defer=""></script><script src="/_next/static/KwUZTaKahwrvSE4nx8EJC/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0\.5:0.125rem;--chakra-space-1\.5:0.375rem;--chakra-space-2\.5:0.625rem;--chakra-space-3\.5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0\.5:0.125rem;--chakra-sizes-1\.5:0.375rem;--chakra-sizes-2\.5:0.625rem;--chakra-sizes-3\.5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1syi0wy">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"KwUZTaKahwrvSE4nx8EJC","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
\ No newline at end of file +<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><meta name="next-head-count" content="2"/><link rel="preload" href="/_next/static/css/a37ded5ec4cf14937ec5.css" as="style"/><link rel="stylesheet" href="/_next/static/css/a37ded5ec4cf14937ec5.css" data-n-g=""/><link rel="preload" href="/_next/static/css/9aeb688eb5e47ce218d8.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9aeb688eb5e47ce218d8.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-a40ef1678bae11e696dba45124eadd70.js"></script><script src="/_next/static/chunks/webpack-96298ddac7773fa5ecad.js" defer=""></script><script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script><script src="/_next/static/chunks/main-965b0767a8d0eaf0c110.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7ef60f4a6a38c5e0c8ec.js" defer=""></script><script src="/_next/static/chunks/fb7d5399-b53d39280eb7028fd5fb.js" defer=""></script><script src="/_next/static/chunks/17007de1-7d8b9c17ee7cc8107af3.js" defer=""></script><script src="/_next/static/chunks/252f366e-54a484ebfe8fe95dfdbb.js" defer=""></script><script src="/_next/static/chunks/95b64a6e-860b8751a48619de0c76.js" defer=""></script><script src="/_next/static/chunks/0c428ae2-753f1ebbec24c403674c.js" defer=""></script><script src="/_next/static/chunks/1a48c3c1-648f6631a5e9a5f8e954.js" defer=""></script><script src="/_next/static/chunks/b5f2ed29-c14b12daa385c4cc7854.js" defer=""></script><script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script><script src="/_next/static/chunks/911-811443f68e27e1fd4f52.js" defer=""></script><script src="/_next/static/chunks/pages/index-8162019a78766f0a3f9d.js" defer=""></script><script src="/_next/static/Pwq1CsSy3iH9VqD4549T8/_buildManifest.js" defer=""></script><script src="/_next/static/Pwq1CsSy3iH9VqD4549T8/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 1n4e8ad">:host,:root{--chakra-ring-inset:var(--chakra-empty,/*!*/ /*!*/);--chakra-ring-offset-width:0px;--chakra-ring-offset-color:#fff;--chakra-ring-color:rgba(66, 153, 225, 0.6);--chakra-ring-offset-shadow:0 0 #0000;--chakra-ring-shadow:0 0 #0000;--chakra-space-x-reverse:0;--chakra-space-y-reverse:0;--chakra-colors-transparent:transparent;--chakra-colors-current:currentColor;--chakra-colors-black:#bbc2cf;--chakra-colors-white:#242730;--chakra-colors-whiteAlpha-50:rgba(255, 255, 255, 0.04);--chakra-colors-whiteAlpha-100:rgba(255, 255, 255, 0.06);--chakra-colors-whiteAlpha-200:rgba(255, 255, 255, 0.08);--chakra-colors-whiteAlpha-300:rgba(255, 255, 255, 0.16);--chakra-colors-whiteAlpha-400:rgba(255, 255, 255, 0.24);--chakra-colors-whiteAlpha-500:rgba(255, 255, 255, 0.36);--chakra-colors-whiteAlpha-600:rgba(255, 255, 255, 0.48);--chakra-colors-whiteAlpha-700:rgba(255, 255, 255, 0.64);--chakra-colors-whiteAlpha-800:rgba(255, 255, 255, 0.80);--chakra-colors-whiteAlpha-900:rgba(255, 255, 255, 0.92);--chakra-colors-blackAlpha-50:rgba(0, 0, 0, 0.04);--chakra-colors-blackAlpha-100:rgba(0, 0, 0, 0.06);--chakra-colors-blackAlpha-200:rgba(0, 0, 0, 0.08);--chakra-colors-blackAlpha-300:rgba(0, 0, 0, 0.16);--chakra-colors-blackAlpha-400:rgba(0, 0, 0, 0.24);--chakra-colors-blackAlpha-500:rgba(0, 0, 0, 0.36);--chakra-colors-blackAlpha-600:rgba(0, 0, 0, 0.48);--chakra-colors-blackAlpha-700:rgba(0, 0, 0, 0.64);--chakra-colors-blackAlpha-800:rgba(0, 0, 0, 0.80);--chakra-colors-blackAlpha-900:rgba(0, 0, 0, 0.92);--chakra-colors-gray-50:#F7FAFC;--chakra-colors-gray-100:#1c1f24;--chakra-colors-gray-200:rgb(29, 33, 38);--chakra-colors-gray-300:#21272d;--chakra-colors-gray-400:#23272e;--chakra-colors-gray-500:#484854;--chakra-colors-gray-600:#62686E;--chakra-colors-gray-700:#757B80;--chakra-colors-gray-800:#9ca0a4;--chakra-colors-gray-900:#DFDFDF;--chakra-colors-red-50:#FFF5F5;--chakra-colors-red-100:#FED7D7;--chakra-colors-red-200:#FEB2B2;--chakra-colors-red-300:#FC8181;--chakra-colors-red-400:#F56565;--chakra-colors-red-500:#ff665c;--chakra-colors-red-600:#C53030;--chakra-colors-red-700:#9B2C2C;--chakra-colors-red-800:#822727;--chakra-colors-red-900:#63171B;--chakra-colors-orange-50:#FFFAF0;--chakra-colors-orange-100:#FEEBC8;--chakra-colors-orange-200:#FBD38D;--chakra-colors-orange-300:#F6AD55;--chakra-colors-orange-400:#ED8936;--chakra-colors-orange-500:#e69055;--chakra-colors-orange-600:#C05621;--chakra-colors-orange-700:#9C4221;--chakra-colors-orange-800:#7B341E;--chakra-colors-orange-900:#652B19;--chakra-colors-yellow-50:#FFFFF0;--chakra-colors-yellow-100:#FEFCBF;--chakra-colors-yellow-200:#FAF089;--chakra-colors-yellow-300:#F6E05E;--chakra-colors-yellow-400:#ECC94B;--chakra-colors-yellow-500:#FCCE7B;--chakra-colors-yellow-600:#B7791F;--chakra-colors-yellow-700:#975A16;--chakra-colors-yellow-800:#744210;--chakra-colors-yellow-900:#5F370E;--chakra-colors-green-50:#F0FFF4;--chakra-colors-green-100:#C6F6D5;--chakra-colors-green-200:#9AE6B4;--chakra-colors-green-300:#68D391;--chakra-colors-green-400:#48BB78;--chakra-colors-green-500:#7bc275;--chakra-colors-green-600:#2F855A;--chakra-colors-green-700:#276749;--chakra-colors-green-800:#22543D;--chakra-colors-green-900:#1C4532;--chakra-colors-teal-50:#E6FFFA;--chakra-colors-teal-100:#B2F5EA;--chakra-colors-teal-200:#81E6D9;--chakra-colors-teal-300:#4FD1C5;--chakra-colors-teal-400:#38B2AC;--chakra-colors-teal-500:#51afef;--chakra-colors-teal-600:#2C7A7B;--chakra-colors-teal-700:#285E61;--chakra-colors-teal-800:#234E52;--chakra-colors-teal-900:#1D4044;--chakra-colors-blue-50:#ebf8ff;--chakra-colors-blue-100:#bee3f8;--chakra-colors-blue-200:#90cdf4;--chakra-colors-blue-300:#63b3ed;--chakra-colors-blue-400:#4299e1;--chakra-colors-blue-500:#51afef;--chakra-colors-blue-600:#2b6cb0;--chakra-colors-blue-700:#2c5282;--chakra-colors-blue-800:#2a4365;--chakra-colors-blue-900:#1A365D;--chakra-colors-cyan-50:#EDFDFD;--chakra-colors-cyan-100:#C4F1F9;--chakra-colors-cyan-200:#9DECF9;--chakra-colors-cyan-300:#76E4F7;--chakra-colors-cyan-400:#0BC5EA;--chakra-colors-cyan-500:#5cEfFF;--chakra-colors-cyan-600:#00A3C4;--chakra-colors-cyan-700:#0987A0;--chakra-colors-cyan-800:#086F83;--chakra-colors-cyan-900:#065666;--chakra-colors-purple-50:#FAF5FF;--chakra-colors-purple-100:#E9D8FD;--chakra-colors-purple-200:#D6BCFA;--chakra-colors-purple-300:#B794F4;--chakra-colors-purple-400:#9F7AEA;--chakra-colors-purple-500:#a991f1;--chakra-colors-purple-600:#6B46C1;--chakra-colors-purple-700:#553C9A;--chakra-colors-purple-800:#44337A;--chakra-colors-purple-900:#322659;--chakra-colors-pink-50:#FFF5F7;--chakra-colors-pink-100:#FED7E2;--chakra-colors-pink-200:#FBB6CE;--chakra-colors-pink-300:#F687B3;--chakra-colors-pink-400:#ED64A6;--chakra-colors-pink-500:#C57BDB;--chakra-colors-pink-600:#B83280;--chakra-colors-pink-700:#97266D;--chakra-colors-pink-800:#702459;--chakra-colors-pink-900:#521B41;--chakra-colors-linkedin-50:#E8F4F9;--chakra-colors-linkedin-100:#CFEDFB;--chakra-colors-linkedin-200:#9BDAF3;--chakra-colors-linkedin-300:#68C7EC;--chakra-colors-linkedin-400:#34B3E4;--chakra-colors-linkedin-500:#00A0DC;--chakra-colors-linkedin-600:#008CC9;--chakra-colors-linkedin-700:#0077B5;--chakra-colors-linkedin-800:#005E93;--chakra-colors-linkedin-900:#004471;--chakra-colors-facebook-50:#E8F4F9;--chakra-colors-facebook-100:#D9DEE9;--chakra-colors-facebook-200:#B7C2DA;--chakra-colors-facebook-300:#6482C0;--chakra-colors-facebook-400:#4267B2;--chakra-colors-facebook-500:#385898;--chakra-colors-facebook-600:#314E89;--chakra-colors-facebook-700:#29487D;--chakra-colors-facebook-800:#223B67;--chakra-colors-facebook-900:#1E355B;--chakra-colors-messenger-50:#D0E6FF;--chakra-colors-messenger-100:#B9DAFF;--chakra-colors-messenger-200:#A2CDFF;--chakra-colors-messenger-300:#7AB8FF;--chakra-colors-messenger-400:#2E90FF;--chakra-colors-messenger-500:#0078FF;--chakra-colors-messenger-600:#0063D1;--chakra-colors-messenger-700:#0052AC;--chakra-colors-messenger-800:#003C7E;--chakra-colors-messenger-900:#002C5C;--chakra-colors-whatsapp-50:#dffeec;--chakra-colors-whatsapp-100:#b9f5d0;--chakra-colors-whatsapp-200:#90edb3;--chakra-colors-whatsapp-300:#65e495;--chakra-colors-whatsapp-400:#3cdd78;--chakra-colors-whatsapp-500:#22c35e;--chakra-colors-whatsapp-600:#179848;--chakra-colors-whatsapp-700:#0c6c33;--chakra-colors-whatsapp-800:#01421c;--chakra-colors-whatsapp-900:#001803;--chakra-colors-twitter-50:#E5F4FD;--chakra-colors-twitter-100:#C8E9FB;--chakra-colors-twitter-200:#A8DCFA;--chakra-colors-twitter-300:#83CDF7;--chakra-colors-twitter-400:#57BBF5;--chakra-colors-twitter-500:#1DA1F2;--chakra-colors-twitter-600:#1A94DA;--chakra-colors-twitter-700:#1681BF;--chakra-colors-twitter-800:#136B9E;--chakra-colors-twitter-900:#0D4D71;--chakra-colors-telegram-50:#E3F2F9;--chakra-colors-telegram-100:#C5E4F3;--chakra-colors-telegram-200:#A2D4EC;--chakra-colors-telegram-300:#7AC1E4;--chakra-colors-telegram-400:#47A9DA;--chakra-colors-telegram-500:#0088CC;--chakra-colors-telegram-600:#007AB8;--chakra-colors-telegram-700:#006BA1;--chakra-colors-telegram-800:#005885;--chakra-colors-telegram-900:#003F5E;--chakra-colors-alt-100:#2a2e38;--chakra-colors-alt-900:#5D656B;--chakra-borders-none:0;--chakra-borders-1px:1px solid;--chakra-borders-2px:2px solid;--chakra-borders-4px:4px solid;--chakra-borders-8px:8px solid;--chakra-fonts-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--chakra-fonts-mono:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--chakra-fontSizes-xs:0.75rem;--chakra-fontSizes-sm:0.875rem;--chakra-fontSizes-md:1rem;--chakra-fontSizes-lg:1.125rem;--chakra-fontSizes-xl:1.25rem;--chakra-fontSizes-2xl:1.5rem;--chakra-fontSizes-3xl:1.875rem;--chakra-fontSizes-4xl:2.25rem;--chakra-fontSizes-5xl:3rem;--chakra-fontSizes-6xl:3.75rem;--chakra-fontSizes-7xl:4.5rem;--chakra-fontSizes-8xl:6rem;--chakra-fontSizes-9xl:8rem;--chakra-fontWeights-hairline:100;--chakra-fontWeights-thin:200;--chakra-fontWeights-light:300;--chakra-fontWeights-normal:400;--chakra-fontWeights-medium:500;--chakra-fontWeights-semibold:600;--chakra-fontWeights-bold:700;--chakra-fontWeights-extrabold:800;--chakra-fontWeights-black:900;--chakra-letterSpacings-tighter:-0.05em;--chakra-letterSpacings-tight:-0.025em;--chakra-letterSpacings-normal:0;--chakra-letterSpacings-wide:0.025em;--chakra-letterSpacings-wider:0.05em;--chakra-letterSpacings-widest:0.1em;--chakra-lineHeights-3:.75rem;--chakra-lineHeights-4:1rem;--chakra-lineHeights-5:1.25rem;--chakra-lineHeights-6:1.5rem;--chakra-lineHeights-7:1.75rem;--chakra-lineHeights-8:2rem;--chakra-lineHeights-9:2.25rem;--chakra-lineHeights-10:2.5rem;--chakra-lineHeights-normal:normal;--chakra-lineHeights-none:1;--chakra-lineHeights-shorter:1.25;--chakra-lineHeights-short:1.375;--chakra-lineHeights-base:1.5;--chakra-lineHeights-tall:1.625;--chakra-lineHeights-taller:2;--chakra-radii-none:0;--chakra-radii-sm:0.125rem;--chakra-radii-base:0.25rem;--chakra-radii-md:0.375rem;--chakra-radii-lg:0.5rem;--chakra-radii-xl:0.75rem;--chakra-radii-2xl:1rem;--chakra-radii-3xl:1.5rem;--chakra-radii-full:9999px;--chakra-space-1:0.25rem;--chakra-space-2:0.5rem;--chakra-space-3:0.75rem;--chakra-space-4:1rem;--chakra-space-5:1.25rem;--chakra-space-6:1.5rem;--chakra-space-7:1.75rem;--chakra-space-8:2rem;--chakra-space-9:2.25rem;--chakra-space-10:2.5rem;--chakra-space-12:3rem;--chakra-space-14:3.5rem;--chakra-space-16:4rem;--chakra-space-20:5rem;--chakra-space-24:6rem;--chakra-space-28:7rem;--chakra-space-32:8rem;--chakra-space-36:9rem;--chakra-space-40:10rem;--chakra-space-44:11rem;--chakra-space-48:12rem;--chakra-space-52:13rem;--chakra-space-56:14rem;--chakra-space-60:15rem;--chakra-space-64:16rem;--chakra-space-72:18rem;--chakra-space-80:20rem;--chakra-space-96:24rem;--chakra-space-px:1px;--chakra-space-0\.5:0.125rem;--chakra-space-1\.5:0.375rem;--chakra-space-2\.5:0.625rem;--chakra-space-3\.5:0.875rem;--chakra-shadows-xs:0 0 0 1px rgba(0, 0, 0, 0.05);--chakra-shadows-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);--chakra-shadows-base:0 1px 3px 0 rgba(0, 0, 0, 0.1),0 1px 2px 0 rgba(0, 0, 0, 0.06);--chakra-shadows-md:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);--chakra-shadows-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1),0 4px 6px -2px rgba(0, 0, 0, 0.05);--chakra-shadows-xl:0 20px 25px -5px rgba(0, 0, 0, 0.1),0 10px 10px -5px rgba(0, 0, 0, 0.04);--chakra-shadows-2xl:0 25px 50px -12px rgba(0, 0, 0, 0.25);--chakra-shadows-outline:0 0 0 3px #a991f1aa;--chakra-shadows-inner:inset 0 2px 4px 0 rgba(0,0,0,0.06);--chakra-shadows-none:none;--chakra-shadows-dark-lg:rgba(0, 0, 0, 0.1) 0px 0px 0px 1px,rgba(0, 0, 0, 0.2) 0px 5px 10px,rgba(0, 0, 0, 0.4) 0px 15px 40px;--chakra-sizes-1:0.25rem;--chakra-sizes-2:0.5rem;--chakra-sizes-3:0.75rem;--chakra-sizes-4:1rem;--chakra-sizes-5:1.25rem;--chakra-sizes-6:1.5rem;--chakra-sizes-7:1.75rem;--chakra-sizes-8:2rem;--chakra-sizes-9:2.25rem;--chakra-sizes-10:2.5rem;--chakra-sizes-12:3rem;--chakra-sizes-14:3.5rem;--chakra-sizes-16:4rem;--chakra-sizes-20:5rem;--chakra-sizes-24:6rem;--chakra-sizes-28:7rem;--chakra-sizes-32:8rem;--chakra-sizes-36:9rem;--chakra-sizes-40:10rem;--chakra-sizes-44:11rem;--chakra-sizes-48:12rem;--chakra-sizes-52:13rem;--chakra-sizes-56:14rem;--chakra-sizes-60:15rem;--chakra-sizes-64:16rem;--chakra-sizes-72:18rem;--chakra-sizes-80:20rem;--chakra-sizes-96:24rem;--chakra-sizes-px:1px;--chakra-sizes-0\.5:0.125rem;--chakra-sizes-1\.5:0.375rem;--chakra-sizes-2\.5:0.625rem;--chakra-sizes-3\.5:0.875rem;--chakra-sizes-max:max-content;--chakra-sizes-min:min-content;--chakra-sizes-full:100%;--chakra-sizes-3xs:14rem;--chakra-sizes-2xs:16rem;--chakra-sizes-xs:20rem;--chakra-sizes-sm:24rem;--chakra-sizes-md:28rem;--chakra-sizes-lg:32rem;--chakra-sizes-xl:36rem;--chakra-sizes-2xl:42rem;--chakra-sizes-3xl:48rem;--chakra-sizes-4xl:56rem;--chakra-sizes-5xl:64rem;--chakra-sizes-6xl:72rem;--chakra-sizes-7xl:80rem;--chakra-sizes-8xl:90rem;--chakra-sizes-container-sm:640px;--chakra-sizes-container-md:768px;--chakra-sizes-container-lg:1024px;--chakra-sizes-container-xl:1280px;--chakra-zIndices-hide:-1;--chakra-zIndices-auto:auto;--chakra-zIndices-base:0;--chakra-zIndices-docked:10;--chakra-zIndices-dropdown:1000;--chakra-zIndices-sticky:1100;--chakra-zIndices-banner:1200;--chakra-zIndices-overlay:1300;--chakra-zIndices-modal:1400;--chakra-zIndices-popover:1500;--chakra-zIndices-skipLink:1600;--chakra-zIndices-toast:1700;--chakra-zIndices-tooltip:1800;--chakra-transition-property-common:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;--chakra-transition-property-colors:background-color,border-color,color,fill,stroke;--chakra-transition-property-dimensions:width,height;--chakra-transition-property-position:left,right,top,bottom;--chakra-transition-property-background:background-color,background-image,background-position;--chakra-transition-easing-ease-in:cubic-bezier(0.4, 0, 1, 1);--chakra-transition-easing-ease-out:cubic-bezier(0, 0, 0.2, 1);--chakra-transition-easing-ease-in-out:cubic-bezier(0.4, 0, 0.2, 1);--chakra-transition-duration-ultra-fast:50ms;--chakra-transition-duration-faster:100ms;--chakra-transition-duration-fast:150ms;--chakra-transition-duration-normal:200ms;--chakra-transition-duration-slow:300ms;--chakra-transition-duration-slower:400ms;--chakra-transition-duration-ultra-slow:500ms;--chakra-blur-none:0;--chakra-blur-sm:4px;--chakra-blur-base:8px;--chakra-blur-md:12px;--chakra-blur-lg:16px;--chakra-blur-xl:24px;--chakra-blur-2xl:40px;--chakra-blur-3xl:64px;}</style><style data-emotion="css-global 1syi0wy">html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;}body{position:relative;min-height:100%;font-feature-settings:'kern';}*,*::before,*::after{border-width:0;border-style:solid;box-sizing:border-box;}main{display:block;}hr{border-top-width:1px;box-sizing:content-box;height:0;overflow:visible;}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em;}a{background-color:transparent;color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit;}abbr[title]{border-bottom:none;-webkit-text-decoration:underline;text-decoration:underline;-webkit-text-decoration:underline dotted;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bold;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0;}fieldset{padding:0.35em 0.75em 0.625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none!important;}input[type="number"]{-moz-appearance:textfield;}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none!important;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:-webkit-box;display:-webkit-list-item;display:-ms-list-itembox;display:list-item;}template{display:none;}[hidden]{display:none!important;}body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0;}button{background:transparent;padding:0;}fieldset{margin:0;padding:0;}ol,ul{margin:0;padding:0;}textarea{resize:vertical;}button,[role="button"]{cursor:pointer;}button::-moz-focus-inner{border:0!important;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit;}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle;}img,video{max-width:100%;height:auto;}[data-js-focus-visible] :focus:not([data-focus-visible-added]){outline:none;box-shadow:none;}select::-ms-expand{display:none;}</style><style data-emotion="css-global 1baqkrf">body{font-family:var(--chakra-fonts-body);color:var(--chakra-colors-gray-800);background:var(--chakra-colors-white);transition-property:background-color;transition-duration:var(--chakra-transition-duration-normal);line-height:var(--chakra-lineHeights-base);}*::-webkit-input-placeholder{color:var(--chakra-colors-gray-400);}*::-moz-placeholder{color:var(--chakra-colors-gray-400);}*:-ms-input-placeholder{color:var(--chakra-colors-gray-400);}*::placeholder{color:var(--chakra-colors-gray-400);}*,*::before,::after{border-color:var(--chakra-colors-gray-200);word-wrap:break-word;}</style><span></span></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"Pwq1CsSy3iH9VqD4549T8","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>
\ No newline at end of file |