From 6bf6a5eecc1fa7ddbb1fcda85e08fe9c393f9298 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:34:31 +0000 Subject: chore: build --- out/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js | 1 + out/_next/static/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js | 1 + out/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js | 1 - out/_next/static/chunks/pages/_app-5686c15726fcbac980ca.js | 1 + out/_next/static/chunks/pages/index-d0602a908c162f7c5496.js | 1 - out/_next/static/chunks/pages/index-f954a7866bfdd966749e.js | 1 + out/_next/static/jl9qrr_7bhMugoK5uUQaL/_buildManifest.js | 1 - out/_next/static/jl9qrr_7bhMugoK5uUQaL/_ssgManifest.js | 1 - 8 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 out/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js create mode 100644 out/_next/static/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js delete mode 100644 out/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js create mode 100644 out/_next/static/chunks/pages/_app-5686c15726fcbac980ca.js delete mode 100644 out/_next/static/chunks/pages/index-d0602a908c162f7c5496.js create mode 100644 out/_next/static/chunks/pages/index-f954a7866bfdd966749e.js delete mode 100644 out/_next/static/jl9qrr_7bhMugoK5uUQaL/_buildManifest.js delete mode 100644 out/_next/static/jl9qrr_7bhMugoK5uUQaL/_ssgManifest.js (limited to 'out/_next/static') diff --git a/out/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js b/out/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js new file mode 100644 index 0000000..d412b2e --- /dev/null +++ b/out/_next/static/OY7xgp5amTQ-MjS0RPi98/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-9c00dff9225b87a317ed.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-b8c45246e6f61610d91f.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/css/bdf775d76e641698f02f.css","static/chunks/879-09bfd8a9d59d1f41b6f4.js","static/chunks/pages/index-f954a7866bfdd966749e.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/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js b/out/_next/static/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js new file mode 100644 index 0000000..0511aa8 --- /dev/null +++ b/out/_next/static/OY7xgp5amTQ-MjS0RPi98/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB(); \ No newline at end of file diff --git a/out/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js b/out/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js deleted file mode 100644 index 7b79210..0000000 --- a/out/_next/static/chunks/pages/_app-0446451a5624316e6d5d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{20949:function(e,r,t){"use strict";t.d(r,{SG:function(){return y},If:function(){return v}});var n=t(85393),a=t(44592),o=t(67294);var i="chakra-ui-light",l="chakra-ui-dark",s={classList:{add:a.ZT,remove:a.ZT}};function c(e,r){var t=function(e){return a.jU?e.body:s}(r);t.classList.add(e?l:i),t.classList.remove(e?i:l)}var u="(prefers-color-scheme: dark)";function d(e){var r;return(null!=(r=function(e){var r=null==window.matchMedia?void 0:window.matchMedia(e);if(r)return!!r.media===r.matches}(u))?r:"dark"===e)?"dark":"light"}var f=function(){return document.documentElement.style.getPropertyValue("--chakra-ui-color-mode")||document.documentElement.dataset.theme},b=function(e){a.jU&&(document.documentElement.style.setProperty("--chakra-ui-color-mode",e),document.documentElement.setAttribute("data-theme",e))},p=function(){return"undefined"!==typeof Storage},g="chakra-ui-color-mode",h={get:function(e){if(!p())return e;try{var r=localStorage.getItem(g);return null!=r?r:e}catch(t){return a.Ts&&console.log(t),e}},set:function(e){if(p())try{localStorage.setItem(g,e)}catch(r){a.Ts&&console.log(r)}},type:"localStorage"},m=o.createContext({});a.Ts&&(m.displayName="ColorModeContext");var v=function(){var e=o.useContext(m);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e};function y(e){var r=e.value,t=e.children,i=e.options,l=i.useSystemColorMode,s=i.initialColorMode,p=e.colorModeManager,g=void 0===p?h:p,v="dark"===s?"dark":"light",y=o.useState("cookie"===g.type?g.get(v):v),x=y[0],w=y[1],k=(0,n.O)().document;o.useEffect((function(){if(a.jU&&"localStorage"===g.type){var e=d(v);if(l)return w(e);var r=f(),t=g.get();return w(r?r:t||("system"===s?e:v))}}),[g,l,v,s]),o.useEffect((function(){var e="dark"===x;c(e,k),b(e?"dark":"light")}),[x,k]);var S=o.useCallback((function(e,r){if(void 0===r&&(r=!1),r){if(g.get()&&!l)return}else g.set(e);w(e)}),[g,l]),E=o.useCallback((function(){S("light"===x?"dark":"light")}),[x,S]);o.useEffect((function(){var e,r=l||"system"===s;return r&&(e=function(e){if(!("matchMedia"in window))return a.ZT;var r=window.matchMedia(u),t=function(){e(r.matches?"dark":"light",!0)};return r.addEventListener("change",t),function(){r.removeEventListener("change",t)}}(S)),function(){e&&r&&e()}}),[S,l,s]);var C=o.useMemo((function(){return{colorMode:null!=r?r:x,toggleColorMode:r?a.ZT:E,setColorMode:r?a.ZT:S}}),[x,S,E,r]);return o.createElement(m.Provider,{value:C},t)}a.Ts&&(y.displayName="ColorModeProvider");a.Ts;a.Ts},97375:function(e,r,t){"use strict";t.d(r,{vc:function(){return p},kt:function(){return l},pY:function(){return s},Tx:function(){return c},Di:function(){return u},qY:function(){return m},Ck:function(){return y},s9:function(){return w},Gp:function(){return S},NW:function(){return C},Me:function(){return g},ZS:function(){return h},II:function(){return A},qq:function(){return B},O3:function(){return _},PO:function(){return R},bx:function(){return T},zq:function(){return E},rf:function(){return v}});var n=t(67294),a=t(78698),o=(t(20640),t(44592)),i=t(70580);function l(e){void 0===e&&(e=!1);var r=(0,n.useState)(e),t=r[0],a=r[1];return[t,{on:(0,n.useCallback)((function(){a(!0)}),[]),off:(0,n.useCallback)((function(){a(!1)}),[]),toggle:(0,n.useCallback)((function(){a((function(e){return!e}))}),[])}]}function s(e,r){var t=void 0!==e;return[t,t&&"undefined"!==typeof e?e:r]}function c(e){var r=e.value,t=e.defaultValue,i=e.onChange,l=e.shouldUpdate,s=void 0===l?function(e,r){return e!==r}:l,c=(0,a.u)(i),u=(0,a.u)(s),d=n.useState(t),f=d[0],b=d[1],p=void 0!==r,g=p?r:f,h=n.useCallback((function(e){var r=(0,o.Pu)(e,g);u(g,r)&&(p||b(r),c(r))}),[p,c,g,u]);return[g,h]}function u(e,r){var t=n.useState(null),o=t[0],l=t[1],s=n.useRef();return(0,a.a)((function(){if(e.current){var t=e.current;return n(),r&&(window.addEventListener("resize",n),window.addEventListener("scroll",n)),function(){r&&(window.removeEventListener("resize",n),window.removeEventListener("scroll",n)),s.current&&cancelAnimationFrame(s.current)}}function n(){s.current=requestAnimationFrame((function(){var e=(0,i.iz)(t);l(e)}))}}),[r]),o}function d(){return(d=Object.assign||function(e){for(var r=1;r1?r-1:0),a=1;a0&&(0,o.T_)(e[0],{preventScroll:l,nextTick:!0})}}),[d,l,u,i]);v((function(){f()}),[f]),(0,a.b)("transitionend",f,u)}function E(e,r){return void 0===r&&(r=[]),n.useEffect((function(){return function(){return e()}}),r)}function C(){var e=n.useRef(!1),r=n.useState(0),t=r[0],a=r[1];return E((function(){e.current=!0})),n.useCallback((function(){e.current||a(t+1)}),[t])}function A(e){var r=n.useRef(null);return r.current=e,r}function F(e,r){if(null!=e)if("function"!==typeof e)try{e.current=r}catch(t){throw new Error("Cannot assign value '"+r+"' to ref '"+e+"'")}else e(r)}function B(){for(var e=arguments.length,r=new Array(e),t=0;t0)return!1;if(n&&!(0,o.lZ)(n).body.contains(n))return!1;return!(null!=(t=r.current)&&t.contains(n))}function R(e,r){var t=r.onPan,a=r.onPanStart,i=r.onPanEnd,l=r.onPanSessionStart,s=r.onPanSessionEnd,c=r.threshold,u=Boolean(t||a||i||l||s),d=(0,n.useRef)(null),f={onSessionStart:l,onSessionEnd:s,onStart:a,onMove:t,onEnd:function(e,r){d.current=null,null==i||i(e,r)}};(0,n.useEffect)((function(){var e;null==(e=d.current)||e.updateHandlers(f)})),x((function(){return e.current}),"pointerdown",u?function(e){d.current=new o.Hc(e,f,c)}:o.ZT),E((function(){var e;null==(e=d.current)||e.end(),d.current=null}))}function T(e){void 0===e&&(e={});var r=e,t=r.timeout,a=void 0===t?300:t,o=r.preventDefault,i=void 0===o?function(){return!0}:o,l=n.useState([]),s=l[0],c=l[1],u=n.useRef(),d=function(){u.current&&(clearTimeout(u.current),u.current=null)};return n.useEffect((function(){return d}),[]),function(e){return function(r){if("Backspace"===r.key){var t=[].concat(s);return t.pop(),void c(t)}if(function(e){var r=e.key;return 1===r.length||r.length>1&&/[^a-zA-Z0-9]/.test(r)}(r)){var n=s.concat(r.key);i(r)&&(r.preventDefault(),r.stopPropagation()),c(n),e(n.join("")),d(),u.current=setTimeout((function(){c([]),u.current=null}),a)}}}}},78698:function(e,r,t){"use strict";t.d(r,{a:function(){return o},b:function(){return l},c:function(){return s},u:function(){return i}});var n=t(44592),a=t(67294),o=n.jU?a.useLayoutEffect:a.useEffect;function i(e,r){void 0===r&&(r=[]);var t=a.useRef(e);return o((function(){t.current=e})),a.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n=0||(a[t]=e[t]);return a}(e,p);return r?o.createElement(w,b({containerRef:r},t)):o.createElement(x,t)}k.defaultProps={appendToParentPortal:!0},k.className=v,k.selector=".chakra-portal",n.Ts&&(k.displayName="Portal")},85393:function(e,r,t){"use strict";t.d(r,{u:function(){return d},O:function(){return u}});var n=t(44592),a=t(67294),o={body:{classList:{add:function(){},remove:function(){}}},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}}},i=function(){},l={window:{document:o,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:i,removeEventListener:i,getComputedStyle:function(){return{getPropertyValue:function(){return""}}},matchMedia:function(){return{matches:!1,addListener:i,removeListener:i}},requestAnimationFrame:function(e){return"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!==typeof setTimeout&&clearTimeout(e)},setTimeout:function(){return 0},clearTimeout:i,setInterval:function(){return 0},clearInterval:i},document:o},s=n.jU?{window:window,document:document}:l,c=(0,a.createContext)(s);function u(){return(0,a.useContext)(c)}function d(e){var r=e.children,t=e.environment,n=(0,a.useState)(null),o=n[0],i=n[1],l=(0,a.useMemo)((function(){var e,r=null==o?void 0:o.ownerDocument,n=null==o?void 0:o.ownerDocument.defaultView;return null!=(e=null!=t?t:r?{document:r,window:n}:void 0)?e:s}),[o,t]),u=!o&&!t;return a.createElement(c.Provider,{value:l},r,u&&a.createElement("span",{ref:function(e){e&&i(e)}}))}n.Ts&&(c.displayName="EnvironmentContext"),n.Ts&&(d.displayName="EnvironmentProvider")},52829:function(e,r,t){"use strict";t.d(r,{kr:function(){return s},WR:function(){return c},lq:function(){return l}});t(38554),t(9839);function n(e){return"function"===typeof e}!function(e){var r=new WeakMap}((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;n :not(style) ~ :not(style)",v=((u={})[m]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},u),y=((d={})[m]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},d);function x(e,r){return(x=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function w(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&x(e,r)}function k(){k=function(e,r){return new t(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function t(e,n,a){var o=new RegExp(e,n);return r.set(o,a||r.get(e)),x(o,t.prototype)}function n(e,t){var n=r.get(t);return Object.keys(n).reduce((function(r,t){return r[t]=e[n[t]],r}),Object.create(null))}return w(t,RegExp),t.prototype.exec=function(r){var t=e.exec.call(this,r);return t&&(t.groups=n(t,this)),t},t.prototype[Symbol.replace]=function(t,a){if("string"===typeof a){var o=r.get(this);return e[Symbol.replace].call(this,t,a.replace(/\$<([^>]+)>/g,(function(e,r){return"$"+o[r]})))}if("function"===typeof a){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!==typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),a.apply(this,e)}))}return e[Symbol.replace].call(this,t,a)},k.apply(this,arguments)}var S={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},E=new Set(Object.values(S)),C=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),A=function(e){return e.trim()};var F=function(e){return(0,n.HD)(e)&&e.includes("(")&&e.includes(")")},B=function(e){return function(r){return e+"("+r+")"}},_={filter:function(e){return"auto"!==e?e:p},backdropFilter:function(e){return"auto"!==e?e:g},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(_.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(b).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(b).join(" "):e},px:function(e){return null==e?e:function(e){var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}}(e).unitless||(0,n.hj)(e)?e+"px":e},fraction:function(e){return!(0,n.hj)(e)||e>1?e:100*e+"%"},float:function(e,r){return"rtl"===r.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if((0,n.FS)(e)||null==e)return e;var r=(0,n.HD)(e)&&!e.endsWith("deg");return(0,n.hj)(e)||r?e+"deg":e},gradient:function(e,r){return function(e,r){var t,n;if(null==e||C.has(e))return e;var a=null!=(t=null==(n=k(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?t:{},o=a.type,i=a.values;if(!o||!i)return e;var l=o.includes("-gradient")?o:o+"-gradient",s=i.split(",").map(A).filter(Boolean),c=s[0],u=s.slice(1);if(0===(null==u?void 0:u.length))return e;var d=c in S?S[c]:c;return u.unshift(d),l+"("+u.map((function(e){if(E.has(e))return e;var t=e.indexOf(" "),n=-1!==t?[e.substr(0,t),e.substr(t+1)]:[e],a=n[0],o=n[1],i=F(o)?o:o&&o.split(" "),l="colors."+a,s=l in r.__cssMap?r.__cssMap[l].varRef:a;return i?[s].concat(Array.isArray(i)?i:[i]).join(" "):s})).join(", ")+")"}(e,null!=r?r:{})},blur:B("blur"),opacity:B("opacity"),brightness:B("brightness"),contrast:B("contrast"),dropShadow:B("drop-shadow"),grayscale:B("grayscale"),hueRotate:B("hue-rotate"),invert:B("invert"),saturate:B("saturate"),sepia:B("sepia"),bgImage:function(e){return null==e||F(e)||C.has(e)?e:"url("+e+")"},outline:function(e){var r="0"===String(e)||"none"===String(e);return null!==e&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var r,t=null!=(r=h[e])?r:{},n=t.space,a=t.divide,o={flexDirection:e};return n&&(o[n]=1),a&&(o[a]=1),o}},D={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),radii:c("radii",_.px),space:c("space",_.px),spaceT:c("space",_.px),degreeT:function(e){return{property:e,transform:_.degree}},prop:function(e,r,t){return i({property:e,scale:r},r&&{transform:s({scale:r,transform:t})})},propT:function(e,r){return{property:e,transform:r}},sizes:c("sizes",_.px),sizesT:c("sizes",_.fraction),shadows:c("shadows"),logical:function(e){var r=e.property,t=e.scale,n=e.transform;return{scale:t,property:f(r),transform:t?s({scale:t,compose:n}):n}},blur:c("blur",_.blur)},R={background:D.colors("background"),backgroundColor:D.colors("backgroundColor"),backgroundImage:D.propT("backgroundImage",_.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_.bgClip},bgSize:D.prop("backgroundSize"),bgPosition:D.prop("backgroundPosition"),bg:D.colors("background"),bgColor:D.colors("backgroundColor"),bgPos:D.prop("backgroundPosition"),bgRepeat:D.prop("backgroundRepeat"),bgAttachment:D.prop("backgroundAttachment"),bgGradient:D.propT("backgroundImage",_.gradient),bgClip:{transform:_.bgClip}};Object.assign(R,{bgImage:R.backgroundImage,bgImg:R.backgroundImage});var T={border:D.borders("border"),borderWidth:D.borderWidths("borderWidth"),borderStyle:D.borderStyles("borderStyle"),borderColor:D.colors("borderColor"),borderRadius:D.radii("borderRadius"),borderTop:D.borders("borderTop"),borderBlockStart:D.borders("borderBlockStart"),borderTopLeftRadius:D.radii("borderTopLeftRadius"),borderStartStartRadius:D.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:D.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:D.radii("borderTopRightRadius"),borderStartEndRadius:D.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:D.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:D.borders("borderRight"),borderInlineEnd:D.borders("borderInlineEnd"),borderBottom:D.borders("borderBottom"),borderBlockEnd:D.borders("borderBlockEnd"),borderBottomLeftRadius:D.radii("borderBottomLeftRadius"),borderBottomRightRadius:D.radii("borderBottomRightRadius"),borderLeft:D.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:D.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:D.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:D.borders(["borderLeft","borderRight"]),borderInline:D.borders("borderInline"),borderY:D.borders(["borderTop","borderBottom"]),borderBlock:D.borders("borderBlock"),borderTopWidth:D.borderWidths("borderTopWidth"),borderBlockStartWidth:D.borderWidths("borderBlockStartWidth"),borderTopColor:D.colors("borderTopColor"),borderBlockStartColor:D.colors("borderBlockStartColor"),borderTopStyle:D.borderStyles("borderTopStyle"),borderBlockStartStyle:D.borderStyles("borderBlockStartStyle"),borderBottomWidth:D.borderWidths("borderBottomWidth"),borderBlockEndWidth:D.borderWidths("borderBlockEndWidth"),borderBottomColor:D.colors("borderBottomColor"),borderBlockEndColor:D.colors("borderBlockEndColor"),borderBottomStyle:D.borderStyles("borderBottomStyle"),borderBlockEndStyle:D.borderStyles("borderBlockEndStyle"),borderLeftWidth:D.borderWidths("borderLeftWidth"),borderInlineStartWidth:D.borderWidths("borderInlineStartWidth"),borderLeftColor:D.colors("borderLeftColor"),borderInlineStartColor:D.colors("borderInlineStartColor"),borderLeftStyle:D.borderStyles("borderLeftStyle"),borderInlineStartStyle:D.borderStyles("borderInlineStartStyle"),borderRightWidth:D.borderWidths("borderRightWidth"),borderInlineEndWidth:D.borderWidths("borderInlineEndWidth"),borderRightColor:D.colors("borderRightColor"),borderInlineEndColor:D.colors("borderInlineEndColor"),borderRightStyle:D.borderStyles("borderRightStyle"),borderInlineEndStyle:D.borderStyles("borderInlineEndStyle"),borderTopRadius:D.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:D.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:D.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:D.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(T,{rounded:T.borderRadius,roundedTop:T.borderTopRadius,roundedTopLeft:T.borderTopLeftRadius,roundedTopRight:T.borderTopRightRadius,roundedTopStart:T.borderStartStartRadius,roundedTopEnd:T.borderStartEndRadius,roundedBottom:T.borderBottomRadius,roundedBottomLeft:T.borderBottomLeftRadius,roundedBottomRight:T.borderBottomRightRadius,roundedBottomStart:T.borderEndStartRadius,roundedBottomEnd:T.borderEndEndRadius,roundedLeft:T.borderLeftRadius,roundedRight:T.borderRightRadius,roundedStart:T.borderInlineStartRadius,roundedEnd:T.borderInlineEndRadius,borderStart:T.borderInlineStart,borderEnd:T.borderInlineEnd,borderTopStartRadius:T.borderStartStartRadius,borderTopEndRadius:T.borderStartEndRadius,borderBottomStartRadius:T.borderEndStartRadius,borderBottomEndRadius:T.borderEndEndRadius,borderStartRadius:T.borderInlineStartRadius,borderEndRadius:T.borderInlineEndRadius,borderStartWidth:T.borderInlineStartWidth,borderEndWidth:T.borderInlineEndWidth,borderStartColor:T.borderInlineStartColor,borderEndColor:T.borderInlineEndColor,borderStartStyle:T.borderInlineStartStyle,borderEndStyle:T.borderInlineEndStyle});var z={color:D.colors("color"),textColor:D.colors("color"),fill:D.colors("fill"),stroke:D.colors("stroke")},P={boxShadow:D.shadows("boxShadow"),mixBlendMode:!0,blendMode:D.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:D.prop("backgroundBlendMode"),opacity:!0};Object.assign(P,{shadow:P.boxShadow});var M={filter:{transform:_.filter},blur:D.blur("--chakra-blur"),brightness:D.propT("--chakra-brightness",_.brightness),contrast:D.propT("--chakra-contrast",_.contrast),hueRotate:D.degreeT("--chakra-hue-rotate"),invert:D.propT("--chakra-invert",_.invert),saturate:D.propT("--chakra-saturate",_.saturate),dropShadow:D.propT("--chakra-drop-shadow",_.dropShadow),backdropFilter:{transform:_.backdropFilter},backdropBlur:D.blur("--chakra-backdrop-blur"),backdropBrightness:D.propT("--chakra-backdrop-brightness",_.brightness),backdropContrast:D.propT("--chakra-backdrop-contrast",_.contrast),backdropHueRotate:D.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:D.propT("--chakra-backdrop-invert",_.invert),backdropSaturate:D.propT("--chakra-backdrop-saturate",_.saturate)},j={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_.flexDirection},experimental_spaceX:{static:v,transform:s({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:y,transform:s({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:D.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:D.space("gap"),rowGap:D.space("rowGap"),columnGap:D.space("columnGap")};Object.assign(j,{flexDir:j.flexDirection});var O={gridGap:D.space("gridGap"),gridColumnGap:D.space("gridColumnGap"),gridRowGap:D.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},I={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_.outline},outlineOffset:!0,outlineColor:D.colors("outlineColor")},W={width:D.sizesT("width"),inlineSize:D.sizesT("inlineSize"),height:D.sizes("height"),blockSize:D.sizes("blockSize"),boxSize:D.sizes(["width","height"]),minWidth:D.sizes("minWidth"),minInlineSize:D.sizes("minInlineSize"),minHeight:D.sizes("minHeight"),minBlockSize:D.sizes("minBlockSize"),maxWidth:D.sizes("maxWidth"),maxInlineSize:D.sizes("maxInlineSize"),maxHeight:D.sizes("maxHeight"),maxBlockSize:D.sizes("maxBlockSize"),d:D.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:D.propT("float",_.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(W,{w:W.width,h:W.height,minW:W.minWidth,maxW:W.maxWidth,minH:W.minHeight,maxH:W.maxHeight,overscroll:W.overscrollBehavior,overscrollX:W.overscrollBehaviorX,overscrollY:W.overscrollBehaviorY});var N={listStyleType:!0,listStylePosition:!0,listStylePos:D.prop("listStylePosition"),listStyleImage:!0,listStyleImg:D.prop("listStyleImage")},L={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},H={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},$=function(e,r,t){var a={},o=(0,n.Wf)(e,r,{});for(var i in o){i in t&&null!=t[i]||(a[i]=o[i])}return a},q={srOnly:{transform:function(e){return!0===e?L:"focusable"===e?H:{}}},layerStyle:{processResult:!0,transform:function(e,r,t){return $(r,"layerStyles."+e,t)}},textStyle:{processResult:!0,transform:function(e,r,t){return $(r,"textStyles."+e,t)}},apply:{processResult:!0,transform:function(e,r,t){return $(r,e,t)}}},Z={position:!0,pos:D.prop("position"),zIndex:D.prop("zIndex","zIndices"),inset:D.spaceT("inset"),insetX:D.spaceT(["left","right"]),insetInline:D.spaceT("insetInline"),insetY:D.spaceT(["top","bottom"]),insetBlock:D.spaceT("insetBlock"),top:D.spaceT("top"),insetBlockStart:D.spaceT("insetBlockStart"),bottom:D.spaceT("bottom"),insetBlockEnd:D.spaceT("insetBlockEnd"),left:D.spaceT("left"),insetInlineStart:D.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:D.spaceT("right"),insetInlineEnd:D.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Z,{insetStart:Z.insetInlineStart,insetEnd:Z.insetInlineEnd});var U={ring:{transform:_.ring},ringColor:D.colors("--chakra-ring-color"),ringOffset:D.prop("--chakra-ring-offset-width"),ringOffsetColor:D.colors("--chakra-ring-offset-color"),ringInset:D.prop("--chakra-ring-inset")},V={margin:D.spaceT("margin"),marginTop:D.spaceT("marginTop"),marginBlockStart:D.spaceT("marginBlockStart"),marginRight:D.spaceT("marginRight"),marginInlineEnd:D.spaceT("marginInlineEnd"),marginBottom:D.spaceT("marginBottom"),marginBlockEnd:D.spaceT("marginBlockEnd"),marginLeft:D.spaceT("marginLeft"),marginInlineStart:D.spaceT("marginInlineStart"),marginX:D.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:D.spaceT("marginInline"),marginY:D.spaceT(["marginTop","marginBottom"]),marginBlock:D.spaceT("marginBlock"),padding:D.space("padding"),paddingTop:D.space("paddingTop"),paddingBlockStart:D.space("paddingBlockStart"),paddingRight:D.space("paddingRight"),paddingBottom:D.space("paddingBottom"),paddingBlockEnd:D.space("paddingBlockEnd"),paddingLeft:D.space("paddingLeft"),paddingInlineStart:D.space("paddingInlineStart"),paddingInlineEnd:D.space("paddingInlineEnd"),paddingX:D.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:D.space("paddingInline"),paddingY:D.space(["paddingTop","paddingBottom"]),paddingBlock:D.space("paddingBlock")};Object.assign(V,{m:V.margin,mt:V.marginTop,mr:V.marginRight,me:V.marginInlineEnd,marginEnd:V.marginInlineEnd,mb:V.marginBottom,ml:V.marginLeft,ms:V.marginInlineStart,marginStart:V.marginInlineStart,mx:V.marginX,my:V.marginY,p:V.padding,pt:V.paddingTop,py:V.paddingY,px:V.paddingX,pb:V.paddingBottom,pl:V.paddingLeft,ps:V.paddingInlineStart,paddingStart:V.paddingInlineStart,pr:V.paddingRight,pe:V.paddingInlineEnd,paddingEnd:V.paddingInlineEnd});var Y={textDecorationColor:D.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:D.shadows("textShadow")},X={clipPath:!0,transform:D.propT("transform",_.transform),transformOrigin:!0,translateX:D.spaceT("--chakra-translate-x"),translateY:D.spaceT("--chakra-translate-y"),skewX:D.degreeT("--chakra-skew-x"),skewY:D.degreeT("--chakra-skew-y"),scaleX:D.prop("--chakra-scale-x"),scaleY:D.prop("--chakra-scale-y"),scale:D.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:D.degreeT("--chakra-rotate")},G={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:D.prop("transitionDuration","transition.duration"),transitionProperty:D.prop("transitionProperty","transition.property"),transitionTimingFunction:D.prop("transitionTimingFunction","transition.easing")},K={fontFamily:D.prop("fontFamily","fonts"),fontSize:D.prop("fontSize","fontSizes",_.px),fontWeight:D.prop("fontWeight","fontWeights"),lineHeight:D.prop("lineHeight","lineHeights"),letterSpacing:D.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform:function(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},J={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:D.spaceT("scrollMargin"),scrollMarginTop:D.spaceT("scrollMarginTop"),scrollMarginBottom:D.spaceT("scrollMarginBottom"),scrollMarginLeft:D.spaceT("scrollMarginLeft"),scrollMarginRight:D.spaceT("scrollMarginRight"),scrollMarginX:D.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:D.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:D.spaceT("scrollPadding"),scrollPaddingTop:D.spaceT("scrollPaddingTop"),scrollPaddingBottom:D.spaceT("scrollPaddingBottom"),scrollPaddingLeft:D.spaceT("scrollPaddingLeft"),scrollPaddingRight:D.spaceT("scrollPaddingRight"),scrollPaddingX:D.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:D.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Q(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var re=function(e,r){return e+":hover "+r+", "+e+"[data-hover] "+r},te=function(e,r){return e+":focus "+r+", "+e+"[data-focus] "+r},ne=function(e,r){return e+":focus-visible "+r},ae=function(e,r){return e+":focus-within "+r},oe=function(e,r){return e+":active "+r+", "+e+"[data-active] "+r},ie=function(e,r){return e+":disabled "+r+", "+e+"[data-disabled] "+r},le=function(e,r){return e+":invalid "+r+", "+e+"[data-invalid] "+r},se=function(e,r){return e+":checked "+r+", "+e+"[data-checked] "+r},ce=function(e,r){return e+":placeholder-shown "+r},ue=function(e){return fe((function(r){return e(r,"&")}),"[role=group]","[data-group]",".group")},de=function(e){return fe((function(r){return e(r,"~ &")}),"[data-peer]",".peer")},fe=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n=0||(a[t]=e[t]);return a}(e,Ie)}function He(e){var r,t=Le(e),a=Oe(function(e){var r,t,a=e.tokens,o=e.semanticTokens,i=Object.entries(null!=(r=(0,n.xH)(a))?r:{}).map((function(e){return[e[0],{isSemantic:!1,value:e[1]}]})),l=Object.entries(null!=(t=(0,n.xH)(o,1))?t:{}).map((function(e){return[e[0],{isSemantic:!0,value:e[1]}]}));return(0,n.sq)([].concat(i,l))}({tokens:Ne(t),semanticTokens:function(e){return e.semanticTokens}(t)}),{cssVarPrefix:null==(r=t.config)?void 0:r.cssVarPrefix}),o=a.cssMap,l=a.cssVars;return Object.assign(t,{__cssVars:i({},{"--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"},l),__cssMap:o,__breakpoints:(0,n.yn)(t.breakpoints)}),t}},105:function(e,r,t){"use strict";t.d(r,{ZL:function(){return P},Fo:function(){return T},f6:function(){return B},m$:function(){return $},Gp:function(){return q},Lr:function(){return M},jC:function(){return V},mq:function(){return U},yK:function(){return z},Fg:function(){return D}});var n=t(20949),a=t(94244),o=t(70917),i=t(31421),l=t(44592),s=t(38554),c=t.n(s),u=t(67294),d=t(69590),f=t.n(d),b=t(52829),p=t(87462),g=t(67866),h=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,m=(0,g.Z)((function(e){return h.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),v=t(70444),y=t(94199),x=m,w=function(e){return"theme"!==e},k=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?x:w},S=function(e,r,t){var n;if(r){var a=r.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(r){return e.__emotion_forwardProp(r)&&a(r)}:a}return"function"!==typeof n&&t&&(n=e.__emotion_forwardProp),n},E=function(){return null},C=function e(r,t){var n,a,o=r.__emotion_real===r,l=o&&r.__emotion_base||r;void 0!==t&&(n=t.label,a=t.target);var s=S(r,t,o),c=s||k(l),d=!c("as");return function(){var f=arguments,b=o&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==n&&b.push("label:"+n+";"),null==f[0]||void 0===f[0].raw)b.push.apply(b,f);else{0,b.push(f[0][0]);for(var g=f.length,h=1;h` or ``");return e}var R=(0,b.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),T=R[0],z=R[1],P=function(){var e=(0,n.If)().colorMode;return u.createElement(o.xB,{styles:function(r){var t=(0,l.Wf)(r,"styles.global"),n=(0,l.Pu)(t,{theme:r,colorMode:e});if(n){var o=(0,a.iv)(n)(r);return o}}})};function M(e){return(0,l.CE)(e,["styleConfig","size","variant","colorScheme"])}function j(){return F({},(0,n.If)(),{theme:D()})}function O(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n=0||(a[t]=e[t]);return a}var I=new Set([].concat(a.cC,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),W=new Set(["htmlWidth","htmlHeight","htmlSize"]),N=function(e){return W.has(e)||!I.has(e)},L=["theme","css","__css","sx"],H=["baseStyle"];var $=function(e,r){var t=null!=r?r:{},n=t.baseStyle,o=O(t,H);o.shouldForwardProp||(o.shouldForwardProp=N);var i=function(e){var r=e.baseStyle;return function(e){e.theme;var t=e.css,n=e.__css,o=e.sx,i=O(e,L),s=(0,l.lw)(i,(function(e,r){return(0,a.ZR)(r)})),c=(0,l.Pu)(r,e),u=Object.assign({},n,c,(0,l.YU)(s),o),d=(0,a.iv)(u)(e.theme);return t?[d,t]:d}}({baseStyle:n});return A(e,o)(i)};function q(e){return u.forwardRef(e)}["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"].forEach((function(e){$[e]=$(e)}));var Z=["styleConfig"];function U(e,r,t){var n;void 0===r&&(r={}),void 0===t&&(t={});var a=r,o=a.styleConfig,i=O(a,Z),s=j(),d=s.theme,b=s.colorMode,p=(0,l.Wf)(d,"components."+e),g=o||p,h=c()({theme:d,colorMode:b},null!=(n=null==g?void 0:g.defaultProps)?n:{},(0,l.YU)((0,l.CE)(i,["children"]))),m=(0,u.useRef)({});if(g){var v,y,x,w,k,S,E=(0,l.Pu)(null!=(v=g.baseStyle)?v:{},h),C=(0,l.Pu)(null!=(y=null==(x=g.variants)?void 0:x[h.variant])?y:{},h),A=(0,l.Pu)(null!=(w=null==(k=g.sizes)?void 0:k[h.size])?w:{},h),F=c()({},E,A,C);null!=(S=t)&&S.isMultiPart&&g.parts&&g.parts.forEach((function(e){var r;F[e]=null!=(r=F[e])?r:{}})),f()(m.current,F)||(m.current=F)}return m.current}function V(e,r){return U(e,r,{isMultiPart:!0})}},44592:function(e,r,t){"use strict";t.d(r,{Hc:function(){return ze},Ts:function(){return m},jX:function(){return o},yn:function(){return P},Qm:function(){return H},PP:function(){return ie},v0:function(){return oe},HU:function(){return we},r3:function(){return Z},cx:function(){return $},PB:function(){return L},Ao:function(){return Ne},VI:function(){return he},YU:function(){return C},xH:function(){return ge},T_:function(){return be},sq:function(){return F},vY:function(){return q},t5:function(){return re},K1:function(){return B},LP:function(){return l},lZ:function(){return I},kR:function(){return O},f7:function(){return Re},wN:function(){return V},H9:function(){return G},kJ:function(){return c},jU:function(){return N},FS:function(){return h},Qr:function(){return b},mf:function(){return u},Re:function(){return j},kA:function(){return y},Ft:function(){return p},hj:function(){return s},Kn:function(){return f},Ik:function(){return v},n_:function(){return Y},HD:function(){return g},Wq:function(){return Q},o8:function(){return d},XQ:function(){return We},Wf:function(){return S},ZT:function(){return se},uh:function(){return U},lw:function(){return E},Yd:function(){return A},CE:function(){return x},WS:function(){return ye},ei:function(){return w},zG:function(){return ue},px:function(){return _},cl:function(){return i},WP:function(){return xe},Pu:function(){return ae},Vl:function(){return k},Rg:function(){return ve},ZK:function(){return ce},JN:function(){return Be}});t(38554);var n=t(9839);function a(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}function o(e,r){return[].concat(e,[r])}function i(e,r){return e.filter((function(e){return e!==r}))}function l(e,r,t,n){if(null==r)return n;if(!n)return e.find((function(e){return t(e).toLowerCase().startsWith(r.toLowerCase())}));var a,o=e.filter((function(e){return t(e).toLowerCase().startsWith(r.toLowerCase())}));return o.length>0?o.includes(n)?((a=o.indexOf(n)+1)===o.length&&(a=0),o[a]):(a=e.indexOf(o[0]),e[a]):n}function s(e){return"number"===typeof e}function c(e){return Array.isArray(e)}function u(e){return"function"===typeof e}function d(e){return"undefined"===typeof e||void 0===e}function f(e){var r=typeof e;return null!=e&&("object"===r||"function"===r)&&!c(e)}function b(e){return f(e)&&0===Object.keys(e).length}function p(e){return null==e}function g(e){return"[object String]"===Object.prototype.toString.call(e)}function h(e){return/^var\(--.+\)$/.test(e)}var m=!1;function v(e){return"current"in e}function y(e){return e&&f(e)&&f(e.target)}function x(e,r){var t={};return Object.keys(e).forEach((function(n){r.includes(n)||(t[n]=e[n])})),t}function w(e,r){var t={};return r.forEach((function(r){r in e&&(t[r]=e[r])})),t}function k(e,r){var t={},n={};return Object.keys(e).forEach((function(a){r.includes(a)?t[a]=e[a]:n[a]=e[a]})),[t,n]}var S=function(e){var r=new WeakMap;return function(t,n,a,o){if("undefined"===typeof t)return e(t,n,a);r.has(t)||r.set(t,new Map);var i=r.get(t);if(i.has(n))return i.get(n);var l=e(t,n,a,o);return i.set(n,l),l}}((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;nparseInt(r[1],10)?1:-1},R=function(e){return F(Object.entries(e).sort(D))};function T(e){var r=R(e);return Object.assign(Object.values(r),r)}function z(e,r){var t=[];return e&&t.push("@media screen and (min-width: "+_(e)+")"),t.length>0&&r&&t.push("and"),r&&t.push("@media screen and (max-width: "+_(r)+")"),t.join(" ")}function P(e){var r;if(!e)return null;e.base=null!=(r=e.base)?r:"0px";var t=T(e),n=Object.entries(e).sort(D).map((function(e,r,t){var n,a=e[0],o=e[1],i=(null!=(n=t[r+1])?n:[])[1];return{breakpoint:a,minW:o,maxW:i=parseFloat(i)>0?function(e){var r;if(!e)return e;var t=(e=null!=(r=_(e))?r:e).endsWith("px")?-1:-.0635;return s(e)?""+(e+t):e.replace(/([0-9]+\.?[0-9]*)/,(function(e){return""+(parseFloat(e)+t)}))}(i):void 0,maxWQuery:z(null,i),minWQuery:z(o),minMaxQuery:z(o,i)}})),o=function(e){var r=Object.keys(R(e));return new Set(r)}(e),i=Array.from(o.values());return{keys:o,normalized:t,isResponsive:function(e){var r=Object.keys(e);return r.length>0&&r.every((function(e){return o.has(e)}))},asObject:R(e),asArray:T(e),details:n,media:[null].concat(t.map((function(e){return z(e)})).slice(1)),toArrayValue:function(e){if(!f(e))throw new Error("toArrayValue: value must be an object");for(var r=i.map((function(r){var t;return null!=(t=e[r])?t:null}));null===a(r);)r.pop();return r},toObjectValue:function(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((function(e,r,t){var n=i[t];return null!=n&&null!=r&&(e[n]=r),e}),{})}}}function M(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function j(e){var r;return!!M(e)&&e instanceof(null!=(r=e.ownerDocument.defaultView)?r:window).HTMLElement}function O(e){var r,t;return M(e)&&null!=(r=null==(t=I(e))?void 0:t.defaultView)?r:window}function I(e){var r;return M(e)&&null!=(r=e.ownerDocument)?r:document}function W(e){var r;return null!=(r=e.view)?r:window}var N=!("undefined"===typeof window||!window.document||!window.document.createElement),L=function(e){return e?"":void 0},H=function(e){return!!e||void 0},$=function(){for(var e=arguments.length,r=new Array(e),t=0;t=37&&t<=40&&0!==r.indexOf("Arrow")?"Arrow"+r:r}function V(e){var r,t,n=q(null!=(r=e.target)?r:e.currentTarget);return null!=(t=e.relatedTarget)?t:n}function Y(e){return 0!==e.button}var X=function(e){return e.hasAttribute("tabindex")};function G(e){return(j(e)?I(e):document).activeElement===e}function K(e){return!(!e.parentElement||!K(e.parentElement))||e.hidden}function J(e){if(!j(e)||K(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var r=e.localName;if(["input","select","textarea","button"].indexOf(r)>=0)return!0;var t={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return r in t?t[r]():!!function(e){var r=e.getAttribute("contenteditable");return"false"!==r&&null!=r}(e)||X(e)}function Q(e){return!!e&&(j(e)&&J(e)&&!function(e){return X(e)&&-1===e.tabIndex}(e))}var ee=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function re(e){var r=Array.from(e.querySelectorAll(ee));return r.unshift(e),r.filter(J).filter((function(e){return"none"!==window.getComputedStyle(e).display}))}function te(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ae(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=a.threshold;if(r||t){var o=(0,n.$B)().timestamp;a.history.push(ke({},e.point,{timestamp:o}));var i=a.handlers,l=i.onStart,c=i.onMove;r||(null==l||l(a.lastEvent,e),a.startEvent=a.lastEvent),null==c||c(a.lastEvent,e)}}},this.onPointerMove=function(e,r){a.lastEvent=e,a.lastEventInfo=r,function(e){var r=W(e);return"undefined"!==typeof r.PointerEvent&&e instanceof r.PointerEvent?!("mouse"!==e.pointerType):e instanceof r.MouseEvent}(e)&&0===e.buttons?a.onPointerUp(e,r):n.ZP.update(a.updatePoint,!0)},this.onPointerUp=function(e,r){var t=Oe(r,a.history),n=a.handlers,o=n.onEnd,i=n.onSessionEnd;null==i||i(e,t),a.end(),o&&a.startEvent&&(null==o||o(e,t))},this.win=W(e),!(Se(o=e)&&o.touches.length>1)){var o;this.handlers=r,t&&(this.threshold=t),e.stopPropagation(),e.preventDefault();var i=Fe(e),l=(0,n.$B)().timestamp;this.history=[ke({},i.point,{timestamp:l})];var c=r.onSessionStart;null==c||c(e,Oe(i,this.history)),this.removeListeners=ue(Te(this.win,"pointermove",this.onPointerMove),Te(this.win,"pointerup",this.onPointerUp),Te(this.win,"pointercancel",this.onPointerUp))}}var r=e.prototype;return r.updateHandlers=function(e){this.handlers=e},r.end=function(){var e;null==(e=this.removeListeners)||e.call(this),n.qY.update(this.updatePoint)},e}();function Pe(e,r){return{x:e.x-r.x,y:e.y-r.y}}function Me(e){return e[0]}function je(e){return e[e.length-1]}function Oe(e,r){return{point:e.point,delta:Pe(e.point,je(r)),offset:Pe(e.point,Me(r)),velocity:Ie(r,.1)}}function Ie(e,r){if(e.length<2)return{x:0,y:0};for(var t=e.length-1,n=null,a=function(e){return e[e.length-1]}(e);t>=0&&(n=e[t],!(a.timestamp-n.timestamp>1e3*r));)t--;if(!n)return{x:0,y:0};var o=(a.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}Object.freeze(["base","sm","md","lg","xl","2xl"]);function We(e,r){return c(e)?e.map((function(e){return null===e?null:r(e)})):f(e)?A(e).reduce((function(t,n){return t[n]=r(e[n]),t}),{}):null!=e?r(e):null}function Ne(e){return!!N&&function(e){var r=e.userAgent,t=e.vendor,n=/(android)/i.test(r);switch(!0){case/CriOS/.test(r):return"Chrome for iOS";case/Edg\//.test(r):return"Edge";case n&&/Silk\//.test(r):return"Silk";case/Chrome/.test(r)&&/Google Inc/.test(t):return"Chrome";case/Firefox\/\d+\.\d+$/.test(r):return"Firefox";case n:return"AOSP";case/MSIE|Trident/.test(r):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(r):return"Safari";case/AppleWebKit/.test(r):return"WebKit";default:return null}}(window.navigator)===e}},51859:function(e,r,t){"use strict";t.d(r,{Z:function(){return ae}});var n=t(11526),a=Math.abs,o=String.fromCharCode,i=Object.assign;function l(e){return e.trim()}function s(e,r,t){return e.replace(r,t)}function c(e,r){return e.indexOf(r)}function u(e,r){return 0|e.charCodeAt(r)}function d(e,r,t){return e.slice(r,t)}function f(e){return e.length}function b(e){return e.length}function p(e,r){return r.push(e),e}var g=1,h=1,m=0,v=0,y=0,x="";function w(e,r,t,n,a,o,i){return{value:e,root:r,parent:t,type:n,props:a,children:o,line:g,column:h,length:i,return:""}}function k(e,r){return i(w("",null,null,"",null,null,0),e,{length:-e.length},r)}function S(){return y=v>0?u(x,--v):0,h--,10===y&&(h=1,g--),y}function E(){return y=v2||B(y)>3?"":" "}function z(e,r){for(;--r&&E()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return F(e,A()+(r<6&&32==C()&&32==E()))}function P(e){for(;E();)switch(y){case e:return v;case 34:case 39:34!==e&&39!==e&&P(y);break;case 40:41===e&&P(e);break;case 92:E()}return v}function M(e,r){for(;E()&&e+y!==57&&(e+y!==84||47!==C()););return"/*"+F(r,v-1)+"*"+o(47===e?e:E())}function j(e){for(;!B(C());)E();return F(e,v)}var O="-ms-",I="-moz-",W="-webkit-",N="comm",L="rule",H="decl",$="@keyframes";function q(e,r){for(var t="",n=b(e),a=0;a6)switch(u(e,r+1)){case 109:if(45!==u(e,r+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+I+(108==u(e,r+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?U(s(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==u(e,r+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return s(e,":",":"+W)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===u(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+O+"$2box$3")+e}break;case 5936:switch(u(e,r+11)){case 114:return W+e+O+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+O+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+O+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+O+e+e}return e}function V(e){return D(Y("",null,null,null,[""],e=_(e),0,[0],e))}function Y(e,r,t,n,a,i,l,u,d){for(var b=0,g=0,h=l,m=0,v=0,y=0,x=1,w=1,k=1,F=0,B="",_=a,D=i,P=n,O=B;w;)switch(y=F,F=E()){case 40:if(108!=y&&58==O.charCodeAt(h-1)){-1!=c(O+=s(R(F),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:O+=R(F);break;case 9:case 10:case 13:case 32:O+=T(y);break;case 92:O+=z(A()-1,7);continue;case 47:switch(C()){case 42:case 47:p(G(M(E(),A()),r,t),d);break;default:O+="/"}break;case 123*x:u[b++]=f(O)*k;case 125*x:case 59:case 0:switch(F){case 0:case 125:w=0;case 59+g:v>0&&f(O)-h&&p(v>32?K(O+";",n,t,h-1):K(s(O," ","")+";",n,t,h-2),d);break;case 59:O+=";";default:if(p(P=X(O,r,t,b,g,a,u,B,_=[],D=[],h),i),123===F)if(0===g)Y(O,r,P,P,_,i,h,u,D);else switch(m){case 100:case 109:case 115:Y(e,P,P,n&&p(X(e,P,P,0,0,a,u,B,a,_=[],h),D),a,D,h,u,n?_:D);break;default:Y(O,P,P,P,[""],D,0,u,D)}}b=g=v=0,x=k=1,B=O="",h=l;break;case 58:h=1+f(O),v=y;default:if(x<1)if(123==F)--x;else if(125==F&&0==x++&&125==S())continue;switch(O+=o(F),F*x){case 38:k=g>0?1:(O+="\f",-1);break;case 44:u[b++]=(f(O)-1)*k,k=1;break;case 64:45===C()&&(O+=R(E())),m=C(),g=h=f(B=O+=j(A())),F++;break;case 45:45===y&&2==f(O)&&(x=0)}}return i}function X(e,r,t,n,o,i,c,u,f,p,g){for(var h=o-1,m=0===o?i:[""],v=b(m),y=0,x=0,k=0;y0?m[S]+" "+E:s(E,/&\f/g,m[S])))&&(f[k++]=C);return w(e,r,t,0===o?L:u,f,p,g)}function G(e,r,t){return w(e,r,t,N,o(y),d(e,2,-2),0)}function K(e,r,t,n){return w(e,r,t,H,d(e,0,n),d(e,n+1,-1),n)}var J=function(e,r,t){for(var n=0,a=0;n=a,a=C(),38===n&&12===a&&(r[t]=1),!B(a);)E();return F(e,v)},Q=function(e,r){return D(function(e,r){var t=-1,n=44;do{switch(B(n)){case 0:38===n&&12===C()&&(r[t]=1),e[t]+=J(v-1,r,t);break;case 2:e[t]+=R(n);break;case 4:if(44===n){e[++t]=58===C()?"&\f":"",r[t]=e[t].length;break}default:e[t]+=o(n)}}while(n=E());return e}(_(e),r))},ee=new WeakMap,re=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||ee.get(t))&&!n){ee.set(e,!0);for(var a=[],o=Q(r,a),i=t.props,l=0,s=0;l-1&&!e.return)switch(e.type){case H:e.return=U(e.value,e.length);break;case $:return q([k(e,{value:s(e.value,"@","@"+W)})],n);case L:if(e.length)return function(e,r){return e.map(r).join("")}(e.props,(function(r){switch(function(e,r){return(e=r.exec(e))?e[0]:e}(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return q([k(e,{props:[s(r,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return q([k(e,{props:[s(r,/:(plac\w+)/,":-webkit-input-$1")]}),k(e,{props:[s(r,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[s(r,/:(plac\w+)/,O+"input-$1")]})],n)}return""}))}}],ae=function(e){var r=e.key;if("css"===r){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||ne;var o,i,l={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){for(var r=e.getAttribute("data-emotion").split(" "),t=1;t=4;++n,a-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(a){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=t(67866),i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.Z)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,r){switch(e){case"animation":case"animationName":if("string"===typeof r)return r.replace(l,(function(e,r,t){return b={name:r,styles:t,next:b},r}))}return 1===a[e]||s(e)||"number"!==typeof r||0===r?r:r+"px"};function f(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return b={name:t.name,styles:t.styles,next:b},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)b={name:n.name,styles:n.styles,next:b},n=n.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a-1},G.prototype.set=function(e,r){var t=this.__data__,n=te(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(U||G),string:new X}},K.prototype.delete=function(e){var r=fe(this,e).delete(e);return this.size-=r?1:0,r},K.prototype.get=function(e){return fe(this,e).get(e)},K.prototype.has=function(e){return fe(this,e).has(e)},K.prototype.set=function(e,r){var t=fe(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this},J.prototype.clear=function(){this.__data__=new G,this.size=0},J.prototype.delete=function(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,r){var t=this.__data__;if(t instanceof G){var n=t.__data__;if(!U||n.length<199)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new K(n)}return t.set(e,r),this.size=t.size,this};var ae,oe=function(e,r,t){for(var n=-1,a=Object(e),o=t(e),i=o.length;i--;){var l=o[ae?i:++n];if(!1===r(a[l],l,a))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":L&&L in Object(e)?function(e){var r=B.call(e,L),t=e[L];try{e[L]=void 0;var n=!0}catch(o){}var a=D.call(e);n&&(r?e[L]=t:delete e[L]);return a}(e):function(e){return D.call(e)}(e)}function le(e){return Ae(e)&&ie(e)==o}function se(e){return!(!Ce(e)||function(e){return!!_&&_ in e}(e))&&(Se(e)?T:s).test(function(e){if(null!=e){try{return F.call(e)}catch(r){}try{return e+""}catch(r){}}return""}(e))}function ce(e){if(!Ce(e))return function(e){var r=[];if(null!=e)for(var t in Object(e))r.push(t);return r}(e);var r=ge(e),t=[];for(var n in e)("constructor"!=n||!r&&B.call(e,n))&&t.push(n);return t}function ue(e,r,t,n,a){e!==r&&oe(r,(function(o,i){if(a||(a=new J),Ce(o))!function(e,r,t,n,a,o,i){var s=he(e,t),c=he(r,t),u=i.get(c);if(u)return void ee(e,t,u);var d=o?o(s,c,t+"",e,r,i):void 0,f=void 0===d;if(f){var b=xe(c),p=!b&&ke(c),g=!b&&!p&&Fe(c);d=c,b||p||g?xe(s)?d=s:Ae(h=s)&&we(h)?d=function(e,r){var t=-1,n=e.length;r||(r=Array(n));for(;++t-1&&e%1==0&&e0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}(H?function(e,r){return H(e,"toString",{configurable:!0,enumerable:!1,value:(t=r,function(){return t}),writable:!0});var t}:Re);function ve(e,r){return e===r||e!==e&&r!==r}var ye=le(function(){return arguments}())?le:function(e){return Ae(e)&&B.call(e,"callee")&&!W.call(e,"callee")},xe=Array.isArray;function we(e){return null!=e&&Ee(e.length)&&!Se(e)}var ke=$||function(){return!1};function Se(e){if(!Ce(e))return!1;var r=ie(e);return r==i||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ce(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}function Ae(e){return null!=e&&"object"==typeof e}var Fe=y?function(e){return function(r){return e(r)}}(y):function(e){return Ae(e)&&Ee(e.length)&&!!u[ie(e)]};function Be(e){return we(e)?Q(e,!0):ce(e)}var _e,De=(_e=function(e,r,t,n){ue(e,r,t,n)},de((function(e,r){var t=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=_e.length>3&&"function"==typeof a?(n--,a):void 0,o&&function(e,r,t){if(!Ce(t))return!1;var n=typeof r;return!!("number"==n?we(t)&&pe(r,t.length):"string"==n&&r in t)&&ve(t[r],e)}(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++t1?r-1:0),n=1;n1)&&(e=1),e}function oe(e){return e<=1?100*Number(e)+"%":e}function ie(e){return 1===e.length?"0"+e:String(e)}function le(e,r,t){e=te(e,255),r=te(r,255),t=te(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),o=0,i=0,l=(n+a)/2;if(n===a)i=0,o=0;else{var s=n-a;switch(i=l>.5?s/(2-n-a):s/(n+a),n){case e:o=(r-t)/s+(r1&&(t-=1),t<1/6?e+6*t*(r-e):t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}function ce(e,r,t){e=te(e,255),r=te(r,255),t=te(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),o=0,i=n,l=n-a,s=0===n?0:l/n;if(n===a)o=0;else{switch(n){case e:o=(r-t)/l+(r>16,g:(65280&e)>>8,b:255&e}}(r)),this.originalInput=r;var a=ge(r);this.originalInput=r,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=t.format)&&void 0!==n?n:a.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),r=e.r/255,t=e.g/255,n=e.b/255;return.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ae(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=ce(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=ce(this.r,this.g,this.b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.v);return 1===this.a?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=le(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=le(this.r,this.g,this.b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.l);return 1===this.a?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ue(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,r,t,n,a){var o=[ie(Math.round(e).toString(16)),ie(Math.round(r).toString(16)),ie(Math.round(t).toString(16)),ie(de(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),r=Math.round(this.g),t=Math.round(this.b);return 1===this.a?"rgb("+e+", "+r+", "+t+")":"rgba("+e+", "+r+", "+t+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*te(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*te(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+ue(this.r,this.g,this.b,!1),r=0,t=Object.entries(pe);r=0;return r||!n||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.l+=r/100,t.l=ne(t.l),new e(t)},e.prototype.brighten=function(r){void 0===r&&(r=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-r/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-r/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-r/100*255))),new e(t)},e.prototype.darken=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.l-=r/100,t.l=ne(t.l),new e(t)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.s-=r/100,t.s=ne(t.s),new e(t)},e.prototype.saturate=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.s+=r/100,t.s=ne(t.s),new e(t)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(r){var t=this.toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,new e(t)},e.prototype.mix=function(r,t){void 0===t&&(t=50);var n=this.toRgb(),a=new e(r).toRgb(),o=t/100;return new e({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},e.prototype.analogous=function(r,t){void 0===r&&(r=6),void 0===t&&(t=30);var n=this.toHsl(),a=360/t,o=[this];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new e(r)},e.prototype.monochromatic=function(r){void 0===r&&(r=6);for(var t=this.toHsv(),n=t.h,a=t.s,o=t.v,i=[],l=1/r;r--;)i.push(new e({h:n,s:a,v:o})),o=(o+l)%1;return i},e.prototype.splitcomplement=function(){var r=this.toHsl(),t=r.h;return[this,new e({h:(t+72)%360,s:r.s,l:r.l}),new e({h:(t+216)%360,s:r.s,l:r.l})]},e.prototype.onBackground=function(r){var t=this.toRgb(),n=new e(r).toRgb();return new e({r:n.r+(t.r-n.r)*t.a,g:n.g+(t.g-n.g)*t.a,b:n.b+(t.b-n.b)*t.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(r){for(var t=this.toHsl(),n=t.h,a=[this],o=360/r,i=1;it.length;)e.count=null,e.seed&&(e.seed+=1),t.push(ke(e));return e.count=r,t}var n=function(e,r){var t=Ee(function(e){var r=parseInt(e,10);if(!Number.isNaN(r)&&r<360&&r>0)return[r,r];if("string"===typeof e){var t=Ae.find((function(r){return r.name===e}));if(t){var n=Ce(t);if(n.hueRange)return n.hueRange}var a=new we(e);if(a.isValid){var o=a.toHsv().h;return[o,o]}}return[0,360]}(e),r);t<0&&(t=360+t);return t}(e.hue,e.seed),a=function(e,r){if("monochrome"===r.hue)return 0;if("random"===r.luminosity)return Ee([0,100],r.seed);var t=Se(e).saturationRange,n=t[0],a=t[1];switch(r.luminosity){case"bright":n=55;break;case"dark":n=a-10;break;case"light":a=55}return Ee([n,a],r.seed)}(n,e),o={h:n,s:a,v:function(e,r,t){var n=function(e,r){for(var t=Se(e).lowerBounds,n=0;n=a&&r<=i){var s=(l-o)/(i-a);return s*r+(o-s*a)}}return 0}(e,r),a=100;switch(t.luminosity){case"dark":a=n+20;break;case"light":n=(a+n)/2;break;case"random":n=0,a=100}return Ee([n,a],t.seed)}(n,a,e)};return void 0!==e.alpha&&(o.a=e.alpha),new we(o)}function Se(e){e>=334&&e<=360&&(e-=360);for(var r=0,t=Ae;r=n.hueRange[0]&&e<=n.hueRange[1])return n}throw Error("Color not found")}function Ee(e,r){if(void 0===r)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var t=e[1]||1,n=e[0]||0,a=(r=(9301*r+49297)%233280)/233280;return Math.floor(n+a*(t-n))}function Ce(e){var r=e.lowerBounds[0][0],t=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],a=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[r,t],brightnessRange:[n,a]}}var Ae=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],Fe=t(44592),Be=function(e,r,t){var n=(0,Fe.Wf)(e,"colors."+r,r);return new we(n).isValid?n:t},_e=function(e){return function(r){var t=Be(r,e);return new we(t).isDark()?"dark":"light"}},De=function(e,r){return function(t){var n=Be(t,e);return new we(n).setAlpha(r).toRgbString()}};function Re(e,r){return void 0===e&&(e="1rem"),void 0===r&&(r="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n 45deg,\n "+r+" 25%,\n transparent 25%,\n transparent 50%,\n "+r+" 50%,\n "+r+" 75%,\n transparent 75%,\n transparent\n )",backgroundSize:e+" "+e}}function Te(e){var r=ke().toHexString();return!e||(0,Fe.Qr)(e)?r:e.string&&e.colors?function(e,r){var t=0;if(0===e.length)return r[0];for(var n=0;n>8*a&255).toString(16)).substr(-2)}return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):r}function ze(e,r){return function(t){return"dark"===t.colorMode?r:e}}function Pe(e){var r=e.orientation,t=e.vertical,n=e.horizontal;return r?"vertical"===r?t:n:{}}function Me(){return(Me=Object.assign||function(e){for(var r=1;r1?r-1:0),n=1;n option, > optgroup":{bg:ze("white","gray.700")(e)}})},Kt={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Jt={paddingInlineEnd:"2rem"},Qt=h()({},Xr.sizes,{lg:{field:Jt},md:{field:Jt},sm:{field:Jt},xs:{field:Jt,icon:{insetEnd:"0.25rem"}}}),en={parts:X.keys,baseStyle:function(e){return{field:Gt(e),icon:Kt}},sizes:Qt,variants:Xr.variants,defaultProps:Xr.defaultProps},rn=function(e,r){return(0,a.F4)({from:{borderColor:e,background:e},to:{borderColor:r,background:r}})},tn={baseStyle:function(e){var r=ze("gray.100","gray.800")(e),t=ze("gray.400","gray.600")(e),n=e.startColor,a=void 0===n?r:n,o=e.endColor,i=void 0===o?t:o,l=e.speed,s=e.theme,c=Be(s,a),u=Be(s,i);return{opacity:.7,borderRadius:"2px",borderColor:c,background:u,animation:l+"s linear infinite alternate "+rn(c,u)}}},nn={baseStyle:function(e){return{borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:ze("white","gray.700")(e)}}}};var an,on,ln,sn,cn,un,dn,fn,bn,pn,gn,hn,mn,vn=function(e){return b({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},Pe({orientation:e.orientation,vertical:{h:"100%"},horizontal:{w:"100%"}}))},yn=function(e){return{overflow:"hidden",borderRadius:"sm",bg:ze("gray.200","whiteAlpha.200")(e),_disabled:{bg:ze("gray.300","whiteAlpha.300")(e)}}},xn=function(e){return b({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(e){return Pe({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(e))},wn=function(e){var r=e.colorScheme;return{width:"inherit",height:"inherit",bg:ze(r+".500",r+".200")(e)}},kn={lg:function(e){return{thumb:{w:"16px",h:"16px"},track:Pe({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(e){return{thumb:{w:"14px",h:"14px"},track:Pe({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(e){return{thumb:{w:"10px",h:"10px"},track:Pe({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},Sn={parts:G.keys,sizes:kn,baseStyle:function(e){return{container:vn(e),track:yn(e),thumb:xn(e),filledTrack:wn(e)}},defaultProps:{size:"md",colorScheme:"blue"}},En=Ve("spinner-size"),Cn={baseStyle:{width:[En.reference],height:[En.reference]},sizes:{xs:(an={},an[En.variable]="0.75rem",an),sm:(on={},on[En.variable]="1rem",on),md:(ln={},ln[En.variable]="1.5rem",ln),lg:(sn={},sn[En.variable]="2rem",sn),xl:(cn={},cn[En.variable]="3rem",cn)},defaultProps:{size:"md"}},An={container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},Fn={parts:K.keys,baseStyle:An,sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}},Bn=Ve("switch-track-width"),_n=Ve("switch-track-height"),Dn=Ve("switch-track-diff"),Rn=$e.subtract(Bn,_n),Tn=Ve("switch-thumb-x"),zn=function(e){var r=e.colorScheme;return{borderRadius:"full",p:"2px",width:[Bn.reference],height:[_n.reference],transitionProperty:"common",transitionDuration:"fast",bg:ze("gray.300","whiteAlpha.400")(e),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:ze(r+".500",r+".200")(e)}}},Pn={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[_n.reference],height:[_n.reference],_checked:{transform:"translateX("+Tn.reference+")"}},Mn={sm:{container:(un={},un[Bn.variable]="1.375rem",un[_n.variable]="0.75rem",un)},md:{container:(dn={},dn[Bn.variable]="1.875rem",dn[_n.variable]="1rem",dn)},lg:{container:(fn={},fn[Bn.variable]="2.875rem",fn[_n.variable]="1.5rem",fn)}},jn={parts:J.keys,baseStyle:function(e){var r,t;return{container:(t={},t[Dn.variable]=Rn,t[Tn.variable]=Dn.reference,t._rtl=(r={},r[Tn.variable]=$e(Dn).negate().toString(),r),t),track:zn(e),thumb:Pn}},sizes:Mn,defaultProps:{size:"md",colorScheme:"blue"}},On={"&[data-is-numeric=true]":{textAlign:"end"}},In={simple:function(e){var r=e.colorScheme;return{th:b({color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),td:b({borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),caption:{color:ze("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:function(e){var r=e.colorScheme;return{th:b({color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),td:b({borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),caption:{color:ze("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ze(r+".100",r+".700")(e)},td:{background:ze(r+".100",r+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},Wn={parts:Q.keys,baseStyle:{table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}},variants:In,sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}},Nn=function(e){return{display:"vertical"===e.orientation?"flex":"block"}},Ln=function(e){return{flex:e.isFitted?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}},Hn=function(e){var r=e.align,t=void 0===r?"start":r,n=e.orientation;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},$n={p:4},qn={line:function(e){var r,t,n=e.colorScheme,a=e.orientation,o="vertical"===a?"borderStart":"borderBottom",i="vertical"===a?"marginStart":"marginBottom";return{tablist:(r={},r[o]="2px solid",r.borderColor="inherit",r),tab:(t={},t[o]="2px solid",t.borderColor="transparent",t[i]="-2px",t._selected={color:ze(n+".600",n+".300")(e),borderColor:"currentColor"},t._active={bg:ze("gray.200","whiteAlpha.300")(e)},t._disabled={opacity:.4,cursor:"not-allowed"},t)}},enclosed:function(e){var r=e.colorScheme;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:ze(r+".600",r+".300")(e),borderColor:"inherit",borderBottomColor:ze("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(e){var r=e.colorScheme;return{tab:{border:"1px solid",borderColor:"inherit",bg:ze("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:ze("#fff","gray.800")(e),color:ze(r+".600",r+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(e){var r=e.colorScheme,t=e.theme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Be(t,r+".700"),bg:Be(t,r+".100")}}}},"solid-rounded":function(e){var r=e.colorScheme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:ze("gray.600","inherit")(e),_selected:{color:ze("#fff","gray.800")(e),bg:ze(r+".600",r+".300")(e)}}}},unstyled:{}},Zn={parts:ee.keys,baseStyle:function(e){return{root:Nn(e),tab:Ln(e),tablist:Hn(e),tabpanel:$n}},sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:qn,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Un={container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},Vn={subtle:function(e){return{container:ur.variants.subtle(e)}},solid:function(e){return{container:ur.variants.solid(e)}},outline:function(e){return{container:ur.variants.outline(e)}}},Yn={parts:re.keys,variants:Vn,baseStyle:Un,sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}},Xn=b({},Xr.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),Gn={outline:function(e){var r;return null!=(r=Xr.variants.outline(e).field)?r:{}},flushed:function(e){var r;return null!=(r=Xr.variants.flushed(e).field)?r:{}},filled:function(e){var r;return null!=(r=Xr.variants.filled(e).field)?r:{}},unstyled:null!=(bn=Xr.variants.unstyled.field)?bn:{}},Kn={baseStyle:Xn,sizes:{xs:null!=(pn=Xr.sizes.xs.field)?pn:{},sm:null!=(gn=Xr.sizes.sm.field)?gn:{},md:null!=(hn=Xr.sizes.md.field)?hn:{},lg:null!=(mn=Xr.sizes.lg.field)?mn:{}},variants:Gn,defaultProps:{size:"md",variant:"outline"}},Jn=Ve("tooltip-bg"),Qn=Ve("popper-arrow-bg"),ea={baseStyle:function(e){var r,t=ze("gray.700","gray.300")(e);return(r={})[Jn.variable]="colors."+t,r.px="8px",r.py="2px",r.bg=[Jn.reference],r[Qn.variable]=[Jn.reference],r.color=ze("whiteAlpha.900","gray.900")(e),r.borderRadius="sm",r.fontWeight="medium",r.fontSize="sm",r.boxShadow="md",r.maxW="320px",r.zIndex="tooltip",r}},ra=Object.freeze({__proto__:null,Accordion:Ke,Alert:er,Avatar:cr,Badge:ur,Breadcrumb:fr,Button:gr,Checkbox:yr,CloseButton:wr,Code:kr,Container:Sr,Divider:Er,Drawer:Pr,Editable:jr,Form:Wr,FormError:Hr,FormLabel:$r,Heading:qr,Input:Xr,Kbd:Gr,Link:Kr,List:Qr,Menu:it,Modal:yt,NumberInput:Tt,PinInput:zt,Popover:$t,Progress:Vt,Radio:Xt,Select:en,Skeleton:tn,SkipLink:nn,Slider:Sn,Spinner:Cn,Stat:Fn,Switch:jn,Table:Wn,Tabs:Zn,Tag:Yn,Textarea:Kn,Tooltip:ea}),ta=b({breakpoints:function(e){return(0,Fe.ZK)({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),Me({base:"0em"},e)}({sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}),zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}}},Xe,{sizes:p,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","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"},space:f,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}}),na=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function aa(e){return!!(0,Fe.Kn)(e)&&na.every((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))}var oa=b({direction:"ltr"},ta,{components:ra,styles:{global:function(e){return{body:{fontFamily:"body",color:ze("gray.800","whiteAlpha.900")(e),bg:ze("white","gray.800")(e),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:ze("gray.400","whiteAlpha.400")(e)},"*, *::before, &::after":{borderColor:ze("gray.200","whiteAlpha.300")(e),wordWrap:"break-word"}}}},config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}}),ia=function(e){var r=e.children,t=e.colorModeManager,n=e.portalZIndex,a=e.resetCSS,f=void 0===a||a,b=e.theme,p=void 0===b?{}:b,g=e.environment,h=e.cssVarsRoot,m=o.createElement(u.u,{environment:g},r);return o.createElement(d.vc,null,o.createElement(s.f6,{theme:p,cssVarsRoot:h},o.createElement(c.SG,{colorModeManager:t,options:p.config},f&&o.createElement(i,null),o.createElement(s.ZL,null),n?o.createElement(l.hE,{zIndex:n},m):m)))};function la(){for(var e=arguments.length,r=new Array(e),t=0;t1?n=n.slice(0,n.length-1):a=oa,Fe.zG.apply(void 0,n.map((function(e){return function(r){return(0,Fe.mf)(e)?e(r):sa(r,e)}})))(a)}function sa(){for(var e=arguments.length,r=new Array(e),t=0;t>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===t?S(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===t?S(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=f.exec(e))?new A(r[1],r[2],r[3],1):(r=b.exec(e))?new A(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=p.exec(e))?S(r[1],r[2],r[3],r[4]):(r=g.exec(e))?S(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=h.exec(e))?D(r[1],r[2]/100,r[3]/100,1):(r=m.exec(e))?D(r[1],r[2]/100,r[3]/100,r[4]):v.hasOwnProperty(e)?k(v[e]):"transparent"===e?new A(NaN,NaN,NaN,0):null}function k(e){return new A(e>>16&255,e>>8&255,255&e,1)}function S(e,r,t,n){return n<=0&&(e=r=t=NaN),new A(e,r,t,n)}function E(e){return e instanceof o||(e=w(e)),e?new A((e=e.rgb()).r,e.g,e.b,e.opacity):new A}function C(e,r,t,n){return 1===arguments.length?E(e):new A(e,r,t,null==n?1:n)}function A(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}function F(){return"#"+_(this.r)+_(this.g)+_(this.b)}function B(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function _(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function D(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new T(e,r,t,n)}function R(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=w(e)),!e)return new T;if(e instanceof T)return e;var r=(e=e.rgb()).r/255,t=e.g/255,n=e.b/255,a=Math.min(r,t,n),i=Math.max(r,t,n),l=NaN,s=i-a,c=(i+a)/2;return s?(l=r===i?(t-n)/s+6*(t0&&c<1?0:l,new T(l,s,c,e.opacity)}function T(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}function z(e,r,t){return 255*(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)}n(o,w,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return R(this).formatHsl()},formatRgb:x,toString:x}),n(A,C,a(o,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:F,formatHex:F,formatRgb:B,toString:B})),n(T,(function(e,r,t,n){return 1===arguments.length?R(e):new T(e,r,t,null==n?1:n)}),a(o,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,a=2*t-n;return new A(z(e>=240?e-240:e+120,a,n),z(e,a,n),z(e<120?e+240:e-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},57631:function(e,r){"use strict";r.Z=function(e){return function(){return e}}},13311:function(e,r,t){"use strict";function n(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}t.d(r,{Z:function(){return n}})},20439:function(e,r,t){"use strict";t.d(r,{ZP:function(){return c}});var n=t(94798);function a(e,r,t,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*r+(4-6*o+3*i)*t+(1+3*e+3*o-3*i)*n+i*a)/6}var o=t(57631);function i(e,r){return function(t){return e+t*r}}function l(e){return 1===(e=+e)?s:function(r,t){return t-r?function(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}(r,t,e):(0,o.Z)(isNaN(r)?t:r)}}function s(e,r){var t=r-e;return t?i(e,t):(0,o.Z)(isNaN(e)?r:e)}var c=function e(r){var t=l(r);function a(e,r){var a=t((e=(0,n.B8)(e)).r,(r=(0,n.B8)(r)).r),o=t(e.g,r.g),i=t(e.b,r.b),l=s(e.opacity,r.opacity);return function(r){return e.r=a(r),e.g=o(r),e.b=i(r),e.opacity=l(r),e+""}}return a.gamma=e,a}(1);function u(e){return function(r){var t,a,o=r.length,i=new Array(o),l=new Array(o),s=new Array(o);for(t=0;t=1?(t=1,r-1):Math.floor(t*r),o=e[n],i=e[n+1],l=n>0?e[n-1]:2*o-i,s=ns&&(l=r.slice(s,l),u[c]?u[c]+=l:u[++c]=l),(t=t[0])===(i=i[0])?u[c]?u[c]+=i:u[++c]=i:(u[++c]=null,d.push({i:c,x:(0,n.Z)(t,i)})),s=o.lastIndex;return s1?r-1:0),a=1;a0&&(0,o.T_)(e[0],{preventScroll:l,nextTick:!0})}}),[d,l,u,i]);v((function(){f()}),[f]),(0,a.b)("transitionend",f,u)}function E(e,r){return void 0===r&&(r=[]),n.useEffect((function(){return function(){return e()}}),r)}function C(){var e=n.useRef(!1),r=n.useState(0),t=r[0],a=r[1];return E((function(){e.current=!0})),n.useCallback((function(){e.current||a(t+1)}),[t])}function A(e){var r=n.useRef(null);return r.current=e,r}function F(e,r){if(null!=e)if("function"!==typeof e)try{e.current=r}catch(t){throw new Error("Cannot assign value '"+r+"' to ref '"+e+"'")}else e(r)}function B(){for(var e=arguments.length,r=new Array(e),t=0;t0)return!1;if(n&&!(0,o.lZ)(n).body.contains(n))return!1;return!(null!=(t=r.current)&&t.contains(n))}function R(e,r){var t=r.onPan,a=r.onPanStart,i=r.onPanEnd,l=r.onPanSessionStart,s=r.onPanSessionEnd,c=r.threshold,u=Boolean(t||a||i||l||s),d=(0,n.useRef)(null),f={onSessionStart:l,onSessionEnd:s,onStart:a,onMove:t,onEnd:function(e,r){d.current=null,null==i||i(e,r)}};(0,n.useEffect)((function(){var e;null==(e=d.current)||e.updateHandlers(f)})),x((function(){return e.current}),"pointerdown",u?function(e){d.current=new o.Hc(e,f,c)}:o.ZT),E((function(){var e;null==(e=d.current)||e.end(),d.current=null}))}function T(e){void 0===e&&(e={});var r=e,t=r.timeout,a=void 0===t?300:t,o=r.preventDefault,i=void 0===o?function(){return!0}:o,l=n.useState([]),s=l[0],c=l[1],u=n.useRef(),d=function(){u.current&&(clearTimeout(u.current),u.current=null)};return n.useEffect((function(){return d}),[]),function(e){return function(r){if("Backspace"===r.key){var t=[].concat(s);return t.pop(),void c(t)}if(function(e){var r=e.key;return 1===r.length||r.length>1&&/[^a-zA-Z0-9]/.test(r)}(r)){var n=s.concat(r.key);i(r)&&(r.preventDefault(),r.stopPropagation()),c(n),e(n.join("")),d(),u.current=setTimeout((function(){c([]),u.current=null}),a)}}}}},78698:function(e,r,t){"use strict";t.d(r,{a:function(){return o},b:function(){return l},c:function(){return s},u:function(){return i}});var n=t(44592),a=t(67294),o=n.jU?a.useLayoutEffect:a.useEffect;function i(e,r){void 0===r&&(r=[]);var t=a.useRef(e);return o((function(){t.current=e})),a.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n=0||(a[t]=e[t]);return a}(e,p);return r?o.createElement(w,b({containerRef:r},t)):o.createElement(x,t)}k.defaultProps={appendToParentPortal:!0},k.className=v,k.selector=".chakra-portal",n.Ts&&(k.displayName="Portal")},85393:function(e,r,t){"use strict";t.d(r,{u:function(){return d},O:function(){return u}});var n=t(44592),a=t(67294),o={body:{classList:{add:function(){},remove:function(){}}},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}}},i=function(){},l={window:{document:o,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:i,removeEventListener:i,getComputedStyle:function(){return{getPropertyValue:function(){return""}}},matchMedia:function(){return{matches:!1,addListener:i,removeListener:i}},requestAnimationFrame:function(e){return"undefined"===typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!==typeof setTimeout&&clearTimeout(e)},setTimeout:function(){return 0},clearTimeout:i,setInterval:function(){return 0},clearInterval:i},document:o},s=n.jU?{window:window,document:document}:l,c=(0,a.createContext)(s);function u(){return(0,a.useContext)(c)}function d(e){var r=e.children,t=e.environment,n=(0,a.useState)(null),o=n[0],i=n[1],l=(0,a.useMemo)((function(){var e,r=null==o?void 0:o.ownerDocument,n=null==o?void 0:o.ownerDocument.defaultView;return null!=(e=null!=t?t:r?{document:r,window:n}:void 0)?e:s}),[o,t]),u=!o&&!t;return a.createElement(c.Provider,{value:l},r,u&&a.createElement("span",{ref:function(e){e&&i(e)}}))}n.Ts&&(c.displayName="EnvironmentContext"),n.Ts&&(d.displayName="EnvironmentProvider")},52829:function(e,r,t){"use strict";t.d(r,{kr:function(){return s},WR:function(){return c},lq:function(){return l}});t(38554),t(9839);function n(e){return"function"===typeof e}!function(e){var r=new WeakMap}((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;n :not(style) ~ :not(style)",v=((u={})[m]={marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"},u),y=((d={})[m]={marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"},d);function x(e,r){return(x=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function w(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&x(e,r)}function k(){k=function(e,r){return new t(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function t(e,n,a){var o=new RegExp(e,n);return r.set(o,a||r.get(e)),x(o,t.prototype)}function n(e,t){var n=r.get(t);return Object.keys(n).reduce((function(r,t){return r[t]=e[n[t]],r}),Object.create(null))}return w(t,RegExp),t.prototype.exec=function(r){var t=e.exec.call(this,r);return t&&(t.groups=n(t,this)),t},t.prototype[Symbol.replace]=function(t,a){if("string"===typeof a){var o=r.get(this);return e[Symbol.replace].call(this,t,a.replace(/\$<([^>]+)>/g,(function(e,r){return"$"+o[r]})))}if("function"===typeof a){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!==typeof e[e.length-1]&&(e=[].slice.call(e)).push(n(e,i)),a.apply(this,e)}))}return e[Symbol.replace].call(this,t,a)},k.apply(this,arguments)}var S={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},E=new Set(Object.values(S)),C=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),A=function(e){return e.trim()};var F=function(e){return(0,n.HD)(e)&&e.includes("(")&&e.includes(")")},B=function(e){return function(r){return e+"("+r+")"}},_={filter:function(e){return"auto"!==e?e:p},backdropFilter:function(e){return"auto"!==e?e:g},ring:function(e){return function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(_.px(e))},bgClip:function(e){return"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform:function(e){return"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))"].concat(b).join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)"].concat(b).join(" "):e},px:function(e){return null==e?e:function(e){var r=parseFloat(e.toString()),t=e.toString().replace(String(r),"");return{unitless:!t,value:r,unit:t}}(e).unitless||(0,n.hj)(e)?e+"px":e},fraction:function(e){return!(0,n.hj)(e)||e>1?e:100*e+"%"},float:function(e,r){return"rtl"===r.direction?{left:"right",right:"left"}[e]:e},degree:function(e){if((0,n.FS)(e)||null==e)return e;var r=(0,n.HD)(e)&&!e.endsWith("deg");return(0,n.hj)(e)||r?e+"deg":e},gradient:function(e,r){return function(e,r){var t,n;if(null==e||C.has(e))return e;var a=null!=(t=null==(n=k(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}).exec(e))?void 0:n.groups)?t:{},o=a.type,i=a.values;if(!o||!i)return e;var l=o.includes("-gradient")?o:o+"-gradient",s=i.split(",").map(A).filter(Boolean),c=s[0],u=s.slice(1);if(0===(null==u?void 0:u.length))return e;var d=c in S?S[c]:c;return u.unshift(d),l+"("+u.map((function(e){if(E.has(e))return e;var t=e.indexOf(" "),n=-1!==t?[e.substr(0,t),e.substr(t+1)]:[e],a=n[0],o=n[1],i=F(o)?o:o&&o.split(" "),l="colors."+a,s=l in r.__cssMap?r.__cssMap[l].varRef:a;return i?[s].concat(Array.isArray(i)?i:[i]).join(" "):s})).join(", ")+")"}(e,null!=r?r:{})},blur:B("blur"),opacity:B("opacity"),brightness:B("brightness"),contrast:B("contrast"),dropShadow:B("drop-shadow"),grayscale:B("grayscale"),hueRotate:B("hue-rotate"),invert:B("invert"),saturate:B("saturate"),sepia:B("sepia"),bgImage:function(e){return null==e||F(e)||C.has(e)?e:"url("+e+")"},outline:function(e){var r="0"===String(e)||"none"===String(e);return null!==e&&r?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection:function(e){var r,t=null!=(r=h[e])?r:{},n=t.space,a=t.divide,o={flexDirection:e};return n&&(o[n]=1),a&&(o[a]=1),o}},D={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),radii:c("radii",_.px),space:c("space",_.px),spaceT:c("space",_.px),degreeT:function(e){return{property:e,transform:_.degree}},prop:function(e,r,t){return i({property:e,scale:r},r&&{transform:s({scale:r,transform:t})})},propT:function(e,r){return{property:e,transform:r}},sizes:c("sizes",_.px),sizesT:c("sizes",_.fraction),shadows:c("shadows"),logical:function(e){var r=e.property,t=e.scale,n=e.transform;return{scale:t,property:f(r),transform:t?s({scale:t,compose:n}):n}},blur:c("blur",_.blur)},R={background:D.colors("background"),backgroundColor:D.colors("backgroundColor"),backgroundImage:D.propT("backgroundImage",_.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_.bgClip},bgSize:D.prop("backgroundSize"),bgPosition:D.prop("backgroundPosition"),bg:D.colors("background"),bgColor:D.colors("backgroundColor"),bgPos:D.prop("backgroundPosition"),bgRepeat:D.prop("backgroundRepeat"),bgAttachment:D.prop("backgroundAttachment"),bgGradient:D.propT("backgroundImage",_.gradient),bgClip:{transform:_.bgClip}};Object.assign(R,{bgImage:R.backgroundImage,bgImg:R.backgroundImage});var T={border:D.borders("border"),borderWidth:D.borderWidths("borderWidth"),borderStyle:D.borderStyles("borderStyle"),borderColor:D.colors("borderColor"),borderRadius:D.radii("borderRadius"),borderTop:D.borders("borderTop"),borderBlockStart:D.borders("borderBlockStart"),borderTopLeftRadius:D.radii("borderTopLeftRadius"),borderStartStartRadius:D.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:D.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:D.radii("borderTopRightRadius"),borderStartEndRadius:D.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:D.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:D.borders("borderRight"),borderInlineEnd:D.borders("borderInlineEnd"),borderBottom:D.borders("borderBottom"),borderBlockEnd:D.borders("borderBlockEnd"),borderBottomLeftRadius:D.radii("borderBottomLeftRadius"),borderBottomRightRadius:D.radii("borderBottomRightRadius"),borderLeft:D.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:D.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:D.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:D.borders(["borderLeft","borderRight"]),borderInline:D.borders("borderInline"),borderY:D.borders(["borderTop","borderBottom"]),borderBlock:D.borders("borderBlock"),borderTopWidth:D.borderWidths("borderTopWidth"),borderBlockStartWidth:D.borderWidths("borderBlockStartWidth"),borderTopColor:D.colors("borderTopColor"),borderBlockStartColor:D.colors("borderBlockStartColor"),borderTopStyle:D.borderStyles("borderTopStyle"),borderBlockStartStyle:D.borderStyles("borderBlockStartStyle"),borderBottomWidth:D.borderWidths("borderBottomWidth"),borderBlockEndWidth:D.borderWidths("borderBlockEndWidth"),borderBottomColor:D.colors("borderBottomColor"),borderBlockEndColor:D.colors("borderBlockEndColor"),borderBottomStyle:D.borderStyles("borderBottomStyle"),borderBlockEndStyle:D.borderStyles("borderBlockEndStyle"),borderLeftWidth:D.borderWidths("borderLeftWidth"),borderInlineStartWidth:D.borderWidths("borderInlineStartWidth"),borderLeftColor:D.colors("borderLeftColor"),borderInlineStartColor:D.colors("borderInlineStartColor"),borderLeftStyle:D.borderStyles("borderLeftStyle"),borderInlineStartStyle:D.borderStyles("borderInlineStartStyle"),borderRightWidth:D.borderWidths("borderRightWidth"),borderInlineEndWidth:D.borderWidths("borderInlineEndWidth"),borderRightColor:D.colors("borderRightColor"),borderInlineEndColor:D.colors("borderInlineEndColor"),borderRightStyle:D.borderStyles("borderRightStyle"),borderInlineEndStyle:D.borderStyles("borderInlineEndStyle"),borderTopRadius:D.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:D.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:D.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:D.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(T,{rounded:T.borderRadius,roundedTop:T.borderTopRadius,roundedTopLeft:T.borderTopLeftRadius,roundedTopRight:T.borderTopRightRadius,roundedTopStart:T.borderStartStartRadius,roundedTopEnd:T.borderStartEndRadius,roundedBottom:T.borderBottomRadius,roundedBottomLeft:T.borderBottomLeftRadius,roundedBottomRight:T.borderBottomRightRadius,roundedBottomStart:T.borderEndStartRadius,roundedBottomEnd:T.borderEndEndRadius,roundedLeft:T.borderLeftRadius,roundedRight:T.borderRightRadius,roundedStart:T.borderInlineStartRadius,roundedEnd:T.borderInlineEndRadius,borderStart:T.borderInlineStart,borderEnd:T.borderInlineEnd,borderTopStartRadius:T.borderStartStartRadius,borderTopEndRadius:T.borderStartEndRadius,borderBottomStartRadius:T.borderEndStartRadius,borderBottomEndRadius:T.borderEndEndRadius,borderStartRadius:T.borderInlineStartRadius,borderEndRadius:T.borderInlineEndRadius,borderStartWidth:T.borderInlineStartWidth,borderEndWidth:T.borderInlineEndWidth,borderStartColor:T.borderInlineStartColor,borderEndColor:T.borderInlineEndColor,borderStartStyle:T.borderInlineStartStyle,borderEndStyle:T.borderInlineEndStyle});var z={color:D.colors("color"),textColor:D.colors("color"),fill:D.colors("fill"),stroke:D.colors("stroke")},P={boxShadow:D.shadows("boxShadow"),mixBlendMode:!0,blendMode:D.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:D.prop("backgroundBlendMode"),opacity:!0};Object.assign(P,{shadow:P.boxShadow});var M={filter:{transform:_.filter},blur:D.blur("--chakra-blur"),brightness:D.propT("--chakra-brightness",_.brightness),contrast:D.propT("--chakra-contrast",_.contrast),hueRotate:D.degreeT("--chakra-hue-rotate"),invert:D.propT("--chakra-invert",_.invert),saturate:D.propT("--chakra-saturate",_.saturate),dropShadow:D.propT("--chakra-drop-shadow",_.dropShadow),backdropFilter:{transform:_.backdropFilter},backdropBlur:D.blur("--chakra-backdrop-blur"),backdropBrightness:D.propT("--chakra-backdrop-brightness",_.brightness),backdropContrast:D.propT("--chakra-backdrop-contrast",_.contrast),backdropHueRotate:D.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:D.propT("--chakra-backdrop-invert",_.invert),backdropSaturate:D.propT("--chakra-backdrop-saturate",_.saturate)},j={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_.flexDirection},experimental_spaceX:{static:v,transform:s({scale:"space",transform:function(e){return null!==e?{"--chakra-space-x":e}:null}})},experimental_spaceY:{static:y,transform:s({scale:"space",transform:function(e){return null!=e?{"--chakra-space-y":e}:null}})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:D.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:D.space("gap"),rowGap:D.space("rowGap"),columnGap:D.space("columnGap")};Object.assign(j,{flexDir:j.flexDirection});var O={gridGap:D.space("gridGap"),gridColumnGap:D.space("gridColumnGap"),gridRowGap:D.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},I={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_.outline},outlineOffset:!0,outlineColor:D.colors("outlineColor")},W={width:D.sizesT("width"),inlineSize:D.sizesT("inlineSize"),height:D.sizes("height"),blockSize:D.sizes("blockSize"),boxSize:D.sizes(["width","height"]),minWidth:D.sizes("minWidth"),minInlineSize:D.sizes("minInlineSize"),minHeight:D.sizes("minHeight"),minBlockSize:D.sizes("minBlockSize"),maxWidth:D.sizes("maxWidth"),maxInlineSize:D.sizes("maxInlineSize"),maxHeight:D.sizes("maxHeight"),maxBlockSize:D.sizes("maxBlockSize"),d:D.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:D.propT("float",_.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(W,{w:W.width,h:W.height,minW:W.minWidth,maxW:W.maxWidth,minH:W.minHeight,maxH:W.maxHeight,overscroll:W.overscrollBehavior,overscrollX:W.overscrollBehaviorX,overscrollY:W.overscrollBehaviorY});var N={listStyleType:!0,listStylePosition:!0,listStylePos:D.prop("listStylePosition"),listStyleImage:!0,listStyleImg:D.prop("listStyleImage")},L={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},H={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},$=function(e,r,t){var a={},o=(0,n.Wf)(e,r,{});for(var i in o){i in t&&null!=t[i]||(a[i]=o[i])}return a},q={srOnly:{transform:function(e){return!0===e?L:"focusable"===e?H:{}}},layerStyle:{processResult:!0,transform:function(e,r,t){return $(r,"layerStyles."+e,t)}},textStyle:{processResult:!0,transform:function(e,r,t){return $(r,"textStyles."+e,t)}},apply:{processResult:!0,transform:function(e,r,t){return $(r,e,t)}}},Z={position:!0,pos:D.prop("position"),zIndex:D.prop("zIndex","zIndices"),inset:D.spaceT("inset"),insetX:D.spaceT(["left","right"]),insetInline:D.spaceT("insetInline"),insetY:D.spaceT(["top","bottom"]),insetBlock:D.spaceT("insetBlock"),top:D.spaceT("top"),insetBlockStart:D.spaceT("insetBlockStart"),bottom:D.spaceT("bottom"),insetBlockEnd:D.spaceT("insetBlockEnd"),left:D.spaceT("left"),insetInlineStart:D.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:D.spaceT("right"),insetInlineEnd:D.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Z,{insetStart:Z.insetInlineStart,insetEnd:Z.insetInlineEnd});var U={ring:{transform:_.ring},ringColor:D.colors("--chakra-ring-color"),ringOffset:D.prop("--chakra-ring-offset-width"),ringOffsetColor:D.colors("--chakra-ring-offset-color"),ringInset:D.prop("--chakra-ring-inset")},V={margin:D.spaceT("margin"),marginTop:D.spaceT("marginTop"),marginBlockStart:D.spaceT("marginBlockStart"),marginRight:D.spaceT("marginRight"),marginInlineEnd:D.spaceT("marginInlineEnd"),marginBottom:D.spaceT("marginBottom"),marginBlockEnd:D.spaceT("marginBlockEnd"),marginLeft:D.spaceT("marginLeft"),marginInlineStart:D.spaceT("marginInlineStart"),marginX:D.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:D.spaceT("marginInline"),marginY:D.spaceT(["marginTop","marginBottom"]),marginBlock:D.spaceT("marginBlock"),padding:D.space("padding"),paddingTop:D.space("paddingTop"),paddingBlockStart:D.space("paddingBlockStart"),paddingRight:D.space("paddingRight"),paddingBottom:D.space("paddingBottom"),paddingBlockEnd:D.space("paddingBlockEnd"),paddingLeft:D.space("paddingLeft"),paddingInlineStart:D.space("paddingInlineStart"),paddingInlineEnd:D.space("paddingInlineEnd"),paddingX:D.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:D.space("paddingInline"),paddingY:D.space(["paddingTop","paddingBottom"]),paddingBlock:D.space("paddingBlock")};Object.assign(V,{m:V.margin,mt:V.marginTop,mr:V.marginRight,me:V.marginInlineEnd,marginEnd:V.marginInlineEnd,mb:V.marginBottom,ml:V.marginLeft,ms:V.marginInlineStart,marginStart:V.marginInlineStart,mx:V.marginX,my:V.marginY,p:V.padding,pt:V.paddingTop,py:V.paddingY,px:V.paddingX,pb:V.paddingBottom,pl:V.paddingLeft,ps:V.paddingInlineStart,paddingStart:V.paddingInlineStart,pr:V.paddingRight,pe:V.paddingInlineEnd,paddingEnd:V.paddingInlineEnd});var Y={textDecorationColor:D.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:D.shadows("textShadow")},X={clipPath:!0,transform:D.propT("transform",_.transform),transformOrigin:!0,translateX:D.spaceT("--chakra-translate-x"),translateY:D.spaceT("--chakra-translate-y"),skewX:D.degreeT("--chakra-skew-x"),skewY:D.degreeT("--chakra-skew-y"),scaleX:D.prop("--chakra-scale-x"),scaleY:D.prop("--chakra-scale-y"),scale:D.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:D.degreeT("--chakra-rotate")},G={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:D.prop("transitionDuration","transition.duration"),transitionProperty:D.prop("transitionProperty","transition.property"),transitionTimingFunction:D.prop("transitionTimingFunction","transition.easing")},K={fontFamily:D.prop("fontFamily","fonts"),fontSize:D.prop("fontSize","fontSizes",_.px),fontWeight:D.prop("fontWeight","fontWeights"),lineHeight:D.prop("lineHeight","lineHeights"),letterSpacing:D.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"},isTruncated:{transform:function(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},J={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:D.spaceT("scrollMargin"),scrollMarginTop:D.spaceT("scrollMarginTop"),scrollMarginBottom:D.spaceT("scrollMarginBottom"),scrollMarginLeft:D.spaceT("scrollMarginLeft"),scrollMarginRight:D.spaceT("scrollMarginRight"),scrollMarginX:D.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:D.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:D.spaceT("scrollPadding"),scrollPaddingTop:D.spaceT("scrollPaddingTop"),scrollPaddingBottom:D.spaceT("scrollPaddingBottom"),scrollPaddingLeft:D.spaceT("scrollPaddingLeft"),scrollPaddingRight:D.spaceT("scrollPaddingRight"),scrollPaddingX:D.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:D.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Q(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var re=function(e,r){return e+":hover "+r+", "+e+"[data-hover] "+r},te=function(e,r){return e+":focus "+r+", "+e+"[data-focus] "+r},ne=function(e,r){return e+":focus-visible "+r},ae=function(e,r){return e+":focus-within "+r},oe=function(e,r){return e+":active "+r+", "+e+"[data-active] "+r},ie=function(e,r){return e+":disabled "+r+", "+e+"[data-disabled] "+r},le=function(e,r){return e+":invalid "+r+", "+e+"[data-invalid] "+r},se=function(e,r){return e+":checked "+r+", "+e+"[data-checked] "+r},ce=function(e,r){return e+":placeholder-shown "+r},ue=function(e){return fe((function(r){return e(r,"&")}),"[role=group]","[data-group]",".group")},de=function(e){return fe((function(r){return e(r,"~ &")}),"[data-peer]",".peer")},fe=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n=0||(a[t]=e[t]);return a}(e,Ie)}function He(e){var r,t=Le(e),a=Oe(function(e){var r,t,a=e.tokens,o=e.semanticTokens,i=Object.entries(null!=(r=(0,n.xH)(a))?r:{}).map((function(e){return[e[0],{isSemantic:!1,value:e[1]}]})),l=Object.entries(null!=(t=(0,n.xH)(o,1))?t:{}).map((function(e){return[e[0],{isSemantic:!0,value:e[1]}]}));return(0,n.sq)([].concat(i,l))}({tokens:Ne(t),semanticTokens:function(e){return e.semanticTokens}(t)}),{cssVarPrefix:null==(r=t.config)?void 0:r.cssVarPrefix}),o=a.cssMap,l=a.cssVars;return Object.assign(t,{__cssVars:i({},{"--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"},l),__cssMap:o,__breakpoints:(0,n.yn)(t.breakpoints)}),t}},105:function(e,r,t){"use strict";t.d(r,{ZL:function(){return P},Fo:function(){return T},f6:function(){return B},m$:function(){return $},Gp:function(){return q},Lr:function(){return M},jC:function(){return V},mq:function(){return U},yK:function(){return z},Fg:function(){return D}});var n=t(20949),a=t(94244),o=t(70917),i=t(31421),l=t(44592),s=t(38554),c=t.n(s),u=t(67294),d=t(69590),f=t.n(d),b=t(52829),p=t(87462),g=t(67866),h=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,m=(0,g.Z)((function(e){return h.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),v=t(70444),y=t(94199),x=m,w=function(e){return"theme"!==e},k=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?x:w},S=function(e,r,t){var n;if(r){var a=r.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(r){return e.__emotion_forwardProp(r)&&a(r)}:a}return"function"!==typeof n&&t&&(n=e.__emotion_forwardProp),n},E=function(){return null},C=function e(r,t){var n,a,o=r.__emotion_real===r,l=o&&r.__emotion_base||r;void 0!==t&&(n=t.label,a=t.target);var s=S(r,t,o),c=s||k(l),d=!c("as");return function(){var f=arguments,b=o&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==n&&b.push("label:"+n+";"),null==f[0]||void 0===f[0].raw)b.push.apply(b,f);else{0,b.push(f[0][0]);for(var g=f.length,h=1;h` or ``");return e}var R=(0,b.kr)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),T=R[0],z=R[1],P=function(){var e=(0,n.If)().colorMode;return u.createElement(o.xB,{styles:function(r){var t=(0,l.Wf)(r,"styles.global"),n=(0,l.Pu)(t,{theme:r,colorMode:e});if(n){var o=(0,a.iv)(n)(r);return o}}})};function M(e){return(0,l.CE)(e,["styleConfig","size","variant","colorScheme"])}function j(){return F({},(0,n.If)(),{theme:D()})}function O(e,r){if(null==e)return{};var t,n,a={},o=Object.keys(e);for(n=0;n=0||(a[t]=e[t]);return a}var I=new Set([].concat(a.cC,["textStyle","layerStyle","apply","isTruncated","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"])),W=new Set(["htmlWidth","htmlHeight","htmlSize"]),N=function(e){return W.has(e)||!I.has(e)},L=["theme","css","__css","sx"],H=["baseStyle"];var $=function(e,r){var t=null!=r?r:{},n=t.baseStyle,o=O(t,H);o.shouldForwardProp||(o.shouldForwardProp=N);var i=function(e){var r=e.baseStyle;return function(e){e.theme;var t=e.css,n=e.__css,o=e.sx,i=O(e,L),s=(0,l.lw)(i,(function(e,r){return(0,a.ZR)(r)})),c=(0,l.Pu)(r,e),u=Object.assign({},n,c,(0,l.YU)(s),o),d=(0,a.iv)(u)(e.theme);return t?[d,t]:d}}({baseStyle:n});return A(e,o)(i)};function q(e){return u.forwardRef(e)}["a","b","article","aside","blockquote","button","caption","cite","circle","code","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","img","input","kbd","label","li","main","mark","nav","ol","p","path","pre","q","rect","s","svg","section","select","strong","small","span","sub","sup","table","tbody","td","textarea","tfoot","th","thead","tr","ul"].forEach((function(e){$[e]=$(e)}));var Z=["styleConfig"];function U(e,r,t){var n;void 0===r&&(r={}),void 0===t&&(t={});var a=r,o=a.styleConfig,i=O(a,Z),s=j(),d=s.theme,b=s.colorMode,p=(0,l.Wf)(d,"components."+e),g=o||p,h=c()({theme:d,colorMode:b},null!=(n=null==g?void 0:g.defaultProps)?n:{},(0,l.YU)((0,l.CE)(i,["children"]))),m=(0,u.useRef)({});if(g){var v,y,x,w,k,S,E=(0,l.Pu)(null!=(v=g.baseStyle)?v:{},h),C=(0,l.Pu)(null!=(y=null==(x=g.variants)?void 0:x[h.variant])?y:{},h),A=(0,l.Pu)(null!=(w=null==(k=g.sizes)?void 0:k[h.size])?w:{},h),F=c()({},E,A,C);null!=(S=t)&&S.isMultiPart&&g.parts&&g.parts.forEach((function(e){var r;F[e]=null!=(r=F[e])?r:{}})),f()(m.current,F)||(m.current=F)}return m.current}function V(e,r){return U(e,r,{isMultiPart:!0})}},44592:function(e,r,t){"use strict";t.d(r,{Hc:function(){return ze},Ts:function(){return m},jX:function(){return o},yn:function(){return P},Qm:function(){return H},PP:function(){return ie},v0:function(){return oe},HU:function(){return we},r3:function(){return Z},cx:function(){return $},PB:function(){return L},Ao:function(){return Ne},VI:function(){return he},YU:function(){return C},xH:function(){return ge},T_:function(){return be},sq:function(){return F},vY:function(){return q},t5:function(){return re},K1:function(){return B},LP:function(){return l},lZ:function(){return I},kR:function(){return O},f7:function(){return Re},wN:function(){return V},H9:function(){return G},kJ:function(){return c},jU:function(){return N},FS:function(){return h},Qr:function(){return b},mf:function(){return u},Re:function(){return j},kA:function(){return y},Ft:function(){return p},hj:function(){return s},Kn:function(){return f},Ik:function(){return v},n_:function(){return Y},HD:function(){return g},Wq:function(){return Q},o8:function(){return d},XQ:function(){return We},Wf:function(){return S},ZT:function(){return se},uh:function(){return U},lw:function(){return E},Yd:function(){return A},CE:function(){return x},WS:function(){return ye},ei:function(){return w},zG:function(){return ue},px:function(){return _},cl:function(){return i},WP:function(){return xe},Pu:function(){return ae},Vl:function(){return k},Rg:function(){return ve},ZK:function(){return ce},JN:function(){return Be}});t(38554);var n=t(9839);function a(e){var r=null==e?0:e.length;return r?e[r-1]:void 0}function o(e,r){return[].concat(e,[r])}function i(e,r){return e.filter((function(e){return e!==r}))}function l(e,r,t,n){if(null==r)return n;if(!n)return e.find((function(e){return t(e).toLowerCase().startsWith(r.toLowerCase())}));var a,o=e.filter((function(e){return t(e).toLowerCase().startsWith(r.toLowerCase())}));return o.length>0?o.includes(n)?((a=o.indexOf(n)+1)===o.length&&(a=0),o[a]):(a=e.indexOf(o[0]),e[a]):n}function s(e){return"number"===typeof e}function c(e){return Array.isArray(e)}function u(e){return"function"===typeof e}function d(e){return"undefined"===typeof e||void 0===e}function f(e){var r=typeof e;return null!=e&&("object"===r||"function"===r)&&!c(e)}function b(e){return f(e)&&0===Object.keys(e).length}function p(e){return null==e}function g(e){return"[object String]"===Object.prototype.toString.call(e)}function h(e){return/^var\(--.+\)$/.test(e)}var m=!1;function v(e){return"current"in e}function y(e){return e&&f(e)&&f(e.target)}function x(e,r){var t={};return Object.keys(e).forEach((function(n){r.includes(n)||(t[n]=e[n])})),t}function w(e,r){var t={};return r.forEach((function(r){r in e&&(t[r]=e[r])})),t}function k(e,r){var t={},n={};return Object.keys(e).forEach((function(a){r.includes(a)?t[a]=e[a]:n[a]=e[a]})),[t,n]}var S=function(e){var r=new WeakMap;return function(t,n,a,o){if("undefined"===typeof t)return e(t,n,a);r.has(t)||r.set(t,new Map);var i=r.get(t);if(i.has(n))return i.get(n);var l=e(t,n,a,o);return i.set(n,l),l}}((function(e,r,t,n){var a="string"===typeof r?r.split("."):[r];for(n=0;nparseInt(r[1],10)?1:-1},R=function(e){return F(Object.entries(e).sort(D))};function T(e){var r=R(e);return Object.assign(Object.values(r),r)}function z(e,r){var t=[];return e&&t.push("@media screen and (min-width: "+_(e)+")"),t.length>0&&r&&t.push("and"),r&&t.push("@media screen and (max-width: "+_(r)+")"),t.join(" ")}function P(e){var r;if(!e)return null;e.base=null!=(r=e.base)?r:"0px";var t=T(e),n=Object.entries(e).sort(D).map((function(e,r,t){var n,a=e[0],o=e[1],i=(null!=(n=t[r+1])?n:[])[1];return{breakpoint:a,minW:o,maxW:i=parseFloat(i)>0?function(e){var r;if(!e)return e;var t=(e=null!=(r=_(e))?r:e).endsWith("px")?-1:-.0635;return s(e)?""+(e+t):e.replace(/([0-9]+\.?[0-9]*)/,(function(e){return""+(parseFloat(e)+t)}))}(i):void 0,maxWQuery:z(null,i),minWQuery:z(o),minMaxQuery:z(o,i)}})),o=function(e){var r=Object.keys(R(e));return new Set(r)}(e),i=Array.from(o.values());return{keys:o,normalized:t,isResponsive:function(e){var r=Object.keys(e);return r.length>0&&r.every((function(e){return o.has(e)}))},asObject:R(e),asArray:T(e),details:n,media:[null].concat(t.map((function(e){return z(e)})).slice(1)),toArrayValue:function(e){if(!f(e))throw new Error("toArrayValue: value must be an object");for(var r=i.map((function(r){var t;return null!=(t=e[r])?t:null}));null===a(r);)r.pop();return r},toObjectValue:function(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((function(e,r,t){var n=i[t];return null!=n&&null!=r&&(e[n]=r),e}),{})}}}function M(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function j(e){var r;return!!M(e)&&e instanceof(null!=(r=e.ownerDocument.defaultView)?r:window).HTMLElement}function O(e){var r,t;return M(e)&&null!=(r=null==(t=I(e))?void 0:t.defaultView)?r:window}function I(e){var r;return M(e)&&null!=(r=e.ownerDocument)?r:document}function W(e){var r;return null!=(r=e.view)?r:window}var N=!("undefined"===typeof window||!window.document||!window.document.createElement),L=function(e){return e?"":void 0},H=function(e){return!!e||void 0},$=function(){for(var e=arguments.length,r=new Array(e),t=0;t=37&&t<=40&&0!==r.indexOf("Arrow")?"Arrow"+r:r}function V(e){var r,t,n=q(null!=(r=e.target)?r:e.currentTarget);return null!=(t=e.relatedTarget)?t:n}function Y(e){return 0!==e.button}var X=function(e){return e.hasAttribute("tabindex")};function G(e){return(j(e)?I(e):document).activeElement===e}function K(e){return!(!e.parentElement||!K(e.parentElement))||e.hidden}function J(e){if(!j(e)||K(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var r=e.localName;if(["input","select","textarea","button"].indexOf(r)>=0)return!0;var t={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return r in t?t[r]():!!function(e){var r=e.getAttribute("contenteditable");return"false"!==r&&null!=r}(e)||X(e)}function Q(e){return!!e&&(j(e)&&J(e)&&!function(e){return X(e)&&-1===e.tabIndex}(e))}var ee=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();function re(e){var r=Array.from(e.querySelectorAll(ee));return r.unshift(e),r.filter(J).filter((function(e){return"none"!==window.getComputedStyle(e).display}))}function te(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ae(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=a.threshold;if(r||t){var o=(0,n.$B)().timestamp;a.history.push(ke({},e.point,{timestamp:o}));var i=a.handlers,l=i.onStart,c=i.onMove;r||(null==l||l(a.lastEvent,e),a.startEvent=a.lastEvent),null==c||c(a.lastEvent,e)}}},this.onPointerMove=function(e,r){a.lastEvent=e,a.lastEventInfo=r,function(e){var r=W(e);return"undefined"!==typeof r.PointerEvent&&e instanceof r.PointerEvent?!("mouse"!==e.pointerType):e instanceof r.MouseEvent}(e)&&0===e.buttons?a.onPointerUp(e,r):n.ZP.update(a.updatePoint,!0)},this.onPointerUp=function(e,r){var t=Oe(r,a.history),n=a.handlers,o=n.onEnd,i=n.onSessionEnd;null==i||i(e,t),a.end(),o&&a.startEvent&&(null==o||o(e,t))},this.win=W(e),!(Se(o=e)&&o.touches.length>1)){var o;this.handlers=r,t&&(this.threshold=t),e.stopPropagation(),e.preventDefault();var i=Fe(e),l=(0,n.$B)().timestamp;this.history=[ke({},i.point,{timestamp:l})];var c=r.onSessionStart;null==c||c(e,Oe(i,this.history)),this.removeListeners=ue(Te(this.win,"pointermove",this.onPointerMove),Te(this.win,"pointerup",this.onPointerUp),Te(this.win,"pointercancel",this.onPointerUp))}}var r=e.prototype;return r.updateHandlers=function(e){this.handlers=e},r.end=function(){var e;null==(e=this.removeListeners)||e.call(this),n.qY.update(this.updatePoint)},e}();function Pe(e,r){return{x:e.x-r.x,y:e.y-r.y}}function Me(e){return e[0]}function je(e){return e[e.length-1]}function Oe(e,r){return{point:e.point,delta:Pe(e.point,je(r)),offset:Pe(e.point,Me(r)),velocity:Ie(r,.1)}}function Ie(e,r){if(e.length<2)return{x:0,y:0};for(var t=e.length-1,n=null,a=function(e){return e[e.length-1]}(e);t>=0&&(n=e[t],!(a.timestamp-n.timestamp>1e3*r));)t--;if(!n)return{x:0,y:0};var o=(a.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var i={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}Object.freeze(["base","sm","md","lg","xl","2xl"]);function We(e,r){return c(e)?e.map((function(e){return null===e?null:r(e)})):f(e)?A(e).reduce((function(t,n){return t[n]=r(e[n]),t}),{}):null!=e?r(e):null}function Ne(e){return!!N&&function(e){var r=e.userAgent,t=e.vendor,n=/(android)/i.test(r);switch(!0){case/CriOS/.test(r):return"Chrome for iOS";case/Edg\//.test(r):return"Edge";case n&&/Silk\//.test(r):return"Silk";case/Chrome/.test(r)&&/Google Inc/.test(t):return"Chrome";case/Firefox\/\d+\.\d+$/.test(r):return"Firefox";case n:return"AOSP";case/MSIE|Trident/.test(r):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(r):return"Safari";case/AppleWebKit/.test(r):return"WebKit";default:return null}}(window.navigator)===e}},51859:function(e,r,t){"use strict";t.d(r,{Z:function(){return ae}});var n=t(11526),a=Math.abs,o=String.fromCharCode,i=Object.assign;function l(e){return e.trim()}function s(e,r,t){return e.replace(r,t)}function c(e,r){return e.indexOf(r)}function u(e,r){return 0|e.charCodeAt(r)}function d(e,r,t){return e.slice(r,t)}function f(e){return e.length}function b(e){return e.length}function p(e,r){return r.push(e),e}var g=1,h=1,m=0,v=0,y=0,x="";function w(e,r,t,n,a,o,i){return{value:e,root:r,parent:t,type:n,props:a,children:o,line:g,column:h,length:i,return:""}}function k(e,r){return i(w("",null,null,"",null,null,0),e,{length:-e.length},r)}function S(){return y=v>0?u(x,--v):0,h--,10===y&&(h=1,g--),y}function E(){return y=v2||B(y)>3?"":" "}function z(e,r){for(;--r&&E()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return F(e,A()+(r<6&&32==C()&&32==E()))}function P(e){for(;E();)switch(y){case e:return v;case 34:case 39:34!==e&&39!==e&&P(y);break;case 40:41===e&&P(e);break;case 92:E()}return v}function M(e,r){for(;E()&&e+y!==57&&(e+y!==84||47!==C()););return"/*"+F(r,v-1)+"*"+o(47===e?e:E())}function j(e){for(;!B(C());)E();return F(e,v)}var O="-ms-",I="-moz-",W="-webkit-",N="comm",L="rule",H="decl",$="@keyframes";function q(e,r){for(var t="",n=b(e),a=0;a6)switch(u(e,r+1)){case 109:if(45!==u(e,r+4))break;case 102:return s(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+I+(108==u(e,r+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?U(s(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==u(e,r+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return s(e,":",":"+W)+e;case 101:return s(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===u(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+O+"$2box$3")+e}break;case 5936:switch(u(e,r+11)){case 114:return W+e+O+s(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+O+s(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+O+s(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+O+e+e}return e}function V(e){return D(Y("",null,null,null,[""],e=_(e),0,[0],e))}function Y(e,r,t,n,a,i,l,u,d){for(var b=0,g=0,h=l,m=0,v=0,y=0,x=1,w=1,k=1,F=0,B="",_=a,D=i,P=n,O=B;w;)switch(y=F,F=E()){case 40:if(108!=y&&58==O.charCodeAt(h-1)){-1!=c(O+=s(R(F),"&","&\f"),"&\f")&&(k=-1);break}case 34:case 39:case 91:O+=R(F);break;case 9:case 10:case 13:case 32:O+=T(y);break;case 92:O+=z(A()-1,7);continue;case 47:switch(C()){case 42:case 47:p(G(M(E(),A()),r,t),d);break;default:O+="/"}break;case 123*x:u[b++]=f(O)*k;case 125*x:case 59:case 0:switch(F){case 0:case 125:w=0;case 59+g:v>0&&f(O)-h&&p(v>32?K(O+";",n,t,h-1):K(s(O," ","")+";",n,t,h-2),d);break;case 59:O+=";";default:if(p(P=X(O,r,t,b,g,a,u,B,_=[],D=[],h),i),123===F)if(0===g)Y(O,r,P,P,_,i,h,u,D);else switch(m){case 100:case 109:case 115:Y(e,P,P,n&&p(X(e,P,P,0,0,a,u,B,a,_=[],h),D),a,D,h,u,n?_:D);break;default:Y(O,P,P,P,[""],D,0,u,D)}}b=g=v=0,x=k=1,B=O="",h=l;break;case 58:h=1+f(O),v=y;default:if(x<1)if(123==F)--x;else if(125==F&&0==x++&&125==S())continue;switch(O+=o(F),F*x){case 38:k=g>0?1:(O+="\f",-1);break;case 44:u[b++]=(f(O)-1)*k,k=1;break;case 64:45===C()&&(O+=R(E())),m=C(),g=h=f(B=O+=j(A())),F++;break;case 45:45===y&&2==f(O)&&(x=0)}}return i}function X(e,r,t,n,o,i,c,u,f,p,g){for(var h=o-1,m=0===o?i:[""],v=b(m),y=0,x=0,k=0;y0?m[S]+" "+E:s(E,/&\f/g,m[S])))&&(f[k++]=C);return w(e,r,t,0===o?L:u,f,p,g)}function G(e,r,t){return w(e,r,t,N,o(y),d(e,2,-2),0)}function K(e,r,t,n){return w(e,r,t,H,d(e,0,n),d(e,n+1,-1),n)}var J=function(e,r,t){for(var n=0,a=0;n=a,a=C(),38===n&&12===a&&(r[t]=1),!B(a);)E();return F(e,v)},Q=function(e,r){return D(function(e,r){var t=-1,n=44;do{switch(B(n)){case 0:38===n&&12===C()&&(r[t]=1),e[t]+=J(v-1,r,t);break;case 2:e[t]+=R(n);break;case 4:if(44===n){e[++t]=58===C()?"&\f":"",r[t]=e[t].length;break}default:e[t]+=o(n)}}while(n=E());return e}(_(e),r))},ee=new WeakMap,re=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var r=e.value,t=e.parent,n=e.column===t.column&&e.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==e.props.length||58===r.charCodeAt(0)||ee.get(t))&&!n){ee.set(e,!0);for(var a=[],o=Q(r,a),i=t.props,l=0,s=0;l-1&&!e.return)switch(e.type){case H:e.return=U(e.value,e.length);break;case $:return q([k(e,{value:s(e.value,"@","@"+W)})],n);case L:if(e.length)return function(e,r){return e.map(r).join("")}(e.props,(function(r){switch(function(e,r){return(e=r.exec(e))?e[0]:e}(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return q([k(e,{props:[s(r,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return q([k(e,{props:[s(r,/:(plac\w+)/,":-webkit-input-$1")]}),k(e,{props:[s(r,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[s(r,/:(plac\w+)/,O+"input-$1")]})],n)}return""}))}}],ae=function(e){var r=e.key;if("css"===r){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||ne;var o,i,l={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){for(var r=e.getAttribute("data-emotion").split(" "),t=1;t=4;++n,a-=4)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(r>>>16)<<16),t=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(a){case 3:t^=(255&e.charCodeAt(n+2))<<16;case 2:t^=(255&e.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&e.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=t(67866),i=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.Z)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,r){switch(e){case"animation":case"animationName":if("string"===typeof r)return r.replace(l,(function(e,r,t){return b={name:r,styles:t,next:b},r}))}return 1===a[e]||s(e)||"number"!==typeof r||0===r?r:r+"px"};function f(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return b={name:t.name,styles:t.styles,next:b},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)b={name:n.name,styles:n.styles,next:b},n=n.next;return t.styles+";"}return function(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a-1},G.prototype.set=function(e,r){var t=this.__data__,n=te(t,e);return n<0?(++this.size,t.push([e,r])):t[n][1]=r,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(U||G),string:new X}},K.prototype.delete=function(e){var r=fe(this,e).delete(e);return this.size-=r?1:0,r},K.prototype.get=function(e){return fe(this,e).get(e)},K.prototype.has=function(e){return fe(this,e).has(e)},K.prototype.set=function(e,r){var t=fe(this,e),n=t.size;return t.set(e,r),this.size+=t.size==n?0:1,this},J.prototype.clear=function(){this.__data__=new G,this.size=0},J.prototype.delete=function(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,r){var t=this.__data__;if(t instanceof G){var n=t.__data__;if(!U||n.length<199)return n.push([e,r]),this.size=++t.size,this;t=this.__data__=new K(n)}return t.set(e,r),this.size=t.size,this};var ae,oe=function(e,r,t){for(var n=-1,a=Object(e),o=t(e),i=o.length;i--;){var l=o[ae?i:++n];if(!1===r(a[l],l,a))break}return e};function ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":L&&L in Object(e)?function(e){var r=B.call(e,L),t=e[L];try{e[L]=void 0;var n=!0}catch(o){}var a=D.call(e);n&&(r?e[L]=t:delete e[L]);return a}(e):function(e){return D.call(e)}(e)}function le(e){return Ae(e)&&ie(e)==o}function se(e){return!(!Ce(e)||function(e){return!!_&&_ in e}(e))&&(Se(e)?T:s).test(function(e){if(null!=e){try{return F.call(e)}catch(r){}try{return e+""}catch(r){}}return""}(e))}function ce(e){if(!Ce(e))return function(e){var r=[];if(null!=e)for(var t in Object(e))r.push(t);return r}(e);var r=ge(e),t=[];for(var n in e)("constructor"!=n||!r&&B.call(e,n))&&t.push(n);return t}function ue(e,r,t,n,a){e!==r&&oe(r,(function(o,i){if(a||(a=new J),Ce(o))!function(e,r,t,n,a,o,i){var s=he(e,t),c=he(r,t),u=i.get(c);if(u)return void ee(e,t,u);var d=o?o(s,c,t+"",e,r,i):void 0,f=void 0===d;if(f){var b=xe(c),p=!b&&ke(c),g=!b&&!p&&Fe(c);d=c,b||p||g?xe(s)?d=s:Ae(h=s)&&we(h)?d=function(e,r){var t=-1,n=e.length;r||(r=Array(n));for(;++t-1&&e%1==0&&e0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}(H?function(e,r){return H(e,"toString",{configurable:!0,enumerable:!1,value:(t=r,function(){return t}),writable:!0});var t}:Re);function ve(e,r){return e===r||e!==e&&r!==r}var ye=le(function(){return arguments}())?le:function(e){return Ae(e)&&B.call(e,"callee")&&!W.call(e,"callee")},xe=Array.isArray;function we(e){return null!=e&&Ee(e.length)&&!Se(e)}var ke=$||function(){return!1};function Se(e){if(!Ce(e))return!1;var r=ie(e);return r==i||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ce(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}function Ae(e){return null!=e&&"object"==typeof e}var Fe=y?function(e){return function(r){return e(r)}}(y):function(e){return Ae(e)&&Ee(e.length)&&!!u[ie(e)]};function Be(e){return we(e)?Q(e,!0):ce(e)}var _e,De=(_e=function(e,r,t,n){ue(e,r,t,n)},de((function(e,r){var t=-1,n=r.length,a=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(a=_e.length>3&&"function"==typeof a?(n--,a):void 0,o&&function(e,r,t){if(!Ce(t))return!1;var n=typeof r;return!!("number"==n?we(t)&&pe(r,t.length):"string"==n&&r in t)&&ve(t[r],e)}(r[0],r[1],o)&&(a=n<3?void 0:a,n=1),e=Object(e);++t1?r-1:0),n=1;n1)&&(e=1),e}function oe(e){return e<=1?100*Number(e)+"%":e}function ie(e){return 1===e.length?"0"+e:String(e)}function le(e,r,t){e=te(e,255),r=te(r,255),t=te(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),o=0,i=0,l=(n+a)/2;if(n===a)i=0,o=0;else{var s=n-a;switch(i=l>.5?s/(2-n-a):s/(n+a),n){case e:o=(r-t)/s+(r1&&(t-=1),t<1/6?e+6*t*(r-e):t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}function ce(e,r,t){e=te(e,255),r=te(r,255),t=te(t,255);var n=Math.max(e,r,t),a=Math.min(e,r,t),o=0,i=n,l=n-a,s=0===n?0:l/n;if(n===a)o=0;else{switch(n){case e:o=(r-t)/l+(r>16,g:(65280&e)>>8,b:255&e}}(r)),this.originalInput=r;var a=ge(r);this.originalInput=r,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=t.format)&&void 0!==n?n:a.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),r=e.r/255,t=e.g/255,n=e.b/255;return.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ae(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=ce(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=ce(this.r,this.g,this.b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.v);return 1===this.a?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=le(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=le(this.r,this.g,this.b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.l);return 1===this.a?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),ue(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,r,t,n,a){var o=[ie(Math.round(e).toString(16)),ie(Math.round(r).toString(16)),ie(Math.round(t).toString(16)),ie(de(n))];return a&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),r=Math.round(this.g),t=Math.round(this.b);return 1===this.a?"rgb("+e+", "+r+", "+t+")":"rgba("+e+", "+r+", "+t+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*te(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*te(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+ue(this.r,this.g,this.b,!1),r=0,t=Object.entries(pe);r=0;return r||!n||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.l+=r/100,t.l=ne(t.l),new e(t)},e.prototype.brighten=function(r){void 0===r&&(r=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-r/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-r/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-r/100*255))),new e(t)},e.prototype.darken=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.l-=r/100,t.l=ne(t.l),new e(t)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.s-=r/100,t.s=ne(t.s),new e(t)},e.prototype.saturate=function(r){void 0===r&&(r=10);var t=this.toHsl();return t.s+=r/100,t.s=ne(t.s),new e(t)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(r){var t=this.toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,new e(t)},e.prototype.mix=function(r,t){void 0===t&&(t=50);var n=this.toRgb(),a=new e(r).toRgb(),o=t/100;return new e({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},e.prototype.analogous=function(r,t){void 0===r&&(r=6),void 0===t&&(t=30);var n=this.toHsl(),a=360/t,o=[this];for(n.h=(n.h-(a*r>>1)+720)%360;--r;)n.h=(n.h+a)%360,o.push(new e(n));return o},e.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new e(r)},e.prototype.monochromatic=function(r){void 0===r&&(r=6);for(var t=this.toHsv(),n=t.h,a=t.s,o=t.v,i=[],l=1/r;r--;)i.push(new e({h:n,s:a,v:o})),o=(o+l)%1;return i},e.prototype.splitcomplement=function(){var r=this.toHsl(),t=r.h;return[this,new e({h:(t+72)%360,s:r.s,l:r.l}),new e({h:(t+216)%360,s:r.s,l:r.l})]},e.prototype.onBackground=function(r){var t=this.toRgb(),n=new e(r).toRgb();return new e({r:n.r+(t.r-n.r)*t.a,g:n.g+(t.g-n.g)*t.a,b:n.b+(t.b-n.b)*t.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(r){for(var t=this.toHsl(),n=t.h,a=[this],o=360/r,i=1;it.length;)e.count=null,e.seed&&(e.seed+=1),t.push(ke(e));return e.count=r,t}var n=function(e,r){var t=Ee(function(e){var r=parseInt(e,10);if(!Number.isNaN(r)&&r<360&&r>0)return[r,r];if("string"===typeof e){var t=Ae.find((function(r){return r.name===e}));if(t){var n=Ce(t);if(n.hueRange)return n.hueRange}var a=new we(e);if(a.isValid){var o=a.toHsv().h;return[o,o]}}return[0,360]}(e),r);t<0&&(t=360+t);return t}(e.hue,e.seed),a=function(e,r){if("monochrome"===r.hue)return 0;if("random"===r.luminosity)return Ee([0,100],r.seed);var t=Se(e).saturationRange,n=t[0],a=t[1];switch(r.luminosity){case"bright":n=55;break;case"dark":n=a-10;break;case"light":a=55}return Ee([n,a],r.seed)}(n,e),o={h:n,s:a,v:function(e,r,t){var n=function(e,r){for(var t=Se(e).lowerBounds,n=0;n=a&&r<=i){var s=(l-o)/(i-a);return s*r+(o-s*a)}}return 0}(e,r),a=100;switch(t.luminosity){case"dark":a=n+20;break;case"light":n=(a+n)/2;break;case"random":n=0,a=100}return Ee([n,a],t.seed)}(n,a,e)};return void 0!==e.alpha&&(o.a=e.alpha),new we(o)}function Se(e){e>=334&&e<=360&&(e-=360);for(var r=0,t=Ae;r=n.hueRange[0]&&e<=n.hueRange[1])return n}throw Error("Color not found")}function Ee(e,r){if(void 0===r)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var t=e[1]||1,n=e[0]||0,a=(r=(9301*r+49297)%233280)/233280;return Math.floor(n+a*(t-n))}function Ce(e){var r=e.lowerBounds[0][0],t=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],a=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[r,t],brightnessRange:[n,a]}}var Ae=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],Fe=t(44592),Be=function(e,r,t){var n=(0,Fe.Wf)(e,"colors."+r,r);return new we(n).isValid?n:t},_e=function(e){return function(r){var t=Be(r,e);return new we(t).isDark()?"dark":"light"}},De=function(e,r){return function(t){var n=Be(t,e);return new we(n).setAlpha(r).toRgbString()}};function Re(e,r){return void 0===e&&(e="1rem"),void 0===r&&(r="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n 45deg,\n "+r+" 25%,\n transparent 25%,\n transparent 50%,\n "+r+" 50%,\n "+r+" 75%,\n transparent 75%,\n transparent\n )",backgroundSize:e+" "+e}}function Te(e){var r=ke().toHexString();return!e||(0,Fe.Qr)(e)?r:e.string&&e.colors?function(e,r){var t=0;if(0===e.length)return r[0];for(var n=0;n>8*a&255).toString(16)).substr(-2)}return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):r}function ze(e,r){return function(t){return"dark"===t.colorMode?r:e}}function Pe(e){var r=e.orientation,t=e.vertical,n=e.horizontal;return r?"vertical"===r?t:n:{}}function Me(){return(Me=Object.assign||function(e){for(var r=1;r1?r-1:0),n=1;n option, > optgroup":{bg:ze("white","gray.700")(e)}})},Kt={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},Jt={paddingInlineEnd:"2rem"},Qt=h()({},Xr.sizes,{lg:{field:Jt},md:{field:Jt},sm:{field:Jt},xs:{field:Jt,icon:{insetEnd:"0.25rem"}}}),en={parts:X.keys,baseStyle:function(e){return{field:Gt(e),icon:Kt}},sizes:Qt,variants:Xr.variants,defaultProps:Xr.defaultProps},rn=function(e,r){return(0,a.F4)({from:{borderColor:e,background:e},to:{borderColor:r,background:r}})},tn={baseStyle:function(e){var r=ze("gray.100","gray.800")(e),t=ze("gray.400","gray.600")(e),n=e.startColor,a=void 0===n?r:n,o=e.endColor,i=void 0===o?t:o,l=e.speed,s=e.theme,c=Be(s,a),u=Be(s,i);return{opacity:.7,borderRadius:"2px",borderColor:c,background:u,animation:l+"s linear infinite alternate "+rn(c,u)}}},nn={baseStyle:function(e){return{borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:ze("white","gray.700")(e)}}}};var an,on,ln,sn,cn,un,dn,fn,bn,pn,gn,hn,mn,vn=function(e){return b({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},Pe({orientation:e.orientation,vertical:{h:"100%"},horizontal:{w:"100%"}}))},yn=function(e){return{overflow:"hidden",borderRadius:"sm",bg:ze("gray.200","whiteAlpha.200")(e),_disabled:{bg:ze("gray.300","whiteAlpha.300")(e)}}},xn=function(e){return b({display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focus:{boxShadow:"outline"},_disabled:{bg:"gray.300"}},function(e){return Pe({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})}(e))},wn=function(e){var r=e.colorScheme;return{width:"inherit",height:"inherit",bg:ze(r+".500",r+".200")(e)}},kn={lg:function(e){return{thumb:{w:"16px",h:"16px"},track:Pe({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(e){return{thumb:{w:"14px",h:"14px"},track:Pe({orientation:e.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(e){return{thumb:{w:"10px",h:"10px"},track:Pe({orientation:e.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},Sn={parts:G.keys,sizes:kn,baseStyle:function(e){return{container:vn(e),track:yn(e),thumb:xn(e),filledTrack:wn(e)}},defaultProps:{size:"md",colorScheme:"blue"}},En=Ve("spinner-size"),Cn={baseStyle:{width:[En.reference],height:[En.reference]},sizes:{xs:(an={},an[En.variable]="0.75rem",an),sm:(on={},on[En.variable]="1rem",on),md:(ln={},ln[En.variable]="1.5rem",ln),lg:(sn={},sn[En.variable]="2rem",sn),xl:(cn={},cn[En.variable]="3rem",cn)},defaultProps:{size:"md"}},An={container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},Fn={parts:K.keys,baseStyle:An,sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}},Bn=Ve("switch-track-width"),_n=Ve("switch-track-height"),Dn=Ve("switch-track-diff"),Rn=$e.subtract(Bn,_n),Tn=Ve("switch-thumb-x"),zn=function(e){var r=e.colorScheme;return{borderRadius:"full",p:"2px",width:[Bn.reference],height:[_n.reference],transitionProperty:"common",transitionDuration:"fast",bg:ze("gray.300","whiteAlpha.400")(e),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:ze(r+".500",r+".200")(e)}}},Pn={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[_n.reference],height:[_n.reference],_checked:{transform:"translateX("+Tn.reference+")"}},Mn={sm:{container:(un={},un[Bn.variable]="1.375rem",un[_n.variable]="0.75rem",un)},md:{container:(dn={},dn[Bn.variable]="1.875rem",dn[_n.variable]="1rem",dn)},lg:{container:(fn={},fn[Bn.variable]="2.875rem",fn[_n.variable]="1.5rem",fn)}},jn={parts:J.keys,baseStyle:function(e){var r,t;return{container:(t={},t[Dn.variable]=Rn,t[Tn.variable]=Dn.reference,t._rtl=(r={},r[Tn.variable]=$e(Dn).negate().toString(),r),t),track:zn(e),thumb:Pn}},sizes:Mn,defaultProps:{size:"md",colorScheme:"blue"}},On={"&[data-is-numeric=true]":{textAlign:"end"}},In={simple:function(e){var r=e.colorScheme;return{th:b({color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),td:b({borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),caption:{color:ze("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:function(e){var r=e.colorScheme;return{th:b({color:ze("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),td:b({borderBottom:"1px",borderColor:ze(r+".100",r+".700")(e)},On),caption:{color:ze("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ze(r+".100",r+".700")(e)},td:{background:ze(r+".100",r+".700")(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},Wn={parts:Q.keys,baseStyle:{table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}},variants:In,sizes:{sm:{th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}},md:{th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}},lg:{th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}}},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}},Nn=function(e){return{display:"vertical"===e.orientation?"flex":"block"}},Ln=function(e){return{flex:e.isFitted?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}},Hn=function(e){var r=e.align,t=void 0===r?"start":r,n=e.orientation;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},$n={p:4},qn={line:function(e){var r,t,n=e.colorScheme,a=e.orientation,o="vertical"===a?"borderStart":"borderBottom",i="vertical"===a?"marginStart":"marginBottom";return{tablist:(r={},r[o]="2px solid",r.borderColor="inherit",r),tab:(t={},t[o]="2px solid",t.borderColor="transparent",t[i]="-2px",t._selected={color:ze(n+".600",n+".300")(e),borderColor:"currentColor"},t._active={bg:ze("gray.200","whiteAlpha.300")(e)},t._disabled={opacity:.4,cursor:"not-allowed"},t)}},enclosed:function(e){var r=e.colorScheme;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:ze(r+".600",r+".300")(e),borderColor:"inherit",borderBottomColor:ze("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(e){var r=e.colorScheme;return{tab:{border:"1px solid",borderColor:"inherit",bg:ze("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:ze("#fff","gray.800")(e),color:ze(r+".600",r+".300")(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(e){var r=e.colorScheme,t=e.theme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Be(t,r+".700"),bg:Be(t,r+".100")}}}},"solid-rounded":function(e){var r=e.colorScheme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:ze("gray.600","inherit")(e),_selected:{color:ze("#fff","gray.800")(e),bg:ze(r+".600",r+".300")(e)}}}},unstyled:{}},Zn={parts:ee.keys,baseStyle:function(e){return{root:Nn(e),tab:Ln(e),tablist:Hn(e),tabpanel:$n}},sizes:{sm:{tab:{py:1,px:4,fontSize:"sm"}},md:{tab:{fontSize:"md",py:2,px:4}},lg:{tab:{fontSize:"lg",py:3,px:4}}},variants:qn,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Un={container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"18px",w:"1.25rem",h:"1.25rem",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"0.375rem",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focus:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}},Vn={subtle:function(e){return{container:ur.variants.subtle(e)}},solid:function(e){return{container:ur.variants.solid(e)}},outline:function(e){return{container:ur.variants.outline(e)}}},Yn={parts:re.keys,variants:Vn,baseStyle:Un,sizes:{sm:{container:{minH:"1.25rem",minW:"1.25rem",fontSize:"xs",px:2,borderRadius:"md"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}},md:{container:{minH:"1.5rem",minW:"1.5rem",fontSize:"sm",borderRadius:"md",px:2}},lg:{container:{minH:8,minW:8,fontSize:"md",borderRadius:"md",px:3}}},defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}},Xn=b({},Xr.baseStyle.field,{paddingY:"8px",minHeight:"80px",lineHeight:"short",verticalAlign:"top"}),Gn={outline:function(e){var r;return null!=(r=Xr.variants.outline(e).field)?r:{}},flushed:function(e){var r;return null!=(r=Xr.variants.flushed(e).field)?r:{}},filled:function(e){var r;return null!=(r=Xr.variants.filled(e).field)?r:{}},unstyled:null!=(bn=Xr.variants.unstyled.field)?bn:{}},Kn={baseStyle:Xn,sizes:{xs:null!=(pn=Xr.sizes.xs.field)?pn:{},sm:null!=(gn=Xr.sizes.sm.field)?gn:{},md:null!=(hn=Xr.sizes.md.field)?hn:{},lg:null!=(mn=Xr.sizes.lg.field)?mn:{}},variants:Gn,defaultProps:{size:"md",variant:"outline"}},Jn=Ve("tooltip-bg"),Qn=Ve("popper-arrow-bg"),ea={baseStyle:function(e){var r,t=ze("gray.700","gray.300")(e);return(r={})[Jn.variable]="colors."+t,r.px="8px",r.py="2px",r.bg=[Jn.reference],r[Qn.variable]=[Jn.reference],r.color=ze("whiteAlpha.900","gray.900")(e),r.borderRadius="sm",r.fontWeight="medium",r.fontSize="sm",r.boxShadow="md",r.maxW="320px",r.zIndex="tooltip",r}},ra=Object.freeze({__proto__:null,Accordion:Ke,Alert:er,Avatar:cr,Badge:ur,Breadcrumb:fr,Button:gr,Checkbox:yr,CloseButton:wr,Code:kr,Container:Sr,Divider:Er,Drawer:Pr,Editable:jr,Form:Wr,FormError:Hr,FormLabel:$r,Heading:qr,Input:Xr,Kbd:Gr,Link:Kr,List:Qr,Menu:it,Modal:yt,NumberInput:Tt,PinInput:zt,Popover:$t,Progress:Vt,Radio:Xt,Select:en,Skeleton:tn,SkipLink:nn,Slider:Sn,Spinner:Cn,Stat:Fn,Switch:jn,Table:Wn,Tabs:Zn,Tag:Yn,Textarea:Kn,Tooltip:ea}),ta=b({breakpoints:function(e){return(0,Fe.ZK)({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),Me({base:"0em"},e)}({sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}),zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}}},Xe,{sizes:p,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","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"},space:f,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}}),na=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function aa(e){return!!(0,Fe.Kn)(e)&&na.every((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))}var oa=b({direction:"ltr"},ta,{components:ra,styles:{global:function(e){return{body:{fontFamily:"body",color:ze("gray.800","whiteAlpha.900")(e),bg:ze("white","gray.800")(e),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:ze("gray.400","whiteAlpha.400")(e)},"*, *::before, &::after":{borderColor:ze("gray.200","whiteAlpha.300")(e),wordWrap:"break-word"}}}},config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}}),ia=function(e){var r=e.children,t=e.colorModeManager,n=e.portalZIndex,a=e.resetCSS,f=void 0===a||a,b=e.theme,p=void 0===b?{}:b,g=e.environment,h=e.cssVarsRoot,m=o.createElement(u.u,{environment:g},r);return o.createElement(d.vc,null,o.createElement(s.f6,{theme:p,cssVarsRoot:h},o.createElement(c.SG,{colorModeManager:t,options:p.config},f&&o.createElement(i,null),o.createElement(s.ZL,null),n?o.createElement(l.hE,{zIndex:n},m):m)))};function la(){for(var e=arguments.length,r=new Array(e),t=0;t1?n=n.slice(0,n.length-1):a=oa,Fe.zG.apply(void 0,n.map((function(e){return function(r){return(0,Fe.mf)(e)?e(r):sa(r,e)}})))(a)}function sa(){for(var e=arguments.length,r=new Array(e),t=0;t>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===t?S(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===t?S(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=f.exec(e))?new A(r[1],r[2],r[3],1):(r=b.exec(e))?new A(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=p.exec(e))?S(r[1],r[2],r[3],r[4]):(r=g.exec(e))?S(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=h.exec(e))?D(r[1],r[2]/100,r[3]/100,1):(r=m.exec(e))?D(r[1],r[2]/100,r[3]/100,r[4]):v.hasOwnProperty(e)?k(v[e]):"transparent"===e?new A(NaN,NaN,NaN,0):null}function k(e){return new A(e>>16&255,e>>8&255,255&e,1)}function S(e,r,t,n){return n<=0&&(e=r=t=NaN),new A(e,r,t,n)}function E(e){return e instanceof o||(e=w(e)),e?new A((e=e.rgb()).r,e.g,e.b,e.opacity):new A}function C(e,r,t,n){return 1===arguments.length?E(e):new A(e,r,t,null==n?1:n)}function A(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}function F(){return"#"+_(this.r)+_(this.g)+_(this.b)}function B(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function _(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function D(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new T(e,r,t,n)}function R(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=w(e)),!e)return new T;if(e instanceof T)return e;var r=(e=e.rgb()).r/255,t=e.g/255,n=e.b/255,a=Math.min(r,t,n),i=Math.max(r,t,n),l=NaN,s=i-a,c=(i+a)/2;return s?(l=r===i?(t-n)/s+6*(t0&&c<1?0:l,new T(l,s,c,e.opacity)}function T(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}function z(e,r,t){return 255*(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)}n(o,w,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return R(this).formatHsl()},formatRgb:x,toString:x}),n(A,C,a(o,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new A(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:F,formatHex:F,formatRgb:B,toString:B})),n(T,(function(e,r,t,n){return 1===arguments.length?R(e):new T(e,r,t,null==n?1:n)}),a(o,{brighter:function(e){return e=null==e?l:Math.pow(l,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i:Math.pow(i,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,a=2*t-n;return new A(z(e>=240?e-240:e+120,a,n),z(e,a,n),z(e<120?e+240:e-120,a,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},57631:function(e,r){"use strict";r.Z=function(e){return function(){return e}}},13311:function(e,r,t){"use strict";function n(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}t.d(r,{Z:function(){return n}})},20439:function(e,r,t){"use strict";t.d(r,{ZP:function(){return c}});var n=t(94798);function a(e,r,t,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*r+(4-6*o+3*i)*t+(1+3*e+3*o-3*i)*n+i*a)/6}var o=t(57631);function i(e,r){return function(t){return e+t*r}}function l(e){return 1===(e=+e)?s:function(r,t){return t-r?function(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}(r,t,e):(0,o.Z)(isNaN(r)?t:r)}}function s(e,r){var t=r-e;return t?i(e,t):(0,o.Z)(isNaN(e)?r:e)}var c=function e(r){var t=l(r);function a(e,r){var a=t((e=(0,n.B8)(e)).r,(r=(0,n.B8)(r)).r),o=t(e.g,r.g),i=t(e.b,r.b),l=s(e.opacity,r.opacity);return function(r){return e.r=a(r),e.g=o(r),e.b=i(r),e.opacity=l(r),e+""}}return a.gamma=e,a}(1);function u(e){return function(r){var t,a,o=r.length,i=new Array(o),l=new Array(o),s=new Array(o);for(t=0;t=1?(t=1,r-1):Math.floor(t*r),o=e[n],i=e[n+1],l=n>0?e[n-1]:2*o-i,s=ns&&(l=r.slice(s,l),u[c]?u[c]+=l:u[++c]=l),(t=t[0])===(i=i[0])?u[c]?u[c]+=i:u[++c]=i:(u[++c]=null,d.push({i:c,x:(0,n.Z)(t,i)})),s=o.lastIndex;return s0},ce={exit:{size:{duration:.2,ease:ee.ease},opacity:{duration:.3,ease:ee.ease}},enter:{size:{duration:.3,ease:ee.ease},opacity:{duration:.4,ease:ee.ease}}},ae={exit:function(e){var n,t,r=e.animateOpacity,o=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:se(o)?1:0}),{},(t={overflow:"hidden"},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:te(ce.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,o=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:1}),{},(t={},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:ne(ce.enter,c)),t))}},ue=b.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,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,q.Z)(e,oe),v=b.useState(!1),m=(0,l.Z)(v,2),y=m[0],C=m[1];b.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,G.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:i,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:J()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:O?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,re.jsx)(Q.M,{initial:!1,custom:w,children:k&&(0,re.jsx)(K.E.div,le(le({ref:n},j),{},{className:(0,G.cx)("chakra-collapse",f),style:le({overflow:"hidden",display:"block"},g),custom:w,variants:ae,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));function de(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 he(e){for(var n=1;n-1,g=d.indexOf(s)>-1,f=(0,a.qY)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{icon:(0,re.jsx)(u.Box,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:f.onToggle,children:(0,re.jsx)(u.Text,{children:"Change color"})}),(0,re.jsx)(ue,{in:f.isOpen,children:(0,re.jsxs)(u.Flex,{ml:2,mt:2,flexWrap:"wrap",children:[(0,re.jsx)(u.Box,{children:(0,re.jsx)(u.Box,{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"),W.map((function(e){return(0,re.jsx)(u.Box,{children:(0,re.jsx)(u.Box,{tabIndex:0,cursor:"pointer",onClick:function(){return n(he(he({},l),{},(0,i.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))]})}),!g&&(0,re.jsx)(A.sN,{onClick:function(){t(h?function(e){return he(he({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsBlacklist:[].concat((0,o.Z)(e.tagsBlacklist),[s])})})},icon:h?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewOffIcon,{}),children:h?"Remove from blocklist":"Add to blocklist"}),!h&&(0,re.jsx)(A.sN,{onClick:function(){t(g?function(e){return he(he({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsWhitelist:[].concat((0,o.Z)(e.tagsWhitelist),[s])})})},icon:g?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewIcon,{}),children:g?"Remove from allowlist":"Add to allowlist"})]})},fe=function(e){e.background;var n,t,r=e.target,o=(e.nodeType,e.coordinates),i=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,d=e.setPreviewNode,g=e.setTagColors,f=e.tagColors,p=e.setFilter,x=e.filter,j=(0,a.qY)(),v=j.isOpen,m=j.onOpen,C=j.onClose;(0,b.useRef)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,re.jsx)(A.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:o.left,top:o.top,right:o.right,bottom:o.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,re.jsxs)(re.Fragment,{children:[r&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(u.Heading,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,re.jsx)(A.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{onClick:function(){return i(r,"add")},icon:(0,re.jsx)(V.PlusSquareIcon,{}),children:"Expand local graph at node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"replace")},icon:(0,re.jsx)(y.DvO,{}),children:"Open local graph for this node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"remove")},icon:(0,re.jsx)(V.MinusIcon,{}),children:"Exclude node from local graph"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.AddIcon,{}),onClick:function(){return function(e,n){_("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.EditIcon,{}),onClick:function(){return U(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ExternalLinkIcon,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(y.DvO,{}),onClick:function(){return i(r,"replace")},children:"Open local graph"}),(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ViewIcon,{}),onClick:function(){d(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(A.sN,{closeOnSelect:!1,icon:(0,re.jsx)(V.DeleteIcon,{color:"red.500"}),color:"red.500",onClick:m,children:"Permanently delete note"})]}):(0,re.jsx)(ge,{target:r,tagColors:f,filter:x,setTagColors:g,setFilter:p})})}),"string"!==typeof r&&(0,re.jsxs)(M.u_,{isCentered:!0,isOpen:v,onClose:C,children:[(0,re.jsx)(M.ZA,{}),(0,re.jsxs)(M.hz,{zIndex:"popover",children:[(0,re.jsx)(M.xB,{children:"Delete node?"}),(0,re.jsx)(M.ol,{}),(0,re.jsx)(M.fe,{children:(0,re.jsxs)(u.VStack,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,re.jsx)(u.Text,{children:"This will permanently delete your note:"}),(0,re.jsx)(u.Text,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(u.Text,{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,re.jsx)(u.Text,{children:"Are you sure you want to do continue?"})]})}),(0,re.jsxs)(M.mz,{children:[(0,re.jsx)(h.Button,{mr:3,onClick:function(){console.log("closing"),C(),l()},children:"Cancel"}),(0,re.jsx)(h.Button,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&_("delete",{id:e.id,file:e.file},n)}(r,c),C(),l()},children:"Delete node"})]})]})]})]})},pe=t(5434),xe=t(51649),je=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),o=e.canRedo,i=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode,s=e.outline,c=e.setOutline,a=e.collapse,g=e.setCollapse;return(0,re.jsxs)(u.Flex,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pr:1,children:[(0,re.jsx)(u.Flex,{children:(0,re.jsxs)(h.ButtonGroup,{isAttached:!0,children:[(0,re.jsx)(d.u,{label:"Go backward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronLeftIcon,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return i()}})}),(0,re.jsx)(d.u,{label:"Go forward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronRightIcon,{}),"aria-label":"Next node",disabled:!o,onClick:function(){return l()}})})]})}),(0,re.jsxs)(u.Flex,{children:[(0,re.jsx)(d.u,{label:"Justify content",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:[(0,re.jsx)(y.v9V,{},"justify"),(0,re.jsx)(y.YSr,{},"left"),(0,re.jsx)(y.RXA,{},"right"),(0,re.jsx)(y.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})}),(0,re.jsx)(d.u,{label:"Toggle outline view",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:s?(0,re.jsx)(xe.XQM,{}):(0,re.jsx)(xe.JfF,{}),onClick:function(){return c((function(e){return!e}))}})}),(0,re.jsx)(d.u,{label:"Toggle headers",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Toggle headers",icon:a?(0,re.jsx)(pe.omV,{}):(0,re.jsx)(pe.egf,{}),onClick:function(){return g((function(e){return!e}))}})})]})]})},be=t(96356);function ve(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 me(e){for(var n=1;n div > p":{mb:2},p:{fontWeight:500,fontSize:14,pb:2}},on={".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"}},ln=t(86658),sn=["style"];function cn(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 an(e){for(var n=1;n0?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronUpIcon,{}),onClick:function(){return i(!o)},height:2,width:2}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(jn.zOz,{}),onClick:function(){return i(!o)},height:2,width:2})]}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronDownIcon,{}),onClick:function(){return i(!o)}}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(jn.O6Y,{}),onClick:function(){return i(!o)}})]}),s[0]]})}),o&&(0,re.jsx)(u.Box,{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 yn(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},o=Tn(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),i=o.get(),l=void 0!==i?i:n,s=null!=i&&"object"===typeof i&&!1===Array.isArray(i)?Bn(Bn({},n),i):l;s!==i&&o.update(s);var c=(0,b.useState)(s),a=c[0],u=c[1];(0,b.useEffect)((function(){a!==s&&u(s)}),[e]);var d=function(e){e instanceof Function?u((function(n){var t=e(n);return o.update(t),t})):(u(e),o.update(e))};return[a,d]}function Tn(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 zn=["style"];function Fn(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 En(e){for(var n=1;n1,animateOpacity:!0,children:[(0,re.jsx)(u.Box,{paddingTop:2,children:(0,re.jsx)(Qn,{label:"Label Appearance Scale",value:2*n.labelScale,onChange:function(e){return t(Ot(Ot({},n),{},{labelScale:e/2}))}})}),(0,re.jsxs)(u.Box,{paddingTop:2,children:[(0,re.jsx)(Qn,{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 Ot(Ot({},n),{},{labelDynamicStrength:e})}))}}),(0,re.jsx)(nt.UO,{in:n.labelDynamicStrength>0,children:(0,re.jsx)(Qn,{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 Ot(Ot({},n),{},{labelDynamicDegree:e})}))}})})]})]}),(0,re.jsx)(pt,{colorList:W,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,re.jsxs)(u.Box,{children:[(0,re.jsx)(pt,{colorList:W,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,re.jsx)(nt.UO,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,re.jsx)(u.Box,{paddingTop:2,children:(0,re.jsx)(Qn,{label:"Background opacity",value:n.labelBackgroundOpacity,onChange:function(e){console.log(n.labelBackgroundOpacity),t(Ot(Ot({},n),{},{labelBackgroundOpacity:e}))},min:0,max:1,step:.01})})})]}),(0,re.jsx)(Qn,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(Ot(Ot({},n),{},{labelFontSize:e}))}}),(0,re.jsx)(Qn,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(Ot(Ot({},n),{},{labelLength:e}))}}),(0,re.jsx)(Qn,{label:"Max. label line length",value:n.labelWordWrap,min:10,max:100,step:1,onChange:function(e){return t(Ot(Ot({},n),{},{labelWordWrap:e}))}}),(0,re.jsx)(Qn,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(Ot(Ot({},n),{},{labelLineSpace:e}))}})]})},kt=t(67690),St=function(){var e=(0,b.useContext)(nn.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,re.jsxs)(u.Flex,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,re.jsx)(u.Text,{children:"Theme"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,re.jsx)(A.j2,{as:h.Button,size:"sm",colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:n[0]}),(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(u.Box,{height:6,width:6})}),Object.keys(kt.n).map((function(e,n){return(0,re.jsxs)(A.sN,{onClick:function(){return t([e,kt.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,re.jsx)(u.Text,{children:e}),(0,re.jsx)(u.Flex,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(kt.n[e]).map((function(e){return(0,re.jsx)(u.Box,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})};function It(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 Nt(e){for(var n=1;ng.labelLength?[].concat((0,o.Z)(L.slice(0,-1)),["".concat(L.slice(-1),"...")]):L,z=[v,m].includes(c.id)?1+.3*f:1;T.forEach((function(e,n){a.fillText(e,c.x,c.y+z*S*8+g.labelLineSpace*I*n)}))}}}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;n2&&void 0!==arguments[2]?arguments[2]:2e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var l=Fe.current,s=Me.current,c=Ve.current,a=null!==(t=Le.current[n])&&void 0!==t?t:[],u=Object.fromEntries([n].concat((0,o.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&v({nodeIds:[],excludedNodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,i,(function(e){return u[e.id]}))}),50);if(!s.nodeIds.length)return v((function(e){return Mt(Mt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if("add"!==c.localSame)return v((function(e){return Mt(Mt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return u[e]})))return v((function(e){return Mt(Mt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);v((function(e){return Mt(Mt({},e),{},{nodeIds:[].concat((0,o.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50)}};(0,b.useEffect)((function(){_e.current=new O.Z("ws://localhost:35903"),_e.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),_e.current.addEventListener("message",(function(e){var n=Ve.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Be.current;ze.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 Mt(Mt({},e),{},(0,i.Z)({},n.file,[].concat((0,o.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})),o=t.filter((function(e){return 0!==e.level}));return r?o.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})),o=t.filter((function(e){return 0!==e.level}));return r?o.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));Be.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,o.Z)(a),(0,o.Z)(d),(0,o.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Be.current[n]?Be.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),Mt(Mt({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),Mt(Mt({},e),{},{type:"bad"}))}));Be.current=Mt(Mt({},Be.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),Le.current=p.reduce((function(e,n){var t,r,l;return Mt(Mt({},e),{},(l={},(0,i.Z)(l,n.source,[].concat((0,o.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,i.Z)(l,n.target,[].concat((0,o.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,o.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 o=r.replaceAll(/cite:(.*)/g,"$1");return o?Mt(Mt({},e),{},(0,i.Z)({},o,n)):e}),{});var j={nodes:x,links:p},b=We.current;if(0===b.nodes.length){var v=JSON.parse(JSON.stringify(j));return We.current=v,void U(v)}var m=[].concat((0,o.Z)(b.nodes.flatMap((function(e){var n,t=null!==(n=Be.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[Mt(Mt({},e),t)]:[]}))),(0,o.Z)(Object.keys(Be.current).filter((function(e){return!s[e]})).map((function(e){return Be.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return Mt(Mt({},e),{},(0,i.Z)({},r,t))}),{}),C=p.map((function(e){var n=Qt(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return Mt(Mt({},e),{},{source:m[y[r]],target:m[y[o]]})}));U({nodes:m,links:C})}(t.data);case"variables":return Ze(t.data),void console.log(t);case"theme":return Ae(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=K.zoomSpeed,s=K.zoomPadding;Ue("local",t.data.id,r,s),X(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;Ue("zoom",t.data.id,u,d),X(t.data.id);break;case"follow":Ue(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),X(t.data.id);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,b.useEffect)((function(){var e=Fe.current;!e||j.nodeIds.length>1||(j.nodeIds.length||!S.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[j.nodeIds]);var qe=(0,p.iP)(),Ge=(0,l.Z)(qe,2),Xe=Ge[0],Je=Ge[1],Qe=(0,b.useRef)(),Ke=(0,b.useState)(null),$e=Ke[0],Ye=Ke[1],en=(0,b.useState)({left:0,top:0,right:void 0,bottom:void 0}),tn=en[0],rn=en[1],on=(0,a.qY)();(0,a.O3)({ref:Qe,handler:function(){on.onClose()}});var ln=function(e,n,t){rn(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),Ye(e),on.onOpen()},sn=function(e,n){"remove"!==n?"replace"!==n?j.nodeIds.includes(e.id)||v((function(n){return Mt(Mt({},n),{},{nodeIds:[].concat((0,o.Z)(n.nodeIds),[e.id])})})):v({nodeIds:[e.id],excludedNodeIds:[]}):v((function(n){return Mt(Mt({},n),{},{excludedNodeIds:[].concat((0,o.Z)(n.excludedNodeIds),[e.id])})}))},cn=(0,b.useState)({type:"Graph",title:"Graph",icon:(0,re.jsx)(y.DvO,{})}),an=(cn[0],cn[1],Ln("mainWindowWidth",Xe)),un=(0,l.Z)(an,2),dn=un[0],hn=un[1];return console.log(Re),(0,re.jsx)(Kn.Provider,{value:Mt({},Re),children:(0,re.jsxs)(u.Box,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,re.jsx)(Rt,{physics:S,setPhysics:I,threeDim:t,setThreeDim:r,filter:D,setFilter:B,visuals:A,setVisuals:M,mouse:ne,setMouse:te,behavior:K,setBehavior:$,tagColors:g,setTagColors:f,coloring:le,setColoring:se,local:ue,setLocal:de,tags:ze.current}),(0,re.jsx)(u.Box,{position:"absolute",children:_&&(0,re.jsx)(Xt,{nodeById:Be.current,linksByNodeId:Le.current,webSocket:_e.current,variables:Re,physics:S,graphData:_,threeDim:t,emacsNodeId:G,filter:D,visuals:A,behavior:K,mouse:ne,scope:j,setScope:v,tagColors:g,setPreviewNode:je,sidebarHighlightedNode:ke,windowWidth:Xe,windowHeight:Je,openContextMenu:ln,contextMenu:on,handleLocal:sn,mainWindowWidth:dn,setMainWindowWidth:hn,setContextMenuTarget:Ye,graphRef:Fe,clusterRef:He,coloring:le,local:ue})}),(0,re.jsx)(u.Box,{position:"relative",zIndex:4,width:"100%",children:(0,re.jsx)(u.Flex,{className:"headerBar",h:10,flexDir:"column",children:(0,re.jsx)(u.Flex,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,re.jsxs)(u.Flex,{height:"100%",flexDirection:"row",children:[j.nodeIds.length>0&&(0,re.jsx)(d.u,{label:"Return to main graph",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(y.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return v((function(e){return Mt(Mt({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,re.jsx)(d.u,{label:Ne?"Close sidebar":"Open sidebar",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(C.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:Ne?De:Pe})})]})})})}),(0,re.jsx)(u.Box,{position:"relative",zIndex:4,children:(0,re.jsx)(Rn,{isOpen:Ne,onOpen:Pe,onClose:De,previewNode:Oe,setPreviewNode:je,canUndo:ye,canRedo:Ce,previousPreviewNode:ve,nextPreviewNode:me,resetPreviewNode:be,setSidebarHighlightedNode:Se,openContextMenu:ln,scope:j,setScope:v,windowWidth:Xe,tagColors:g,setTagColors:f,filter:D,setFilter:B,macros:Re.katexMacros,attachDir:Re.attachDir||"",useInheritance:Re.useInheritance||!1,nodeById:Be.current,linksByNodeId:Le.current,nodeByCite:Te.current})}),on.isOpen&&(0,re.jsx)("div",{ref:Qe,children:(0,re.jsx)(fe,{scope:j,target:$e,background:!1,coordinates:tn,handleLocal:sn,menuClose:on.onClose.bind(on),webSocket:_e.current,setPreviewNode:je,setFilter:B,filter:D,setTagColors:f,tagColors:g})})]})})}var Xt=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,a=e.threeDim,d=e.linksByNodeId,h=e.filter,p=e.emacsNodeId,j=e.nodeById,v=e.visuals,y=e.behavior,C=e.mouse,O=e.scope,k=e.local,S=(e.setScope,e.webSocket),I=e.tagColors,N=e.setPreviewNode,P=e.sidebarHighlightedNode,D=e.windowWidth,B=e.windowHeight,T=(e.setContextMenuTarget,e.openContextMenu),z=e.contextMenu,F=e.handleLocal,E=e.variables,R=e.clusterRef,Z=e.coloring,H=E.dailyDir,A=(E.roamDir,(0,b.useState)(null)),M=A[0],V=A[1],_=(0,g.Fg)(),q=(0,b.useContext)(nn.N).emacsTheme,G=function(e,n,t){switch(e){case C.preview:N(n);break;case C.local:F(n,y.localSame);break;case C.follow:U(n,S);break;case C.context:T(n,t)}},X=(0,b.useRef)(null);(0,b.useEffect)((function(){p&&V(j[p])}),[p]);var J=(0,b.useRef)({}),Q=(0,b.useRef)({}),K=(0,b.useMemo)((function(){var e;Q.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,o,l=e;return h.dirsBlocklist.length&&h.dirsBlocklist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.dirsAllowlist.length>0&&!h.dirsAllowlist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.tagsBlacklist.length&&h.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}))||h.tagsWhitelist.length>0&&!h.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}))||h.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==h&&void 0!==h&&h.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||h.dailies&&H&&null!==(r=l.file)&&void 0!==r&&r.includes(H)?(Q.current=Mt(Mt({},Q.current),{},(0,i.Z)({},l.id,l)),!1):!h.noter||null===(o=l.properties)||void 0===o||!o.NOTER_PAGE||(Q.current=Mt(Mt({},Q.current),{},(0,i.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!Q.current[e.source]&&!Q.current[e.target]}));return!h.orphans||(h.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=Qt(e),r=(0,l.Z)(n,2),o=r[0],i=r[1];if(!t.includes(o)||!t.includes(i))return!1;var s=e;return h.parent?"heading"===h.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));J.current=r.reduce((function(e,n){var t,r,s,c=n,a=Qt(c),u=(0,l.Z)(a,2),d=u[0],h=u[1];return Mt(Mt({},e),{},(s={},(0,i.Z)(s,d,[].concat((0,o.Z)(null!==(t=e[d])&&void 0!==t?t:[]),[c])),(0,i.Z)(s,h,[].concat((0,o.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{});var c=r.map((function(e){var n=Qt(e),t=(0,l.Z)(n,2);return{target:t[0],source:t[1],weight:"cite"===e.type?1:2}}));if("community"===Z.method){var a=m()().nodes(t).edges(c);R.current=a()}return{nodes:n,links:r}}),[h,s,Z.method]),$=(0,b.useState)({nodes:[],links:[]}),Y=$[0],ee=$[1];(0,b.useEffect)((function(){if(O.nodeIds.length){var e=O.nodeIds.length>1?Y.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]],o=[],i=[e[0]];return Array.from({length:t},(function(){r.forEach((function(e){var t;(null!==(t=J.current[e])&&void 0!==t?t:[]).forEach((function(e){var t=Qt(e),r=(0,l.Z)(t,2),s=r[0],c=r[1];n.some((function(e){return[s,c].includes(e)}))||(i.includes(s)?i.includes(c)||o.push(c):o.push(s))}))})),r=o,o.forEach((function(e){return e&&i.push(e)})),o=[]})),i}(O.nodeIds,O.excludedNodeIds,k.neighbors),r=K.nodes.filter((function(r){var o;return e.length?!n.includes(r.id)&&(null!==(o=J.current[r.id])&&void 0!==o?o:[]).some((function(e){var n=Qt(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return O.nodeIds.includes(r)||O.nodeIds.includes(o)})):t.includes(r.id)})).map((function(e){return Mt(Mt({},e),{},{x:0,y:0,vy:0,vx:0})})),i=[].concat((0,o.Z)(e),(0,o.Z)(r)),s=i.map((function(e){return e.id})),c=(O.nodeIds.length>1?Y.links:[]).filter((function(e){O.excludedNodeIds.some((function(n){return Qt(e).includes(n)}))})),a=K.links.filter((function(e){var t=Qt(e),r=(0,l.Z)(t,2),o=r[0],i=r[1];return!(c.length&&n.includes(i)&&n.includes(o))&&(s.includes(o)&&s.includes(i))})).map((function(e){var n=Qt(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),u=[].concat((0,o.Z)(c),(0,o.Z)(a));ee({nodes:i,links:u})}}),[k.neighbors,h,JSON.stringify(O),JSON.stringify(s),K.links,K.nodes]),(0,b.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,Vt;case 3:o=e.sent,!t.gravityOn||O.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),a&&r.d3Force("z",null)):(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),a&&r.d3Force("z",o.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",o.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?o.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,a,O]),(0,b.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,O.nodeIds.length]);var ne=(0,b.useRef)(0),te=(0,b.useState)(1),oe=te[0],ie=te[1],le=(0,f._7)((function(e){return ie(e)}),{duration:v.animationSpeed,algorithm:L[v.algorithmName]}),se=(0,l.Z)(le,2),ce=se[0],ae=se[1],ue=(0,f._7)((function(e){return ie(Math.min(oe,-1*(e-1)))}),{duration:v.animationSpeed,algorithm:L[v.algorithmName]}),de=(0,l.Z)(ue,2),he=de[0],ge=de[1],fe=(0,b.useMemo)((function(){var e;if(!X.current)return{};var n=J.current[X.current.id];return n?Object.fromEntries([null===(e=X.current)||void 0===e?void 0:e.id].concat((0,o.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[JSON.stringify(X.current),JSON.stringify(J.current)]);(0,b.useEffect)((function(){null!==P&&void 0!==P&&P.id?V(P):V(null)}),[P]);var pe=(0,b.useRef)(null);(0,b.useEffect)((function(){if(X.current=M,M&&(pe.current=M),!v.highlightAnim)return ie(M?1:0);M?ce():(ae(),oe>.5?he():ie(0))}),[M]);var xe=(0,b.useMemo)((function(){return Object.fromEntries(W.map((function(e){var n=Kt(e,_),t=W.map((function(e){return[e,x.Z(n,Kt(e,_))]}));return[e,Object.fromEntries(t)]})))}),[q]),je=(0,b.useMemo)((function(){var e,n,t,r=null!==(e=J.current[null===(n=pe.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=pe.current)||void 0===t?void 0:t.id].concat((0,o.Z)(r.flatMap((function(e){return Qt(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(M),pe.current,J.current]),be=function(e){var n,t,r,o,i,l=null!==(n=null===(t=J.current[e])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return"degree"===Z.method?v.nodeColorScheme[(r=l,o=0,i=v.nodeColorScheme.length-1,Math.min(Math.max(r,o),i))]:v.nodeColorScheme[l&&R.current[e]%v.nodeColorScheme.length]},ve=function(e,n){return J.current[e].length>J.current[n].length?be(e):be(n)},me=(0,b.useMemo)((function(){return Kt(v.labelTextColor,_)}),[v.labelTextColor,q]),ye=(0,b.useMemo)((function(){return Kt(v.labelBackgroundColor,_)}),[v.labelBackgroundColor,q]),Ce=function(e){var n,t=null!==(n=J.current[e.id])&&void 0!==n?n:[],r=t.length?t.filter((function(e){return"parent"===e.type})).length:0,o=3+t.length*v.nodeSizeLinks-(h.parent?0:r);return 1===v.highlightNodeSize?o:o*(fe[e.id]||je[e.id]?1+oe*(v.highlightNodeSize-1):1)},Oe=(0,b.useState)(!1),we=Oe[0],ke=Oe[1],Se=(0,b.useRef)(1),Ie={graphData:O.nodeIds.length?Y:K,width:D,height:B,backgroundColor:Kt(v.backgroundColor,_),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,o=fe[e.id]||je[e.id];if(v.emacsNodeColor&&e.id===p)return Kt(v.emacsNodeColor,n);if(I&&null!==e&&void 0!==e&&e.tags.some((function(e){return I[e]}))){var i=I[null===e||void 0===e?void 0:e.tags.filter((function(e){return I[e]}))[0]];return o?xe[i][i](v.highlightFade*oe):xe[i][v.backgroundColor](v.highlightFade*oe)}return v.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?o?Kt(v.citeNodeColor,n):xe[v.citeNodeColor][v.backgroundColor](v.highlightFade*oe):v.refNodeColor&&e.properties.ROAM_REFS?o?Kt(v.refNodeColor,n):xe[v.refNodeColor][v.backgroundColor](v.highlightFade*oe):o?v.nodeHighlight?xe[be(e.id)][v.nodeHighlight](oe):Kt(be(e.id),n):xe[be(e.id)][v.backgroundColor](v.highlightFade*oe)}(e,_)},nodeRelSize:v.nodeRel,nodeVal:function(e){return Ce(e)/Math.pow(Se.current,v.nodeZoomSize)},nodeCanvasObject:function(e,n,t){Wt(Mt({nodeRel:v.nodeRel,filteredLinksByNodeId:J.current,lastHoverNode:pe.current},{node:e,ctx:n,globalScale:t,highlightedNodes:fe,previouslyHighlightedNodes:je,visuals:v,opacity:oe,nodeSize:Ce,labelTextColor:me,labelBackgroundColor:ye,hoverNode:M}))},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:v.particles?v.particlesNumber:void 0,linkDirectionalArrowLength:v.arrows?v.arrowsLength:void 0,linkDirectionalArrowRelPos:v.arrowsPos,linkDirectionalArrowColor:v.arrowsColor?function(){return Kt(v.arrowsColor,_)}: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,o=Jt(e,X.current),i=Jt(e,pe.current),l=o||i,s=e;return v.refLinkColor&&"ref"===s.type?l&&(v.refLinkHighlightColor||v.linkHighlight)?xe[v.refLinkColor][v.refLinkHighlightColor||v.linkHighlight](oe):xe[v.refLinkColor][v.backgroundColor](v.highlightFade*oe):v.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(v.citeLinkHighlightColor||v.linkHighlight)?xe[v.citeLinkColor][v.citeLinkHighlightColor||v.linkHighlight](oe):xe[v.citeLinkColor][v.backgroundColor](v.highlightFade*oe):function(e,n,t,r){if(!v.linkHighlight&&!v.linkColorScheme&&!t)return Kt(ve(e,n),r);if(!t&&!v.linkColorScheme){var o=ve(e,n);return xe[o][v.backgroundColor](v.highlightFade*oe)}return t?v.linkHighlight||v.linkColorScheme?v.linkHighlight?v.linkColorScheme?xe[v.linkColorScheme][v.linkHighlight](oe):xe[ve(e,n)][v.linkHighlight](oe):Kt(v.linkColorScheme,r):Kt(ve(e,n),r):xe[v.linkColorScheme][v.backgroundColor](v.highlightFade*oe)}(t,r,l,_)},linkWidth:function(e){if(1===v.highlightLinkSize)return v.linkWidth;var n=Jt(e,X.current),t=Jt(e,pe.current);return n||t?v.linkWidth*(1+oe*(v.highlightLinkSize-1)):v.linkWidth},linkDirectionalParticleWidth:v.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-ne.current<200;if(ne.current=n.timeStamp,r)return G("double",t,n);var o=ne.current;return setTimeout((function(){if(ne.current===o)return G("click",t,n)}),200)},onNodeHover:function(e){v.highlight&&(we||(M||(ge(),ie(0)),V(e)))},onNodeRightClick:function(e,n){G("right",e,n)},onNodeDrag:function(e){V(e),ke(!0)},onNodeDragEnd:function(){V(null),ke(!1)}};return(0,re.jsx)(u.Box,{overflow:"hidden",onClick:z.onClose,children:a?(0,re.jsx)(Ut,Mt(Mt({ref:n},Ie),{},{nodeThreeObjectExtend:!0,nodeOpacity:v.nodeOpacity,nodeResolution:v.nodeResolution,linkOpacity:v.linkOpacity,nodeThreeObject:function(e){if(v.labels&&(!(v.labels<3)||fe[e.id])){var n=new w.Z(e.title.substring(0,40));return n.color=Kt(v.labelTextColor,_),n.backgroundColor=Kt(v.labelBackgroundColor,_),n.padding=2,n.textHeight=8,n}}})):(0,re.jsx)(_t,Mt(Mt({ref:n},Ie),{},{linkLineDash:function(e){var n,t=e;return v.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[v.citeDashLength,v.citeGapLength]:v.refDashes&&"ref"==t.type?[v.refDashLength,v.refGapLength]:null}}))})};function Jt(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 Qt(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function Kt(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)}function $t(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,879,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-f954a7866bfdd966749e.js b/out/_next/static/chunks/pages/index-f954a7866bfdd966749e.js new file mode 100644 index 0000000..6f757f9 --- /dev/null +++ b/out/_next/static/chunks/pages/index-f954a7866bfdd966749e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{46587:function(e,n,t){"use strict";t.r(n),t.d(n,{Graph:function(){return tr},GraphPage:function(){return nr},default:function(){return er}});var r=t(30266),o=t(83789),i=t(92809),l=t(80318),s=t(809),c=t.n(s),a=t(97375),d=t(68527),u=t(47398),h=t(68921),g=t(105),f=t(27549),p=t(74376),x=t(52596),j=t(9008),v=t(67294),b=t(32802),m=t.n(b),y=t(47516),C=t(63750),w=t(22003),O=t(31122),k=t(7520),S=t(36194),I=[],N={};for(var P in S.oY)for(var D in S.oY[P]){var B=P+D;"LinearNone"===B&&(B="Linear"),I.push(B),N[B]=S.oY[P][D]}var L=N,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},z={orphans:!1,dailies:!1,parent:"heading",filelessCites:!1,tagsBlacklist:[],tagsWhitelist:[],dirsBlocklist:[],dirsAllowlist:[],bad:!0,nodes:[],links:[],date:[],noter:!0},F={method:"degree"},E={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:I,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},R={follow:"zoom",localSame:"add",zoomPadding:200,zoomSpeed:2e3},Z={highlight:"hover",local:"double",follow:"never",context:"right",preview:"click",backgroundExitsLocal:!1},H={neighbors:1},W=["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"],A=t(57324),M=t(90232),V=t(52072);function _(e,n,t){t.send(JSON.stringify({command:e,data:n}))}function U(e,n){_("open",{id:e.id},n)}var q=t(10219),X=t(44592),G=t(38554),Q=t.n(G),J=t(53869),K=t(99860);function $(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 Y(e){for(var n=1;n0},ce={exit:{size:{duration:.2,ease:ee.ease},opacity:{duration:.3,ease:ee.ease}},enter:{size:{duration:.3,ease:ee.ease},opacity:{duration:.4,ease:ee.ease}}},ae={exit:function(e){var n,t,r=e.animateOpacity,o=e.startingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:se(o)?1:0}),{},(t={overflow:"hidden"},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.exit),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.exit)&&void 0!==n?n:te(ce.exit,c)),t))},enter:function(e){var n,t,r=e.animateOpacity,o=e.endingSize,l=e.transition,s=e.transitionEnd,c=e.delay,a=e.dimension;return le(le({},r&&{opacity:1}),{},(t={},(0,i.Z)(t,a,o),(0,i.Z)(t,"transitionEnd",null===s||void 0===s?void 0:s.enter),(0,i.Z)(t,"transition",null!==(n=null===l||void 0===l?void 0:l.enter)&&void 0!==n?n:ne(ce.enter,c)),t))}},de=v.forwardRef((function(e,n){var t=e.in,r=e.unmountOnExit,o=e.animateOpacity,i=void 0===o||o,s=e.startingSize,c=void 0===s?0:s,a=e.endingSize,d=void 0===a?"auto":a,u=e.dimension,h=void 0===u?"height":u,g=e.style,f=e.className,p=e.transition,x=e.transitionEnd,j=(0,q.Z)(e,oe),b=v.useState(!1),m=(0,l.Z)(b,2),y=m[0],C=m[1];v.useEffect((function(){var e=setTimeout((function(){C(!0)}));return function(){return clearTimeout(e)}}),[]),(0,X.ZK)({condition:Boolean(c>0&&r),message:"startingSize and unmountOnExit are mutually exclusive. You can't use them together"});var w=parseFloat(c.toString())>0,O={startingSize:c,endingSize:d,animateOpacity:i,dimension:h,transition:y?p:{enter:{duration:0}},transitionEnd:Q()(x,{enter:{overflow:"initial"},exit:r?void 0:{display:w?"block":"none"}})},k=!r||t,S=t||r?"enter":"exit";return(0,re.jsx)(J.M,{initial:!1,custom:O,children:k&&(0,re.jsx)(K.E.div,le(le({ref:n},j),{},{className:(0,X.cx)("chakra-collapse",f),style:le({overflow:"hidden",display:"block"},g),custom:O,variants:ae,initial:!!r&&"exit",animate:S,exit:"exit"}))})}));function ue(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 he(e){for(var n=1;n-1,g=u.indexOf(s)>-1,f=(0,a.qY)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{icon:(0,re.jsx)(d.Box,{bgColor:l[s],borderRadius:"sm",height:3,width:3,borderColor:l[s]||"gray.600",borderWidth:1}),closeOnSelect:!1,onClick:f.onToggle,children:(0,re.jsx)(d.Text,{children:"Change color"})}),(0,re.jsx)(de,{in:f.isOpen,children:(0,re.jsxs)(d.Flex,{ml:2,mt:2,flexWrap:"wrap",children:[(0,re.jsx)(d.Box,{children:(0,re.jsx)(d.Box,{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"),W.map((function(e){return(0,re.jsx)(d.Box,{children:(0,re.jsx)(d.Box,{tabIndex:0,cursor:"pointer",onClick:function(){return n(he(he({},l),{},(0,i.Z)({},s,e)))},bgColor:e,m:1,borderRadius:"sm",height:3,width:3})},e)}))]})}),!g&&(0,re.jsx)(A.sN,{onClick:function(){t(h?function(e){return he(he({},e),{},{tagsBlacklist:e.tagsBlacklist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsBlacklist:[].concat((0,o.Z)(e.tagsBlacklist),[s])})})},icon:h?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewOffIcon,{}),children:h?"Remove from blocklist":"Add to blocklist"}),!h&&(0,re.jsx)(A.sN,{onClick:function(){t(g?function(e){return he(he({},e),{},{tagsWhitelist:e.tagsWhitelist.filter((function(e){return e!==s}))})}:function(e){return he(he({},e),{},{tagsWhitelist:[].concat((0,o.Z)(e.tagsWhitelist),[s])})})},icon:g?(0,re.jsx)(V.MinusIcon,{}):(0,re.jsx)(V.ViewIcon,{}),children:g?"Remove from allowlist":"Add to allowlist"})]})},fe=function(e){e.background;var n,t,r=e.target,o=(e.nodeType,e.coordinates),i=e.handleLocal,l=e.menuClose,s=e.scope,c=e.webSocket,u=e.setPreviewNode,g=e.setTagColors,f=e.tagColors,p=e.setFilter,x=e.filter,j=(0,a.qY)(),b=j.isOpen,m=j.onOpen,C=j.onClose;(0,v.useRef)();return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.v2,{defaultIsOpen:!0,closeOnBlur:!1,onClose:function(){return l()},children:(0,re.jsx)(A.qy,{zIndex:"overlay",bgColor:"white",color:"black",position:"absolute",left:o.left,top:o.top,right:o.right,bottom:o.bottom,fontSize:"xs",boxShadow:"xl",children:"string"!==typeof r?(0,re.jsxs)(re.Fragment,{children:[r&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(d.Heading,{size:"xs",isTruncated:!0,px:3,py:1,children:r.title}),(0,re.jsx)(A.R,{borderColor:"gray.500"})]}),0!==s.nodeIds.length&&(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(A.sN,{onClick:function(){return i(r,"add")},icon:(0,re.jsx)(V.PlusSquareIcon,{}),children:"Expand local graph at node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"replace")},icon:(0,re.jsx)(y.DvO,{}),children:"Open local graph for this node"}),(0,re.jsx)(A.sN,{onClick:function(){return i(r,"remove")},icon:(0,re.jsx)(V.MinusIcon,{}),children:"Exclude node from local graph"})]}),null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.FILELESS?(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.AddIcon,{}),onClick:function(){return function(e,n){_("create",{id:e.id,title:e.title,ref:e.properties.ROAM_REFS},n)}(r,c)},children:"Create node"}):(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.EditIcon,{}),onClick:function(){return U(r,c)},children:"Open in Emacs"}),(null===r||void 0===r||null===(t=r.properties)||void 0===t?void 0:t.ROAM_REFS)&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ExternalLinkIcon,{}),children:"Open in Zotero"}),0===s.nodeIds.length&&(0,re.jsx)(A.sN,{icon:(0,re.jsx)(y.DvO,{}),onClick:function(){return i(r,"replace")},children:"Open local graph"}),(0,re.jsx)(A.sN,{icon:(0,re.jsx)(V.ViewIcon,{}),onClick:function(){u(r)},children:"Preview"}),0===(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(A.sN,{closeOnSelect:!1,icon:(0,re.jsx)(V.DeleteIcon,{color:"red.500"}),color:"red.500",onClick:m,children:"Permanently delete note"})]}):(0,re.jsx)(ge,{target:r,tagColors:f,filter:x,setTagColors:g,setFilter:p})})}),"string"!==typeof r&&(0,re.jsxs)(M.u_,{isCentered:!0,isOpen:b,onClose:C,children:[(0,re.jsx)(M.ZA,{}),(0,re.jsxs)(M.hz,{zIndex:"popover",children:[(0,re.jsx)(M.xB,{children:"Delete node?"}),(0,re.jsx)(M.ol,{}),(0,re.jsx)(M.fe,{children:(0,re.jsxs)(d.VStack,{spacing:4,display:"flex",alignItems:"flex-start",children:[(0,re.jsx)(d.Text,{children:"This will permanently delete your note:"}),(0,re.jsx)(d.Text,{fontWeight:"bold",children:null===r||void 0===r?void 0:r.title}),0!==(null===r||void 0===r?void 0:r.level)&&(0,re.jsx)(d.Text,{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,re.jsx)(d.Text,{children:"Are you sure you want to do continue?"})]})}),(0,re.jsxs)(M.mz,{children:[(0,re.jsx)(h.Button,{mr:3,onClick:function(){console.log("closing"),C(),l()},children:"Cancel"}),(0,re.jsx)(h.Button,{variant:"link",colorScheme:"red",ml:3,onClick:function(){console.log("aaaaa"),function(e,n){0===e.level&&_("delete",{id:e.id,file:e.file},n)}(r,c),C(),l()},children:"Delete node"})]})]})]})]})},pe=t(5434),xe=t(51649),je=function(e){var n=e.setJustification,t=(e.setIndent,e.setFont,e.justification),r=(e.setPreviewNode,e.canUndo),o=e.canRedo,i=(e.resetPreviewNode,e.previousPreviewNode),l=e.nextPreviewNode,s=e.outline,c=e.setOutline,a=e.collapse,g=e.setCollapse;return(0,re.jsxs)(d.Flex,{flex:"0 1 40px",pb:3,alignItems:"center",justifyContent:"space-between",pr:1,children:[(0,re.jsx)(d.Flex,{children:(0,re.jsxs)(h.ButtonGroup,{isAttached:!0,children:[(0,re.jsx)(u.u,{label:"Go backward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronLeftIcon,{}),"aria-label":"Previous node",disabled:!r,onClick:function(){return i()}})}),(0,re.jsx)(u.u,{label:"Go forward",children:(0,re.jsx)(h.IconButton,{_focus:{},variant:"subtle",icon:(0,re.jsx)(V.ChevronRightIcon,{}),"aria-label":"Next node",disabled:!o,onClick:function(){return l()}})})]})}),(0,re.jsxs)(d.Flex,{children:[(0,re.jsx)(u.u,{label:"Justify content",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:[(0,re.jsx)(y.v9V,{},"justify"),(0,re.jsx)(y.YSr,{},"left"),(0,re.jsx)(y.RXA,{},"right"),(0,re.jsx)(y.tr_,{},"center")][t],onClick:function(){return n((function(e){return(e+1)%4}))}})}),(0,re.jsx)(u.u,{label:"Toggle outline view",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Justify content",icon:s?(0,re.jsx)(xe.XQM,{}):(0,re.jsx)(xe.JfF,{}),onClick:function(){return c((function(e){return!e}))}})}),(0,re.jsx)(u.u,{label:"Toggle headers",children:(0,re.jsx)(h.IconButton,{variant:"subtle","aria-label":"Toggle headers",icon:a?(0,re.jsx)(pe.omV,{}):(0,re.jsx)(pe.egf,{}),onClick:function(){return g((function(e){return!e}))}})})]})]})},ve=t(96356);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 me(e){for(var n=1;n div > p":{mb:2},p:{fontWeight:500,fontSize:14,pb:2}},on={".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"}},ln=t(86658),sn=function(e,n){return e.split(".").reduce((function(e,n){return e[n]}),n.colors)},cn=["style"];function an(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 dn(e){for(var n=1;n0?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronUpIcon,{}),onClick:function(){return i(!o)},height:2,width:2}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_focus:{},_active:{},"aria-label":"Expand heading",size:"xs",variant:"subtle",icon:(0,re.jsx)(vn.zOz,{}),onClick:function(){return i(!o)},height:2,width:2})]}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(h.IconButton,{className:"viewerHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(V.ChevronDownIcon,{}),onClick:function(){return i(!o)}}),(0,re.jsx)(h.IconButton,{className:"outlineHeadingButton",_active:{},_focus:{},"aria-label":"Collapse heading",height:2,width:2,size:"xs",variant:"subtle",icon:(0,re.jsx)(vn.O6Y,{}),onClick:function(){return i(!o)}})]}),s[0]]})}),o&&(0,re.jsx)(d.Box,{className:"sectionContent",children:s.slice(1)})]})};function yn(e){return["object"===typeof e.source?e.source.id:e.source,"object"===typeof e.target?e.target.id:e.target]}function Cn(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 wn(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},o=Fn(e,null!==(t=r.storage)&&void 0!==t?t:localStorage),i=o.get(),l=void 0!==i?i:n,s=null!=i&&"object"===typeof i&&!1===Array.isArray(i)?Tn(Tn({},n),i):l;s!==i&&o.update(s);var c=(0,v.useState)(s),a=c[0],d=c[1];(0,v.useEffect)((function(){a!==s&&d(s)}),[e]);var u=function(e){e instanceof Function?d((function(n){var t=e(n);return o.update(t),t})):(d(e),o.update(e))};return[a,u]}function Fn(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 En=["style"];function Rn(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 Zn(e){for(var n=1;n1,animateOpacity:!0,children:[(0,re.jsx)(d.Box,{paddingTop:2,children:(0,re.jsx)($n,{label:"Label Appearance Scale",value:2*n.labelScale,onChange:function(e){return t(kt(kt({},n),{},{labelScale:e/2}))}})}),(0,re.jsxs)(d.Box,{paddingTop:2,children:[(0,re.jsx)($n,{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,re.jsx)(rt.UO,{in:n.labelDynamicStrength>0,children:(0,re.jsx)($n,{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,re.jsx)(jt,{colorList:W,label:"Text",setVisuals:t,value:"labelTextColor",visValue:n.labelTextColor}),(0,re.jsxs)(d.Box,{children:[(0,re.jsx)(jt,{colorList:W,label:"Background",setVisuals:t,value:"labelBackgroundColor",visValue:n.labelBackgroundColor}),(0,re.jsx)(rt.UO,{in:!!n.labelBackgroundColor,animateOpacity:!0,children:(0,re.jsx)(d.Box,{paddingTop:2,children:(0,re.jsx)($n,{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,re.jsx)($n,{label:"Label font size",value:n.labelFontSize,min:5,max:20,step:.5,onChange:function(e){return t(kt(kt({},n),{},{labelFontSize:e}))}}),(0,re.jsx)($n,{label:"Max. label characters",value:n.labelLength,min:10,max:100,step:1,onChange:function(e){return t(kt(kt({},n),{},{labelLength:e}))}}),(0,re.jsx)($n,{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,re.jsx)($n,{label:"Space between label lines",value:n.labelLineSpace,min:.2,max:3,step:.1,onChange:function(e){return t(kt(kt({},n),{},{labelLineSpace:e}))}})]})},It=t(67690),Nt=function(){var e=(0,v.useContext)(nn.N),n=e.emacsTheme,t=e.setEmacsTheme;e.highlightColor;return(0,re.jsxs)(d.Flex,{alignItems:"center",justifyContent:"space-between",pl:7,pr:2,children:[(0,re.jsx)(d.Text,{children:"Theme"}),(0,re.jsxs)(A.v2,{isLazy:!0,placement:"bottom",closeOnSelect:!1,children:[(0,re.jsx)(A.j2,{as:h.Button,size:"sm",colorScheme:"",color:"black",rightIcon:(0,re.jsx)(V.ChevronDownIcon,{}),children:n[0]}),(0,re.jsxs)(A.qy,{minW:10,zIndex:"popover",bgColor:"gray.200",children:[(0,re.jsx)(A.sN,{onClick:function(){return""},justifyContent:"space-between",alignItems:"center",display:"flex",children:(0,re.jsx)(d.Box,{height:6,width:6})}),Object.keys(It.n).map((function(e,n){return(0,re.jsxs)(A.sN,{onClick:function(){return t([e,It.n[e]])},justifyContent:"space-between",alignItems:"center",display:"flex",children:[(0,re.jsx)(d.Text,{children:e}),(0,re.jsx)(d.Flex,{height:6,width:20,flexDirection:"column",flexWrap:"wrap",children:Object.values(It.n[e]).map((function(e){return(0,re.jsx)(d.Box,{bgColor:e,flex:"1 1 8px"},e)}))})]},e)}))]})]})]})};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 Dt(e){for(var n=1;ng.labelLength?[].concat((0,o.Z)(B.slice(0,-1)),["".concat(B.slice(-1),"...")]):B,T=[v,b].includes(c.id)?1+.3*f:1;L.forEach((function(e,n){a.fillText(e,c.x,c.y+T*k*8+g.labelLineSpace*S*n)}))}}}var qt=function(e){var n,t,r,o,i,l=e.id,s=e.linksByNodeId,c=e.visuals,a=e.coloring,d=e.cluster,u=null!==(n=null===(t=s[l])||void 0===t?void 0:t.length)&&void 0!==n?n:0;return"degree"===a.method?c.nodeColorScheme[(r=u,o=0,i=c.nodeColorScheme.length-1,Math.min(Math.max(r,o),i))]:c.nodeColorScheme[u&&d[l]%c.nodeColorScheme.length]},Xt=function(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)},Gt=function(e){var n=e.sourceId,t=e.targetId,r=e.linksByNodeId,o=e.visuals,i=e.coloring,l=e.cluster;return r[n].length>r[t].length?qt({id:n,linksByNodeId:r,visuals:o,cluster:l,coloring:i}):qt({id:t,visuals:o,linksByNodeId:r,cluster:l,coloring:i})};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 Jt(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:2e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:200;if("color"!==e){var l=Fe.current,s=Me.current,c=Ve.current,a=null!==(t=Le.current[n])&&void 0!==t?t:[],d=Object.fromEntries([n].concat((0,o.Z)(a.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]})));if("zoom"===e)return s.nodeIds.length&&b({nodeIds:[],excludedNodeIds:[]}),void setTimeout((function(){return l.zoomToFit(r,i,(function(e){return d[e.id]}))}),50);if(!s.nodeIds.length)return b((function(e){return Jt(Jt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if("add"!==c.localSame)return b((function(e){return Jt(Jt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);if(!s.nodeIds.includes(n)||!s.nodeIds.some((function(e){return d[e]})))return b((function(e){return Jt(Jt({},e),{},{nodeIds:[n]})})),void setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50);b((function(e){return Jt(Jt({},e),{},{nodeIds:[].concat((0,o.Z)(e.nodeIds),[n])})})),setTimeout((function(){l.centerAt(0,0,10),l.zoomToFit(1,i)}),50)}};(0,v.useEffect)((function(){_e.current=new w.Z("ws://localhost:35903"),_e.current.addEventListener("open",(function(){console.log("Connection with Emacs established")})),_e.current.addEventListener("message",(function(e){var n=Ve.current,t=JSON.parse(e.data);switch(t.type){case"graphdata":return function(e){var n,t,r,s=Be.current;ze.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:[],d=c.reduce((function(e,n){var t;return Jt(Jt({},e),{},(0,i.Z)({},n.file,[].concat((0,o.Z)(null!==(t=e[n.file])&&void 0!==t?t:[]),[n])))}),{}),u=Object.keys(d).flatMap((function(e){var n,t=null!==(n=d[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),o=t.filter((function(e){return 0!==e.level}));return r?o.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(d).flatMap((function(e){var n,t=null!==(n=d[e])&&void 0!==n?n:[],r=t.find((function(e){return 0===e.level})),o=t.filter((function(e){return 0!==e.level}));return r?o.map((function(e){return{source:e.id,target:r.id,type:"parent"}})):[]}));Be.current=Object.fromEntries(c.map((function(e){return[e.id,e]})));var g=[].concat((0,o.Z)(a),(0,o.Z)(u),(0,o.Z)(h)),f=[],p=g.map((function(e){var n=e.source,t=e.target;return Be.current[n]?Be.current[t]?e:(f.push({id:t,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:t,level:0,pos:0,olp:null}),Jt(Jt({},e),{},{type:"bad"})):(f.push({id:n,tags:["bad"],properties:{FILELESS:"yes",bad:"yes"},file:"",title:n,level:0,pos:0,olp:null}),Jt(Jt({},e),{},{type:"bad"}))}));Be.current=Jt(Jt({},Be.current),Object.fromEntries(f.map((function(e){return[e.id,e]})))),Le.current=p.reduce((function(e,n){var t,r,l;return Jt(Jt({},e),{},(l={},(0,i.Z)(l,n.source,[].concat((0,o.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,i.Z)(l,n.target,[].concat((0,o.Z)(null!==(r=e[n.target])&&void 0!==r?r:[]),[n])),l))}),{});var x=[].concat((0,o.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 o=r.replaceAll(/cite:(.*)/g,"$1");return o?Jt(Jt({},e),{},(0,i.Z)({},o,n)):e}),{});var j={nodes:x,links:p},v=We.current;if(0===v.nodes.length){var b=JSON.parse(JSON.stringify(j));return We.current=b,void U(b)}var m=[].concat((0,o.Z)(v.nodes.flatMap((function(e){var n,t=null!==(n=Be.current[null===e||void 0===e?void 0:e.id])&&void 0!==n&&n;return t?[Jt(Jt({},e),t)]:[]}))),(0,o.Z)(Object.keys(Be.current).filter((function(e){return!s[e]})).map((function(e){return Be.current[e]})))),y=m.reduce((function(e,n,t){var r=null===n||void 0===n?void 0:n.id;return Jt(Jt({},e),{},(0,i.Z)({},r,t))}),{}),C=p.map((function(e){var n=yn(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return Jt(Jt({},e),{},{source:m[y[r]],target:m[y[o]]})}));U({nodes:m,links:C})}(t.data);case"variables":return Ze(t.data),void console.log(t);case"theme":return Ae(["custom",t.data]);case"command":switch(t.data.commandName){case"local":var r=K.zoomSpeed,s=K.zoomPadding;Ue("local",t.data.id,r,s),G(t.data.id);break;case"zoom":var c,a,d=(null===t||void 0===t||null===(c=t.data)||void 0===c?void 0:c.speed)||n.zoomSpeed,u=(null===t||void 0===t||null===(a=t.data)||void 0===a?void 0:a.padding)||n.zoomPadding;Ue("zoom",t.data.id,d,u),G(t.data.id);break;case"follow":Ue(n.follow,t.data.id,n.zoomSpeed,n.zoomPadding),G(t.data.id);break;case"change-local-graph":var h=Be.current[t.data.id];if(!h)break;console.log(t),sn(h,t.data.manipulation);break;default:return console.error("unknown message type",t.type)}}}))}),[]),(0,v.useEffect)((function(){var e=Fe.current;!e||j.nodeIds.length>1||(j.nodeIds.length||!S.gravityOn?setTimeout((function(){e.zoomToFit(5,200)}),50):e.zoomToFit())}),[j.nodeIds]);var qe=(0,p.iP)(),Xe=(0,l.Z)(qe,2),Ge=Xe[0],Qe=Xe[1],Je=(0,v.useRef)(),Ke=(0,v.useState)(null),$e=Ke[0],Ye=Ke[1],en=(0,v.useState)({left:0,top:0,right:void 0,bottom:void 0}),tn=en[0],rn=en[1],on=(0,a.qY)();(0,a.O3)({ref:Je,handler:function(){on.onClose()}});var ln=function(e,n,t){rn(t||{left:n.pageX,top:n.pageY,right:void 0,bottom:void 0}),Ye(e),on.onOpen()},sn=function(e,n){"remove"!==n?"replace"!==n?j.nodeIds.includes(e.id)||b((function(n){return{excludedNodeIds:n.excludedNodeIds.filter((function(n){return n!==e.id})),nodeIds:[].concat((0,o.Z)(n.nodeIds),[e.id])}})):b({nodeIds:[e.id],excludedNodeIds:[]}):b((function(n){return{nodeIds:n.nodeIds.filter((function(n){return n!==e.id})),excludedNodeIds:[].concat((0,o.Z)(n.excludedNodeIds),[e.id])}}))},cn=zn("mainWindowWidth",Ge),an=(0,l.Z)(cn,2),dn=an[0],un=an[1];return(0,re.jsx)(Yn.Provider,{value:Jt({},Re),children:(0,re.jsxs)(d.Box,{display:"flex",alignItems:"flex-start",flexDirection:"row",height:"100vh",overflow:"clip",children:[(0,re.jsx)(Ht,{physics:S,setPhysics:I,threeDim:t,setThreeDim:r,filter:D,setFilter:B,visuals:A,setVisuals:M,mouse:ne,setMouse:te,behavior:K,setBehavior:$,tagColors:g,setTagColors:f,coloring:le,setColoring:se,local:de,setLocal:ue,tags:ze.current}),(0,re.jsx)(d.Box,{position:"absolute",children:_&&(0,re.jsx)(tr,{nodeById:Be.current,linksByNodeId:Le.current,webSocket:_e.current,variables:Re,physics:S,graphData:_,threeDim:t,emacsNodeId:X,filter:D,visuals:A,behavior:K,mouse:ne,scope:j,setScope:b,tagColors:g,setPreviewNode:je,sidebarHighlightedNode:ke,windowWidth:Ge,windowHeight:Qe,openContextMenu:ln,contextMenu:on,handleLocal:sn,mainWindowWidth:dn,setMainWindowWidth:un,setContextMenuTarget:Ye,graphRef:Fe,clusterRef:He,coloring:le,local:de})}),(0,re.jsx)(d.Box,{position:"relative",zIndex:4,width:"100%",children:(0,re.jsx)(d.Flex,{className:"headerBar",h:10,flexDir:"column",children:(0,re.jsx)(d.Flex,{alignItems:"center",h:10,justifyContent:"flex-end",children:(0,re.jsxs)(d.Flex,{height:"100%",flexDirection:"row",children:[j.nodeIds.length>0&&(0,re.jsx)(u.u,{label:"Return to main graph",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(y.DvO,{}),"aria-label":"Exit local mode",onClick:function(){return b((function(e){return Jt(Jt({},e),{},{nodeIds:[]})}))},variant:"subtle"})}),(0,re.jsx)(u.u,{label:Ne?"Close sidebar":"Open sidebar",children:(0,re.jsx)(h.IconButton,{m:1,icon:(0,re.jsx)(C.iBV,{}),"aria-label":"Close file-viewer",variant:"subtle",onClick:Ne?De:Pe})})]})})})}),(0,re.jsx)(d.Box,{position:"relative",zIndex:4,children:(0,re.jsx)(Hn,{isOpen:Ne,onOpen:Pe,onClose:De,previewNode:we,setPreviewNode:je,canUndo:ye,canRedo:Ce,previousPreviewNode:be,nextPreviewNode:me,resetPreviewNode:ve,setSidebarHighlightedNode:Se,openContextMenu:ln,scope:j,setScope:b,windowWidth:Ge,tagColors:g,setTagColors:f,filter:D,setFilter:B,macros:Re.katexMacros,attachDir:Re.attachDir||"",useInheritance:Re.useInheritance||!1,nodeById:Be.current,linksByNodeId:Le.current,nodeByCite:Te.current})}),on.isOpen&&(0,re.jsx)("div",{ref:Je,children:(0,re.jsx)(fe,{scope:j,target:$e,background:!1,coordinates:tn,handleLocal:sn,menuClose:on.onClose.bind(on),webSocket:_e.current,setPreviewNode:je,setFilter:B,filter:D,setTagColors:f,tagColors:g})})]})})}var tr=function(e){var n=e.graphRef,t=e.physics,s=e.graphData,a=e.threeDim,u=e.linksByNodeId,h=e.filter,p=e.emacsNodeId,j=e.nodeById,b=e.visuals,y=e.behavior,C=e.mouse,w=e.scope,k=e.local,S=(e.setScope,e.webSocket),I=e.tagColors,N=e.setPreviewNode,P=e.sidebarHighlightedNode,D=e.windowWidth,B=e.windowHeight,T=(e.setContextMenuTarget,e.openContextMenu),z=e.contextMenu,F=e.handleLocal,E=e.variables,R=e.clusterRef,Z=e.coloring,H=E.dailyDir,A=(E.roamDir,(0,v.useState)(null)),M=A[0],V=A[1],_=(0,g.Fg)(),q=(0,v.useContext)(nn.N).emacsTheme,X=function(e,n,t){switch(e){case C.preview:N(n);break;case C.local:F(n,y.localSame);break;case C.follow:U(n,S);break;case C.context:T(n,t)}},G=(0,v.useRef)(null);(0,v.useEffect)((function(){p&&V(j[p])}),[p]);var Q=(0,v.useRef)({}),J=(0,v.useRef)({}),K=(0,v.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,o,l=e;return h.dirsBlocklist.length&&h.dirsBlocklist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.dirsAllowlist.length>0&&!h.dirsAllowlist.some((function(e){var n;return null===l||void 0===l||null===(n=l.file)||void 0===n?void 0:n.includes(e)}))||h.tagsBlacklist.length&&h.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}))||h.tagsWhitelist.length>0&&!h.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}))||h.filelessCites&&null!==l&&void 0!==l&&null!==(n=l.properties)&&void 0!==n&&n.FILELESS||null!==h&&void 0!==h&&h.bad&&null!==l&&void 0!==l&&null!==(t=l.properties)&&void 0!==t&&t.bad||h.dailies&&H&&null!==(r=l.file)&&void 0!==r&&r.includes(H)?(J.current=Jt(Jt({},J.current),{},(0,i.Z)({},l.id,l)),!1):!h.noter||null===(o=l.properties)||void 0===o||!o.NOTER_PAGE||(J.current=Jt(Jt({},J.current),{},(0,i.Z)({},l.id,l)),!1)})).filter((function(e){var n,t=(null!==(n=u[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!h.orphans||(h.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=yn(e),r=(0,l.Z)(n,2),o=r[0],i=r[1];if(!t.includes(o)||!t.includes(i))return!1;var s=e;return h.parent?"heading"===h.parent?"parent"!==s.type:"heading"!==s.type:!["parent","heading"].includes(s.type)}));Q.current=r.reduce((function(e,n){var t,r,s,c=n,a=yn(c),d=(0,l.Z)(a,2),u=d[0],h=d[1];return Jt(Jt({},e),{},(s={},(0,i.Z)(s,u,[].concat((0,o.Z)(null!==(t=e[u])&&void 0!==t?t:[]),[c])),(0,i.Z)(s,h,[].concat((0,o.Z)(null!==(r=e[h])&&void 0!==r?r:[]),[c])),s))}),{});var c=r.map((function(e){var n=yn(e),t=(0,l.Z)(n,2);return{target:t[0],source:t[1],weight:"cite"===e.type?1:2}}));if("community"===Z.method){var a=m()().nodes(t).edges(c);R.current=a()}return{nodes:n,links:r}}),[h,s,Z.method]),$=(0,v.useState)({nodes:[],links:[]}),Y=$[0],ee=$[1];(0,v.useEffect)((function(){if(w.nodeIds.length){var e=w.nodeIds.length>1?Y.nodes.filter((function(e){return!w.excludedNodeIds.includes(e.id)})):[],n=e.map((function(e){return e.id})),t=function(e){var n=e.ids,t=e.excludedIds,r=e.n,o=e.linksByNodeId,i=[n[0]],s=[],c=[n[0]];return Array.from({length:r},(function(){i.forEach((function(e){var n;(null!==(n=o[e])&&void 0!==n?n:[]).forEach((function(e){var n=yn(e),r=(0,l.Z)(n,2),o=r[0],i=r[1];t.some((function(e){return[o,i].includes(e)}))||(c.includes(o)?c.includes(i)||s.push(i):s.push(o))}))})),i=s,s.forEach((function(e){return e&&c.push(e)})),s=[]})),c}({ids:w.nodeIds,excludedIds:w.excludedNodeIds,n:k.neighbors,linksByNodeId:Q.current}),r=K.nodes.filter((function(r){var o;return e.length?!n.includes(r.id)&&(null!==(o=Q.current[r.id])&&void 0!==o?o:[]).some((function(e){var n=yn(e),t=(0,l.Z)(n,2),r=t[0],o=t[1];return!w.excludedNodeIds.includes(r)&&!w.excludedNodeIds.includes(o)&&(w.nodeIds.includes(r)||w.nodeIds.includes(o))})):t.includes(r.id)})).map((function(e){return Jt(Jt({},e),{},{x:0,y:0,vy:0,vx:0})})),i=[].concat((0,o.Z)(e),(0,o.Z)(r)),s=i.map((function(e){return e.id})),c=(w.nodeIds.length>1?Y.links:[]).filter((function(e){w.excludedNodeIds.some((function(n){return yn(e).includes(n)}))})),a=K.links.filter((function(e){var t=yn(e),r=(0,l.Z)(t,2),o=r[0],i=r[1];return!(c.length&&n.includes(i)&&n.includes(o))&&(s.includes(o)&&s.includes(i))})).map((function(e){var n=yn(e),t=(0,l.Z)(n,2);return{source:t[0],target:t[1]}})),d=[].concat((0,o.Z)(c),(0,o.Z)(a));ee({nodes:i,links:d})}}),[k.neighbors,h,w,w.excludedNodeIds,w.nodeIds,s,K.links,K.nodes]),(0,v.useEffect)((function(){(0,r.Z)(c().mark((function e(){var r,o;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.current,e.next=3,Kt;case 3:o=e.sent,!t.gravityOn||w.nodeIds.length&&!t.gravityLocal?(r.d3Force("x",null),r.d3Force("y",null),a&&r.d3Force("z",null)):(r.d3Force("x",o.forceX().strength(t.gravity)),r.d3Force("y",o.forceY().strength(t.gravity)),a&&r.d3Force("z",o.forceZ().strength(t.gravity))),t.centering?r.d3Force("center",o.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?o.forceCollide().radius(t.collisionStrength):null);case 10:case"end":return e.stop()}}),e)})))()}),[t,a,w]),(0,v.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.d3ReheatSimulation()}),[t,w.nodeIds.length]);var ne=(0,v.useRef)(0),te=(0,v.useState)(1),oe=te[0],ie=te[1],le=(0,f._7)((function(e){return ie(e)}),{duration:b.animationSpeed,algorithm:L[b.algorithmName]}),se=(0,l.Z)(le,2),ce=se[0],ae=se[1],de=(0,f._7)((function(e){return ie(Math.min(oe,-1*(e-1)))}),{duration:b.animationSpeed,algorithm:L[b.algorithmName]}),ue=(0,l.Z)(de,2),he=ue[0],ge=ue[1],fe=(0,v.useMemo)((function(){var e;if(!G.current)return{};var n=Q.current[G.current.id];return n?Object.fromEntries([null===(e=G.current)||void 0===e?void 0:e.id].concat((0,o.Z)(n.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}),[G.current,Q.current]);(0,v.useEffect)((function(){null!==P&&void 0!==P&&P.id?V(P):V(null)}),[P]);var pe=(0,v.useRef)(null);(0,v.useEffect)((function(){if(G.current=M,M&&(pe.current=M),!b.highlightAnim)return ie(M?1:0);M?ce():(ae(),oe>.5?he():ie(0))}),[M]);var xe=(0,v.useMemo)((function(){return Object.fromEntries(W.map((function(e){var n=sn(e,_),t=W.map((function(e){return[e,x.Z(n,sn(e,_))]}));return[e,Object.fromEntries(t)]})))}),[q]),je=(0,v.useMemo)((function(){var e,n,t,r=null!==(e=Q.current[null===(n=pe.current)||void 0===n?void 0:n.id])&&void 0!==e?e:[];return Object.fromEntries([null===(t=pe.current)||void 0===t?void 0:t.id].concat((0,o.Z)(r.flatMap((function(e){return yn(e)})))).map((function(e){return[e,{}]})))}),[JSON.stringify(M),pe.current,Q.current]),ve=(0,v.useMemo)((function(){return sn(b.labelTextColor,_)}),[b.labelTextColor,q]),be=(0,v.useMemo)((function(){return sn(b.labelBackgroundColor,_)}),[b.labelBackgroundColor,q]),me=(0,v.useState)(!1),ye=me[0],Ce=me[1],we=(0,v.useRef)(1),Oe={graphData:w.nodeIds.length?Y:K,width:D,height:B,backgroundColor:sn(b.backgroundColor,_),warmupTicks:1===w.nodeIds.length?100:w.nodeIds.length>1?20:0,onZoom:function(e){var n=e.k;e.x,e.y;return we.current=n},nodeColor:function(e){return function(e){var n,t,r=e.node,o=e.theme,i=e.highlightedNodes,l=e.previouslyHighlightedNodes,s=e.visuals,c=e.tagColors,a=e.highlightColors,d=e.opacity,u=e.emacsNodeId,h=e.linksByNodeId,g=e.cluster,f=e.coloring,p=i[r.id]||l[r.id];if(s.emacsNodeColor&&r.id===u)return sn(s.emacsNodeColor,o);if(c&&null!==r&&void 0!==r&&r.tags.some((function(e){return c[e]}))){var x=c[null===r||void 0===r?void 0:r.tags.filter((function(e){return c[e]}))[0]];return p?a[x][x](s.highlightFade*d):a[x][s.backgroundColor](s.highlightFade*d)}return s.citeNodeColor&&null!==r&&void 0!==r&&null!==(n=r.properties)&&void 0!==n&&n.ROAM_REFS&&null!==r&&void 0!==r&&null!==(t=r.properties)&&void 0!==t&&t.FILELESS?p?sn(s.citeNodeColor,o):a[s.citeNodeColor][s.backgroundColor](s.highlightFade*d):s.refNodeColor&&r.properties.ROAM_REFS?p?sn(s.refNodeColor,o):a[s.refNodeColor][s.backgroundColor](s.highlightFade*d):p?s.nodeHighlight?a[qt({id:r.id,cluster:g,coloring:f,linksByNodeId:h,visuals:s})][s.nodeHighlight](d):sn(qt({id:r.id,cluster:g,coloring:f,linksByNodeId:h,visuals:s}),o):a[qt({id:r.id,cluster:g,coloring:f,linksByNodeId:h,visuals:s})][s.backgroundColor](s.highlightFade*d)}({node:e,theme:_,visuals:b,cluster:R.current,coloring:Z,emacsNodeId:p,highlightColors:xe,highlightedNodes:fe,previouslyHighlightedNodes:je,linksByNodeId:Q.current,opacity:oe,tagColors:I})},nodeRelSize:b.nodeRel,nodeVal:function(e){return Vt({node:e,highlightedNodes:fe,linksByNodeId:Q.current,opacity:oe,previouslyHighlightedNodes:je,visuals:b})/Math.pow(we.current,b.nodeZoomSize)},nodeCanvasObject:function(e,n,t){Ut(Jt({nodeRel:b.nodeRel,filteredLinksByNodeId:Q.current,lastHoverNode:pe.current},{node:e,ctx:n,globalScale:t,highlightedNodes:fe,previouslyHighlightedNodes:je,visuals:b,opacity:oe,labelTextColor:ve,labelBackgroundColor:be,hoverNode:M}))},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:b.particles?b.particlesNumber:void 0,linkDirectionalArrowLength:b.arrows?b.arrowsLength:void 0,linkDirectionalArrowRelPos:b.arrowsPos,linkDirectionalArrowColor:b.arrowsColor?function(){return sn(b.arrowsColor,_)}: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,o=Xt(e,G.current),i=Xt(e,pe.current),l=o||i,s=e;return b.refLinkColor&&"ref"===s.type?l&&(b.refLinkHighlightColor||b.linkHighlight)?xe[b.refLinkColor][b.refLinkHighlightColor||b.linkHighlight](oe):xe[b.refLinkColor][b.backgroundColor](b.highlightFade*oe):b.citeLinkColor&&null!==(n=s.type)&&void 0!==n&&n.includes("cite")?l&&(b.citeLinkHighlightColor||b.linkHighlight)?xe[b.citeLinkColor][b.citeLinkHighlightColor||b.linkHighlight](oe):xe[b.citeLinkColor][b.backgroundColor](b.highlightFade*oe):function(e){var n=e.sourceId,t=e.targetId,r=e.needsHighlighting,o=e.theme,i=e.visuals,l=e.highlightColors,s=e.opacity,c=e.linksByNodeId,a=e.coloring,d=e.cluster;if(!i.linkHighlight&&!i.linkColorScheme&&!r){var u=Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d});return sn(u,o)}if(!r&&!i.linkColorScheme)return l[Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d})][i.backgroundColor](i.highlightFade*s);if(!r)return l[i.linkColorScheme][i.backgroundColor](i.highlightFade*s);if(!i.linkHighlight&&!i.linkColorScheme){var h=Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d});return sn(h,o)}return i.linkHighlight?i.linkColorScheme?l[i.linkColorScheme][i.linkHighlight](s):l[Gt({sourceId:n,targetId:t,linksByNodeId:c,visuals:i,coloring:a,cluster:d})][i.linkHighlight](s):sn(i.linkColorScheme,o)}({sourceId:t,targetId:r,needsHighlighting:l,theme:_,cluster:R.current,coloring:Z,highlightColors:xe,linksByNodeId:Q.current,opacity:oe,visuals:b})},linkWidth:function(e){if(1===b.highlightLinkSize)return b.linkWidth;var n=Xt(e,G.current),t=Xt(e,pe.current);return n||t?b.linkWidth*(1+oe*(b.highlightLinkSize-1)):b.linkWidth},linkDirectionalParticleWidth:b.particlesWidth,d3AlphaDecay:t.alphaDecay,d3AlphaMin:t.alphaMin,d3VelocityDecay:t.velocityDecay,onNodeClick:function(e,n){var t=e,r=n.timeStamp-ne.current<200;if(ne.current=n.timeStamp,r)return X("double",t,n);var o=ne.current;return setTimeout((function(){if(ne.current===o)return X("click",t,n)}),200)},onNodeHover:function(e){b.highlight&&(ye||(M||(ge(),ie(0)),V(e)))},onNodeRightClick:function(e,n){X("right",e,n)},onNodeDrag:function(e){V(e),Ce(!0)},onNodeDragEnd:function(){V(null),Ce(!1)}};return(0,re.jsx)(d.Box,{overflow:"hidden",onClick:z.onClose,children:a?(0,re.jsx)(Yt,Jt(Jt({ref:n},Oe),{},{nodeThreeObjectExtend:!0,nodeOpacity:b.nodeOpacity,nodeResolution:b.nodeResolution,linkOpacity:b.linkOpacity,nodeThreeObject:function(e){if(b.labels&&(!(b.labels<3)||fe[e.id])){var n=new O.Z(e.title.substring(0,40));return n.color=sn(b.labelTextColor,_),n.backgroundColor=sn(b.labelBackgroundColor,_),n.padding=2,n.textHeight=8,n}}})):(0,re.jsx)($t,Jt(Jt({ref:n},Oe),{},{linkLineDash:function(e){var n,t=e;return b.citeDashes&&null!==(n=t.type)&&void 0!==n&&n.includes("cite")?[b.citeDashLength,b.citeGapLength]:b.refDashes&&"ref"==t.type?[b.refDashLength,b.refGapLength]:null}}))})}},45301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(46587)}])}},function(e){e.O(0,[774,737,876,228,866,13,874,573,446,879,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/jl9qrr_7bhMugoK5uUQaL/_buildManifest.js b/out/_next/static/jl9qrr_7bhMugoK5uUQaL/_buildManifest.js deleted file mode 100644 index c5407e2..0000000 --- a/out/_next/static/jl9qrr_7bhMugoK5uUQaL/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/fb7d5399-9c00dff9225b87a317ed.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-b8c45246e6f61610d91f.js","static/chunks/d25bd147-2c59edc357c0e2372258.js","static/css/bdf775d76e641698f02f.css","static/chunks/879-09bfd8a9d59d1f41b6f4.js","static/chunks/pages/index-d0602a908c162f7c5496.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/jl9qrr_7bhMugoK5uUQaL/_ssgManifest.js b/out/_next/static/jl9qrr_7bhMugoK5uUQaL/_ssgManifest.js deleted file mode 100644 index 0511aa8..0000000 --- a/out/_next/static/jl9qrr_7bhMugoK5uUQaL/_ssgManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB(); \ No newline at end of file -- cgit v1.2.3