From 7f3943439a7a5e20df1cca1578140a25eb973ad0 Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Fri, 23 Jul 2021 16:41:09 +0300 Subject: Bring physics back --- build/static/chunks/pages/_app-5bb503dca4dae114eb0c.js | 1 - build/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js | 1 - build/static/chunks/pages/index-b7e9a3c26de1eb7c41cc.js | 1 - 3 files changed, 3 deletions(-) delete mode 100644 build/static/chunks/pages/_app-5bb503dca4dae114eb0c.js delete mode 100644 build/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js delete mode 100644 build/static/chunks/pages/index-b7e9a3c26de1eb7c41cc.js (limited to 'build/static/chunks/pages') diff --git a/build/static/chunks/pages/_app-5bb503dca4dae114eb0c.js b/build/static/chunks/pages/_app-5bb503dca4dae114eb0c.js deleted file mode 100644 index 5314fc9..0000000 --- a/build/static/chunks/pages/_app-5bb503dca4dae114eb0c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{6156:function(r,e,t){"use strict";function n(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}t.d(e,{Z:function(){return n}})},4738:function(r,e,t){"use strict";t.d(e,{SG:function(){return x},If:function(){return y}});var n=t(3808),o=t(4461),a=t(658),i=t(7294),s="chakra-ui-light",l="chakra-ui-dark",c={classList:{add:a.ZT,remove:a.ZT}};function u(r){var e=o.jU?document.body:c;e.classList.add(r?l:s),e.classList.remove(r?s:l)}var d="(prefers-color-scheme: dark)";function f(r){var e;return(null!=(e=function(r){var e=null==window.matchMedia?void 0:window.matchMedia(r);if(e)return!!e.media===e.matches}(d))?e:"dark"===r)?"dark":"light"}var p=()=>document.documentElement.style.getPropertyValue("--chakra-ui-color-mode"),h=r=>{o.jU&&document.documentElement.style.setProperty("--chakra-ui-color-mode",r)},b=()=>"undefined"!==typeof Storage,g="chakra-ui-color-mode",m={get(r){if(!b())return r;try{var e=localStorage.getItem(g);return null!=e?e:r}catch(t){return n.Ts&&console.log(t),r}},set(r){if(b())try{localStorage.setItem(g,r)}catch(e){n.Ts&&console.log(e)}},type:"localStorage"};var v=i.createContext({});n.Ts&&(v.displayName="ColorModeContext");var y=()=>{var r=i.useContext(v);if(void 0===r)throw new Error("useColorMode must be used within a ColorModeProvider");return r};function x(r){var{value:e,children:t,options:{useSystemColorMode:n,initialColorMode:s},colorModeManager:l=m}=r,[c,b]=i.useState("cookie"===l.type?l.get(s):s);i.useEffect((()=>{if(o.jU&&"localStorage"===l.type){var r=n?f(s):p()||l.get();r&&b(r)}}),[l,n,s]),i.useEffect((()=>{var r="dark"===c;u(r),h(r?"dark":"light")}),[c]);var g=i.useCallback((r=>{l.set(r),b(r)}),[l]),y=i.useCallback((()=>{g("light"===c?"dark":"light")}),[c,g]);i.useEffect((()=>{var r;return n&&(r=function(r){if(!("matchMedia"in window))return a.ZT;var e=window.matchMedia(d),t=()=>{r(e.matches?"dark":"light")};return t(),e.addListener(t),()=>{e.removeListener(t)}}(g)),()=>{r&&n&&r()}}),[g,n]);var x=i.useMemo((()=>({colorMode:null!=e?e:c,toggleColorMode:e?a.ZT:y,setColorMode:e?a.ZT:g})),[c,g,y,e]);return i.createElement(v.Provider,{value:x},t)}n.Ts&&(x.displayName="ColorModeProvider");n.Ts;n.Ts},4577:function(r,e,t){"use strict";t.d(e,{vc:function(){return i},Me:function(){return s},ZS:function(){return l}});var n=t(7294),o={prefix:Math.round(1e10*Math.random()),current:0},a=n.createContext(o),i=n.memo((r=>{var{children:e}=r,t=n.useContext(a),i=t===o,s=n.useMemo((()=>({prefix:i?0:++t.prefix,current:0})),[i,t]);return n.createElement(a.Provider,{value:s},e)}));function s(r,e){var t=n.useContext(a);return n.useMemo((()=>r||[e,t.prefix,++t.current].filter(Boolean).join("-")),[r,e])}function l(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;ot.map((r=>r+"-"+a))),[a,t])}},4288:function(r,e,t){"use strict";t.d(e,{L:function(){return s},h:function(){return l}});var n=t(3808),o=t(8500),a=t(7294),[i,s]=(0,o.k)({strict:!1,name:"PortalManagerContext"});function l(r){var{children:e,zIndex:t}=r;return a.createElement(i,{value:{zIndex:t}},e)}n.Ts&&(l.displayName="PortalManager")},8500:function(r,e,t){"use strict";t.d(e,{k:function(){return o}});var n=t(7294);function o(r){void 0===r&&(r={});var{strict:e=!0,errorMessage:t="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=r,a=n.createContext(void 0);return a.displayName=o,[a.Provider,function r(){var o=n.useContext(a);if(!o&&e){var i=new Error(t);throw i.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(i,r),i}return o},a]}},2631:function(r,e,t){"use strict";t.d(e,{css:function(){return yr},isStyleProp:function(){return br},propNames:function(){return pr},toCSSVar:function(){return Lr}});var n=t(3808);function o(r){var{scale:e,transform:t,compose:o}=r;return(r,a)=>{var i,s=((r,e)=>t=>{var o=String(e),a=r?r+"."+o:o;return(0,n.Kn)(t.__cssMap)&&a in t.__cssMap?t.__cssMap[a].varRef:e})(e,r)(a),l=null!=(i=null==t?void 0:t(s,a))?i:s;return o&&(l=o(l,a)),l}}function a(r,e){return t=>{var n={property:t,scale:r};return n.transform=o({scale:r,transform:e}),n}}var i=r=>{var{rtl:e,ltr:t}=r;return r=>"rtl"===r.direction?e:t};var s=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];var l={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},c={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};var u={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},d="& > :not(style) ~ :not(style)",f={[d]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},p={[d]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}};function h(r,e){h=function(r,e){return new a(r,void 0,e)};var t=g(RegExp),n=RegExp.prototype,o=new WeakMap;function a(r,e,n){var a=t.call(this,r,e);return o.set(a,n||o.get(r)),a}function i(r,e){var t=o.get(e);return Object.keys(t).reduce((function(e,n){return e[n]=r[t[n]],e}),Object.create(null))}return b(a,t),a.prototype.exec=function(r){var e=n.exec.call(this,r);return e&&(e.groups=i(e,this)),e},a.prototype[Symbol.replace]=function(r,e){if("string"===typeof e){var t=o.get(this);return n[Symbol.replace].call(this,r,e.replace(/\$<([^>]+)>/g,(function(r,e){return"$"+t[e]})))}if("function"===typeof e){var a=this;return n[Symbol.replace].call(this,r,(function(){var r=[];return r.push.apply(r,arguments),"object"!==typeof r[r.length-1]&&r.push(i(r,a)),e.apply(this,r)}))}return n[Symbol.replace].call(this,r,e)},h.apply(this,arguments)}function b(r,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&y(r,e)}function g(r){var e="function"===typeof Map?new Map:void 0;return(g=function(r){if(null===r||(t=r,-1===Function.toString.call(t).indexOf("[native code]")))return r;var t;if("function"!==typeof r)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return m(r,arguments,x(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,r)})(r)}function m(r,e,t){return(m=v()?Reflect.construct:function(r,e,t){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(r,n));return t&&y(o,t.prototype),o}).apply(null,arguments)}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function y(r,e){return(y=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function x(r){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}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"},k=new Set(Object.values(S)),w=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),_=r=>r.trim();var C=r=>e=>r+"("+e+")",A={filter:r=>"auto"!==r?r:l,backdropFilter:r=>"auto"!==r?r:c,ring:r=>function(r){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":r,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(A.px(r)),bgClip:r=>"text"===r?{color:"transparent",backgroundClip:"text"}:{backgroundClip:r},transform:r=>"auto"===r?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...s].join(" "):"auto-gpu"===r?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...s].join(" "):r,px(r){if(null==r)return r;var{unitless:e}=(r=>{var e=parseFloat(r.toString()),t=r.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}})(r);return e||(0,n.hj)(r)?r+"px":r},fraction:r=>!(0,n.hj)(r)||r>1?r:100*r+"%",float:(r,e)=>"rtl"===e.direction?{left:"right",right:"left"}[r]:r,degree(r){if((0,n.FS)(r)||null==r)return r;var e=(0,n.HD)(r)&&!r.endsWith("deg");return(0,n.hj)(r)||e?r+"deg":r},gradient:(r,e)=>function(r,e){var t,n;if(null==r||w.has(r))return r;var o=h(/(^[\x2DA-Za-z]+)\(((.*))\)/g,{type:1,values:2}),{type:a,values:i}=null!=(t=null==(n=o.exec(r))?void 0:n.groups)?t:{};if(!a||!i)return r;var s=a.includes("-gradient")?a:a+"-gradient",[l,...c]=i.split(",").map(_).filter(Boolean);if(0===(null==c?void 0:c.length))return r;var u=l in S?S[l]:l;return c.unshift(u),s+"("+c.map((r=>{if(k.has(r))return r;var[t,n]=r.split(" "),o="colors."+t,a=o in e.__cssMap?e.__cssMap[o].varRef:t;return n?[a,n].join(" "):a})).join(", ")+")"}(r,null!=e?e:{}),blur:C("blur"),opacity:C("opacity"),brightness:C("brightness"),contrast:C("contrast"),dropShadow:C("drop-shadow"),grayscale:C("grayscale"),hueRotate:C("hue-rotate"),invert:C("invert"),saturate:C("saturate"),sepia:C("sepia"),bgImage:r=>null==r||z(r)||w.has(r)?r:"url("+r+")",outline(r){var e="0"===String(r)||"none"===String(r);return null!==r&&e?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:r}},flexDirection(r){var e,{space:t,divide:n}=null!=(e=u[r])?e:{},o={flexDirection:r};return t&&(o[t]=1),n&&(o[n]=1),o}},z=r=>(0,n.HD)(r)&&r.includes("(")&&r.includes(")");function E(){return(E=Object.assign||function(r){for(var e=1;e({property:r,transform:A.degree}),prop:(r,e,t)=>E({property:r,scale:e},e&&{transform:o({scale:e,transform:t})}),propT:(r,e)=>({property:r,transform:e}),sizes:a("sizes",A.px),sizesT:a("sizes",A.fraction),shadows:a("shadows"),logical:function(r){var{property:e,scale:t,transform:n}=r;return{scale:t,property:i(e),transform:t?o({scale:t,compose:n}):n}},blur:a("blur",A.blur)},B={background:R.colors("background"),backgroundColor:R.colors("backgroundColor"),backgroundImage:R.propT("backgroundImage",A.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:A.bgClip},bgSize:R.prop("backgroundSize"),bgPosition:R.prop("backgroundPosition"),bg:R.colors("background"),bgColor:R.colors("backgroundColor"),bgPos:R.prop("backgroundPosition"),bgRepeat:R.prop("backgroundRepeat"),bgAttachment:R.prop("backgroundAttachment"),bgGradient:R.propT("backgroundImage",A.gradient),bgClip:{transform:A.bgClip}};Object.assign(B,{bgImage:B.backgroundImage,bgImg:B.backgroundImage});var j={border:R.borders("border"),borderWidth:R.borderWidths("borderWidth"),borderStyle:R.borderStyles("borderStyle"),borderColor:R.colors("borderColor"),borderRadius:R.radii("borderRadius"),borderTop:R.borders("borderTop"),borderBlockStart:R.borders("borderBlockStart"),borderTopLeftRadius:R.radii("borderTopLeftRadius"),borderStartStartRadius:R.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:R.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:R.radii("borderTopRightRadius"),borderStartEndRadius:R.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:R.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:R.borders("borderRight"),borderInlineEnd:R.borders("borderInlineEnd"),borderBottom:R.borders("borderBottom"),borderBlockEnd:R.borders("borderBlockEnd"),borderBottomLeftRadius:R.radii("borderBottomLeftRadius"),borderBottomRightRadius:R.radii("borderBottomRightRadius"),borderLeft:R.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:R.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:R.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:R.borders(["borderLeft","borderRight"]),borderInline:R.borders("borderInline"),borderY:R.borders(["borderTop","borderBottom"]),borderBlock:R.borders("borderBlock"),borderTopWidth:R.borderWidths("borderTopWidth"),borderBlockStartWidth:R.borderWidths("borderBlockStartWidth"),borderTopColor:R.colors("borderTopColor"),borderBlockStartColor:R.colors("borderBlockStartColor"),borderTopStyle:R.borderStyles("borderTopStyle"),borderBlockStartStyle:R.borderStyles("borderBlockStartStyle"),borderBottomWidth:R.borderWidths("borderBottomWidth"),borderBlockEndWidth:R.borderWidths("borderBlockEndWidth"),borderBottomColor:R.colors("borderBottomColor"),borderBlockEndColor:R.colors("borderBlockEndColor"),borderBottomStyle:R.borderStyles("borderBottomStyle"),borderBlockEndStyle:R.borderStyles("borderBlockEndStyle"),borderLeftWidth:R.borderWidths("borderLeftWidth"),borderInlineStartWidth:R.borderWidths("borderInlineStartWidth"),borderLeftColor:R.colors("borderLeftColor"),borderInlineStartColor:R.colors("borderInlineStartColor"),borderLeftStyle:R.borderStyles("borderLeftStyle"),borderInlineStartStyle:R.borderStyles("borderInlineStartStyle"),borderRightWidth:R.borderWidths("borderRightWidth"),borderInlineEndWidth:R.borderWidths("borderInlineEndWidth"),borderRightColor:R.colors("borderRightColor"),borderInlineEndColor:R.colors("borderInlineEndColor"),borderRightStyle:R.borderStyles("borderRightStyle"),borderInlineEndStyle:R.borderStyles("borderInlineEndStyle"),borderTopRadius:R.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:R.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:R.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:R.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(j,{rounded:j.borderRadius,roundedTop:j.borderTopRadius,roundedTopLeft:j.borderTopLeftRadius,roundedTopRight:j.borderTopRightRadius,roundedTopStart:j.borderStartStartRadius,roundedTopEnd:j.borderStartEndRadius,roundedBottom:j.borderBottomRadius,roundedBottomLeft:j.borderBottomLeftRadius,roundedBottomRight:j.borderBottomRightRadius,roundedBottomStart:j.borderEndStartRadius,roundedBottomEnd:j.borderEndEndRadius,roundedLeft:j.borderLeftRadius,roundedRight:j.borderRightRadius,roundedStart:j.borderInlineStartRadius,roundedEnd:j.borderInlineEndRadius,borderStart:j.borderInlineStart,borderEnd:j.borderInlineEnd,borderTopStartRadius:j.borderStartStartRadius,borderTopEndRadius:j.borderStartEndRadius,borderBottomStartRadius:j.borderEndStartRadius,borderBottomEndRadius:j.borderEndEndRadius,borderStartRadius:j.borderInlineStartRadius,borderEndRadius:j.borderInlineEndRadius,borderStartWidth:j.borderInlineStartWidth,borderEndWidth:j.borderInlineEndWidth,borderStartColor:j.borderInlineStartColor,borderEndColor:j.borderInlineEndColor,borderStartStyle:j.borderInlineStartStyle,borderEndStyle:j.borderInlineEndStyle});var O={color:R.colors("color"),textColor:R.colors("color"),fill:R.colors("fill"),stroke:R.colors("stroke")},T={boxShadow:R.shadows("boxShadow"),mixBlendMode:!0,blendMode:R.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:R.prop("backgroundBlendMode"),opacity:!0};Object.assign(T,{shadow:T.boxShadow});var F={filter:{transform:A.filter},blur:R.blur("--chakra-blur"),brightness:R.propT("--chakra-brightness",A.brightness),contrast:R.propT("--chakra-contrast",A.contrast),hueRotate:R.degreeT("--chakra-hue-rotate"),invert:R.propT("--chakra-invert",A.invert),saturate:R.propT("--chakra-saturate",A.saturate),dropShadow:R.propT("--chakra-drop-shadow",A.dropShadow),backdropFilter:{transform:A.backdropFilter},backdropBlur:R.blur("--chakra-backdrop-blur"),backdropBrightness:R.propT("--chakra-backdrop-brightness",A.brightness),backdropContrast:R.propT("--chakra-backdrop-contrast",A.contrast),backdropHueRotate:R.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:R.propT("--chakra-backdrop-invert",A.invert),backdropSaturate:R.propT("--chakra-backdrop-saturate",A.saturate)},P={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:A.flexDirection},experimental_spaceX:{static:f,transform:o({scale:"space",transform:r=>null!==r?{"--chakra-space-x":r}:null})},experimental_spaceY:{static:p,transform:o({scale:"space",transform:r=>null!=r?{"--chakra-space-y":r}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:R.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0};Object.assign(P,{flexDir:P.flexDirection});var I={gridGap:R.space("gridGap"),gridColumnGap:R.space("gridColumnGap"),gridRowGap:R.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},D={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:A.outline},outlineOffset:!0,outlineColor:R.colors("outlineColor")},W={width:R.sizesT("width"),inlineSize:R.sizesT("inlineSize"),height:R.sizes("height"),blockSize:R.sizes("blockSize"),boxSize:R.sizes(["width","height"]),minWidth:R.sizes("minWidth"),minInlineSize:R.sizes("minInlineSize"),minHeight:R.sizes("minHeight"),minBlockSize:R.sizes("minBlockSize"),maxWidth:R.sizes("maxWidth"),maxInlineSize:R.sizes("maxInlineSize"),maxHeight:R.sizes("maxHeight"),maxBlockSize:R.sizes("maxBlockSize"),d:R.prop("display"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:R.propT("float",A.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 M={listStyleType:!0,listStylePosition:!0,listStylePos:R.prop("listStylePosition"),listStyleImage:!0,listStyleImg:R.prop("listStyleImage")},L=t(5505),H={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},$={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},N=(r,e,t)=>{var n={},o=(0,L.Wf)(r,e,{});for(var a in o){a in t&&null!=t[a]||(n[a]=o[a])}return n},V={srOnly:{transform:r=>!0===r?H:"focusable"===r?$:{}},layerStyle:{processResult:!0,transform:(r,e,t)=>N(e,"layerStyles."+r,t)},textStyle:{processResult:!0,transform:(r,e,t)=>N(e,"textStyles."+r,t)},apply:{processResult:!0,transform:(r,e,t)=>N(e,r,t)}},Y={position:!0,pos:R.prop("position"),zIndex:R.prop("zIndex","zIndices"),inset:R.spaceT(["top","right","bottom","left"]),insetX:R.spaceT(["left","right"]),insetInline:R.spaceT("insetInline"),insetY:R.spaceT(["top","bottom"]),insetBlock:R.spaceT("insetBlock"),top:R.spaceT("top"),insetBlockStart:R.spaceT("insetBlockStart"),bottom:R.spaceT("bottom"),insetBlockEnd:R.spaceT("insetBlockEnd"),left:R.spaceT("left"),insetInlineStart:R.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:R.spaceT("right"),insetInlineEnd:R.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Y,{insetStart:Y.insetInlineStart,insetEnd:Y.insetInlineEnd});var q={ring:{transform:A.ring},ringColor:R.colors("--chakra-ring-color"),ringOffset:R.prop("--chakra-ring-offset-width"),ringOffsetColor:R.colors("--chakra-ring-offset-color"),ringInset:R.prop("--chakra-ring-inset")},X={margin:R.spaceT("margin"),marginTop:R.spaceT("marginTop"),marginBlockStart:R.spaceT("marginBlockStart"),marginRight:R.spaceT("marginRight"),marginInlineEnd:R.spaceT("marginInlineEnd"),marginBottom:R.spaceT("marginBottom"),marginBlockEnd:R.spaceT("marginBlockEnd"),marginLeft:R.spaceT("marginLeft"),marginInlineStart:R.spaceT("marginInlineStart"),marginX:R.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:R.spaceT("marginInline"),marginY:R.spaceT(["marginTop","marginBottom"]),marginBlock:R.spaceT("marginBlock"),padding:R.space("padding"),paddingTop:R.space("paddingTop"),paddingBlockStart:R.space("paddingBlockStart"),paddingRight:R.space("paddingRight"),paddingBottom:R.space("paddingBottom"),paddingBlockEnd:R.space("paddingBlockEnd"),paddingLeft:R.space("paddingLeft"),paddingInlineStart:R.space("paddingInlineStart"),paddingInlineEnd:R.space("paddingInlineEnd"),paddingX:R.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:R.space("paddingInline"),paddingY:R.space(["paddingTop","paddingBottom"]),paddingBlock:R.space("paddingBlock")};Object.assign(X,{m:X.margin,mt:X.marginTop,mr:X.marginRight,me:X.marginInlineEnd,marginEnd:X.marginInlineEnd,mb:X.marginBottom,ml:X.marginLeft,ms:X.marginInlineStart,marginStart:X.marginInlineStart,mx:X.marginX,my:X.marginY,p:X.padding,pt:X.paddingTop,py:X.paddingY,px:X.paddingX,pb:X.paddingBottom,pl:X.paddingLeft,ps:X.paddingInlineStart,paddingStart:X.paddingInlineStart,pr:X.paddingRight,pe:X.paddingInlineEnd,paddingEnd:X.paddingInlineEnd});var U={textDecorationColor:R.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:R.shadows("textShadow")},G={clipPath:!0,transform:R.propT("transform",A.transform),transformOrigin:!0,translateX:R.spaceT("--chakra-translate-x"),translateY:R.spaceT("--chakra-translate-y"),skewX:R.degreeT("--chakra-skew-x"),skewY:R.degreeT("--chakra-skew-y"),scaleX:R.prop("--chakra-scale-x"),scaleY:R.prop("--chakra-scale-y"),scale:R.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:R.degreeT("--chakra-rotate")},Z={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:R.prop("transitionDuration","transition.duration"),transitionProperty:R.prop("transitionProperty","transition.property"),transitionTimingFunction:R.prop("transitionTimingFunction","transition.easing")},K={fontFamily:R.prop("fontFamily","fonts"),fontSize:R.prop("fontSize","fontSizes",A.px),fontWeight:R.prop("fontWeight","fontWeights"),lineHeight:R.prop("lineHeight","lineHeights"),letterSpacing:R.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(r){if(!0===r)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}},Q=t(658),J=t(8554),rr=t.n(J),er=r=>r+":focus &, "+r+"[data-focus] &",tr=r=>r+":active &, "+r+"[data-active] &",nr=r=>r+":disabled &, "+r+"[data-disabled] &",or=r=>r+":invalid &, "+r+"[data-invalid] &",ar=r=>r+":checked &, "+r+"[data-checked] &",ir=r=>sr(r,"[role=group]","[data-group]",".group"),sr=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;nr+":hover &, "+r+"[data-hover] &")),_groupFocus:ir(er),_groupActive:ir(tr),_groupDisabled:ir(nr),_groupInvalid:ir(or),_groupChecked:ir(ar),_placeholder:"&::placeholder",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &",_mediaDark:"@media (prefers-color-scheme: dark)",_dark:".chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]",_light:".chakra-ui-light &, [data-theme=light] &, &[data-theme=light]"},cr=(0,L.Yd)(lr);function ur(){return(ur=Object.assign||function(r){for(var e=1;er in hr,gr=(r,e)=>r.startsWith("--")&&(0,n.HD)(e)&&!(0,n.FS)(e),mr=(r,e)=>{var t,n;if(null==e)return e;var o=e=>{var t,n;return null==(t=r.__cssMap)||null==(n=t[e])?void 0:n.varRef},a=r=>{var e;return null!=(e=o(r))?e:r},i=e.split(",").map((r=>r.trim())),[s,l]=i;return e=null!=(t=null!=(n=o(s))?n:a(l))?t:a(e)};function vr(r){var{configs:e={},pseudos:t={},theme:o}=r;return function r(a,i){void 0===i&&(i=!1);var s=(0,Q.Pu)(a,o),l=(r=>e=>{if(!e.__breakpoints)return r;var{isResponsive:t,toArrayValue:o,media:a}=e.__breakpoints,i={};for(var s in r){var l=(0,Q.Pu)(r[s],e);if(null!=l)if(l=(0,n.Kn)(l)&&t(l)?o(l):l,Array.isArray(l))for(var c=l.slice(0,a.length).length,u=0;ue=>vr({theme:e,pseudos:lr,configs:dr})(r);t(1664),t(7759);function xr(r){return(0,n.Kn)(r)&&r.reference?r.reference:String(r)}var Sr=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n{var e=xr(r);return null==e||Number.isNaN(parseFloat(e))?_r(e,-1):String(e).startsWith("-")?String(e).slice(1):"-"+e},zr=Object.assign((r=>({add:function(){for(var e=arguments.length,t=new Array(e),n=0;nzr(Ar(r)),toString:()=>r.toString()})),{add:kr,subtract:wr,multiply:_r,divide:Cr,negate:Ar}),Er=t(8456);function Rr(r){var e=function(r,e){return void 0===e&&(e="-"),r.replace(/\s+/g,e)}(r.toString());return e.includes("\\.")?r:!Number.isInteger(parseFloat(r.toString()))?e.replace(".","\\."):r}function Br(r,e){return"var("+Rr(r)+(e?", "+e:"")+")"}function jr(r,e){return void 0===e&&(e=""),"--"+function(r,e){return void 0===e&&(e=""),[e,Rr(r)].filter(Boolean).join("-")}(r,e)}function Or(r,e,t){var n=jr(r,t);return{variable:n,reference:Br(n,e)}}function Tr(){return(Tr=Object.assign||function(r){for(var e=1;er(e,[...o,String(t)]))):(0,n.Kn)(t)?Object.fromEntries(Object.entries(t).map((e=>{var[t,n]=e;return[t,r(n,[...o,t])]}))):e(t,o)})(r)}(r,((r,n)=>{var o,[a]=n,i=null!=(o=Pr[a])?o:Pr.defaultHandler,{cssVars:s,cssMap:l}=i(n,r,e);Object.assign(t.cssVars,s),Object.assign(t.cssMap,l)})),t}var Pr={space:(r,e,t)=>{var n=Pr.defaultHandler(r,e,t),[o,...a]=r,i=o+".-"+a.join("."),s=r.join("-"),{variable:l,reference:c}=Or(s,void 0,t.cssVarPrefix),u=zr.negate(e),d=zr.negate(c);return{cssVars:n.cssVars,cssMap:Tr({},n.cssMap,{[i]:{value:""+u,var:""+l,varRef:d}})}},defaultHandler:(r,e,t)=>{var n=r.join("."),o=r.join("-"),{variable:a,reference:i}=Or(o,void 0,t.cssVarPrefix);return{cssVars:{[a]:e},cssMap:{[n]:{value:e,var:a,varRef:i}}}}};var Ir=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function Dr(r){var e=Ir;return(0,L.ei)(r,e)}function Wr(r){return function(r,e){if(null==r)return{};var t,n,o={},a=Object.keys(r);for(n=0;n=0||(o[t]=r[t]);return o}(r,["__cssMap","__cssVars","__breakpoints"])}function Mr(){return(Mr=Object.assign||function(r){for(var e=1;e{var{cssVarsRoot:e=":host, :root",theme:t,children:n}=r,a=u.useMemo((()=>(0,o.toCSSVar)(t)),[t]);return u.createElement(l.a,{theme:a},u.createElement(c.xB,{styles:r=>({[e]:r.__cssVars})}),n)};function f(){var r=u.useContext(l.T);if(!r)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return r}var[p,h]=(0,s.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),b=()=>{var{colorMode:r}=(0,n.If)();return u.createElement(c.xB,{styles:e=>{var t=(0,a.Wf)(e,"styles.global"),n=(0,i.Pu)(t,{theme:e,colorMode:r});if(n)return(0,o.css)(n)(e)}})}},7277:function(r,e,t){"use strict";function n(r){var e=null==r?0:r.length;return e?r[e-1]:void 0}function o(r,e){return[...r,e]}function a(r,e){return r.filter((r=>r!==e))}function i(r,e,t,n){if(null==e)return n;if(!n)return r.find((r=>t(r).toLowerCase().startsWith(e.toLowerCase())));var o,a=r.filter((r=>t(r).toLowerCase().startsWith(e.toLowerCase())));return a.length>0?a.includes(n)?((o=a.indexOf(n)+1)===a.length&&(o=0),a[o]):(o=r.indexOf(a[0]),r[o]):n}t.d(e,{s:function(){return n},jX:function(){return o},cl:function(){return a},LP:function(){return i}})},3808:function(r,e,t){"use strict";function n(r){return"number"===typeof r}function o(r){return"number"!==typeof r||Number.isNaN(r)||!Number.isFinite(r)}function a(r){return Array.isArray(r)}function i(r){return"function"===typeof r}function s(r){return"undefined"===typeof r||void 0===r}function l(r){var e=typeof r;return null!=r&&("object"===e||"function"===e)&&!a(r)}function c(r){return l(r)&&0===Object.keys(r).length}function u(r){return"[object String]"===Object.prototype.toString.call(r)}function d(r){return/^var\(--.+\)$/.test(r)}t.d(e,{hj:function(){return n},iy:function(){return o},kJ:function(){return a},mf:function(){return i},o8:function(){return s},Kn:function(){return l},Qr:function(){return c},HD:function(){return u},FS:function(){return d},Ts:function(){return f},Ys:function(){return p}});var f=!1,p=!1},8456:function(r,e,t){"use strict";t.d(e,{px:function(){return i},y:function(){return d}});var n=t(7277),o=t(3808),a=t(5505);function i(r){if(null==r)return r;var{unitless:e}=function(r){var e=parseFloat(r.toString()),t=r.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}}(r);return e||(0,o.hj)(r)?r+"px":r}var s=(r,e)=>parseInt(r[1],10)>parseInt(e[1],10)?1:-1,l=r=>(0,a.sq)(Object.entries(r).sort(s));function c(r){var e=l(r);return Object.assign(Object.values(e),e)}function u(r,e){var t=[];return r&&t.push("@media screen and (min-width: "+i(r)+")"),t.length>0&&e&&t.push("and"),e&&t.push("@media screen and (max-width: "+i(e)+")"),t.join(" ")}function d(r){var e;if(!r)return null;r.base=null!=(e=r.base)?e:"0px";var t=c(r),a=Object.entries(r).sort(s).map(((r,e,t)=>{var n,[a,s]=r,[,l]=null!=(n=t[e+1])?n:[];return{breakpoint:a,minW:s,maxW:l=parseFloat(l)>0?function(r){var e;if(!r)return r;var t=(r=null!=(e=i(r))?e:r).endsWith("px")?-1:-.0635;return(0,o.hj)(r)?""+(r+t):r.replace(/([0-9]+\.?[0-9]*)/,(r=>""+(parseFloat(r)+t)))}(l):void 0,maxWQuery:u(null,l),minWQuery:u(s),minMaxQuery:u(s,l)}})),d=function(r){var e=Object.keys(l(r));return new Set(e)}(r),f=Array.from(d.values());return{keys:d,normalized:t,isResponsive(r){var e=Object.keys(r);return e.length>0&&e.every((r=>d.has(r)))},asObject:l(r),asArray:c(r),details:a,media:[null,...t.map((r=>u(r))).slice(1)],toArrayValue(r){if(!(0,o.Kn)(r))throw new Error("toArrayValue: value must be an object");for(var e=f.map((e=>{var t;return null!=(t=r[e])?t:null}));null===(0,n.s)(e);)e.pop();return e},toObjectValue(r){if(!Array.isArray(r))throw new Error("toObjectValue: value must be an array");return r.reduce(((r,e,t)=>{var n=f[t];return null!=n&&null!=e&&(r[n]=e),r}),{})}}}},4461:function(r,e,t){"use strict";function n(r){var e;return r instanceof Element&&null!=(e=r.ownerDocument)?e:document}t.d(e,{lZ:function(){return n},jU:function(){return o},PB:function(){return a},Qm:function(){return i},cx:function(){return s},vY:function(){return l},r3:function(){return c},EV:function(){return u},uh:function(){return d},dO:function(){return f}});var o=!("undefined"===typeof window||!window.document||!window.document.createElement),a=r=>r?"":void 0,i=r=>!!r||void 0,s=function(){for(var r=arguments.length,e=new Array(r),t=0;t{r.removeEventListener(e,t,n)}}function d(r){var{key:e,keyCode:t}=r;return t>=37&&t<=40&&0!==e.indexOf("Arrow")?"Arrow"+e:e}function f(r){return 0!==r.button}},658:function(r,e,t){"use strict";t.d(e,{Pu:function(){return o},v0:function(){return a},ZT:function(){return s},ZK:function(){return l},A4:function(){return c},zG:function(){return u},TE:function(){return p}});var n=t(3808);function o(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),o=1;o(null==e||e(r),null==r?void 0:r.defaultPrevented)))}}function i(r){var e;return function(){if(r){for(var t=arguments.length,n=new Array(t),o=0;o{},l=i((r=>()=>{var{condition:e,message:t}=r;e&&n.Ts&&console.warn(t)})),c=(i((r=>()=>{var{condition:e,message:t}=r;e&&n.Ts&&console.error(t)})),n.Ys?r=>r():"function"===typeof queueMicrotask?queueMicrotask:r=>{Promise.resolve().then(r)}),u=function(){for(var r=arguments.length,e=new Array(r),t=0;te.reduce(((r,e)=>e(r)),r)},d=(r,e)=>Math.abs(r-e),f=r=>"x"in r&&"y"in r;function p(r,e){if((0,n.hj)(r)&&(0,n.hj)(e))return d(r,e);if(f(r)&&f(e)){var t=d(r.x,e.x),o=d(r.y,e.y);return Math.sqrt(t**2+o**2)}return 0}},5505:function(r,e,t){"use strict";t.d(e,{CE:function(){return n},ei:function(){return o},Wf:function(){return a},lw:function(){return i},YU:function(){return s},Yd:function(){return l},sq:function(){return c},K1:function(){return u}});t(8554);function n(r,e){var t={};return Object.keys(r).forEach((n=>{e.includes(n)||(t[n]=r[n])})),t}function o(r,e){var t={};return e.forEach((e=>{e in r&&(t[e]=r[e])})),t}var a=(r=>{var e=new WeakMap;return(t,n,o,a)=>{if("undefined"===typeof t)return r(t,n,o);e.has(t)||e.set(t,new Map);var i=e.get(t);if(i.has(n))return i.get(n);var s=r(t,n,o,a);return i.set(n,s),s}})((function(r,e,t,n){var o="string"===typeof e?e.split("."):[e];for(n=0;n{var o=r[n];e(o,n,r)&&(t[n]=o)})),t}var s=r=>i(r,(r=>null!==r&&void 0!==r)),l=r=>Object.keys(r),c=r=>r.reduce(((r,e)=>{var[t,n]=e;return r[t]=n,r}),{}),u=(r,e,t)=>{var n,o;return null!=(n=null==(o=r.__cssMap[e+"."+t])?void 0:o.varRef)?n:t}},9152:function(r,e,t){"use strict";t.d(e,{Z:function(){return er}});var n=t(1526),o=Math.abs,a=String.fromCharCode;function i(r){return r.trim()}function s(r,e,t){return r.replace(e,t)}function l(r,e){return r.indexOf(e)}function c(r,e){return 0|r.charCodeAt(e)}function u(r,e,t){return r.slice(e,t)}function d(r){return r.length}function f(r){return r.length}function p(r,e){return e.push(r),r}var h=1,b=1,g=0,m=0,v=0,y="";function x(r,e,t,n,o,a,i){return{value:r,root:e,parent:t,type:n,props:o,children:a,line:h,column:b,length:i,return:""}}function S(r,e,t){return x(r,e.root,e.parent,t,e.props,e.children,0)}function k(){return v=m>0?c(y,--m):0,b--,10===v&&(b=1,h--),v}function w(){return v=m2||z(v)>3?"":" "}function O(r,e){for(;--e&&w()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return A(r,C()+(e<6&&32==_()&&32==w()))}function T(r){for(;w();)switch(v){case r:return m;case 34:case 39:return T(34===r||39===r?r:v);case 40:41===r&&T(r);break;case 92:w()}return m}function F(r,e){for(;w()&&r+v!==57&&(r+v!==84||47!==_()););return"/*"+A(e,m-1)+"*"+a(47===r?r:w())}function P(r){for(;!z(_());)w();return A(r,m)}var I="-ms-",D="-moz-",W="-webkit-",M="comm",L="rule",H="decl";function $(r,e){for(var t="",n=f(r),o=0;o6)switch(c(r,e+1)){case 109:if(45!==c(r,e+4))break;case 102:return s(r,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+D+(108==c(r,e+3)?"$3":"$2-$3"))+r;case 115:return~l(r,"stretch")?V(s(r,"stretch","fill-available"),e)+r:r}break;case 4949:if(115!==c(r,e+1))break;case 6444:switch(c(r,d(r)-3-(~l(r,"!important")&&10))){case 107:return s(r,":",":"+W)+r;case 101:return s(r,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===c(r,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+I+"$2box$3")+r}break;case 5936:switch(c(r,e+11)){case 114:return W+r+I+s(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return W+r+I+s(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return W+r+I+s(r,/[svh]\w+-[tblr]{2}/,"lr")+r}return W+r+I+r+r}return r}function Y(r){return R(q("",null,null,null,[""],r=E(r),0,[0],r))}function q(r,e,t,n,o,i,l,c,u){for(var f=0,h=0,b=l,g=0,m=0,v=0,y=1,x=1,S=1,A=0,z="",E=o,R=i,T=n,I=z;x;)switch(v=A,A=w()){case 34:case 39:case 91:case 40:I+=B(A);break;case 9:case 10:case 13:case 32:I+=j(v);break;case 92:I+=O(C()-1,7);continue;case 47:switch(_()){case 42:case 47:p(U(F(w(),C()),e,t),u);break;default:I+="/"}break;case 123*y:c[f++]=d(I)*S;case 125*y:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+h:m>0&&d(I)-b&&p(m>32?G(I+";",n,t,b-1):G(s(I," ","")+";",n,t,b-2),u);break;case 59:I+=";";default:if(p(T=X(I,e,t,f,h,o,c,z,E=[],R=[],b),i),123===A)if(0===h)q(I,e,T,T,E,i,b,c,R);else switch(g){case 100:case 109:case 115:q(r,T,T,n&&p(X(r,T,T,0,0,o,c,z,o,E=[],b),R),o,R,b,c,n?E:R);break;default:q(I,T,T,T,[""],R,b,c,R)}}f=h=m=0,y=S=1,z=I="",b=l;break;case 58:b=1+d(I),m=v;default:if(y<1)if(123==A)--y;else if(125==A&&0==y++&&125==k())continue;switch(I+=a(A),A*y){case 38:S=h>0?1:(I+="\f",-1);break;case 44:c[f++]=(d(I)-1)*S,S=1;break;case 64:45===_()&&(I+=B(w())),g=_(),h=d(z=I+=P(C())),A++;break;case 45:45===v&&2==d(I)&&(y=0)}}return i}function X(r,e,t,n,a,l,c,d,p,h,b){for(var g=a-1,m=0===a?l:[""],v=f(m),y=0,S=0,k=0;y0?m[w]+" "+_:s(_,/&\f/g,m[w])))&&(p[k++]=C);return x(r,e,t,0===a?L:d,p,h,b)}function U(r,e,t){return x(r,e,t,M,a(v),u(r,2,-2),0)}function G(r,e,t,n){return x(r,e,t,H,u(r,0,n),u(r,n+1,-1),n)}var Z=function(r,e){return R(function(r,e){var t=-1,n=44;do{switch(z(n)){case 0:38===n&&12===_()&&(e[t]=1),r[t]+=P(m-1);break;case 2:r[t]+=B(n);break;case 4:if(44===n){r[++t]=58===_()?"&\f":"",e[t]=r[t].length;break}default:r[t]+=a(n)}}while(n=w());return r}(E(r),e))},K=new WeakMap,Q=function(r){if("rule"===r.type&&r.parent&&r.length){for(var e=r.value,t=r.parent,n=r.column===t.column&&r.line===t.line;"rule"!==t.type;)if(!(t=t.parent))return;if((1!==r.props.length||58===e.charCodeAt(0)||K.get(t))&&!n){K.set(r,!0);for(var o=[],a=Z(e,o),i=t.props,s=0,l=0;s=4;++n,o-=4)e=1540483477*(65535&(e=255&r.charCodeAt(n)|(255&r.charCodeAt(++n))<<8|(255&r.charCodeAt(++n))<<16|(255&r.charCodeAt(++n))<<24))+(59797*(e>>>16)<<16),t=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&t)+(59797*(t>>>16)<<16);switch(o){case 3:t^=(255&r.charCodeAt(n+2))<<16;case 2:t^=(255&r.charCodeAt(n+1))<<8;case 1:t=1540483477*(65535&(t^=255&r.charCodeAt(n)))+(59797*(t>>>16)<<16)}return(((t=1540483477*(65535&(t^=t>>>13))+(59797*(t>>>16)<<16))^t>>>15)>>>0).toString(36)},o={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},a=t(7866),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(r){return 45===r.charCodeAt(1)},c=function(r){return null!=r&&"boolean"!==typeof r},u=(0,a.Z)((function(r){return l(r)?r:r.replace(i,"-$&").toLowerCase()})),d=function(r,e){switch(r){case"animation":case"animationName":if("string"===typeof e)return e.replace(s,(function(r,e,t){return p={name:e,styles:t,next:p},e}))}return 1===o[r]||l(r)||"number"!==typeof e||0===e?e:e+"px"};function f(r,e,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 p={name:t.name,styles:t.styles,next:p},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)p={name:n.name,styles:n.styles,next:p},n=n.next;return t.styles+";"}return function(r,e,t){var n="";if(Array.isArray(t))for(var o=0;o-1},Z.prototype.set=function(r,e){var t=this.__data__,n=tr(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(q||Z),string:new G}},K.prototype.delete=function(r){var e=fr(this,r).delete(r);return this.size-=e?1:0,e},K.prototype.get=function(r){return fr(this,r).get(r)},K.prototype.has=function(r){return fr(this,r).has(r)},K.prototype.set=function(r,e){var t=fr(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this},Q.prototype.clear=function(){this.__data__=new Z,this.size=0},Q.prototype.delete=function(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t},Q.prototype.get=function(r){return this.__data__.get(r)},Q.prototype.has=function(r){return this.__data__.has(r)},Q.prototype.set=function(r,e){var t=this.__data__;if(t instanceof Z){var n=t.__data__;if(!q||n.length<199)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new K(n)}return t.set(r,e),this.size=t.size,this};var or,ar=function(r,e,t){for(var n=-1,o=Object(r),a=t(r),i=a.length;i--;){var s=a[or?i:++n];if(!1===e(o[s],s,o))break}return r};function ir(r){return null==r?void 0===r?"[object Undefined]":"[object Null]":H&&H in Object(r)?function(r){var e=E.call(r,H),t=r[H];try{r[H]=void 0;var n=!0}catch(a){}var o=B.call(r);n&&(e?r[H]=t:delete r[H]);return o}(r):function(r){return B.call(r)}(r)}function sr(r){return Ar(r)&&ir(r)==a}function lr(r){return!(!Cr(r)||function(r){return!!R&&R in r}(r))&&(wr(r)?O:l).test(function(r){if(null!=r){try{return z.call(r)}catch(e){}try{return r+""}catch(e){}}return""}(r))}function cr(r){if(!Cr(r))return function(r){var e=[];if(null!=r)for(var t in Object(r))e.push(t);return e}(r);var e=br(r),t=[];for(var n in r)("constructor"!=n||!e&&E.call(r,n))&&t.push(n);return t}function ur(r,e,t,n,o){r!==e&&ar(e,(function(a,i){if(o||(o=new Q),Cr(a))!function(r,e,t,n,o,a,i){var l=gr(r,t),c=gr(e,t),u=i.get(c);if(u)return void rr(r,t,u);var d=a?a(l,c,t+"",r,e,i):void 0,f=void 0===d;if(f){var p=xr(c),h=!p&&kr(c),b=!p&&!h&&zr(c);d=c,p||h||b?xr(l)?d=l:Ar(g=l)&&Sr(g)?d=function(r,e){var t=-1,n=r.length;e||(e=Array(n));for(;++t-1&&r%1==0&&r0){if(++e>=800)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}($?function(r,e){return $(r,"toString",{configurable:!0,enumerable:!1,value:(t=e,function(){return t}),writable:!0});var t}:jr);function vr(r,e){return r===e||r!==r&&e!==e}var yr=sr(function(){return arguments}())?sr:function(r){return Ar(r)&&E.call(r,"callee")&&!M.call(r,"callee")},xr=Array.isArray;function Sr(r){return null!=r&&_r(r.length)&&!wr(r)}var kr=N||function(){return!1};function wr(r){if(!Cr(r))return!1;var e=ir(r);return e==i||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function _r(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=o}function Cr(r){var e=typeof r;return null!=r&&("object"==e||"function"==e)}function Ar(r){return null!=r&&"object"==typeof r}var zr=y?function(r){return function(e){return r(e)}}(y):function(r){return Ar(r)&&_r(r.length)&&!!u[ir(r)]};function Er(r){return Sr(r)?J(r,!0):cr(r)}var Rr,Br=(Rr=function(r,e,t,n){ur(r,e,t,n)},dr((function(r,e){var t=-1,n=e.length,o=n>1?e[n-1]:void 0,a=n>2?e[2]:void 0;for(o=Rr.length>3&&"function"==typeof o?(n--,o):void 0,a&&function(r,e,t){if(!Cr(t))return!1;var n=typeof e;return!!("number"==n?Sr(t)&&hr(e,t.length):"string"==n&&e in t)&&vr(t[e],r)}(e[0],e[1],a)&&(o=n<3?void 0:o,n=1),r=Object(r);++ti.createElement(a.xB,{styles:'\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility; \n -moz-osx-font-smoothing: grayscale; \n touch-action: manipulation; \n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n '}),l=t(4288),c=t(9676),u=t(4738),d={parts:["container","button","panel","icon"],baseStyle:{container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"1rem",_focus:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:4,py:2},panel:{pt:2,px:4,pb:5},icon:{fontSize:"1.25em"}}},f=t(7621),p=t.n(f),h=t(5505),b=t(3808),g=(r,e,t)=>{var n=(0,h.Wf)(r,"colors."+e,e);return p()(n).isValid()?n:t},m=r=>e=>{var t=g(e,r);return p()(t).isDark()?"dark":"light"},v=(r,e)=>t=>{var n=g(t,r);return p()(n).setAlpha(e).toRgbString()};function y(r,e){return void 0===r&&(r="1rem"),void 0===e&&(e="rgba(255, 255, 255, 0.15)"),{backgroundImage:"linear-gradient(\n 45deg,\n "+e+" 25%,\n transparent 25%,\n transparent 50%,\n "+e+" 50%,\n "+e+" 75%,\n transparent 75%,\n transparent\n )",backgroundSize:r+" "+r}}function x(r){var e=p().random().toHexString();return!r||(0,b.Qr)(r)?e:r.string&&r.colors?function(r,e){var t=0;if(0===r.length)return e[0];for(var n=0;n>8*o&255).toString(16)).substr(-2)}return n}(r.string):r.colors&&!r.string?function(r){return r[Math.floor(Math.random()*r.length)]}(r.colors):e}function S(r,e){return t=>"dark"===t.colorMode?e:r}function k(r){var{orientation:e,vertical:t,horizontal:n}=r;return e?"vertical"===e?t:n:{}}function w(r){var{theme:e,colorScheme:t}=r;return S(g(e,t+".100",t),v(t+".200",.16)(e))(r)}var _={parts:["container","title","description","icon"],baseStyle:{container:{px:4,py:3},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6},icon:{flexShrink:0,marginEnd:3,w:5,h:6}},variants:{subtle:function(r){var{colorScheme:e}=r;return{container:{bg:w(r)},icon:{color:S(e+".500",e+".200")(r)}}},"left-accent":function(r){var{colorScheme:e}=r;return{container:{paddingStart:3,borderStartWidth:"4px",borderStartColor:S(e+".500",e+".200")(r),bg:w(r)},icon:{color:S(e+".500",e+".200")(r)}}},"top-accent":function(r){var{colorScheme:e}=r;return{container:{pt:2,borderTopWidth:"4px",borderTopColor:S(e+".500",e+".200")(r),bg:w(r)},icon:{color:S(e+".500",e+".200")(r)}}},solid:function(r){var{colorScheme:e}=r;return{container:{bg:S(e+".500",e+".200")(r),color:S("white","gray.900")(r)}}}},defaultProps:{variant:"subtle",colorScheme:"blue"}},C={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"};function A(){return(A=Object.assign||function(r){for(var e=1;ee=>"dark"===m(r)(e))(n)(t),a="white";return o||(a="gray.800"),{bg:n,color:a,borderColor:S("white","gray.800")(r),verticalAlign:"top"}}function j(r){var e=z[r];return{container:{width:r,height:r,fontSize:"calc("+(null!=e?e:r)+" / 2.5)"},excessLabel:{width:r,height:r},label:{fontSize:"calc("+(null!=e?e:r)+" / 2.5)",lineHeight:"100%"!==r?null!=e?e:r:void 0}}}var O={parts:["container","excessLabel","badge","label"],baseStyle:r=>({badge:E(r),excessLabel:R(r),container:B(r)}),sizes:{"2xs":j("4"),xs:j("6"),sm:j("8"),md:j("12"),lg:j("16"),xl:j("24"),"2xl":j("32"),full:j("100%")},defaultProps:{size:"md"}};var T={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},variants:{solid:function(r){var{colorScheme:e,theme:t}=r;return{bg:S(e+".500",v(e+".500",.6)(t))(r),color:S("white","whiteAlpha.800")(r)}},subtle:function(r){var{colorScheme:e,theme:t}=r;return{bg:S(e+".100",v(e+".200",.16)(t))(r),color:S(e+".800",e+".200")(r)}},outline:function(r){var{colorScheme:e,theme:t}=r,n=v(e+".200",.8)(t),o=S(g(t,e+".500"),n)(r);return{color:o,boxShadow:"inset 0 0 0px 1px "+o}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},F={parts:["container","item","link","separator"],baseStyle:{link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}}};function P(){return(P=Object.assign||function(r){for(var e=1;e({icon:H,control:M(r),label:L}),sizes:{sm:{control:{h:3,w:3},label:{fontSize:"sm"},icon:{fontSize:"0.45rem"}},md:{control:{w:4,h:4},label:{fontSize:"md"},icon:{fontSize:"0.625rem"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"},icon:{fontSize:"0.625rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};var N={baseStyle:function(r){return{borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:S("blackAlpha.100","whiteAlpha.100")(r)},_active:{bg:S("blackAlpha.200","whiteAlpha.200")(r)},_focus:{boxShadow:"outline"}}},sizes:{lg:{w:"40px",h:"40px",fontSize:"16px"},md:{w:"32px",h:"32px",fontSize:"12px"},sm:{w:"24px",h:"24px",fontSize:"10px"}},defaultProps:{size:"md"}},{variants:V,defaultProps:Y}=T,q={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},variants:V,defaultProps:Y},X={baseStyle:{w:"100%",mx:"auto",maxW:"60ch",px:"1rem"}},U={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},G={bg:"blackAlpha.600",zIndex:"modal"};function Z(r){var{isCentered:e,scrollBehavior:t}=r;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e?"center":"flex-start",overflow:"inside"===t?"hidden":"auto"}}function K(r){var{scrollBehavior:e}=r;return{borderRadius:"md",bg:S("white","gray.700")(r),color:"inherit",my:"3.75rem",zIndex:"modal",maxH:"inside"===e?"calc(100% - 7.5rem)":void 0,boxShadow:S("lg","dark-lg")(r)}}var Q={px:6,py:4,fontSize:"xl",fontWeight:"semibold"},J={position:"absolute",top:2,insetEnd:3};function rr(r){var{scrollBehavior:e}=r;return{px:6,py:2,flex:1,overflow:"inside"===e?"auto":void 0}}var er={px:6,py:4};function tr(r){return"full"===r?{dialog:{maxW:"100vw",minH:"100vh"}}:{dialog:{maxW:r}}}var nr={parts:["overlay","dialogContainer","dialog","header","closeButton","body","footer"],baseStyle:r=>({overlay:G,dialogContainer:Z(r),dialog:K(r),header:Q,closeButton:J,body:rr(r),footer:er}),sizes:{xs:tr("xs"),sm:tr("sm"),md:tr("md"),lg:tr("lg"),xl:tr("xl"),"2xl":tr("2xl"),"3xl":tr("3xl"),"4xl":tr("4xl"),"5xl":tr("5xl"),"6xl":tr("6xl"),full:tr("full")},defaultProps:{size:"md"}};function or(){return(or=Object.assign||function(r){for(var e=1;e({overlay:ir,dialogContainer:sr,dialog:lr(r),header:cr,closeButton:ur,body:dr,footer:fr}),sizes:{xs:ar("xs"),sm:ar("md"),md:ar("lg"),lg:ar("2xl"),xl:ar("4xl"),full:ar("full")},defaultProps:{size:"xs"}},hr={parts:["preview","input"],baseStyle:{preview:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"3px",transitionProperty:"common",transitionDuration:"normal",width:"full",_focus:{boxShadow:"outline"},_placeholder:{opacity:.6}}}};function br(r){return{marginStart:1,color:S("red.500","red.300")(r)}}function gr(r){return{mt:2,color:S("gray.500","whiteAlpha.600")(r),lineHeight:"normal",fontSize:"sm"}}var mr={parts:["requiredIndicator","helperText"],baseStyle:r=>({requiredIndicator:br(r),helperText:gr(r)})},vr={baseStyle:{fontSize:"md",marginEnd:3,mb:2,fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},yr={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},xr={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}};function Sr(r){var{focusBorderColor:e,errorBorderColor:t}=r;return{focusBorderColor:e||S("blue.500","blue.300")(r),errorBorderColor:t||S("red.500","red.300")(r)}}var kr={parts:["field","addon"],baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:{lg:{field:xr.lg,addon:xr.lg},md:{field:xr.md,addon:xr.md},sm:{field:xr.sm,addon:xr.sm},xs:{field:xr.xs,addon:xr.xs}},variants:{outline:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=Sr(r);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:S("gray.300","whiteAlpha.400")(r)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:g(e,n),boxShadow:"0 0 0 1px "+g(e,n)},_focus:{zIndex:1,borderColor:g(e,t),boxShadow:"0 0 0 1px "+g(e,t)}},addon:{border:"1px solid",borderColor:S("inherit","whiteAlpha.50")(r),bg:S("gray.100","whiteAlpha.300")(r)}}},filled:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=Sr(r);return{field:{border:"2px solid",borderColor:"transparent",bg:S("gray.100","whiteAlpha.50")(r),_hover:{bg:S("gray.200","whiteAlpha.100")(r)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:g(e,n)},_focus:{bg:"transparent",borderColor:g(e,t)}},addon:{border:"2px solid",borderColor:"transparent",bg:S("gray.100","whiteAlpha.50")(r)}}},flushed:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:n}=Sr(r);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:g(e,n),boxShadow:"0px 1px 0px 0px "+g(e,n)},_focus:{borderColor:g(e,t),boxShadow:"0px 1px 0px 0px "+g(e,t)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},defaultProps:{size:"md",variant:"outline"}};var wr={baseStyle:function(r){return{bg:S("gray.100","whiteAlpha")(r),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}}},_r={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focus:{boxShadow:"outline"}}},Cr={parts:["container","item","icon"],baseStyle:{container:{},item:{},icon:{marginEnd:"0.5rem",display:"inline",verticalAlign:"text-bottom"}}};function Ar(r){return{bg:S("#fff","gray.700")(r),boxShadow:S("sm","dark-lg")(r),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}}function zr(r){return{py:"0.4rem",px:"0.8rem",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:S("gray.100","whiteAlpha.100")(r)},_active:{bg:S("gray.200","whiteAlpha.200")(r)},_expanded:{bg:S("gray.100","whiteAlpha.100")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}var Er,Rr={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Br={opacity:.6},jr={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"0.5rem",opacity:.6},Or={transitionProperty:"common",transitionDuration:"normal"},Tr={parts:["item","command","list","button","groupTitle","divider"],baseStyle:r=>({button:Or,list:Ar(r),item:zr(r),groupTitle:Rr,command:Br,divider:jr})},Fr={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}};function Pr(){return(Pr=Object.assign||function(r){for(var e=1;e({root:Wr,field:Mr,stepperGroup:Lr,stepper:Hr(r)}),sizes:{xs:$r("xs"),sm:$r("sm"),md:$r("md"),lg:$r("lg")},variants:Ir,defaultProps:Dr};function Vr(){return(Vr=Object.assign||function(r){for(var e=1;ekr.variants.outline(r).field,flushed:r=>kr.variants.flushed(r).field,filled:r=>kr.variants.filled(r).field,unstyled:kr.variants.unstyled.field},defaultProps:kr.defaultProps},qr={zIndex:10};function Xr(r){return{"--popover-bg":"colors."+S("white","gray.700")(r),bg:"var(--popover-bg)","--popper-arrow-bg":"var(--popover-bg)","--popper-arrow-shadow-color":"colors."+S("gray.200","whiteAlpha.300")(r),width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focus:{outline:0,boxShadow:"outline"}}}var Ur={px:3,py:2,borderBottomWidth:"1px"},Gr={px:3,py:2},Zr={px:3,py:2,borderTopWidth:"1px"},Kr={parts:["popper","content","header","body","footer","arrow"],baseStyle:r=>({popper:qr,content:Xr(r),header:Ur,body:Gr,footer:Zr,arrow:{}})};function Qr(){return(Qr=Object.assign||function(r){for(var e=1;e({label:Jr,filledTrack:ee(r),track:re(r)}),defaultProps:{size:"md",colorScheme:"blue"}};function ne(){return(ne=Object.assign||function(r){for(var e=1;e({label:$.baseStyle(r).label,control:oe(r)}),sizes:{md:{control:{w:4,h:4},label:{fontSize:"md"}},lg:{control:{w:5,h:5},label:{fontSize:"lg"}},sm:{control:{width:3,height:3},label:{fontSize:"sm"}}},defaultProps:{size:"md",colorScheme:"blue"}},ie=t(8554);function se(){return(se=Object.assign||function(r){for(var e=1;e option, > optgroup":{bg:S("white","gray.700")(r)}})}var ce={width:"1.5rem",height:"100%",insetEnd:"0.5rem",position:"relative",color:"currentColor",fontSize:"1.25rem",_disabled:{opacity:.5}},ue={parts:["field","icon"],baseStyle:r=>({field:le(r),icon:ce}),sizes:t.n(ie)()({},kr.sizes,{xs:{icon:{insetEnd:"0.25rem"}}}),variants:kr.variants,defaultProps:kr.defaultProps},de=(r,e)=>(0,a.F4)({from:{borderColor:r,background:r},to:{borderColor:e,background:e}}),fe={baseStyle:r=>{var e=S("gray.100","gray.800")(r),t=S("gray.400","gray.600")(r),{startColor:n=e,endColor:o=t,speed:a,theme:i}=r,s=g(i,n),l=g(i,o);return{opacity:.7,borderRadius:"2px",borderColor:s,background:l,animation:a+"s linear infinite alternate "+de(s,l)}}},pe={baseStyle:r=>({borderRadius:"md",fontWeight:"semibold",_focus:{boxShadow:"outline",padding:"1rem",position:"fixed",top:"1.5rem",insetStart:"1.5rem",bg:S("white","gray.700")(r)}})};function he(){return(he=Object.assign||function(r){for(var e=1;e{var{orientation:e}=r;return he({_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},k({orientation:e,vertical:{h:"100%"},horizontal:{w:"100%"}}))};function ge(r){return{borderRadius:"sm",bg:S("gray.200","whiteAlpha.200")(r),_disabled:{bg:S("gray.300","whiteAlpha.300")(r)}}}function me(r){return he({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(r){return k({orientation:r.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)"}}})}(r))}function ve(r){var{colorScheme:e}=r;return{bg:S(e+".500",e+".200")(r)}}var ye={parts:["container","thumb","track","filledTrack"],sizes:{lg:function(r){return{thumb:{w:"16px",h:"16px"},track:k({orientation:r.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},md:function(r){return{thumb:{w:"14px",h:"14px"},track:k({orientation:r.orientation,horizontal:{h:"4px"},vertical:{w:"4px"}})}},sm:function(r){return{thumb:{w:"10px",h:"10px"},track:k({orientation:r.orientation,horizontal:{h:"2px"},vertical:{w:"2px"}})}}},baseStyle:r=>({container:be(r),track:ge(r),thumb:me(r),filledTrack:ve(r)}),defaultProps:{size:"md",colorScheme:"blue"}},xe={baseStyle:{width:"var(--spinner-size)",height:"var(--spinner-size)"},sizes:{xs:{"--spinner-size":"0.75rem"},sm:{"--spinner-size":"1rem"},md:{"--spinner-size":"1.5rem"},lg:{"--spinner-size":"2rem"},xl:{"--spinner-size":"3rem"}},defaultProps:{size:"md"}},Se={parts:["label","number","icon","helpText"],baseStyle:{label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:2},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"14px",h:"14px",verticalAlign:"middle"}},sizes:{md:{label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}}},defaultProps:{size:"md"}};function ke(r){var{colorScheme:e}=r;return{borderRadius:"full",p:"2px",width:"var(--slider-track-width)",height:"var(--slider-track-height)",transitionProperty:"common",transitionDuration:"fast",bg:S("gray.300","whiteAlpha.400")(r),_focus:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:S(e+".500",e+".200")(r)}}}var we={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:"var(--slider-track-height)",height:"var(--slider-track-height)",_checked:{transform:"translateX(var(--slider-thumb-x))"}},_e={parts:["container","track","thumb"],baseStyle:r=>({container:{"--slider-track-diff":"calc(var(--slider-track-width) - var(--slider-track-height))","--slider-thumb-x":"var(--slider-track-diff)",_rtl:{"--slider-thumb-x":"calc(-1 * var(--slider-track-diff))"}},track:ke(r),thumb:we}),sizes:{sm:{container:{"--slider-track-width":"1.375rem","--slider-track-height":"0.75rem"}},md:{container:{"--slider-track-width":"1.875rem","--slider-track-height":"1rem"}},lg:{container:{"--slider-track-width":"2.875rem","--slider-track-height":"1.5rem"}}},defaultProps:{size:"md",colorScheme:"blue"}};function Ce(){return(Ce=Object.assign||function(r){for(var e=1;e{var{colorScheme:e}=r;return{th:Ce({color:S("gray.600","gray.400")(r),borderBottom:"1px",borderColor:S(e+".100",e+".700")(r)},Ae),td:Ce({borderBottom:"1px",borderColor:S(e+".100",e+".700")(r)},Ae),caption:{color:S("gray.600","gray.100")(r)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},striped:r=>{var{colorScheme:e}=r;return{th:Ce({color:S("gray.600","gray.400")(r),borderBottom:"1px",borderColor:S(e+".100",e+".700")(r)},Ae),td:Ce({borderBottom:"1px",borderColor:S(e+".100",e+".700")(r)},Ae),caption:{color:S("gray.600","gray.100")(r)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:S(e+".100",e+".700")(r)},td:{background:S(e+".100",e+".700")(r)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}},unstyled:{}},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"}};function Ee(r){var{orientation:e}=r;return{display:"vertical"===e?"flex":"block"}}function Re(r){var{isFitted:e}=r;return{flex:e?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focus:{zIndex:1,boxShadow:"outline"}}}function Be(r){var{align:e="start",orientation:t}=r;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[e],flexDirection:"vertical"===t?"column":"row"}}var je={p:4};var Oe={parts:["root","tablist","tab","tabpanels","tabpanel","indicator"],baseStyle:r=>({root:Ee(r),tab:Re(r),tablist:Be(r),tabpanel:je}),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:{line:function(r){var{colorScheme:e,orientation:t}=r,n="vertical"===t?"borderStart":"borderBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",["vertical"===t?"marginStart":"marginBottom"]:"-2px",_selected:{color:S(e+".600",e+".300")(r),borderColor:"currentColor"},_active:{bg:S("gray.200","whiteAlpha.300")(r)},_disabled:{opacity:.4,cursor:"not-allowed"}}}},enclosed:function(r){var{colorScheme:e}=r;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:S(e+".600",e+".300")(r),borderColor:"inherit",borderBottomColor:S("white","gray.800")(r)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"enclosed-colored":function(r){var{colorScheme:e}=r;return{tab:{border:"1px solid",borderColor:"inherit",bg:S("gray.50","whiteAlpha.50")(r),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:S("#fff","gray.800")(r),color:S(e+".600",e+".300")(r),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}},"soft-rounded":function(r){var{colorScheme:e,theme:t}=r;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:g(t,e+".700"),bg:g(t,e+".100")}}}},"solid-rounded":function(r){var{colorScheme:e}=r;return{tab:{borderRadius:"full",fontWeight:"semibold",color:S("gray.600","inherit")(r),_selected:{color:S("#fff","gray.800")(r),bg:S(e+".600",e+".300")(r)}}}},unstyled:{}},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}},Te={parts:["container","label","closeButton"],variants:{subtle:r=>({container:T.variants.subtle(r)}),solid:r=>({container:T.variants.solid(r)}),outline:r=>({container:T.variants.outline(r)})},baseStyle:{container:{fontWeight:"medium",lineHeight:1.2,outline:0,_focus:{boxShadow:"outline"}},label:{lineHeight:1.2},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}}},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"}};function Fe(){return(Fe=Object.assign||function(r){for(var e=1;ekr.variants.outline(r).field,flushed:r=>kr.variants.flushed(r).field,filled:r=>kr.variants.filled(r).field,unstyled:kr.variants.unstyled.field},De={xs:kr.sizes.xs.field,sm:kr.sizes.sm.field,md:kr.sizes.md.field,lg:kr.sizes.lg.field};function We(r){return{color:S("red.500","red.300")(r),mt:2,fontSize:"sm"}}function Me(r){return{marginEnd:"0.5em",color:S("red.500","red.300")(r)}}var Le={Accordion:d,Alert:_,Avatar:O,Badge:T,Breadcrumb:F,Button:W,Checkbox:$,CloseButton:N,Code:q,Container:X,Divider:U,Drawer:pr,Editable:hr,Form:mr,FormLabel:vr,Heading:yr,Input:kr,Kbd:wr,Link:_r,List:Cr,Menu:Tr,Modal:nr,NumberInput:Nr,PinInput:Yr,Popover:Kr,Progress:te,Radio:ae,Select:ue,Skeleton:fe,SkipLink:pe,Slider:ye,Spinner:xe,Stat:Se,Switch:_e,Table:ze,Tabs:Oe,Tag:Te,Textarea:{baseStyle:Pe,sizes:De,variants:Ie,defaultProps:{size:"md",variant:"outline"}},Tooltip:{baseStyle:function(r){return{"--tooltip-bg":"colors."+S("gray.700","gray.300")(r),px:"8px",py:"2px",bg:"var(--tooltip-bg)","--popper-arrow-bg":"var(--tooltip-bg)",color:S("whiteAlpha.900","gray.900")(r),borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"320px",zIndex:"tooltip"}}},FormError:{parts:["text","icon"],baseStyle:r=>({text:We(r),icon:Me(r)})}},He={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},$e=t(658);function Ne(){return(Ne=Object.assign||function(r){for(var e=1;e((0,$e.ZK)({condition:!0,message:["[chakra-ui]: createBreakpoints(...) will be deprecated pretty soon","simply pass the breakpoints as an object. Remove the createBreakpoint(..) call"].join("")}),Ne({base:"0em"},r)))({sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"});function Ye(){return(Ye=Object.assign||function(r){for(var e=1;e({body:{fontFamily:"body",color:S("gray.800","whiteAlpha.900")(r),bg:S("white","gray.800")(r),transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:S("gray.400","whiteAlpha.400")(r)},"*, *::before, &::after":{borderColor:S("gray.200","whiteAlpha.300")(r),wordWrap:"break-word"}})},config:{useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"}}),Ue=t(4461),Ge={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]})},Ze=()=>{},Ke={window:{document:Ge,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:Ze,removeEventListener:Ze,getComputedStyle:()=>({getPropertyValue:()=>""}),matchMedia:()=>({matches:!1,addListener:Ze,removeListener:Ze}),requestAnimationFrame:r=>"undefined"===typeof setTimeout?(r(),null):setTimeout(r,0),cancelAnimationFrame(r){"undefined"!==typeof setTimeout&&clearTimeout(r)},setTimeout:()=>0,clearTimeout:Ze,setInterval:()=>0,clearInterval:Ze},document:Ge},Qe=Ue.jU?{window:window,document:document}:Ke,Je=(0,i.createContext)(Qe);function rt(r){var{children:e,environment:t}=r,[n,o]=(0,i.useState)(null),a=(0,i.useMemo)((()=>{var r,e=null==n?void 0:n.ownerDocument,o=null==n?void 0:n.ownerDocument.defaultView;return null!=(r=null!=t?t:e?{document:e,window:o}:void 0)?r:Qe}),[n,t]),s=!n&&!t;return i.createElement(Je.Provider,{value:a},e,s&&i.createElement("span",{ref:r=>{r&&o(r)}}))}b.Ts&&(Je.displayName="EnvironmentContext"),b.Ts&&(rt.displayName="EnvironmentProvider");var et=t(4577),tt=r=>{var{children:e,colorModeManager:t,portalZIndex:n,resetCSS:o=!0,theme:a=Xe,environment:d,cssVarsRoot:f}=r,p=i.createElement(rt,{environment:d},e);return i.createElement(et.vc,null,i.createElement(c.f6,{theme:a,cssVarsRoot:f},i.createElement(u.SG,{colorModeManager:t,options:a.config},o&&i.createElement(s,null),i.createElement(c.ZL,null),n?i.createElement(l.h,{zIndex:n},p):p)))};function nt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function ot(r){for(var e=1;e1&&(t-=1),t<1/6?r+6*(e-r)*t:t<.5?e:t<2/3?r+(e-r)*(2/3-t)*6:r}if(r=T(r,360),e=T(e,100),t=T(t,100),0===e)n=o=a=t;else{var s=t<.5?t*(1+e):t+e-t*e,l=2*t-s;n=i(l,s,r+1/3),o=i(l,s,r),a=i(l,s,r-1/3)}return{r:255*n,g:255*o,b:255*a}}(r.h,n,l),d=!0,f="hsl"),r.hasOwnProperty("a")&&(t=r.a));var p,h,b;return t=O(t),{ok:d,format:r.format||f,r:c(255,u(e.r,0)),g:c(255,u(e.g,0)),b:c(255,u(e.b,0)),a:t}}(r);this._originalInput=r,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=l(100*this._a)/100,this._format=e.format||t.format,this._gradientType=e.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=t.ok,this._tc_id=s++}function p(r,e,t){r=T(r,255),e=T(e,255),t=T(t,255);var n,o,a=u(r,e,t),i=c(r,e,t),s=(a+i)/2;if(a==i)n=o=0;else{var l=a-i;switch(o=s>.5?l/(2-a-i):l/(a+i),a){case r:n=(e-t)/l+(e>1)+720)%360;--e;)n.h=(n.h+o)%360,a.push(f(n));return a}function R(r,e){e=e||6;for(var t=f(r).toHsv(),n=t.h,o=t.s,a=t.v,i=[],s=1/e;e--;)i.push(f({h:n,s:o,v:a})),a=(a+s)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(299*r.r+587*r.g+114*r.b)/1e3},getLuminance:function(){var r,e,t,n=this.toRgb();return r=n.r/255,e=n.g/255,t=n.b/255,.2126*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))},setAlpha:function(r){return this._a=O(r),this._roundA=l(100*this._a)/100,this},toHsv:function(){var r=h(this._r,this._g,this._b);return{h:360*r.h,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=h(this._r,this._g,this._b),e=l(360*r.h),t=l(100*r.s),n=l(100*r.v);return 1==this._a?"hsv("+e+", "+t+"%, "+n+"%)":"hsva("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var r=p(this._r,this._g,this._b);return{h:360*r.h,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=p(this._r,this._g,this._b),e=l(360*r.h),t=l(100*r.s),n=l(100*r.l);return 1==this._a?"hsl("+e+", "+t+"%, "+n+"%)":"hsla("+e+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(r){return b(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return function(r,e,t,n,o){var a=[I(l(r).toString(16)),I(l(e).toString(16)),I(l(t).toString(16)),I(W(n))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*T(this._r,255))+"%",g:l(100*T(this._g,255))+"%",b:l(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%)":"rgba("+l(100*T(this._r,255))+"%, "+l(100*T(this._g,255))+"%, "+l(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(r){var e="#"+g(this._r,this._g,this._b,this._a),t=e,n=this._gradientType?"GradientType = 1, ":"";if(r){var o=f(r);t="#"+g(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+t+")"},toString:function(r){var e=!!r;r=r||this._format;var t=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==r&&"hex6"!==r&&"hex3"!==r&&"hex4"!==r&&"hex8"!==r&&"name"!==r?("rgb"===r&&(t=this.toRgbString()),"prgb"===r&&(t=this.toPercentageRgbString()),"hex"!==r&&"hex6"!==r||(t=this.toHexString()),"hex3"===r&&(t=this.toHexString(!0)),"hex4"===r&&(t=this.toHex8String(!0)),"hex8"===r&&(t=this.toHex8String()),"name"===r&&(t=this.toName()),"hsl"===r&&(t=this.toHslString()),"hsv"===r&&(t=this.toHsvString()),t||this.toHexString()):"name"===r&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(r,e){var t=r.apply(null,[this].concat([].slice.call(e)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},f.fromRatio=function(r,e){if("object"==typeof r){var t={};for(var n in r)r.hasOwnProperty(n)&&(t[n]="a"===n?r[n]:D(r[n]));r=t}return f(r,e)},f.equals=function(r,e){return!(!r||!e)&&f(r).toRgbString()==f(e).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(r,e,t){t=0===t?0:t||50;var n=f(r).toRgb(),o=f(e).toRgb(),a=t/100;return f({r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a})},f.readability=function(r,e){var t=f(r),n=f(e);return(o.max(t.getLuminance(),n.getLuminance())+.05)/(o.min(t.getLuminance(),n.getLuminance())+.05)},f.isReadable=function(r,e,t){var n,o,a=f.readability(r,e);switch(o=!1,(n=function(r){var e,t;e=((r=r||{level:"AA",size:"small"}).level||"AA").toUpperCase(),t=(r.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==t&&"large"!==t&&(t="small");return{level:e,size:t}}(t)).level+n.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},f.mostReadable=function(r,e,t){var n,o,a,i,s=null,l=0;o=(t=t||{}).includeFallbackColors,a=t.level,i=t.size;for(var c=0;cl&&(l=n,s=f(e[c]));return f.isReadable(r,s,{level:a,size:i})||!o?s:(t.includeFallbackColors=!1,f.mostReadable(r,["#fff","#000"],t))};var B=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=f.hexNames=function(r){var e={};for(var t in r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e}(B);function O(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function T(r,e){(function(r){return"string"==typeof r&&-1!=r.indexOf(".")&&1===parseFloat(r)})(r)&&(r="100%");var t=function(r){return"string"===typeof r&&-1!=r.indexOf("%")}(r);return r=c(e,u(0,parseFloat(r))),t&&(r=parseInt(r*e,10)/100),o.abs(r-e)<1e-6?1:r%e/parseFloat(e)}function F(r){return c(1,u(0,r))}function P(r){return parseInt(r,16)}function I(r){return 1==r.length?"0"+r:""+r}function D(r){return r<=1&&(r=100*r+"%"),r}function W(r){return o.round(255*parseFloat(r)).toString(16)}function M(r){return P(r)/255}var L=function(){var r="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",e="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",t="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+t),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+t),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+t),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function H(r){return!!L.CSS_UNIT.exec(r)}r.exports?r.exports=f:void 0===(n=function(){return f}.call(e,t,e,r))||(r.exports=n)}(Math)}},function(r){var e=function(e){return r(r.s=e)};r.O(0,[774,179],(function(){return e(6363),e(4651)}));var t=r.O();_N_E=t}]); \ No newline at end of file diff --git a/build/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js b/build/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js deleted file mode 100644 index 2c29d9b..0000000 --- a/build/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{3646:function(e,t,n){var r=n(7228);e.exports=function(e){if(Array.isArray(e))return r(e)}},9713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},6860:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},8206:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},319:function(e,t,n){var r=n(3646),a=n(6860),o=n(379),i=n(8206);e.exports=function(e){return r(e)||a(e)||o(e)||i()}},3398:function(e,t,n){"use strict";var r;t.__esModule=!0,t.AmpStateContext=void 0;var a=((r=n(7294))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=a},6393:function(e,t,n){"use strict";t.__esModule=!0,t.isInAmpMode=i,t.useAmp=function(){return i(a.default.useContext(o.AmpStateContext))};var r,a=(r=n(7294))&&r.__esModule?r:{default:r},o=n(3398);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,a=void 0!==r&&r,o=e.hasQuery,i=void 0!==o&&o;return n||a&&i}},2775:function(e,t,n){"use strict";var r=n(9713);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.__esModule=!0,t.defaultHead=d,t.default=void 0;var o,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(7294)),u=(o=n(3244))&&o.__esModule?o:{default:o},c=n(3398),s=n(1165),l=n(6393);function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[i.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(i.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function p(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var h=["name","httpEquiv","charSet","itemProp"];function y(e,t){return e.reduce((function(e,t){var n=i.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(p,[]).reverse().concat(d(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(a){var o=!0,i=!1;if(a.key&&"number"!==typeof a.key&&a.key.indexOf("$")>0){i=!0;var u=a.key.slice(a.key.indexOf("$")+1);e.has(u)?o=!1:e.add(u)}switch(a.type){case"title":case"base":t.has(a.type)?o=!1:t.add(a.type);break;case"meta":for(var c=0,s=h.length;c2&&void 0!==arguments[2]?arguments[2]:{}).storage)&&void 0!==t?t:localStorage),r=i.get(),l=void 0!==r?r:n;l!==r&&i.update(l);var a=(0,d.useState)(l),s=a[0],o=a[1];return(0,d.useEffect)((function(){s!==l&&o(l)}),[e]),[s,function(e){e instanceof Function?o((function(n){var t=e(n);return i.update(t),t})):(o(e),i.update(e))}]}("physics",R),n=(0,u.Z)(e,2),t=n[0],i=n[1],r=(0,d.useState)(z),l=(r[0],r[1]),a=(0,d.useState)(null),f=a[0],j=a[1],b=(0,d.useState)(null),p=b[0],v=b[1],y=(0,d.useRef)({}),m=(0,d.useRef)({}),C=function(){return fetch("http://localhost:35901/graph").then((function(e){return e.json()})).then((function(e){y.current=Object.fromEntries(e.nodes.map((function(e){return[e.id,e]}))),m.current=e.links.reduce((function(e,n){var t,i,r;return F(F({},e),{},(r={},(0,c.Z)(r,n.source,[].concat((0,o.Z)(null!==(t=e[n.source])&&void 0!==t?t:[]),[n])),(0,c.Z)(r,n.target,[].concat((0,o.Z)(null!==(i=e[n.target])&&void 0!==i?i:[]),[n])),r))}),{});var n=JSON.parse(JSON.stringify(e));j(n)}))};(0,d.useEffect)((function(){new EventSource("http://127.0.0.1:35901/current-node-id").addEventListener("message",(function(e){var n=e.data;v(n)})),fetch("http://localhost:35901/theme").then((function(e){return e.json()})).then((function(e){l(e)})),C()}),[]),(0,d.useEffect)((function(){p&&C()}),[p]);var k=(0,d.useState)(!1),S=k[0],w=(k[1],(0,d.useState)(!0)),I=w[0],E=w[1];return f?(0,s.jsxs)("div",{children:[I?(0,s.jsx)(W,F(F({},{physics:t,setPhysics:i,threeDim:S}),{},{onClose:function(){E(!1)}})):(0,s.jsx)(g.xu,{position:"absolute",zIndex:"overlay",marginTop:"2%",marginLeft:"2%",children:(0,s.jsx)(x.h,{"aria-label":"Settings",icon:(0,s.jsx)(O.e,{}),onClick:function(){return E(!0)}})}),(0,s.jsx)(X,F({nodeById:y.current,linksByNodeId:m.current},{physics:t,graphData:f,threeDim:S,emacsNodeId:p}))]}):null}var _=function(e){var n=e.infoText;return(0,s.jsx)(g.xu,{paddingLeft:"1",children:(0,s.jsx)(j.u,{label:n,placement:"top",color:"gray.100",bg:"gray.800",hasArrow:!0,children:(0,s.jsx)(I.h,{})})})},M=function(e){var n=e.min,t=void 0===n?0:n,i=e.max,r=void 0===i?10:i,l=e.step,o=void 0===l?.1:l,c=e.value,u=void 0===c?1:c,d=(0,a.Z)(e,["min","max","step","value"]),h=d.onChange,f=d.label,x=d.infoText;return(0,s.jsxs)(g.xu,{children:[(0,s.jsxs)(g.xu,{display:"flex",alignItems:"flex-end",children:[(0,s.jsx)(b.x,{children:f}),x&&(0,s.jsx)(_,{infoText:x})]}),(0,s.jsxs)(p.iR,{value:u,onChange:h,min:t,max:r,step:o,children:[(0,s.jsx)(p.Uj,{children:(0,s.jsx)(p.Ms,{})}),(0,s.jsx)(j.u,{label:u.toFixed(1),children:(0,s.jsx)(p.gs,{})})]})]})},Z=function(e){var n=e.value,t=e.onChange,i=e.label,r=e.infoText,l=e.children;return(0,s.jsxs)(g.xu,{children:[(0,s.jsxs)(g.xu,{display:"flex",justifyContent:"space-between",children:[(0,s.jsxs)(g.xu,{display:"flex",alignItems:"center",children:[(0,s.jsx)(b.x,{children:i}),r&&(0,s.jsx)(_,{infoText:r})]}),(0,s.jsx)(v.r,{isChecked:!!n,onChange:t})]}),n&&l]})},W=function(e){var n=e.physics,t=e.setPhysics,i=(e.threeDim,e.onClose);return(0,s.jsxs)(g.xu,{zIndex:"overlay",position:"absolute",bg:"white",w:"xs",marginTop:"2%",marginLeft:"2%",borderRadius:"md",maxH:"80%",overflowY:"scroll",children:[(0,s.jsxs)(g.xu,{display:"flex",justifyContent:"flex-end",children:[(0,s.jsx)(j.u,{label:"Reset settings to defaults",children:(0,s.jsx)(x.h,{"aria-label":"Reset Defaults",icon:(0,s.jsx)(E.A,{}),onClick:function(){return t(R)}})}),(0,s.jsx)(y.P,{onClick:i})]}),(0,s.jsxs)(m.UQ,{allowMultiple:!0,allowToggle:!0,children:[(0,s.jsxs)(m.Qd,{children:[(0,s.jsxs)(m.KF,{display:"flex",justifyContent:"space-between",children:[(0,s.jsxs)(g.xu,{display:"flex",children:[(0,s.jsx)(m.XE,{}),(0,s.jsx)(b.x,{children:"Physics"})]}),(0,s.jsx)(v.r,{id:"physicsOn",onChange:function(){return t(F(F({},n),{},{enabled:!n.enabled}))},isChecked:n.enabled})]}),(0,s.jsxs)(m.Hk,{children:[(0,s.jsxs)(C.gC,{spacing:2,justifyContent:"flex-start",divider:(0,s.jsx)(C.cX,{borderColor:"gray.200"}),align:"stretch",children:[(0,s.jsx)(Z,{label:"Gravity",value:n.gravityOn,onChange:function(){return t(F(F({},n),{},{gravityOn:!n.gravityOn}))},children:(0,s.jsx)(M,{label:"Strength",value:10*n.gravity,onChange:function(e){return t(F(F({},n),{},{gravity:e/10}))}})}),(0,s.jsx)(M,{value:-n.charge/100,onChange:function(e){return t(F(F({},n),{},{charge:-100*e}))},label:"Repulsive Force"}),(0,s.jsx)(Z,{label:"Collision",infoText:"Perfomance sap, disable if slow",value:n.collision,onChange:function(){return t(F(F({},n),{},{collision:!n.collision}))},children:(0,s.jsx)(M,{value:10*n.collisionStrength,onChange:function(e){return t(F(F({},n),{},{collisionStrength:e/10}))},label:"Strength"})}),(0,s.jsx)(M,{value:5*n.linkStrength,onChange:function(e){return t(F(F({},n),{},{linkStrength:e/5}))},label:"Link Force"}),(0,s.jsx)(M,{label:"Link Iterations",value:n.linkIts,onChange:function(e){return t(F(F({},n),{},{linkIts:e}))},min:0,max:6,step:1,infoText:"How many links down the line the physics of a single node affects (Slow)"}),(0,s.jsx)(M,{label:"Viscosity",value:10*n.velocityDecay,onChange:function(e){return t(F(F({},n),{},{velocityDecay:e/10}))}})]}),(0,s.jsx)(g.xu,{children:(0,s.jsx)(m.UQ,{allowToggle:!0,children:(0,s.jsxs)(m.Qd,{children:[(0,s.jsxs)(m.KF,{children:[(0,s.jsx)(b.x,{children:"Advanced"}),(0,s.jsx)(m.XE,{})]}),(0,s.jsx)(m.Hk,{children:(0,s.jsxs)(C.gC,{spacing:2,justifyContent:"flex-start",divider:(0,s.jsx)(C.cX,{borderColor:"gray.200"}),align:"stretch",children:[(0,s.jsx)(M,{label:"Iterations per tick",min:1,max:10,step:1,value:n.iterations,onChange:function(e){return t(F(F({},n),{},{iterations:e}))},infoText:"Number of times the physics simulation iterates per simulation step"}),(0,s.jsx)(M,{label:"Stabilization rate",value:50*n.alphaDecay,onChange:function(e){return t(F(F({},n),{},{alphaDecay:e/50}))}})]})})]})})})]})]}),(0,s.jsxs)(m.Qd,{children:[(0,s.jsxs)(m.KF,{children:[(0,s.jsx)(m.XE,{}),"Visual"]}),(0,s.jsx)(m.Hk,{children:(0,s.jsxs)(C.gC,{spacing:2,justifyContent:"flex-start",divider:(0,s.jsx)(C.cX,{borderColor:"gray.200"}),align:"stretch",children:[(0,s.jsx)(M,{label:"Node size",value:n.nodeRel,onChange:function(e){return t(F(F({},n),{},{nodeRel:e}))}}),(0,s.jsx)(M,{label:"Link width",value:n.linkWidth,onChange:function(e){return t(F(F({},n),{},{linkWidth:e}))}}),(0,s.jsx)(Z,{label:"Labels",value:n.labels,onChange:function(){return t(F(F({},n),{},{labels:!n.labels}))},children:(0,s.jsx)(M,{label:"Label Appearance Scale",value:5*n.labelScale,onChange:function(e){return t(F(F({},n),{},{labelScale:e/5}))}})}),(0,s.jsxs)(Z,{label:"Directional Particles",value:n.particles,onChange:function(){return t(F(F({},n),{},{particles:!n.particles}))},children:[(0,s.jsx)(M,{label:"Particle Number",value:n.particlesNumber,max:5,step:1,onChange:function(e){return t(F(F({},n),{},{particlesNumber:e}))}}),(0,s.jsx)(M,{label:"Particle Size",value:n.particlesWidth,onChange:function(e){return t(F(F({},n),{},{particleWidth:e}))}})]}),(0,s.jsxs)(Z,{label:"Highlight",onChange:function(){return t(F(F({},n),{},{highlight:!n.highlight}))},value:n.highlight,children:[(0,s.jsx)(M,{label:"Highlight Link Thickness Multiplier",value:n.highlightLinkSize,onChange:function(e){return t(F(F({},n),{},{highlightLinkSize:e}))}}),(0,s.jsx)(M,{label:"Highlight Node Size Multiplier",value:n.highlightNodeSize,onChange:function(e){return t(F(F({},n),{},{highlightNodeSize:e}))}}),(0,s.jsx)(k.k,{justifyContent:"space-between",children:(0,s.jsx)(b.x,{children:" Highlight node color "})}),(0,s.jsx)(k.k,{justifyContent:"space-between",children:(0,s.jsx)(b.x,{children:" Highlight link color "})})]})]})})]}),(0,s.jsxs)(m.Qd,{children:[(0,s.jsxs)(m.KF,{children:[(0,s.jsx)(m.XE,{}),"Behavior"]}),(0,s.jsx)(m.Hk,{children:(0,s.jsxs)(C.gC,{spacing:2,justifyContent:"flex-start",divider:(0,s.jsx)(C.cX,{borderColor:"gray.200"}),align:"stretch",children:[(0,s.jsxs)(g.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,s.jsx)(b.x,{children:"Hover Higlight"}),(0,s.jsxs)(S.v2,{children:[(0,s.jsx)(S.j2,{as:w.z,rightIcon:(0,s.jsx)(N.v,{}),children:n.hover}),(0,s.jsxs)(S.qy,{children:[(0,s.jsx)(S.sN,{children:"Off"}),(0,s.jsx)(S.sN,{children:"On"})]})]})]}),(0,s.jsx)(g.xu,{display:"flex",justifyContent:"space-between",children:(0,s.jsx)(b.x,{children:"Click"})}),(0,s.jsx)(g.xu,{display:"flex",justifyContent:"space-between",children:(0,s.jsx)(b.x,{children:"Double-click"})})]})})]})]})]})},X=function(e){var n=e.physics,t=e.graphData,i=e.threeDim,a=e.linksByNodeId,c=e.emacsNodeId,h=e.nodeById,g=(0,d.useRef)(null),x=(0,d.useRef)(null),j=(0,f.iP)(),b=(0,u.Z)(j,2),p=b[0],v=b[1],y=(0,d.useState)(null),m=y[0],C=y[1],k=(0,d.useState)({nodeIds:[]}),S=k[0],w=k[1];(0,d.useEffect)((function(){c&&w({nodeIds:[c]})}),[c]);var O=m,I=function(){if(!O)return{};var e=a[O.id];return e?Object.fromEntries([O.id].concat((0,o.Z)(e.flatMap((function(e){return[e.source,e.target]})))).map((function(e){return[e,{}]}))):{}}(),E=t.nodes.filter((function(e){var n,t=null!==(n=a[e.id])&&void 0!==n?n:[];return S.nodeIds.includes(e.id)||t.some((function(e){return S.nodeIds.includes(e.source)||S.nodeIds.includes(e.target)}))})),N=E.map((function(e){return e.id})),D=t.links.filter((function(e){var n="object"===typeof e.source?e.source.id:e.source,t="object"===typeof e.target?e.target.id:e.target;return N.includes(n)&&N.includes(t)})),R=(0,d.useMemo)((function(){return 0===S.nodeIds.length?t:{nodes:E,links:D}}),[S,JSON.stringify(Object.keys(h))]);(0,d.useEffect)((function(){setTimeout((function(){var e=i?x.current:g.current;null===e||void 0===e||e.zoomToFit(0,200)}),1)}),[JSON.stringify(N)]),(0,d.useEffect)((function(){(0,l.Z)(r().mark((function e(){var n,t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i?x.current:g.current,e.next=3,T;case 3:t=e.sent,n.d3Force("collide",t.forceCollide().radius(10));case 5:case"end":return e.stop()}}),e)})))()})),(0,d.useEffect)((function(){var e;null===(e=g.current)||void 0===e||e.d3ReheatSimulation()}),[n]);var z=(0,d.useRef)(0),H={graphData:R,width:p,height:v,backgroundColor:"#242730",nodeLabel:function(e){return e.title},nodeColor:function(e){var t,i;if(!n.colorful)return 0===Object.keys(I).length?"rgb(100, 100, 100)":I[e.id]?"#a991f1":"rgb(50, 50, 50)";var r,l,s,o=["#ff665c","#e69055","#7bc275","#4db5bd","#FCCE7B","#51afef","#1f5582","#C57BDB","#a991f1","#5cEfFF","#6A8FBF"];return o[(r=null!==(t=null===(i=a[e.id])||void 0===i?void 0:i.length)&&void 0!==t?t:0,l=0,s=o.length-1,Math.min(Math.max(r,l),s))]},nodeRelSize:n.nodeRel,nodeVal:function(e){var n;return(null!==(n=a[e.id])&&void 0!==n?n:[]).length},nodeCanvasObject:function(e,t,i){if(n.labels&&(!(i<=n.labelScale)||I[e.id])){var r=e.title,l=r.substring(0,Math.min(r.length,30)),a=12/i,s=[1.1*t.measureText(l).width,a].map((function(e){return e+.5*a})),c=Math.min(3*(i-n.labelScale)/n.labelScale,1),u=0===Object.keys(I).length?.5*c:I[e.id]?.5:.15*c;t.fillStyle="rgba(20, 20, 20, ".concat(u,")"),t.fillRect.apply(t,[e.x-s[0]/2,e.y-s[1]/2].concat((0,o.Z)(s)));var d=0===Object.keys(I).length?c:I[e.id]?1:.3*c;t.textAlign="center",t.textBaseline="middle",t.fillStyle="rgb(255, 255, 255, ".concat(d,")"),t.font="".concat(a,"px Sans-Serif"),t.fillText(l,e.x,e.y)}},nodeCanvasObjectMode:function(){return"after"},linkDirectionalParticles:n.particles?n.particlesNumber:void 0,linkColor:function(e){return e.source.id===(null===O||void 0===O?void 0:O.id)||e.target.id===(null===O||void 0===O?void 0:O.id)?"#a991f1":"#666666"},linkWidth:n.linkWidth,linkDirectionalParticleWidth:n.particlesWidth,onNodeClick:function(e,n){var t=n.timeStamp-z.current<400;z.current=n.timeStamp,t?window.open("org-protocol://roam-node?node="+e.id,"_self"):w((function(n){return F(F({},n),{},{nodeIds:[].concat((0,o.Z)(n.nodeIds),[e.id])})}))},onBackgroundClick:function(){w((function(e){return F(F({},e),{},{nodeIds:[]})}))},onNodeHover:function(e){n.hover&&C(e)}};return(0,s.jsx)("div",{children:i?(0,s.jsx)(B,F(F({ref:x},H),{},{nodeThreeObjectExtend:!0})):(0,s.jsx)(P,F({ref:g},H))})}},5301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(9053)}])}},function(e){e.O(0,[774,737,446,283,888,179],(function(){return n=5301,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file -- cgit v1.2.3