From 85d63b6d25a5435a29cb435f9206d56d73f2244b Mon Sep 17 00:00:00 2001 From: Mrtenz Date: Thu, 4 Jul 2024 17:20:54 +0000 Subject: [PATCH] deploy: 527cb58b75afd83e7b65b70bade1190b821345bb --- .../pr/2531/assets/Card.stories-43e46574.js | 34 ++ ...2f0fc4a5.js => Color-PRSJMWNM-f23e4f15.js} | 2 +- ...e.js => DocsRenderer-K4EAMTCU-737df029.js} | 8 +- .../pr/2531/assets/Image.stories-4f60f041.js | 31 ++ ...13.js => WithTooltip-KJL26V4Q-e964e658.js} | 2 +- storybook/pr/2531/assets/iframe-21f17388.js | 1 - storybook/pr/2531/assets/iframe-f92ba46f.js | 1 + ...review-c90c1c0d.js => preview-6bcbbcf5.js} | 2 +- storybook/pr/2531/assets/preview-97c75eb8.js | 309 ------------------ storybook/pr/2531/assets/preview-c9eca470.js | 309 ++++++++++++++++++ ...=> syntaxhighlighter-BP7B2CQK-7f618a79.js} | 2 +- storybook/pr/2531/iframe.html | 2 +- storybook/pr/2531/index.json | 2 +- storybook/pr/2531/project.json | 2 +- 14 files changed, 386 insertions(+), 321 deletions(-) create mode 100644 storybook/pr/2531/assets/Card.stories-43e46574.js rename storybook/pr/2531/assets/{Color-PRSJMWNM-2f0fc4a5.js => Color-PRSJMWNM-f23e4f15.js} (99%) rename storybook/pr/2531/assets/{DocsRenderer-K4EAMTCU-69b7bfae.js => DocsRenderer-K4EAMTCU-737df029.js} (99%) create mode 100644 storybook/pr/2531/assets/Image.stories-4f60f041.js rename storybook/pr/2531/assets/{WithTooltip-KJL26V4Q-161ae313.js => WithTooltip-KJL26V4Q-e964e658.js} (62%) delete mode 100644 storybook/pr/2531/assets/iframe-21f17388.js create mode 100644 storybook/pr/2531/assets/iframe-f92ba46f.js rename storybook/pr/2531/assets/{preview-c90c1c0d.js => preview-6bcbbcf5.js} (72%) delete mode 100644 storybook/pr/2531/assets/preview-97c75eb8.js create mode 100644 storybook/pr/2531/assets/preview-c9eca470.js rename storybook/pr/2531/assets/{syntaxhighlighter-BP7B2CQK-1befffac.js => syntaxhighlighter-BP7B2CQK-7f618a79.js} (83%) diff --git a/storybook/pr/2531/assets/Card.stories-43e46574.js b/storybook/pr/2531/assets/Card.stories-43e46574.js new file mode 100644 index 0000000000..3bd7d0e5eb --- /dev/null +++ b/storybook/pr/2531/assets/Card.stories-43e46574.js @@ -0,0 +1,34 @@ +import{c as C,j as s}from"./component-2bcf5de3.js";const b="Card",a=C(b),E={title:"UI/Card",component:a,argTypes:{title:{description:"The title of the card."},description:{description:"The description to show below the title."},value:{description:"The value to show on the right side."},extra:{description:"An additional value to show below the value."},image:{description:"The image to show as part of the card. If provided, this must be an SVG string.",table:{type:{summary:"string"}}}}};function n(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e)}const t={render:e=>s(a,{...e}),args:{title:"Title",description:"This is a description.",value:n(1200),extra:"0.12 ETH"}},r={render:e=>s(a,{...e}),args:{title:"Title",value:n(1200)}},i={render:e=>s(a,{...e}),args:{title:"Title",description:"This is a description.",value:n(1200),extra:"0.12 ETH",image:` + + + 32x32 + + `}};var o,c,d,p,l;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{ + render: props => , + args: { + title: 'Title', + description: 'This is a description.', + value: formatCurrency(1200), + extra: '0.12 ETH' + } +}`,...(d=(c=t.parameters)==null?void 0:c.docs)==null?void 0:d.source},description:{story:"The card component renders a card with a title, description, and value.",...(l=(p=t.parameters)==null?void 0:p.docs)==null?void 0:l.description}}};var m,h,u,g,w;r.parameters={...r.parameters,docs:{...(m=r.parameters)==null?void 0:m.docs,source:{originalSource:`{ + render: props => , + args: { + title: 'Title', + value: formatCurrency(1200) + } +}`,...(u=(h=r.parameters)==null?void 0:h.docs)==null?void 0:u.source},description:{story:"A basic card, with just a title and value.",...(w=(g=r.parameters)==null?void 0:g.docs)==null?void 0:w.description}}};var x,f,v,T,y;i.parameters={...i.parameters,docs:{...(x=i.parameters)==null?void 0:x.docs,source:{originalSource:`{ + render: props => , + args: { + title: 'Title', + description: 'This is a description.', + value: formatCurrency(1200), + extra: '0.12 ETH', + image: \` + + + 32x32 + + \` + } +}`,...(v=(f=i.parameters)==null?void 0:f.docs)==null?void 0:v.source},description:{story:"A card with an image.",...(y=(T=i.parameters)==null?void 0:T.docs)==null?void 0:y.description}}};const I=["Default","Basic","WithImage"];export{r as Basic,t as Default,i as WithImage,I as __namedExportsOrder,E as default}; diff --git a/storybook/pr/2531/assets/Color-PRSJMWNM-2f0fc4a5.js b/storybook/pr/2531/assets/Color-PRSJMWNM-f23e4f15.js similarity index 99% rename from storybook/pr/2531/assets/Color-PRSJMWNM-2f0fc4a5.js rename to storybook/pr/2531/assets/Color-PRSJMWNM-f23e4f15.js index 2ab757989e..d2b5307ca5 100644 --- a/storybook/pr/2531/assets/Color-PRSJMWNM-2f0fc4a5.js +++ b/storybook/pr/2531/assets/Color-PRSJMWNM-f23e4f15.js @@ -1 +1 @@ -import{_ as Me,i as J,d as Ce,e as ue,T as $e,F as Oe,M as Ne,g as Ie}from"./DocsRenderer-K4EAMTCU-69b7bfae.js";import{R as h,r as b,g as fe}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import{c as Se}from"./index-b7949e8c.js";import{n as $}from"./index-161398fe.js";import"./iframe-21f17388.js";import"../sb-preview/runtime.js";import"./react-18-17fe38b0.js";function N(){return(N=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function q(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,c.current)):M(!1)},j=function(){return M(!1)};function M(p){var m=l.current,w=V(o.current),k=p?w.addEventListener:w.removeEventListener;k(m?"touchmove":"mousemove",y),k(m?"touchend":"mouseup",j)}return[function(p){var m=p.nativeEvent,w=o.current;if(w&&(re(m),!function(_,O){return O&&!F(_)}(m,l.current)&&w)){if(F(m)){l.current=!0;var k=m.changedTouches||[];k.length&&(c.current=k[0].identifier)}w.focus(),a(ne(w,m,c.current)),M(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return b.useEffect(function(){return g},[g]),h.createElement("div",N({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),H=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=H(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},x=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Re={grad:.9,turn:360,rad:360/(2*Math.PI)},je=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?x(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?x(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Re[t]||1)},Fe=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ze({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},ze=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},He=function(e){return Le(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:x(e.h),s:x(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:x(o/2),a:x(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},W=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),c=r*(1-(t-a)*n),l=r*(1-(1-t+a)*n),i=a%6;return{r:x(255*[r,c,s,s,l,r][i]),g:x(255*[l,r,r,c,s,s][i]),b:x(255*[s,s,l,r,r,c][i]),a:x(o,2)}},Pe=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Le=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(x(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),c=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:x(60*(c<0?c+6:c)),s:x(a?s/a*100:0),v:x(a/255*100),a:o}},be=h.memo(function(e){var t=e.hue,n=e.onChange,r=H(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),me=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(t.s)+"%, Brightness "+x(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Be=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function xe(e,t,n){var r=q(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],c=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,c.current.color)){var i=e.toHsva(t);c.current={hsva:i,color:t},s(i)}},[t,e]),b.useEffect(function(){var i;ve(a,c.current.hsva)||e.equal(i=e.fromHsva(a),c.current.color)||(c.current={hsva:a,color:i},r(i))},[a,e,r]);var l=b.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,l]}var We=typeof window<"u"?b.useLayoutEffect:b.useEffect,Xe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,ye=function(e){We(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Xe();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},De=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),c=b.useRef(null);ye(c);var l=xe(n,o,a),i=l[0],d=l[1],f=H(["react-colorful",t]);return h.createElement("div",N({},s,{ref:c,className:f}),h.createElement(me,{hsva:i,onChange:d}),h.createElement(be,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Ke={defaultColor:"000",toHsva:je,fromHsva:function(e){return He({h:e.h,s:e.s,v:e.v,a:1})},equal:Be},qe=function(e){return h.createElement(De,N({},e,{colorModel:Ke}))},Ve=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+W(Object.assign({},n,{a:0}))+", "+W(Object.assign({},n,{a:1}))+")"},a=H(["react-colorful__alpha",t]),s=x(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(c){r({a:c.left})},onKey:function(c){r({a:R(n.a+c.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:W(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),c=b.useRef(null);ye(c);var l=xe(n,o,a),i=l[0],d=l[1],f=H(["react-colorful",t]);return h.createElement("div",N({},s,{ref:c,className:f}),h.createElement(me,{hsva:i,onChange:d}),h.createElement(be,{hue:i.h,onChange:d}),h.createElement(Ve,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ae={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Fe,fromHsva:W,equal:pe},Ge=function(e){return h.createElement(we,N({},e,{colorModel:Ae}))},Ue={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Pe,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ye=function(e){return h.createElement(we,N({},e,{colorModel:Ue}))};const z=Se,_e={};for(const e of Object.keys(z))_e[z[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Ee=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let c,l;a===o?c=0:t===a?c=(n-r)/s:n===a?c=2+(r-t)/s:r===a&&(c=4+(t-n)/s),c=Math.min(c*60,360),c<0&&(c+=360);const i=(o+a)/2;return a===o?l=0:i<=.5?l=s/(a+o):l=s/(2-a-o),[c,l*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,c=e[1]/255,l=e[2]/255,i=Math.max(s,c,l),d=i-Math.min(s,c,l),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(c),r=f(l),s===i?o=r-n:c===i?o=1/3+t-r:l===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,c=(1-r-o)/(1-o)||0;return[a*100,s*100,c*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=_e[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),c=200*(r-o);return[a,s,c]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const c=2*r-o,l=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?s=c+(o-c)*6*a:2*a<1?s=o:3*a<2?s=c+(o-c)*(2/3-a)*6:s=c,l[i]=s*255;return l};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,c=r===0?2*o/(a+o):2*n/(r+n);return[t,c*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),c=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,l,s];case 1:return[c,r,s];case 2:return[s,r,l];case 3:return[s,c,r];case 4:return[l,s,r];case 5:return[r,s,c]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const c=(2-n)*o;return a=n*o,a/=c<=1?c:2-c,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),c=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(c-n);let i,d,f;switch(s){default:case 6:case 0:i=c,d=l,f=n;break;case 1:i=l,d=c,f=n;break;case 2:i=n,d=c,f=l;break;case 3:i=n,d=l,f=c;break;case 4:i=l,d=n,f=c;break;case 5:i=c,d=n,f=l;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),c=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,c*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const c=a**3,l=o**3,i=s**3;return a=c>.008856?c:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(c=>c+c).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let c,l;return s<1?c=a/(1-s):c=0,s<=0?l=0:o===t?l=(n-r)/s%6:o===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,c*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,c=1-s;let l=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=c,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=c,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=c}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=Ee;function Qe(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{I[e]={},Object.defineProperty(I[e],"channels",{value:U[e].channels}),Object.defineProperty(I[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];I[e][r]=st(o),I[e][r].raw=at(o)})});var ct=I;const E=fe(ct);var lt=Me,it=function(){return lt.Date.now()},ut=it,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,bt=/^\s+/;function mt(e){return e&&e.slice(0,gt(e)+1).replace(bt,"")}var vt=mt,pt=vt,ae=J,xt=Ce,se=0/0,yt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,_t=/^0o[0-7]+$/i,Et=parseInt;function kt(e){if(typeof e=="number")return e;if(xt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||_t.test(e)?Et(e.slice(2),n?2:8):yt.test(e)?se:+e}var Mt=kt,Ct=J,K=ut,ce=Mt,$t="Expected a function",Ot=Math.max,Nt=Math.min;function It(e,t,n){var r,o,a,s,c,l,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=ce(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(ce(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function y(v){var C=r,T=o;return r=o=void 0,i=v,s=e.apply(T,C),s}function j(v){return i=v,c=setTimeout(m,t),d?y(v):s}function M(v){var C=v-l,T=v-i,te=t-C;return f?Nt(te,a-T):te}function p(v){var C=v-l,T=v-i;return l===void 0||C>=t||C<0||f&&T>=a}function m(){var v=K();if(p(v))return w(v);c=setTimeout(m,M(v))}function w(v){return c=void 0,g&&r?y(v):(r=o=void 0,s)}function k(){c!==void 0&&clearTimeout(c),i=0,r=l=o=c=void 0}function _(){return c===void 0?s:w(K())}function O(){var v=K(),C=p(v);if(r=arguments,o=this,l=v,C){if(c===void 0)return j(l);if(f)return clearTimeout(c),c=setTimeout(m,t),y(l)}return c===void 0&&(c=setTimeout(m,t)),s}return O.cancel=k,O.flush=_,O}var St=It,Rt=St,jt=J,Tt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Tt);return jt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Lt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Bt=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Wt=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Xt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Dt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Kt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Kt}, linear-gradient(#fff, #fff)`;return h.createElement(Dt,{...n,style:{...t,backgroundImage:r}})},qt=$(Oe.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=$(Ne)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),ke=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(ke||{}),L=Object.values(ke),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:qe,rgb:Ye,hsl:Ge},B={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ie=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,c,l,i]=ie(e),[d,f,g]=E.rgb.hsl([s,c,l])||[0,0,0];return{valid:t,value:e,keyword:E.rgb.keyword([s,c,l]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${E.rgb.hex([s,c,l]).toLowerCase()}`}}if(Ut.test(e)){let[s,c,l,i]=ie(e),[d,f,g]=E.hsl.rgb([s,c,l])||[0,0,0];return{valid:t,value:e,keyword:E.hsl.keyword([s,c,l]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${E.hsl.hex([s,c,l]).toLowerCase()}`}}let n=e.replace("#",""),r=E.keyword.rgb(n)||E.hex.rgb(n),o=E.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{E.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:E.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return B[n];if(n!=="hex")return(t==null?void 0:t[n])||B[n];if(!t.hex.startsWith("#"))try{return`#${E.keyword.hex(t.hex)}`}catch{return B.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:B.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>S(n)),[s,c]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),c((g==null?void 0:g.colorSpace)||"hex")},[e]);let l=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),i=b.useCallback(f=>{let g=S(f),y=(g==null?void 0:g.value)||f||"";r(y),y===""&&(a(void 0),t(void 0)),g&&(a(g),c(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),c(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:l,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(c=>typeof c=="string"?S(c):c.title?{...S(c.color),keyword:c.title}:S(c.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(c=>{c!=null&&c.valid&&(a.some(l=>D(l[n])===D(c[n]))||o(l=>l.concat(c)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:c})=>{var k;let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:y,cycleColorSpace:j}=Zt(t,l),{presets:M,addPreset:p}=en(a,g,y),m=Jt[y],w=!!((k=c==null?void 0:c.table)!=null&&k.readonly);return h.createElement(Pt,{"aria-readonly":w},h.createElement(Lt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Bt,null,h.createElement(m,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Xt,null,M.map((_,O)=>h.createElement(ue,{key:`${_.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Wt,{note:_.keyword||_.value})},h.createElement(le,{value:_[y],active:g&&D(_[y])===D(g[y]),onClick:()=>f(_.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ie(e),value:i,onChange:_=>f(_.target.value),onFocus:_=>_.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Vt,{onClick:j}):null)},un=tn;export{tn as ColorControl,un as default}; +import{_ as Me,i as J,d as Ce,e as ue,T as $e,F as Oe,M as Ne,g as Ie}from"./DocsRenderer-K4EAMTCU-737df029.js";import{R as h,r as b,g as fe}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import{c as Se}from"./index-b7949e8c.js";import{n as $}from"./index-161398fe.js";import"./iframe-f92ba46f.js";import"../sb-preview/runtime.js";import"./react-18-17fe38b0.js";function N(){return(N=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function q(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,c.current)):M(!1)},j=function(){return M(!1)};function M(p){var m=l.current,w=V(o.current),k=p?w.addEventListener:w.removeEventListener;k(m?"touchmove":"mousemove",y),k(m?"touchend":"mouseup",j)}return[function(p){var m=p.nativeEvent,w=o.current;if(w&&(re(m),!function(_,O){return O&&!F(_)}(m,l.current)&&w)){if(F(m)){l.current=!0;var k=m.changedTouches||[];k.length&&(c.current=k[0].identifier)}w.focus(),a(ne(w,m,c.current)),M(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return b.useEffect(function(){return g},[g]),h.createElement("div",N({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),H=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=H(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},x=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Re={grad:.9,turn:360,rad:360/(2*Math.PI)},je=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?x(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?x(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Re[t]||1)},Fe=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ze({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},ze=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},He=function(e){return Le(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:x(e.h),s:x(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:x(o/2),a:x(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},W=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),c=r*(1-(t-a)*n),l=r*(1-(1-t+a)*n),i=a%6;return{r:x(255*[r,c,s,s,l,r][i]),g:x(255*[l,r,r,c,s,s][i]),b:x(255*[s,s,l,r,r,c][i]),a:x(o,2)}},Pe=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Le=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(x(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),c=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:x(60*(c<0?c+6:c)),s:x(a?s/a*100:0),v:x(a/255*100),a:o}},be=h.memo(function(e){var t=e.hue,n=e.onChange,r=H(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),me=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(t.s)+"%, Brightness "+x(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Be=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function xe(e,t,n){var r=q(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],c=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,c.current.color)){var i=e.toHsva(t);c.current={hsva:i,color:t},s(i)}},[t,e]),b.useEffect(function(){var i;ve(a,c.current.hsva)||e.equal(i=e.fromHsva(a),c.current.color)||(c.current={hsva:a,color:i},r(i))},[a,e,r]);var l=b.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,l]}var We=typeof window<"u"?b.useLayoutEffect:b.useEffect,Xe=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,ye=function(e){We(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Xe();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},De=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),c=b.useRef(null);ye(c);var l=xe(n,o,a),i=l[0],d=l[1],f=H(["react-colorful",t]);return h.createElement("div",N({},s,{ref:c,className:f}),h.createElement(me,{hsva:i,onChange:d}),h.createElement(be,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Ke={defaultColor:"000",toHsva:je,fromHsva:function(e){return He({h:e.h,s:e.s,v:e.v,a:1})},equal:Be},qe=function(e){return h.createElement(De,N({},e,{colorModel:Ke}))},Ve=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+W(Object.assign({},n,{a:0}))+", "+W(Object.assign({},n,{a:1}))+")"},a=H(["react-colorful__alpha",t]),s=x(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(c){r({a:c.left})},onKey:function(c){r({a:R(n.a+c.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:W(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),c=b.useRef(null);ye(c);var l=xe(n,o,a),i=l[0],d=l[1],f=H(["react-colorful",t]);return h.createElement("div",N({},s,{ref:c,className:f}),h.createElement(me,{hsva:i,onChange:d}),h.createElement(be,{hue:i.h,onChange:d}),h.createElement(Ve,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ae={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Fe,fromHsva:W,equal:pe},Ge=function(e){return h.createElement(we,N({},e,{colorModel:Ae}))},Ue={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Pe,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ye=function(e){return h.createElement(we,N({},e,{colorModel:Ue}))};const z=Se,_e={};for(const e of Object.keys(z))_e[z[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Ee=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let c,l;a===o?c=0:t===a?c=(n-r)/s:n===a?c=2+(r-t)/s:r===a&&(c=4+(t-n)/s),c=Math.min(c*60,360),c<0&&(c+=360);const i=(o+a)/2;return a===o?l=0:i<=.5?l=s/(a+o):l=s/(2-a-o),[c,l*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,c=e[1]/255,l=e[2]/255,i=Math.max(s,c,l),d=i-Math.min(s,c,l),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(c),r=f(l),s===i?o=r-n:c===i?o=1/3+t-r:l===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,c=(1-r-o)/(1-o)||0;return[a*100,s*100,c*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=_e[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),c=200*(r-o);return[a,s,c]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const c=2*r-o,l=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?s=c+(o-c)*6*a:2*a<1?s=o:3*a<2?s=c+(o-c)*(2/3-a)*6:s=c,l[i]=s*255;return l};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,c=r===0?2*o/(a+o):2*n/(r+n);return[t,c*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),c=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,l,s];case 1:return[c,r,s];case 2:return[s,r,l];case 3:return[s,c,r];case 4:return[l,s,r];case 5:return[r,s,c]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const c=(2-n)*o;return a=n*o,a/=c<=1?c:2-c,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),c=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(c-n);let i,d,f;switch(s){default:case 6:case 0:i=c,d=l,f=n;break;case 1:i=l,d=c,f=n;break;case 2:i=n,d=c,f=l;break;case 3:i=n,d=l,f=c;break;case 4:i=l,d=n,f=c;break;case 5:i=c,d=n,f=l;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),c=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,c*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const c=a**3,l=o**3,i=s**3;return a=c>.008856?c:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(c=>c+c).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let c,l;return s<1?c=a/(1-s):c=0,s<=0?l=0:o===t?l=(n-r)/s%6:o===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,c*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,c=1-s;let l=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=c,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=c,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=c}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=Ee;function Qe(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{I[e]={},Object.defineProperty(I[e],"channels",{value:U[e].channels}),Object.defineProperty(I[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];I[e][r]=st(o),I[e][r].raw=at(o)})});var ct=I;const E=fe(ct);var lt=Me,it=function(){return lt.Date.now()},ut=it,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,bt=/^\s+/;function mt(e){return e&&e.slice(0,gt(e)+1).replace(bt,"")}var vt=mt,pt=vt,ae=J,xt=Ce,se=0/0,yt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,_t=/^0o[0-7]+$/i,Et=parseInt;function kt(e){if(typeof e=="number")return e;if(xt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||_t.test(e)?Et(e.slice(2),n?2:8):yt.test(e)?se:+e}var Mt=kt,Ct=J,K=ut,ce=Mt,$t="Expected a function",Ot=Math.max,Nt=Math.min;function It(e,t,n){var r,o,a,s,c,l,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=ce(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(ce(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function y(v){var C=r,T=o;return r=o=void 0,i=v,s=e.apply(T,C),s}function j(v){return i=v,c=setTimeout(m,t),d?y(v):s}function M(v){var C=v-l,T=v-i,te=t-C;return f?Nt(te,a-T):te}function p(v){var C=v-l,T=v-i;return l===void 0||C>=t||C<0||f&&T>=a}function m(){var v=K();if(p(v))return w(v);c=setTimeout(m,M(v))}function w(v){return c=void 0,g&&r?y(v):(r=o=void 0,s)}function k(){c!==void 0&&clearTimeout(c),i=0,r=l=o=c=void 0}function _(){return c===void 0?s:w(K())}function O(){var v=K(),C=p(v);if(r=arguments,o=this,l=v,C){if(c===void 0)return j(l);if(f)return clearTimeout(c),c=setTimeout(m,t),y(l)}return c===void 0&&(c=setTimeout(m,t)),s}return O.cancel=k,O.flush=_,O}var St=It,Rt=St,jt=J,Tt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Tt);return jt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Lt=$(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Bt=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Wt=$($e)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Xt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Dt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Kt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Kt}, linear-gradient(#fff, #fff)`;return h.createElement(Dt,{...n,style:{...t,backgroundImage:r}})},qt=$(Oe.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=$(Ne)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),ke=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(ke||{}),L=Object.values(ke),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:qe,rgb:Ye,hsl:Ge},B={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ie=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,c,l,i]=ie(e),[d,f,g]=E.rgb.hsl([s,c,l])||[0,0,0];return{valid:t,value:e,keyword:E.rgb.keyword([s,c,l]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${E.rgb.hex([s,c,l]).toLowerCase()}`}}if(Ut.test(e)){let[s,c,l,i]=ie(e),[d,f,g]=E.hsl.rgb([s,c,l])||[0,0,0];return{valid:t,value:e,keyword:E.hsl.keyword([s,c,l]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${E.hsl.hex([s,c,l]).toLowerCase()}`}}let n=e.replace("#",""),r=E.keyword.rgb(n)||E.hex.rgb(n),o=E.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{E.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:E.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return B[n];if(n!=="hex")return(t==null?void 0:t[n])||B[n];if(!t.hex.startsWith("#"))try{return`#${E.keyword.hex(t.hex)}`}catch{return B.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:B.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>S(n)),[s,c]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),c((g==null?void 0:g.colorSpace)||"hex")},[e]);let l=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),i=b.useCallback(f=>{let g=S(f),y=(g==null?void 0:g.value)||f||"";r(y),y===""&&(a(void 0),t(void 0)),g&&(a(g),c(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),c(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:l,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(c=>typeof c=="string"?S(c):c.title?{...S(c.color),keyword:c.title}:S(c.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(c=>{c!=null&&c.valid&&(a.some(l=>D(l[n])===D(c[n]))||o(l=>l.concat(c)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:c})=>{var k;let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:y,cycleColorSpace:j}=Zt(t,l),{presets:M,addPreset:p}=en(a,g,y),m=Jt[y],w=!!((k=c==null?void 0:c.table)!=null&&k.readonly);return h.createElement(Pt,{"aria-readonly":w},h.createElement(Lt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Bt,null,h.createElement(m,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Xt,null,M.map((_,O)=>h.createElement(ue,{key:`${_.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Wt,{note:_.keyword||_.value})},h.createElement(le,{value:_[y],active:g&&D(_[y])===D(g[y]),onClick:()=>f(_.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Ie(e),value:i,onChange:_=>f(_.target.value),onFocus:_=>_.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Vt,{onClick:j}):null)},un=tn;export{tn as ColorControl,un as default}; diff --git a/storybook/pr/2531/assets/DocsRenderer-K4EAMTCU-69b7bfae.js b/storybook/pr/2531/assets/DocsRenderer-K4EAMTCU-737df029.js similarity index 99% rename from storybook/pr/2531/assets/DocsRenderer-K4EAMTCU-69b7bfae.js rename to storybook/pr/2531/assets/DocsRenderer-K4EAMTCU-737df029.js index 8539b2ecdf..26f15c368e 100644 --- a/storybook/pr/2531/assets/DocsRenderer-K4EAMTCU-69b7bfae.js +++ b/storybook/pr/2531/assets/DocsRenderer-K4EAMTCU-737df029.js @@ -1,4 +1,4 @@ -import{_ as $t}from"./iframe-21f17388.js";import{r as o,R as h,b as Wp,c as Vt,g as Di}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import{j as pe,r as ha,R as Vs,_ as Ze,a as qp,u as Gp}from"./react-18-17fe38b0.js";import{g as Bt,n as k,m as dn,l as Xr,i as Ws,k as fn,a as No,c as Kp,t as i0,p as $e,u as qs,T as Gs,b as Yp,d as l0,e as Xp}from"./index-161398fe.js";function Ha(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Zp(e,t){var r=o.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var Jp=typeof window<"u"?o.useLayoutEffect:o.useEffect,u0=new WeakMap;function Qp(e,t){var r=Zp(t||null,function(n){return e.forEach(function(a){return Ha(a,n)})});return Jp(function(){var n=u0.get(r);if(n){var a=new Set(n),i=new Set(e),l=r.current;a.forEach(function(s){i.has(s)||Ha(s,null)}),i.forEach(function(s){a.has(s)||Ha(s,l)})}u0.set(r,e)},[e]),r}var dt=function(){return dt=Object.assign||function(t){for(var r,n=1,a=arguments.length;n"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ur=new WeakMap,Fn=new WeakMap,Rn={},Ua=0,Xs=function(e){return e&&(e.host||Xs(e.parentNode))},l5=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Xs(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},u5=function(e,t,r,n){var a=l5(t,Array.isArray(e)?e:[e]);Rn[r]||(Rn[r]=new WeakMap);var i=Rn[r],l=[],s=new Set,u=new Set(a),c=function(m){!m||s.has(m)||(s.add(m),c(m.parentNode))};a.forEach(c);var p=function(m){!m||u.has(m)||Array.prototype.forEach.call(m.children,function(f){if(s.has(f))p(f);else try{var d=f.getAttribute(n),v=d!==null&&d!=="false",g=(ur.get(f)||0)+1,w=(i.get(f)||0)+1;ur.set(f,g),i.set(f,w),l.push(f),g===1&&v&&Fn.set(f,!0),w===1&&f.setAttribute(r,"true"),v||f.setAttribute(n,"true")}catch(D){console.error("aria-hidden: cannot operate on ",f,D)}})};return p(t),s.clear(),Ua++,function(){l.forEach(function(m){var f=ur.get(m)-1,d=i.get(m)-1;ur.set(m,f),i.set(m,d),f||(Fn.has(m)||m.removeAttribute(n),Fn.delete(m)),d||m.removeAttribute(r)}),Ua--,Ua||(ur=new WeakMap,ur=new WeakMap,Fn=new WeakMap,Rn={})}},s5=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||i5(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),u5(n,a,r,"aria-hidden")):function(){return null}},Nn="right-scroll-bar-position",zn="width-before-scroll-bar",c5="with-scroll-bars-hidden",d5="--removed-body-scroll-bar-size",s0,f5=function(){if(s0)return s0;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function p5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=f5();return t&&e.setAttribute("nonce",t),e}function h5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function g5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var m5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=p5())&&(h5(t,r),g5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},v5=function(){var e=m5();return function(t,r){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Zs=function(){var e=v5(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},y5={left:0,top:0,right:0,gap:0},Va=function(e){return parseInt(e||"",10)||0},b5=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Va(r),Va(n),Va(a)]},w5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return y5;var t=b5(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},E5=Zs(),Er="data-scroll-locked",A5=function(e,t,r,n){var a=e.left,i=e.top,l=e.right,s=e.gap;return r===void 0&&(r="margin"),` +import{_ as $t}from"./iframe-f92ba46f.js";import{r as o,R as h,b as Wp,c as Vt,g as Di}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import{j as pe,r as ha,R as Vs,_ as Ze,a as qp,u as Gp}from"./react-18-17fe38b0.js";import{g as Bt,n as k,m as dn,l as Xr,i as Ws,k as fn,a as No,c as Kp,t as i0,p as $e,u as qs,T as Gs,b as Yp,d as l0,e as Xp}from"./index-161398fe.js";function Ha(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Zp(e,t){var r=o.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var Jp=typeof window<"u"?o.useLayoutEffect:o.useEffect,u0=new WeakMap;function Qp(e,t){var r=Zp(t||null,function(n){return e.forEach(function(a){return Ha(a,n)})});return Jp(function(){var n=u0.get(r);if(n){var a=new Set(n),i=new Set(e),l=r.current;a.forEach(function(s){i.has(s)||Ha(s,null)}),i.forEach(function(s){a.has(s)||Ha(s,l)})}u0.set(r,e)},[e]),r}var dt=function(){return dt=Object.assign||function(t){for(var r,n=1,a=arguments.length;n"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ur=new WeakMap,Fn=new WeakMap,Rn={},Ua=0,Xs=function(e){return e&&(e.host||Xs(e.parentNode))},l5=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Xs(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},u5=function(e,t,r,n){var a=l5(t,Array.isArray(e)?e:[e]);Rn[r]||(Rn[r]=new WeakMap);var i=Rn[r],l=[],s=new Set,u=new Set(a),c=function(m){!m||s.has(m)||(s.add(m),c(m.parentNode))};a.forEach(c);var p=function(m){!m||u.has(m)||Array.prototype.forEach.call(m.children,function(f){if(s.has(f))p(f);else try{var d=f.getAttribute(n),v=d!==null&&d!=="false",g=(ur.get(f)||0)+1,w=(i.get(f)||0)+1;ur.set(f,g),i.set(f,w),l.push(f),g===1&&v&&Fn.set(f,!0),w===1&&f.setAttribute(r,"true"),v||f.setAttribute(n,"true")}catch(D){console.error("aria-hidden: cannot operate on ",f,D)}})};return p(t),s.clear(),Ua++,function(){l.forEach(function(m){var f=ur.get(m)-1,d=i.get(m)-1;ur.set(m,f),i.set(m,d),f||(Fn.has(m)||m.removeAttribute(n),Fn.delete(m)),d||m.removeAttribute(r)}),Ua--,Ua||(ur=new WeakMap,ur=new WeakMap,Fn=new WeakMap,Rn={})}},s5=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||i5(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),u5(n,a,r,"aria-hidden")):function(){return null}},Nn="right-scroll-bar-position",zn="width-before-scroll-bar",c5="with-scroll-bars-hidden",d5="--removed-body-scroll-bar-size",s0,f5=function(){if(s0)return s0;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function p5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=f5();return t&&e.setAttribute("nonce",t),e}function h5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function g5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var m5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=p5())&&(h5(t,r),g5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},v5=function(){var e=m5();return function(t,r){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Zs=function(){var e=v5(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},y5={left:0,top:0,right:0,gap:0},Va=function(e){return parseInt(e||"",10)||0},b5=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Va(r),Va(n),Va(a)]},w5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return y5;var t=b5(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},E5=Zs(),Er="data-scroll-locked",A5=function(e,t,r,n){var a=e.left,i=e.top,l=e.right,s=e.gap;return r===void 0&&(r="margin"),` .`.concat(c5,` { overflow: hidden `).concat(n,`; padding-right: `).concat(s,"px ").concat(n,`; @@ -203,9 +203,9 @@ To pass a single animation please supply them in simple values, e.g. animation(' `,77:`remToPx expects a value in "rem" but you provided it in "%s". `,78:`base must be set in "px" or "%" but you set it in "%s". -`};function H7(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),l=1;l=0&&a<1?(s=i,u=l):a>=1&&a<2?(s=l,u=i):a>=2&&a<3?(u=i,c=l):a>=3&&a<4?(u=l,c=i):a>=4&&a<5?(s=l,c=i):a>=5&&a<6&&(s=i,c=l);var p=r-i/2,m=s+p,f=u+p,d=c+p;return n(m,f,d)}var z0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",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:"ff00ff",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:"639",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"};function V7(e){if(typeof e!="string")return e;var t=e.toLowerCase();return z0[t]?"#"+z0[t]:e}var W7=/^#[a-fA-F0-9]{6}$/,q7=/^#[a-fA-F0-9]{8}$/,G7=/^#[a-fA-F0-9]{3}$/,K7=/^#[a-fA-F0-9]{4}$/,Ja=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Y7=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,X7=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Z7=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function al(e){if(typeof e!="string")throw new ft(3);var t=V7(e);if(t.match(W7))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(q7)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(G7))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(K7)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Ja.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var i=Y7.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var l=X7.exec(t);if(l){var s=parseInt(""+l[1],10),u=parseInt(""+l[2],10)/100,c=parseInt(""+l[3],10)/100,p="rgb("+un(s,u,c)+")",m=Ja.exec(p);if(!m)throw new ft(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=Z7.exec(t.substring(0,50));if(f){var d=parseInt(""+f[1],10),v=parseInt(""+f[2],10)/100,g=parseInt(""+f[3],10)/100,w="rgb("+un(d,v,g)+")",D=Ja.exec(w);if(!D)throw new ft(4,t,w);return{red:parseInt(""+D[1],10),green:parseInt(""+D[2],10),blue:parseInt(""+D[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new ft(5)}function J7(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),i=Math.min(t,r,n),l=(a+i)/2;if(a===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s,u=a-i,c=l>.5?u/(2-a-i):u/(a+i);switch(a){case t:s=(r-n)/u+(r=1?aa(e,t,r):"rgba("+un(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?aa(e.hue,e.saturation,e.lightness):"rgba("+un(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ft(2)}function Jo(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Zo("#"+Lt(e)+Lt(t)+Lt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Zo("#"+Lt(e.red)+Lt(e.green)+Lt(e.blue));throw new ft(6)}function oa(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=al(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Jo(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Jo(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new ft(7)}var nb=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},ab=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},ob=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},ib=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function B1(e){if(typeof e!="object")throw new ft(8);if(ab(e))return oa(e);if(nb(e))return Jo(e);if(ib(e))return rb(e);if(ob(e))return tb(e);throw new ft(8)}function _1(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):_1(e,t,n)}}function ol(e){return _1(e,e.length,[])}function il(e,t,r){return Math.max(e,Math.min(t,r))}function lb(e,t){if(t==="transparent")return t;var r=I1(t);return B1(me({},r,{lightness:il(0,1,r.lightness-parseFloat(e))}))}var ub=ol(lb),yr=ub;function sb(e,t){if(t==="transparent")return t;var r=I1(t);return B1(me({},r,{lightness:il(0,1,r.lightness+parseFloat(e))}))}var cb=ol(sb),H0=cb;function db(e,t){if(t==="transparent")return t;var r=al(t),n=typeof r.alpha=="number"?r.alpha:1,a=me({},r,{alpha:il(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return oa(a)}var fb=ol(db),Ke=fb,$r=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),xt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Ke(.1,e.color.defaultText):Ke(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),Ce=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),nr={margin:"16px 0"},pb=({href:e,...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:r,target:n,...t})},O1=k(pb)(Ce,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),$1=k.blockquote(Ce,nr,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),hb=e=>typeof e=="string",gb=/[\n\r]/g,mb=k.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),xt),vb=k(Mi)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),ll=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=o.Children.toArray(t);return a.filter(hb).some(i=>i.match(gb))?h.createElement(vb,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):h.createElement(mb,{...r,className:e},a)},T1=k.div(Ce),k1=k.dl(Ce,nr,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),M1=k.h1(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),ul=k.h2(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),sl=k.h3(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),P1=k.h4(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),L1=k.h5(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),j1=k.h6(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),N1=k.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),z1=k.img({maxWidth:"100%"}),H1=k.li(Ce,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":xt({theme:e})})),yb={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},U1=k.ol(Ce,nr,yb,{listStyle:"decimal"}),V1=k.p(Ce,nr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":xt({theme:e})})),W1=k.pre(Ce,nr,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),q1=k.span(Ce,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),G1=k.table(Ce,nr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),K1=k.title(xt),bb={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Y1=k.ul(Ce,nr,bb,{listStyle:"disc"}),cl=k.div(Ce),X1={h1:e=>h.createElement(M1,{...Ae(e,"h1")}),h2:e=>h.createElement(ul,{...Ae(e,"h2")}),h3:e=>h.createElement(sl,{...Ae(e,"h3")}),h4:e=>h.createElement(P1,{...Ae(e,"h4")}),h5:e=>h.createElement(L1,{...Ae(e,"h5")}),h6:e=>h.createElement(j1,{...Ae(e,"h6")}),pre:e=>h.createElement(W1,{...Ae(e,"pre")}),a:e=>h.createElement(O1,{...Ae(e,"a")}),hr:e=>h.createElement(N1,{...Ae(e,"hr")}),dl:e=>h.createElement(k1,{...Ae(e,"dl")}),blockquote:e=>h.createElement($1,{...Ae(e,"blockquote")}),table:e=>h.createElement(G1,{...Ae(e,"table")}),img:e=>h.createElement(z1,{...Ae(e,"img")}),div:e=>h.createElement(T1,{...Ae(e,"div")}),span:e=>h.createElement(q1,{...Ae(e,"span")}),li:e=>h.createElement(H1,{...Ae(e,"li")}),ul:e=>h.createElement(Y1,{...Ae(e,"ul")}),ol:e=>h.createElement(U1,{...Ae(e,"ol")}),p:e=>h.createElement(V1,{...Ae(e,"p")}),code:e=>h.createElement(ll,{...Ae(e,"code")}),tt:e=>h.createElement(K1,{...Ae(e,"tt")}),resetwrapper:e=>h.createElement(cl,{...Ae(e,"resetwrapper")})},wb=k.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ke(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ke(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ke(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ke(.9,e.color.positiveText)}`:"none"};default:return{}}}),Eb=({...e})=>h.createElement(wb,{...e}),Ab=0,xb=e=>e.button===Ab&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,Cb=(e,t)=>{xb(e)&&(e.preventDefault(),t(e))},Db=k.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),Sb=k.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:yr(.07,e.color.secondary),"svg path:not([fill])":{fill:yr(.07,e.color.secondary)}},"&:active":{color:yr(.1,e.color.secondary),"svg path:not([fill])":{fill:yr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Kt=({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:i=void 0,style:l=void 0,...s})=>h.createElement(Sb,{...s,onClick:r&&e?u=>Cb(u,r):r,className:i},h.createElement(Db,{withArrow:n,containsIcon:a},t,n&&h.createElement(Vi,null))),Fb=k.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),Yt=[],Rr=null,Rb=o.lazy(async()=>{let{SyntaxHighlighter:e}=await $t(()=>import("./syntaxhighlighter-BP7B2CQK-1befffac.js"),["./syntaxhighlighter-BP7B2CQK-1befffac.js","./iframe-21f17388.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url);return Yt.length>0&&(Yt.forEach(t=>{e.registerLanguage(...t)}),Yt=[]),Rr===null&&(Rr=e),{default:t=>h.createElement(e,{...t})}}),Ib=o.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([$t(()=>import("./syntaxhighlighter-BP7B2CQK-1befffac.js"),["./syntaxhighlighter-BP7B2CQK-1befffac.js","./iframe-21f17388.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url),$t(()=>import("./formatter-2WMMO6ZP-591db07f.js"),["./formatter-2WMMO6ZP-591db07f.js","./index-161398fe.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js"],import.meta.url)]);return Yt.length>0&&(Yt.forEach(r=>{e.registerLanguage(...r)}),Yt=[]),Rr===null&&(Rr=e),{default:r=>h.createElement(e,{...r,formatter:t})}}),Aa=e=>h.createElement(o.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(Ib,{...e}):h.createElement(Rb,{...e}));Aa.registerLanguage=(...e)=>{if(Rr!==null){Rr.registerLanguage(...e);return}Yt.push(e)};var Z1={};I5(Z1,{Actions:()=>Pb,CloseButton:()=>td,Col:()=>nd,Container:()=>ed,Content:()=>$b,Description:()=>Mb,Error:()=>Lb,ErrorWrapper:()=>ad,Header:()=>Tb,Overlay:()=>Q1,Row:()=>rd,Title:()=>kb});var kt=o.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:i=!1,active:l=!1,onClick:s,...u},c)=>{let p="button";u.isLink&&(p="a"),e&&(p=hn);let m=n,f=r,[d,v]=o.useState(!1),g=w=>{s&&s(w),t!=="none"&&v(!0)};if(o.useEffect(()=>{let w=setTimeout(()=>{d&&v(!1)},1e3);return()=>clearTimeout(w)},[d]),u.primary&&(m="solid",f="medium"),(u.secondary||u.tertiary||u.gray||u.outline||u.inForm)&&(m="outline",f="medium"),u.small||u.isLink||u.primary||u.secondary||u.tertiary||u.gray||u.outline||u.inForm||u.containsIcon){let w=h.Children.toArray(u.children).filter(D=>typeof D=="string"&&D!=="");F1(`Use of deprecated props in the button ${w.length>0?`"${w.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return h.createElement(Bb,{as:p,ref:c,variant:m,size:f,padding:a,disabled:i,active:l,animating:d,animation:t,onClick:g,...u})});kt.displayName="Button";var Bb=k("button",{shouldForwardProp:e=>Ws(e)})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:i,animation:l,padding:s})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="small"&&r==="small"?"0 7px":s==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&a?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:a?Ke(.9,e.barTextColor):"transparent",color:a?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:Ke(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:Ke(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${oa(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?Ke(.86,e.color.secondary):e.base==="light"?yr(.02,u):H0(.03,u)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?yr(.02,u):H0(.03,u)})()},"&:focus":{boxShadow:`${oa(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:i&&l!=="none"?`${e.animation[l]} 1000ms ease-out`:""}})),Ot=o.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>h.createElement(kt,{padding:e,variant:t,ref:n,...r}));Ot.displayName="IconButton";var J1=fn({from:{opacity:0},to:{opacity:1}}),_b=fn({from:{maxHeight:0},to:{}}),Ob=fn({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),Q1=k.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${J1} 200ms`}),ed=k.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${Ob} 200ms`,"&:focus-visible":{outline:"none"}})),td=e=>h.createElement(x1,{asChild:!0},h.createElement(Ot,{...e},h.createElement(Wc,null))),$b=k.div({display:"flex",flexDirection:"column",margin:16,gap:16}),rd=k.div({display:"flex",justifyContent:"space-between",gap:16}),nd=k.div({display:"flex",flexDirection:"column",gap:4}),Tb=e=>h.createElement(rd,null,h.createElement(nd,{...e}),h.createElement(td,null)),kb=k(E1)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),Mb=k(A1)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),Pb=k.div({display:"flex",flexDirection:"row-reverse",gap:8}),ad=k.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${_b} 300ms, ${J1} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),Lb=({children:e,...t})=>h.createElement(ad,{...t},h.createElement("div",null,e));function jb({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=u=>u.preventDefault(),className:i,container:l,...s}){return h.createElement(v1,{...s},h.createElement(y1,{container:l},h.createElement(b1,{asChild:!0},h.createElement(Q1,null)),h.createElement(w1,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},h.createElement(ed,{className:i,width:t,height:r},e))))}var Nb=Object.assign(jb,Z1,{Dialog:x7}),zb=e=>typeof e=="number"?e:Number(e),Hb=k.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${No}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${No}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),Ub=({col:e,row:t,outer:r,children:n,...a})=>{let i=zb(typeof r=="number"||!r?r:e||t);return h.createElement(Hb,{col:e,row:t,outer:i,...a},n)},Vb=k.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Wb=k.div(),qb=k.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),Gb=({children:e,...t})=>{let[r,n]=o.Children.toArray(e);return h.createElement(qb,{...t},h.createElement(Vb,null,r),n&&h.createElement(Wb,null,n))};function Kb(e,t){var r=o.useRef(null),n=o.useRef(null);n.current=t;var a=o.useRef(null);o.useEffect(function(){i()});var i=o.useCallback(function(){var l=a.current,s=n.current,u=l||(s?s instanceof Element?s:s.current:null);r.current&&r.current.element===u&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:u,subscriber:e,cleanup:u?e(u):void 0})},[e]);return o.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),o.useCallback(function(l){a.current=l,i()},[i])}function U0(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function od(e){e===void 0&&(e={});var t=e.onResize,r=o.useRef(void 0);r.current=t;var n=e.round||Math.round,a=o.useRef(),i=o.useState({width:void 0,height:void 0}),l=i[0],s=i[1],u=o.useRef(!1);o.useEffect(function(){return u.current=!1,function(){u.current=!0}},[]);var c=o.useRef({width:void 0,height:void 0}),p=Kb(o.useCallback(function(m){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(f){var d=f[0],v=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=U0(d,v,"inlineSize"),w=U0(d,v,"blockSize"),D=g?n(g):void 0,x=w?n(w):void 0;if(c.current.width!==D||c.current.height!==x){var S={width:D,height:x};c.current.width=D,c.current.height=x,r.current?r.current(S):u.current||s(S)}})}),a.current.instance.observe(m,{box:e.box}),function(){a.current&&a.current.instance.unobserve(m)}},[e.box,n]),e.ref);return o.useMemo(function(){return{ref:p,width:l.width,height:l.height}},[p,l.width,l.height])}var Yb=k.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function Xb({scale:e,children:t}){let r=o.useRef(null),[n,a]=o.useState(0),i=o.useCallback(({height:l})=>{l&&a(l/e)},[e]);return o.useEffect(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[e]),od({ref:r,onResize:i}),h.createElement(Yb,{scale:e,elementHeight:n},h.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var Zb=class extends o.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return h.createElement(h.Fragment,null,e)}},id={Element:Xb,IFrame:Zb},{document:Jb}=M7,Qb=k.strong(({theme:e})=>({color:e.color.orange})),e6=k.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),V0=k.em(({theme:e})=>({color:e.textMutedColor})),t6=/(Error): (.*)\n/,r6=/at (?:(.*) )?\(?(.+)\)?/,n6=/([^@]+)?(?:\/<)?@(.+)?/,a6=/([^@]+)?@(.+)?/,ld=({error:e})=>{if(!e)return h.createElement(o.Fragment,null,"This error has no stack or message");if(!e.stack)return h.createElement(o.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} +`};function H7(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),l=1;l=0&&a<1?(s=i,u=l):a>=1&&a<2?(s=l,u=i):a>=2&&a<3?(u=i,c=l):a>=3&&a<4?(u=l,c=i):a>=4&&a<5?(s=l,c=i):a>=5&&a<6&&(s=i,c=l);var p=r-i/2,m=s+p,f=u+p,d=c+p;return n(m,f,d)}var z0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",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:"ff00ff",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:"639",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"};function V7(e){if(typeof e!="string")return e;var t=e.toLowerCase();return z0[t]?"#"+z0[t]:e}var W7=/^#[a-fA-F0-9]{6}$/,q7=/^#[a-fA-F0-9]{8}$/,G7=/^#[a-fA-F0-9]{3}$/,K7=/^#[a-fA-F0-9]{4}$/,Ja=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Y7=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,X7=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Z7=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function al(e){if(typeof e!="string")throw new ft(3);var t=V7(e);if(t.match(W7))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(q7)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(G7))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(K7)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Ja.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var i=Y7.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var l=X7.exec(t);if(l){var s=parseInt(""+l[1],10),u=parseInt(""+l[2],10)/100,c=parseInt(""+l[3],10)/100,p="rgb("+un(s,u,c)+")",m=Ja.exec(p);if(!m)throw new ft(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=Z7.exec(t.substring(0,50));if(f){var d=parseInt(""+f[1],10),v=parseInt(""+f[2],10)/100,g=parseInt(""+f[3],10)/100,w="rgb("+un(d,v,g)+")",D=Ja.exec(w);if(!D)throw new ft(4,t,w);return{red:parseInt(""+D[1],10),green:parseInt(""+D[2],10),blue:parseInt(""+D[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new ft(5)}function J7(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),i=Math.min(t,r,n),l=(a+i)/2;if(a===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s,u=a-i,c=l>.5?u/(2-a-i):u/(a+i);switch(a){case t:s=(r-n)/u+(r=1?aa(e,t,r):"rgba("+un(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?aa(e.hue,e.saturation,e.lightness):"rgba("+un(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new ft(2)}function Jo(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Zo("#"+Lt(e)+Lt(t)+Lt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Zo("#"+Lt(e.red)+Lt(e.green)+Lt(e.blue));throw new ft(6)}function oa(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=al(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Jo(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Jo(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new ft(7)}var nb=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},ab=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},ob=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},ib=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function B1(e){if(typeof e!="object")throw new ft(8);if(ab(e))return oa(e);if(nb(e))return Jo(e);if(ib(e))return rb(e);if(ob(e))return tb(e);throw new ft(8)}function _1(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):_1(e,t,n)}}function ol(e){return _1(e,e.length,[])}function il(e,t,r){return Math.max(e,Math.min(t,r))}function lb(e,t){if(t==="transparent")return t;var r=I1(t);return B1(me({},r,{lightness:il(0,1,r.lightness-parseFloat(e))}))}var ub=ol(lb),yr=ub;function sb(e,t){if(t==="transparent")return t;var r=I1(t);return B1(me({},r,{lightness:il(0,1,r.lightness+parseFloat(e))}))}var cb=ol(sb),H0=cb;function db(e,t){if(t==="transparent")return t;var r=al(t),n=typeof r.alpha=="number"?r.alpha:1,a=me({},r,{alpha:il(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return oa(a)}var fb=ol(db),Ke=fb,$r=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),xt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Ke(.1,e.color.defaultText):Ke(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),Ce=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),nr={margin:"16px 0"},pb=({href:e,...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return h.createElement("a",{href:r,target:n,...t})},O1=k(pb)(Ce,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),$1=k.blockquote(Ce,nr,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),hb=e=>typeof e=="string",gb=/[\n\r]/g,mb=k.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),xt),vb=k(Mi)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),ll=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=o.Children.toArray(t);return a.filter(hb).some(i=>i.match(gb))?h.createElement(vb,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):h.createElement(mb,{...r,className:e},a)},T1=k.div(Ce),k1=k.dl(Ce,nr,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),M1=k.h1(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),ul=k.h2(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),sl=k.h3(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),P1=k.h4(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),L1=k.h5(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),j1=k.h6(Ce,$r,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),N1=k.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),z1=k.img({maxWidth:"100%"}),H1=k.li(Ce,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":xt({theme:e})})),yb={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},U1=k.ol(Ce,nr,yb,{listStyle:"decimal"}),V1=k.p(Ce,nr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":xt({theme:e})})),W1=k.pre(Ce,nr,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),q1=k.span(Ce,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),G1=k.table(Ce,nr,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),K1=k.title(xt),bb={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},Y1=k.ul(Ce,nr,bb,{listStyle:"disc"}),cl=k.div(Ce),X1={h1:e=>h.createElement(M1,{...Ae(e,"h1")}),h2:e=>h.createElement(ul,{...Ae(e,"h2")}),h3:e=>h.createElement(sl,{...Ae(e,"h3")}),h4:e=>h.createElement(P1,{...Ae(e,"h4")}),h5:e=>h.createElement(L1,{...Ae(e,"h5")}),h6:e=>h.createElement(j1,{...Ae(e,"h6")}),pre:e=>h.createElement(W1,{...Ae(e,"pre")}),a:e=>h.createElement(O1,{...Ae(e,"a")}),hr:e=>h.createElement(N1,{...Ae(e,"hr")}),dl:e=>h.createElement(k1,{...Ae(e,"dl")}),blockquote:e=>h.createElement($1,{...Ae(e,"blockquote")}),table:e=>h.createElement(G1,{...Ae(e,"table")}),img:e=>h.createElement(z1,{...Ae(e,"img")}),div:e=>h.createElement(T1,{...Ae(e,"div")}),span:e=>h.createElement(q1,{...Ae(e,"span")}),li:e=>h.createElement(H1,{...Ae(e,"li")}),ul:e=>h.createElement(Y1,{...Ae(e,"ul")}),ol:e=>h.createElement(U1,{...Ae(e,"ol")}),p:e=>h.createElement(V1,{...Ae(e,"p")}),code:e=>h.createElement(ll,{...Ae(e,"code")}),tt:e=>h.createElement(K1,{...Ae(e,"tt")}),resetwrapper:e=>h.createElement(cl,{...Ae(e,"resetwrapper")})},wb=k.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ke(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ke(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ke(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ke(.9,e.color.positiveText)}`:"none"};default:return{}}}),Eb=({...e})=>h.createElement(wb,{...e}),Ab=0,xb=e=>e.button===Ab&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,Cb=(e,t)=>{xb(e)&&(e.preventDefault(),t(e))},Db=k.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),Sb=k.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:yr(.07,e.color.secondary),"svg path:not([fill])":{fill:yr(.07,e.color.secondary)}},"&:active":{color:yr(.1,e.color.secondary),"svg path:not([fill])":{fill:yr(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Kt=({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:i=void 0,style:l=void 0,...s})=>h.createElement(Sb,{...s,onClick:r&&e?u=>Cb(u,r):r,className:i},h.createElement(Db,{withArrow:n,containsIcon:a},t,n&&h.createElement(Vi,null))),Fb=k.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),Yt=[],Rr=null,Rb=o.lazy(async()=>{let{SyntaxHighlighter:e}=await $t(()=>import("./syntaxhighlighter-BP7B2CQK-7f618a79.js"),["./syntaxhighlighter-BP7B2CQK-7f618a79.js","./iframe-f92ba46f.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url);return Yt.length>0&&(Yt.forEach(t=>{e.registerLanguage(...t)}),Yt=[]),Rr===null&&(Rr=e),{default:t=>h.createElement(e,{...t})}}),Ib=o.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([$t(()=>import("./syntaxhighlighter-BP7B2CQK-7f618a79.js"),["./syntaxhighlighter-BP7B2CQK-7f618a79.js","./iframe-f92ba46f.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url),$t(()=>import("./formatter-2WMMO6ZP-591db07f.js"),["./formatter-2WMMO6ZP-591db07f.js","./index-161398fe.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js"],import.meta.url)]);return Yt.length>0&&(Yt.forEach(r=>{e.registerLanguage(...r)}),Yt=[]),Rr===null&&(Rr=e),{default:r=>h.createElement(e,{...r,formatter:t})}}),Aa=e=>h.createElement(o.Suspense,{fallback:h.createElement("div",null)},e.format!==!1?h.createElement(Ib,{...e}):h.createElement(Rb,{...e}));Aa.registerLanguage=(...e)=>{if(Rr!==null){Rr.registerLanguage(...e);return}Yt.push(e)};var Z1={};I5(Z1,{Actions:()=>Pb,CloseButton:()=>td,Col:()=>nd,Container:()=>ed,Content:()=>$b,Description:()=>Mb,Error:()=>Lb,ErrorWrapper:()=>ad,Header:()=>Tb,Overlay:()=>Q1,Row:()=>rd,Title:()=>kb});var kt=o.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:i=!1,active:l=!1,onClick:s,...u},c)=>{let p="button";u.isLink&&(p="a"),e&&(p=hn);let m=n,f=r,[d,v]=o.useState(!1),g=w=>{s&&s(w),t!=="none"&&v(!0)};if(o.useEffect(()=>{let w=setTimeout(()=>{d&&v(!1)},1e3);return()=>clearTimeout(w)},[d]),u.primary&&(m="solid",f="medium"),(u.secondary||u.tertiary||u.gray||u.outline||u.inForm)&&(m="outline",f="medium"),u.small||u.isLink||u.primary||u.secondary||u.tertiary||u.gray||u.outline||u.inForm||u.containsIcon){let w=h.Children.toArray(u.children).filter(D=>typeof D=="string"&&D!=="");F1(`Use of deprecated props in the button ${w.length>0?`"${w.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return h.createElement(Bb,{as:p,ref:c,variant:m,size:f,padding:a,disabled:i,active:l,animating:d,animation:t,onClick:g,...u})});kt.displayName="Button";var Bb=k("button",{shouldForwardProp:e=>Ws(e)})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:i,animation:l,padding:s})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="small"&&r==="small"?"0 7px":s==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&a?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:a?Ke(.9,e.barTextColor):"transparent",color:a?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:Ke(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:Ke(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${oa(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?Ke(.86,e.color.secondary):e.base==="light"?yr(.02,u):H0(.03,u)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?yr(.02,u):H0(.03,u)})()},"&:focus":{boxShadow:`${oa(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:i&&l!=="none"?`${e.animation[l]} 1000ms ease-out`:""}})),Ot=o.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>h.createElement(kt,{padding:e,variant:t,ref:n,...r}));Ot.displayName="IconButton";var J1=fn({from:{opacity:0},to:{opacity:1}}),_b=fn({from:{maxHeight:0},to:{}}),Ob=fn({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),Q1=k.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${J1} 200ms`}),ed=k.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${Ob} 200ms`,"&:focus-visible":{outline:"none"}})),td=e=>h.createElement(x1,{asChild:!0},h.createElement(Ot,{...e},h.createElement(Wc,null))),$b=k.div({display:"flex",flexDirection:"column",margin:16,gap:16}),rd=k.div({display:"flex",justifyContent:"space-between",gap:16}),nd=k.div({display:"flex",flexDirection:"column",gap:4}),Tb=e=>h.createElement(rd,null,h.createElement(nd,{...e}),h.createElement(td,null)),kb=k(E1)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),Mb=k(A1)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),Pb=k.div({display:"flex",flexDirection:"row-reverse",gap:8}),ad=k.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${_b} 300ms, ${J1} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),Lb=({children:e,...t})=>h.createElement(ad,{...t},h.createElement("div",null,e));function jb({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=u=>u.preventDefault(),className:i,container:l,...s}){return h.createElement(v1,{...s},h.createElement(y1,{container:l},h.createElement(b1,{asChild:!0},h.createElement(Q1,null)),h.createElement(w1,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},h.createElement(ed,{className:i,width:t,height:r},e))))}var Nb=Object.assign(jb,Z1,{Dialog:x7}),zb=e=>typeof e=="number"?e:Number(e),Hb=k.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${No}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${No}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),Ub=({col:e,row:t,outer:r,children:n,...a})=>{let i=zb(typeof r=="number"||!r?r:e||t);return h.createElement(Hb,{col:e,row:t,outer:i,...a},n)},Vb=k.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Wb=k.div(),qb=k.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),Gb=({children:e,...t})=>{let[r,n]=o.Children.toArray(e);return h.createElement(qb,{...t},h.createElement(Vb,null,r),n&&h.createElement(Wb,null,n))};function Kb(e,t){var r=o.useRef(null),n=o.useRef(null);n.current=t;var a=o.useRef(null);o.useEffect(function(){i()});var i=o.useCallback(function(){var l=a.current,s=n.current,u=l||(s?s instanceof Element?s:s.current:null);r.current&&r.current.element===u&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:u,subscriber:e,cleanup:u?e(u):void 0})},[e]);return o.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),o.useCallback(function(l){a.current=l,i()},[i])}function U0(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function od(e){e===void 0&&(e={});var t=e.onResize,r=o.useRef(void 0);r.current=t;var n=e.round||Math.round,a=o.useRef(),i=o.useState({width:void 0,height:void 0}),l=i[0],s=i[1],u=o.useRef(!1);o.useEffect(function(){return u.current=!1,function(){u.current=!0}},[]);var c=o.useRef({width:void 0,height:void 0}),p=Kb(o.useCallback(function(m){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(f){var d=f[0],v=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=U0(d,v,"inlineSize"),w=U0(d,v,"blockSize"),D=g?n(g):void 0,x=w?n(w):void 0;if(c.current.width!==D||c.current.height!==x){var S={width:D,height:x};c.current.width=D,c.current.height=x,r.current?r.current(S):u.current||s(S)}})}),a.current.instance.observe(m,{box:e.box}),function(){a.current&&a.current.instance.unobserve(m)}},[e.box,n]),e.ref);return o.useMemo(function(){return{ref:p,width:l.width,height:l.height}},[p,l.width,l.height])}var Yb=k.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function Xb({scale:e,children:t}){let r=o.useRef(null),[n,a]=o.useState(0),i=o.useCallback(({height:l})=>{l&&a(l/e)},[e]);return o.useEffect(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[e]),od({ref:r,onResize:i}),h.createElement(Yb,{scale:e,elementHeight:n},h.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var Zb=class extends o.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return h.createElement(h.Fragment,null,e)}},id={Element:Xb,IFrame:Zb},{document:Jb}=M7,Qb=k.strong(({theme:e})=>({color:e.color.orange})),e6=k.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),V0=k.em(({theme:e})=>({color:e.textMutedColor})),t6=/(Error): (.*)\n/,r6=/at (?:(.*) )?\(?(.+)\)?/,n6=/([^@]+)?(?:\/<)?@(.+)?/,a6=/([^@]+)?@(.+)?/,ld=({error:e})=>{if(!e)return h.createElement(o.Fragment,null,"This error has no stack or message");if(!e.stack)return h.createElement(o.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} -${t}`);let r=t.match(t6);if(!r)return h.createElement(o.Fragment,null,t);let[,n,a]=r,i=t.split(/\n/).slice(1),[,...l]=i.map(s=>{let u=s.match(r6)||s.match(n6)||s.match(a6);return u?{name:(u[1]||"").replace("/<",""),location:u[2].replace(Jb.location.origin,"")}:null}).filter(Boolean);return h.createElement(o.Fragment,null,h.createElement("span",null,n),": ",h.createElement(Qb,null,a),h.createElement("br",null),l.map((s,u)=>s.name?h.createElement(o.Fragment,{key:u}," ","at ",h.createElement(e6,null,s.name)," (",h.createElement(V0,null,s.location),")",h.createElement("br",null)):h.createElement(o.Fragment,{key:u}," ","at ",h.createElement(V0,null,s.location),h.createElement("br",null))))},o6=k.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),i6=k.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),l6=({label:e,children:t,...r})=>h.createElement(o6,{...r},e?h.createElement(i6,null,h.createElement("span",null,e)):null,t),u6=o.useLayoutEffect,s6=u6,c6=function(e){var t=o.useRef(e);return s6(function(){t.current=e}),t},W0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},d6=function(e,t){var r=o.useRef();return o.useCallback(function(n){e.current=n,r.current&&W0(r.current,null),r.current=t,t&&W0(t,n)},[t])},f6=d6,q0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},p6=function(e){Object.keys(q0).forEach(function(t){e.style.setProperty(t,q0[t],"important")})},G0=p6,je=null,K0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function h6(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),je||(je=document.createElement("textarea"),je.setAttribute("tabindex","-1"),je.setAttribute("aria-hidden","true"),G0(je)),je.parentNode===null&&document.body.appendChild(je);var a=e.paddingSize,i=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(f){var d=f;je.style[d]=l[d]}),G0(je),je.value=t;var u=K0(je,e);je.value=t,u=K0(je,e),je.value="x";var c=je.scrollHeight-a,p=c*r;s==="border-box"&&(p=p+a+i),u=Math.max(p,u);var m=c*n;return s==="border-box"&&(m=m+a+i),u=Math.min(m,u),[u,c]}var Y0=function(){},g6=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},m6=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],v6=!!document.documentElement.currentStyle,y6=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=g6(m6,t),n=r.boxSizing;if(n==="")return null;v6&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:i}},b6=y6;function ud(e,t,r){var n=c6(r);o.useLayoutEffect(function(){var a=function(i){return n.current(i)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var w6=function(e){ud(window,"resize",e)},E6=function(e){ud(document.fonts,"loadingdone",e)},A6=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],x6=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,i=e.onChange,l=i===void 0?Y0:i,s=e.onHeightChange,u=s===void 0?Y0:s,c=Si(e,A6),p=c.value!==void 0,m=o.useRef(null),f=f6(m,t),d=o.useRef(0),v=o.useRef(),g=function(){var D=m.current,x=r&&v.current?v.current:b6(D);if(x){v.current=x;var S=h6(x,D.value||D.placeholder||"x",a,n),A=S[0],b=S[1];d.current!==A&&(d.current=A,D.style.setProperty("height",A+"px","important"),u(A,{rowHeight:b}))}},w=function(D){p||g(),l(D)};return o.useLayoutEffect(g),w6(g),E6(g),o.createElement("textarea",me({},c,{onChange:w,ref:f}))},C6=o.forwardRef(x6),D6={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},dl=({theme:e})=>({...D6,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),fl=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},sd=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},pl=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},S6=Object.assign(k(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return h.createElement("input",{...n,ref:a})}))(dl,fl,sd,pl,{minHeight:32}),{displayName:"Input"}),F6=Object.assign(k(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return h.createElement("select",{...n,ref:a})}))(dl,fl,pl,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),R6=Object.assign(k(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return h.createElement(C6,{...n,ref:a})}))(dl,fl,sd,pl,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Tr=Object.assign(k.form({boxSizing:"border-box",width:"100%"}),{Field:l6,Input:S6,Select:F6,Textarea:R6,Button:kt}),I6=o.lazy(()=>$t(()=>import("./WithTooltip-KJL26V4Q-161ae313.js"),["./WithTooltip-KJL26V4Q-161ae313.js","./iframe-21f17388.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url).then(e=>({default:e.WithTooltip}))),B6=e=>h.createElement(o.Suspense,{fallback:h.createElement("div",null)},h.createElement(I6,{...e})),_6=o.lazy(()=>$t(()=>import("./WithTooltip-KJL26V4Q-161ae313.js"),["./WithTooltip-KJL26V4Q-161ae313.js","./iframe-21f17388.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url).then(e=>({default:e.WithTooltipPure}))),cd=e=>h.createElement(o.Suspense,{fallback:h.createElement("div",null)},h.createElement(_6,{...e})),O6=k.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),$6=k.span(),T6=k.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),k6=k.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),M6=k.div({padding:15,width:280,boxSizing:"border-box"}),P6=({title:e,desc:t,links:r})=>h.createElement(M6,null,h.createElement(k6,null,e&&h.createElement(O6,null,e),t&&h.createElement($6,null,t)),r&&h.createElement(T6,null,r.map(({title:n,...a})=>h.createElement(Kt,{...a,key:n},n)))),L6=k.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),j6=({note:e,...t})=>h.createElement(L6,{...t},e),N6=k(({active:e,loading:t,disabled:r,...n})=>h.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:Ke(.7,t.color.defaultText)}:{}),z6=k.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),H6=k.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),U6=k.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),V6=k.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),W6=k.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),q6=dn(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),G6=({loading:e=!1,title:t=h.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:a=!1,disabled:i=!1,isIndented:l,href:s=null,onClick:u=null,icon:c,LinkWrapper:p=null,...m})=>{let f=q6(u,s,p),d={active:a,disabled:i};return h.createElement(W6,{...d,...m,...f},c&&h.createElement(V6,{...d},c),t||r?h.createElement(H6,{isIndented:!c&&l},t&&h.createElement(N6,{...d,loading:e},t),r&&h.createElement(U6,{...d},r)):null,n&&h.createElement(z6,{...d},n))},dd=G6,K6=k.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),Y6=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:a,...i}=e,{title:l,href:s,active:u}=i,c=o.useCallback(m=>{r(m,i)},[r]),p=!!r;return h.createElement(dd,{title:l,active:u,href:s,id:`list-item-${n}`,LinkWrapper:t,isIndented:a,...i,...p?{onClick:c}:{}})},fd=({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return h.createElement(K6,null,e.map(({isGatsby:n,...a})=>h.createElement(Y6,{key:a.id,LinkWrapper:n?t:null,isIndented:r,...a})))},X6=e=>typeof e.props.href=="string",Z6=e=>typeof e.props.href!="string";function J6({children:e,...t},r){let n={props:t,ref:r};if(X6(n))return h.createElement("a",{ref:n.ref,...n.props},e);if(Z6(n))return h.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var pd=o.forwardRef(J6);pd.displayName="ButtonOrLink";var bn=k(pd,{shouldForwardProp:Ws})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});bn.displayName="TabButton";var Q6=k.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),e8=k.div(()=>({marginTop:6,padding:7,height:28})),t8=()=>h.createElement(e8,null,h.createElement(Q6,null)),Qo=k.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Qo.displayName="Side";var r8=({children:e,className:t,scrollable:r})=>r?h.createElement(ya,{vertical:!1,className:t},e):h.createElement("div",{className:t},e),hl=k(r8)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});hl.displayName="Bar";var n8=k.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),xa=({children:e,backgroundColor:t,className:r,...n})=>{let[a,i]=o.Children.toArray(e);return h.createElement(hl,{className:`sb-bar ${r}`,...n},h.createElement(n8,{bgColor:t},h.createElement(Qo,{scrollable:n.scrollable,left:!0},a),i?h.createElement(Qo,{right:!0},i):null))};xa.displayName="FlexBar";var hd=k.div(({active:e})=>e?{display:"block"}:{display:"none"}),a8=e=>o.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let i=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof i=="function"?i:({active:l})=>h.createElement(hd,{active:l,role:"tabpanel"},i)}}),o8=k.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),i8=k(bn)(({active:e,theme:t,preActive:r})=>` +${t}`);let r=t.match(t6);if(!r)return h.createElement(o.Fragment,null,t);let[,n,a]=r,i=t.split(/\n/).slice(1),[,...l]=i.map(s=>{let u=s.match(r6)||s.match(n6)||s.match(a6);return u?{name:(u[1]||"").replace("/<",""),location:u[2].replace(Jb.location.origin,"")}:null}).filter(Boolean);return h.createElement(o.Fragment,null,h.createElement("span",null,n),": ",h.createElement(Qb,null,a),h.createElement("br",null),l.map((s,u)=>s.name?h.createElement(o.Fragment,{key:u}," ","at ",h.createElement(e6,null,s.name)," (",h.createElement(V0,null,s.location),")",h.createElement("br",null)):h.createElement(o.Fragment,{key:u}," ","at ",h.createElement(V0,null,s.location),h.createElement("br",null))))},o6=k.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),i6=k.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),l6=({label:e,children:t,...r})=>h.createElement(o6,{...r},e?h.createElement(i6,null,h.createElement("span",null,e)):null,t),u6=o.useLayoutEffect,s6=u6,c6=function(e){var t=o.useRef(e);return s6(function(){t.current=e}),t},W0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},d6=function(e,t){var r=o.useRef();return o.useCallback(function(n){e.current=n,r.current&&W0(r.current,null),r.current=t,t&&W0(t,n)},[t])},f6=d6,q0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},p6=function(e){Object.keys(q0).forEach(function(t){e.style.setProperty(t,q0[t],"important")})},G0=p6,je=null,K0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function h6(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),je||(je=document.createElement("textarea"),je.setAttribute("tabindex","-1"),je.setAttribute("aria-hidden","true"),G0(je)),je.parentNode===null&&document.body.appendChild(je);var a=e.paddingSize,i=e.borderSize,l=e.sizingStyle,s=l.boxSizing;Object.keys(l).forEach(function(f){var d=f;je.style[d]=l[d]}),G0(je),je.value=t;var u=K0(je,e);je.value=t,u=K0(je,e),je.value="x";var c=je.scrollHeight-a,p=c*r;s==="border-box"&&(p=p+a+i),u=Math.max(p,u);var m=c*n;return s==="border-box"&&(m=m+a+i),u=Math.min(m,u),[u,c]}var Y0=function(){},g6=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},m6=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],v6=!!document.documentElement.currentStyle,y6=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=g6(m6,t),n=r.boxSizing;if(n==="")return null;v6&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),i=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:i}},b6=y6;function ud(e,t,r){var n=c6(r);o.useLayoutEffect(function(){var a=function(i){return n.current(i)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var w6=function(e){ud(window,"resize",e)},E6=function(e){ud(document.fonts,"loadingdone",e)},A6=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],x6=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,i=e.onChange,l=i===void 0?Y0:i,s=e.onHeightChange,u=s===void 0?Y0:s,c=Si(e,A6),p=c.value!==void 0,m=o.useRef(null),f=f6(m,t),d=o.useRef(0),v=o.useRef(),g=function(){var D=m.current,x=r&&v.current?v.current:b6(D);if(x){v.current=x;var S=h6(x,D.value||D.placeholder||"x",a,n),A=S[0],b=S[1];d.current!==A&&(d.current=A,D.style.setProperty("height",A+"px","important"),u(A,{rowHeight:b}))}},w=function(D){p||g(),l(D)};return o.useLayoutEffect(g),w6(g),E6(g),o.createElement("textarea",me({},c,{onChange:w,ref:f}))},C6=o.forwardRef(x6),D6={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},dl=({theme:e})=>({...D6,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),fl=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},sd=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},pl=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},S6=Object.assign(k(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return h.createElement("input",{...n,ref:a})}))(dl,fl,sd,pl,{minHeight:32}),{displayName:"Input"}),F6=Object.assign(k(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return h.createElement("select",{...n,ref:a})}))(dl,fl,pl,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),R6=Object.assign(k(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return h.createElement(C6,{...n,ref:a})}))(dl,fl,sd,pl,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Tr=Object.assign(k.form({boxSizing:"border-box",width:"100%"}),{Field:l6,Input:S6,Select:F6,Textarea:R6,Button:kt}),I6=o.lazy(()=>$t(()=>import("./WithTooltip-KJL26V4Q-e964e658.js"),["./WithTooltip-KJL26V4Q-e964e658.js","./iframe-f92ba46f.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url).then(e=>({default:e.WithTooltip}))),B6=e=>h.createElement(o.Suspense,{fallback:h.createElement("div",null)},h.createElement(I6,{...e})),_6=o.lazy(()=>$t(()=>import("./WithTooltip-KJL26V4Q-e964e658.js"),["./WithTooltip-KJL26V4Q-e964e658.js","./iframe-f92ba46f.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url).then(e=>({default:e.WithTooltipPure}))),cd=e=>h.createElement(o.Suspense,{fallback:h.createElement("div",null)},h.createElement(_6,{...e})),O6=k.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),$6=k.span(),T6=k.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),k6=k.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),M6=k.div({padding:15,width:280,boxSizing:"border-box"}),P6=({title:e,desc:t,links:r})=>h.createElement(M6,null,h.createElement(k6,null,e&&h.createElement(O6,null,e),t&&h.createElement($6,null,t)),r&&h.createElement(T6,null,r.map(({title:n,...a})=>h.createElement(Kt,{...a,key:n},n)))),L6=k.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),j6=({note:e,...t})=>h.createElement(L6,{...t},e),N6=k(({active:e,loading:t,disabled:r,...n})=>h.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:Ke(.7,t.color.defaultText)}:{}),z6=k.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),H6=k.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),U6=k.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),V6=k.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),W6=k.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),q6=dn(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),G6=({loading:e=!1,title:t=h.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:a=!1,disabled:i=!1,isIndented:l,href:s=null,onClick:u=null,icon:c,LinkWrapper:p=null,...m})=>{let f=q6(u,s,p),d={active:a,disabled:i};return h.createElement(W6,{...d,...m,...f},c&&h.createElement(V6,{...d},c),t||r?h.createElement(H6,{isIndented:!c&&l},t&&h.createElement(N6,{...d,loading:e},t),r&&h.createElement(U6,{...d},r)):null,n&&h.createElement(z6,{...d},n))},dd=G6,K6=k.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),Y6=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:a,...i}=e,{title:l,href:s,active:u}=i,c=o.useCallback(m=>{r(m,i)},[r]),p=!!r;return h.createElement(dd,{title:l,active:u,href:s,id:`list-item-${n}`,LinkWrapper:t,isIndented:a,...i,...p?{onClick:c}:{}})},fd=({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return h.createElement(K6,null,e.map(({isGatsby:n,...a})=>h.createElement(Y6,{key:a.id,LinkWrapper:n?t:null,isIndented:r,...a})))},X6=e=>typeof e.props.href=="string",Z6=e=>typeof e.props.href!="string";function J6({children:e,...t},r){let n={props:t,ref:r};if(X6(n))return h.createElement("a",{ref:n.ref,...n.props},e);if(Z6(n))return h.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var pd=o.forwardRef(J6);pd.displayName="ButtonOrLink";var bn=k(pd,{shouldForwardProp:Ws})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});bn.displayName="TabButton";var Q6=k.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),e8=k.div(()=>({marginTop:6,padding:7,height:28})),t8=()=>h.createElement(e8,null,h.createElement(Q6,null)),Qo=k.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Qo.displayName="Side";var r8=({children:e,className:t,scrollable:r})=>r?h.createElement(ya,{vertical:!1,className:t},e):h.createElement("div",{className:t},e),hl=k(r8)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});hl.displayName="Bar";var n8=k.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),xa=({children:e,backgroundColor:t,className:r,...n})=>{let[a,i]=o.Children.toArray(e);return h.createElement(hl,{className:`sb-bar ${r}`,...n},h.createElement(n8,{bgColor:t},h.createElement(Qo,{scrollable:n.scrollable,left:!0},a),i?h.createElement(Qo,{right:!0},i):null))};xa.displayName="FlexBar";var hd=k.div(({active:e})=>e?{display:"block"}:{display:"none"}),a8=e=>o.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let i=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof i=="function"?i:({active:l})=>h.createElement(hd,{active:l,role:"tabpanel"},i)}}),o8=k.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),i8=k(bn)(({active:e,theme:t,preActive:r})=>` color: ${r||e?t.barSelectedColor:t.barTextColor}; .addon-collapsible-icon { color: ${r||e?t.barSelectedColor:t.barTextColor}; @@ -373,7 +373,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${lt(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${st(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),$p=k.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),xj=k($p)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Cj=k.div({display:"flex",alignItems:"center",width:"100%"});function Dj(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Sj=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:i=1,onBlur:l,onFocus:s,argType:u})=>{var d;let c=v=>{r(ML(v.target.value))},p=t!==void 0,m=o.useMemo(()=>Dj(i),[i]),f=!!((d=u==null?void 0:u.table)!=null&&d.readonly);return h.createElement(Cj,{"aria-readonly":f},h.createElement($p,null,n),h.createElement(Aj,{id:at(e),type:"range",disabled:f,onChange:c,name:e,value:t,min:n,max:a,step:i,onFocus:s,onBlur:l}),h.createElement(xj,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},Fj=k.label({display:"flex"}),Rj=k.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Ij=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:i,argType:l})=>{var d;let s=v=>{r(v.target.value)},u=!!((d=l==null?void 0:l.table)!=null&&d.readonly),[c,p]=o.useState(!1),m=o.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return h.createElement(kt,{variant:"outline",size:"medium",disabled:u,id:ga(e),onClick:m},"Set string");let f=typeof t=="string";return h.createElement(Fj,null,h.createElement(Tr.Textarea,{id:at(e),maxLength:i,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:c,valid:f?null:"error",name:e,value:f?t:"",onFocus:n,onBlur:a}),i&&h.createElement(Rj,{isMaxed:(t==null?void 0:t.length)===i},(t==null?void 0:t.length)??0," / ",i))},Bj=k(Tr.Input)({padding:10});function _j(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Oj=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let i=o.useRef(null),l=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(c){if(!c.target.files)return;let p=Array.from(c.target.files).map(m=>URL.createObjectURL(m));e(p),_j(n)}return o.useEffect(()=>{n==null&&i.current&&(i.current.value=null)},[n,t]),h.createElement(Bj,{ref:i,id:at(t),type:"file",name:t,multiple:!0,disabled:l,onChange:s,accept:r,size:"flex"})},$j=o.lazy(()=>$t(()=>import("./Color-PRSJMWNM-2f0fc4a5.js"),["./Color-PRSJMWNM-2f0fc4a5.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./index-b7949e8c.js","./index-161398fe.js","./iframe-21f17388.js","./react-18-17fe38b0.js"],import.meta.url)),Tj=e=>h.createElement(o.Suspense,{fallback:h.createElement("div",null)},h.createElement($j,{...e})),kj={array:zs,object:zs,boolean:RL,color:Tj,date:TL,number:LL,check:gr,"inline-check":gr,radio:gr,"inline-radio":gr,select:gr,"multi-select":gr,range:Sj,text:Ij,file:Oj},Hs=()=>h.createElement(h.Fragment,null,"-"),Mj=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:i}=e,[l,s]=o.useState(!1),[u,c]=o.useState({value:t});o.useEffect(()=>{l||c({value:t})},[l,t]);let p=o.useCallback(w=>(c({value:w}),r({[a]:w}),w),[r,a]),m=o.useCallback(()=>s(!1),[]),f=o.useCallback(()=>s(!0),[]);if(!i||i.disable){let w=(i==null?void 0:i.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&w?h.createElement(Kt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):h.createElement(Hs,null)}let d={name:a,argType:e,value:u.value,onChange:p,onBlur:m,onFocus:f},v=kj[i.type]||Hs;return h.createElement(v,{...d,...i,controlType:i.type})},Pj=k.span({fontWeight:"bold"}),Lj=k.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),jj=k.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...xt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Nj=k.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ee(.1,e.color.defaultText):Ee(.2,e.color.defaultText),marginTop:t?4:0})),zj=k.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ee(.1,e.color.defaultText):Ee(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Hj=k.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Uj=e=>e&&{summary:typeof e=="string"?e:e.name},Ln=e=>{var g;let[t,r]=o.useState(!1),{row:n,updateArgs:a,compact:i,expandable:l,initialExpandedArgs:s}=e,{name:u,description:c}=n,p=n.table||{},m=p.type||Uj(n.type),f=p.defaultValue||n.defaultValue,d=(g=n.type)==null?void 0:g.required,v=c!=null&&c!=="";return h.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},h.createElement(Hj,{expandable:l},h.createElement(Pj,null,u),d?h.createElement(Lj,{title:"Required"},"*"):null),i?null:h.createElement("td",null,v&&h.createElement(jj,null,h.createElement(bf,null,c)),p.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(zj,{hasDescription:v},h.createElement(Po,{value:m,initialExpandedArgs:s})),h.createElement(gL,{tags:p.jsDocTags})):h.createElement(Nj,{hasDescription:v},h.createElement(Po,{value:m,initialExpandedArgs:s}))),i?null:h.createElement("td",null,h.createElement(Po,{value:f,initialExpandedArgs:s})),a?h.createElement("td",null,h.createElement(Mj,{...e,isHovered:t})):null)},Vj=k(Yc)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ee(.25,e.color.defaultText):Ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),Wj=k(Vi)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ee(.25,e.color.defaultText):Ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),qj=k.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Gj=k.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?Ee(.4,e.color.defaultText):Ee(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Kj=k.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Yj=k.td(()=>({position:"relative"})),Xj=k.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Nt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Us=k.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),jo=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[i,l]=o.useState(n),s=e==="subsection"?Kj:Gj,u=(r==null?void 0:r.length)||0,c=e==="subsection"?`${u} item${u!==1?"s":""}`:"",p=`${i?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(Xj,{title:p},h.createElement(s,{colSpan:1},h.createElement(Us,{onClick:m=>l(!i),tabIndex:0},p),h.createElement(qj,null,i?h.createElement(Vj,null):h.createElement(Wj,null),t)),h.createElement(Yj,{colSpan:a-1},h.createElement(Us,{onClick:m=>l(!i),tabIndex:-1,style:{outline:"none"}},p),i?null:c)),i?r:null)},jn=k.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Me=k.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),Ie=k.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Pe=[2,4,2,2],Zj=()=>h.createElement(h.Fragment,null,h.createElement(jn,null,h.createElement(Me,{numColumn:Pe[0]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[1]},h.createElement(Ie,{width:"30%"})),h.createElement(Me,{numColumn:Pe[2]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[3]},h.createElement(Ie,{width:"60%"}))),h.createElement(jn,null,h.createElement(Me,{numColumn:Pe[0]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[1]},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Me,{numColumn:Pe[2]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[3]},h.createElement(Ie,{width:"60%"}))),h.createElement(jn,null,h.createElement(Me,{numColumn:Pe[0]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[1]},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Me,{numColumn:Pe[2]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[3]},h.createElement(Ie,{width:"60%"}))),h.createElement(jn,null,h.createElement(Me,{numColumn:Pe[0]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[1]},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Me,{numColumn:Pe[2]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[3]},h.createElement(Ie,{width:"60%"})))),Jj=k.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Qj=k.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),eN=k.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),tN=({inAddonPanel:e})=>{let[t,r]=o.useState(!0);return o.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(Jj,{inAddonPanel:e},h.createElement(gl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:h.createElement(h.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:h.createElement(Qj,null,e&&h.createElement(h.Fragment,null,h.createElement(Kt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},h.createElement(Vc,null)," Watch 5m video"),h.createElement(eN,null),h.createElement(Kt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(ta,null)," Read docs")),!e&&h.createElement(Kt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(ta,null)," Learn how to set that up"))}))},rN=k.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?Ee(.25,e.color.defaultText):Ee(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),nN=k(Ot)(({theme:e})=>({margin:"-4px -12px -4px 0"})),aN=k.span({display:"flex",justifyContent:"space-between"}),oN={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},iN=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,l])=>{let{category:s,subcategory:u}=(l==null?void 0:l.table)||{};if(s){let c=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)c.ungrouped.push({key:i,...l});else{let p=c.subsections[u]||[];p.push({key:i,...l}),c.subsections[u]=p}r.sections[s]=c}else if(u){let c=r.ungroupedSubsections[u]||[];c.push({key:i,...l}),r.ungroupedSubsections[u]=c}else r.ungrouped.push({key:i,...l})});let n=oN[t],a=i=>n?Object.keys(i).reduce((l,s)=>({...l,[s]:i[s].sort(n)}),{}):i;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,l)=>({...i,[l]:{ungrouped:r.sections[l].ungrouped.sort(n),subsections:a(r.sections[l].subsections)}}),{})}},lN=(e,t,r)=>{try{return T7(e,t,r)}catch(n){return LP.warn(n.message),!1}},Ai=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:i,sort:l="none",isLoading:s}=e;if("error"in e){let{error:x}=e;return h.createElement(mp,null,x," ",h.createElement(Kt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},h.createElement(ta,null)," Read the docs"))}if(s)return h.createElement(Zj,null);let{rows:u,args:c,globals:p}="rows"in e&&e,m=iN(bR(u,x=>{var S;return!((S=x==null?void 0:x.table)!=null&&S.disable)&&lN(x,c||{},p||{})}),l),f=m.ungrouped.length===0,d=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(f&&d&&v)return h.createElement(tN,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,D={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:i};return h.createElement(cl,null,h.createElement(rN,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),n?null:h.createElement("th",null,h.createElement("span",null,"Description")),n?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement(aN,null,"Control"," ",!s&&r&&h.createElement(nN,{onClick:()=>r(),title:"Reset controls"},h.createElement(Zc,{"aria-hidden":!0})))):null)),h.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(x=>h.createElement(Ln,{key:x.key,row:x,arg:c&&c[x.key],...D})),Object.entries(m.ungroupedSubsections).map(([x,S])=>h.createElement(jo,{key:x,label:x,level:"subsection",colSpan:g},S.map(A=>h.createElement(Ln,{key:A.key,row:A,arg:c&&c[A.key],expandable:w,...D})))),Object.entries(m.sections).map(([x,S])=>h.createElement(jo,{key:x,label:x,level:"section",colSpan:g},S.ungrouped.map(A=>h.createElement(Ln,{key:A.key,row:A,arg:c&&c[A.key],...D})),Object.entries(S.subsections).map(([A,b])=>h.createElement(jo,{key:A,label:A,level:"subsection",colSpan:g},b.map(y=>h.createElement(Ln,{key:y.key,row:y,arg:c&&c[y.key],expandable:w,...D})))))))))},uN=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?h.createElement(Ai,{...r[0][1],...t}):h.createElement(yl,null,r.map((n,a)=>{let[i,l]=n,s=`prop_table_div_${i}`,u="div",c=a===0?t:{sort:t.sort};return h.createElement(u,{key:s,id:s,title:i},({active:p})=>p?h.createElement(Ai,{key:`prop_table_${i}`,...l,...c}):null)}))};k.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Ee(.4,e.color.defaultText):Ee(.6,e.color.defaultText)}));k.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});k.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});k.div(Ce,({theme:e})=>({...ja(e),margin:"25px 0 40px",padding:"30px 20px"}));k.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));k.div(({theme:e})=>({color:e.base==="light"?Ee(.2,e.color.defaultText):Ee(.6,e.color.defaultText)}));k.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});k.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?Ee(.4,e.color.defaultText):Ee(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));k.div({display:"flex",flexDirection:"row"});k.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));k.div(({theme:e})=>({...ja(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));k.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});k.div({flex:1,display:"flex",flexDirection:"row"});k.div({display:"flex",alignItems:"flex-start"});k.div({flex:"0 0 30%"});k.div({flex:1});k.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?Ee(.4,e.color.defaultText):Ee(.6,e.color.defaultText)}));k.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));k.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));k.div(({theme:e})=>({...ja(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));k.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});k.div({display:"flex",flexFlow:"row wrap"});var sN=e=>`anchor--${e}`,cN=({storyId:e,children:t})=>h.createElement("div",{id:sN(e),className:"sb-anchor"},t);Ye&&Ye.__DOCS_CONTEXT__===void 0&&(Ye.__DOCS_CONTEXT__=o.createContext(null),Ye.__DOCS_CONTEXT__.displayName="DocsContext");var vt=Ye?Ye.__DOCS_CONTEXT__:o.createContext(null),lr=(e,t)=>o.useContext(vt).resolveOf(e,t),dN=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),fN=e=>{if(e)return typeof e=="string"?e.includes("-")?dN(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function pN(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function Tp(e){return DP(e,{allowFunction:!1})}var kp=o.createContext({sources:{}}),Mp="--unknown--",hN=({children:e,channel:t})=>{let[r,n]=o.useState({});return o.useEffect(()=>{let a=(i,l=null,s=!1)=>{let{id:u,args:c=void 0,source:p,format:m}=typeof i=="string"?{id:i,source:l,format:s}:i,f=c?Tp(c):Mp;n(d=>({...d,[u]:{...d[u],[f]:{code:p,format:m}}}))};return t.on(As,a),()=>t.off(As,a)},[]),h.createElement(kp.Provider,{value:{sources:r}},e)},gN=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[Tp(t)])||(a==null?void 0:a[Mp])||{code:""}},mN=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,c;let{__isArgsStory:a}=t.parameters,i=((u=t.parameters.docs)==null?void 0:u.source)||{},l=r||i.type||Jn.AUTO;if(i.code!==void 0)return i.code;let s=l===Jn.DYNAMIC||l===Jn.AUTO&&e&&a?e:i.originalSource||"";return((c=n??i.transform)==null?void 0:c(s,t))||s},vN=(e,t,r)=>{var d,v,g,w;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let i=((v=(d=n==null?void 0:n.parameters)==null?void 0:d.docs)==null?void 0:v.source)||{},{code:l}=e,s=e.format??i.format,u=e.language??i.language??"jsx",c=e.dark??i.dark??!1;if(!l&&!n)return{error:"Oh no! The source is not available."};if(l)return{code:l,format:s,language:u,dark:c};let p=t.getStoryContext(n),m=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,f=gN(n.id,m,r);return s=f.format??((w=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:w.format)??!1,{code:mN({snippet:f.code,storyContext:{...p,args:m},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:c}};function yN(e,t){let r=bN([e],t);return r&&r[0]}function bN(e,t){let[r,n]=o.useState({});return o.useEffect(()=>{Promise.all(e.map(async a=>{let i=await t.loadStory(a);n(l=>l[a]===i?l:{...l,[a]:i})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var wN=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},EN=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,i=a.story||{};if(a.disable)return null;if(e.inline??i.inline??!1){let s=e.height??i.height,u=e.autoplay??i.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let l=e.height??i.height??i.iframeHeight??"100px";return{story:t,inline:!1,height:l,primary:!!e.__primary}},AN=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=o.useContext(vt),r=wN(e,t),n=yN(r,t);if(!n)return h.createElement(bp,null);let a=EN(e,n,t);return a?h.createElement(lL,{...a}):null},xN=e=>{var f,d,v,g,w,D,x,S,A,b;let t=o.useContext(vt),r=o.useContext(kp),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:i}=lr(n||"story",["story"]),l=vN({...a,...n&&{of:n}},t,r),s=e.layout??i.parameters.layout??((d=(f=i.parameters.docs)==null?void 0:f.canvas)==null?void 0:d.layout)??"padded",u=e.withToolbar??((g=(v=i.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,c=e.additionalActions??((D=(w=i.parameters.docs)==null?void 0:w.canvas)==null?void 0:D.additionalActions),p=e.sourceState??((S=(x=i.parameters.docs)==null?void 0:x.canvas)==null?void 0:S.sourceState)??"hidden",m=e.className??((b=(A=i.parameters.docs)==null?void 0:A.canvas)==null?void 0:b.className);return h.createElement(wp,{withSource:p==="none"?void 0:l,isExpanded:p==="shown",withToolbar:u,additionalActions:c,className:m,layout:s},h.createElement(AN,{of:n||i.moduleExport,meta:e.meta,...e.story}))},CN=(e,t)=>{let r=t.getStoryContext(e),[n,a]=o.useState(r.globals);return o.useEffect(()=>{let i=l=>{a(l.globals)};return t.channel.on(Bs,i),()=>t.channel.off(Bs,i)},[t.channel]),[n]},DN=(e,t)=>{let r=SN(e,t);if(!r)throw new Error("No result when story was defined");return r},SN=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,i]=o.useState(r.args);o.useEffect(()=>{let u=c=>{c.storyId===n&&i(c.args)};return t.channel.on(_s,u),()=>t.channel.off(_s,u)},[n,t.channel]);let l=o.useCallback(u=>t.channel.emit(jP,{storyId:n,updatedArgs:u}),[n,t.channel]),s=o.useCallback(u=>t.channel.emit(NP,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,l,s]};function FN(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var RN=e=>{var A;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=o.useContext(vt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:i,component:l,subcomponents:s}=n,u=((A=a.docs)==null?void 0:A.controls)||{},c=e.include??u.include,p=e.exclude??u.exclude,m=e.sort??u.sort,[f,d,v]=DN(n,r),[g]=CN(n,r),w=Is(i,c,p);if(!(s&&Object.keys(s).length>0))return Object.keys(w).length>0||Object.keys(f).length>0?h.createElement(Ai,{rows:w,sort:m,args:f,globals:g,updateArgs:d,resetArgs:v}):null;let D=fN(l),x=Object.fromEntries(Object.entries(s).map(([b,y])=>[b,{rows:Is(FN(y,a),c,p),sort:m}])),S={[D]:{rows:w,sort:m},...x};return h.createElement(uN,{tabs:S,sort:m,args:f,globals:g,updateArgs:d,resetArgs:v})},{document:Pp}=Ye,Lp=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(ll,null,t);let n=e&&e.split("-");return h.createElement(vp,{language:n&&n[1]||"text",format:!1,code:t,...r})};function t0(e,t){e.channel.emit(zP,t)}var xi=vd.a,IN=({hash:e,children:t})=>{let r=o.useContext(vt);return h.createElement(xi,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);Pp.getElementById(a)&&t0(r,e)}},t)},jp=e=>{let{href:t,target:r,children:n,...a}=e,i=o.useContext(vt);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(xi,{...e}):t.startsWith("#")?h.createElement(IN,{hash:t},n):h.createElement(xi,{href:t,onClick:l=>{l.button===0&&!l.altKey&&!l.ctrlKey&&!l.metaKey&&!l.shiftKey&&(l.preventDefault(),t0(i,l.currentTarget.getAttribute("href")))},target:r,...a},n)},Np=["h1","h2","h3","h4","h5","h6"],BN=Np.reduce((e,t)=>({...e,[t]:k(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),_N=k.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),ON=({as:e,id:t,children:r,...n})=>{let a=o.useContext(vt),i=BN[e],l=`#${t}`;return h.createElement(i,{id:t,...n},h.createElement(_N,{"aria-hidden":"true",href:l,tabIndex:-1,target:"_self",onClick:s=>{Pp.getElementById(t)&&t0(a,l)}},h.createElement(Kc,null)),r)},r0=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return h.createElement(ON,{as:t,id:r,...a},n);let i=t,{as:l,...s}=e;return h.createElement(i,{...Ae(s,t)})},zp=Np.reduce((e,t)=>({...e,[t]:r=>h.createElement(r0,{as:t,...r})}),{}),$N=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(SP`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${Nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${st(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),$p=k.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),xj=k($p)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Cj=k.div({display:"flex",alignItems:"center",width:"100%"});function Dj(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Sj=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:i=1,onBlur:l,onFocus:s,argType:u})=>{var d;let c=v=>{r(ML(v.target.value))},p=t!==void 0,m=o.useMemo(()=>Dj(i),[i]),f=!!((d=u==null?void 0:u.table)!=null&&d.readonly);return h.createElement(Cj,{"aria-readonly":f},h.createElement($p,null,n),h.createElement(Aj,{id:at(e),type:"range",disabled:f,onChange:c,name:e,value:t,min:n,max:a,step:i,onFocus:s,onBlur:l}),h.createElement(xj,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},Fj=k.label({display:"flex"}),Rj=k.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Ij=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:i,argType:l})=>{var d;let s=v=>{r(v.target.value)},u=!!((d=l==null?void 0:l.table)!=null&&d.readonly),[c,p]=o.useState(!1),m=o.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return h.createElement(kt,{variant:"outline",size:"medium",disabled:u,id:ga(e),onClick:m},"Set string");let f=typeof t=="string";return h.createElement(Fj,null,h.createElement(Tr.Textarea,{id:at(e),maxLength:i,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:c,valid:f?null:"error",name:e,value:f?t:"",onFocus:n,onBlur:a}),i&&h.createElement(Rj,{isMaxed:(t==null?void 0:t.length)===i},(t==null?void 0:t.length)??0," / ",i))},Bj=k(Tr.Input)({padding:10});function _j(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Oj=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let i=o.useRef(null),l=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(c){if(!c.target.files)return;let p=Array.from(c.target.files).map(m=>URL.createObjectURL(m));e(p),_j(n)}return o.useEffect(()=>{n==null&&i.current&&(i.current.value=null)},[n,t]),h.createElement(Bj,{ref:i,id:at(t),type:"file",name:t,multiple:!0,disabled:l,onChange:s,accept:r,size:"flex"})},$j=o.lazy(()=>$t(()=>import("./Color-PRSJMWNM-f23e4f15.js"),["./Color-PRSJMWNM-f23e4f15.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./index-b7949e8c.js","./index-161398fe.js","./iframe-f92ba46f.js","./react-18-17fe38b0.js"],import.meta.url)),Tj=e=>h.createElement(o.Suspense,{fallback:h.createElement("div",null)},h.createElement($j,{...e})),kj={array:zs,object:zs,boolean:RL,color:Tj,date:TL,number:LL,check:gr,"inline-check":gr,radio:gr,"inline-radio":gr,select:gr,"multi-select":gr,range:Sj,text:Ij,file:Oj},Hs=()=>h.createElement(h.Fragment,null,"-"),Mj=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var g;let{key:a,control:i}=e,[l,s]=o.useState(!1),[u,c]=o.useState({value:t});o.useEffect(()=>{l||c({value:t})},[l,t]);let p=o.useCallback(w=>(c({value:w}),r({[a]:w}),w),[r,a]),m=o.useCallback(()=>s(!1),[]),f=o.useCallback(()=>s(!0),[]);if(!i||i.disable){let w=(i==null?void 0:i.disable)!==!0&&((g=e==null?void 0:e.type)==null?void 0:g.name)!=="function";return n&&w?h.createElement(Kt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):h.createElement(Hs,null)}let d={name:a,argType:e,value:u.value,onChange:p,onBlur:m,onFocus:f},v=kj[i.type]||Hs;return h.createElement(v,{...d,...i,controlType:i.type})},Pj=k.span({fontWeight:"bold"}),Lj=k.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),jj=k.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...xt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Nj=k.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ee(.1,e.color.defaultText):Ee(.2,e.color.defaultText),marginTop:t?4:0})),zj=k.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?Ee(.1,e.color.defaultText):Ee(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Hj=k.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Uj=e=>e&&{summary:typeof e=="string"?e:e.name},Ln=e=>{var g;let[t,r]=o.useState(!1),{row:n,updateArgs:a,compact:i,expandable:l,initialExpandedArgs:s}=e,{name:u,description:c}=n,p=n.table||{},m=p.type||Uj(n.type),f=p.defaultValue||n.defaultValue,d=(g=n.type)==null?void 0:g.required,v=c!=null&&c!=="";return h.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},h.createElement(Hj,{expandable:l},h.createElement(Pj,null,u),d?h.createElement(Lj,{title:"Required"},"*"):null),i?null:h.createElement("td",null,v&&h.createElement(jj,null,h.createElement(bf,null,c)),p.jsDocTags!=null?h.createElement(h.Fragment,null,h.createElement(zj,{hasDescription:v},h.createElement(Po,{value:m,initialExpandedArgs:s})),h.createElement(gL,{tags:p.jsDocTags})):h.createElement(Nj,{hasDescription:v},h.createElement(Po,{value:m,initialExpandedArgs:s}))),i?null:h.createElement("td",null,h.createElement(Po,{value:f,initialExpandedArgs:s})),a?h.createElement("td",null,h.createElement(Mj,{...e,isHovered:t})):null)},Vj=k(Yc)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ee(.25,e.color.defaultText):Ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),Wj=k(Vi)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?Ee(.25,e.color.defaultText):Ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),qj=k.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Gj=k.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?Ee(.4,e.color.defaultText):Ee(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Kj=k.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Yj=k.td(()=>({position:"relative"})),Xj=k.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Nt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Us=k.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),jo=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[i,l]=o.useState(n),s=e==="subsection"?Kj:Gj,u=(r==null?void 0:r.length)||0,c=e==="subsection"?`${u} item${u!==1?"s":""}`:"",p=`${i?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return h.createElement(h.Fragment,null,h.createElement(Xj,{title:p},h.createElement(s,{colSpan:1},h.createElement(Us,{onClick:m=>l(!i),tabIndex:0},p),h.createElement(qj,null,i?h.createElement(Vj,null):h.createElement(Wj,null),t)),h.createElement(Yj,{colSpan:a-1},h.createElement(Us,{onClick:m=>l(!i),tabIndex:-1,style:{outline:"none"}},p),i?null:c)),i?r:null)},jn=k.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Me=k.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),Ie=k.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Pe=[2,4,2,2],Zj=()=>h.createElement(h.Fragment,null,h.createElement(jn,null,h.createElement(Me,{numColumn:Pe[0]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[1]},h.createElement(Ie,{width:"30%"})),h.createElement(Me,{numColumn:Pe[2]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[3]},h.createElement(Ie,{width:"60%"}))),h.createElement(jn,null,h.createElement(Me,{numColumn:Pe[0]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[1]},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Me,{numColumn:Pe[2]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[3]},h.createElement(Ie,{width:"60%"}))),h.createElement(jn,null,h.createElement(Me,{numColumn:Pe[0]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[1]},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Me,{numColumn:Pe[2]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[3]},h.createElement(Ie,{width:"60%"}))),h.createElement(jn,null,h.createElement(Me,{numColumn:Pe[0]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[1]},h.createElement(Ie,{width:"80%"}),h.createElement(Ie,{width:"30%"})),h.createElement(Me,{numColumn:Pe[2]},h.createElement(Ie,{width:"60%"})),h.createElement(Me,{numColumn:Pe[3]},h.createElement(Ie,{width:"60%"})))),Jj=k.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Qj=k.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),eN=k.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),tN=({inAddonPanel:e})=>{let[t,r]=o.useState(!0);return o.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:h.createElement(Jj,{inAddonPanel:e},h.createElement(gl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:h.createElement(h.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:h.createElement(Qj,null,e&&h.createElement(h.Fragment,null,h.createElement(Kt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},h.createElement(Vc,null)," Watch 5m video"),h.createElement(eN,null),h.createElement(Kt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(ta,null)," Read docs")),!e&&h.createElement(Kt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},h.createElement(ta,null)," Learn how to set that up"))}))},rN=k.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?Ee(.25,e.color.defaultText):Ee(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),nN=k(Ot)(({theme:e})=>({margin:"-4px -12px -4px 0"})),aN=k.span({display:"flex",justifyContent:"space-between"}),oN={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},iN=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([i,l])=>{let{category:s,subcategory:u}=(l==null?void 0:l.table)||{};if(s){let c=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)c.ungrouped.push({key:i,...l});else{let p=c.subsections[u]||[];p.push({key:i,...l}),c.subsections[u]=p}r.sections[s]=c}else if(u){let c=r.ungroupedSubsections[u]||[];c.push({key:i,...l}),r.ungroupedSubsections[u]=c}else r.ungrouped.push({key:i,...l})});let n=oN[t],a=i=>n?Object.keys(i).reduce((l,s)=>({...l,[s]:i[s].sort(n)}),{}):i;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((i,l)=>({...i,[l]:{ungrouped:r.sections[l].ungrouped.sort(n),subsections:a(r.sections[l].subsections)}}),{})}},lN=(e,t,r)=>{try{return T7(e,t,r)}catch(n){return LP.warn(n.message),!1}},Ai=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:i,sort:l="none",isLoading:s}=e;if("error"in e){let{error:x}=e;return h.createElement(mp,null,x," ",h.createElement(Kt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},h.createElement(ta,null)," Read the docs"))}if(s)return h.createElement(Zj,null);let{rows:u,args:c,globals:p}="rows"in e&&e,m=iN(bR(u,x=>{var S;return!((S=x==null?void 0:x.table)!=null&&S.disable)&&lN(x,c||{},p||{})}),l),f=m.ungrouped.length===0,d=Object.entries(m.sections).length===0,v=Object.entries(m.ungroupedSubsections).length===0;if(f&&d&&v)return h.createElement(tN,{inAddonPanel:a});let g=1;t&&(g+=1),n||(g+=2);let w=Object.keys(m.sections).length>0,D={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:i};return h.createElement(cl,null,h.createElement(rN,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},h.createElement("thead",{className:"docblock-argstable-head"},h.createElement("tr",null,h.createElement("th",null,h.createElement("span",null,"Name")),n?null:h.createElement("th",null,h.createElement("span",null,"Description")),n?null:h.createElement("th",null,h.createElement("span",null,"Default")),t?h.createElement("th",null,h.createElement(aN,null,"Control"," ",!s&&r&&h.createElement(nN,{onClick:()=>r(),title:"Reset controls"},h.createElement(Zc,{"aria-hidden":!0})))):null)),h.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(x=>h.createElement(Ln,{key:x.key,row:x,arg:c&&c[x.key],...D})),Object.entries(m.ungroupedSubsections).map(([x,S])=>h.createElement(jo,{key:x,label:x,level:"subsection",colSpan:g},S.map(A=>h.createElement(Ln,{key:A.key,row:A,arg:c&&c[A.key],expandable:w,...D})))),Object.entries(m.sections).map(([x,S])=>h.createElement(jo,{key:x,label:x,level:"section",colSpan:g},S.ungrouped.map(A=>h.createElement(Ln,{key:A.key,row:A,arg:c&&c[A.key],...D})),Object.entries(S.subsections).map(([A,b])=>h.createElement(jo,{key:A,label:A,level:"subsection",colSpan:g},b.map(y=>h.createElement(Ln,{key:y.key,row:y,arg:c&&c[y.key],expandable:w,...D})))))))))},uN=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?h.createElement(Ai,{...r[0][1],...t}):h.createElement(yl,null,r.map((n,a)=>{let[i,l]=n,s=`prop_table_div_${i}`,u="div",c=a===0?t:{sort:t.sort};return h.createElement(u,{key:s,id:s,title:i},({active:p})=>p?h.createElement(Ai,{key:`prop_table_${i}`,...l,...c}):null)}))};k.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?Ee(.4,e.color.defaultText):Ee(.6,e.color.defaultText)}));k.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});k.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});k.div(Ce,({theme:e})=>({...ja(e),margin:"25px 0 40px",padding:"30px 20px"}));k.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));k.div(({theme:e})=>({color:e.base==="light"?Ee(.2,e.color.defaultText):Ee(.6,e.color.defaultText)}));k.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});k.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?Ee(.4,e.color.defaultText):Ee(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));k.div({display:"flex",flexDirection:"row"});k.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));k.div(({theme:e})=>({...ja(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));k.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});k.div({flex:1,display:"flex",flexDirection:"row"});k.div({display:"flex",alignItems:"flex-start"});k.div({flex:"0 0 30%"});k.div({flex:1});k.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?Ee(.4,e.color.defaultText):Ee(.6,e.color.defaultText)}));k.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));k.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));k.div(({theme:e})=>({...ja(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));k.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});k.div({display:"flex",flexFlow:"row wrap"});var sN=e=>`anchor--${e}`,cN=({storyId:e,children:t})=>h.createElement("div",{id:sN(e),className:"sb-anchor"},t);Ye&&Ye.__DOCS_CONTEXT__===void 0&&(Ye.__DOCS_CONTEXT__=o.createContext(null),Ye.__DOCS_CONTEXT__.displayName="DocsContext");var vt=Ye?Ye.__DOCS_CONTEXT__:o.createContext(null),lr=(e,t)=>o.useContext(vt).resolveOf(e,t),dN=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),fN=e=>{if(e)return typeof e=="string"?e.includes("-")?dN(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function pN(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function Tp(e){return DP(e,{allowFunction:!1})}var kp=o.createContext({sources:{}}),Mp="--unknown--",hN=({children:e,channel:t})=>{let[r,n]=o.useState({});return o.useEffect(()=>{let a=(i,l=null,s=!1)=>{let{id:u,args:c=void 0,source:p,format:m}=typeof i=="string"?{id:i,source:l,format:s}:i,f=c?Tp(c):Mp;n(d=>({...d,[u]:{...d[u],[f]:{code:p,format:m}}}))};return t.on(As,a),()=>t.off(As,a)},[]),h.createElement(kp.Provider,{value:{sources:r}},e)},gN=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[Tp(t)])||(a==null?void 0:a[Mp])||{code:""}},mN=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,c;let{__isArgsStory:a}=t.parameters,i=((u=t.parameters.docs)==null?void 0:u.source)||{},l=r||i.type||Jn.AUTO;if(i.code!==void 0)return i.code;let s=l===Jn.DYNAMIC||l===Jn.AUTO&&e&&a?e:i.originalSource||"";return((c=n??i.transform)==null?void 0:c(s,t))||s},vN=(e,t,r)=>{var d,v,g,w;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let i=((v=(d=n==null?void 0:n.parameters)==null?void 0:d.docs)==null?void 0:v.source)||{},{code:l}=e,s=e.format??i.format,u=e.language??i.language??"jsx",c=e.dark??i.dark??!1;if(!l&&!n)return{error:"Oh no! The source is not available."};if(l)return{code:l,format:s,language:u,dark:c};let p=t.getStoryContext(n),m=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,f=gN(n.id,m,r);return s=f.format??((w=(g=n.parameters.docs)==null?void 0:g.source)==null?void 0:w.format)??!1,{code:mN({snippet:f.code,storyContext:{...p,args:m},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:c}};function yN(e,t){let r=bN([e],t);return r&&r[0]}function bN(e,t){let[r,n]=o.useState({});return o.useEffect(()=>{Promise.all(e.map(async a=>{let i=await t.loadStory(a);n(l=>l[a]===i?l:{...l,[a]:i})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var wN=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},EN=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,i=a.story||{};if(a.disable)return null;if(e.inline??i.inline??!1){let s=e.height??i.height,u=e.autoplay??i.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let l=e.height??i.height??i.iframeHeight??"100px";return{story:t,inline:!1,height:l,primary:!!e.__primary}},AN=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=o.useContext(vt),r=wN(e,t),n=yN(r,t);if(!n)return h.createElement(bp,null);let a=EN(e,n,t);return a?h.createElement(lL,{...a}):null},xN=e=>{var f,d,v,g,w,D,x,S,A,b;let t=o.useContext(vt),r=o.useContext(kp),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:i}=lr(n||"story",["story"]),l=vN({...a,...n&&{of:n}},t,r),s=e.layout??i.parameters.layout??((d=(f=i.parameters.docs)==null?void 0:f.canvas)==null?void 0:d.layout)??"padded",u=e.withToolbar??((g=(v=i.parameters.docs)==null?void 0:v.canvas)==null?void 0:g.withToolbar)??!1,c=e.additionalActions??((D=(w=i.parameters.docs)==null?void 0:w.canvas)==null?void 0:D.additionalActions),p=e.sourceState??((S=(x=i.parameters.docs)==null?void 0:x.canvas)==null?void 0:S.sourceState)??"hidden",m=e.className??((b=(A=i.parameters.docs)==null?void 0:A.canvas)==null?void 0:b.className);return h.createElement(wp,{withSource:p==="none"?void 0:l,isExpanded:p==="shown",withToolbar:u,additionalActions:c,className:m,layout:s},h.createElement(AN,{of:n||i.moduleExport,meta:e.meta,...e.story}))},CN=(e,t)=>{let r=t.getStoryContext(e),[n,a]=o.useState(r.globals);return o.useEffect(()=>{let i=l=>{a(l.globals)};return t.channel.on(Bs,i),()=>t.channel.off(Bs,i)},[t.channel]),[n]},DN=(e,t)=>{let r=SN(e,t);if(!r)throw new Error("No result when story was defined");return r},SN=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,i]=o.useState(r.args);o.useEffect(()=>{let u=c=>{c.storyId===n&&i(c.args)};return t.channel.on(_s,u),()=>t.channel.off(_s,u)},[n,t.channel]);let l=o.useCallback(u=>t.channel.emit(jP,{storyId:n,updatedArgs:u}),[n,t.channel]),s=o.useCallback(u=>t.channel.emit(NP,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,l,s]};function FN(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var RN=e=>{var A;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=o.useContext(vt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:i,component:l,subcomponents:s}=n,u=((A=a.docs)==null?void 0:A.controls)||{},c=e.include??u.include,p=e.exclude??u.exclude,m=e.sort??u.sort,[f,d,v]=DN(n,r),[g]=CN(n,r),w=Is(i,c,p);if(!(s&&Object.keys(s).length>0))return Object.keys(w).length>0||Object.keys(f).length>0?h.createElement(Ai,{rows:w,sort:m,args:f,globals:g,updateArgs:d,resetArgs:v}):null;let D=fN(l),x=Object.fromEntries(Object.entries(s).map(([b,y])=>[b,{rows:Is(FN(y,a),c,p),sort:m}])),S={[D]:{rows:w,sort:m},...x};return h.createElement(uN,{tabs:S,sort:m,args:f,globals:g,updateArgs:d,resetArgs:v})},{document:Pp}=Ye,Lp=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return h.createElement(ll,null,t);let n=e&&e.split("-");return h.createElement(vp,{language:n&&n[1]||"text",format:!1,code:t,...r})};function t0(e,t){e.channel.emit(zP,t)}var xi=vd.a,IN=({hash:e,children:t})=>{let r=o.useContext(vt);return h.createElement(xi,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);Pp.getElementById(a)&&t0(r,e)}},t)},jp=e=>{let{href:t,target:r,children:n,...a}=e,i=o.useContext(vt);return!t||r==="_blank"||/^https?:\/\//.test(t)?h.createElement(xi,{...e}):t.startsWith("#")?h.createElement(IN,{hash:t},n):h.createElement(xi,{href:t,onClick:l=>{l.button===0&&!l.altKey&&!l.ctrlKey&&!l.metaKey&&!l.shiftKey&&(l.preventDefault(),t0(i,l.currentTarget.getAttribute("href")))},target:r,...a},n)},Np=["h1","h2","h3","h4","h5","h6"],BN=Np.reduce((e,t)=>({...e,[t]:k(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),_N=k.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),ON=({as:e,id:t,children:r,...n})=>{let a=o.useContext(vt),i=BN[e],l=`#${t}`;return h.createElement(i,{id:t,...n},h.createElement(_N,{"aria-hidden":"true",href:l,tabIndex:-1,target:"_self",onClick:s=>{Pp.getElementById(t)&&t0(a,l)}},h.createElement(Kc,null)),r)},r0=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return h.createElement(ON,{as:t,id:r,...a},n);let i=t,{as:l,...s}=e;return h.createElement(i,{...Ae(s,t)})},zp=Np.reduce((e,t)=>({...e,[t]:r=>h.createElement(r0,{as:t,...r})}),{}),$N=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(SP`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' This is often caused by not wrapping the child in a template string. This is invalid: diff --git a/storybook/pr/2531/assets/Image.stories-4f60f041.js b/storybook/pr/2531/assets/Image.stories-4f60f041.js new file mode 100644 index 0000000000..b7374474b6 --- /dev/null +++ b/storybook/pr/2531/assets/Image.stories-4f60f041.js @@ -0,0 +1,31 @@ +import{c as w,j as c}from"./component-2bcf5de3.js";const l="Image",s=w(l),h={title:"UI/Image",component:s,argTypes:{src:{description:"The image to display as SVG string.",table:{type:{summary:"string"}}},alt:{description:"The alternative text for the image.",table:{type:{summary:"string"}}}}},A={render:t=>c(s,{...t}),args:{src:` + + + 400x300 + + `.trim(),alt:"Image"}},e={render:t=>c(s,{...t}),args:{src:` + + + + `.trim(),alt:"Image"}};var g,a,r;A.parameters={...A.parameters,docs:{...(g=A.parameters)==null?void 0:g.docs,source:{originalSource:`{ + render: props => , + args: { + src: \` + + + 400x300 + + \`.trim(), + alt: 'Image' + } +}`,...(r=(a=A.parameters)==null?void 0:a.docs)==null?void 0:r.source}}};var n,i,m,o,d;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{ + render: props => , + args: { + src: \` + + + + \`.trim(), + alt: 'Image' + } +}`,...(m=(i=e.parameters)==null?void 0:i.docs)==null?void 0:m.source},description:{story:"Image components only accept SVG images as strings, but you can use the\nSVG `image` tag to embed raster images, using `data:image/png;base64` or\n`data:image/jpeg;base64`.\n\nIt's not possible to load remote images.",...(d=(o=e.parameters)==null?void 0:o.docs)==null?void 0:d.description}}};const p=["Default","Embedded"];export{A as Default,e as Embedded,p as __namedExportsOrder,h as default}; diff --git a/storybook/pr/2531/assets/WithTooltip-KJL26V4Q-161ae313.js b/storybook/pr/2531/assets/WithTooltip-KJL26V4Q-e964e658.js similarity index 62% rename from storybook/pr/2531/assets/WithTooltip-KJL26V4Q-161ae313.js rename to storybook/pr/2531/assets/WithTooltip-KJL26V4Q-e964e658.js index 5bc9ab8fba..62f89be4ab 100644 --- a/storybook/pr/2531/assets/WithTooltip-KJL26V4Q-161ae313.js +++ b/storybook/pr/2531/assets/WithTooltip-KJL26V4Q-e964e658.js @@ -1 +1 @@ -import{W as a,W as T,b as e}from"./DocsRenderer-K4EAMTCU-69b7bfae.js";import"./iframe-21f17388.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import"./react-18-17fe38b0.js";import"./index-161398fe.js";export{a as WithToolTipState,T as WithTooltip,e as WithTooltipPure}; +import{W as a,W as T,b as e}from"./DocsRenderer-K4EAMTCU-737df029.js";import"./iframe-f92ba46f.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import"./react-18-17fe38b0.js";import"./index-161398fe.js";export{a as WithToolTipState,T as WithTooltip,e as WithTooltipPure}; diff --git a/storybook/pr/2531/assets/iframe-21f17388.js b/storybook/pr/2531/assets/iframe-21f17388.js deleted file mode 100644 index b5c939f6a6..0000000000 --- a/storybook/pr/2531/assets/iframe-21f17388.js +++ /dev/null @@ -1 +0,0 @@ -import"../sb-preview/runtime.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&c(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function c(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}})();const E="modulepreload",d=function(s,i){return new URL(s,i).href},u={},t=function(i,n,c){if(!n||n.length===0)return i();const e=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=d(r,c),r in u)return;u[r]=!0;const o=r.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!c)for(let m=e.length-1;m>=0;m--){const a=e[m];if(a.href===r&&(!o||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${l}`))return;const _=document.createElement("link");if(_.rel=o?"stylesheet":E,o||(_.as="script",_.crossOrigin=""),_.href=r,document.head.appendChild(_),o)return new Promise((m,a)=>{_.addEventListener("load",m),_.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>i()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},{createBrowserChannel:O}=__STORYBOOK_MODULE_CHANNELS__,{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,p=O({page:"preview"});f.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const R={"./src/jsx/components/Address.stories.tsx":async()=>t(()=>import("./Address.stories-7180b9ae.js"),["./Address.stories-7180b9ae.js","./component-2bcf5de3.js","./Address-cdc79eeb.js"],import.meta.url),"./src/jsx/components/Box.stories.tsx":async()=>t(()=>import("./Box.stories-9191d6d1.js"),["./Box.stories-9191d6d1.js","./component-2bcf5de3.js","./Box-21020479.js","./Heading-3ecdf840.js","./Text-40e51ee1.js","./Button-4359694e.js"],import.meta.url),"./src/jsx/components/Container.stories.tsx":async()=>t(()=>import("./Container.stories-37fb6a58.js"),["./Container.stories-37fb6a58.js","./component-2bcf5de3.js","./Box-21020479.js","./Footer-0ed44fe9.js","./Text-40e51ee1.js","./Button-4359694e.js"],import.meta.url),"./src/jsx/components/Copyable.stories.tsx":async()=>t(()=>import("./Copyable.stories-f6272e3b.js"),["./Copyable.stories-f6272e3b.js","./component-2bcf5de3.js"],import.meta.url),"./src/jsx/components/Divider.stories.tsx":async()=>t(()=>import("./Divider.stories-2e99db8f.js"),["./Divider.stories-2e99db8f.js","./component-2bcf5de3.js","./Box-21020479.js","./Text-40e51ee1.js"],import.meta.url),"./src/jsx/components/Footer.stories.tsx":async()=>t(()=>import("./Footer.stories-c101d64a.js"),["./Footer.stories-c101d64a.js","./component-2bcf5de3.js","./Footer-0ed44fe9.js","./Button-4359694e.js"],import.meta.url),"./src/jsx/components/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-dfb572fe.js"),["./Heading.stories-dfb572fe.js","./component-2bcf5de3.js","./Heading-3ecdf840.js"],import.meta.url),"./src/jsx/components/Link.stories.tsx":async()=>t(()=>import("./Link.stories-ad253105.js"),["./Link.stories-ad253105.js","./component-2bcf5de3.js","./Link-9243ebd4.js","./Italic-970c90c5.js","./Bold-9e86656d.js"],import.meta.url),"./src/jsx/components/Row.stories.tsx":async()=>t(()=>import("./Row.stories-c79e9ff2.js"),["./Row.stories-c79e9ff2.js","./component-2bcf5de3.js","./Address-cdc79eeb.js","./Text-40e51ee1.js"],import.meta.url),"./src/jsx/components/Text.stories.tsx":async()=>t(()=>import("./Text.stories-ca253766.js"),["./Text.stories-ca253766.js","./component-2bcf5de3.js","./Link-9243ebd4.js","./Text-40e51ee1.js","./Bold-9e86656d.js","./Italic-970c90c5.js"],import.meta.url),"./src/jsx/components/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-2e7b1289.js"),["./Tooltip.stories-2e7b1289.js","./component-2bcf5de3.js","./Text-40e51ee1.js","./Bold-9e86656d.js","./Italic-970c90c5.js"],import.meta.url),"./src/jsx/components/form/Button.stories.tsx":async()=>t(()=>import("./Button.stories-cb3f91b5.js"),["./Button.stories-cb3f91b5.js","./component-2bcf5de3.js","./Button-4359694e.js"],import.meta.url),"./src/jsx/components/form/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-b023f1bb.js"),["./Checkbox.stories-b023f1bb.js","./component-2bcf5de3.js"],import.meta.url),"./src/jsx/components/form/Dropdown.stories.tsx":async()=>t(()=>import("./Dropdown.stories-3d39e8c1.js"),["./Dropdown.stories-3d39e8c1.js","./component-2bcf5de3.js","./Option-a39ddf61.js","./Field-6d270c9c.js"],import.meta.url),"./src/jsx/components/form/Field.stories.tsx":async()=>t(()=>import("./Field.stories-4407f6a4.js"),["./Field.stories-4407f6a4.js","./component-2bcf5de3.js","./Button-4359694e.js","./Field-6d270c9c.js","./Input-44881b40.js"],import.meta.url),"./src/jsx/components/form/FileInput.stories.tsx":async()=>t(()=>import("./FileInput.stories-78aaeaad.js"),["./FileInput.stories-78aaeaad.js","./component-2bcf5de3.js","./Field-6d270c9c.js"],import.meta.url),"./src/jsx/components/form/Form.stories.tsx":async()=>t(()=>import("./Form.stories-6270e0c4.js"),["./Form.stories-6270e0c4.js","./component-2bcf5de3.js","./Heading-3ecdf840.js","./Text-40e51ee1.js","./Field-6d270c9c.js","./Input-44881b40.js"],import.meta.url),"./src/jsx/components/form/Input.stories.tsx":async()=>t(()=>import("./Input.stories-9e555399.js"),["./Input.stories-9e555399.js","./component-2bcf5de3.js","./Field-6d270c9c.js","./Input-44881b40.js"],import.meta.url),"./src/jsx/components/form/Option.stories.tsx":async()=>t(()=>import("./Option.stories-1ea8df35.js"),["./Option.stories-1ea8df35.js","./component-2bcf5de3.js","./Option-a39ddf61.js"],import.meta.url),"./src/jsx/components/formatting/Bold.stories.tsx":async()=>t(()=>import("./Bold.stories-8f3a5468.js"),["./Bold.stories-8f3a5468.js","./component-2bcf5de3.js","./Bold-9e86656d.js"],import.meta.url),"./src/jsx/components/formatting/Italic.stories.tsx":async()=>t(()=>import("./Italic.stories-ded74cc0.js"),["./Italic.stories-ded74cc0.js","./component-2bcf5de3.js","./Italic-970c90c5.js"],import.meta.url)};async function x(s){return R[s]()}const{composeConfigs:T,PreviewWeb:L,ClientApi:v}=__STORYBOOK_MODULE_PREVIEW_API__,P=async(s=[])=>{const i=await Promise.all([s.at(0)??t(()=>import("./preview-c90c1c0d.js"),[],import.meta.url),s.at(1)??t(()=>import("./preview-97c75eb8.js"),["./preview-97c75eb8.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./chunk-UYTCZKXQ-12b8a477.js","./index-b7949e8c.js"],import.meta.url),s.at(2)??t(()=>import("./globals-89f70e8d.js"),["./globals-89f70e8d.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./chunk-UYTCZKXQ-12b8a477.js","./index-161398fe.js"],import.meta.url),s.at(3)??t(()=>import("./decorators-62616608.js"),[],import.meta.url),s.at(4)??t(()=>import("./preview-0f9305dd.js"),[],import.meta.url)]);return T(i)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new L(x,P);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/storybook/pr/2531/assets/iframe-f92ba46f.js b/storybook/pr/2531/assets/iframe-f92ba46f.js new file mode 100644 index 0000000000..fb95cfb34d --- /dev/null +++ b/storybook/pr/2531/assets/iframe-f92ba46f.js @@ -0,0 +1 @@ +import"../sb-preview/runtime.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&c(o)}).observe(document,{childList:!0,subtree:!0});function n(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?r.credentials="include":e.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function c(e){if(e.ep)return;e.ep=!0;const r=n(e);fetch(e.href,r)}})();const E="modulepreload",d=function(s,i){return new URL(s,i).href},u={},t=function(i,n,c){if(!n||n.length===0)return i();const e=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=d(r,c),r in u)return;u[r]=!0;const o=r.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!c)for(let m=e.length-1;m>=0;m--){const a=e[m];if(a.href===r&&(!o||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${l}`))return;const _=document.createElement("link");if(_.rel=o?"stylesheet":E,o||(_.as="script",_.crossOrigin=""),_.href=r,document.head.appendChild(_),o)return new Promise((m,a)=>{_.addEventListener("load",m),_.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>i()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},{createBrowserChannel:O}=__STORYBOOK_MODULE_CHANNELS__,{addons:f}=__STORYBOOK_MODULE_PREVIEW_API__,p=O({page:"preview"});f.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const R={"./src/jsx/components/Address.stories.tsx":async()=>t(()=>import("./Address.stories-7180b9ae.js"),["./Address.stories-7180b9ae.js","./component-2bcf5de3.js","./Address-cdc79eeb.js"],import.meta.url),"./src/jsx/components/Box.stories.tsx":async()=>t(()=>import("./Box.stories-9191d6d1.js"),["./Box.stories-9191d6d1.js","./component-2bcf5de3.js","./Box-21020479.js","./Heading-3ecdf840.js","./Text-40e51ee1.js","./Button-4359694e.js"],import.meta.url),"./src/jsx/components/Card.stories.tsx":async()=>t(()=>import("./Card.stories-43e46574.js"),["./Card.stories-43e46574.js","./component-2bcf5de3.js"],import.meta.url),"./src/jsx/components/Container.stories.tsx":async()=>t(()=>import("./Container.stories-37fb6a58.js"),["./Container.stories-37fb6a58.js","./component-2bcf5de3.js","./Box-21020479.js","./Footer-0ed44fe9.js","./Text-40e51ee1.js","./Button-4359694e.js"],import.meta.url),"./src/jsx/components/Copyable.stories.tsx":async()=>t(()=>import("./Copyable.stories-f6272e3b.js"),["./Copyable.stories-f6272e3b.js","./component-2bcf5de3.js"],import.meta.url),"./src/jsx/components/Divider.stories.tsx":async()=>t(()=>import("./Divider.stories-2e99db8f.js"),["./Divider.stories-2e99db8f.js","./component-2bcf5de3.js","./Box-21020479.js","./Text-40e51ee1.js"],import.meta.url),"./src/jsx/components/Footer.stories.tsx":async()=>t(()=>import("./Footer.stories-c101d64a.js"),["./Footer.stories-c101d64a.js","./component-2bcf5de3.js","./Footer-0ed44fe9.js","./Button-4359694e.js"],import.meta.url),"./src/jsx/components/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-dfb572fe.js"),["./Heading.stories-dfb572fe.js","./component-2bcf5de3.js","./Heading-3ecdf840.js"],import.meta.url),"./src/jsx/components/Image.stories.tsx":async()=>t(()=>import("./Image.stories-4f60f041.js"),["./Image.stories-4f60f041.js","./component-2bcf5de3.js"],import.meta.url),"./src/jsx/components/Link.stories.tsx":async()=>t(()=>import("./Link.stories-ad253105.js"),["./Link.stories-ad253105.js","./component-2bcf5de3.js","./Link-9243ebd4.js","./Italic-970c90c5.js","./Bold-9e86656d.js"],import.meta.url),"./src/jsx/components/Row.stories.tsx":async()=>t(()=>import("./Row.stories-c79e9ff2.js"),["./Row.stories-c79e9ff2.js","./component-2bcf5de3.js","./Address-cdc79eeb.js","./Text-40e51ee1.js"],import.meta.url),"./src/jsx/components/Text.stories.tsx":async()=>t(()=>import("./Text.stories-ca253766.js"),["./Text.stories-ca253766.js","./component-2bcf5de3.js","./Link-9243ebd4.js","./Text-40e51ee1.js","./Bold-9e86656d.js","./Italic-970c90c5.js"],import.meta.url),"./src/jsx/components/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-2e7b1289.js"),["./Tooltip.stories-2e7b1289.js","./component-2bcf5de3.js","./Text-40e51ee1.js","./Bold-9e86656d.js","./Italic-970c90c5.js"],import.meta.url),"./src/jsx/components/form/Button.stories.tsx":async()=>t(()=>import("./Button.stories-cb3f91b5.js"),["./Button.stories-cb3f91b5.js","./component-2bcf5de3.js","./Button-4359694e.js"],import.meta.url),"./src/jsx/components/form/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-b023f1bb.js"),["./Checkbox.stories-b023f1bb.js","./component-2bcf5de3.js"],import.meta.url),"./src/jsx/components/form/Dropdown.stories.tsx":async()=>t(()=>import("./Dropdown.stories-3d39e8c1.js"),["./Dropdown.stories-3d39e8c1.js","./component-2bcf5de3.js","./Option-a39ddf61.js","./Field-6d270c9c.js"],import.meta.url),"./src/jsx/components/form/Field.stories.tsx":async()=>t(()=>import("./Field.stories-4407f6a4.js"),["./Field.stories-4407f6a4.js","./component-2bcf5de3.js","./Button-4359694e.js","./Field-6d270c9c.js","./Input-44881b40.js"],import.meta.url),"./src/jsx/components/form/FileInput.stories.tsx":async()=>t(()=>import("./FileInput.stories-78aaeaad.js"),["./FileInput.stories-78aaeaad.js","./component-2bcf5de3.js","./Field-6d270c9c.js"],import.meta.url),"./src/jsx/components/form/Form.stories.tsx":async()=>t(()=>import("./Form.stories-6270e0c4.js"),["./Form.stories-6270e0c4.js","./component-2bcf5de3.js","./Heading-3ecdf840.js","./Text-40e51ee1.js","./Field-6d270c9c.js","./Input-44881b40.js"],import.meta.url),"./src/jsx/components/form/Input.stories.tsx":async()=>t(()=>import("./Input.stories-9e555399.js"),["./Input.stories-9e555399.js","./component-2bcf5de3.js","./Field-6d270c9c.js","./Input-44881b40.js"],import.meta.url),"./src/jsx/components/form/Option.stories.tsx":async()=>t(()=>import("./Option.stories-1ea8df35.js"),["./Option.stories-1ea8df35.js","./component-2bcf5de3.js","./Option-a39ddf61.js"],import.meta.url),"./src/jsx/components/formatting/Bold.stories.tsx":async()=>t(()=>import("./Bold.stories-8f3a5468.js"),["./Bold.stories-8f3a5468.js","./component-2bcf5de3.js","./Bold-9e86656d.js"],import.meta.url),"./src/jsx/components/formatting/Italic.stories.tsx":async()=>t(()=>import("./Italic.stories-ded74cc0.js"),["./Italic.stories-ded74cc0.js","./component-2bcf5de3.js","./Italic-970c90c5.js"],import.meta.url)};async function x(s){return R[s]()}const{composeConfigs:T,PreviewWeb:L,ClientApi:v}=__STORYBOOK_MODULE_PREVIEW_API__,P=async(s=[])=>{const i=await Promise.all([s.at(0)??t(()=>import("./preview-6bcbbcf5.js"),[],import.meta.url),s.at(1)??t(()=>import("./preview-c9eca470.js"),["./preview-c9eca470.js","./react-18-17fe38b0.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./chunk-UYTCZKXQ-12b8a477.js","./index-b7949e8c.js"],import.meta.url),s.at(2)??t(()=>import("./globals-89f70e8d.js"),["./globals-89f70e8d.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./chunk-UYTCZKXQ-12b8a477.js","./index-161398fe.js"],import.meta.url),s.at(3)??t(()=>import("./decorators-62616608.js"),[],import.meta.url),s.at(4)??t(()=>import("./preview-0f9305dd.js"),[],import.meta.url)]);return T(i)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new L(x,P);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/storybook/pr/2531/assets/preview-c90c1c0d.js b/storybook/pr/2531/assets/preview-6bcbbcf5.js similarity index 72% rename from storybook/pr/2531/assets/preview-c90c1c0d.js rename to storybook/pr/2531/assets/preview-6bcbbcf5.js index 3ecbad804b..7467521a36 100644 --- a/storybook/pr/2531/assets/preview-c90c1c0d.js +++ b/storybook/pr/2531/assets/preview-6bcbbcf5.js @@ -1 +1 @@ -import{_ as a}from"./iframe-21f17388.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-K4EAMTCU-69b7bfae.js").then(r=>r.D),["./DocsRenderer-K4EAMTCU-69b7bfae.js","./iframe-21f17388.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; +import{_ as a}from"./iframe-f92ba46f.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-K4EAMTCU-737df029.js").then(r=>r.D),["./DocsRenderer-K4EAMTCU-737df029.js","./iframe-f92ba46f.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js","./react-18-17fe38b0.js","./index-161398fe.js"],import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; diff --git a/storybook/pr/2531/assets/preview-97c75eb8.js b/storybook/pr/2531/assets/preview-97c75eb8.js deleted file mode 100644 index a63d96e93e..0000000000 --- a/storybook/pr/2531/assets/preview-97c75eb8.js +++ /dev/null @@ -1,309 +0,0 @@ -import{r as g,u as ac,c as zo,g as Ws,a as H0,R as di}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import{_ as Ld,j as m,r as Nd,u as sc,a as U0}from"./react-18-17fe38b0.js";import{B as Cn,l as Wd,d as Hd}from"./chunk-UYTCZKXQ-12b8a477.js";import{c as q0}from"./index-b7949e8c.js";function G0(e){if(e.sheet)return e.sheet;for(var t=0;t0?Oe(gn,--Je):0,cn--,_e===10&&(cn=1,Mi--),_e}function rt(){return _e=Je2||eo(_e)>3?"":" "}function av(e,t){for(;--t&&rt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return mo(e,Ko()+(t<6&&At()==32&&rt()==32))}function rs(e){for(;rt();)switch(_e){case e:return Je;case 34:case 39:e!==34&&e!==39&&rs(_e);break;case 40:e===41&&rs(e);break;case 92:rt();break}return Je}function sv(e,t){for(;rt()&&e+_e!==47+10;)if(e+_e===42+42&&At()===47)break;return"/*"+mo(t,Je-1)+"*"+Ri(e===47?e:rt())}function lv(e){for(;!eo(At());)rt();return mo(e,Je)}function cv(e){return Yd(Yo("",null,null,null,[""],e=Xd(e),0,[0],e))}function Yo(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,v=0,b=1,y=1,k=1,w=0,C="",P=o,$=i,A=n,T=C;y;)switch(v=w,w=rt()){case 40:if(v!=108&&Oe(T,d-1)==58){ts(T+=ie(Xo(w),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:T+=Xo(w);break;case 9:case 10:case 13:case 32:T+=iv(v);break;case 92:T+=av(Ko()-1,7);continue;case 47:switch(At()){case 42:case 47:Io(uv(sv(rt(),Ko()),t,r),l);break;default:T+="/"}break;case 123*b:s[c++]=Pt(T)*k;case 125*b:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+u:k==-1&&(T=ie(T,/\f/g,"")),h>0&&Pt(T)-d&&Io(h>32?cc(T+";",n,r,d-1):cc(ie(T," ","")+";",n,r,d-2),l);break;case 59:T+=";";default:if(Io(A=lc(T,t,r,c,u,o,s,C,P=[],$=[],d),i),w===123)if(u===0)Yo(T,t,A,A,P,i,d,s,$);else switch(f===99&&Oe(T,3)===110?100:f){case 100:case 108:case 109:case 115:Yo(e,A,A,n&&Io(lc(e,A,A,0,0,o,s,C,o,P=[],d),$),o,$,d,s,n?P:$);break;default:Yo(T,A,A,A,[""],$,0,s,$)}}c=u=h=0,b=k=1,C=T="",d=a;break;case 58:d=1+Pt(T),h=v;default:if(b<1){if(w==123)--b;else if(w==125&&b++==0&&ov()==125)continue}switch(T+=Ri(w),w*b){case 38:k=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(Pt(T)-1)*k,k=1;break;case 64:At()===45&&(T+=Xo(rt())),f=At(),u=d=Pt(C=T+=lv(Ko())),w++;break;case 45:v===45&&Pt(T)==2&&(b=0)}}return i}function lc(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],h=qs(f),v=0,b=0,y=0;v0?f[k]+" "+w:ie(w,/&\f/g,f[k])))&&(l[y++]=C);return ji(e,t,r,o===0?Hs:s,l,c,u)}function uv(e,t,r){return ji(e,t,r,Ud,Ri(nv()),Qn(e,2,-2),0)}function cc(e,t,r,n){return ji(e,t,r,Us,Qn(e,0,n),Qn(e,n+1,-1),n)}function rn(e,t){for(var r="",n=qs(e),o=0;o6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+fi+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ts(e,"stretch")?Jd(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,Pt(e)-3-(~ts(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Oe(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Le+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return oe+e+Le+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Le+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Le+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Le+e+e}return e}var yv=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Us:t.return=Jd(t.value,t.length);break;case qd:return rn([_n(t,{value:ie(t.value,"@","@"+oe)})],o);case Hs:if(t.length)return rv(t.props,function(i){switch(tv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rn([_n(t,{props:[ie(i,/:(read-\w+)/,":"+fi+"$1")]})],o);case"::placeholder":return rn([_n(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),_n(t,{props:[ie(i,/:(plac\w+)/,":"+fi+"$1")]}),_n(t,{props:[ie(i,/:(plac\w+)/,Le+"input-$1")]})],o)}return""})}},xv=[yv],Sv=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var y=b.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||xv,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var y=b.getAttribute("data-emotion").split(" "),k=1;k=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jv={animationIterationCount:1,aspectRatio: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},zv=/[A-Z]|^ms/g,Iv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,af=function(t){return t.charCodeAt(1)===45},fc=function(t){return t!=null&&typeof t!="boolean"},ba=Zd(function(e){return af(e)?e:e.replace(zv,"-$&").toLowerCase()}),hc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Iv,function(n,o,i){return Tt={name:o,styles:i,next:Tt},o})}return jv[t]!==1&&!af(t)&&typeof r=="number"&&r!==0?r+"px":r};function to(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Tt={name:r.name,styles:r.styles,next:Tt},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Tt={name:n.name,styles:n.styles,next:Tt},n=n.next;var o=r.styles+";";return o}return Bv(e,t,r)}case"function":{if(e!==void 0){var i=Tt,a=r(e);return Tt=i,to(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function Bv(e,t,r){var n="";if(Array.isArray(r))for(var o=0;om.jsx(Hi,{styles:uf}),Nv=({scope:e=""})=>m.jsx(Hi,{styles:cf` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${uf} - `});function Wv(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function St(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=g.createContext(a);s.displayName=t;function l(){var c;const u=g.useContext(s);if(!u&&r){const d=new Error(i??Wv(n,o));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[s.Provider,l,s]}var[Hv,Uv]=St({strict:!1,name:"PortalManagerContext"});function df(e){const{children:t,zIndex:r}=e;return m.jsx(Hv,{value:{zIndex:r},children:t})}df.displayName="PortalManager";var _r=globalThis!=null&&globalThis.document?g.useLayoutEffect:g.useEffect,[ff,qv]=St({strict:!1,name:"PortalContext"}),Zs="chakra-portal",Gv=".chakra-portal",Kv=e=>m.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Xv=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=g.useState(null),i=g.useRef(null),[,a]=g.useState({});g.useEffect(()=>a({}),[]);const s=qv(),l=Uv();_r(()=>{if(!n)return;const u=n.ownerDocument,d=t?s??u.body:u.body;if(!d)return;i.current=u.createElement("div"),i.current.className=Zs,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const c=l!=null&&l.zIndex?m.jsx(Kv,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Nd.createPortal(m.jsx(ff,{value:i.current,children:c}),i.current):m.jsx("span",{ref:u=>{u&&o(u)}})},Yv=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),a=g.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Zs),l},[o]),[,s]=g.useState({});return _r(()=>s({}),[]),_r(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?Nd.createPortal(m.jsx(ff,{value:n?a:null,children:t}),a):null};function vo(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?m.jsx(Yv,{containerRef:r,...n}):m.jsx(Xv,{...n})}vo.className=Zs;vo.selector=Gv;vo.displayName="Portal";function Js(){const e=g.useContext(ro);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Qs=g.createContext({});Qs.displayName="ColorModeContext";function Ui(){const e=g.useContext(Qs);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Bo={light:"chakra-ui-light",dark:"chakra-ui-dark"};function Zv(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Bo.dark:Bo.light),document.body.classList.remove(n?Bo.light:Bo.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=a=>{n(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var Jv="chakra-ui-color-mode";function Qv(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var eg=Qv(Jv),mc=()=>{};function vc(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function hf(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=eg}=e,s=o==="dark"?"dark":"light",[l,c]=g.useState(()=>vc(a,s)),[u,d]=g.useState(()=>vc(a)),{getSystemTheme:f,setClassName:h,setDataset:v,addListener:b}=g.useMemo(()=>Zv({preventTransition:i}),[i]),y=o==="system"&&!l?u:l,k=g.useCallback(P=>{const $=P==="system"?f():P;c($),h($==="dark"),v($),a.set($)},[a,f,h,v]);_r(()=>{o==="system"&&d(f())},[]),g.useEffect(()=>{const P=a.get();if(P){k(P);return}if(o==="system"){k("system");return}k(s)},[a,s,o,k]);const w=g.useCallback(()=>{k(y==="dark"?"light":"dark")},[y,k]);g.useEffect(()=>{if(n)return b(k)},[n,b,k]);const C=g.useMemo(()=>({colorMode:t??y,toggleColorMode:t?mc:w,setColorMode:t?mc:k,forced:t!==void 0}),[y,w,k,t]);return m.jsx(Qs.Provider,{value:C,children:r})}hf.displayName="ColorModeProvider";function tg(){const e=Ui(),t=Js();return{...e,theme:t}}function rg(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[a]};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function ng(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.value};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function og(e,t,r){const n=Js();return ig(e,t,r)(n)}function ig(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const a=o.filter(Boolean),s=n.map((l,c)=>{var u,d;if(e==="breakpoints")return rg(i,l,(u=a[c])!=null?u:l);const f=`${e}.${l}`;return ng(i,f,(d=a[c])!=null?d:l)});return Array.isArray(t)?s:s[0]}}var de=(...e)=>e.filter(Boolean).join(" ");function xt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function nr(e,...t){return ag(e)?e(...t):e}var ag=e=>typeof e=="function",G=e=>e?"":void 0,ya=e=>e?!0:void 0;function Re(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function sg(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var hi={exports:{}};hi.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",v="[object GeneratorFunction]",b="[object Map]",y="[object Number]",k="[object Null]",w="[object Object]",C="[object Proxy]",P="[object RegExp]",$="[object Set]",A="[object String]",T="[object Undefined]",E="[object WeakMap]",M="[object ArrayBuffer]",R="[object DataView]",D="[object Float32Array]",X="[object Float64Array]",J="[object Int8Array]",N="[object Int16Array]",Y="[object Int32Array]",W="[object Uint8Array]",H="[object Uint8ClampedArray]",fe="[object Uint16Array]",ye="[object Uint32Array]",Fe=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,L={};L[D]=L[X]=L[J]=L[N]=L[Y]=L[W]=L[H]=L[fe]=L[ye]=!0,L[s]=L[l]=L[M]=L[u]=L[R]=L[d]=L[f]=L[h]=L[b]=L[y]=L[w]=L[P]=L[$]=L[A]=L[E]=!1;var Q=typeof zo=="object"&&zo&&zo.Object===Object&&zo,ce=typeof self=="object"&&self&&self.Object===Object&&self,ge=Q||ce||Function("return this")(),Ve=t&&!t.nodeType&&t,ke=Ve&&!0&&e&&!e.nodeType&&e,qe=ke&&ke.exports===Ve,Ge=qe&&Q.process,Ae=function(){try{var p=ke&&ke.require&&ke.require("util").types;return p||Ge&&Ge.binding&&Ge.binding("util")}catch{}}(),re=Ae&&Ae.isTypedArray;function Ee(p,x,_){switch(_.length){case 0:return p.call(x);case 1:return p.call(x,_[0]);case 2:return p.call(x,_[0],_[1]);case 3:return p.call(x,_[0],_[1],_[2])}return p.apply(x,_)}function fr(p,x){for(var _=-1,j=Array(p);++_-1}function e0(p,x){var _=this.__data__,j=Eo(_,p);return j<0?(++this.size,_.push([p,x])):_[j][1]=x,this}It.prototype.clear=Ym,It.prototype.delete=Zm,It.prototype.get=Jm,It.prototype.has=Qm,It.prototype.set=e0;function Vr(p){var x=-1,_=p==null?0:p.length;for(this.clear();++x<_;){var j=p[x];this.set(j[0],j[1])}}function t0(){this.size=0,this.__data__={hash:new vr,map:new(Xl||It),string:new vr}}function r0(p){var x=Mo(this,p).delete(p);return this.size-=x?1:0,x}function n0(p){return Mo(this,p).get(p)}function o0(p){return Mo(this,p).has(p)}function i0(p,x){var _=Mo(this,p),j=_.size;return _.set(p,x),this.size+=_.size==j?0:1,this}Vr.prototype.clear=t0,Vr.prototype.delete=r0,Vr.prototype.get=n0,Vr.prototype.has=o0,Vr.prototype.set=i0;function Lr(p){var x=this.__data__=new It(p);this.size=x.size}function a0(){this.__data__=new It,this.size=0}function s0(p){var x=this.__data__,_=x.delete(p);return this.size=x.size,_}function l0(p){return this.__data__.get(p)}function c0(p){return this.__data__.has(p)}function u0(p,x){var _=this.__data__;if(_ instanceof It){var j=_.__data__;if(!Xl||j.length1?_[Z-1]:void 0,pe=Z>2?_[2]:void 0;for(ue=p.length>3&&typeof ue=="function"?(Z--,ue):void 0,pe&&A0(_[0],_[1],pe)&&(ue=Z<3?void 0:ue,Z=1),x=Object(x);++j-1&&p%1==0&&p0){if(++x>=o)return arguments[0]}else x=0;return p.apply(void 0,arguments)}}function O0(p){if(p!=null){try{return hr.call(p)}catch{}try{return p+""}catch{}}return""}function jo(p,x){return p===x||p!==p&&x!==x}var fa=Yl(function(){return arguments}())?Yl:function(p){return wn(p)&<.call(p,"callee")&&!Vm.call(p,"callee")},ha=Array.isArray;function pa(p){return p!=null&&tc(p.length)&&!ma(p)}function D0(p){return wn(p)&&pa(p)}var ec=Nm||W0;function ma(p){if(!gr(p))return!1;var x=Ro(p);return x==h||x==v||x==c||x==C}function tc(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=a}function gr(p){var x=typeof p;return p!=null&&(x=="object"||x=="function")}function wn(p){return p!=null&&typeof p=="object"}function F0(p){if(!wn(p)||Ro(p)!=w)return!1;var x=ql(p);if(x===null)return!0;var _=lt.call(x,"constructor")&&x.constructor;return typeof _=="function"&&_ instanceof _&&hr.call(_)==To}var rc=re?V(re):m0;function V0(p){return C0(p,nc(p))}function nc(p){return pa(p)?d0(p,!0):v0(p)}var L0=_0(function(p,x,_,j){Zl(p,x,_,j)});function N0(p){return function(){return p}}function oc(p){return p}function W0(){return!1}e.exports=L0})(hi,hi.exports);var lg=hi.exports;const ht=Ws(lg);var cg=e=>/!(important)?$/.test(e),gc=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,ug=(e,t)=>r=>{const n=String(t),o=cg(n),i=gc(n),a=e?`${e}.${i}`:i;let s=xt(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=gc(s),o?`${s} !important`:s};function el(e){const{scale:t,transform:r,compose:n}=e;return(i,a)=>{var s;const l=ug(t,i)(a);let c=(s=r==null?void 0:r(l,a))!=null?s:l;return n&&(c=n(c,a)),c}}var Oo=(...e)=>t=>e.reduce((r,n)=>n(r),t);function ut(e,t){return r=>{const n={property:r,scale:e};return n.transform=el({scale:e,transform:t}),n}}var dg=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function fg(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:dg(t),transform:r?el({scale:r,compose:n}):n}}var pf=["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))"];function hg(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...pf].join(" ")}function pg(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...pf].join(" ")}var mg={"--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(" ")},vg={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,/*!*/ /*!*/)"};function gg(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var bg={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},ns={"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"},yg=new Set(Object.values(ns)),os=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),xg=e=>e.trim();function Sg(e,t){if(e==null||os.has(e))return e;if(!(is(e)||os.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=a.split(",").map(xg).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const u=l in ns?ns[l]:l;c.unshift(u);const d=c.map(f=>{if(yg.has(f))return f;const h=f.indexOf(" "),[v,b]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],y=is(b)?b:b&&b.split(" "),k=`colors.${v}`,w=k in t.__cssMap?t.__cssMap[k].varRef:v;return y?[w,...Array.isArray(y)?y:[y]].join(" "):w});return`${s}(${d.join(", ")})`}var is=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),wg=(e,t)=>Sg(e,t??{});function kg(e){return/^var\(--.+\)$/.test(e)}var Cg=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},kt=e=>t=>`${e}(${t})`,K={filter(e){return e!=="auto"?e:mg},backdropFilter(e){return e!=="auto"?e:vg},ring(e){return gg(K.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?hg():e==="auto-gpu"?pg():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Cg(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(kg(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:wg,blur:kt("blur"),opacity:kt("opacity"),brightness:kt("brightness"),contrast:kt("contrast"),dropShadow:kt("drop-shadow"),grayscale:kt("grayscale"),hueRotate:e=>kt("hue-rotate")(K.degree(e)),invert:kt("invert"),saturate:kt("saturate"),sepia:kt("sepia"),bgImage(e){return e==null||is(e)||os.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=bg[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},S={borderWidths:ut("borderWidths"),borderStyles:ut("borderStyles"),colors:ut("colors"),borders:ut("borders"),gradients:ut("gradients",K.gradient),radii:ut("radii",K.px),space:ut("space",Oo(K.vh,K.px)),spaceT:ut("space",Oo(K.vh,K.px)),degreeT(e){return{property:e,transform:K.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:el({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:ut("sizes",Oo(K.vh,K.px)),sizesT:ut("sizes",Oo(K.vh,K.fraction)),shadows:ut("shadows"),logical:fg,blur:ut("blur",K.blur)},Zo={background:S.colors("background"),backgroundColor:S.colors("backgroundColor"),backgroundImage:S.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:K.bgClip},bgSize:S.prop("backgroundSize"),bgPosition:S.prop("backgroundPosition"),bg:S.colors("background"),bgColor:S.colors("backgroundColor"),bgPos:S.prop("backgroundPosition"),bgRepeat:S.prop("backgroundRepeat"),bgAttachment:S.prop("backgroundAttachment"),bgGradient:S.gradients("backgroundImage"),bgClip:{transform:K.bgClip}};Object.assign(Zo,{bgImage:Zo.backgroundImage,bgImg:Zo.backgroundImage});var ne={border:S.borders("border"),borderWidth:S.borderWidths("borderWidth"),borderStyle:S.borderStyles("borderStyle"),borderColor:S.colors("borderColor"),borderRadius:S.radii("borderRadius"),borderTop:S.borders("borderTop"),borderBlockStart:S.borders("borderBlockStart"),borderTopLeftRadius:S.radii("borderTopLeftRadius"),borderStartStartRadius:S.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:S.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:S.radii("borderTopRightRadius"),borderStartEndRadius:S.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:S.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:S.borders("borderRight"),borderInlineEnd:S.borders("borderInlineEnd"),borderBottom:S.borders("borderBottom"),borderBlockEnd:S.borders("borderBlockEnd"),borderBottomLeftRadius:S.radii("borderBottomLeftRadius"),borderBottomRightRadius:S.radii("borderBottomRightRadius"),borderLeft:S.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:S.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:S.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:S.borders(["borderLeft","borderRight"]),borderInline:S.borders("borderInline"),borderY:S.borders(["borderTop","borderBottom"]),borderBlock:S.borders("borderBlock"),borderTopWidth:S.borderWidths("borderTopWidth"),borderBlockStartWidth:S.borderWidths("borderBlockStartWidth"),borderTopColor:S.colors("borderTopColor"),borderBlockStartColor:S.colors("borderBlockStartColor"),borderTopStyle:S.borderStyles("borderTopStyle"),borderBlockStartStyle:S.borderStyles("borderBlockStartStyle"),borderBottomWidth:S.borderWidths("borderBottomWidth"),borderBlockEndWidth:S.borderWidths("borderBlockEndWidth"),borderBottomColor:S.colors("borderBottomColor"),borderBlockEndColor:S.colors("borderBlockEndColor"),borderBottomStyle:S.borderStyles("borderBottomStyle"),borderBlockEndStyle:S.borderStyles("borderBlockEndStyle"),borderLeftWidth:S.borderWidths("borderLeftWidth"),borderInlineStartWidth:S.borderWidths("borderInlineStartWidth"),borderLeftColor:S.colors("borderLeftColor"),borderInlineStartColor:S.colors("borderInlineStartColor"),borderLeftStyle:S.borderStyles("borderLeftStyle"),borderInlineStartStyle:S.borderStyles("borderInlineStartStyle"),borderRightWidth:S.borderWidths("borderRightWidth"),borderInlineEndWidth:S.borderWidths("borderInlineEndWidth"),borderRightColor:S.colors("borderRightColor"),borderInlineEndColor:S.colors("borderInlineEndColor"),borderRightStyle:S.borderStyles("borderRightStyle"),borderInlineEndStyle:S.borderStyles("borderInlineEndStyle"),borderTopRadius:S.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:S.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:S.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:S.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ne,{rounded:ne.borderRadius,roundedTop:ne.borderTopRadius,roundedTopLeft:ne.borderTopLeftRadius,roundedTopRight:ne.borderTopRightRadius,roundedTopStart:ne.borderStartStartRadius,roundedTopEnd:ne.borderStartEndRadius,roundedBottom:ne.borderBottomRadius,roundedBottomLeft:ne.borderBottomLeftRadius,roundedBottomRight:ne.borderBottomRightRadius,roundedBottomStart:ne.borderEndStartRadius,roundedBottomEnd:ne.borderEndEndRadius,roundedLeft:ne.borderLeftRadius,roundedRight:ne.borderRightRadius,roundedStart:ne.borderInlineStartRadius,roundedEnd:ne.borderInlineEndRadius,borderStart:ne.borderInlineStart,borderEnd:ne.borderInlineEnd,borderTopStartRadius:ne.borderStartStartRadius,borderTopEndRadius:ne.borderStartEndRadius,borderBottomStartRadius:ne.borderEndStartRadius,borderBottomEndRadius:ne.borderEndEndRadius,borderStartRadius:ne.borderInlineStartRadius,borderEndRadius:ne.borderInlineEndRadius,borderStartWidth:ne.borderInlineStartWidth,borderEndWidth:ne.borderInlineEndWidth,borderStartColor:ne.borderInlineStartColor,borderEndColor:ne.borderInlineEndColor,borderStartStyle:ne.borderInlineStartStyle,borderEndStyle:ne.borderInlineEndStyle});var _g={color:S.colors("color"),textColor:S.colors("color"),fill:S.colors("fill"),stroke:S.colors("stroke")},as={boxShadow:S.shadows("boxShadow"),mixBlendMode:!0,blendMode:S.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:S.prop("backgroundBlendMode"),opacity:!0};Object.assign(as,{shadow:as.boxShadow});var Pg={filter:{transform:K.filter},blur:S.blur("--chakra-blur"),brightness:S.propT("--chakra-brightness",K.brightness),contrast:S.propT("--chakra-contrast",K.contrast),hueRotate:S.propT("--chakra-hue-rotate",K.hueRotate),invert:S.propT("--chakra-invert",K.invert),saturate:S.propT("--chakra-saturate",K.saturate),dropShadow:S.propT("--chakra-drop-shadow",K.dropShadow),backdropFilter:{transform:K.backdropFilter},backdropBlur:S.blur("--chakra-backdrop-blur"),backdropBrightness:S.propT("--chakra-backdrop-brightness",K.brightness),backdropContrast:S.propT("--chakra-backdrop-contrast",K.contrast),backdropHueRotate:S.propT("--chakra-backdrop-hue-rotate",K.hueRotate),backdropInvert:S.propT("--chakra-backdrop-invert",K.invert),backdropSaturate:S.propT("--chakra-backdrop-saturate",K.saturate)},pi={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:K.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:S.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:S.space("gap"),rowGap:S.space("rowGap"),columnGap:S.space("columnGap")};Object.assign(pi,{flexDir:pi.flexDirection});var mf={gridGap:S.space("gridGap"),gridColumnGap:S.space("gridColumnGap"),gridRowGap:S.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},Tg={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:K.outline},outlineOffset:!0,outlineColor:S.colors("outlineColor")},ft={width:S.sizesT("width"),inlineSize:S.sizesT("inlineSize"),height:S.sizes("height"),blockSize:S.sizes("blockSize"),boxSize:S.sizes(["width","height"]),minWidth:S.sizes("minWidth"),minInlineSize:S.sizes("minInlineSize"),minHeight:S.sizes("minHeight"),minBlockSize:S.sizes("minBlockSize"),maxWidth:S.sizes("maxWidth"),maxInlineSize:S.sizes("maxInlineSize"),maxHeight:S.sizes("maxHeight"),maxBlockSize:S.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:S.propT("float",K.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ft,{w:ft.width,h:ft.height,minW:ft.minWidth,maxW:ft.maxWidth,minH:ft.minHeight,maxH:ft.maxHeight,overscroll:ft.overscrollBehavior,overscrollX:ft.overscrollBehaviorX,overscrollY:ft.overscrollBehaviorY});var $g={listStyleType:!0,listStylePosition:!0,listStylePos:S.prop("listStylePosition"),listStyleImage:!0,listStyleImg:S.prop("listStyleImage")};function Ag(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},Rg=Eg(Ag),Mg={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},jg={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},xa=(e,t,r)=>{const n={},o=Rg(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},zg={srOnly:{transform(e){return e===!0?Mg:e==="focusable"?jg:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>xa(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>xa(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>xa(t,e,r)}},Fn={position:!0,pos:S.prop("position"),zIndex:S.prop("zIndex","zIndices"),inset:S.spaceT("inset"),insetX:S.spaceT(["left","right"]),insetInline:S.spaceT("insetInline"),insetY:S.spaceT(["top","bottom"]),insetBlock:S.spaceT("insetBlock"),top:S.spaceT("top"),insetBlockStart:S.spaceT("insetBlockStart"),bottom:S.spaceT("bottom"),insetBlockEnd:S.spaceT("insetBlockEnd"),left:S.spaceT("left"),insetInlineStart:S.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:S.spaceT("right"),insetInlineEnd:S.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Fn,{insetStart:Fn.insetInlineStart,insetEnd:Fn.insetInlineEnd});var Ig={ring:{transform:K.ring},ringColor:S.colors("--chakra-ring-color"),ringOffset:S.prop("--chakra-ring-offset-width"),ringOffsetColor:S.colors("--chakra-ring-offset-color"),ringInset:S.prop("--chakra-ring-inset")},he={margin:S.spaceT("margin"),marginTop:S.spaceT("marginTop"),marginBlockStart:S.spaceT("marginBlockStart"),marginRight:S.spaceT("marginRight"),marginInlineEnd:S.spaceT("marginInlineEnd"),marginBottom:S.spaceT("marginBottom"),marginBlockEnd:S.spaceT("marginBlockEnd"),marginLeft:S.spaceT("marginLeft"),marginInlineStart:S.spaceT("marginInlineStart"),marginX:S.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:S.spaceT("marginInline"),marginY:S.spaceT(["marginTop","marginBottom"]),marginBlock:S.spaceT("marginBlock"),padding:S.space("padding"),paddingTop:S.space("paddingTop"),paddingBlockStart:S.space("paddingBlockStart"),paddingRight:S.space("paddingRight"),paddingBottom:S.space("paddingBottom"),paddingBlockEnd:S.space("paddingBlockEnd"),paddingLeft:S.space("paddingLeft"),paddingInlineStart:S.space("paddingInlineStart"),paddingInlineEnd:S.space("paddingInlineEnd"),paddingX:S.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:S.space("paddingInline"),paddingY:S.space(["paddingTop","paddingBottom"]),paddingBlock:S.space("paddingBlock")};Object.assign(he,{m:he.margin,mt:he.marginTop,mr:he.marginRight,me:he.marginInlineEnd,marginEnd:he.marginInlineEnd,mb:he.marginBottom,ml:he.marginLeft,ms:he.marginInlineStart,marginStart:he.marginInlineStart,mx:he.marginX,my:he.marginY,p:he.padding,pt:he.paddingTop,py:he.paddingY,px:he.paddingX,pb:he.paddingBottom,pl:he.paddingLeft,ps:he.paddingInlineStart,paddingStart:he.paddingInlineStart,pr:he.paddingRight,pe:he.paddingInlineEnd,paddingEnd:he.paddingInlineEnd});var Bg={textDecorationColor:S.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:S.shadows("textShadow")},Og={clipPath:!0,transform:S.propT("transform",K.transform),transformOrigin:!0,translateX:S.spaceT("--chakra-translate-x"),translateY:S.spaceT("--chakra-translate-y"),skewX:S.degreeT("--chakra-skew-x"),skewY:S.degreeT("--chakra-skew-y"),scaleX:S.prop("--chakra-scale-x"),scaleY:S.prop("--chakra-scale-y"),scale:S.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:S.degreeT("--chakra-rotate")},Dg={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:S.prop("transitionDuration","transition.duration"),transitionProperty:S.prop("transitionProperty","transition.property"),transitionTimingFunction:S.prop("transitionTimingFunction","transition.easing")},Fg={fontFamily:S.prop("fontFamily","fonts"),fontSize:S.prop("fontSize","fontSizes",K.px),fontWeight:S.prop("fontWeight","fontWeights"),lineHeight:S.prop("lineHeight","lineHeights"),letterSpacing:S.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Vg={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:S.spaceT("scrollMargin"),scrollMarginTop:S.spaceT("scrollMarginTop"),scrollMarginBottom:S.spaceT("scrollMarginBottom"),scrollMarginLeft:S.spaceT("scrollMarginLeft"),scrollMarginRight:S.spaceT("scrollMarginRight"),scrollMarginX:S.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:S.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:S.spaceT("scrollPadding"),scrollPaddingTop:S.spaceT("scrollPaddingTop"),scrollPaddingBottom:S.spaceT("scrollPaddingBottom"),scrollPaddingLeft:S.spaceT("scrollPaddingLeft"),scrollPaddingRight:S.spaceT("scrollPaddingRight"),scrollPaddingX:S.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:S.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function vf(e){return xt(e)&&e.reference?e.reference:String(e)}var qi=(e,...t)=>t.map(vf).join(` ${e} `).replace(/calc/g,""),bc=(...e)=>`calc(${qi("+",...e)})`,yc=(...e)=>`calc(${qi("-",...e)})`,ss=(...e)=>`calc(${qi("*",...e)})`,xc=(...e)=>`calc(${qi("/",...e)})`,Sc=e=>{const t=vf(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ss(t,-1)},Sr=Object.assign(e=>({add:(...t)=>Sr(bc(e,...t)),subtract:(...t)=>Sr(yc(e,...t)),multiply:(...t)=>Sr(ss(e,...t)),divide:(...t)=>Sr(xc(e,...t)),negate:()=>Sr(Sc(e)),toString:()=>e.toString()}),{add:bc,subtract:yc,multiply:ss,divide:xc,negate:Sc});function Lg(e,t="-"){return e.replace(/\s+/g,t)}function Ng(e){const t=Lg(e.toString());return Hg(Wg(t))}function Wg(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Hg(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Ug(e,t=""){return[t,e].filter(Boolean).join("-")}function qg(e,t){return`var(${e}${t?`, ${t}`:""})`}function Gg(e,t=""){return Ng(`--${Ug(e,t)}`)}function I(e,t,r){const n=Gg(e,r);return{variable:n,reference:qg(n,t)}}function Kg(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=I(`${e}-${o}`,i);continue}r[n]=I(`${e}-${n}`)}return r}function Xg(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Yg(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function ls(e){if(e==null)return e;const{unitless:t}=Yg(e);return t||typeof e=="number"?`${e}px`:e}var gf=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,tl=e=>Object.fromEntries(Object.entries(e).sort(gf));function wc(e){const t=tl(e);return Object.assign(Object.values(t),t)}function Zg(e){const t=Object.keys(tl(e));return new Set(t)}function kc(e){var t;if(!e)return e;e=(t=ls(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Mn(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${ls(e)})`),t&&r.push("and",`(max-width: ${ls(t)})`),r.join(" ")}function Jg(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=wc(e),n=Object.entries(e).sort(gf).map(([a,s],l,c)=>{var u;let[,d]=(u=c[l+1])!=null?u:[];return d=parseFloat(d)>0?kc(d):void 0,{_minW:kc(s),breakpoint:a,minW:s,maxW:d,maxWQuery:Mn(null,d),minWQuery:Mn(s),minMaxQuery:Mn(s,d)}}),o=Zg(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:tl(e),asArray:wc(e),details:n,get(a){return n.find(s=>s.breakpoint===a)},media:[null,...r.map(a=>Mn(a)).slice(1)],toArrayValue(a){if(!xt(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var c;return(c=a[l])!=null?c:null});for(;Xg(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,c)=>{const u=i[c];return u!=null&&l!=null&&(s[u]=l),s},{})}}}var Be={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Zt=e=>bf(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Bt=e=>bf(t=>e(t,"~ &"),"[data-peer]",".peer"),bf=(e,...t)=>t.map(e).join(", "),Gi={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Zt(Be.hover),_peerHover:Bt(Be.hover),_groupFocus:Zt(Be.focus),_peerFocus:Bt(Be.focus),_groupFocusVisible:Zt(Be.focusVisible),_peerFocusVisible:Bt(Be.focusVisible),_groupActive:Zt(Be.active),_peerActive:Bt(Be.active),_groupDisabled:Zt(Be.disabled),_peerDisabled:Bt(Be.disabled),_groupInvalid:Zt(Be.invalid),_peerInvalid:Bt(Be.invalid),_groupChecked:Zt(Be.checked),_peerChecked:Bt(Be.checked),_groupFocusWithin:Zt(Be.focusWithin),_peerFocusWithin:Bt(Be.focusWithin),_peerPlaceholderShown:Bt(Be.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},yf=Object.keys(Gi);function Cc(e,t){return I(String(e).replace(/\./g,"-"),void 0,t)}function Qg(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:c}=Cc(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[h,...v]=f,b=`${h}.-${v.join(".")}`,y=Sr.negate(s),k=Sr.negate(c);n[b]={value:y,var:l,varRef:k}}r[l]=s,n[o]={value:s,var:l,varRef:c};continue}const u=f=>{const v=[String(o).split(".")[0],f].join(".");if(!e[v])return f;const{reference:y}=Cc(v,t==null?void 0:t.cssVarPrefix);return y},d=xt(s)?s:{default:s};r=ht(r,Object.entries(d).reduce((f,[h,v])=>{var b,y;if(!v)return f;const k=u(`${v}`);if(h==="default")return f[l]=k,f;const w=(y=(b=Gi)==null?void 0:b[h])!=null?y:h;return f[w]={[l]:k},f},{})),n[o]={value:c,var:l,varRef:c}}return{cssVars:r,cssMap:n}}function eb(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function tb(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function rb(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function _c(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){var l;if(rb(a)||Array.isArray(a)){const c={};for(const[u,d]of Object.entries(a)){const f=(l=o==null?void 0:o(u))!=null?l:u,h=[...s,f];if(n!=null&&n(a,h))return t(a,s);c[f]=i(d,h)}return c}return t(a,s)}return i(e)}var nb=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function ob(e){return tb(e,nb)}function ib(e){return e.semanticTokens}function ab(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var sb=e=>yf.includes(e)||e==="default";function lb({tokens:e,semanticTokens:t}){const r={};return _c(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),_c(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(sb)}),r}function cb(e){var t;const r=ab(e),n=ob(r),o=ib(r),i=lb({tokens:n,semanticTokens:o}),a=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=Qg(i,{cssVarPrefix:a});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:Jg(r.breakpoints)}),r}var rl=ht({},Zo,ne,_g,pi,ft,Pg,Ig,Tg,mf,zg,Fn,as,he,Vg,Fg,Bg,Og,$g,Dg),ub=Object.assign({},he,ft,pi,mf,Fn),db=Object.keys(ub),fb=[...Object.keys(rl),...yf],hb={...rl,...Gi},pb=e=>e in hb,mb=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=nr(e[a],t);if(s==null)continue;if(s=xt(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let c=0;ce.startsWith("--")&&typeof t=="string"&&!gb(t),yb=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var c,u;return(u=(c=e.__cssMap)==null?void 0:c[l])==null?void 0:u.varRef},i=l=>{var c;return(c=o(l))!=null?c:l},[a,s]=vb(t);return t=(n=(r=o(a))!=null?r:i(s))!=null?n:i(t),t};function xb(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,a=!1)=>{var s,l,c;const u=nr(i,n),d=mb(u)(n);let f={};for(let h in d){const v=d[h];let b=nr(v,n);h in r&&(h=r[h]),bb(h,b)&&(b=yb(n,b));let y=t[h];if(y===!0&&(y={property:h}),xt(b)){f[h]=(s=f[h])!=null?s:{},f[h]=ht({},f[h],o(b,!0));continue}let k=(c=(l=y==null?void 0:y.transform)==null?void 0:l.call(y,b,n,u))!=null?c:b;k=y!=null&&y.processResult?o(k,!0):k;const w=nr(y==null?void 0:y.property,n);if(!a&&(y!=null&&y.static)){const C=nr(y.static,n);f=ht({},f,C)}if(w&&Array.isArray(w)){for(const C of w)f[C]=k;continue}if(w){w==="&"&&xt(k)?f=ht({},f,k):f[w]=k;continue}if(xt(k)){f=ht({},f,k);continue}f[h]=k}return f};return o}var xf=e=>t=>xb({theme:t,pseudos:Gi,configs:rl})(e);function ee(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Sb(e,t){if(Array.isArray(e))return e;if(xt(e))return t(e);if(e!=null)return[e]}function wb(e,t){for(let r=t+1;r{ht(c,{[C]:f?w[C]:{[k]:w[C]}})});continue}if(!h){f?ht(c,w):c[k]=w;continue}c[k]=w}}return c}}function Cb(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,a=kb(i);return ht({},nr((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function _b(e,t,r){var n,o,i;return(i=(o=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:o.varRef)!=null?i:r}function ze(e){return eb(e,["styleConfig","size","variant","colorScheme"])}var Pb=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Tb(e){return xt(e)?Pb.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var $b={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},Ab={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Eb={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Rb={property:$b,easing:Ab,duration:Eb},Mb=Rb,jb={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},zb=jb,Ib={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Bb=Ib,Ob={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Db=Ob,Fb={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},Vb=Fb,Lb={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Nb=Lb,Wb={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},Hb=Wb,Ub={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},qb=Ub,Gb={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:{"3xs":"0.45rem","2xs":"0.625rem",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"}},Sf=Gb,wf={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"},Kb={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},Xb={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Yb={...wf,...Kb,container:Xb},kf=Yb,Zb={breakpoints:Db,zIndices:zb,radii:Nb,blur:qb,colors:Vb,...Sf,sizes:kf,shadows:Hb,space:wf,borders:Bb,transition:Mb},{defineMultiStyleConfig:Jb,definePartsStyle:jn}=ee(["stepper","step","title","description","indicator","separator","icon","number"]),Ot=I("stepper-indicator-size"),Gr=I("stepper-icon-size"),Kr=I("stepper-title-font-size"),zn=I("stepper-description-font-size"),Pn=I("stepper-accent-color"),Qb=jn(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Pn.variable]:`colors.${e}.500`,_dark:{[Pn.variable]:`colors.${e}.200`}},title:{fontSize:Kr.reference,fontWeight:"medium"},description:{fontSize:zn.reference,color:"chakra-subtle-text"},number:{fontSize:Kr.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Gr.reference,height:Gr.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ot.reference,height:Ot.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Pn.reference},"&[data-status=complete]":{bg:Pn.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Pn.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ot.reference} - 8px)`,top:`calc(${Ot.reference} + 4px)`,insetStart:`calc(${Ot.reference} / 2 - 1px)`}}})),ey=Jb({baseStyle:Qb,sizes:{xs:jn({stepper:{[Ot.variable]:"sizes.4",[Gr.variable]:"sizes.3",[Kr.variable]:"fontSizes.xs",[zn.variable]:"fontSizes.xs"}}),sm:jn({stepper:{[Ot.variable]:"sizes.6",[Gr.variable]:"sizes.4",[Kr.variable]:"fontSizes.sm",[zn.variable]:"fontSizes.xs"}}),md:jn({stepper:{[Ot.variable]:"sizes.8",[Gr.variable]:"sizes.5",[Kr.variable]:"fontSizes.md",[zn.variable]:"fontSizes.sm"}}),lg:jn({stepper:{[Ot.variable]:"sizes.10",[Gr.variable]:"sizes.6",[Kr.variable]:"fontSizes.lg",[zn.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function se(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...u){n();for(const d of u)t[d]=l(d);return se(e,t)}function i(...u){for(const d of u)d in t||(t[d]=l(d));return se(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(u){const h=`chakra-${(["container","root"].includes(u??"")?[e]:[e,u]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>u}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var ty=se("accordion").parts("root","container","button","panel").extend("icon"),ry=se("alert").parts("title","description","container").extend("icon","spinner"),ny=se("avatar").parts("label","badge","container").extend("excessLabel","group"),oy=se("breadcrumb").parts("link","item","container").extend("separator");se("button").parts();var Cf=se("checkbox").parts("control","icon","container").extend("label");se("progress").parts("track","filledTrack").extend("label");var iy=se("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ay=se("editable").parts("preview","input","textarea"),_f=se("form").parts("container","requiredIndicator","helperText"),Pf=se("formError").parts("text","icon"),Tf=se("input").parts("addon","field","element","group"),sy=se("list").parts("container","item","icon"),ly=se("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),cy=se("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),uy=se("numberinput").parts("root","field","stepperGroup","stepper");se("pininput").parts("field");var dy=se("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),fy=se("progress").parts("label","filledTrack","track"),hy=se("radio").parts("container","control","label"),$f=se("select").parts("field","icon"),py=se("slider").parts("container","track","thumb","filledTrack","mark"),my=se("stat").parts("container","label","helpText","number","icon"),Af=se("switch").parts("container","track","thumb","label"),vy=se("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),gy=se("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),by=se("tag").parts("container","label","closeButton"),yy=se("card").parts("container","header","body","footer");se("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function kr(e,t,r){return Math.min(Math.max(e,r),t)}class xy extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var In=xy;function nl(e){if(typeof e!="string")throw new In(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=$y.test(e)?ky(e):e;const r=Cy.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(no(s,2),16)),parseInt(no(a[3]||"f",2),16)/255]}const n=_y.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=Py.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=Ty.exec(t);if(i){const[a,s,l,c]=Array.from(i).slice(1).map(parseFloat);if(kr(0,100,s)!==s)throw new In(e);if(kr(0,100,l)!==l)throw new In(e);return[...Ay(a,s,l),Number.isNaN(c)?1:c]}throw new In(e)}function Sy(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Pc=e=>parseInt(e.replace(/_/g,""),36),wy="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=Pc(t.substring(0,3)),n=Pc(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function ky(e){const t=e.toLowerCase().trim(),r=wy[Sy(t)];if(!r)throw new In(e);return`#${r}`}const no=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Cy=new RegExp(`^#${no("([a-f0-9])",3)}([a-f0-9])?$`,"i"),_y=new RegExp(`^#${no("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Py=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${no(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Ty=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,$y=/^[a-z]+$/i,Tc=e=>Math.round(e*255),Ay=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(Tc);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,c=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);const u=n-i/2,d=s+u,f=l+u,h=c+u;return[d,f,h].map(Tc)};function Ey(e,t,r,n){return`rgba(${kr(0,255,e).toFixed()}, ${kr(0,255,t).toFixed()}, ${kr(0,255,r).toFixed()}, ${parseFloat(kr(0,1,n).toFixed(3))})`}function Ry(e,t){const[r,n,o,i]=nl(e);return Ey(r,n,o,i-t)}function My(e){const[t,r,n,o]=nl(e);let i=a=>{const s=kr(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function jy(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,He=(e,t,r)=>{const n=jy(e,`colors.${t}`,t);try{return My(n),n}catch{return r??"#000000"}},Iy=e=>{const[t,r,n]=nl(e);return(t*299+r*587+n*114)/1e3},By=e=>t=>{const r=He(t,e);return Iy(r)<128?"dark":"light"},Oy=e=>t=>By(e)(t)==="dark",un=(e,t)=>r=>{const n=He(r,e);return Ry(n,1-t)};function $c(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}var Dy=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function Fy(e){const t=Dy();return!e||zy(e)?t:e.string&&e.colors?Ly(e.string,e.colors):e.string&&!e.colors?Vy(e.string):e.colors&&!e.string?Ny(e.colors):t}function Vy(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function Ly(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function ol(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function Ef(e){return xt(e)&&e.reference?e.reference:String(e)}var Ki=(e,...t)=>t.map(Ef).join(` ${e} `).replace(/calc/g,""),Ac=(...e)=>`calc(${Ki("+",...e)})`,Ec=(...e)=>`calc(${Ki("-",...e)})`,cs=(...e)=>`calc(${Ki("*",...e)})`,Rc=(...e)=>`calc(${Ki("/",...e)})`,Mc=e=>{const t=Ef(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:cs(t,-1)},Dt=Object.assign(e=>({add:(...t)=>Dt(Ac(e,...t)),subtract:(...t)=>Dt(Ec(e,...t)),multiply:(...t)=>Dt(cs(e,...t)),divide:(...t)=>Dt(Rc(e,...t)),negate:()=>Dt(Mc(e)),toString:()=>e.toString()}),{add:Ac,subtract:Ec,multiply:cs,divide:Rc,negate:Mc});function Wy(e){return!Number.isInteger(parseFloat(e.toString()))}function Hy(e,t="-"){return e.replace(/\s+/g,t)}function Rf(e){const t=Hy(e.toString());return t.includes("\\.")?e:Wy(e)?t.replace(".","\\."):e}function Uy(e,t=""){return[t,Rf(e)].filter(Boolean).join("-")}function qy(e,t){return`var(${Rf(e)}${t?`, ${t}`:""})`}function Gy(e,t=""){return`--${Uy(e,t)}`}function $e(e,t){const r=Gy(e,t==null?void 0:t.prefix);return{variable:r,reference:qy(r,Ky(t==null?void 0:t.fallback))}}function Ky(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:Xy,definePartsStyle:Jo}=ee(Af.keys),Vn=$e("switch-track-width"),Pr=$e("switch-track-height"),Sa=$e("switch-track-diff"),Yy=Dt.subtract(Vn,Pr),us=$e("switch-thumb-x"),Tn=$e("switch-bg"),Zy=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Vn.reference],height:[Pr.reference],transitionProperty:"common",transitionDuration:"fast",[Tn.variable]:"colors.gray.300",_dark:{[Tn.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Tn.variable]:`colors.${t}.500`,_dark:{[Tn.variable]:`colors.${t}.200`}},bg:Tn.reference}},Jy={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Pr.reference],height:[Pr.reference],_checked:{transform:`translateX(${us.reference})`}},Qy=Jo(e=>({container:{[Sa.variable]:Yy,[us.variable]:Sa.reference,_rtl:{[us.variable]:Dt(Sa).negate().toString()}},track:Zy(e),thumb:Jy})),e1={sm:Jo({container:{[Vn.variable]:"1.375rem",[Pr.variable]:"sizes.3"}}),md:Jo({container:{[Vn.variable]:"1.875rem",[Pr.variable]:"sizes.4"}}),lg:Jo({container:{[Vn.variable]:"2.875rem",[Pr.variable]:"sizes.6"}})},t1=Xy({baseStyle:Qy,sizes:e1,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:r1,definePartsStyle:nn}=ee(vy.keys),n1=nn({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),mi={"&[data-is-numeric=true]":{textAlign:"end"}},o1=nn(e=>{const{colorScheme:t}=e;return{th:{color:B("gray.600","gray.400")(e),borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...mi},td:{borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...mi},caption:{color:B("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),i1=nn(e=>{const{colorScheme:t}=e;return{th:{color:B("gray.600","gray.400")(e),borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...mi},td:{borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...mi},caption:{color:B("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e)},td:{background:B(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),a1={simple:o1,striped:i1,unstyled:{}},s1={sm:nn({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:nn({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:nn({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},l1=r1({baseStyle:n1,variants:a1,sizes:s1,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Xe=I("tabs-color"),yt=I("tabs-bg"),Do=I("tabs-border-color"),{defineMultiStyleConfig:c1,definePartsStyle:Et}=ee(gy.keys),u1=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},d1=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},f1=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},h1={p:4},p1=Et(e=>({root:u1(e),tab:d1(e),tablist:f1(e),tabpanel:h1})),m1={sm:Et({tab:{py:1,px:4,fontSize:"sm"}}),md:Et({tab:{fontSize:"md",py:2,px:4}}),lg:Et({tab:{fontSize:"lg",py:3,px:4}})},v1=Et(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Xe.variable]:`colors.${t}.600`,_dark:{[Xe.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[yt.variable]:"colors.gray.200",_dark:{[yt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Xe.reference,bg:yt.reference}}}),g1=Et(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Do.variable]:"transparent",_selected:{[Xe.variable]:`colors.${t}.600`,[Do.variable]:"colors.white",_dark:{[Xe.variable]:`colors.${t}.300`,[Do.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Do.reference},color:Xe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),b1=Et(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[yt.variable]:"colors.gray.50",_dark:{[yt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[yt.variable]:"colors.white",[Xe.variable]:`colors.${t}.600`,_dark:{[yt.variable]:"colors.gray.800",[Xe.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Xe.reference,bg:yt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),y1=Et(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:He(r,`${t}.700`),bg:He(r,`${t}.100`)}}}}),x1=Et(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Xe.variable]:"colors.gray.600",_dark:{[Xe.variable]:"inherit"},_selected:{[Xe.variable]:"colors.white",[yt.variable]:`colors.${t}.600`,_dark:{[Xe.variable]:"colors.gray.800",[yt.variable]:`colors.${t}.300`}},color:Xe.reference,bg:yt.reference}}}),S1=Et({}),w1={line:v1,enclosed:g1,"enclosed-colored":b1,"soft-rounded":y1,"solid-rounded":x1,unstyled:S1},k1=c1({baseStyle:p1,sizes:m1,variants:w1,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Se=Kg("badge",["bg","color","shadow"]),C1={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Se.bg.reference,color:Se.color.reference,boxShadow:Se.shadow.reference},_1=e=>{const{colorScheme:t,theme:r}=e,n=un(`${t}.500`,.6)(r);return{[Se.bg.variable]:`colors.${t}.500`,[Se.color.variable]:"colors.white",_dark:{[Se.bg.variable]:n,[Se.color.variable]:"colors.whiteAlpha.800"}}},P1=e=>{const{colorScheme:t,theme:r}=e,n=un(`${t}.200`,.16)(r);return{[Se.bg.variable]:`colors.${t}.100`,[Se.color.variable]:`colors.${t}.800`,_dark:{[Se.bg.variable]:n,[Se.color.variable]:`colors.${t}.200`}}},T1=e=>{const{colorScheme:t,theme:r}=e,n=un(`${t}.200`,.8)(r);return{[Se.color.variable]:`colors.${t}.500`,_dark:{[Se.color.variable]:n},[Se.shadow.variable]:`inset 0 0 0px 1px ${Se.color.reference}`}},$1={solid:_1,subtle:P1,outline:T1},Ln={baseStyle:C1,variants:$1,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:A1,definePartsStyle:Tr}=ee(by.keys),jc=I("tag-bg"),zc=I("tag-color"),wa=I("tag-shadow"),Qo=I("tag-min-height"),ei=I("tag-min-width"),ti=I("tag-font-size"),ri=I("tag-padding-inline"),E1={fontWeight:"medium",lineHeight:1.2,outline:0,[zc.variable]:Se.color.reference,[jc.variable]:Se.bg.reference,[wa.variable]:Se.shadow.reference,color:zc.reference,bg:jc.reference,boxShadow:wa.reference,borderRadius:"md",minH:Qo.reference,minW:ei.reference,fontSize:ti.reference,px:ri.reference,_focusVisible:{[wa.variable]:"shadows.outline"}},R1={lineHeight:1.2,overflow:"visible"},M1={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},j1=Tr({container:E1,label:R1,closeButton:M1}),z1={sm:Tr({container:{[Qo.variable]:"sizes.5",[ei.variable]:"sizes.5",[ti.variable]:"fontSizes.xs",[ri.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Tr({container:{[Qo.variable]:"sizes.6",[ei.variable]:"sizes.6",[ti.variable]:"fontSizes.sm",[ri.variable]:"space.2"}}),lg:Tr({container:{[Qo.variable]:"sizes.8",[ei.variable]:"sizes.8",[ti.variable]:"fontSizes.md",[ri.variable]:"space.3"}})},I1={subtle:Tr(e=>{var t;return{container:(t=Ln.variants)==null?void 0:t.subtle(e)}}),solid:Tr(e=>{var t;return{container:(t=Ln.variants)==null?void 0:t.solid(e)}}),outline:Tr(e=>{var t;return{container:(t=Ln.variants)==null?void 0:t.outline(e)}})},B1=A1({variants:I1,baseStyle:j1,sizes:z1,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Ft,defineMultiStyleConfig:O1}=ee(Tf.keys),Xr=I("input-height"),Yr=I("input-font-size"),Zr=I("input-padding"),Jr=I("input-border-radius"),D1=Ft({addon:{height:Xr.reference,fontSize:Yr.reference,px:Zr.reference,borderRadius:Jr.reference},field:{width:"100%",height:Xr.reference,fontSize:Yr.reference,px:Zr.reference,borderRadius:Jr.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Jt={lg:{[Yr.variable]:"fontSizes.lg",[Zr.variable]:"space.4",[Jr.variable]:"radii.md",[Xr.variable]:"sizes.12"},md:{[Yr.variable]:"fontSizes.md",[Zr.variable]:"space.4",[Jr.variable]:"radii.md",[Xr.variable]:"sizes.10"},sm:{[Yr.variable]:"fontSizes.sm",[Zr.variable]:"space.3",[Jr.variable]:"radii.sm",[Xr.variable]:"sizes.8"},xs:{[Yr.variable]:"fontSizes.xs",[Zr.variable]:"space.2",[Jr.variable]:"radii.sm",[Xr.variable]:"sizes.6"}},F1={lg:Ft({field:Jt.lg,group:Jt.lg}),md:Ft({field:Jt.md,group:Jt.md}),sm:Ft({field:Jt.sm,group:Jt.sm}),xs:Ft({field:Jt.xs,group:Jt.xs})};function il(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||B("blue.500","blue.300")(e),errorBorderColor:r||B("red.500","red.300")(e)}}var V1=Ft(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=il(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:B("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,n),boxShadow:`0 0 0 1px ${He(t,n)}`},_focusVisible:{zIndex:1,borderColor:He(t,r),boxShadow:`0 0 0 1px ${He(t,r)}`}},addon:{border:"1px solid",borderColor:B("inherit","whiteAlpha.50")(e),bg:B("gray.100","whiteAlpha.300")(e)}}}),L1=Ft(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=il(e);return{field:{border:"2px solid",borderColor:"transparent",bg:B("gray.100","whiteAlpha.50")(e),_hover:{bg:B("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,n)},_focusVisible:{bg:"transparent",borderColor:He(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:B("gray.100","whiteAlpha.50")(e)}}}),N1=Ft(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=il(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,n),boxShadow:`0px 1px 0px 0px ${He(t,n)}`},_focusVisible:{borderColor:He(t,r),boxShadow:`0px 1px 0px 0px ${He(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),W1=Ft({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),H1={outline:V1,filled:L1,flushed:N1,unstyled:W1},ae=O1({baseStyle:D1,sizes:F1,variants:H1,defaultProps:{size:"md",variant:"outline"}}),Ic,U1={...(Ic=ae.baseStyle)==null?void 0:Ic.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Bc,Oc,q1={outline:e=>{var t,r;return(r=(t=ae.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=ae.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=ae.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(Oc=(Bc=ae.variants)==null?void 0:Bc.unstyled.field)!=null?Oc:{}},Dc,Fc,Vc,Lc,Nc,Wc,Hc,Uc,G1={xs:(Fc=(Dc=ae.sizes)==null?void 0:Dc.xs.field)!=null?Fc:{},sm:(Lc=(Vc=ae.sizes)==null?void 0:Vc.sm.field)!=null?Lc:{},md:(Wc=(Nc=ae.sizes)==null?void 0:Nc.md.field)!=null?Wc:{},lg:(Uc=(Hc=ae.sizes)==null?void 0:Hc.lg.field)!=null?Uc:{}},K1={baseStyle:U1,sizes:G1,variants:q1,defaultProps:{size:"md",variant:"outline"}},Fo=$e("tooltip-bg"),ka=$e("tooltip-fg"),X1=$e("popper-arrow-bg"),Y1={bg:Fo.reference,color:ka.reference,[Fo.variable]:"colors.gray.700",[ka.variable]:"colors.whiteAlpha.900",_dark:{[Fo.variable]:"colors.gray.300",[ka.variable]:"colors.gray.900"},[X1.variable]:Fo.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},Z1={baseStyle:Y1},{defineMultiStyleConfig:J1,definePartsStyle:Bn}=ee(fy.keys),Q1=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=B($c(),$c("1rem","rgba(0,0,0,0.1)"))(e),a=B(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( - to right, - transparent 0%, - ${He(r,a)} 50%, - transparent 100% - )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},ex={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},tx=e=>({bg:B("gray.100","whiteAlpha.300")(e)}),rx=e=>({transitionProperty:"common",transitionDuration:"slow",...Q1(e)}),nx=Bn(e=>({label:ex,filledTrack:rx(e),track:tx(e)})),ox={xs:Bn({track:{h:"1"}}),sm:Bn({track:{h:"2"}}),md:Bn({track:{h:"3"}}),lg:Bn({track:{h:"4"}})},ix=J1({sizes:ox,baseStyle:nx,defaultProps:{size:"md",colorScheme:"blue"}}),ax=e=>typeof e=="function";function Ue(e,...t){return ax(e)?e(...t):e}var{definePartsStyle:ni,defineMultiStyleConfig:sx}=ee(Cf.keys),Nn=I("checkbox-size"),lx=e=>{const{colorScheme:t}=e;return{w:Nn.reference,h:Nn.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:B(`${t}.500`,`${t}.200`)(e),borderColor:B(`${t}.500`,`${t}.200`)(e),color:B("white","gray.900")(e),_hover:{bg:B(`${t}.600`,`${t}.300`)(e),borderColor:B(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:B("gray.200","transparent")(e),bg:B("gray.200","whiteAlpha.300")(e),color:B("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:B(`${t}.500`,`${t}.200`)(e),borderColor:B(`${t}.500`,`${t}.200`)(e),color:B("white","gray.900")(e)},_disabled:{bg:B("gray.100","whiteAlpha.100")(e),borderColor:B("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:B("red.500","red.300")(e)}}},cx={_disabled:{cursor:"not-allowed"}},ux={userSelect:"none",_disabled:{opacity:.4}},dx={transitionProperty:"transform",transitionDuration:"normal"},fx=ni(e=>({icon:dx,container:cx,control:Ue(lx,e),label:ux})),hx={sm:ni({control:{[Nn.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ni({control:{[Nn.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ni({control:{[Nn.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},vi=sx({baseStyle:fx,sizes:hx,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:px,definePartsStyle:oi}=ee(hy.keys),mx=e=>{var t;const r=(t=Ue(vi.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},vx=oi(e=>{var t,r,n,o;return{label:(r=(t=vi).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=vi).baseStyle)==null?void 0:o.call(n,e).container,control:mx(e)}}),gx={md:oi({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:oi({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:oi({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},bx=px({baseStyle:vx,sizes:gx,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yx,definePartsStyle:xx}=ee($f.keys),Vo=I("select-bg"),qc,Sx={...(qc=ae.baseStyle)==null?void 0:qc.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Vo.reference,[Vo.variable]:"colors.white",_dark:{[Vo.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Vo.reference}},wx={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},kx=xx({field:Sx,icon:wx}),Lo={paddingInlineEnd:"8"},Gc,Kc,Xc,Yc,Zc,Jc,Qc,eu,Cx={lg:{...(Gc=ae.sizes)==null?void 0:Gc.lg,field:{...(Kc=ae.sizes)==null?void 0:Kc.lg.field,...Lo}},md:{...(Xc=ae.sizes)==null?void 0:Xc.md,field:{...(Yc=ae.sizes)==null?void 0:Yc.md.field,...Lo}},sm:{...(Zc=ae.sizes)==null?void 0:Zc.sm,field:{...(Jc=ae.sizes)==null?void 0:Jc.sm.field,...Lo}},xs:{...(Qc=ae.sizes)==null?void 0:Qc.xs,field:{...(eu=ae.sizes)==null?void 0:eu.xs.field,...Lo},icon:{insetEnd:"1"}}},_x=yx({baseStyle:kx,sizes:Cx,variants:ae.variants,defaultProps:ae.defaultProps}),Ca=I("skeleton-start-color"),_a=I("skeleton-end-color"),Px={[Ca.variable]:"colors.gray.100",[_a.variable]:"colors.gray.400",_dark:{[Ca.variable]:"colors.gray.800",[_a.variable]:"colors.gray.600"},background:Ca.reference,borderColor:_a.reference,opacity:.7,borderRadius:"sm"},Tx={baseStyle:Px},Pa=I("skip-link-bg"),$x={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Pa.variable]:"colors.white",_dark:{[Pa.variable]:"colors.gray.700"},bg:Pa.reference}},Ax={baseStyle:$x},{defineMultiStyleConfig:Ex,definePartsStyle:Xi}=ee(py.keys),oo=I("slider-thumb-size"),io=I("slider-track-size"),rr=I("slider-bg"),Rx=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...ol({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Mx=e=>({...ol({orientation:e.orientation,horizontal:{h:io.reference},vertical:{w:io.reference}}),overflow:"hidden",borderRadius:"sm",[rr.variable]:"colors.gray.200",_dark:{[rr.variable]:"colors.whiteAlpha.200"},_disabled:{[rr.variable]:"colors.gray.300",_dark:{[rr.variable]:"colors.whiteAlpha.300"}},bg:rr.reference}),jx=e=>{const{orientation:t}=e;return{...ol({orientation:t,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)"}}}),w:oo.reference,h:oo.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},zx=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[rr.variable]:`colors.${t}.500`,_dark:{[rr.variable]:`colors.${t}.200`},bg:rr.reference}},Ix=Xi(e=>({container:Rx(e),track:Mx(e),thumb:jx(e),filledTrack:zx(e)})),Bx=Xi({container:{[oo.variable]:"sizes.4",[io.variable]:"sizes.1"}}),Ox=Xi({container:{[oo.variable]:"sizes.3.5",[io.variable]:"sizes.1"}}),Dx=Xi({container:{[oo.variable]:"sizes.2.5",[io.variable]:"sizes.0.5"}}),Fx={lg:Bx,md:Ox,sm:Dx},Vx=Ex({baseStyle:Ix,sizes:Fx,defaultProps:{size:"md",colorScheme:"blue"}}),wr=$e("spinner-size"),Lx={width:[wr.reference],height:[wr.reference]},Nx={xs:{[wr.variable]:"sizes.3"},sm:{[wr.variable]:"sizes.4"},md:{[wr.variable]:"sizes.6"},lg:{[wr.variable]:"sizes.8"},xl:{[wr.variable]:"sizes.12"}},Wx={baseStyle:Lx,sizes:Nx,defaultProps:{size:"md"}},{defineMultiStyleConfig:Hx,definePartsStyle:Mf}=ee(my.keys),Ux={fontWeight:"medium"},qx={opacity:.8,marginBottom:"2"},Gx={verticalAlign:"baseline",fontWeight:"semibold"},Kx={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Xx=Mf({container:{},label:Ux,helpText:qx,number:Gx,icon:Kx}),Yx={md:Mf({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Zx=Hx({baseStyle:Xx,sizes:Yx,defaultProps:{size:"md"}}),Ta=I("kbd-bg"),Jx={[Ta.variable]:"colors.gray.100",_dark:{[Ta.variable]:"colors.whiteAlpha.100"},bg:Ta.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Qx={baseStyle:Jx},e2={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},t2={baseStyle:e2},{defineMultiStyleConfig:r2,definePartsStyle:n2}=ee(sy.keys),o2={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},i2=n2({icon:o2}),a2=r2({baseStyle:i2}),{defineMultiStyleConfig:s2,definePartsStyle:l2}=ee(ly.keys),_t=I("menu-bg"),$a=I("menu-shadow"),c2={[_t.variable]:"#fff",[$a.variable]:"shadows.sm",_dark:{[_t.variable]:"colors.gray.700",[$a.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:_t.reference,boxShadow:$a.reference},u2={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[_t.variable]:"colors.gray.100",_dark:{[_t.variable]:"colors.whiteAlpha.100"}},_active:{[_t.variable]:"colors.gray.200",_dark:{[_t.variable]:"colors.whiteAlpha.200"}},_expanded:{[_t.variable]:"colors.gray.100",_dark:{[_t.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:_t.reference},d2={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},f2={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},h2={opacity:.6},p2={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},m2={transitionProperty:"common",transitionDuration:"normal"},v2=l2({button:m2,list:c2,item:u2,groupTitle:d2,icon:f2,command:h2,divider:p2}),g2=s2({baseStyle:v2}),{defineMultiStyleConfig:b2,definePartsStyle:ds}=ee(cy.keys),Aa=I("modal-bg"),Ea=I("modal-shadow"),y2={bg:"blackAlpha.600",zIndex:"modal"},x2=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},S2=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Aa.variable]:"colors.white",[Ea.variable]:"shadows.lg",_dark:{[Aa.variable]:"colors.gray.700",[Ea.variable]:"shadows.dark-lg"},bg:Aa.reference,boxShadow:Ea.reference}},w2={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},k2={position:"absolute",top:"2",insetEnd:"3"},C2=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},_2={px:"6",py:"4"},P2=ds(e=>({overlay:y2,dialogContainer:Ue(x2,e),dialog:Ue(S2,e),header:w2,closeButton:k2,body:Ue(C2,e),footer:_2}));function gt(e){return ds(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var T2={xs:gt("xs"),sm:gt("sm"),md:gt("md"),lg:gt("lg"),xl:gt("xl"),"2xl":gt("2xl"),"3xl":gt("3xl"),"4xl":gt("4xl"),"5xl":gt("5xl"),"6xl":gt("6xl"),full:gt("full")},$2=b2({baseStyle:P2,sizes:T2,defaultProps:{size:"md"}}),{defineMultiStyleConfig:A2,definePartsStyle:jf}=ee(uy.keys),al=$e("number-input-stepper-width"),zf=$e("number-input-input-padding"),E2=Dt(al).add("0.5rem").toString(),Ra=$e("number-input-bg"),Ma=$e("number-input-color"),ja=$e("number-input-border-color"),R2={[al.variable]:"sizes.6",[zf.variable]:E2},M2=e=>{var t,r;return(r=(t=Ue(ae.baseStyle,e))==null?void 0:t.field)!=null?r:{}},j2={width:al.reference},z2={borderStart:"1px solid",borderStartColor:ja.reference,color:Ma.reference,bg:Ra.reference,[Ma.variable]:"colors.chakra-body-text",[ja.variable]:"colors.chakra-border-color",_dark:{[Ma.variable]:"colors.whiteAlpha.800",[ja.variable]:"colors.whiteAlpha.300"},_active:{[Ra.variable]:"colors.gray.200",_dark:{[Ra.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},I2=jf(e=>{var t;return{root:R2,field:(t=Ue(M2,e))!=null?t:{},stepperGroup:j2,stepper:z2}});function No(e){var t,r,n;const o=(t=ae.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=Sf.fontSizes[a];return jf({field:{...o.field,paddingInlineEnd:zf.reference,verticalAlign:"top"},stepper:{fontSize:Dt(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var B2={xs:No("xs"),sm:No("sm"),md:No("md"),lg:No("lg")},O2=A2({baseStyle:I2,sizes:B2,variants:ae.variants,defaultProps:ae.defaultProps}),tu,D2={...(tu=ae.baseStyle)==null?void 0:tu.field,textAlign:"center"},F2={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},ru,nu,V2={outline:e=>{var t,r,n;return(n=(r=Ue((t=ae.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=Ue((t=ae.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=Ue((t=ae.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(nu=(ru=ae.variants)==null?void 0:ru.unstyled.field)!=null?nu:{}},L2={baseStyle:D2,sizes:F2,variants:V2,defaultProps:ae.defaultProps},{defineMultiStyleConfig:N2,definePartsStyle:W2}=ee(dy.keys),Wo=$e("popper-bg"),H2=$e("popper-arrow-bg"),ou=$e("popper-arrow-shadow-color"),U2={zIndex:10},q2={[Wo.variable]:"colors.white",bg:Wo.reference,[H2.variable]:Wo.reference,[ou.variable]:"colors.gray.200",_dark:{[Wo.variable]:"colors.gray.700",[ou.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},G2={px:3,py:2,borderBottomWidth:"1px"},K2={px:3,py:2},X2={px:3,py:2,borderTopWidth:"1px"},Y2={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Z2=W2({popper:U2,content:q2,header:G2,body:K2,footer:X2,closeButton:Y2}),J2=N2({baseStyle:Z2}),{definePartsStyle:fs,defineMultiStyleConfig:Q2}=ee(iy.keys),za=I("drawer-bg"),Ia=I("drawer-box-shadow");function Nr(e){return fs(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var eS={bg:"blackAlpha.600",zIndex:"modal"},tS={display:"flex",zIndex:"modal",justifyContent:"center"},rS=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[za.variable]:"colors.white",[Ia.variable]:"shadows.lg",_dark:{[za.variable]:"colors.gray.700",[Ia.variable]:"shadows.dark-lg"},bg:za.reference,boxShadow:Ia.reference}},nS={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},oS={position:"absolute",top:"2",insetEnd:"3"},iS={px:"6",py:"2",flex:"1",overflow:"auto"},aS={px:"6",py:"4"},sS=fs(e=>({overlay:eS,dialogContainer:tS,dialog:Ue(rS,e),header:nS,closeButton:oS,body:iS,footer:aS})),lS={xs:Nr("xs"),sm:Nr("md"),md:Nr("lg"),lg:Nr("2xl"),xl:Nr("4xl"),full:Nr("full")},cS=Q2({baseStyle:sS,sizes:lS,defaultProps:{size:"xs"}}),{definePartsStyle:uS,defineMultiStyleConfig:dS}=ee(ay.keys),fS={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},hS={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},pS={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},mS=uS({preview:fS,input:hS,textarea:pS}),vS=dS({baseStyle:mS}),{definePartsStyle:gS,defineMultiStyleConfig:bS}=ee(_f.keys),on=I("form-control-color"),yS={marginStart:"1",[on.variable]:"colors.red.500",_dark:{[on.variable]:"colors.red.300"},color:on.reference},xS={mt:"2",[on.variable]:"colors.gray.600",_dark:{[on.variable]:"colors.whiteAlpha.600"},color:on.reference,lineHeight:"normal",fontSize:"sm"},SS=gS({container:{width:"100%",position:"relative"},requiredIndicator:yS,helperText:xS}),wS=bS({baseStyle:SS}),{definePartsStyle:kS,defineMultiStyleConfig:CS}=ee(Pf.keys),an=I("form-error-color"),_S={[an.variable]:"colors.red.500",_dark:{[an.variable]:"colors.red.300"},color:an.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},PS={marginEnd:"0.5em",[an.variable]:"colors.red.500",_dark:{[an.variable]:"colors.red.300"},color:an.reference},TS=kS({text:_S,icon:PS}),$S=CS({baseStyle:TS}),AS={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},ES={baseStyle:AS},RS={fontFamily:"heading",fontWeight:"bold"},MS={"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}},jS={baseStyle:RS,sizes:MS,defaultProps:{size:"xl"}},{defineMultiStyleConfig:zS,definePartsStyle:IS}=ee(oy.keys),Ba=I("breadcrumb-link-decor"),BS={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Ba.reference,[Ba.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Ba.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},OS=IS({link:BS}),DS=zS({baseStyle:OS}),FS={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},If=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:B("gray.800","whiteAlpha.900")(e),_hover:{bg:B("gray.100","whiteAlpha.200")(e)},_active:{bg:B("gray.200","whiteAlpha.300")(e)}};const n=un(`${t}.200`,.12)(r),o=un(`${t}.200`,.24)(r);return{color:B(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:B(`${t}.50`,n)(e)},_active:{bg:B(`${t}.100`,o)(e)}}},VS=e=>{const{colorScheme:t}=e,r=B("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Ue(If,e)}},LS={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},NS=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=B("gray.100","whiteAlpha.200")(e);return{bg:l,color:B("gray.800","whiteAlpha.900")(e),_hover:{bg:B("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:B("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=(t=LS[r])!=null?t:{},s=B(n,`${r}.200`)(e);return{bg:s,color:B(o,"gray.800")(e),_hover:{bg:B(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:B(a,`${r}.400`)(e)}}},WS=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:B(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:B(`${t}.700`,`${t}.500`)(e)}}},HS={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},US={ghost:If,outline:VS,solid:NS,link:WS,unstyled:HS},qS={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},GS={baseStyle:FS,variants:US,sizes:qS,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:$r,defineMultiStyleConfig:KS}=ee(yy.keys),gi=I("card-bg"),Lt=I("card-padding"),Bf=I("card-shadow"),ii=I("card-radius"),Of=I("card-border-width","0"),Df=I("card-border-color"),XS=$r({container:{[gi.variable]:"colors.chakra-body-bg",backgroundColor:gi.reference,boxShadow:Bf.reference,borderRadius:ii.reference,color:"chakra-body-text",borderWidth:Of.reference,borderColor:Df.reference},body:{padding:Lt.reference,flex:"1 1 0%"},header:{padding:Lt.reference},footer:{padding:Lt.reference}}),YS={sm:$r({container:{[ii.variable]:"radii.base",[Lt.variable]:"space.3"}}),md:$r({container:{[ii.variable]:"radii.md",[Lt.variable]:"space.5"}}),lg:$r({container:{[ii.variable]:"radii.xl",[Lt.variable]:"space.7"}})},ZS={elevated:$r({container:{[Bf.variable]:"shadows.base",_dark:{[gi.variable]:"colors.gray.700"}}}),outline:$r({container:{[Of.variable]:"1px",[Df.variable]:"colors.chakra-border-color"}}),filled:$r({container:{[gi.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Lt.variable]:0},header:{[Lt.variable]:0},footer:{[Lt.variable]:0}}},JS=KS({baseStyle:XS,variants:ZS,sizes:YS,defaultProps:{variant:"elevated",size:"md"}}),Wn=$e("close-button-size"),$n=$e("close-button-bg"),QS={w:[Wn.reference],h:[Wn.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[$n.variable]:"colors.blackAlpha.100",_dark:{[$n.variable]:"colors.whiteAlpha.100"}},_active:{[$n.variable]:"colors.blackAlpha.200",_dark:{[$n.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:$n.reference},ew={lg:{[Wn.variable]:"sizes.10",fontSize:"md"},md:{[Wn.variable]:"sizes.8",fontSize:"xs"},sm:{[Wn.variable]:"sizes.6",fontSize:"2xs"}},tw={baseStyle:QS,sizes:ew,defaultProps:{size:"md"}},{variants:rw,defaultProps:nw}=Ln,ow={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Se.bg.reference,color:Se.color.reference,boxShadow:Se.shadow.reference},iw={baseStyle:ow,variants:rw,defaultProps:nw},aw={w:"100%",mx:"auto",maxW:"prose",px:"4"},sw={baseStyle:aw},lw={opacity:.6,borderColor:"inherit"},cw={borderStyle:"solid"},uw={borderStyle:"dashed"},dw={solid:cw,dashed:uw},fw={baseStyle:lw,variants:dw,defaultProps:{variant:"solid"}},{definePartsStyle:hw,defineMultiStyleConfig:pw}=ee(ty.keys),mw={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},vw={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},gw={pt:"2",px:"4",pb:"5"},bw={fontSize:"1.25em"},yw=hw({container:mw,button:vw,panel:gw,icon:bw}),xw=pw({baseStyle:yw}),{definePartsStyle:go,defineMultiStyleConfig:Sw}=ee(ry.keys),nt=I("alert-fg"),Ht=I("alert-bg"),ww=go({container:{bg:Ht.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:nt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:nt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function sl(e){const{theme:t,colorScheme:r}=e,n=un(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var kw=go(e=>{const{colorScheme:t}=e,r=sl(e);return{container:{[nt.variable]:`colors.${t}.600`,[Ht.variable]:r.light,_dark:{[nt.variable]:`colors.${t}.200`,[Ht.variable]:r.dark}}}}),Cw=go(e=>{const{colorScheme:t}=e,r=sl(e);return{container:{[nt.variable]:`colors.${t}.600`,[Ht.variable]:r.light,_dark:{[nt.variable]:`colors.${t}.200`,[Ht.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:nt.reference}}}),_w=go(e=>{const{colorScheme:t}=e,r=sl(e);return{container:{[nt.variable]:`colors.${t}.600`,[Ht.variable]:r.light,_dark:{[nt.variable]:`colors.${t}.200`,[Ht.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:nt.reference}}}),Pw=go(e=>{const{colorScheme:t}=e;return{container:{[nt.variable]:"colors.white",[Ht.variable]:`colors.${t}.600`,_dark:{[nt.variable]:"colors.gray.900",[Ht.variable]:`colors.${t}.200`},color:nt.reference}}}),Tw={subtle:kw,"left-accent":Cw,"top-accent":_w,solid:Pw},$w=Sw({baseStyle:ww,variants:Tw,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Ff,defineMultiStyleConfig:Aw}=ee(ny.keys),sn=I("avatar-border-color"),Hn=I("avatar-bg"),ao=I("avatar-font-size"),dn=I("avatar-size"),Ew={borderRadius:"full",border:"0.2em solid",borderColor:sn.reference,[sn.variable]:"white",_dark:{[sn.variable]:"colors.gray.800"}},Rw={bg:Hn.reference,fontSize:ao.reference,width:dn.reference,height:dn.reference,lineHeight:"1",[Hn.variable]:"colors.gray.200",_dark:{[Hn.variable]:"colors.whiteAlpha.400"}},Mw=e=>{const{name:t,theme:r}=e,n=t?Fy({string:t}):"colors.gray.400",o=Oy(n)(r);let i="white";return o||(i="gray.800"),{bg:Hn.reference,fontSize:ao.reference,color:i,borderColor:sn.reference,verticalAlign:"top",width:dn.reference,height:dn.reference,"&:not([data-loaded])":{[Hn.variable]:n},[sn.variable]:"colors.white",_dark:{[sn.variable]:"colors.gray.800"}}},jw={fontSize:ao.reference,lineHeight:"1"},zw=Ff(e=>({badge:Ue(Ew,e),excessLabel:Ue(Rw,e),container:Ue(Mw,e),label:jw}));function Qt(e){const t=e!=="100%"?kf[e]:void 0;return Ff({container:{[dn.variable]:t??e,[ao.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[dn.variable]:t??e,[ao.variable]:`calc(${t??e} / 2.5)`}})}var Iw={"2xs":Qt(4),xs:Qt(6),sm:Qt(8),md:Qt(12),lg:Qt(16),xl:Qt(24),"2xl":Qt(32),full:Qt("100%")},Bw=Aw({baseStyle:zw,sizes:Iw,defaultProps:{size:"md"}}),Ow={Accordion:xw,Alert:$w,Avatar:Bw,Badge:Ln,Breadcrumb:DS,Button:GS,Checkbox:vi,CloseButton:tw,Code:iw,Container:sw,Divider:fw,Drawer:cS,Editable:vS,Form:wS,FormError:$S,FormLabel:ES,Heading:jS,Input:ae,Kbd:Qx,Link:t2,List:a2,Menu:g2,Modal:$2,NumberInput:O2,PinInput:L2,Popover:J2,Progress:ix,Radio:bx,Select:_x,Skeleton:Tx,SkipLink:Ax,Slider:Vx,Spinner:Wx,Stat:Zx,Switch:t1,Table:l1,Tabs:k1,Tag:B1,Textarea:K1,Tooltip:Z1,Card:JS,Stepper:ey},Dw={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Fw={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},Vw="ltr",Lw={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Vf={semanticTokens:Dw,direction:Vw,...Zb,components:Ow,styles:Fw,config:Lw};function On(e){return typeof e=="function"}function Nw(...e){return t=>e.reduce((r,n)=>n(r),t)}var Ww=e=>function(...r){let n=[...r],o=r[r.length-1];return Tb(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,Nw(...n.map(i=>a=>On(i)?i(a):Uw(a,i)))(o)},Hw=Ww(Vf);function Uw(...e){return ht({},...e,Lf)}function Lf(e,t,r,n){if((On(e)||On(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=On(e)?e(...o):e,a=On(t)?t(...o):t;return ht({},i,a,Lf)}}var iu=e=>e?"":void 0;function qw(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function Gw(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},Nf=Kw(Gw);function Wf(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var Hf=e=>Wf(e,t=>t!=null);function Xw(e){return typeof e=="function"}function Uf(e,...t){return Xw(e)?e(...t):e}var Yw=typeof Element<"u",Zw=typeof Map=="function",Jw=typeof Set=="function",Qw=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ai(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ai(e[n],t[n]))return!1;return!0}var i;if(Zw&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!ai(n.value[1],t.get(n.value[0])))return!1;return!0}if(Jw&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Qw&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(Yw&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!ai(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var e5=function(t,r){try{return ai(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const t5=Ws(e5);function qf(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:a}=tg(),s=e?Nf(i,`components.${e}`):void 0,l=n||s,c=ht({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},Hf(qw(o,["children"]))),u=g.useRef({});if(l){const f=Cb(l)(c);t5(u.current,f)||(u.current=f)}return u.current}function et(e,t={}){return qf(e,t)}function lr(e,t={}){return qf(e,t)}var r5=new Set([...fb,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),n5=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function o5(e){return n5.has(e)||!r5.has(e)}function i5(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function Gf(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var a5=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s5=Zd(function(e){return a5.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),l5=s5,c5=function(t){return t!=="theme"},au=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?l5:c5},su=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},u5=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return nf(r,n,o),H0(function(){return of(r,n,o)}),null},d5=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=su(t,r,n),l=s||au(o),c=!l("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;ht=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=Wf(a,(d,f)=>pb(f)),l=Uf(e,t),c=i5({},o,l,Hf(s),i),u=xf(c)(t.theme);return n?[u,n]:u};function Oa(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=o5);const o=p5({baseStyle:r}),i=h5(e,n)(o);return di.forwardRef(function(l,c){const{colorMode:u,forced:d}=Ui();return di.createElement(i,{ref:c,"data-theme":d?u:void 0,...l})})}function m5(){const e=new Map;return new Proxy(Oa,{apply(t,r,n){return Oa(...n)},get(t,r){return e.has(r)||e.set(r,Oa(r)),e.get(r)}})}var O=m5();function te(e){return g.forwardRef(e)}function v5(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=g.createContext(void 0);o.displayName=n;function i(){var a;const s=g.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function g5(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=g.useMemo(()=>cb(r),[r]);return m.jsxs(Fv,{theme:o,children:[m.jsx(b5,{root:t}),n]})}function b5({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return m.jsx(Hi,{styles:r=>({[t]:r.__cssVars})})}v5({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function y5(){const{colorMode:e}=Ui();return m.jsx(Hi,{styles:t=>{const r=Nf(t,"styles.global"),n=Uf(r,{theme:t,colorMode:e});return n?xf(n)(t):void 0}})}var Kf=g.createContext({getDocument(){return document},getWindow(){return window}});Kf.displayName="EnvironmentContext";function Xf(e){const{children:t,environment:r,disabled:n}=e,o=g.useRef(null),i=g.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),a=!n||!r;return m.jsxs(Kf.Provider,{value:i,children:[t,a&&m.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Xf.displayName="EnvironmentProvider";var x5=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=m.jsx(Xf,{environment:s,disabled:c,children:t});return m.jsx(g5,{theme:a,cssVarsRoot:l,children:m.jsxs(hf,{colorModeManager:r,options:a.config,children:[i?m.jsx(Nv,{scope:o}):m.jsx(Lv,{}),!u&&m.jsx(y5,{}),n?m.jsx(df,{zIndex:n,children:d}):d]})})},S5=(e,t)=>e.find(r=>r.id===t);function cu(e,t){const r=Yf(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function Yf(e,t){for(const[r,n]of Object.entries(e))if(S5(n,t))return r}function w5(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function k5(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:i,left:a}}function Ar(e,t=[]){const r=g.useRef(e);return g.useEffect(()=>{r.current=e}),g.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function C5(e,t){const r=Ar(e);g.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function hs(e,t){const r=g.useRef(!1),n=g.useRef(!1);g.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const Zf=g.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Yi=g.createContext({}),bo=g.createContext(null),Zi=typeof document<"u",yi=Zi?g.useLayoutEffect:g.useEffect,Jf=g.createContext({strict:!1});function _5(e,t,r,n){const{visualElement:o}=g.useContext(Yi),i=g.useContext(Jf),a=g.useContext(bo),s=g.useContext(Zf).reducedMotion,l=g.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;return g.useInsertionEffect(()=>{c&&c.update(r,a)}),yi(()=>{c&&c.render()}),g.useEffect(()=>{c&&c.updateFeatures()}),(window.HandoffAppearAnimations?yi:g.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),c}function Qr(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function P5(e,t,r){return g.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Qr(r)&&(r.current=n))},[t])}function so(e){return typeof e=="string"||Array.isArray(e)}function Ji(e){return typeof e=="object"&&typeof e.start=="function"}const ll=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cl=["initial",...ll];function Qi(e){return Ji(e.animate)||cl.some(t=>so(e[t]))}function Qf(e){return!!(Qi(e)||e.variants)}function T5(e,t){if(Qi(e)){const{initial:r,animate:n}=e;return{initial:r===!1||so(r)?r:void 0,animate:so(n)?n:void 0}}return e.inherit!==!1?t:{}}function $5(e){const{initial:t,animate:r}=T5(e,g.useContext(Yi));return g.useMemo(()=>({initial:t,animate:r}),[uu(t),uu(r)])}function uu(e){return Array.isArray(e)?e.join(" "):e}const du={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lo={};for(const e in du)lo[e]={isEnabled:t=>du[e].some(r=>!!t[r])};function A5(e){for(const t in e)lo[t]={...lo[t],...e[t]}}const ul=g.createContext({}),eh=g.createContext({}),E5=Symbol.for("motionComponentSymbol");function R5({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&A5(e);function i(s,l){let c;const u={...g.useContext(Zf),...s,layoutId:M5(s)},{isStatic:d}=u,f=$5(s),h=n(s,d);if(!d&&Zi){f.visualElement=_5(o,h,u,t);const v=g.useContext(eh),b=g.useContext(Jf).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,b,e,v))}return g.createElement(Yi.Provider,{value:f},c&&f.visualElement?g.createElement(c,{visualElement:f.visualElement,...u}):null,r(o,s,P5(h,f.visualElement,l),h,d,f.visualElement))}const a=g.forwardRef(i);return a[E5]=o,a}function M5({layoutId:e}){const t=g.useContext(ul).id;return t&&e!==void 0?t+"-"+e:e}function j5(e){function t(n,o={}){return R5(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const z5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dl(e){return typeof e!="string"||e.includes("-")?!1:!!(z5.indexOf(e)>-1||/[A-Z]/.test(e))}const xi={};function I5(e){Object.assign(xi,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Br=new Set(yo);function th(e,{layout:t,layoutId:r}){return Br.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!xi[e]||e==="opacity")}const Qe=e=>!!(e&&e.getVelocity),B5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},O5=yo.length;function D5(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),nh=rh("--"),ps=rh("var(--"),F5=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,V5=(e,t)=>t&&typeof e=="number"?t.transform(e):e,jr=(e,t,r)=>Math.min(Math.max(r,e),t),Or={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Un={...Or,transform:e=>jr(0,1,e)},Ho={...Or,default:1},qn=e=>Math.round(e*1e5)/1e5,ea=/(-)?([\d]*\.?[\d])+/g,oh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,L5=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function xo(e){return typeof e=="string"}const So=e=>({test:t=>xo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),er=So("deg"),Rt=So("%"),F=So("px"),N5=So("vh"),W5=So("vw"),fu={...Rt,parse:e=>Rt.parse(e)/100,transform:e=>Rt.transform(e*100)},hu={...Or,transform:Math.round},ih={borderWidth:F,borderTopWidth:F,borderRightWidth:F,borderBottomWidth:F,borderLeftWidth:F,borderRadius:F,radius:F,borderTopLeftRadius:F,borderTopRightRadius:F,borderBottomRightRadius:F,borderBottomLeftRadius:F,width:F,maxWidth:F,height:F,maxHeight:F,size:F,top:F,right:F,bottom:F,left:F,padding:F,paddingTop:F,paddingRight:F,paddingBottom:F,paddingLeft:F,margin:F,marginTop:F,marginRight:F,marginBottom:F,marginLeft:F,rotate:er,rotateX:er,rotateY:er,rotateZ:er,scale:Ho,scaleX:Ho,scaleY:Ho,scaleZ:Ho,skew:er,skewX:er,skewY:er,distance:F,translateX:F,translateY:F,translateZ:F,x:F,y:F,z:F,perspective:F,transformPerspective:F,opacity:Un,originX:fu,originY:fu,originZ:F,zIndex:hu,fillOpacity:Un,strokeOpacity:Un,numOctaves:hu};function fl(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const d in t){const f=t[d];if(nh(d)){i[d]=f;continue}const h=ih[d],v=V5(f,h);if(Br.has(d)){if(l=!0,a[d]=v,!u)continue;f!==(h.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,s[d]=v):o[d]=v}if(t.transform||(l||n?o.transform=D5(e.transform,r,u,n):o.transform&&(o.transform="none")),c){const{originX:d="50%",originY:f="50%",originZ:h=0}=s;o.transformOrigin=`${d} ${f} ${h}`}}const hl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ah(e,t,r){for(const n in t)!Qe(t[n])&&!th(n,r)&&(e[n]=t[n])}function H5({transformTemplate:e},t,r){return g.useMemo(()=>{const n=hl();return fl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function U5(e,t,r){const n=e.style||{},o={};return ah(o,n,e),Object.assign(o,H5(e,t,r)),e.transformValues?e.transformValues(o):o}function q5(e,t,r){const n={},o=U5(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const G5=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Si(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||G5.has(e)}let sh=e=>!Si(e);function K5(e){e&&(sh=t=>t.startsWith("on")?!Si(t):e(t))}try{K5(require("@emotion/is-prop-valid").default)}catch{}function X5(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(sh(o)||r===!0&&Si(o)||!t&&!Si(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function pu(e,t,r){return typeof e=="string"?e:F.transform(t+r*e)}function Y5(e,t,r){const n=pu(t,e.x,e.width),o=pu(r,e.y,e.height);return`${n} ${o}`}const Z5={offset:"stroke-dashoffset",array:"stroke-dasharray"},J5={offset:"strokeDashoffset",array:"strokeDasharray"};function Q5(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?Z5:J5;e[i.offset]=F.transform(-n);const a=F.transform(t),s=F.transform(r);e[i.array]=`${a} ${s}`}function pl(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(fl(e,c,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:v,dimensions:b}=e;h.transform&&(b&&(v.transform=h.transform),delete h.transform),b&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=Y5(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&Q5(h,a,s,l,!1)}const lh=()=>({...hl(),attrs:{}}),ml=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ek(e,t,r,n){const o=g.useMemo(()=>{const i=lh();return pl(i,t,{enableHardwareAcceleration:!1},ml(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ah(i,e.style,e),o.style={...i,...o.style}}return o}function tk(e=!1){return(r,n,o,{latestValues:i},a)=>{const l=(dl(r)?ek:q5)(n,i,a,r),u={...X5(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=g.useMemo(()=>Qe(d)?d.get():d,[d]);return g.createElement(r,{...u,children:f})}}const vl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ch(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const uh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function dh(e,t,r,n){ch(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(uh.has(o)?o:vl(o),t.attrs[o])}function gl(e,t){const{style:r}=e,n={};for(const o in r)(Qe(r[o])||t.style&&Qe(t.style[o])||th(o,e))&&(n[o]=r[o]);return n}function fh(e,t){const r=gl(e,t);for(const n in e)if(Qe(e[n])||Qe(t[n])){const o=yo.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function bl(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function hh(e){const t=g.useRef(null);return t.current===null&&(t.current=e()),t.current}const wi=e=>Array.isArray(e),rk=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),nk=e=>wi(e)?e[e.length-1]||0:e;function si(e){const t=Qe(e)?e.get():e;return rk(t)?t.toValue():t}function ok({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:ik(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const ph=e=>(t,r)=>{const n=g.useContext(Yi),o=g.useContext(bo),i=()=>ok(e,t,n,o);return r?i():hh(i)};function ik(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=si(i[f]);let{initial:a,animate:s}=e;const l=Qi(e),c=Qf(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;const d=u?s:a;return d&&typeof d!="boolean"&&!Ji(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const v=bl(e,h);if(!v)return;const{transitionEnd:b,transition:y,...k}=v;for(const w in k){let C=k[w];if(Array.isArray(C)){const P=u?C.length-1:0;C=C[P]}C!==null&&(o[w]=C)}for(const w in b)o[w]=b[w]}),o}const ak={useVisualState:ph({scrapeMotionValuesFromProps:fh,createRenderState:lh,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}pl(r,n,{enableHardwareAcceleration:!1},ml(t.tagName),e.transformTemplate),dh(t,r)}})},sk={useVisualState:ph({scrapeMotionValuesFromProps:gl,createRenderState:hl})};function lk(e,{forwardMotionProps:t=!1},r,n){return{...dl(e)?ak:sk,preloadedFeatures:r,useRender:tk(t),createVisualElement:n,Component:e}}function Vt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const mh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ta(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const ck=e=>t=>mh(t)&&e(t,ta(t));function Nt(e,t,r,n){return Vt(e,t,ck(r),n)}const uk=(e,t)=>r=>t(e(r)),or=(...e)=>e.reduce(uk);function vh(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const mu=vh("dragHorizontal"),vu=vh("dragVertical");function gh(e){let t=!1;if(e==="y")t=vu();else if(e==="x")t=mu();else{const r=mu(),n=vu();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function bh(){const e=gh(!0);return e?(e(),!1):!0}class cr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function dk(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const d=u&&o,f=d?t:r;return c&&a.add(l),f.indexOf(l)===-1&&(f.push(l),d&&o&&(n=t.length)),l},cancel:l=>{const c=r.indexOf(l);c!==-1&&r.splice(c,1),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let c=0;c(e[t]=dk(()=>co=!0),e),{}),hk=e=>ln[e].process(Me),yh=e=>{co=!1,Me.delta=ms?1e3/60:Math.max(Math.min(e-Me.timestamp,fk),1),Me.timestamp=e,Me.isProcessing=!0,ra.forEach(hk),Me.isProcessing=!1,co&&(ms=!1,requestAnimationFrame(yh))},pk=()=>{co=!0,ms=!0,Me.isProcessing||requestAnimationFrame(yh)},ve=ra.reduce((e,t)=>{const r=ln[t];return e[t]=(n,o=!1,i=!1)=>(co||pk(),r.schedule(n,o,i)),e},{});function Ut(e){ra.forEach(t=>ln[t].cancel(e))}function gu(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.type==="touch"||bh())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&ve.update(()=>s[n](i,a))};return Nt(e.current,r,o,{passive:!e.getProps()[n]})}class mk extends cr{mount(){this.unmount=or(gu(this.node,!0),gu(this.node,!1))}unmount(){}}class vk extends cr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=or(Vt(this.node.current,"focus",()=>this.onFocus()),Vt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const xh=(e,t)=>t?e===t?!0:xh(e,t.parentElement):!1,Pe=e=>e;function Da(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,ta(r))}class gk extends cr{constructor(){super(...arguments),this.removeStartListeners=Pe,this.removeEndListeners=Pe,this.removeAccessibleListeners=Pe,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Nt(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();ve.update(()=>{xh(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)})},{passive:!(n.onTap||n.onPointerUp)}),a=Nt(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=or(i,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Da("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&ve.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Vt(this.node.current,"keyup",a),Da("down",(s,l)=>{this.startPress(s,l)})},r=Vt(this.node.current,"keydown",t),n=()=>{this.isPressing&&Da("cancel",(i,a)=>this.cancelPress(i,a))},o=Vt(this.node.current,"blur",n);this.removeAccessibleListeners=or(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ve.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!bh()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ve.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Nt(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Vt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=or(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const vs=new WeakMap,Fa=new WeakMap,bk=e=>{const t=vs.get(e.target);t&&t(e)},yk=e=>{e.forEach(bk)};function xk({root:e,...t}){const r=e||document;Fa.has(r)||Fa.set(r,{});const n=Fa.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(yk,{root:e,...t})),n[o]}function Sk(e,t,r){const n=xk(t);return vs.set(e,r),n.observe(e),()=>{vs.delete(e),n.unobserve(e)}}const wk={some:0,all:1};class kk extends cr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:wk[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return Sk(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Ck(t,r))&&this.startObserver()}unmount(){}}function Ck({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const _k={inView:{Feature:kk},tap:{Feature:gk},focus:{Feature:vk},hover:{Feature:mk}};function Sh(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function Tk(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function na(e,t,r){const n=e.getProps();return bl(n,t,r!==void 0?r:n.custom,Pk(e),Tk(e))}const $k="framerAppearId",Ak="data-"+vl($k);let Ek=Pe,yl=Pe;const ir=e=>e*1e3,Wt=e=>e/1e3,Rk={current:!1},wh=e=>Array.isArray(e)&&typeof e[0]=="number";function kh(e){return!!(!e||typeof e=="string"&&Ch[e]||wh(e)||Array.isArray(e)&&e.every(kh))}const Dn=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Ch={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Dn([0,.65,.55,1]),circOut:Dn([.55,0,1,.45]),backIn:Dn([.31,.01,.66,-.59]),backOut:Dn([.33,1.53,.69,.99])};function _h(e){if(e)return wh(e)?Dn(e):Array.isArray(e)?e.map(_h):Ch[e]}function Mk(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=_h(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const bu={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Va={},Ph={};for(const e in bu)Ph[e]=()=>(Va[e]===void 0&&(Va[e]=bu[e]()),Va[e]);function jk(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Th=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,zk=1e-7,Ik=12;function Bk(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=Th(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>zk&&++sBk(i,0,1,e,r);return i=>i===0||i===1?i:Th(o(i),t,n)}const Ok=wo(.42,0,1,1),Dk=wo(0,0,.58,1),$h=wo(.42,0,.58,1),Fk=e=>Array.isArray(e)&&typeof e[0]!="number",Ah=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Eh=e=>t=>1-e(1-t),Rh=e=>1-Math.sin(Math.acos(e)),xl=Eh(Rh),Vk=Ah(xl),Mh=wo(.33,1.53,.69,.99),Sl=Eh(Mh),Lk=Ah(Sl),Nk=e=>(e*=2)<1?.5*Sl(e):.5*(2-Math.pow(2,-10*(e-1))),Wk={linear:Pe,easeIn:Ok,easeInOut:$h,easeOut:Dk,circIn:Rh,circInOut:Vk,circOut:xl,backIn:Sl,backInOut:Lk,backOut:Mh,anticipate:Nk},yu=e=>{if(Array.isArray(e)){yl(e.length===4);const[t,r,n,o]=e;return wo(t,r,n,o)}else if(typeof e=="string")return Wk[e];return e},wl=(e,t)=>r=>!!(xo(r)&&L5.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),jh=(e,t,r)=>n=>{if(!xo(n))return n;const[o,i,a,s]=n.match(ea);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Hk=e=>jr(0,255,e),La={...Or,transform:e=>Math.round(Hk(e))},Cr={test:wl("rgb","red"),parse:jh("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+La.transform(e)+", "+La.transform(t)+", "+La.transform(r)+", "+qn(Un.transform(n))+")"};function Uk(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const gs={test:wl("#"),parse:Uk,transform:Cr.transform},en={test:wl("hsl","hue"),parse:jh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Rt.transform(qn(t))+", "+Rt.transform(qn(r))+", "+qn(Un.transform(n))+")"},We={test:e=>Cr.test(e)||gs.test(e)||en.test(e),parse:e=>Cr.test(e)?Cr.parse(e):en.test(e)?en.parse(e):gs.parse(e),transform:e=>xo(e)?e:e.hasOwnProperty("red")?Cr.transform(e):en.transform(e)},be=(e,t,r)=>-r*e+r*t+e;function Na(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function qk({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=Na(l,s,e+1/3),i=Na(l,s,e),a=Na(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const Wa=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Gk=[gs,Cr,en],Kk=e=>Gk.find(t=>t.test(e));function xu(e){const t=Kk(e);let r=t.parse(e);return t===en&&(r=qk(r)),r}const zh=(e,t)=>{const r=xu(e),n=xu(t),o={...r};return i=>(o.red=Wa(r.red,n.red,i),o.green=Wa(r.green,n.green,i),o.blue=Wa(r.blue,n.blue,i),o.alpha=be(r.alpha,n.alpha,i),Cr.transform(o))};function Xk(e){var t,r;return isNaN(e)&&xo(e)&&(((t=e.match(ea))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(oh))===null||r===void 0?void 0:r.length)||0)>0}const Ih={regex:F5,countKey:"Vars",token:"${v}",parse:Pe},Bh={regex:oh,countKey:"Colors",token:"${c}",parse:We.parse},Oh={regex:ea,countKey:"Numbers",token:"${n}",parse:Or.parse};function Ha(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function ki(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Ha(r,Ih),Ha(r,Bh),Ha(r,Oh),r}function Dh(e){return ki(e).values}function Fh(e){const{values:t,numColors:r,numVars:n,tokenised:o}=ki(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function Zk(e){const t=Dh(e);return Fh(e)(t.map(Yk))}const ar={test:Xk,parse:Dh,createTransformer:Fh,getAnimatableNone:Zk},Vh=(e,t)=>r=>`${r>0?t:e}`;function Lh(e,t){return typeof e=="number"?r=>be(e,t,r):We.test(e)?zh(e,t):e.startsWith("var(")?Vh(e,t):Wh(e,t)}const Nh=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>Lh(i,t[a]));return i=>{for(let a=0;a{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Lh(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},Wh=(e,t)=>{const r=ar.createTransformer(t),n=ki(e),o=ki(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?or(Nh(n.values,o.values),r):Vh(e,t)},uo=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Su=(e,t)=>r=>be(e,t,r);function Qk(e){return typeof e=="number"?Su:typeof e=="string"?We.test(e)?zh:Wh:Array.isArray(e)?Nh:typeof e=="object"?Jk:Su}function eC(e,t,r){const n=[],o=r||Qk(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=eC(t,n,o),s=a.length,l=c=>{let u=0;if(s>1)for(;ul(jr(e[0],e[i-1],c)):l}function tC(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=uo(0,t,n);e.push(be(r,1,o))}}function rC(e){const t=[0];return tC(t,e.length-1),t}function nC(e,t){return e.map(r=>r*t)}function oC(e,t){return e.map(()=>t||$h).splice(0,e.length-1)}function Ci({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=Fk(n)?n.map(yu):yu(n),i={done:!1,value:t[0]},a=nC(r&&r.length===t.length?r:rC(t),e),s=Hh(a,t,{ease:Array.isArray(o)?o:oC(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function Uh(e,t){return t?e*(1e3/t):0}const iC=5;function qh(e,t,r){const n=Math.max(t-iC,0);return Uh(r-e(n),t-n)}const Ua=.001,aC=.01,wu=10,sC=.05,lC=1;function cC({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Ek(e<=ir(wu));let a=1-t;a=jr(sC,lC,a),e=jr(aC,wu,Wt(e)),a<1?(o=c=>{const u=c*a,d=u*e,f=u-r,h=bs(c,a),v=Math.exp(-d);return Ua-f/h*v},i=c=>{const d=c*a*e,f=d*r+r,h=Math.pow(a,2)*Math.pow(c,2)*e,v=Math.exp(-d),b=bs(Math.pow(c,2),a);return(-o(c)+Ua>0?-1:1)*((f-h)*v)/b}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-Ua+u*d},i=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const s=5/e,l=dC(o,i,s);if(e=ir(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}const uC=12;function dC(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function pC(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ku(e,hC)&&ku(e,fC)){const r=cC(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Gh({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=pC(n),h=u?-Wt(u):0,v=l/(2*Math.sqrt(s*c)),b=i-o,y=Wt(Math.sqrt(s/c)),k=Math.abs(b)<5;r||(r=k?.01:2),t||(t=k?.005:.5);let w;if(v<1){const C=bs(y,v);w=P=>{const $=Math.exp(-v*y*P);return i-$*((h+v*y*b)/C*Math.sin(C*P)+b*Math.cos(C*P))}}else if(v===1)w=C=>i-Math.exp(-y*C)*(b+(h+y*b)*C);else{const C=y*Math.sqrt(v*v-1);w=P=>{const $=Math.exp(-v*y*P),A=Math.min(C*P,300);return i-$*((h+v*y*b)*Math.sinh(A)+C*b*Math.cosh(A))/C}}return{calculatedDuration:f&&d||null,next:C=>{const P=w(C);if(f)a.done=C>=d;else{let $=h;C!==0&&(v<1?$=qh(w,C,P):$=0);const A=Math.abs($)<=r,T=Math.abs(i-P)<=t;a.done=A&&T}return a.value=a.done?i:P,a}}}function Cu({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=E=>s!==void 0&&El,v=E=>s===void 0?l:l===void 0||Math.abs(s-E)-b*Math.exp(-E/n),C=E=>k+w(E),P=E=>{const M=w(E),R=C(E);f.done=Math.abs(M)<=c,f.value=f.done?k:R};let $,A;const T=E=>{h(f.value)&&($=E,A=Gh({keyframes:[f.value,v(f.value)],velocity:qh(C,E,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:E=>{let M=!1;return!A&&$===void 0&&(M=!0,P(E),T(E)),$!==void 0&&E>$?A.next(E-$):(!M&&P(E),f)}}}const mC=e=>{const t=({timestamp:r})=>e(r);return{start:()=>ve.update(t,!0),stop:()=>Ut(t),now:()=>Me.isProcessing?Me.timestamp:performance.now()}},_u=2e4;function Pu(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<_u;)t+=r,n=e.next(t);return t>=_u?1/0:t}const vC={decay:Cu,inertia:Cu,tween:Ci,keyframes:Ci,spring:Gh};function _i({autoplay:e=!0,delay:t=0,driver:r=mC,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let h=1,v=!1,b,y;const k=()=>{b&&b(),y=new Promise(U=>{b=U})};k();let w;const C=vC[o]||Ci;let P;C!==Ci&&typeof n[0]!="number"&&(P=Hh([0,100],n,{clamp:!1}),n=[0,100]);const $=C({...f,keyframes:n});let A;s==="mirror"&&(A=C({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let T="idle",E=null,M=null,R=null;$.calculatedDuration===null&&i&&($.calculatedDuration=Pu($));const{calculatedDuration:D}=$;let X=1/0,J=1/0;D!==null&&(X=D+a,J=X*(i+1)-a);let N=0;const Y=U=>{if(M===null)return;h>0&&(M=Math.min(M,U)),E!==null?N=E:N=(U-M)*h;const xe=N-t,L=xe<0;N=Math.max(xe,0),T==="finished"&&E===null&&(N=J);let Q=N,ce=$;if(i){const qe=N/X;let Ge=Math.floor(qe),Ae=qe%1;!Ae&&qe>=1&&(Ae=1),Ae===1&&Ge--,Ge=Math.min(Ge,i+1);const re=!!(Ge%2);re&&(s==="reverse"?(Ae=1-Ae,a&&(Ae-=a/X)):s==="mirror"&&(ce=A));let Ee=jr(0,1,Ae);N>J&&(Ee=s==="reverse"&&re?1:0),Q=Ee*X}const ge=L?{done:!1,value:n[0]}:ce.next(Q);P&&(ge.value=P(ge.value));let{done:Ve}=ge;!L&&D!==null&&(Ve=N>=J);const ke=E===null&&(T==="finished"||T==="running"&&Ve||h<0&&N<=0);return d&&d(ge.value),ke&&fe(),ge},W=()=>{w&&w.stop(),w=void 0},H=()=>{T="idle",W(),k(),M=R=null},fe=()=>{T="finished",u&&u(),W(),k()},ye=()=>{if(v)return;w||(w=r(Y));const U=w.now();l&&l(),E!==null?M=U-E:(!M||T==="finished")&&(M=U),R=M,E=null,T="running",w.start()};e&&ye();const Fe={then(U,xe){return y.then(U,xe)},get time(){return Wt(N)},set time(U){U=ir(U),N=U,E!==null||!w||h===0?E=U:M=w.now()-U/h},get duration(){const U=$.calculatedDuration===null?Pu($):$.calculatedDuration;return Wt(U)},get speed(){return h},set speed(U){U===h||!w||(h=U,Fe.time=Wt(N))},get state(){return T},play:ye,pause:()=>{T="paused",E=N},stop:()=>{v=!0,T!=="idle"&&(T="idle",c&&c(),H())},cancel:()=>{R!==null&&Y(R),H()},complete:()=>{T="finished"},sample:U=>(M=0,Y(U))};return Fe}const gC=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Uo=10,bC=2e4,yC=(e,t)=>t.type==="spring"||e==="backgroundColor"||!kh(t.ease);function xC(e,t,{onUpdate:r,onComplete:n,...o}){if(!(Ph.waapi()&&gC.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l;const c=()=>{l=new Promise(k=>{s=k})};c();let{keyframes:u,duration:d=300,ease:f,times:h}=o;if(yC(t,o)){const k=_i({...o,repeat:0,delay:0});let w={done:!1,value:u[0]};const C=[];let P=0;for(;!w.done&&Pv.cancel(),y=()=>{ve.update(b),s(),c()};return v.onfinish=()=>{e.set(jk(u,o)),n&&n(),y()},{then(k,w){return l.then(k,w)},get time(){return Wt(v.currentTime||0)},set time(k){v.currentTime=ir(k)},get speed(){return v.playbackRate},set speed(k){v.playbackRate=k},get duration(){return Wt(d)},play:()=>{a||(v.play(),Ut(b))},pause:()=>v.pause(),stop:()=>{if(a=!0,v.playState==="idle")return;const{currentTime:k}=v;if(k){const w=_i({...o,autoplay:!1});e.setWithVelocity(w.sample(k-Uo).value,w.sample(k).value,Uo)}y()},complete:()=>v.finish(),cancel:y}}function SC({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Pe,pause:Pe,stop:Pe,then:i=>(i(),Promise.resolve()),cancel:Pe,complete:Pe});return t?_i({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const wC={type:"spring",stiffness:500,damping:25,restSpeed:10},kC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),CC={type:"keyframes",duration:.8},_C={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PC=(e,{keyframes:t})=>t.length>2?CC:Br.has(e)?e.startsWith("scale")?kC(t[1]):wC:_C,ys=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ar.test(t)||t==="0")&&!t.startsWith("url(")),TC=new Set(["brightness","contrast","saturate","opacity"]);function $C(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(ea)||[];if(!n)return e;const o=r.replace(n,"");let i=TC.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const AC=/([a-z-]*)\(.*?\)/g,xs={...ar,getAnimatableNone:e=>{const t=e.match(AC);return t?t.map($C).join(" "):e}},EC={...ih,color:We,backgroundColor:We,outlineColor:We,fill:We,stroke:We,borderColor:We,borderTopColor:We,borderRightColor:We,borderBottomColor:We,borderLeftColor:We,filter:xs,WebkitFilter:xs},kl=e=>EC[e];function Kh(e,t){let r=kl(e);return r!==xs&&(r=ar),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Xh=e=>/^0[^.\s]+$/.test(e);function RC(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Xh(e)}function MC(e,t,r,n){const o=ys(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const l=[];for(let c=0;co=>{const i=Yh(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s=s-ir(a);const l=MC(t,e,r,i),c=l[0],u=l[l.length-1],d=ys(e,c),f=ys(e,u);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(jC(i)||(h={...h,...PC(e,h)}),h.duration&&(h.duration=ir(h.duration)),h.repeatDelay&&(h.repeatDelay=ir(h.repeatDelay)),!d||!f||Rk.current||i.type===!1)return SC(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=xC(t,e,h);if(v)return v}return _i(h)};function Pi(e){return!!(Qe(e)&&e.add)}const zC=e=>/^\-?\d*\.?\d+$/.test(e);function _l(e,t){e.indexOf(t)===-1&&e.push(t)}function Pl(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Tl{constructor(){this.subscriptions=[]}add(t){return _l(this.subscriptions,t),()=>Pl(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class BC{constructor(t,r={}){this.version="10.12.12",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:a}=Me;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,ve.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ve.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=IC(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Tl);const n=this.events[t].add(r);return t==="change"?()=>{n(),ve.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Uh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fn(e,t){return new BC(e,t)}const Zh=e=>t=>t.test(e),OC={test:e=>e==="auto",parse:e=>e},Jh=[Or,F,Rt,er,W5,N5,OC],An=e=>Jh.find(Zh(e)),DC=[...Jh,We,ar],FC=e=>DC.find(Zh(e));function VC(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,fn(r))}function LC(e,t){const r=na(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const a in i){const s=nk(i[a]);VC(e,a,s)}}function NC(e,t,r){var n,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(d))),c.push(b)}return a&&Promise.all(c).then(()=>{a&&LC(e,a)}),c}function Ss(e,t,r={}){const n=na(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(Qh(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return qC(e,t,c+l,u,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(r.delay)])}function qC(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>s-c*n;return Array.from(e.variantChildren).sort(GC).forEach((c,u)=>{c.notify("AnimationStart",t),a.push(Ss(c,t,{...i,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function GC(e,t){return e.sortNodePosition(t)}function KC(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Ss(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Ss(e,t,r);else{const o=typeof t=="function"?na(e,t,r.custom):t;n=Promise.all(Qh(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const XC=[...ll].reverse(),YC=ll.length;function ZC(e){return t=>Promise.all(t.map(({animation:r,options:n})=>KC(e,r,n)))}function JC(e){let t=ZC(e);const r=e_();let n=!0;const o=(l,c)=>{const u=na(e,c);if(u){const{transition:d,transitionEnd:f,...h}=u;l={...l,...h,...f}}return l};function i(l){t=l(e)}function a(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let v={},b=1/0;for(let k=0;kb&&$;const R=Array.isArray(P)?P:[P];let D=R.reduce(o,{});A===!1&&(D={});const{prevResolvedValues:X={}}=C,J={...X,...D},N=Y=>{M=!0,h.delete(Y),C.needsAnimating[Y]=!0};for(const Y in J){const W=D[Y],H=X[Y];v.hasOwnProperty(Y)||(W!==H?wi(W)&&wi(H)?!Sh(W,H)||E?N(Y):C.protectedKeys[Y]=!0:W!==void 0?N(Y):h.add(Y):W!==void 0&&h.has(Y)?N(Y):C.protectedKeys[Y]=!0)}C.prevProp=P,C.prevResolvedValues=D,C.isActive&&(v={...v,...D}),n&&e.blockInitialAnimation&&(M=!1),M&&!T&&f.push(...R.map(Y=>({animation:Y,options:{type:w,...l}})))}if(h.size){const k={};h.forEach(w=>{const C=e.getBaseTarget(w);C!==void 0&&(k[w]=C)}),f.push({animation:k})}let y=!!f.length;return n&&u.initial===!1&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(f):Promise.resolve()}function s(l,c,u){var d;if(r[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(l,c)}),r[l].isActive=c;const f=a(u,l);for(const h in r)r[h].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function QC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Sh(t,e):!1}function br(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function e_(){return{animate:br(!0),whileInView:br(),whileHover:br(),whileTap:br(),whileDrag:br(),whileFocus:br(),exit:br()}}class t_ extends cr{constructor(t){super(t),t.animationState||(t.animationState=JC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ji(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let r_=0;class n_ extends cr{constructor(){super(...arguments),this.id=r_++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const o_={animation:{Feature:t_},exit:{Feature:n_}},Tu=(e,t)=>Math.abs(e-t);function i_(e,t){const r=Tu(e.x,t.x),n=Tu(e.y,t.y);return Math.sqrt(r**2+n**2)}class ep{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=Ga(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,d=i_(c.offset,{x:0,y:0})>=3;if(!u&&!d)return;const{point:f}=c,{timestamp:h}=Me;this.history.push({...f,timestamp:h});const{onStart:v,onMove:b}=this.handlers;u||(v&&v(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,c)},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=qa(u,this.transformPagePoint),ve.update(this.updatePoint,!0)},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,h=Ga(c.type==="pointercancel"?this.lastMoveEventInfo:qa(u,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,h),f&&f(c,h)},!mh(t))return;this.handlers=r,this.transformPagePoint=n;const o=ta(t),i=qa(o,this.transformPagePoint),{point:a}=i,{timestamp:s}=Me;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=r;l&&l(t,Ga(i,this.history)),this.removeListeners=or(Nt(window,"pointermove",this.handlePointerMove),Nt(window,"pointerup",this.handlePointerUp),Nt(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ut(this.updatePoint)}}function qa(e,t){return t?{point:t(e.point)}:e}function $u(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ga({point:e},t){return{point:e,delta:$u(e,tp(t)),offset:$u(e,a_(t)),velocity:s_(t,.1)}}function a_(e){return e[0]}function tp(e){return e[e.length-1]}function s_(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=tp(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>ir(t)));)r--;if(!n)return{x:0,y:0};const i=Wt(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ot(e){return e.max-e.min}function ws(e,t=0,r=.01){return Math.abs(e-t)<=r}function Au(e,t,r,n=.5){e.origin=n,e.originPoint=be(t.min,t.max,e.origin),e.scale=ot(r)/ot(t),(ws(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=be(r.min,r.max,e.origin)-e.originPoint,(ws(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Gn(e,t,r,n){Au(e.x,t.x,r.x,n?n.originX:void 0),Au(e.y,t.y,r.y,n?n.originY:void 0)}function Eu(e,t,r){e.min=r.min+t.min,e.max=e.min+ot(t)}function l_(e,t,r){Eu(e.x,t.x,r.x),Eu(e.y,t.y,r.y)}function Ru(e,t,r){e.min=t.min-r.min,e.max=e.min+ot(t)}function Kn(e,t,r){Ru(e.x,t.x,r.x),Ru(e.y,t.y,r.y)}function c_(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?be(r,e,n.max):Math.min(e,r)),e}function Mu(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function u_(e,{top:t,left:r,bottom:n,right:o}){return{x:Mu(e.x,r,o),y:Mu(e.y,t,n)}}function ju(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=uo(t.min,t.max-n,e.min):n>o&&(r=uo(e.min,e.max-o,t.min)),jr(0,1,r)}function h_(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const ks=.35;function p_(e=ks){return e===!1?e=0:e===!0&&(e=ks),{x:zu(e,"left","right"),y:zu(e,"top","bottom")}}function zu(e,t,r){return{min:Iu(e,t),max:Iu(e,r)}}function Iu(e,t){return typeof e=="number"?e:e[t]||0}const Bu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xn=()=>({x:Bu(),y:Bu()}),Ou=()=>({min:0,max:0}),Ce=()=>({x:Ou(),y:Ou()});function Ct(e){return[e("x"),e("y")]}function rp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function m_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v_(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Ka(e){return e===void 0||e===1}function Cs({scale:e,scaleX:t,scaleY:r}){return!Ka(e)||!Ka(t)||!Ka(r)}function yr(e){return Cs(e)||np(e)||e.z||e.rotate||e.rotateX||e.rotateY}function np(e){return Du(e.x)||Du(e.y)}function Du(e){return e&&e!=="0%"}function Ti(e,t,r){const n=e-r,o=t*n;return r+o}function Fu(e,t,r,n,o){return o!==void 0&&(e=Ti(e,o,n)),Ti(e,r,n)+t}function _s(e,t=0,r=1,n,o){e.min=Fu(e.min,t,r,n,o),e.max=Fu(e.max,t,r,n,o)}function op(e,{x:t,y:r}){_s(e.x,t.translate,t.scale,t.originPoint),_s(e.y,r.translate,r.scale,r.originPoint)}function g_(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function tr(e,t){e.min=e.min+t,e.max=e.max+t}function Lu(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,a=be(e.min,e.max,i);_s(e,t[r],t[n],a,t.scale)}const b_=["x","scaleX","originX"],y_=["y","scaleY","originY"];function tn(e,t){Lu(e.x,t,b_),Lu(e.y,t,y_)}function ip(e,t){return rp(v_(e.getBoundingClientRect(),t))}function x_(e,t,r){const n=ip(e,r),{scroll:o}=t;return o&&(tr(n.x,o.offset.x),tr(n.y,o.offset.y)),n}const S_=new WeakMap;class w_{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ce(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(ta(l,"page").point)},i=(l,c)=>{const{drag:u,dragPropagation:d,onDragStart:f}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=gh(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ct(v=>{let b=this.getAxisMotionValue(v).get()||0;if(Rt.test(b)){const{projection:y}=this.visualElement;if(y&&y.layout){const k=y.layout.layoutBox[v];k&&(b=ot(k)*(parseFloat(b)/100))}}this.originPoint[v]=b}),f&&ve.update(()=>f(l,c),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(l,c)=>{const{dragPropagation:u,dragDirectionLock:d,onDirectionLock:f,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:v}=c;if(d&&this.currentDirection===null){this.currentDirection=k_(v),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.render(),h&&h(l,c)},s=(l,c)=>this.stop(l,c);this.panSession=new ep(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&ve.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!qo(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=c_(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&Qr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=u_(n.layoutBox,t):this.constraints=!1,this.elastic=p_(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ct(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=h_(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Qr(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=x_(n,o.root,this.visualElement.getTransformPagePoint());let a=d_(o.layout.layoutBox,i);if(r){const s=r(m_(a));this.hasMutatedConstraints=!!s,s&&(a=rp(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Ct(u=>{if(!qo(u,r,this.currentDirection))return;let d=l&&l[u]||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,v={type:"inertia",velocity:n?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Cl(t,n,0,r))}stopAnimation(){Ct(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Ct(r=>{const{drag:n}=this.getProps();if(!qo(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-be(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Qr(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ct(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=f_({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ct(a=>{if(!qo(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(be(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;S_.set(this.visualElement,this);const t=this.visualElement.current,r=Nt(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Qr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const a=Vt(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ct(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=ks,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function qo(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function k_(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class C_ extends cr{constructor(t){super(t),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new w_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nu=e=>(t,r)=>{e&&ve.update(()=>e(t,r))};class __ extends cr{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(t){this.session=new ep(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Nu(t),onStart:Nu(r),onMove:n,onEnd:(i,a)=>{delete this.session,o&&ve.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=Nt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function P_(){const e=g.useContext(bo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=g.useId();return g.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function T_(){return $_(g.useContext(bo))}function $_(e){return e===null?!0:e.isPresent}const li={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const En={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(F.test(e))e=parseFloat(e);else return e;const r=Wu(e,t.target.x),n=Wu(e,t.target.y);return`${r}% ${n}%`}},A_={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=ar.parse(e);if(o.length>5)return n;const i=ar.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=be(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};class E_ extends di.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;I5(R_),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),li.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||ve.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ap(e){const[t,r]=P_(),n=g.useContext(ul);return di.createElement(E_,{...e,layoutGroup:n,switchLayoutGroup:g.useContext(eh),isPresent:t,safeToRemove:r})}const R_={borderRadius:{...En,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:En,borderTopRightRadius:En,borderBottomLeftRadius:En,borderBottomRightRadius:En,boxShadow:A_},sp=["TopLeft","TopRight","BottomLeft","BottomRight"],M_=sp.length,Hu=e=>typeof e=="string"?parseFloat(e):e,Uu=e=>typeof e=="number"||F.test(e);function j_(e,t,r,n,o,i){o?(e.opacity=be(0,r.opacity!==void 0?r.opacity:1,z_(n)),e.opacityExit=be(t.opacity!==void 0?t.opacity:1,0,I_(n))):i&&(e.opacity=be(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;ant?1:r(uo(e,t,n))}function Gu(e,t){e.min=t.min,e.max=t.max}function dt(e,t){Gu(e.x,t.x),Gu(e.y,t.y)}function Ku(e,t,r,n,o){return e-=t,e=Ti(e,1/r,n),o!==void 0&&(e=Ti(e,1/o,n)),e}function B_(e,t=0,r=1,n=.5,o,i=e,a=e){if(Rt.test(t)&&(t=parseFloat(t),t=be(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=be(i.min,i.max,n);e===i&&(s-=t),e.min=Ku(e.min,t,r,s,o),e.max=Ku(e.max,t,r,s,o)}function Xu(e,t,[r,n,o],i,a){B_(e,t[r],t[n],t[o],t.scale,i,a)}const O_=["x","scaleX","originX"],D_=["y","scaleY","originY"];function Yu(e,t,r,n){Xu(e.x,t,O_,r?r.x:void 0,n?n.x:void 0),Xu(e.y,t,D_,r?r.y:void 0,n?n.y:void 0)}function Zu(e){return e.translate===0&&e.scale===1}function cp(e){return Zu(e.x)&&Zu(e.y)}function Ps(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Ju(e){return ot(e.x)/ot(e.y)}class F_{constructor(){this.members=[]}add(t){_l(this.members,t),t.scheduleRender()}remove(t){if(Pl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Qu(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:c,rotateY:u}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),u&&(n+=`rotateY(${u}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const V_=(e,t)=>e.depth-t.depth;class L_{constructor(){this.children=[],this.isDirty=!1}add(t){_l(this.children,t),this.isDirty=!0}remove(t){Pl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(V_),this.isDirty=!1,this.children.forEach(t)}}function N_(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Ut(n),e(i-t))};return ve.read(n,!0),()=>Ut(n)}function W_(e){window.MotionDebug&&window.MotionDebug.record(e)}function H_(e){return e instanceof SVGElement&&e.tagName!=="svg"}function U_(e,t,r){const n=Qe(e)?e:fn(e);return n.start(Cl("",n,t,r)),n.animation}const ed=["","X","Y","Z"],td=1e3;let q_=0;const xr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function up({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=q_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{xr.totalNodes=xr.resolvedTargetDeltas=xr.recalculatedProjection=0,this.nodes.forEach(X_),this.nodes.forEach(Q_),this.nodes.forEach(e3),this.nodes.forEach(Y_),W_(xr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=N_(f,250),li.hasAnimatedSinceResize&&(li.hasAnimatedSinceResize=!1,this.nodes.forEach(nd))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||i3,{onLayoutAnimationStart:y,onLayoutAnimationComplete:k}=u.getProps(),w=!this.targetLayout||!Ps(this.targetLayout,v)||h,C=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||f&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,C);const P={...Yh(b,"layout"),onPlay:y,onComplete:k};(u.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else f||nd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ut(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(t3),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;uthis.update()))}clearAllSnapshots(){this.nodes.forEach(Z_),this.sharedNodes.forEach(r3)}scheduleUpdateProjection(){ve.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ve.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const $=P/1e3;od(d.x,a.x,$),od(d.y,a.y,$),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Kn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n3(this.relativeTarget,this.relativeTargetOrigin,f,$),C&&Ps(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Ce()),dt(C,this.relativeTarget)),b&&(this.animationValues=u,j_(u,c,this.latestValues,$,w,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ut(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ve.update(()=>{li.hasAnimatedSinceResize=!0,this.currentAnimation=U_(0,td,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(td),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&dp(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ce();const d=ot(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=ot(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}dt(s,l),tn(s,u),Gn(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new F_),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let u=0;u{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(rd),this.root.sharedNodes.clear()}}}function G_(e){e.updateLayout()}function K_(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?Ct(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],h=ot(f);f.min=n[d].min,f.max=f.min+h}):dp(i,r.layoutBox,n)&&Ct(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],h=ot(n[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=Xn();Gn(s,n,r.layoutBox);const l=Xn();a?Gn(l,e.applyTransform(o,!0),r.measuredBox):Gn(l,n,r.layoutBox);const c=!cp(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const v=Ce();Kn(v,r.layoutBox,f.layoutBox);const b=Ce();Kn(b,n,h.layoutBox),Ps(v,b)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function X_(e){xr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Y_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Z_(e){e.clearSnapshot()}function rd(e){e.clearMeasurements()}function J_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Q_(e){e.resolveTargetDelta()}function e3(e){e.calcProjection()}function t3(e){e.resetRotation()}function r3(e){e.removeLeadSnapshot()}function od(e,t,r){e.translate=be(t.translate,0,r),e.scale=be(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function id(e,t,r,n){e.min=be(t.min,r.min,n),e.max=be(t.max,r.max,n)}function n3(e,t,r,n){id(e.x,t.x,r.x,n),id(e.y,t.y,r.y,n)}function o3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const i3={duration:.45,ease:[.4,0,.1,1]};function ad(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function a3(e){ad(e.x),ad(e.y)}function dp(e,t,r){return e==="position"||e==="preserve-aspect"&&!ws(Ju(t),Ju(r),.2)}const s3=up({attachResizeListener:(e,t)=>Vt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xa={current:void 0},fp=up({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xa.current){const e=new s3({});e.mount(window),e.setOptions({layoutScroll:!0}),Xa.current=e}return Xa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),l3={pan:{Feature:__},drag:{Feature:C_,ProjectionNode:fp,MeasureLayout:ap}},c3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function u3(e){const t=c3.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function Ts(e,t,r=1){const[n,o]=u3(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);return i?i.trim():ps(o)?Ts(o,t,r+1):o}function d3(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!ps(i))return;const a=Ts(i,n);a&&o.set(a)});for(const o in t){const i=t[o];if(!ps(i))continue;const a=Ts(i,n);a&&(t[o]=a,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const f3=new Set(["width","height","top","left","right","bottom","x","y"]),hp=e=>f3.has(e),h3=e=>Object.keys(e).some(hp),sd=e=>e===Or||e===F,ld=(e,t)=>parseFloat(e.split(", ")[t]),cd=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return ld(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?ld(i[1],e):0}},p3=new Set(["x","y","z"]),m3=yo.filter(e=>!p3.has(e));function v3(e){const t=[];return m3.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ud={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:cd(4,13),y:cd(5,14)},g3=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{s[c]=ud[c](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(c=>{const u=t.getValue(c);u&&u.jump(s[c]),e[c]=ud[c](l,i)}),e},b3=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(hp);let i=[],a=!1;const s=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],d=An(u);const f=t[l];let h;if(wi(f)){const v=f.length,b=f[0]===null?1:0;u=f[b],d=An(u);for(let y=b;y=0?window.pageYOffset:null,c=g3(t,e,s);return i.length&&i.forEach(([u,d])=>{e.getValue(u).set(d)}),e.render(),Zi&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:t,transitionEnd:n}};function y3(e,t,r,n){return h3(t)?b3(e,t,r,n):{target:t,transitionEnd:n}}const x3=(e,t,r,n)=>{const o=d3(e,t,n);return t=o.target,n=o.transitionEnd,y3(e,t,r,n)},$s={current:null},pp={current:!1};function S3(){if(pp.current=!0,!!Zi)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>$s.current=e.matches;e.addListener(t),t()}else $s.current=!1}function w3(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(Qe(i))e.addValue(o,i),Pi(n)&&n.add(o);else if(Qe(a))e.addValue(o,fn(i,{owner:e})),Pi(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,fn(s!==void 0?s:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const dd=new WeakMap,mp=Object.keys(lo),k3=mp.length,fd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],C3=cl.length;class _3{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ve.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Qi(r),this.isVariantNode=Qf(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(r,{});for(const d in u){const f=u[d];s[d]!==void 0&&Qe(f)&&(f.set(s[d],!1),Pi(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,dd.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),pp.current||S3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$s.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){dd.delete(this.current),this.projection&&this.projection.unmount(),Ut(this.notifyUpdate),Ut(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=Br.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ve.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ce()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=fn(r,{owner:this}),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=bl(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Qe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Tl),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class vp extends _3{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let a=HC(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),a&&(a=o(a))),i){NC(this,n,a);const s=x3(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function P3(e){return window.getComputedStyle(e)}class T3 extends vp{readValueFromInstance(t,r){if(Br.has(r)){const n=kl(r);return n&&n.default||0}else{const n=P3(t),o=(nh(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return ip(t,r)}build(t,r,n,o){fl(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return gl(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Qe(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){ch(t,r,n,o)}}class $3 extends vp{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Br.has(r)){const n=kl(r);return n&&n.default||0}return r=uh.has(r)?r:vl(r),t.getAttribute(r)}measureInstanceViewportBox(){return Ce()}scrapeMotionValuesFromProps(t,r){return fh(t,r)}build(t,r,n,o){pl(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){dh(t,r,n,o)}mount(t){this.isSVGTag=ml(t.tagName),super.mount(t)}}const A3=(e,t)=>dl(e)?new $3(t,{enableHardwareAcceleration:!1}):new T3(t,{enableHardwareAcceleration:!0}),E3={layout:{ProjectionNode:fp,MeasureLayout:ap}},R3={...o_,..._k,...l3,...E3},gp=j5((e,t)=>lk(e,t,R3,A3));function bp(){const e=g.useRef(!1);return yi(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function M3(){const e=bp(),[t,r]=g.useState(0),n=g.useCallback(()=>{e.current&&r(t+1)},[t]);return[g.useCallback(()=>ve.postRender(n),[n]),t]}class j3 extends g.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function z3({children:e,isPresent:t}){const r=g.useId(),n=g.useRef(null),o=g.useRef({width:0,height:0,top:0,left:0});return g.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${i}px !important; - height: ${a}px !important; - top: ${s}px !important; - left: ${l}px !important; - } - `),()=>{document.head.removeChild(c)}},[t]),g.createElement(j3,{isPresent:t,childRef:n,sizeRef:o},g.cloneElement(e,{ref:n}))}const Ya=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=hh(I3),l=g.useId(),c=g.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:u=>{s.set(u,!0);for(const d of s.values())if(!d)return;n&&n()},register:u=>(s.set(u,!1),()=>s.delete(u))}),i?void 0:[r]);return g.useMemo(()=>{s.forEach((u,d)=>s.set(d,!1))},[r]),g.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=g.createElement(z3,{isPresent:r},e)),g.createElement(bo.Provider,{value:c},e)};function I3(){return new Map}function B3(e){return g.useEffect(()=>()=>e(),[])}const Ur=e=>e.key||"";function O3(e,t){e.forEach(r=>{const n=Ur(r);t.set(n,r)})}function D3(e){const t=[];return g.Children.forEach(e,r=>{g.isValidElement(r)&&t.push(r)}),t}const yp=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=g.useContext(ul).forceRender||M3()[0],l=bp(),c=D3(e);let u=c;const d=g.useRef(new Map).current,f=g.useRef(u),h=g.useRef(new Map).current,v=g.useRef(!0);if(yi(()=>{v.current=!1,O3(c,h),f.current=u}),B3(()=>{v.current=!0,h.clear(),d.clear()}),v.current)return g.createElement(g.Fragment,null,u.map(w=>g.createElement(Ya,{key:Ur(w),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},w)));u=[...u];const b=f.current.map(Ur),y=c.map(Ur),k=b.length;for(let w=0;w{if(y.indexOf(C)!==-1)return;const P=h.get(C);if(!P)return;const $=b.indexOf(C);let A=w;if(!A){const T=()=>{h.delete(C),d.delete(C);const E=f.current.findIndex(M=>M.key===C);if(f.current.splice(E,1),!d.size){if(f.current=c,l.current===!1)return;s(),n&&n()}};A=g.createElement(Ya,{key:Ur(P),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:i,mode:a},P),d.set(C,A)}u.splice($,0,A)}),u=u.map(w=>{const C=w.key;return d.has(C)?w:g.createElement(Ya,{key:Ur(w),isPresent:!0,presenceAffectsLayout:i,mode:a},w)}),g.createElement(g.Fragment,null,d.size?u:u.map(w=>g.cloneElement(w)))};var F3={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},xp=g.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:c=F3,toastSpacing:u="0.5rem"}=e,[d,f]=g.useState(s),h=T_();hs(()=>{h||n==null||n()},[h]),hs(()=>{f(s)},[s]);const v=()=>f(null),b=()=>f(s),y=()=>{h&&o()};g.useEffect(()=>{h&&i&&o()},[h,i,o]),C5(y,d);const k=g.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),w=g.useMemo(()=>w5(a),[a]);return m.jsx(gp.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:b,custom:{position:a},style:w,children:m.jsx(O.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:k,children:nr(r,{id:t,onClose:y})})})});xp.displayName="ToastComponent";var hd={path:m.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[m.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),m.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),m.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Dr=te((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...c}=e,u=de("chakra-icon",s),d=et("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},h={ref:t,focusable:i,className:u,__css:f},v=n??hd.viewBox;if(r&&typeof r!="string")return m.jsx(O.svg,{as:r,...h,...c});const b=a??hd.path;return m.jsx(O.svg,{verticalAlign:"middle",viewBox:v,...h,...c,children:b})});Dr.displayName="Icon";function wt(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,i=g.Children.toArray(e.path),a=te((s,l)=>m.jsx(Dr,{ref:l,viewBox:t,...o,...s,children:i.length?i:m.jsx("path",{fill:"currentColor",d:r})}));return a.displayName=n,a}function V3(e){return m.jsx(Dr,{viewBox:"0 0 24 24",...e,children:m.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function L3(e){return m.jsx(Dr,{viewBox:"0 0 24 24",...e,children:m.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function pd(e){return m.jsx(Dr,{viewBox:"0 0 24 24",...e,children:m.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var N3=bn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),$l=te((e,t)=>{const r=et("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=ze(e),c=de("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${N3} ${i} linear infinite`,...r};return m.jsx(O.div,{ref:t,__css:u,className:c,...l,children:n&&m.jsx(O.span,{srOnly:!0,children:n})})});$l.displayName="Spinner";var[W3,Al]=St({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[H3,El]=St({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Sp={info:{icon:L3,colorScheme:"blue"},warning:{icon:pd,colorScheme:"orange"},success:{icon:V3,colorScheme:"green"},error:{icon:pd,colorScheme:"red"},loading:{icon:$l,colorScheme:"blue"}};function U3(e){return Sp[e].colorScheme}function q3(e){return Sp[e].icon}var wp=te(function(t,r){const n=El(),{status:o}=Al(),i={display:"inline",...n.description};return m.jsx(O.div,{ref:r,"data-status":o,...t,className:de("chakra-alert__desc",t.className),__css:i})});wp.displayName="AlertDescription";function kp(e){const{status:t}=Al(),r=q3(t),n=El(),o=t==="loading"?n.spinner:n.icon;return m.jsx(O.span,{display:"inherit","data-status":t,...e,className:de("chakra-alert__icon",e.className),__css:o,children:e.children||m.jsx(r,{h:"100%",w:"100%"})})}kp.displayName="AlertIcon";var Cp=te(function(t,r){const n=El(),{status:o}=Al();return m.jsx(O.div,{ref:r,"data-status":o,...t,className:de("chakra-alert__title",t.className),__css:n.title})});Cp.displayName="AlertTitle";var _p=te(function(t,r){var n;const{status:o="info",addRole:i=!0,...a}=ze(t),s=(n=t.colorScheme)!=null?n:U3(o),l=lr("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return m.jsx(W3,{value:{status:o},children:m.jsx(H3,{value:l,children:m.jsx(O.div,{"data-status":o,role:i?"alert":void 0,ref:r,...a,className:de("chakra-alert",t.className),__css:c})})})});_p.displayName="Alert";function G3(e){return m.jsx(Dr,{focusable:"false","aria-hidden":!0,...e,children:m.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Pp=te(function(t,r){const n=et("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=ze(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return m.jsx(O.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...a},...s,children:o||m.jsx(G3,{width:"1em",height:"1em"})})});Pp.displayName="CloseButton";var K3={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Yn=X3(K3);function X3(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=Y3(o,i),{position:s,id:l}=a;return n(c=>{var u,d;const h=s.includes("top")?[a,...(u=c[s])!=null?u:[]]:[...(d=c[s])!=null?d:[],a];return{...c,[s]:h}}),l},update:(o,i)=>{o&&n(a=>{const s={...a},{position:l,index:c}=cu(s,o);return l&&c!==-1&&(s[l][c]={...s[l][c],...i,message:J3(i)}),s})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=i[c].map(u=>({...u,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const a=Yf(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!cu(Yn.getState(),o).position}}var md=0;function Y3(e,t={}){var r,n;md+=1;const o=(r=t.id)!=null?r:md,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Yn.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Z3=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:c}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return m.jsxs(_p,{addRole:!1,status:t,variant:r,id:u==null?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[m.jsx(kp,{children:c}),m.jsxs(O.div,{flex:"1",maxWidth:"100%",children:[o&&m.jsx(Cp,{id:u==null?void 0:u.title,children:o}),s&&m.jsx(wp,{id:u==null?void 0:u.description,display:"block",children:s})]}),i&&m.jsx(Pp,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function J3(e={}){const{render:t,toastComponent:r=Z3}=e;return o=>typeof t=="function"?t({...o,...e}):m.jsx(r,{...o,...e})}var[Q3,x6]=St({name:"ToastOptionsContext",strict:!1}),eP=e=>{const t=g.useSyncExternalStore(Yn.subscribe,Yn.getState,Yn.getState),{motionVariants:r,component:n=xp,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return m.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:k5(s),children:m.jsx(yp,{initial:!1,children:l.map(c=>m.jsx(n,{motionVariants:r,...c},c.id))})},s)});return m.jsx(vo,{...o,children:a})},tP=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return m.jsxs(x5,{theme:n,...i,children:[m.jsx(Q3,{value:o==null?void 0:o.defaultOptions,children:r}),m.jsx(eP,{...o})]})},rP=tP(Vf);function nP(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function sr(...e){return t=>{e.forEach(r=>{nP(r,t)})}}function oP(...e){return g.useMemo(()=>sr(...e),e)}function iP(e){return g.Children.toArray(e).filter(t=>g.isValidElement(t))}var[S6,aP]=St({strict:!1,name:"ButtonGroupContext"});function sP(e){const[t,r]=g.useState(!e);return{ref:g.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function As(e){const{children:t,className:r,...n}=e,o=g.isValidElement(t)?g.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=de("chakra-button__icon",r);return m.jsx(O.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}As.displayName="ButtonIcon";function Es(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=m.jsx($l,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=de("chakra-button__spinner",i),c=r==="start"?"marginEnd":"marginStart",u=g.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,c,n]);return m.jsx(O.div,{className:l,...s,__css:u,children:o})}Es.displayName="ButtonSpinner";var ko=te((e,t)=>{const r=aP(),n=et("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:v="start",className:b,as:y,...k}=ze(e),w=g.useMemo(()=>{const A={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:A}}},[n,r]),{ref:C,type:P}=sP(y),$={rightIcon:c,leftIcon:l,iconSpacing:d,children:s};return m.jsxs(O.button,{ref:oP(t,C),as:y,type:f??P,"data-active":G(a),"data-loading":G(i),__css:w,className:de("chakra-button",b),...k,disabled:o||i,children:[i&&v==="start"&&m.jsx(Es,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d,children:h}),i?u||m.jsx(O.span,{opacity:0,children:m.jsx(vd,{...$})}):m.jsx(vd,{...$}),i&&v==="end"&&m.jsx(Es,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d,children:h})]})});ko.displayName="Button";function vd(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return m.jsxs(m.Fragment,{children:[t&&m.jsx(As,{marginEnd:o,children:t}),n,r&&m.jsx(As,{marginStart:o,children:r})]})}var[w6,lP]=St({name:"CheckboxGroupContext",strict:!1});function cP(e){const[t,r]=g.useState(e),[n,o]=g.useState(!1);return e!==t&&(o(!0),r(e)),n}function uP(e){return m.jsx(O.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:m.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function dP(e){return m.jsx(O.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:m.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function fP(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?dP:uP;return r||t?m.jsx(O.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:m.jsx(o,{...n})}):null}var[hP,Tp]=St({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[pP,yn]=St({strict:!1,name:"FormControlContext"});function mP(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...a}=e,s=g.useId(),l=t||`field-${s}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[f,h]=g.useState(!1),[v,b]=g.useState(!1),[y,k]=g.useState(!1),w=g.useCallback((T={},E=null)=>({id:d,...T,ref:sr(E,M=>{M&&b(!0)})}),[d]),C=g.useCallback((T={},E=null)=>({...T,ref:E,"data-focus":G(y),"data-disabled":G(o),"data-invalid":G(n),"data-readonly":G(i),id:T.id!==void 0?T.id:c,htmlFor:T.htmlFor!==void 0?T.htmlFor:l}),[l,o,y,n,i,c]),P=g.useCallback((T={},E=null)=>({id:u,...T,ref:sr(E,M=>{M&&h(!0)}),"aria-live":"polite"}),[u]),$=g.useCallback((T={},E=null)=>({...T,...a,ref:E,role:"group","data-focus":G(y),"data-disabled":G(o),"data-invalid":G(n),"data-readonly":G(i)}),[a,o,y,n,i]),A=g.useCallback((T={},E=null)=>({...T,ref:E,role:"presentation","aria-hidden":!0,children:T.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!y,onFocus:()=>k(!0),onBlur:()=>k(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:v,setHasHelpText:b,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:a,getHelpTextProps:w,getErrorMessageProps:P,getRootProps:$,getLabelProps:C,getRequiredIndicatorProps:A}}var $p=te(function(t,r){const n=lr("Form",t),o=ze(t),{getRootProps:i,htmlProps:a,...s}=mP(o),l=de("chakra-form-control",t.className);return m.jsx(pP,{value:s,children:m.jsx(hP,{value:n,children:m.jsx(O.div,{...i({},r),className:l,__css:n.container})})})});$p.displayName="FormControl";var vP=te(function(t,r){const n=yn(),o=Tp(),i=de("chakra-form__helper-text",t.className);return m.jsx(O.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});vP.displayName="FormHelperText";var[gP,bP]=St({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Ap=te((e,t)=>{const r=lr("FormError",e),n=ze(e),o=yn();return o!=null&&o.isInvalid?m.jsx(gP,{value:r,children:m.jsx(O.div,{...o==null?void 0:o.getErrorMessageProps(n,t),className:de("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});Ap.displayName="FormErrorMessage";var yP=te((e,t)=>{const r=bP(),n=yn();if(!(n!=null&&n.isInvalid))return null;const o=de("chakra-form__error-icon",e.className);return m.jsx(Dr,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:o,children:m.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});yP.displayName="FormErrorIcon";var Ep=te(function(t,r){var n;const o=et("FormLabel",t),i=ze(t),{className:a,children:s,requiredIndicator:l=m.jsx(Rp,{}),optionalIndicator:c=null,...u}=i,d=yn(),f=(n=d==null?void 0:d.getLabelProps(u,r))!=null?n:{ref:r,...u};return m.jsxs(O.label,{...f,className:de("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...o},children:[s,d!=null&&d.isRequired?l:c]})});Ep.displayName="FormLabel";var Rp=te(function(t,r){const n=yn(),o=Tp();if(!(n!=null&&n.isRequired))return null;const i=de("chakra-form__required-indicator",t.className);return m.jsx(O.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:o.requiredIndicator,className:i})});Rp.displayName="RequiredIndicator";function Mp(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=jp(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":ya(r),"aria-required":ya(o),"aria-readonly":ya(n)}}function jp(e){var t,r,n;const o=yn(),{id:i,disabled:a,readOnly:s,required:l,isRequired:c,isInvalid:u,isReadOnly:d,isDisabled:f,onFocus:h,onBlur:v,...b}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&y.push(o.feedbackId),o!=null&&o.hasHelpText&&y.push(o.helpTextId),{...b,"aria-describedby":y.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=a??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=s??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??c)!=null?n:o==null?void 0:o.isRequired,isInvalid:u??(o==null?void 0:o.isInvalid),onFocus:Re(o==null?void 0:o.onFocus,h),onBlur:Re(o==null?void 0:o.onBlur,v)}}var xP={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},SP=()=>typeof document<"u",gd=!1,Co=null,zr=!1,Rs=!1,Ms=new Set;function Rl(e,t){Ms.forEach(r=>r(e,t))}var wP=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function kP(e){return!(e.metaKey||!wP&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function bd(e){zr=!0,kP(e)&&(Co="keyboard",Rl("keyboard",e))}function Wr(e){if(Co="pointer",e.type==="mousedown"||e.type==="pointerdown"){zr=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Rl("pointer",e)}}function CP(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function _P(e){CP(e)&&(zr=!0,Co="virtual")}function PP(e){e.target===window||e.target===document||(!zr&&!Rs&&(Co="virtual",Rl("virtual",e)),zr=!1,Rs=!1)}function TP(){zr=!1,Rs=!0}function yd(){return Co!=="pointer"}function $P(){if(!SP()||gd)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){zr=!0,e.apply(this,r)},document.addEventListener("keydown",bd,!0),document.addEventListener("keyup",bd,!0),document.addEventListener("click",_P,!0),window.addEventListener("focus",PP,!0),window.addEventListener("blur",TP,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Wr,!0),document.addEventListener("pointermove",Wr,!0),document.addEventListener("pointerup",Wr,!0)):(document.addEventListener("mousedown",Wr,!0),document.addEventListener("mousemove",Wr,!0),document.addEventListener("mouseup",Wr,!0)),gd=!0}function AP(e){$P(),e(yd());const t=()=>e(yd());return Ms.add(t),()=>{Ms.delete(t)}}function EP(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function zp(e={}){const t=jp(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:i,id:a,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:u,isChecked:d,isFocusable:f,onChange:h,isIndeterminate:v,name:b,value:y,tabIndex:k=void 0,"aria-label":w,"aria-labelledby":C,"aria-invalid":P,...$}=e,A=EP($,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),T=Ar(h),E=Ar(s),M=Ar(l),[R,D]=g.useState(!1),[X,J]=g.useState(!1),[N,Y]=g.useState(!1),[W,H]=g.useState(!1);g.useEffect(()=>AP(D),[]);const fe=g.useRef(null),[ye,Fe]=g.useState(!0),[U,xe]=g.useState(!!u),L=d!==void 0,Q=L?d:U,ce=g.useCallback(V=>{if(n||r){V.preventDefault();return}L||xe(Q?V.target.checked:v?!0:V.target.checked),T==null||T(V)},[n,r,Q,L,v,T]);_r(()=>{fe.current&&(fe.current.indeterminate=!!v)},[v]),hs(()=>{r&&J(!1)},[r,J]),_r(()=>{const V=fe.current;if(!(V!=null&&V.form))return;const Ie=()=>{xe(!!u)};return V.form.addEventListener("reset",Ie),()=>{var Ne;return(Ne=V.form)==null?void 0:Ne.removeEventListener("reset",Ie)}},[]);const ge=r&&!f,Ve=g.useCallback(V=>{V.key===" "&&H(!0)},[H]),ke=g.useCallback(V=>{V.key===" "&&H(!1)},[H]);_r(()=>{if(!fe.current)return;fe.current.checked!==Q&&xe(fe.current.checked)},[fe.current]);const qe=g.useCallback((V={},Ie=null)=>{const Ne=Xt=>{X&&Xt.preventDefault(),H(!0)};return{...V,ref:Ie,"data-active":G(W),"data-hover":G(N),"data-checked":G(Q),"data-focus":G(X),"data-focus-visible":G(X&&R),"data-indeterminate":G(v),"data-disabled":G(r),"data-invalid":G(i),"data-readonly":G(n),"aria-hidden":!0,onMouseDown:Re(V.onMouseDown,Ne),onMouseUp:Re(V.onMouseUp,()=>H(!1)),onMouseEnter:Re(V.onMouseEnter,()=>Y(!0)),onMouseLeave:Re(V.onMouseLeave,()=>Y(!1))}},[W,Q,r,X,R,N,v,i,n]),Ge=g.useCallback((V={},Ie=null)=>({...V,ref:Ie,"data-active":G(W),"data-hover":G(N),"data-checked":G(Q),"data-focus":G(X),"data-focus-visible":G(X&&R),"data-indeterminate":G(v),"data-disabled":G(r),"data-invalid":G(i),"data-readonly":G(n)}),[W,Q,r,X,R,N,v,i,n]),Ae=g.useCallback((V={},Ie=null)=>({...A,...V,ref:sr(Ie,Ne=>{Ne&&Fe(Ne.tagName==="LABEL")}),onClick:Re(V.onClick,()=>{var Ne;ye||((Ne=fe.current)==null||Ne.click(),requestAnimationFrame(()=>{var Xt;(Xt=fe.current)==null||Xt.focus({preventScroll:!0})}))}),"data-disabled":G(r),"data-checked":G(Q),"data-invalid":G(i)}),[A,r,Q,i,ye]),re=g.useCallback((V={},Ie=null)=>({...V,ref:sr(fe,Ie),type:"checkbox",name:b,value:y,id:a,tabIndex:k,onChange:Re(V.onChange,ce),onBlur:Re(V.onBlur,E,()=>J(!1)),onFocus:Re(V.onFocus,M,()=>J(!0)),onKeyDown:Re(V.onKeyDown,Ve),onKeyUp:Re(V.onKeyUp,ke),required:o,checked:Q,disabled:ge,readOnly:n,"aria-label":w,"aria-labelledby":C,"aria-invalid":P?!!P:i,"aria-describedby":c,"aria-disabled":r,style:xP}),[b,y,a,ce,E,M,Ve,ke,o,Q,ge,n,w,C,P,i,c,r,k]),Ee=g.useCallback((V={},Ie=null)=>({...V,ref:Ie,onMouseDown:Re(V.onMouseDown,RP),"data-disabled":G(r),"data-checked":G(Q),"data-invalid":G(i)}),[Q,r,i]);return{state:{isInvalid:i,isFocused:X,isChecked:Q,isActive:W,isHovered:N,isIndeterminate:v,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Ae,getCheckboxProps:qe,getIndicatorProps:Ge,getInputProps:re,getLabelProps:Ee,htmlProps:A}}function RP(e){e.preventDefault(),e.stopPropagation()}var MP={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},jP={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},zP=bn({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),IP=bn({from:{opacity:0},to:{opacity:1}}),BP=bn({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Ip=te(function(t,r){const n=lP(),o={...n,...t},i=lr("Checkbox",o),a=ze(t),{spacing:s="0.5rem",className:l,children:c,iconColor:u,iconSize:d,icon:f=m.jsx(fP,{}),isChecked:h,isDisabled:v=n==null?void 0:n.isDisabled,onChange:b,inputProps:y,...k}=a;let w=h;n!=null&&n.value&&a.value&&(w=n.value.includes(a.value));let C=b;n!=null&&n.onChange&&a.value&&(C=sg(n.onChange,b));const{state:P,getInputProps:$,getCheckboxProps:A,getLabelProps:T,getRootProps:E}=zp({...k,isDisabled:v,isChecked:w,onChange:C}),M=cP(P.isChecked),R=g.useMemo(()=>({animation:M?P.isIndeterminate?`${IP} 20ms linear, ${BP} 200ms linear`:`${zP} 200ms linear`:void 0,fontSize:d,color:u,...i.icon}),[u,d,M,P.isIndeterminate,i.icon]),D=g.cloneElement(f,{__css:R,isIndeterminate:P.isIndeterminate,isChecked:P.isChecked});return m.jsxs(O.label,{__css:{...jP,...i.container},className:de("chakra-checkbox",l),...E(),children:[m.jsx("input",{className:"chakra-checkbox__input",...$(y,r)}),m.jsx(O.span,{__css:{...MP,...i.control},className:"chakra-checkbox__control",...A(),children:D}),c&&m.jsx(O.span,{className:"chakra-checkbox__label",...T(),__css:{marginStart:s,...i.label},children:c})]})});Ip.displayName="Checkbox";function Za(e,t,r,n){const o=Ar(r);return g.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!r||!i))return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,n)}}function OP(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function DP(e){var t;if(!OP(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function FP(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+o+n)}function VP(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function Bp(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:DP(e)&&FP(e)?e:Bp(VP(e))}var[LP,NP]=St({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Op=te(function(t,r){const n=lr("Input",t),{children:o,className:i,...a}=ze(t),s=de("chakra-input__group",i),l={},c=iP(o),u=n.field;c.forEach(f=>{var h,v;n&&(u&&f.type.id==="InputLeftElement"&&(l.paddingStart=(h=u.height)!=null?h:u.h),u&&f.type.id==="InputRightElement"&&(l.paddingEnd=(v=u.height)!=null?v:u.h),f.type.id==="InputRightAddon"&&(l.borderEndRadius=0),f.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const d=c.map(f=>{var h,v;const b=Gf({size:((h=f.props)==null?void 0:h.size)||t.size,variant:((v=f.props)==null?void 0:v.variant)||t.variant});return f.type.id!=="Input"?g.cloneElement(f,b):g.cloneElement(f,Object.assign(b,l,f.props))});return m.jsx(O.div,{className:s,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...a,children:m.jsx(LP,{value:n,children:d})})});Op.displayName="InputGroup";var WP=O("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),oa=te(function(t,r){var n,o;const{placement:i="left",...a}=t,s=NP(),l=s.field,u={[i==="left"?"insetStart":"insetEnd"]:"0",width:(n=l==null?void 0:l.height)!=null?n:l==null?void 0:l.h,height:(o=l==null?void 0:l.height)!=null?o:l==null?void 0:l.h,fontSize:l==null?void 0:l.fontSize,...s.element};return m.jsx(WP,{ref:r,__css:u,...a})});oa.id="InputElement";oa.displayName="InputElement";var Dp=te(function(t,r){const{className:n,...o}=t,i=de("chakra-input__left-element",n);return m.jsx(oa,{ref:r,placement:"left",className:i,...o})});Dp.id="InputLeftElement";Dp.displayName="InputLeftElement";var Ml=te(function(t,r){const{className:n,...o}=t,i=de("chakra-input__right-element",n);return m.jsx(oa,{ref:r,placement:"right",className:i,...o})});Ml.id="InputRightElement";Ml.displayName="InputRightElement";var jl=te(function(t,r){const{htmlSize:n,...o}=t,i=lr("Input",o),a=ze(o),s=Mp(a),l=de("chakra-input",t.className);return m.jsx(O.input,{size:n,...s,__css:i.field,ref:r,className:l})});jl.displayName="Input";jl.id="Input";var Fp=te(function(t,r){const n=et("Link",t),{className:o,isExternal:i,...a}=ze(t);return m.jsx(O.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:r,className:de("chakra-link",o),...a,__css:n})});Fp.displayName="Link";var qt=te(function(t,r){const n=et("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=ze(t),c=Gf({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return m.jsx(O.p,{ref:r,className:de("chakra-text",t.className),...c,...l,__css:n})});qt.displayName="Text";var $i=te(function(t,r){const n=et("Heading",t),{className:o,...i}=ze(t);return m.jsx(O.h2,{ref:r,className:de("chakra-heading",t.className),...i,__css:n})});$i.displayName="Heading";var Te=O("div");Te.displayName="Box";var Vp=te(function(t,r){const{size:n,centerContent:o=!0,...i}=t,a=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return m.jsx(Te,{ref:r,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...i})});Vp.displayName="Square";var HP=te(function(t,r){const{size:n,...o}=t;return m.jsx(Vp,{size:n,ref:r,borderRadius:"9999px",...o})});HP.displayName="Circle";var Lp=te(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:c,...u}=et("Divider",t),{className:d,orientation:f="horizontal",__css:h,...v}=ze(t),b={vertical:{borderLeftWidth:n||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||s||"1px",width:"100%"}};return m.jsx(O.hr,{ref:r,"aria-orientation":f,...v,__css:{...u,border:"0",borderColor:c,borderStyle:l,...b[f],...h},className:de("chakra-divider",d)})});Lp.displayName="Divider";var ur=te(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:c,...u}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c};return m.jsx(O.div,{ref:r,__css:d,...u})});ur.displayName="Flex";var Hr=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),De={arrowShadowColor:Hr("--popper-arrow-shadow-color"),arrowSize:Hr("--popper-arrow-size","8px"),arrowSizeHalf:Hr("--popper-arrow-size-half"),arrowBg:Hr("--popper-arrow-bg"),transformOrigin:Hr("--popper-transform-origin"),arrowOffset:Hr("--popper-arrow-offset")};function UP(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var qP={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},GP=e=>qP[e],xd={scroll:!0,resize:!0};function KP(e){let t;return typeof e=="object"?t={enabled:!0,options:{...xd,...e}}:t={enabled:e,options:xd},t}var XP={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},YP={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Sd(e)},effect:({state:e})=>()=>{Sd(e)}},Sd=e=>{e.elements.popper.style.setProperty(De.transformOrigin.var,GP(e.placement))},ZP={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{JP(e)}},JP=e=>{var t;if(!e.placement)return;const r=QP(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:De.arrowSize.varRef,height:De.arrowSize.varRef,zIndex:-1});const n={[De.arrowSizeHalf.var]:`calc(${De.arrowSize.varRef} / 2 - 1px)`,[De.arrowOffset.var]:`calc(${De.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},QP=e=>{if(e.startsWith("top"))return{property:"bottom",value:De.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:De.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:De.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:De.arrowOffset.varRef}},eT={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{wd(e)},effect:({state:e})=>()=>{wd(e)}},wd=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=UP(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:De.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},tT={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},rT={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function nT(e,t="ltr"){var r,n;const o=((r=tT[e])==null?void 0:r[t])||e;return t==="ltr"?o:(n=rT[e])!=null?n:o}var Ye="top",mt="bottom",vt="right",Ze="left",zl="auto",_o=[Ye,mt,vt,Ze],hn="start",fo="end",oT="clippingParents",Np="viewport",Rn="popper",iT="reference",kd=_o.reduce(function(e,t){return e.concat([t+"-"+hn,t+"-"+fo])},[]),Wp=[].concat(_o,[zl]).reduce(function(e,t){return e.concat([t,t+"-"+hn,t+"-"+fo])},[]),aT="beforeRead",sT="read",lT="afterRead",cT="beforeMain",uT="main",dT="afterMain",fT="beforeWrite",hT="write",pT="afterWrite",mT=[aT,sT,lT,cT,uT,dT,fT,hT,pT];function zt(e){return e?(e.nodeName||"").toLowerCase():null}function it(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ir(e){var t=it(e).Element;return e instanceof t||e instanceof Element}function pt(e){var t=it(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Il(e){if(typeof ShadowRoot>"u")return!1;var t=it(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function vT(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!pt(i)||!zt(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function gT(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!pt(o)||!zt(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const bT={name:"applyStyles",enabled:!0,phase:"write",fn:vT,effect:gT,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var Er=Math.max,Ai=Math.min,pn=Math.round;function js(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Hp(){return!/^((?!chrome|android).)*safari/i.test(js())}function mn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&pt(e)&&(o=e.offsetWidth>0&&pn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pn(n.height)/e.offsetHeight||1);var a=Ir(e)?it(e):window,s=a.visualViewport,l=!Hp()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/o,u=(n.top+(l&&s?s.offsetTop:0))/i,d=n.width/o,f=n.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Bl(e){var t=mn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Up(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Il(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Gt(e){return it(e).getComputedStyle(e)}function yT(e){return["table","td","th"].indexOf(zt(e))>=0}function dr(e){return((Ir(e)?e.ownerDocument:e.document)||window.document).documentElement}function ia(e){return zt(e)==="html"?e:e.assignedSlot||e.parentNode||(Il(e)?e.host:null)||dr(e)}function Cd(e){return!pt(e)||Gt(e).position==="fixed"?null:e.offsetParent}function xT(e){var t=/firefox/i.test(js()),r=/Trident/i.test(js());if(r&&pt(e)){var n=Gt(e);if(n.position==="fixed")return null}var o=ia(e);for(Il(o)&&(o=o.host);pt(o)&&["html","body"].indexOf(zt(o))<0;){var i=Gt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Po(e){for(var t=it(e),r=Cd(e);r&&yT(r)&&Gt(r).position==="static";)r=Cd(r);return r&&(zt(r)==="html"||zt(r)==="body"&&Gt(r).position==="static")?t:r||xT(e)||t}function Ol(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zn(e,t,r){return Er(e,Ai(t,r))}function ST(e,t,r){var n=Zn(e,t,r);return n>r?r:n}function qp(){return{top:0,right:0,bottom:0,left:0}}function Gp(e){return Object.assign({},qp(),e)}function Kp(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var wT=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Gp(typeof t!="number"?t:Kp(t,_o))};function kT(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Mt(r.placement),l=Ol(s),c=[Ze,vt].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=wT(o.padding,r),f=Bl(i),h=l==="y"?Ye:Ze,v=l==="y"?mt:vt,b=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],y=a[l]-r.rects.reference[l],k=Po(i),w=k?l==="y"?k.clientHeight||0:k.clientWidth||0:0,C=b/2-y/2,P=d[h],$=w-f[u]-d[v],A=w/2-f[u]/2+C,T=Zn(P,A,$),E=l;r.modifiersData[n]=(t={},t[E]=T,t.centerOffset=T-A,t)}}function CT(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Up(t.elements.popper,o)&&(t.elements.arrow=o))}const _T={name:"arrow",enabled:!0,phase:"main",fn:kT,effect:CT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vn(e){return e.split("-")[1]}var PT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function TT(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:pn(r*o)/o||0,y:pn(n*o)/o||0}}function _d(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,v=a.y,b=v===void 0?0:v,y=typeof u=="function"?u({x:h,y:b}):{x:h,y:b};h=y.x,b=y.y;var k=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),C=Ze,P=Ye,$=window;if(c){var A=Po(r),T="clientHeight",E="clientWidth";if(A===it(r)&&(A=dr(r),Gt(A).position!=="static"&&s==="absolute"&&(T="scrollHeight",E="scrollWidth")),A=A,o===Ye||(o===Ze||o===vt)&&i===fo){P=mt;var M=d&&A===$&&$.visualViewport?$.visualViewport.height:A[T];b-=M-n.height,b*=l?1:-1}if(o===Ze||(o===Ye||o===mt)&&i===fo){C=vt;var R=d&&A===$&&$.visualViewport?$.visualViewport.width:A[E];h-=R-n.width,h*=l?1:-1}}var D=Object.assign({position:s},c&&PT),X=u===!0?TT({x:h,y:b},it(r)):{x:h,y:b};if(h=X.x,b=X.y,l){var J;return Object.assign({},D,(J={},J[P]=w?"0":"",J[C]=k?"0":"",J.transform=($.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",J))}return Object.assign({},D,(t={},t[P]=w?b+"px":"",t[C]=k?h+"px":"",t.transform="",t))}function $T(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Mt(t.placement),variation:vn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_d(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_d(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const AT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$T,data:{}};var Go={passive:!0};function ET(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,l=it(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",r.update,Go)}),s&&l.addEventListener("resize",r.update,Go),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Go)}),s&&l.removeEventListener("resize",r.update,Go)}}const RT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ET,data:{}};var MT={left:"right",right:"left",bottom:"top",top:"bottom"};function ci(e){return e.replace(/left|right|bottom|top/g,function(t){return MT[t]})}var jT={start:"end",end:"start"};function Pd(e){return e.replace(/start|end/g,function(t){return jT[t]})}function Dl(e){var t=it(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Fl(e){return mn(dr(e)).left+Dl(e).scrollLeft}function zT(e,t){var r=it(e),n=dr(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Hp();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Fl(e),y:l}}function IT(e){var t,r=dr(e),n=Dl(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Er(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Er(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Fl(e),l=-n.scrollTop;return Gt(o||r).direction==="rtl"&&(s+=Er(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Vl(e){var t=Gt(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Xp(e){return["html","body","#document"].indexOf(zt(e))>=0?e.ownerDocument.body:pt(e)&&Vl(e)?e:Xp(ia(e))}function Jn(e,t){var r;t===void 0&&(t=[]);var n=Xp(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=it(n),a=o?[i].concat(i.visualViewport||[],Vl(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Jn(ia(a)))}function zs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function BT(e,t){var r=mn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Td(e,t,r){return t===Np?zs(zT(e,r)):Ir(t)?BT(t,r):zs(IT(dr(e)))}function OT(e){var t=Jn(ia(e)),r=["absolute","fixed"].indexOf(Gt(e).position)>=0,n=r&&pt(e)?Po(e):e;return Ir(n)?t.filter(function(o){return Ir(o)&&Up(o,n)&&zt(o)!=="body"}):[]}function DT(e,t,r,n){var o=t==="clippingParents"?OT(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(l,c){var u=Td(e,c,n);return l.top=Er(u.top,l.top),l.right=Ai(u.right,l.right),l.bottom=Ai(u.bottom,l.bottom),l.left=Er(u.left,l.left),l},Td(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Yp(e){var t=e.reference,r=e.element,n=e.placement,o=n?Mt(n):null,i=n?vn(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case Ye:l={x:a,y:t.y-r.height};break;case mt:l={x:a,y:t.y+t.height};break;case vt:l={x:t.x+t.width,y:s};break;case Ze:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Ol(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case hn:l[c]=l[c]-(t[u]/2-r[u]/2);break;case fo:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function ho(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?oT:s,c=r.rootBoundary,u=c===void 0?Np:c,d=r.elementContext,f=d===void 0?Rn:d,h=r.altBoundary,v=h===void 0?!1:h,b=r.padding,y=b===void 0?0:b,k=Gp(typeof y!="number"?y:Kp(y,_o)),w=f===Rn?iT:Rn,C=e.rects.popper,P=e.elements[v?w:f],$=DT(Ir(P)?P:P.contextElement||dr(e.elements.popper),l,u,a),A=mn(e.elements.reference),T=Yp({reference:A,element:C,strategy:"absolute",placement:o}),E=zs(Object.assign({},C,T)),M=f===Rn?E:A,R={top:$.top-M.top+k.top,bottom:M.bottom-$.bottom+k.bottom,left:$.left-M.left+k.left,right:M.right-$.right+k.right},D=e.modifiersData.offset;if(f===Rn&&D){var X=D[o];Object.keys(R).forEach(function(J){var N=[vt,mt].indexOf(J)>=0?1:-1,Y=[Ye,mt].indexOf(J)>=0?"y":"x";R[J]+=X[Y]*N})}return R}function FT(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Wp:l,u=vn(n),d=u?s?kd:kd.filter(function(v){return vn(v)===u}):_o,f=d.filter(function(v){return c.indexOf(v)>=0});f.length===0&&(f=d);var h=f.reduce(function(v,b){return v[b]=ho(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[Mt(b)],v},{});return Object.keys(h).sort(function(v,b){return h[v]-h[b]})}function VT(e){if(Mt(e)===zl)return[];var t=ci(e);return[Pd(e),t,Pd(t)]}function LT(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,b=r.allowedAutoPlacements,y=t.options.placement,k=Mt(y),w=k===y,C=l||(w||!v?[ci(y)]:VT(y)),P=[y].concat(C).reduce(function(Q,ce){return Q.concat(Mt(ce)===zl?FT(t,{placement:ce,boundary:u,rootBoundary:d,padding:c,flipVariations:v,allowedAutoPlacements:b}):ce)},[]),$=t.rects.reference,A=t.rects.popper,T=new Map,E=!0,M=P[0],R=0;R=0,Y=N?"width":"height",W=ho(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),H=N?J?vt:Ze:J?mt:Ye;$[Y]>A[Y]&&(H=ci(H));var fe=ci(H),ye=[];if(i&&ye.push(W[X]<=0),s&&ye.push(W[H]<=0,W[fe]<=0),ye.every(function(Q){return Q})){M=D,E=!1;break}T.set(D,ye)}if(E)for(var Fe=v?3:1,U=function(ce){var ge=P.find(function(Ve){var ke=T.get(Ve);if(ke)return ke.slice(0,ce).every(function(qe){return qe})});if(ge)return M=ge,"break"},xe=Fe;xe>0;xe--){var L=U(xe);if(L==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const NT={name:"flip",enabled:!0,phase:"main",fn:LT,requiresIfExists:["offset"],data:{_skip:!1}};function $d(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ad(e){return[Ye,vt,mt,Ze].some(function(t){return e[t]>=0})}function WT(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ho(t,{elementContext:"reference"}),s=ho(t,{altBoundary:!0}),l=$d(a,n),c=$d(s,o,i),u=Ad(l),d=Ad(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const HT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:WT};function UT(e,t,r){var n=Mt(e),o=[Ze,Ye].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ze,vt].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function qT(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=Wp.reduce(function(u,d){return u[d]=UT(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const GT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qT};function KT(e){var t=e.state,r=e.name;t.modifiersData[r]=Yp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const XT={name:"popperOffsets",enabled:!0,phase:"read",fn:KT,data:{}};function YT(e){return e==="x"?"y":"x"}function ZT(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,h=f===void 0?!0:f,v=r.tetherOffset,b=v===void 0?0:v,y=ho(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),k=Mt(t.placement),w=vn(t.placement),C=!w,P=Ol(k),$=YT(P),A=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,M=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,R=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,X={x:0,y:0};if(A){if(i){var J,N=P==="y"?Ye:Ze,Y=P==="y"?mt:vt,W=P==="y"?"height":"width",H=A[P],fe=H+y[N],ye=H-y[Y],Fe=h?-E[W]/2:0,U=w===hn?T[W]:E[W],xe=w===hn?-E[W]:-T[W],L=t.elements.arrow,Q=h&&L?Bl(L):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qp(),ge=ce[N],Ve=ce[Y],ke=Zn(0,T[W],Q[W]),qe=C?T[W]/2-Fe-ke-ge-R.mainAxis:U-ke-ge-R.mainAxis,Ge=C?-T[W]/2+Fe+ke+Ve+R.mainAxis:xe+ke+Ve+R.mainAxis,Ae=t.elements.arrow&&Po(t.elements.arrow),re=Ae?P==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,Ee=(J=D==null?void 0:D[P])!=null?J:0,fr=H+qe-Ee-re,V=H+Ge-Ee,Ie=Zn(h?Ai(fe,fr):fe,H,h?Er(ye,V):ye);A[P]=Ie,X[P]=Ie-H}if(s){var Ne,Xt=P==="x"?Ye:Ze,sa=P==="x"?mt:vt,st=A[$],Yt=$==="y"?"height":"width",hr=st+y[Xt],lt=st-y[sa],Fr=[Ye,Ze].indexOf(k)!==-1,xn=(Ne=D==null?void 0:D[$])!=null?Ne:0,To=Fr?hr:st-T[Yt]-E[Yt]-xn+R.altAxis,$o=Fr?st+T[Yt]+E[Yt]-xn-R.altAxis:lt,pr=h&&Fr?ST(To,st,$o):Zn(h?To:hr,st,h?$o:lt);A[$]=pr,X[$]=pr-st}t.modifiersData[n]=X}}const JT={name:"preventOverflow",enabled:!0,phase:"main",fn:ZT,requiresIfExists:["offset"]};function QT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function e$(e){return e===it(e)||!pt(e)?Dl(e):QT(e)}function t$(e){var t=e.getBoundingClientRect(),r=pn(t.width)/e.offsetWidth||1,n=pn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function r$(e,t,r){r===void 0&&(r=!1);var n=pt(t),o=pt(t)&&t$(t),i=dr(t),a=mn(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((zt(t)!=="body"||Vl(i))&&(s=e$(t)),pt(t)?(l=mn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Fl(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function n$(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function o$(e){var t=n$(e);return mT.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function i$(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function a$(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ed={placement:"bottom",modifiers:[],strategy:"absolute"};function Rd(){for(var e=arguments.length,t=new Array(e),r=0;r{}),C=g.useCallback(()=>{var R;!t||!v.current||!b.current||((R=w.current)==null||R.call(w),y.current=c$(v.current,b.current,{placement:k,modifiers:[eT,ZP,YP,{...XP,enabled:!!f},{name:"eventListeners",...KP(a)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...r??[]],strategy:o}),y.current.forceUpdate(),w.current=y.current.destroy)},[k,t,r,f,a,i,s,l,c,d,u,o]);g.useEffect(()=>()=>{var R;!v.current&&!b.current&&((R=y.current)==null||R.destroy(),y.current=null)},[]);const P=g.useCallback(R=>{v.current=R,C()},[C]),$=g.useCallback((R={},D=null)=>({...R,ref:sr(P,D)}),[P]),A=g.useCallback(R=>{b.current=R,C()},[C]),T=g.useCallback((R={},D=null)=>({...R,ref:sr(A,D),style:{...R.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,A,f]),E=g.useCallback((R={},D=null)=>{const{size:X,shadowColor:J,bg:N,style:Y,...W}=R;return{...W,ref:D,"data-popper-arrow":"",style:d$(R)}},[]),M=g.useCallback((R={},D=null)=>({...R,ref:D,"data-popper-arrow-inner":""}),[]);return{update(){var R;(R=y.current)==null||R.update()},forceUpdate(){var R;(R=y.current)==null||R.forceUpdate()},transformOrigin:De.transformOrigin.varRef,referenceRef:P,popperRef:A,getPopperProps:T,getArrowProps:E,getArrowInnerProps:M,getReferenceProps:$}}function d$(e){const{size:t,shadowColor:r,bg:n,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}function f$(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,i=Ar(r),a=Ar(t),[s,l]=g.useState(e.defaultIsOpen||!1),c=n!==void 0?n:s,u=n!==void 0,d=g.useId(),f=o??`disclosure-${d}`,h=g.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),v=g.useCallback(()=>{u||l(!0),i==null||i()},[u,i]),b=g.useCallback(()=>{c?h():v()},[c,v,h]);function y(w={}){return{...w,"aria-expanded":c,"aria-controls":f,onClick(C){var P;(P=w.onClick)==null||P.call(w,C),b()}}}function k(w={}){return{...w,hidden:!c,id:f}}return{isOpen:c,onOpen:v,onClose:h,onToggle:b,isControlled:u,getButtonProps:y,getDisclosureProps:k}}var Zp=te(function(t,r){const{children:n,placeholder:o,className:i,...a}=t;return m.jsxs(O.select,{...a,ref:r,className:de("chakra-select",i),children:[o&&m.jsx("option",{value:"",children:o}),n]})});Zp.displayName="SelectField";function h$(e,t){const r={},n={};for(const[o,i]of Object.entries(e))t.includes(o)?r[o]=i:n[o]=i;return[r,n]}var Jp=te((e,t)=>{var r;const n=lr("Select",e),{rootProps:o,placeholder:i,icon:a,color:s,height:l,h:c,minH:u,minHeight:d,iconColor:f,iconSize:h,...v}=ze(e),[b,y]=h$(v,db),k=Mp(y),w={width:"100%",height:"fit-content",position:"relative",color:s},C={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(r=n.field)==null?void 0:r._focus}};return m.jsxs(O.div,{className:"chakra-select__wrapper",__css:w,...b,...o,children:[m.jsx(Zp,{ref:t,height:c??l,minH:u??d,placeholder:i,...k,__css:C,children:e.children}),m.jsx(Qp,{"data-disabled":G(k.disabled),...(f||s)&&{color:f||s},__css:n.icon,...h&&{fontSize:h},children:a})]})});Jp.displayName="Select";var p$=e=>m.jsx("svg",{viewBox:"0 0 24 24",...e,children:m.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),m$=O("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Qp=e=>{const{children:t=m.jsx(p$,{}),...r}=e,n=g.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return m.jsx(m$,{...r,className:"chakra-select__icon-wrapper",children:g.isValidElement(t)?n:null})};Qp.displayName="SelectIcon";function v$(){const e=g.useRef(!0);return g.useEffect(()=>{e.current=!1},[]),e.current}function g$(e){const t=g.useRef();return g.useEffect(()=>{t.current=e},[e]),t.current}var b$=O("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Is=I("skeleton-start-color"),Bs=I("skeleton-end-color"),y$=bn({from:{opacity:0},to:{opacity:1}}),x$=bn({from:{borderColor:Is.reference,background:Is.reference},to:{borderColor:Bs.reference,background:Bs.reference}}),em=te((e,t)=>{const r={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},n=et("Skeleton",r),o=v$(),{startColor:i="",endColor:a="",isLoaded:s,fadeDuration:l,speed:c,className:u,fitContent:d,...f}=ze(r),[h,v]=og("colors",[i,a]),b=g$(s),y=de("chakra-skeleton",u),k={...h&&{[Is.variable]:h},...v&&{[Bs.variable]:v}};if(s){const w=o||b?"none":`${y$} ${l}s`;return m.jsx(O.div,{ref:t,className:y,__css:{animation:w},...f})}return m.jsx(b$,{ref:t,className:y,...f,__css:{width:d?"fit-content":void 0,...n,...k,_dark:{...n._dark,...k},animation:`${c}s linear infinite alternate ${x$}`}})});em.displayName="Skeleton";var tm=({size:e="2rem",...t})=>m.jsx(em,{borderRadius:"full",boxSize:e,...t});tm.displayName="SkeletonCircle";var rm=te(function(t,r){const n=lr("Switch",t),{spacing:o="0.5rem",children:i,...a}=ze(t),{getIndicatorProps:s,getInputProps:l,getCheckboxProps:c,getRootProps:u,getLabelProps:d}=zp(a),f=g.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),h=g.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),v=g.useMemo(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return m.jsxs(O.label,{...u(),className:de("chakra-switch",t.className),__css:f,children:[m.jsx("input",{className:"chakra-switch__input",...l({},r)}),m.jsx(O.span,{...c(),className:"chakra-switch__track",__css:h,children:m.jsx(O.span,{__css:n.thumb,className:"chakra-switch__thumb",...s()})}),i&&m.jsx(O.span,{className:"chakra-switch__label",...d(),__css:v,children:i})]})});rm.displayName="Switch";var S$={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Os=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},ui=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function w$(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:u,id:d,isOpen:f,defaultIsOpen:h,arrowSize:v=10,arrowShadowColor:b,arrowPadding:y,modifiers:k,isDisabled:w,gutter:C,offset:P,direction:$,...A}=e,{isOpen:T,onOpen:E,onClose:M}=f$({isOpen:f,defaultIsOpen:h,onOpen:l,onClose:c}),{referenceRef:R,getPopperProps:D,getArrowInnerProps:X,getArrowProps:J}=u$({enabled:T,placement:u,arrowPadding:y,modifiers:k,gutter:C,offset:P,direction:$}),N=g.useId(),W=`tooltip-${d??N}`,H=g.useRef(null),fe=g.useRef(),ye=g.useCallback(()=>{fe.current&&(clearTimeout(fe.current),fe.current=void 0)},[]),Fe=g.useRef(),U=g.useCallback(()=>{Fe.current&&(clearTimeout(Fe.current),Fe.current=void 0)},[]),xe=g.useCallback(()=>{U(),M()},[M,U]),L=k$(H,xe),Q=g.useCallback(()=>{if(!w&&!fe.current){T&&L();const re=ui(H);fe.current=re.setTimeout(E,t)}},[L,w,T,E,t]),ce=g.useCallback(()=>{ye();const re=ui(H);Fe.current=re.setTimeout(xe,r)},[r,xe,ye]),ge=g.useCallback(()=>{T&&n&&ce()},[n,ce,T]),Ve=g.useCallback(()=>{T&&a&&ce()},[a,ce,T]),ke=g.useCallback(re=>{T&&re.key==="Escape"&&ce()},[T,ce]);Za(()=>Os(H),"keydown",s?ke:void 0),Za(()=>{if(!i)return null;const re=H.current;if(!re)return null;const Ee=Bp(re);return Ee.localName==="body"?ui(H):Ee},"scroll",()=>{T&&i&&xe()},{passive:!0,capture:!0}),g.useEffect(()=>{w&&(ye(),T&&M())},[w,T,M,ye]),g.useEffect(()=>()=>{ye(),U()},[ye,U]),Za(()=>H.current,"pointerleave",ce);const qe=g.useCallback((re={},Ee=null)=>({...re,ref:sr(H,Ee,R),onPointerEnter:Re(re.onPointerEnter,V=>{V.pointerType!=="touch"&&Q()}),onClick:Re(re.onClick,ge),onPointerDown:Re(re.onPointerDown,Ve),onFocus:Re(re.onFocus,Q),onBlur:Re(re.onBlur,ce),"aria-describedby":T?W:void 0}),[Q,ce,Ve,T,W,ge,R]),Ge=g.useCallback((re={},Ee=null)=>D({...re,style:{...re.style,[De.arrowSize.var]:v?`${v}px`:void 0,[De.arrowShadowColor.var]:b}},Ee),[D,v,b]),Ae=g.useCallback((re={},Ee=null)=>{const fr={...re.style,position:"relative",transformOrigin:De.transformOrigin.varRef};return{ref:Ee,...A,...re,id:W,role:"tooltip",style:fr}},[A,W]);return{isOpen:T,show:Q,hide:ce,getTriggerProps:qe,getTooltipProps:Ae,getTooltipPositionerProps:Ge,getArrowProps:J,getArrowInnerProps:X}}var Ja="chakra-ui:close-tooltip";function k$(e,t){return g.useEffect(()=>{const r=Os(e);return r.addEventListener(Ja,t),()=>r.removeEventListener(Ja,t)},[t,e]),()=>{const r=Os(e),n=ui(e);r.dispatchEvent(new n.CustomEvent(Ja))}}function C$(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function _$(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}var P$=O(gp.div),po=te((e,t)=>{var r,n;const o=et("Tooltip",e),i=ze(e),a=Js(),{children:s,label:l,shouldWrapChildren:c,"aria-label":u,hasArrow:d,bg:f,portalProps:h,background:v,backgroundColor:b,bgColor:y,motionProps:k,...w}=i,C=(n=(r=v??b)!=null?r:f)!=null?n:y;if(C){o.bg=C;const D=_b(a,"colors",C);o[De.arrowBg.var]=D}const P=w$({...w,direction:a.direction}),$=typeof s=="string"||c;let A;if($)A=m.jsx(O.span,{display:"inline-block",tabIndex:0,...P.getTriggerProps(),children:s});else{const D=g.Children.only(s);A=g.cloneElement(D,P.getTriggerProps(D.props,D.ref))}const T=!!u,E=P.getTooltipProps({},t),M=T?C$(E,["role","id"]):E,R=_$(E,["role","id"]);return l?m.jsxs(m.Fragment,{children:[A,m.jsx(yp,{children:P.isOpen&&m.jsx(vo,{...h,children:m.jsx(O.div,{...P.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:m.jsxs(P$,{variants:S$,initial:"exit",animate:"enter",exit:"exit",...k,...M,__css:o,children:[l,T&&m.jsx(O.span,{srOnly:!0,...R,children:u}),d&&m.jsx(O.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:m.jsx(O.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):m.jsx(m.Fragment,{children:s})});po.displayName="Tooltip";var T$=({colorMode:e})=>{const{setColorMode:t}=Ui();return g.useEffect(()=>{t(e)},[e,t]),null},$$=e=>m.jsxs(Te,{as:"svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[m.jsx("rect",{width:"18",height:"18",rx:"9",fill:"#0376C9"}),m.jsx("path",{d:"M12.9244 5.66405L9.56777 3.89204C9.21443 3.7033 8.78615 3.7033 8.43281 3.89204L5.07614 5.66405C4.82988 5.79511 4.67998 6.04676 4.67998 6.3351C4.67998 6.61821 4.82988 6.87509 5.07614 7.00616L8.43281 8.77817C8.60948 8.87253 8.80756 8.91972 9.00029 8.91972C9.19302 8.91972 9.3911 8.87253 9.56777 8.77817L12.9244 7.00616C13.1707 6.87509 13.3206 6.62345 13.3206 6.3351C13.3206 6.04676 13.1707 5.79511 12.9244 5.66405Z",fill:"white"}),m.jsx("path",{d:"M7.9921 9.24725L4.94137 7.62741C4.70005 7.51138 4.34018 7.6017 4.11495 7.73883C3.88435 7.88123 3.75029 8.11857 3.75029 8.38228V11.2884C3.75029 11.7894 4.03451 12.2737 4.49033 12.5005L7.61672 14.1697C7.72397 14.2225 7.84195 14.2488 7.95993 14.2488C8.09935 14.2488 8.23878 14.2119 8.36212 14.1381C8.59271 14.0009 8.72678 13.5985 8.72678 13.3347V10.4287C8.73214 9.92234 8.44792 9.46876 7.9921 9.24725Z",fill:"white"}),m.jsx("path",{d:"M13.8856 7.74093C13.655 7.60384 13.293 7.50615 13.0571 7.62741L10.0138 9.24884C9.55795 9.47556 9.27373 9.92372 9.27373 10.4299V13.335C9.27373 13.5986 9.40779 14.0027 9.63839 14.1398C9.76173 14.2136 9.90116 14.2505 10.0406 14.2505C10.1586 14.2505 10.2765 14.2241 10.3838 14.1714L13.5102 12.5005C13.9661 12.2738 14.2503 11.7954 14.2503 11.2893V8.38416C14.2503 8.12054 14.1162 7.88328 13.8856 7.74093Z",fill:"white"})]}),A$=({children:e})=>m.jsxs(Te,{margin:"4",border:"muted",borderRadius:"lg",background:"background.default",children:[m.jsxs(ur,{padding:"1",gap:"1",borderBottom:"muted",alignItems:"center",children:[m.jsx($$,{margin:"3px"}),m.jsxs(qt,{fontSize:"xs",lineHeight:"shorter",children:["Content from"," ",m.jsx(Te,{as:"span",fontWeight:"500",children:"Title"})]})]}),m.jsx(Te,{margin:"4",children:e})]}),E$=()=>m.jsxs(ur,{as:"header",padding:"4",gap:"4",background:"background.default",boxShadow:"md",clipPath:"inset(0px 0px -16px 0px)",children:[m.jsx(tm,{width:"40px",height:"40px"}),m.jsxs(Te,{alignSelf:"center",children:[m.jsx($i,{as:"h1",fontSize:"sm",fontWeight:"500",lineHeight:"short",children:"Title"}),m.jsx($i,{as:"h2",fontSize:"xs",fontWeight:"400",lineHeight:"shorter",color:"text.alternative",children:"@organization/lorem-ipsum"})]})]}),Ds=(e,t)=>Object.hasOwnProperty.call(e,t);function R$(e){if(typeof e!="object"||e===null)return!1;try{let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch{return!1}}function M$(e){var t,r;return typeof((r=(t=e==null?void 0:e.prototype)==null?void 0:t.constructor)==null?void 0:r.name)=="string"}function j$(e,t){return M$(e)?new e({message:t}):e({message:t})}var z$=class extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}};function I$(e,t="Assertion failed.",r=z$){if(!e)throw t instanceof Error?t:j$(r,t)}function nm(e){return Ds(e.props,"children")}function B$(e){return!!e&&e!==!0}function O$(e){if(nm(e)){if(Array.isArray(e.props.children))return e.props.children.filter(B$).flat(1/0);if(e.props.children)return[e.props.children]}return[]}function Fs(e,t,r=0){if(Array.isArray(e)){for(const o of e){const i=Fs(o,t,r);if(i!==void 0)return i}return}const n=t(e,r);if(n!==void 0)return n;if(nm(e)){const o=O$(e);for(const i of o)if(R$(i)){const a=Fs(i,t,r+1);if(a!==void 0)return a}}}function D$(e){return Fs(e,r=>{if(r.type==="Footer")return r})}var F$=({children:e,Renderer:t})=>{const r=D$(e);return m.jsxs(ur,{direction:"column",width:"360px",height:"600px",background:"background.alternative",boxShadow:"md",children:[m.jsx(E$,{}),m.jsx(A$,{children:m.jsx(t,{id:"extension",element:e,overrides:{Footer:()=>null}})}),r&&m.jsx(t,{id:"footer",element:r})]})},V$=({content:e,children:t,Renderer:r})=>m.jsx(po,{hasArrow:!0,label:m.jsx(r,{id:"tooltip",element:e}),children:m.jsx(Te,{width:"fit-content",children:m.jsx(r,{id:"text",element:t})})}),L$=I("popper-arrow-bg"),N$={baseStyle:{background:"background.default",color:"text.default",boxShadow:"md",[L$.variable]:"colors.background.default"},sizes:{sm:{fontSize:"xs",fontWeight:"normal",lineHeight:"short"}},defaultProps:{size:"sm"}},W$=Object.defineProperty,we=(e,t)=>{for(var r in t)W$(e,r,{get:t[r],enumerable:!0})},om={};we(om,{Component:()=>V$,styles:()=>N$});var H$=wt({displayName:"ExportIcon",viewBox:"0 0 512 512",d:"m313 469l-114 0c-108 0-156-48-156-156l0-114c0-108 48-156 156-156l39 0c13 0 23 9 23 23 0 13-10 23-23 23l-39 0c-83 0-110 27-110 110l0 114c0 83 27 110 110 110l114 0c83 0 110-27 110-110l0-39c0-13 10-23 23-23 14 0 23 10 23 23l0 39c0 108-48 156-156 156z m-39-208c-7 0-11-3-16-7-9-9-9-23 0-32l133-133-36 0c-14 0-23-10-23-23 0-14 9-23 23-23l91 0c14 0 23 9 23 23l0 91c0 14-9 23-23 23-13 0-23-9-23-23l0-36-133 133c-4 4-9 7-16 7z",defaultProps:{width:"14px",height:"14px"}}),U$=({href:e,children:t,Renderer:r})=>m.jsxs(Fp,{target:"_blank",href:e,children:[m.jsx(r,{id:"link",element:t}),m.jsx(H$,{})]}),q$={baseStyle:{color:"primary.default",display:"inline-flex",alignItems:"center",gap:"1"}},im={};we(im,{Component:()=>U$,styles:()=>q$});var G$=({value:e,children:t})=>m.jsx("option",{value:e,children:t}),am={};we(am,{Component:()=>G$});var K$=wt({displayName:"QuestionIcon",viewBox:"0 0 512 512",d:"m456 256c0 113-91 205-204 205-114 0-205-92-205-205 0-113 91-205 205-205 113 0 204 92 204 205z m-204-108c-33 0-63 24-63 58 0 9 8 17 17 17 9 0 17-8 17-17 0-12 11-24 29-24 17 0 28 12 28 24 0 6-4 11-14 17l0 0c-12 8-32 21-32 48l0 5c0 9 8 17 18 17 9 0 17-8 17-17l0-5c0-7 3-12 15-19 11-7 30-20 30-46 0-34-30-58-62-58z m-1 170c-9 0-17 7-17 17 0 9 8 17 17 17l1 0c9 0 17-8 17-17 0-10-8-17-17-17z",defaultProps:{width:"16px",height:"16px"}}),X$=wt({displayName:"WarningIcon",viewBox:"0 0 512 512",d:"m252 51c-113 0-205 92-205 205 0 113 92 205 205 205 112 0 204-92 204-205 0-113-92-205-204-205z m-16 123c0-8 7-15 16-15 8 0 15 7 15 15l0 102c0 9-7 16-15 16-9 0-16-7-16-16z m34 172c-1 2-2 4-4 6-2 2-4 4-7 5-2 1-5 1-7 1-3 0-6 0-8-1-3-1-5-3-7-5-2-2-3-4-4-6-1-3-2-5-2-8 0-3 1-5 2-8 1-2 2-5 4-7 2-1 4-3 7-4 5-2 10-2 15 0 3 1 5 3 7 4 2 2 3 5 4 7 1 3 2 5 2 8 0 3-1 5-2 8z",defaultProps:{width:"16px",height:"16px"}}),Y$=wt({displayName:"DangerIcon",viewBox:"0 0 512 512",d:"m443 342l-126-241c-16-32-40-50-65-50-26 0-50 18-66 50l-126 241c-16 30-18 60-5 83 13 23 38 36 71 36l251 0c33 0 58-13 71-36 13-23 11-53-5-83z m-206-145c0-8 6-15 15-15 8 0 14 7 14 15l0 105c0 8-6 15-14 15-9 0-15-7-15-15z m28 182c-1 1-2 2-3 3-1 0-2 1-3 1-1 1-2 1-4 2-1 0-2 0-3 0-2 0-3 0-4 0-2-1-3-1-4-2-1 0-2-1-3-1-1-1-2-2-3-3-4-4-6-9-6-15 0-5 2-11 6-15 1 0 2-1 3-2 1-1 2-2 3-2 1-1 2-1 4-1 2-1 5-1 7 0 2 0 3 0 4 1 1 0 2 1 3 2 1 1 2 2 3 2 4 4 6 10 6 15 0 6-2 11-6 15z",defaultProps:{width:"12px",height:"12px"}});function Z$(e){switch(e){case"warning":return m.jsx(X$,{});case"critical":return m.jsx(Y$,{});default:return m.jsx(K$,{color:"icon.muted"})}}var J$=({tooltip:e,variant:t})=>e?m.jsx(po,{label:e,placement:"bottom",children:Z$(t)}):null,Q$=({label:e,variant:t="default",tooltip:r,children:n,Renderer:o})=>{const i=et("Row",{variant:t});return m.jsxs(Te,{__css:i,children:[m.jsxs(ur,{alignItems:"center",gap:"1",children:[m.jsx(qt,{fontWeight:"500",children:e}),m.jsx(J$,{tooltip:r,variant:t})]}),m.jsx(o,{id:"row",element:n})]})},e4={baseStyle:{display:"flex",gap:"1",justifyContent:"space-between",borderRadius:"lg",paddingY:"px"},variants:{default:{flexDirection:"row"},warning:{color:"warning.default",background:"warning.muted",paddingX:"2"},critical:{color:"error.default",background:"error.muted",paddingX:"2"}}},sm={};we(sm,{Component:()=>Q$,styles:()=>e4});var t4=({children:e,Renderer:t})=>m.jsx(qt,{children:m.jsx(t,{id:"text",element:e})}),r4={baseStyle:{fontSize:"inherit",lineHeight:"short"}},lm={};we(lm,{Component:()=>t4,styles:()=>r4});var n4=wt({displayName:"ImportIcon",viewBox:"0 0 512 512",d:"m256 64c10 0 18 8 18 18l0 207 30-30c7-7 19-7 26 0 7 7 7 19 0 26l-61 60c-7 7-19 7-26 0l-61-60c-7-7-7-19 0-26 7-7 19-7 26 0l30 30 0-207c0-10 8-18 18-18z m63 140c1-10 10-18 20-17 35 3 64 14 83 37 19 23 26 54 26 92l0 2c0 42-8 76-32 99-23 23-58 31-101 31l-118 0c-43 0-78-8-101-31-24-23-32-57-32-99l0-2c0-38 7-69 25-91 19-23 48-34 83-38 10 0 19 7 20 17 0 9-7 18-17 19-29 3-47 11-57 24-11 13-17 35-17 69l0 2c0 38 7 61 21 74 13 13 36 20 75 20l118 0c39 0 62-7 75-20 14-13 21-36 21-74l0-2c0-35-6-56-17-69-11-13-28-22-58-24-10-1-18-10-17-19z",defaultProps:{width:"20px",height:"20px"}}),o4=({name:e,accept:t,compact:r})=>{const n=et("FileInput",{variant:r?"compact":"default"}),o=g.useRef(null),[i,a]=g.useState(!1),[s,l]=g.useState(null),c=()=>{var v;(v=o.current)==null||v.click()},u=v=>{var y;const b=((y=v.target.files)==null?void 0:y[0])??null;l((b==null?void 0:b.name)??null)},d=v=>{v.preventDefault(),a(!0)},f=v=>{v.preventDefault(),a(!1)},h=v=>{var y,k;v.preventDefault(),a(!1);const b=((k=(y=v.dataTransfer)==null?void 0:y.files)==null?void 0:k[0])??null;l((b==null?void 0:b.name)??null)};return m.jsxs(Te,{__css:n,"data-active":iu(i),"data-selected":iu(!!s),onClick:c,onDragOver:d,onDragLeave:f,onDrop:h,children:[m.jsx("input",{ref:o,type:"file",name:e,onChange:u,accept:t==null?void 0:t.join(","),hidden:!0}),m.jsx(n4,{}),!r&&(s?m.jsx(qt,{isTruncated:!0,children:s}):m.jsx(qt,{children:"Drop your file here"}))]})},i4={baseStyle:{cursor:"pointer",background:"background.alternative",borderRadius:"lg",border:"1px solid",borderColor:"border.default",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"4",gap:"1",textAlign:"center",color:"icon.alternative",fontWeight:"500",_active:{backgroundColor:"background.alternativeHover",color:"primary.default"},_selected:{color:"text.default"}},variants:{compact:{width:"fit-content",height:"fit-content",padding:"1",_selected:{color:"icon.alternative"}}}},cm={};we(cm,{Component:()=>o4,styles:()=>i4});var a4=e=>m.jsx(ko,{flexBasis:0,flexGrow:1,maxWidth:"auto",size:"large",...e,children:"Cancel"}),Md=({children:e,Renderer:t})=>m.jsx(ko,{flexBasis:0,flexGrow:1,maxWidth:"auto",variant:"solid",size:"large",children:m.jsx(t,{id:"button",element:e})}),s4=({children:e,Renderer:t})=>Array.isArray(e)?m.jsx(t,{id:"footer",element:e,overrides:{Button:Md}}):m.jsxs(m.Fragment,{children:[m.jsx(a4,{}),m.jsx(t,{id:"footer",element:e,overrides:{Button:Md}})]}),l4=e=>m.jsx(Te,{padding:"4",gap:"2",display:"flex",background:"background.default",marginTop:"auto",boxShadow:"md",clipPath:"inset(-16px 0px 0px 0px)",children:m.jsx(s4,{...e})}),um={};we(um,{Component:()=>l4});var c4=({name:e,children:t,Renderer:r})=>m.jsx(ur,{as:"form",direction:"column",name:e,gap:"2",children:m.jsx(r,{id:"form",element:t})}),dm={};we(dm,{Component:()=>c4});var u4=({children:e,Renderer:t})=>m.jsx($i,{children:m.jsx(t,{id:"heading",element:e})}),d4={baseStyle:{color:"text.default",fontWeight:"700"},sizes:{md:{fontSize:"md",lineHeight:"base"}},defaultProps:{size:"md"}},fm={};we(fm,{Component:()=>u4,styles:()=>d4});var f4=({name:e,type:t,value:r,placeholder:n})=>m.jsx(jl,{name:e,type:t,defaultValue:r,placeholder:n}),{definePartsStyle:jd,defineMultiStyleConfig:h4}=ee(Tf.keys),p4=h4({baseStyle:jd({field:{color:"text.default",fontSize:"sm",paddingX:"4",paddingY:"2"}}),variants:{outline:jd({field:{background:"background.default",borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:"base",_focus:{outline:"5px auto",outlineColor:"primary.default",outlineOffset:"0"},_placeholder:{color:"text.alternative"},_invalid:{borderColor:"error.default",boxShadow:"none"}}})},defaultProps:{variant:"outline"}}),hm={};we(hm,{Component:()=>f4,styles:()=>p4});var m4=({children:e,Renderer:t})=>m.jsx("i",{children:m.jsx(t,{id:"italic",element:e})}),pm={};we(pm,{Component:()=>m4});var v4=wt({displayName:"CopyIcon",viewBox:"0 0 512 512",d:"m333 274l0 86c0 72-28 101-100 101l-86 0c-72 0-100-29-100-101l0-86c0-71 28-100 100-100l86 0c72 0 100 29 100 100z m23-223l-86 0c-63 0-93 23-99 77-1 11 8 20 20 20l42 0c86 0 126 40 126 126l0 43c0 11 9 21 21 19 54-6 76-35 76-98l0-86c0-72-28-101-100-101z",defaultProps:{width:"16px",height:"16px"}}),g4=wt({displayName:"CopySuccessIcon",viewBox:"0 0 512 512",d:"m356 51l-86 0c-63 0-93 23-99 77-1 11 8 20 20 20l42 0c86 0 126 40 126 126l0 43c0 11 9 21 21 19 54-6 76-35 76-98l0-86c0-72-28-101-100-101z m-123 123l-86 0c-72 0-100 29-100 100l0 86c0 72 28 101 100 101l86 0c72 0 100-29 100-101l0-86c0-71-28-100-100-100z m24 116l-76 76c-2 3-6 4-10 4-4 0-8-1-10-4l-39-38c-5-6-5-15 0-21 6-6 15-6 21 0l28 28 66-66c5-6 15-6 20 0 6 6 6 15 0 21z",defaultProps:{width:"16px",height:"16px"}}),b4=({value:e})=>{const[t,r]=g.useState(!1);g.useEffect(()=>{if(t){const o=setTimeout(()=>{r(!1)},2e3);return()=>clearTimeout(o)}},[t]);const n=()=>{navigator.clipboard.writeText(e).then(()=>{r(!0)}).catch(()=>{})};return m.jsx(Te,{cursor:"pointer",onClick:n,children:t?m.jsx(g4,{}):m.jsx(v4,{})})},y4=()=>{const e=g.useRef(null),[t,r]=g.useState(!1);return g.useEffect(()=>{e.current&&r(e.current.offsetHeight{const{contentRef:o,isOverflow:i}=y4();return m.jsxs(Te,{ref:o,position:"relative",maxHeight:t?"none":"5.5rem",overflow:"hidden",children:[e,i&&!t&&m.jsx(Te,{position:"absolute",bottom:"0",right:"0",bgGradient:"linear-gradient(90deg, transparent 0%, background.default 33%)",children:m.jsx(ko,{paddingLeft:"8",bgGradient:x4(r),color:"inherit",lineHeight:"inherit",verticalAlign:"baseline",...n,children:"more"})})]})},w4=wt({displayName:"EyeIcon",viewBox:"0 0 512 512",d:"m441 198c-47-75-117-118-189-118-37 0-72 11-105 31-32 20-61 49-85 87-20 32-20 84 0 116 47 75 117 117 190 117 36 0 71-10 104-30 32-20 61-50 85-87 20-32 20-84 0-116z m-189 141c-46 0-83-37-83-83 0-46 37-83 83-83 45 0 82 37 82 83 0 46-37 83-82 83z m0-142c-33 0-59 27-59 59 0 32 26 58 59 58 32 0 58-26 58-58 0-32-26-59-58-59z",defaultProps:{width:"20px",height:"20px"}}),k4=wt({displayName:"EyeSlashIcon",viewBox:"0 0 512 512",d:"m454 196c-7-10-13-19-20-28-8-10-23-11-32-2l-64 64c5 14 6 31 2 48-8 30-32 54-62 61-17 5-33 4-47-1 0 0-31 31-53 53-11 10-7 29 7 35 23 8 47 13 71 13 38 0 75-11 108-32 35-21 66-53 91-93 20-32 19-86-1-118z m-137 60c0 33-27 61-61 61-1 0-2 0-4 0l64-65c1 2 1 3 1 4z m-258 61c-22-34-22-88 0-122 24-39 55-69 88-90 34-21 71-32 109-32 42 0 83 14 120 40l65-65c6-7 17-7 23 0 7 6 7 16 0 23l-393 393c-4 4-8 5-12 5-4 0-8-1-11-4-7-7-7-17 0-24l62-62c-19-18-36-39-51-62z m136-61c0-33 27-61 61-61 11 0 21 3 30 8l18-19c-14-9-30-14-48-14-48 0-86 38-86 86 0 18 5 35 14 48l19-18c-5-9-8-19-8-30z",defaultProps:{width:"20px",height:"20px"}}),zd=({isRevealed:e,onHide:t})=>e?m.jsx(po,{label:"Hide sensitive content",children:m.jsx(k4,{onClick:t,cursor:"pointer"})}):m.jsx(po,{label:"Do not share this with anyone",children:m.jsx(w4,{})}),C4=({sensitive:e,value:t})=>{const[r,n]=g.useState(!1),[o,i]=g.useState(!1),a=et("Copyable",{variant:o&&e?"sensitive":"default"}),s=()=>{n(!0)},l=()=>{i(!0)},c=()=>{n(!1),i(!1)};return e&&!o?m.jsxs(Te,{__css:a,cursor:"pointer",onClick:l,children:[m.jsx(zd,{isRevealed:o,onHide:c}),m.jsx(qt,{flexGrow:1,children:"Reveal sensitive content"})]}):m.jsxs(Te,{__css:a,children:[e&&m.jsx(zd,{isRevealed:o,onHide:c}),m.jsx(Te,{width:"100%",flexGrow:1,position:"relative",children:m.jsx(S4,{onClick:s,isExpanded:r,sensitive:e,children:m.jsx(qt,{fontSize:"inherit",color:"inherit",wordBreak:"break-all",children:t})})}),m.jsx(b4,{value:t})]})},_4={baseStyle:{display:"flex",gap:"2",justifyContent:"space-between",borderRadius:"lg",padding:"2",fontSize:"sm",color:"text.alternative",background:"background.alternative",overflowY:"hidden"},variants:{sensitive:{color:"error.default",background:"error.muted"}}},mm={};we(mm,{Component:()=>C4,styles:()=>_4});var P4=()=>m.jsx(Lp,{}),T4={baseStyle:{borderColor:"border.default"}},vm={};we(vm,{Component:()=>P4,styles:()=>T4});var $4=wt({displayName:"ArrowDown",viewBox:"0 0 512 512",d:"m256 363c-17 0-32-7-45-21l-141-150c-8-10-8-26 0-36 9-9 22-9 31 0l140 153c9 9 21 9 30 0l140-153c9-9 22-9 31 0 8 10 8 24 0 33l-141 153c-13 14-28 21-45 21z",defaultProps:{width:"16px",height:"16px"}}),A4=({name:e,value:t,children:r,Renderer:n})=>m.jsx(Jp,{defaultValue:t,name:e,iconSize:"16px",icon:m.jsx($4,{}),children:m.jsx(n,{id:"dropdown",element:r})}),{definePartsStyle:Id,defineMultiStyleConfig:E4}=ee($f.keys),R4={Select:E4({baseStyle:Id({field:{color:"text.default",fontSize:"sm",paddingX:"4",paddingY:"2"}}),variants:{outline:Id({field:{background:"background.default",border:"1px solid",borderColor:"border.default",_focus:{outline:"5px auto",outlineColor:"primary.default",outlineOffset:"0"},_placeholder:{color:"text.alternative"},_invalid:{borderColor:"error.default",boxShadow:"none"}}})}}),defaultProps:{variant:"outline"}},gm={};we(gm,{Component:()=>A4,styles:()=>R4});var M4=({element:e,Renderer:t})=>{const r=g.useRef(null),[n,o]=g.useState(0);if(g.useEffect(()=>{r.current&&o(r.current.offsetWidth)},[e,r]),Array.isArray(e)){const[i,a]=e;return m.jsxs(Op,{sx:{input:{paddingRight:`${n}px`}},children:[m.jsx(t,{id:"field-input",element:i}),m.jsx(Ml,{ref:r,width:"auto",paddingX:"4",children:m.jsx(t,{id:"field-button",element:a})})]})}return m.jsx(t,{id:"field-input",element:e})},j4=({label:e,error:t,children:r,Renderer:n})=>m.jsxs($p,{isInvalid:!!t,children:[m.jsx(Ep,{children:e}),m.jsx(M4,{element:r,Renderer:n}),t&&m.jsx(Ap,{children:t})]}),{definePartsStyle:z4,defineMultiStyleConfig:I4}=ee(_f.keys),{definePartsStyle:B4,defineMultiStyleConfig:O4}=ee(Pf.keys),D4={FormControl:I4({baseStyle:z4({helperText:{color:"error.default",marginTop:"1",fontSize:"2xs"}})}),FormError:O4({baseStyle:B4({text:{color:"error.default",fontSize:"2xs",marginTop:"1"}})}),FormLabel:{baseStyle:{color:"text.default",fontSize:"sm",marginBottom:"0"}}},bm={};we(bm,{Component:()=>j4,styles:()=>D4});var F4=({children:e,Renderer:t})=>m.jsx("b",{children:m.jsx(t,{id:"bold",element:e})}),ym={};we(ym,{Component:()=>F4});function V4({alignment:e,direction:t}){return t==="horizontal"?{direction:"row",justifyContent:e,alignItems:"center"}:{direction:"column",alignItems:e}}var L4=({direction:e,alignment:t,children:r,Renderer:n})=>m.jsx(ur,{gap:"1",...V4({alignment:t,direction:e}),children:m.jsx(n,{id:"box",element:r})}),xm={};we(xm,{Component:()=>L4});var N4=({name:e,type:t="button",variant:r,disabled:n=!1,children:o})=>m.jsx(ko,{name:e,type:t,variant:r,isDisabled:n,children:o}),W4={baseStyle:{background:"none",borderRadius:"0",maxWidth:"fit-content",_disabled:{opacity:1}},variants:{primary:{color:"info.default",_disabled:{color:"text.muted"}},destructive:{color:"error.default",_disabled:{color:"text.muted"}},solid:{color:"background.default",backgroundColor:"text.default",_disabled:{backgroundColor:"text.muted"},_hover:{backgroundColor:"text.alternative"}}},sizes:{text:{lineHeight:"short",fontSize:"sm",fontWeight:"500",margin:0,padding:0,paddingInlineStart:0,paddingInlineEnd:0},large:{lineHeight:"short",fontSize:"sm",fontWeight:"500",display:"flex",alignItems:"center",justifyContent:"center",paddingX:"4",height:"48px",borderRadius:"full",border:"1px solid",borderColor:"currentColor"}},defaultProps:{variant:"primary",size:"text"}},Sm={};we(Sm,{Component:()=>N4,styles:()=>W4});var H4=wt({displayName:"CheckBoldIcon",viewBox:"0 0 512 512",d:"m412 145c12 12 12 32 0 45l-185 183c-12 12-32 12-45 0l-81-80c-13-13-13-33 0-46 12-12 32-12 45 0l59 58 161-161c13-12 33-12 46 1z",defaultProps:{width:"20px",height:"20px"}}),U4=({name:e,checked:t,label:r,variant:n})=>n==="toggle"?m.jsx(rm,{name:e,defaultChecked:t,children:r}):m.jsx(Ip,{name:e,defaultChecked:t,icon:m.jsx(H4,{}),iconSize:"20px",children:r}),{definePartsStyle:Bd,defineMultiStyleConfig:q4}=ee(Cf.keys),{definePartsStyle:Od,defineMultiStyleConfig:G4}=ee(Af.keys),K4=I("switch-track-width"),X4=I("switch-track-height"),Y4={Checkbox:q4({baseStyle:Bd({control:{borderColor:"border.default",borderRadius:"base",_hover:{background:"background.defaultHover",color:"background.defaultHover"},_focus:{borderColor:"primary.default"},_checked:{background:"primary.default",borderColor:"primary.default",_hover:{background:"primary.alternative",borderColor:"primary.alternative"}}},label:{fontSize:"sm"}}),sizes:{md:Bd({control:{width:"20px",height:"20px"},label:{fontSize:"sm"}})},defaultProps:{size:"md"}}),Switch:G4({baseStyle:Od({container:{display:"flex",alignItems:"center"},track:{_checked:{background:"primary.default"}}}),sizes:{md:Od({container:{[K4.variable]:"32px",[X4.variable]:"18px"},track:{padding:"1"},thumb:{width:"18px",height:"18px"},label:{fontSize:"sm"}})},defaultProps:{size:"md"}})},wm={};we(wm,{Component:()=>U4,styles:()=>Y4});var Z4=({children:e,Renderer:t})=>m.jsx(Te,{children:m.jsx(t,{id:"container",element:e})}),km={};we(km,{Component:()=>Z4});var Kt=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};Kt.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};Kt.prototype.init_by_array=function(e,t){var r,n,o;for(this.init_seed(19650218),r=1,n=0,o=this.N>t?this.N:t;o;o--){var i=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(((i&4294901760)>>>16)*1664525<<16)+(i&65535)*1664525)+e[n]+n,this.mt[r]>>>=0,r++,n++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1),n>=t&&(n=0)}for(o=this.N-1;o;o--){var i=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(((i&4294901760)>>>16)*1566083941<<16)+(i&65535)*1566083941)-r,this.mt[r]>>>=0,r++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1)}this.mt[0]=2147483648};Kt.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var r;for(this.mti==this.N+1&&this.init_seed(5489),r=0;r>>1^t[e&1];for(;r>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};Kt.prototype.random_int31=function(){return this.random_int()>>>1};Kt.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};Kt.prototype.random=function(){return this.random_int()*(1/4294967296)};Kt.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};Kt.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var J4=Kt;function Q4(e,t){var r=document.createElement("div");return r.style.borderRadius="50px",r.style.overflow="hidden",r.style.padding="0px",r.style.margin="0px",r.style.width=""+e+"px",r.style.height=""+e+"px",r.style.display="inline-block",r.style.background=t,{container:r}}var eA=Q4,Cm={exports:{}};(function(e){var t=function(){function r(l,c,u,d){typeof c=="object"&&(u=c.depth,d=c.prototype,c.filter,c=c.circular);var f=[],h=[],v=typeof Cn<"u";typeof c>"u"&&(c=!0),typeof u>"u"&&(u=1/0);function b(y,k){if(y===null)return null;if(k==0)return y;var w,C;if(typeof y!="object")return y;if(r.__isArray(y))w=[];else if(r.__isRegExp(y))w=new RegExp(y.source,s(y)),y.lastIndex&&(w.lastIndex=y.lastIndex);else if(r.__isDate(y))w=new Date(y.getTime());else{if(v&&Cn.isBuffer(y))return Cn.allocUnsafe?w=Cn.allocUnsafe(y.length):w=new Cn(y.length),y.copy(w),w;typeof d>"u"?(C=Object.getPrototypeOf(y),w=Object.create(C)):(w=Object.create(d),C=d)}if(c){var P=f.indexOf(y);if(P!=-1)return h[P];f.push(y),h.push(w)}for(var $ in y){var A;C&&(A=Object.getOwnPropertyDescriptor(C,$)),!(A&&A.set==null)&&(w[$]=b(y[$],k-1))}return w}return b(l,u)}r.clonePrototype=function(c){if(c===null)return null;var u=function(){};return u.prototype=c,new u};function n(l){return Object.prototype.toString.call(l)}r.__objToStr=n;function o(l){return typeof l=="object"&&n(l)==="[object Date]"}r.__isDate=o;function i(l){return typeof l=="object"&&n(l)==="[object Array]"}r.__isArray=i;function a(l){return typeof l=="object"&&n(l)==="[object RegExp]"}r.__isRegExp=a;function s(l){var c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),c}return r.__getRegExpFlags=s,r}();e.exports&&(e.exports=t)})(Cm);var tA=Cm.exports,_m={exports:{}},rA={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Rr=rA,Pm={};for(var Qa in Rr)Rr.hasOwnProperty(Qa)&&(Pm[Rr[Qa]]=Qa);var z=_m.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var Ke in z)if(z.hasOwnProperty(Ke)){if(!("channels"in z[Ke]))throw new Error("missing channels property: "+Ke);if(!("labels"in z[Ke]))throw new Error("missing channel labels property: "+Ke);if(z[Ke].labels.length!==z[Ke].channels)throw new Error("channel and label counts mismatch: "+Ke);var nA=z[Ke].channels,oA=z[Ke].labels;delete z[Ke].channels,delete z[Ke].labels,Object.defineProperty(z[Ke],"channels",{value:nA}),Object.defineProperty(z[Ke],"labels",{value:oA})}z.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=i-o,s,l,c;return i===o?s=0:t===i?s=(r-n)/a:r===i?s=2+(n-t)/a:n===i&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360),c=(o+i)/2,i===o?l=0:c<=.5?l=a/(i+o):l=a/(2-i-o),[s,l*100,c*100]};z.rgb.hsv=function(e){var t,r,n,o,i,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(f){return(c-f)/6/u+1/2};return u===0?o=i=0:(i=u/c,t=d(a),r=d(s),n=d(l),a===c?o=n-r:s===c?o=1/3+t-n:l===c&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,c*100]};z.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],o=z.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,i*100,n*100]};z.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,o,i,a,s;return s=Math.min(1-t,1-r,1-n),o=(1-t-s)/(1-s)||0,i=(1-r-s)/(1-s)||0,a=(1-n-s)/(1-s)||0,[o*100,i*100,a*100,s*100]};function iA(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}z.rgb.keyword=function(e){var t=Pm[e];if(t)return t;var r=1/0,n;for(var o in Rr)if(Rr.hasOwnProperty(o)){var i=Rr[o],a=iA(e,i);a.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var o=t*.4124+r*.3576+n*.1805,i=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[o*100,i*100,a*100]};z.rgb.lab=function(e){var t=z.rgb.xyz(e),r=t[0],n=t[1],o=t[2],i,a,s;return r/=95.047,n/=100,o/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,i=116*n-16,a=500*(r-n),s=200*(n-o),[i,a,s]};z.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,o,i,a,s,l;if(r===0)return l=n*255,[l,l,l];n<.5?i=n*(1+r):i=n+r-n*r,o=2*n-i,s=[0,0,0];for(var c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?l=o+(i-o)*6*a:2*a<1?l=i:3*a<2?l=o+(i-o)*(2/3-a)*6:l=o,s[c]=l*255;return s};z.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=r,i=Math.max(n,.01),a,s;return n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i,s=(n+r)/2,a=n===0?2*o/(i+o):2*r/(n+r),[t,a*100,s*100]};z.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}};z.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01),i,a,s;return s=(2-r)*n,i=(2-r)*o,a=r*o,a/=i<=1?i:2-i,a=a||0,s/=2,[t,a*100,s*100]};z.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,o=r+n,i,a,s,l;o>1&&(r/=o,n/=o),i=Math.floor(6*t),a=1-n,s=6*t-i,i&1&&(s=1-s),l=r+s*(a-r);var c,u,d;switch(i){default:case 6:case 0:c=a,u=l,d=r;break;case 1:c=l,u=a,d=r;break;case 2:c=r,u=a,d=l;break;case 3:c=r,u=l,d=a;break;case 4:c=l,u=r,d=a;break;case 5:c=a,u=r,d=l;break}return[c*255,u*255,d*255]};z.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,i,a,s;return i=1-Math.min(1,t*(1-o)+o),a=1-Math.min(1,r*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),[i*255,a*255,s*255]};z.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o,i,a;return o=t*3.2406+r*-1.5372+n*-.4986,i=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]};z.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],o,i,a;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,o=116*r-16,i=500*(t-r),a=200*(r-n),[o,i,a]};z.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],o,i,a;i=(t+16)/116,o=r/500+i,a=i-n/200;var s=Math.pow(i,3),l=Math.pow(o,3),c=Math.pow(a,3);return i=s>.008856?s:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a=c>.008856?c:(a-16/116)/7.787,o*=95.047,i*=100,a*=108.883,[o,i,a]};z.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],o,i,a;return o=Math.atan2(n,r),i=o*360/2/Math.PI,i<0&&(i+=360),a=Math.sqrt(r*r+n*n),[t,a,i]};z.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],o,i,a;return a=n/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a),[t,o,i]};z.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],o=1 in arguments?arguments[1]:z.rgb.hsv(e)[2];if(o=Math.round(o/50),o===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return o===2&&(i+=60),i};z.hsv.ansi16=function(e){return z.rgb.ansi16(z.hsv.rgb(e),e[2])};z.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var o=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return o};z.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[n,o,i]};z.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,o=Math.floor((r=e%36)/6)/5*255,i=r%6/5*255;return[n,o,i]};z.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};z.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(s){return s+s}).join(""));var n=parseInt(r,16),o=n>>16&255,i=n>>8&255,a=n&255;return[o,i,a]};z.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),a=o-i,s,l;return a<1?s=i/(1-a):s=0,a<=0?l=0:o===t?l=(r-n)/a%6:o===r?l=2+(n-t)/a:l=4+(t-r)/a+4,l/=6,l%=1,[l*360,a*100,s*100]};z.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,o=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]};z.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]};z.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var o=[0,0,0],i=t%1*6,a=i%1,s=1-a,l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-r)*n,[(r*o[0]+l)*255,(r*o[1]+l)*255,(r*o[2]+l)*255]};z.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]};z.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]};z.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};z.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,o=n-t,i=0;return o<1&&(i=(n-o)/(1-o)),[e[0],o*100,i*100]};z.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};z.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};z.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};z.gray.hsl=z.gray.hsv=function(e){return[0,0,e[0]]};z.gray.hwb=function(e){return[0,100,e[0]]};z.gray.cmyk=function(e){return[0,0,0,e[0]]};z.gray.lab=function(e){return[e[0],0,0]};z.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};z.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var Tm=_m.exports,Ei=Tm;function aA(){for(var e={},t=Object.keys(Ei),r=t.length,n=0;n1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function pA(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var o=n.length,i=0;ir?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb,t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=e[0]*.3+e[1]*.59+e[2]*.11;return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t+e)%360,t=t<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){var r=this,n=e,o=t===void 0?.5:t,i=2*o-1,a=r.alpha()-n.alpha(),s=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return this.rgb(s*r.red()+l*n.red(),s*r.green()+l*n.green(),s*r.blue()+l*n.blue()).alpha(r.alpha()*o+n.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var e=new jt;return e.values=PA(this.values),e}};jt.prototype.getValues=function(e){for(var t={},r=0;r{const n=g.useRef(null);return g.useEffect(()=>{if(n.current){const o=FA(e,VA(t));return n.current.appendChild(o),()=>{var i;(i=n.current)==null||i.removeChild(o)}}},[n,t]),m.jsx(Te,{ref:n,...r})};function NA(e){return`${e.slice(0,5)}...${e.slice(-3)}`}var WA=({address:e})=>m.jsxs(ur,{gap:"2",children:[m.jsx(LA,{size:16,address:e}),m.jsx(qt,{children:NA(e)})]}),Im={};we(Im,{Component:()=>WA});var Bm={Address:Im,Bold:ym,Box:xm,Button:Sm,Checkbox:wm,Container:km,Copyable:mm,Divider:vm,Dropdown:gm,Field:bm,FileInput:cm,Footer:um,Form:dm,Heading:fm,Input:hm,Italic:pm,Link:im,Option:am,Row:sm,Text:lm,Tooltip:om};function Ns(e){return Object.fromEntries(Object.entries(Wd[e]).map(([t,r])=>[t,Object.fromEntries(Object.entries(r).map(([n,o])=>[n,{default:o,_dark:Hd[e][t][n]}]))]))}function Vd(e){return`${e.shadowOffset.width}px ${e.shadowOffset.height}px ${e.shadowRadius}px 0px ${e.shadowColor}`}function HA(){return Object.fromEntries(Object.entries(Wd.shadows.size).map(([e,t])=>[e,{default:Vd(t),_dark:Vd(Hd.shadows.size[e])}]))}function UA(e){return e!==void 0&&!Ds(e,"baseStyle")&&!Ds(e,"variants")}function qA(e){return Object.entries(e).filter(([,t])=>t.styles!==void 0).reduce((t,[r,n])=>UA(n.styles)?{...t,...n.styles}:{...t,[r]:n.styles},{})}var GA={muted:{default:`1px solid ${Ns("colors").border.muted.default}`,_dark:`1px solid ${Ns("colors").border.muted._dark}`}},KA={initialColorMode:"light",useSystemColorMode:!1},XA={short:"1.375rem"},YA=HA(),ZA={global:{body:{background:"background.default",color:"text.default",fontSize:"sm"},".docs-story":{background:"background.default",color:"text.default"}}};const{useParameter:JA,addons:QA,useEffect:k6,useMemo:C6}=__STORYBOOK_MODULE_PREVIEW_API__;var e6=Object.defineProperty,t6=(e,t)=>{for(var r in t)e6(e,r,{get:t[r],enumerable:!0})},Om={};t6(Om,{initializeThemeState:()=>l6,pluckThemeFromContext:()=>a6,useThemeParameters:()=>s6});var Dm="themes",r6=`storybook/${Dm}`,n6="theme",o6={},i6={REGISTER_THEMES:`${r6}/REGISTER_THEMES`};function a6({globals:e}){return e[n6]||""}function s6(){return JA(Dm,o6)}function l6(e,t){QA.getChannel().emit(i6.REGISTER_THEMES,{defaultTheme:t,themes:e})}var{initializeThemeState:c6}=Om,u6=({children:e,theme:t})=>(c6(["light","dark"],"light"),m.jsxs(rP,{theme:h6,children:[m.jsx(T$,{colorMode:t}),m.jsx(aa,{id:"provider",element:e})]})),Fm={Extension:F$,ThemeProvider:u6};function d6(e){const t=Object.fromEntries(Object.entries(Bm).map(([r,n])=>[r,n.Component]));return{...Fm,...t,...e}}var aa=({element:e,id:t,overrides:r={}})=>{const n=d6(r);if(typeof e=="string")return m.jsx(m.Fragment,{children:e});if(e===null||typeof e=="boolean")return null;if(Array.isArray(e))return m.jsx(m.Fragment,{children:e.map((i,a)=>m.jsx(aa,{id:`${t}-${a}`,element:i,overrides:r},`${t}-${a}`))});const o=n[e.type];return I$(o,`No component found for type: "${e.type}".`),m.jsx(o,{id:t,Renderer:f6(t,r),...e.props})};function f6(e,t){return function({id:n,element:o,overrides:i}){return m.jsx(aa,{element:o,id:`${e}-${n}`,overrides:{...t,...i}})}}var h6=Hw({config:KA,components:qA(Bm),fonts:{heading:'"Euclid Circular B", sans-serif',body:'"Euclid Circular B", sans-serif'},lineHeights:XA,semanticTokens:{borders:GA,colors:Ns("colors"),shadows:YA},styles:ZA}),p6=class extends g.PureComponent{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){this.state.hasError||this.props.showMain()}componentDidCatch(e){this.props.showException(e)}render(){return this.state.hasError?null:this.props.children}},_6=(e,t)=>{const{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return m.jsx(n,{...e})},P6=async({storyFn:e,showMain:t,showException:r,forceRemount:n},o)=>{const i=e(),a=m.jsx(g.StrictMode,{children:m.jsx(p6,{showMain:t,showException:r,children:m.jsx(aa,{id:"root",element:i,overrides:Fm})})});return n&&sc(o),await U0(a,o),()=>{sc(o)}};export{_6 as render,P6 as renderToCanvas}; diff --git a/storybook/pr/2531/assets/preview-c9eca470.js b/storybook/pr/2531/assets/preview-c9eca470.js new file mode 100644 index 0000000000..1be2774fcc --- /dev/null +++ b/storybook/pr/2531/assets/preview-c9eca470.js @@ -0,0 +1,309 @@ +import{_ as Jd,j as p,r as Qd,u as mc,a as fg}from"./react-18-17fe38b0.js";import{r as v,u as gc,c as Io,g as Ys,a as hg,R as hi}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import{B as Cn,l as ef,d as tf}from"./chunk-UYTCZKXQ-12b8a477.js";import{c as pg}from"./index-b7949e8c.js";function mg(e){if(e.sheet)return e.sheet;for(var t=0;t0?Oe(vn,--Je):0,cn--,_e===10&&(cn=1,Ii--),_e}function nt(){return _e=Je2||eo(_e)>3?"":" "}function $g(e,t){for(;--t&&nt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return mo(e,Xo()+(t<6&&Et()==32&&nt()==32))}function ss(e){for(;nt();)switch(_e){case e:return Je;case 34:case 39:e!==34&&e!==39&&ss(_e);break;case 40:e===41&&ss(e);break;case 92:nt();break}return Je}function Ag(e,t){for(;nt()&&e+_e!==47+10;)if(e+_e===42+42&&Et()===47)break;return"/*"+mo(t,Je-1)+"*"+zi(e===47?e:nt())}function Eg(e){for(;!eo(Et());)nt();return mo(e,Je)}function Rg(e){return lf(Zo("",null,null,null,[""],e=sf(e),0,[0],e))}function Zo(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,g=0,b=1,y=1,k=1,x=0,C="",P=o,$=i,A=n,T=C;y;)switch(g=x,x=nt()){case 40:if(g!=108&&Oe(T,d-1)==58){as(T+=ie(Yo(x),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:T+=Yo(x);break;case 9:case 10:case 13:case 32:T+=Tg(g);break;case 92:T+=$g(Xo()-1,7);continue;case 47:switch(Et()){case 42:case 47:Bo(jg(Ag(nt(),Xo()),t,r),l);break;default:T+="/"}break;case 123*b:s[c++]=Tt(T)*k;case 125*b:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+u:k==-1&&(T=ie(T,/\f/g,"")),h>0&&Tt(T)-d&&Bo(h>32?bc(T+";",n,r,d-1):bc(ie(T," ","")+";",n,r,d-2),l);break;case 59:T+=";";default:if(Bo(A=vc(T,t,r,c,u,o,s,C,P=[],$=[],d),i),x===123)if(u===0)Zo(T,t,A,A,P,i,d,s,$);else switch(f===99&&Oe(T,3)===110?100:f){case 100:case 108:case 109:case 115:Zo(e,A,A,n&&Bo(vc(e,A,A,0,0,o,s,C,o,P=[],d),$),o,$,d,s,n?P:$);break;default:Zo(T,A,A,A,[""],$,0,s,$)}}c=u=h=0,b=k=1,C=T="",d=a;break;case 58:d=1+Tt(T),h=g;default:if(b<1){if(x==123)--b;else if(x==125&&b++==0&&Pg()==125)continue}switch(T+=zi(x),x*b){case 38:k=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(Tt(T)-1)*k,k=1;break;case 64:Et()===45&&(T+=Yo(nt())),f=Et(),u=d=Tt(C=T+=Eg(Xo())),x++;break;case 45:g===45&&Tt(T)==2&&(b=0)}}return i}function vc(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,f=o===0?i:[""],h=Qs(f),g=0,b=0,y=0;g0?f[k]+" "+x:ie(x,/&\f/g,f[k])))&&(l[y++]=C);return Bi(e,t,r,o===0?Zs:s,l,c,u)}function jg(e,t,r){return Bi(e,t,r,rf,zi(_g()),Qn(e,2,-2),0)}function bc(e,t,r,n){return Bi(e,t,r,Js,Qn(e,0,n),Qn(e,n+1,-1),n)}function rn(e,t){for(var r="",n=Qs(e),o=0;o6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+pi+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~as(e,"stretch")?uf(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,Tt(e)-3-(~as(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Oe(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Le+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return oe+e+Le+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Le+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Le+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Le+e+e}return e}var Lg=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Js:t.return=uf(t.value,t.length);break;case nf:return rn([_n(t,{value:ie(t.value,"@","@"+oe)})],o);case Zs:if(t.length)return Cg(t.props,function(i){switch(kg(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rn([_n(t,{props:[ie(i,/:(read-\w+)/,":"+pi+"$1")]})],o);case"::placeholder":return rn([_n(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),_n(t,{props:[ie(i,/:(plac\w+)/,":"+pi+"$1")]}),_n(t,{props:[ie(i,/:(plac\w+)/,Le+"input-$1")]})],o)}return""})}},Ng=[Lg],Wg=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var y=b.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ng,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var y=b.getAttribute("data-emotion").split(" "),k=1;k=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var tv={animationIterationCount:1,aspectRatio: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},rv=/[A-Z]|^ms/g,nv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vf=function(t){return t.charCodeAt(1)===45},Sc=function(t){return t!=null&&typeof t!="boolean"},ka=cf(function(e){return vf(e)?e:e.replace(rv,"-$&").toLowerCase()}),wc=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(nv,function(n,o,i){return $t={name:o,styles:i,next:$t},o})}return tv[t]!==1&&!vf(t)&&typeof r=="number"&&r!==0?r+"px":r};function to(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return $t={name:r.name,styles:r.styles,next:$t},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)$t={name:n.name,styles:n.styles,next:$t},n=n.next;var o=r.styles+";";return o}return ov(e,t,r)}case"function":{if(e!==void 0){var i=$t,a=r(e);return $t=i,to(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function ov(e,t,r){var n="";if(Array.isArray(r))for(var o=0;op.jsx(Gi,{styles:Sf}),uv=({scope:e=""})=>p.jsx(Gi,{styles:xf` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${e} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${e} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${e} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${e} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${e} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${e} :where(b, strong) { + font-weight: bold; + } + + ${e} small { + font-size: 80%; + } + + ${e} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${e} sub { + bottom: -0.25em; + } + + ${e} sup { + top: -0.5em; + } + + ${e} img { + border-style: none; + } + + ${e} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${e} :where(button, input) { + overflow: visible; + } + + ${e} :where(button, select) { + text-transform: none; + } + + ${e} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${e} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${e} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${e} progress { + vertical-align: baseline; + } + + ${e} textarea { + overflow: auto; + } + + ${e} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${e} input[type="number"]::-webkit-inner-spin-button, + ${e} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${e} input[type="number"] { + -moz-appearance: textfield; + } + + ${e} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${e} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${e} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${e} details { + display: block; + } + + ${e} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${e} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${e} button { + background: transparent; + padding: 0; + } + + ${e} fieldset { + margin: 0; + padding: 0; + } + + ${e} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${e} textarea { + resize: vertical; + } + + ${e} :where(button, [role="button"]) { + cursor: pointer; + } + + ${e} button::-moz-focus-inner { + border: 0 !important; + } + + ${e} table { + border-collapse: collapse; + } + + ${e} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${e} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${e} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${e} select::-ms-expand { + display: none; + } + + ${Sf} + `});function dv(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function wt(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=v.createContext(a);s.displayName=t;function l(){var c;const u=v.useContext(s);if(!u&&r){const d=new Error(i??dv(n,o));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[s.Provider,l,s]}var[fv,hv]=wt({strict:!1,name:"PortalManagerContext"});function wf(e){const{children:t,zIndex:r}=e;return p.jsx(fv,{value:{zIndex:r},children:t})}wf.displayName="PortalManager";var ar=globalThis!=null&&globalThis.document?v.useLayoutEffect:v.useEffect,[kf,pv]=wt({strict:!1,name:"PortalContext"}),ol="chakra-portal",mv=".chakra-portal",gv=e=>p.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),vv=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=v.useState(null),i=v.useRef(null),[,a]=v.useState({});v.useEffect(()=>a({}),[]);const s=pv(),l=hv();ar(()=>{if(!n)return;const u=n.ownerDocument,d=t?s??u.body:u.body;if(!d)return;i.current=u.createElement("div"),i.current.className=ol,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const c=l!=null&&l.zIndex?p.jsx(gv,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Qd.createPortal(p.jsx(kf,{value:i.current,children:c}),i.current):p.jsx("span",{ref:u=>{u&&o(u)}})},bv=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),a=v.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=ol),l},[o]),[,s]=v.useState({});return ar(()=>s({}),[]),ar(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?Qd.createPortal(p.jsx(kf,{value:n?a:null,children:t}),a):null};function go(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?p.jsx(bv,{containerRef:r,...n}):p.jsx(vv,{...n})}go.className=ol;go.selector=mv;go.displayName="Portal";function il(){const e=v.useContext(ro);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var al=v.createContext({});al.displayName="ColorModeContext";function Ki(){const e=v.useContext(al);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Oo={light:"chakra-ui-light",dark:"chakra-ui-dark"};function yv(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Oo.dark:Oo.light),document.body.classList.remove(n?Oo.light:Oo.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=a=>{n(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var xv="chakra-ui-color-mode";function Sv(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var wv=Sv(xv),Cc=()=>{};function _c(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function Cf(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=wv}=e,s=o==="dark"?"dark":"light",[l,c]=v.useState(()=>_c(a,s)),[u,d]=v.useState(()=>_c(a)),{getSystemTheme:f,setClassName:h,setDataset:g,addListener:b}=v.useMemo(()=>yv({preventTransition:i}),[i]),y=o==="system"&&!l?u:l,k=v.useCallback(P=>{const $=P==="system"?f():P;c($),h($==="dark"),g($),a.set($)},[a,f,h,g]);ar(()=>{o==="system"&&d(f())},[]),v.useEffect(()=>{const P=a.get();if(P){k(P);return}if(o==="system"){k("system");return}k(s)},[a,s,o,k]);const x=v.useCallback(()=>{k(y==="dark"?"light":"dark")},[y,k]);v.useEffect(()=>{if(n)return b(k)},[n,b,k]);const C=v.useMemo(()=>({colorMode:t??y,toggleColorMode:t?Cc:x,setColorMode:t?Cc:k,forced:t!==void 0}),[y,x,k,t]);return p.jsx(al.Provider,{value:C,children:r})}Cf.displayName="ColorModeProvider";function kv(){const e=Ki(),t=il();return{...e,theme:t}}function Cv(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[a]};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function _v(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.value};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function Pv(e,t,r){const n=il();return Tv(e,t,r)(n)}function Tv(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const a=o.filter(Boolean),s=n.map((l,c)=>{var u,d;if(e==="breakpoints")return Cv(i,l,(u=a[c])!=null?u:l);const f=`${e}.${l}`;return _v(i,f,(d=a[c])!=null?d:l)});return Array.isArray(t)?s:s[0]}}var le=(...e)=>e.filter(Boolean).join(" ");function St(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function ir(e,...t){return $v(e)?e(...t):e}var $v=e=>typeof e=="function",K=e=>e?"":void 0,Ca=e=>e?!0:void 0;function je(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function Av(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var mi={exports:{}};mi.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",b="[object Map]",y="[object Number]",k="[object Null]",x="[object Object]",C="[object Proxy]",P="[object RegExp]",$="[object Set]",A="[object String]",T="[object Undefined]",E="[object WeakMap]",j="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",Y="[object Float64Array]",ee="[object Int8Array]",N="[object Int16Array]",Z="[object Int32Array]",W="[object Uint8Array]",U="[object Uint8ClampedArray]",fe="[object Uint16Array]",xe="[object Uint32Array]",De=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,Se=/^(?:0|[1-9]\d*)$/,L={};L[F]=L[Y]=L[ee]=L[N]=L[Z]=L[W]=L[U]=L[fe]=L[xe]=!0,L[s]=L[l]=L[j]=L[u]=L[R]=L[d]=L[f]=L[h]=L[b]=L[y]=L[x]=L[P]=L[$]=L[A]=L[E]=!1;var te=typeof Io=="object"&&Io&&Io.Object===Object&&Io,ue=typeof self=="object"&&self&&self.Object===Object&&self,ve=te||ue||Function("return this")(),Ve=t&&!t.nodeType&&t,ke=Ve&&!0&&e&&!e.nodeType&&e,qe=ke&&ke.exports===Ve,Ge=qe&&te.process,Ee=function(){try{var m=ke&&ke.require&&ke.require("util").types;return m||Ge&&Ge.binding&&Ge.binding("util")}catch{}}(),re=Ee&&Ee.isTypedArray;function Re(m,S,_){switch(_.length){case 0:return m.call(S);case 1:return m.call(S,_[0]);case 2:return m.call(S,_[0],_[1]);case 3:return m.call(S,_[0],_[1],_[2])}return m.apply(S,_)}function hr(m,S){for(var _=-1,M=Array(m);++_-1}function w0(m,S){var _=this.__data__,M=Ro(_,m);return M<0?(++this.size,_.push([m,S])):_[M][1]=S,this}Bt.prototype.clear=b0,Bt.prototype.delete=y0,Bt.prototype.get=x0,Bt.prototype.has=S0,Bt.prototype.set=w0;function Vr(m){var S=-1,_=m==null?0:m.length;for(this.clear();++S<_;){var M=m[S];this.set(M[0],M[1])}}function k0(){this.size=0,this.__data__={hash:new vr,map:new(oc||Bt),string:new vr}}function C0(m){var S=Mo(this,m).delete(m);return this.size-=S?1:0,S}function _0(m){return Mo(this,m).get(m)}function P0(m){return Mo(this,m).has(m)}function T0(m,S){var _=Mo(this,m),M=_.size;return _.set(m,S),this.size+=_.size==M?0:1,this}Vr.prototype.clear=k0,Vr.prototype.delete=C0,Vr.prototype.get=_0,Vr.prototype.has=P0,Vr.prototype.set=T0;function Lr(m){var S=this.__data__=new Bt(m);this.size=S.size}function $0(){this.__data__=new Bt,this.size=0}function A0(m){var S=this.__data__,_=S.delete(m);return this.size=S.size,_}function E0(m){return this.__data__.get(m)}function R0(m){return this.__data__.has(m)}function j0(m,S){var _=this.__data__;if(_ instanceof Bt){var M=_.__data__;if(!oc||M.length1?_[J-1]:void 0,pe=J>2?_[2]:void 0;for(de=m.length>3&&typeof de=="function"?(J--,de):void 0,pe&&Z0(_[0],_[1],pe)&&(de=J<3?void 0:de,J=1),S=Object(S);++M-1&&m%1==0&&m0){if(++S>=o)return arguments[0]}else S=0;return m.apply(void 0,arguments)}}function ig(m){if(m!=null){try{return pr.call(m)}catch{}try{return m+""}catch{}}return""}function zo(m,S){return m===S||m!==m&&S!==S}var va=ic(function(){return arguments}())?ic:function(m){return wn(m)&&ct.call(m,"callee")&&!l0.call(m,"callee")},ba=Array.isArray;function ya(m){return m!=null&&uc(m.length)&&!xa(m)}function ag(m){return wn(m)&&ya(m)}var cc=u0||dg;function xa(m){if(!br(m))return!1;var S=jo(m);return S==h||S==g||S==c||S==C}function uc(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=a}function br(m){var S=typeof m;return m!=null&&(S=="object"||S=="function")}function wn(m){return m!=null&&typeof m=="object"}function sg(m){if(!wn(m)||jo(m)!=x)return!1;var S=tc(m);if(S===null)return!0;var _=ct.call(S,"constructor")&&S.constructor;return typeof _=="function"&&_ instanceof _&&pr.call(_)==$o}var dc=re?V(re):O0;function lg(m){return q0(m,fc(m))}function fc(m){return ya(m)?M0(m,!0):F0(m)}var cg=G0(function(m,S,_,M){ac(m,S,_,M)});function ug(m){return function(){return m}}function hc(m){return m}function dg(){return!1}e.exports=cg})(mi,mi.exports);var Ev=mi.exports;const pt=Ys(Ev);var Rv=e=>/!(important)?$/.test(e),Pc=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,jv=(e,t)=>r=>{const n=String(t),o=Rv(n),i=Pc(n),a=e?`${e}.${i}`:i;let s=St(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=Pc(s),o?`${s} !important`:s};function sl(e){const{scale:t,transform:r,compose:n}=e;return(i,a)=>{var s;const l=jv(t,i)(a);let c=(s=r==null?void 0:r(l,a))!=null?s:l;return n&&(c=n(c,a)),c}}var Fo=(...e)=>t=>e.reduce((r,n)=>n(r),t);function dt(e,t){return r=>{const n={property:r,scale:e};return n.transform=sl({scale:e,transform:t}),n}}var Mv=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function zv(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:Mv(t),transform:r?sl({scale:r,compose:n}):n}}var _f=["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))"];function Iv(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",..._f].join(" ")}function Bv(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",..._f].join(" ")}var Ov={"--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(" ")},Fv={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,/*!*/ /*!*/)"};function Dv(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var Vv={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},ls={"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"},Lv=new Set(Object.values(ls)),cs=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Nv=e=>e.trim();function Wv(e,t){if(e==null||cs.has(e))return e;if(!(us(e)||cs.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=a.split(",").map(Nv).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const u=l in ls?ls[l]:l;c.unshift(u);const d=c.map(f=>{if(Lv.has(f))return f;const h=f.indexOf(" "),[g,b]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],y=us(b)?b:b&&b.split(" "),k=`colors.${g}`,x=k in t.__cssMap?t.__cssMap[k].varRef:g;return y?[x,...Array.isArray(y)?y:[y]].join(" "):x});return`${s}(${d.join(", ")})`}var us=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Hv=(e,t)=>Wv(e,t??{});function Uv(e){return/^var\(--.+\)$/.test(e)}var qv=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Ct=e=>t=>`${e}(${t})`,X={filter(e){return e!=="auto"?e:Ov},backdropFilter(e){return e!=="auto"?e:Fv},ring(e){return Dv(X.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Iv():e==="auto-gpu"?Bv():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=qv(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(Uv(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Hv,blur:Ct("blur"),opacity:Ct("opacity"),brightness:Ct("brightness"),contrast:Ct("contrast"),dropShadow:Ct("drop-shadow"),grayscale:Ct("grayscale"),hueRotate:e=>Ct("hue-rotate")(X.degree(e)),invert:Ct("invert"),saturate:Ct("saturate"),sepia:Ct("sepia"),bgImage(e){return e==null||us(e)||cs.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=Vv[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},w={borderWidths:dt("borderWidths"),borderStyles:dt("borderStyles"),colors:dt("colors"),borders:dt("borders"),gradients:dt("gradients",X.gradient),radii:dt("radii",X.px),space:dt("space",Fo(X.vh,X.px)),spaceT:dt("space",Fo(X.vh,X.px)),degreeT(e){return{property:e,transform:X.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:sl({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:dt("sizes",Fo(X.vh,X.px)),sizesT:dt("sizes",Fo(X.vh,X.fraction)),shadows:dt("shadows"),logical:zv,blur:dt("blur",X.blur)},Jo={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:X.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:X.bgClip}};Object.assign(Jo,{bgImage:Jo.backgroundImage,bgImg:Jo.backgroundImage});var ne={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ne,{rounded:ne.borderRadius,roundedTop:ne.borderTopRadius,roundedTopLeft:ne.borderTopLeftRadius,roundedTopRight:ne.borderTopRightRadius,roundedTopStart:ne.borderStartStartRadius,roundedTopEnd:ne.borderStartEndRadius,roundedBottom:ne.borderBottomRadius,roundedBottomLeft:ne.borderBottomLeftRadius,roundedBottomRight:ne.borderBottomRightRadius,roundedBottomStart:ne.borderEndStartRadius,roundedBottomEnd:ne.borderEndEndRadius,roundedLeft:ne.borderLeftRadius,roundedRight:ne.borderRightRadius,roundedStart:ne.borderInlineStartRadius,roundedEnd:ne.borderInlineEndRadius,borderStart:ne.borderInlineStart,borderEnd:ne.borderInlineEnd,borderTopStartRadius:ne.borderStartStartRadius,borderTopEndRadius:ne.borderStartEndRadius,borderBottomStartRadius:ne.borderEndStartRadius,borderBottomEndRadius:ne.borderEndEndRadius,borderStartRadius:ne.borderInlineStartRadius,borderEndRadius:ne.borderInlineEndRadius,borderStartWidth:ne.borderInlineStartWidth,borderEndWidth:ne.borderInlineEndWidth,borderStartColor:ne.borderInlineStartColor,borderEndColor:ne.borderInlineEndColor,borderStartStyle:ne.borderInlineStartStyle,borderEndStyle:ne.borderInlineEndStyle});var Gv={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},ds={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(ds,{shadow:ds.boxShadow});var Kv={filter:{transform:X.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",X.brightness),contrast:w.propT("--chakra-contrast",X.contrast),hueRotate:w.propT("--chakra-hue-rotate",X.hueRotate),invert:w.propT("--chakra-invert",X.invert),saturate:w.propT("--chakra-saturate",X.saturate),dropShadow:w.propT("--chakra-drop-shadow",X.dropShadow),backdropFilter:{transform:X.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",X.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",X.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",X.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",X.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",X.saturate)},gi={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:X.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(gi,{flexDir:gi.flexDirection});var Pf={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.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},Xv={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:X.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},ht={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",X.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(ht,{w:ht.width,h:ht.height,minW:ht.minWidth,maxW:ht.maxWidth,minH:ht.minHeight,maxH:ht.maxHeight,overscroll:ht.overscrollBehavior,overscrollX:ht.overscrollBehaviorX,overscrollY:ht.overscrollBehaviorY});var Yv={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")};function Zv(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},Qv=Jv(Zv),eb={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},tb={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},_a=(e,t,r)=>{const n={},o=Qv(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},rb={srOnly:{transform(e){return e===!0?eb:e==="focusable"?tb:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>_a(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>_a(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>_a(t,e,r)}},Dn={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Dn,{insetStart:Dn.insetInlineStart,insetEnd:Dn.insetInlineEnd});var nb={ring:{transform:X.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},he={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(he,{m:he.margin,mt:he.marginTop,mr:he.marginRight,me:he.marginInlineEnd,marginEnd:he.marginInlineEnd,mb:he.marginBottom,ml:he.marginLeft,ms:he.marginInlineStart,marginStart:he.marginInlineStart,mx:he.marginX,my:he.marginY,p:he.padding,pt:he.paddingTop,py:he.paddingY,px:he.paddingX,pb:he.paddingBottom,pl:he.paddingLeft,ps:he.paddingInlineStart,paddingStart:he.paddingInlineStart,pr:he.paddingRight,pe:he.paddingInlineEnd,paddingEnd:he.paddingInlineEnd});var ob={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},ib={clipPath:!0,transform:w.propT("transform",X.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},ab={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},sb={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",X.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},lb={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Tf(e){return St(e)&&e.reference?e.reference:String(e)}var Xi=(e,...t)=>t.map(Tf).join(` ${e} `).replace(/calc/g,""),Tc=(...e)=>`calc(${Xi("+",...e)})`,$c=(...e)=>`calc(${Xi("-",...e)})`,fs=(...e)=>`calc(${Xi("*",...e)})`,Ac=(...e)=>`calc(${Xi("/",...e)})`,Ec=e=>{const t=Tf(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:fs(t,-1)},wr=Object.assign(e=>({add:(...t)=>wr(Tc(e,...t)),subtract:(...t)=>wr($c(e,...t)),multiply:(...t)=>wr(fs(e,...t)),divide:(...t)=>wr(Ac(e,...t)),negate:()=>wr(Ec(e)),toString:()=>e.toString()}),{add:Tc,subtract:$c,multiply:fs,divide:Ac,negate:Ec});function cb(e,t="-"){return e.replace(/\s+/g,t)}function ub(e){const t=cb(e.toString());return fb(db(t))}function db(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function fb(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function hb(e,t=""){return[t,e].filter(Boolean).join("-")}function pb(e,t){return`var(${e}${t?`, ${t}`:""})`}function mb(e,t=""){return ub(`--${hb(e,t)}`)}function I(e,t,r){const n=mb(e,r);return{variable:n,reference:pb(n,t)}}function gb(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=I(`${e}-${o}`,i);continue}r[n]=I(`${e}-${n}`)}return r}function vb(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function bb(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function hs(e){if(e==null)return e;const{unitless:t}=bb(e);return t||typeof e=="number"?`${e}px`:e}var $f=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ll=e=>Object.fromEntries(Object.entries(e).sort($f));function Rc(e){const t=ll(e);return Object.assign(Object.values(t),t)}function yb(e){const t=Object.keys(ll(e));return new Set(t)}function jc(e){var t;if(!e)return e;e=(t=hs(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function jn(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${hs(e)})`),t&&r.push("and",`(max-width: ${hs(t)})`),r.join(" ")}function xb(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Rc(e),n=Object.entries(e).sort($f).map(([a,s],l,c)=>{var u;let[,d]=(u=c[l+1])!=null?u:[];return d=parseFloat(d)>0?jc(d):void 0,{_minW:jc(s),breakpoint:a,minW:s,maxW:d,maxWQuery:jn(null,d),minWQuery:jn(s),minMaxQuery:jn(s,d)}}),o=yb(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:ll(e),asArray:Rc(e),details:n,get(a){return n.find(s=>s.breakpoint===a)},media:[null,...r.map(a=>jn(a)).slice(1)],toArrayValue(a){if(!St(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var c;return(c=a[l])!=null?c:null});for(;vb(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,c)=>{const u=i[c];return u!=null&&l!=null&&(s[u]=l),s},{})}}}var Be={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Qt=e=>Af(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Ot=e=>Af(t=>e(t,"~ &"),"[data-peer]",".peer"),Af=(e,...t)=>t.map(e).join(", "),Yi={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Qt(Be.hover),_peerHover:Ot(Be.hover),_groupFocus:Qt(Be.focus),_peerFocus:Ot(Be.focus),_groupFocusVisible:Qt(Be.focusVisible),_peerFocusVisible:Ot(Be.focusVisible),_groupActive:Qt(Be.active),_peerActive:Ot(Be.active),_groupDisabled:Qt(Be.disabled),_peerDisabled:Ot(Be.disabled),_groupInvalid:Qt(Be.invalid),_peerInvalid:Ot(Be.invalid),_groupChecked:Qt(Be.checked),_peerChecked:Ot(Be.checked),_groupFocusWithin:Qt(Be.focusWithin),_peerFocusWithin:Ot(Be.focusWithin),_peerPlaceholderShown:Ot(Be.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Ef=Object.keys(Yi);function Mc(e,t){return I(String(e).replace(/\./g,"-"),void 0,t)}function Sb(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:c}=Mc(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[h,...g]=f,b=`${h}.-${g.join(".")}`,y=wr.negate(s),k=wr.negate(c);n[b]={value:y,var:l,varRef:k}}r[l]=s,n[o]={value:s,var:l,varRef:c};continue}const u=f=>{const g=[String(o).split(".")[0],f].join(".");if(!e[g])return f;const{reference:y}=Mc(g,t==null?void 0:t.cssVarPrefix);return y},d=St(s)?s:{default:s};r=pt(r,Object.entries(d).reduce((f,[h,g])=>{var b,y;if(!g)return f;const k=u(`${g}`);if(h==="default")return f[l]=k,f;const x=(y=(b=Yi)==null?void 0:b[h])!=null?y:h;return f[x]={[l]:k},f},{})),n[o]={value:c,var:l,varRef:c}}return{cssVars:r,cssMap:n}}function wb(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function kb(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Cb(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function zc(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){var l;if(Cb(a)||Array.isArray(a)){const c={};for(const[u,d]of Object.entries(a)){const f=(l=o==null?void 0:o(u))!=null?l:u,h=[...s,f];if(n!=null&&n(a,h))return t(a,s);c[f]=i(d,h)}return c}return t(a,s)}return i(e)}var _b=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Pb(e){return kb(e,_b)}function Tb(e){return e.semanticTokens}function $b(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var Ab=e=>Ef.includes(e)||e==="default";function Eb({tokens:e,semanticTokens:t}){const r={};return zc(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),zc(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(Ab)}),r}function Rb(e){var t;const r=$b(e),n=Pb(r),o=Tb(r),i=Eb({tokens:n,semanticTokens:o}),a=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=Sb(i,{cssVarPrefix:a});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:xb(r.breakpoints)}),r}var cl=pt({},Jo,ne,Gv,gi,ht,Kv,nb,Xv,Pf,rb,Dn,ds,he,lb,sb,ob,ib,Yv,ab),jb=Object.assign({},he,ht,gi,Pf,Dn),Mb=Object.keys(jb),zb=[...Object.keys(cl),...Ef],Ib={...cl,...Yi},Bb=e=>e in Ib,Ob=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=ir(e[a],t);if(s==null)continue;if(s=St(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let c=0;ce.startsWith("--")&&typeof t=="string"&&!Db(t),Lb=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var c,u;return(u=(c=e.__cssMap)==null?void 0:c[l])==null?void 0:u.varRef},i=l=>{var c;return(c=o(l))!=null?c:l},[a,s]=Fb(t);return t=(n=(r=o(a))!=null?r:i(s))!=null?n:i(t),t};function Nb(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,a=!1)=>{var s,l,c;const u=ir(i,n),d=Ob(u)(n);let f={};for(let h in d){const g=d[h];let b=ir(g,n);h in r&&(h=r[h]),Vb(h,b)&&(b=Lb(n,b));let y=t[h];if(y===!0&&(y={property:h}),St(b)){f[h]=(s=f[h])!=null?s:{},f[h]=pt({},f[h],o(b,!0));continue}let k=(c=(l=y==null?void 0:y.transform)==null?void 0:l.call(y,b,n,u))!=null?c:b;k=y!=null&&y.processResult?o(k,!0):k;const x=ir(y==null?void 0:y.property,n);if(!a&&(y!=null&&y.static)){const C=ir(y.static,n);f=pt({},f,C)}if(x&&Array.isArray(x)){for(const C of x)f[C]=k;continue}if(x){x==="&"&&St(k)?f=pt({},f,k):f[x]=k;continue}if(St(k)){f=pt({},f,k);continue}f[h]=k}return f};return o}var Rf=e=>t=>Nb({theme:t,pseudos:Yi,configs:cl})(e);function Q(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Wb(e,t){if(Array.isArray(e))return e;if(St(e))return t(e);if(e!=null)return[e]}function Hb(e,t){for(let r=t+1;r{pt(c,{[C]:f?x[C]:{[k]:x[C]}})});continue}if(!h){f?pt(c,x):c[k]=x;continue}c[k]=x}}return c}}function qb(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,a=Ub(i);return pt({},ir((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function Gb(e,t,r){var n,o,i;return(i=(o=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:o.varRef)!=null?i:r}function $e(e){return wb(e,["styleConfig","size","variant","colorScheme"])}var Kb=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Xb(e){return St(e)?Kb.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Yb={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},Zb={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Jb={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Qb={property:Yb,easing:Zb,duration:Jb},ey=Qb,ty={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},ry=ty,ny={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},oy=ny,iy={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},ay=iy,sy={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},ly=sy,cy={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},uy=cy,dy={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},fy=dy,hy={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},py=hy,my={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:{"3xs":"0.45rem","2xs":"0.625rem",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"}},jf=my,Mf={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"},gy={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},vy={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},by={...Mf,...gy,container:vy},zf=by,yy={breakpoints:ay,zIndices:ry,radii:uy,blur:py,colors:ly,...jf,sizes:zf,shadows:fy,space:Mf,borders:oy,transition:ey},{defineMultiStyleConfig:xy,definePartsStyle:Mn}=Q(["stepper","step","title","description","indicator","separator","icon","number"]),Ft=I("stepper-indicator-size"),Gr=I("stepper-icon-size"),Kr=I("stepper-title-font-size"),zn=I("stepper-description-font-size"),Pn=I("stepper-accent-color"),Sy=Mn(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Pn.variable]:`colors.${e}.500`,_dark:{[Pn.variable]:`colors.${e}.200`}},title:{fontSize:Kr.reference,fontWeight:"medium"},description:{fontSize:zn.reference,color:"chakra-subtle-text"},number:{fontSize:Kr.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Gr.reference,height:Gr.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ft.reference,height:Ft.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Pn.reference},"&[data-status=complete]":{bg:Pn.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Pn.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ft.reference} - 8px)`,top:`calc(${Ft.reference} + 4px)`,insetStart:`calc(${Ft.reference} / 2 - 1px)`}}})),wy=xy({baseStyle:Sy,sizes:{xs:Mn({stepper:{[Ft.variable]:"sizes.4",[Gr.variable]:"sizes.3",[Kr.variable]:"fontSizes.xs",[zn.variable]:"fontSizes.xs"}}),sm:Mn({stepper:{[Ft.variable]:"sizes.6",[Gr.variable]:"sizes.4",[Kr.variable]:"fontSizes.sm",[zn.variable]:"fontSizes.xs"}}),md:Mn({stepper:{[Ft.variable]:"sizes.8",[Gr.variable]:"sizes.5",[Kr.variable]:"fontSizes.md",[zn.variable]:"fontSizes.sm"}}),lg:Mn({stepper:{[Ft.variable]:"sizes.10",[Gr.variable]:"sizes.6",[Kr.variable]:"fontSizes.lg",[zn.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function se(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...u){n();for(const d of u)t[d]=l(d);return se(e,t)}function i(...u){for(const d of u)d in t||(t[d]=l(d));return se(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(u){const h=`chakra-${(["container","root"].includes(u??"")?[e]:[e,u]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>u}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var ky=se("accordion").parts("root","container","button","panel").extend("icon"),Cy=se("alert").parts("title","description","container").extend("icon","spinner"),_y=se("avatar").parts("label","badge","container").extend("excessLabel","group"),Py=se("breadcrumb").parts("link","item","container").extend("separator");se("button").parts();var If=se("checkbox").parts("control","icon","container").extend("label");se("progress").parts("track","filledTrack").extend("label");var Ty=se("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),$y=se("editable").parts("preview","input","textarea"),Bf=se("form").parts("container","requiredIndicator","helperText"),Of=se("formError").parts("text","icon"),Ff=se("input").parts("addon","field","element","group"),Ay=se("list").parts("container","item","icon"),Ey=se("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Ry=se("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),jy=se("numberinput").parts("root","field","stepperGroup","stepper");se("pininput").parts("field");var My=se("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),zy=se("progress").parts("label","filledTrack","track"),Iy=se("radio").parts("container","control","label"),Df=se("select").parts("field","icon"),By=se("slider").parts("container","track","thumb","filledTrack","mark"),Oy=se("stat").parts("container","label","helpText","number","icon"),Vf=se("switch").parts("container","track","thumb","label"),Fy=se("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Dy=se("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Vy=se("tag").parts("container","label","closeButton"),Lf=se("card").parts("container","header","body","footer");se("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Cr(e,t,r){return Math.min(Math.max(e,r),t)}class Ly extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var In=Ly;function ul(e){if(typeof e!="string")throw new In(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=Xy.test(e)?Hy(e):e;const r=Uy.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(no(s,2),16)),parseInt(no(a[3]||"f",2),16)/255]}const n=qy.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=Gy.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=Ky.exec(t);if(i){const[a,s,l,c]=Array.from(i).slice(1).map(parseFloat);if(Cr(0,100,s)!==s)throw new In(e);if(Cr(0,100,l)!==l)throw new In(e);return[...Yy(a,s,l),Number.isNaN(c)?1:c]}throw new In(e)}function Ny(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Ic=e=>parseInt(e.replace(/_/g,""),36),Wy="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=Ic(t.substring(0,3)),n=Ic(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function Hy(e){const t=e.toLowerCase().trim(),r=Wy[Ny(t)];if(!r)throw new In(e);return`#${r}`}const no=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Uy=new RegExp(`^#${no("([a-f0-9])",3)}([a-f0-9])?$`,"i"),qy=new RegExp(`^#${no("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Gy=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${no(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Ky=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Xy=/^[a-z]+$/i,Bc=e=>Math.round(e*255),Yy=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(Bc);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,c=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);const u=n-i/2,d=s+u,f=l+u,h=c+u;return[d,f,h].map(Bc)};function Zy(e,t,r,n){return`rgba(${Cr(0,255,e).toFixed()}, ${Cr(0,255,t).toFixed()}, ${Cr(0,255,r).toFixed()}, ${parseFloat(Cr(0,1,n).toFixed(3))})`}function Jy(e,t){const[r,n,o,i]=ul(e);return Zy(r,n,o,i-t)}function Qy(e){const[t,r,n,o]=ul(e);let i=a=>{const s=Cr(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function e1(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,He=(e,t,r)=>{const n=e1(e,`colors.${t}`,t);try{return Qy(n),n}catch{return r??"#000000"}},r1=e=>{const[t,r,n]=ul(e);return(t*299+r*587+n*114)/1e3},n1=e=>t=>{const r=He(t,e);return r1(r)<128?"dark":"light"},o1=e=>t=>n1(e)(t)==="dark",un=(e,t)=>r=>{const n=He(r,e);return Jy(n,1-t)};function Oc(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}var i1=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function a1(e){const t=i1();return!e||t1(e)?t:e.string&&e.colors?l1(e.string,e.colors):e.string&&!e.colors?s1(e.string):e.colors&&!e.string?c1(e.colors):t}function s1(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function l1(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function dl(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function Nf(e){return St(e)&&e.reference?e.reference:String(e)}var Zi=(e,...t)=>t.map(Nf).join(` ${e} `).replace(/calc/g,""),Fc=(...e)=>`calc(${Zi("+",...e)})`,Dc=(...e)=>`calc(${Zi("-",...e)})`,ps=(...e)=>`calc(${Zi("*",...e)})`,Vc=(...e)=>`calc(${Zi("/",...e)})`,Lc=e=>{const t=Nf(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ps(t,-1)},Dt=Object.assign(e=>({add:(...t)=>Dt(Fc(e,...t)),subtract:(...t)=>Dt(Dc(e,...t)),multiply:(...t)=>Dt(ps(e,...t)),divide:(...t)=>Dt(Vc(e,...t)),negate:()=>Dt(Lc(e)),toString:()=>e.toString()}),{add:Fc,subtract:Dc,multiply:ps,divide:Vc,negate:Lc});function u1(e){return!Number.isInteger(parseFloat(e.toString()))}function d1(e,t="-"){return e.replace(/\s+/g,t)}function Wf(e){const t=d1(e.toString());return t.includes("\\.")?e:u1(e)?t.replace(".","\\."):e}function f1(e,t=""){return[t,Wf(e)].filter(Boolean).join("-")}function h1(e,t){return`var(${Wf(e)}${t?`, ${t}`:""})`}function p1(e,t=""){return`--${f1(e,t)}`}function Ae(e,t){const r=p1(e,t==null?void 0:t.prefix);return{variable:r,reference:h1(r,m1(t==null?void 0:t.fallback))}}function m1(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:g1,definePartsStyle:Qo}=Q(Vf.keys),Vn=Ae("switch-track-width"),Pr=Ae("switch-track-height"),Pa=Ae("switch-track-diff"),v1=Dt.subtract(Vn,Pr),ms=Ae("switch-thumb-x"),Tn=Ae("switch-bg"),b1=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Vn.reference],height:[Pr.reference],transitionProperty:"common",transitionDuration:"fast",[Tn.variable]:"colors.gray.300",_dark:{[Tn.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Tn.variable]:`colors.${t}.500`,_dark:{[Tn.variable]:`colors.${t}.200`}},bg:Tn.reference}},y1={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Pr.reference],height:[Pr.reference],_checked:{transform:`translateX(${ms.reference})`}},x1=Qo(e=>({container:{[Pa.variable]:v1,[ms.variable]:Pa.reference,_rtl:{[ms.variable]:Dt(Pa).negate().toString()}},track:b1(e),thumb:y1})),S1={sm:Qo({container:{[Vn.variable]:"1.375rem",[Pr.variable]:"sizes.3"}}),md:Qo({container:{[Vn.variable]:"1.875rem",[Pr.variable]:"sizes.4"}}),lg:Qo({container:{[Vn.variable]:"2.875rem",[Pr.variable]:"sizes.6"}})},w1=g1({baseStyle:x1,sizes:S1,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:k1,definePartsStyle:nn}=Q(Fy.keys),C1=nn({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),vi={"&[data-is-numeric=true]":{textAlign:"end"}},_1=nn(e=>{const{colorScheme:t}=e;return{th:{color:O("gray.600","gray.400")(e),borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...vi},td:{borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...vi},caption:{color:O("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),P1=nn(e=>{const{colorScheme:t}=e;return{th:{color:O("gray.600","gray.400")(e),borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...vi},td:{borderBottom:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e),...vi},caption:{color:O("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:O(`${t}.100`,`${t}.700`)(e)},td:{background:O(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),T1={simple:_1,striped:P1,unstyled:{}},$1={sm:nn({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:nn({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:nn({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},A1=k1({baseStyle:C1,variants:T1,sizes:$1,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Xe=I("tabs-color"),xt=I("tabs-bg"),Do=I("tabs-border-color"),{defineMultiStyleConfig:E1,definePartsStyle:Rt}=Q(Dy.keys),R1=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},j1=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},M1=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},z1={p:4},I1=Rt(e=>({root:R1(e),tab:j1(e),tablist:M1(e),tabpanel:z1})),B1={sm:Rt({tab:{py:1,px:4,fontSize:"sm"}}),md:Rt({tab:{fontSize:"md",py:2,px:4}}),lg:Rt({tab:{fontSize:"lg",py:3,px:4}})},O1=Rt(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Xe.variable]:`colors.${t}.600`,_dark:{[Xe.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[xt.variable]:"colors.gray.200",_dark:{[xt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Xe.reference,bg:xt.reference}}}),F1=Rt(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Do.variable]:"transparent",_selected:{[Xe.variable]:`colors.${t}.600`,[Do.variable]:"colors.white",_dark:{[Xe.variable]:`colors.${t}.300`,[Do.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Do.reference},color:Xe.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),D1=Rt(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[xt.variable]:"colors.gray.50",_dark:{[xt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[xt.variable]:"colors.white",[Xe.variable]:`colors.${t}.600`,_dark:{[xt.variable]:"colors.gray.800",[Xe.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Xe.reference,bg:xt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),V1=Rt(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:He(r,`${t}.700`),bg:He(r,`${t}.100`)}}}}),L1=Rt(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Xe.variable]:"colors.gray.600",_dark:{[Xe.variable]:"inherit"},_selected:{[Xe.variable]:"colors.white",[xt.variable]:`colors.${t}.600`,_dark:{[Xe.variable]:"colors.gray.800",[xt.variable]:`colors.${t}.300`}},color:Xe.reference,bg:xt.reference}}}),N1=Rt({}),W1={line:O1,enclosed:F1,"enclosed-colored":D1,"soft-rounded":V1,"solid-rounded":L1,unstyled:N1},H1=E1({baseStyle:I1,sizes:B1,variants:W1,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),we=gb("badge",["bg","color","shadow"]),U1={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:we.bg.reference,color:we.color.reference,boxShadow:we.shadow.reference},q1=e=>{const{colorScheme:t,theme:r}=e,n=un(`${t}.500`,.6)(r);return{[we.bg.variable]:`colors.${t}.500`,[we.color.variable]:"colors.white",_dark:{[we.bg.variable]:n,[we.color.variable]:"colors.whiteAlpha.800"}}},G1=e=>{const{colorScheme:t,theme:r}=e,n=un(`${t}.200`,.16)(r);return{[we.bg.variable]:`colors.${t}.100`,[we.color.variable]:`colors.${t}.800`,_dark:{[we.bg.variable]:n,[we.color.variable]:`colors.${t}.200`}}},K1=e=>{const{colorScheme:t,theme:r}=e,n=un(`${t}.200`,.8)(r);return{[we.color.variable]:`colors.${t}.500`,_dark:{[we.color.variable]:n},[we.shadow.variable]:`inset 0 0 0px 1px ${we.color.reference}`}},X1={solid:q1,subtle:G1,outline:K1},Ln={baseStyle:U1,variants:X1,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Y1,definePartsStyle:Tr}=Q(Vy.keys),Nc=I("tag-bg"),Wc=I("tag-color"),Ta=I("tag-shadow"),ei=I("tag-min-height"),ti=I("tag-min-width"),ri=I("tag-font-size"),ni=I("tag-padding-inline"),Z1={fontWeight:"medium",lineHeight:1.2,outline:0,[Wc.variable]:we.color.reference,[Nc.variable]:we.bg.reference,[Ta.variable]:we.shadow.reference,color:Wc.reference,bg:Nc.reference,boxShadow:Ta.reference,borderRadius:"md",minH:ei.reference,minW:ti.reference,fontSize:ri.reference,px:ni.reference,_focusVisible:{[Ta.variable]:"shadows.outline"}},J1={lineHeight:1.2,overflow:"visible"},Q1={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},ex=Tr({container:Z1,label:J1,closeButton:Q1}),tx={sm:Tr({container:{[ei.variable]:"sizes.5",[ti.variable]:"sizes.5",[ri.variable]:"fontSizes.xs",[ni.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Tr({container:{[ei.variable]:"sizes.6",[ti.variable]:"sizes.6",[ri.variable]:"fontSizes.sm",[ni.variable]:"space.2"}}),lg:Tr({container:{[ei.variable]:"sizes.8",[ti.variable]:"sizes.8",[ri.variable]:"fontSizes.md",[ni.variable]:"space.3"}})},rx={subtle:Tr(e=>{var t;return{container:(t=Ln.variants)==null?void 0:t.subtle(e)}}),solid:Tr(e=>{var t;return{container:(t=Ln.variants)==null?void 0:t.solid(e)}}),outline:Tr(e=>{var t;return{container:(t=Ln.variants)==null?void 0:t.outline(e)}})},nx=Y1({variants:rx,baseStyle:ex,sizes:tx,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Vt,defineMultiStyleConfig:ox}=Q(Ff.keys),Xr=I("input-height"),Yr=I("input-font-size"),Zr=I("input-padding"),Jr=I("input-border-radius"),ix=Vt({addon:{height:Xr.reference,fontSize:Yr.reference,px:Zr.reference,borderRadius:Jr.reference},field:{width:"100%",height:Xr.reference,fontSize:Yr.reference,px:Zr.reference,borderRadius:Jr.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),er={lg:{[Yr.variable]:"fontSizes.lg",[Zr.variable]:"space.4",[Jr.variable]:"radii.md",[Xr.variable]:"sizes.12"},md:{[Yr.variable]:"fontSizes.md",[Zr.variable]:"space.4",[Jr.variable]:"radii.md",[Xr.variable]:"sizes.10"},sm:{[Yr.variable]:"fontSizes.sm",[Zr.variable]:"space.3",[Jr.variable]:"radii.sm",[Xr.variable]:"sizes.8"},xs:{[Yr.variable]:"fontSizes.xs",[Zr.variable]:"space.2",[Jr.variable]:"radii.sm",[Xr.variable]:"sizes.6"}},ax={lg:Vt({field:er.lg,group:er.lg}),md:Vt({field:er.md,group:er.md}),sm:Vt({field:er.sm,group:er.sm}),xs:Vt({field:er.xs,group:er.xs})};function fl(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||O("blue.500","blue.300")(e),errorBorderColor:r||O("red.500","red.300")(e)}}var sx=Vt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=fl(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:O("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,n),boxShadow:`0 0 0 1px ${He(t,n)}`},_focusVisible:{zIndex:1,borderColor:He(t,r),boxShadow:`0 0 0 1px ${He(t,r)}`}},addon:{border:"1px solid",borderColor:O("inherit","whiteAlpha.50")(e),bg:O("gray.100","whiteAlpha.300")(e)}}}),lx=Vt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=fl(e);return{field:{border:"2px solid",borderColor:"transparent",bg:O("gray.100","whiteAlpha.50")(e),_hover:{bg:O("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,n)},_focusVisible:{bg:"transparent",borderColor:He(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:O("gray.100","whiteAlpha.50")(e)}}}),cx=Vt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=fl(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:He(t,n),boxShadow:`0px 1px 0px 0px ${He(t,n)}`},_focusVisible:{borderColor:He(t,r),boxShadow:`0px 1px 0px 0px ${He(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),ux=Vt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),dx={outline:sx,filled:lx,flushed:cx,unstyled:ux},ae=ox({baseStyle:ix,sizes:ax,variants:dx,defaultProps:{size:"md",variant:"outline"}}),Hc,fx={...(Hc=ae.baseStyle)==null?void 0:Hc.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Uc,qc,hx={outline:e=>{var t,r;return(r=(t=ae.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=ae.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=ae.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(qc=(Uc=ae.variants)==null?void 0:Uc.unstyled.field)!=null?qc:{}},Gc,Kc,Xc,Yc,Zc,Jc,Qc,eu,px={xs:(Kc=(Gc=ae.sizes)==null?void 0:Gc.xs.field)!=null?Kc:{},sm:(Yc=(Xc=ae.sizes)==null?void 0:Xc.sm.field)!=null?Yc:{},md:(Jc=(Zc=ae.sizes)==null?void 0:Zc.md.field)!=null?Jc:{},lg:(eu=(Qc=ae.sizes)==null?void 0:Qc.lg.field)!=null?eu:{}},mx={baseStyle:fx,sizes:px,variants:hx,defaultProps:{size:"md",variant:"outline"}},Vo=Ae("tooltip-bg"),$a=Ae("tooltip-fg"),gx=Ae("popper-arrow-bg"),vx={bg:Vo.reference,color:$a.reference,[Vo.variable]:"colors.gray.700",[$a.variable]:"colors.whiteAlpha.900",_dark:{[Vo.variable]:"colors.gray.300",[$a.variable]:"colors.gray.900"},[gx.variable]:Vo.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},bx={baseStyle:vx},{defineMultiStyleConfig:yx,definePartsStyle:Bn}=Q(zy.keys),xx=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=O(Oc(),Oc("1rem","rgba(0,0,0,0.1)"))(e),a=O(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( + to right, + transparent 0%, + ${He(r,a)} 50%, + transparent 100% + )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},Sx={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},wx=e=>({bg:O("gray.100","whiteAlpha.300")(e)}),kx=e=>({transitionProperty:"common",transitionDuration:"slow",...xx(e)}),Cx=Bn(e=>({label:Sx,filledTrack:kx(e),track:wx(e)})),_x={xs:Bn({track:{h:"1"}}),sm:Bn({track:{h:"2"}}),md:Bn({track:{h:"3"}}),lg:Bn({track:{h:"4"}})},Px=yx({sizes:_x,baseStyle:Cx,defaultProps:{size:"md",colorScheme:"blue"}}),Tx=e=>typeof e=="function";function Ue(e,...t){return Tx(e)?e(...t):e}var{definePartsStyle:oi,defineMultiStyleConfig:$x}=Q(If.keys),Nn=I("checkbox-size"),Ax=e=>{const{colorScheme:t}=e;return{w:Nn.reference,h:Nn.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:O(`${t}.500`,`${t}.200`)(e),borderColor:O(`${t}.500`,`${t}.200`)(e),color:O("white","gray.900")(e),_hover:{bg:O(`${t}.600`,`${t}.300`)(e),borderColor:O(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:O("gray.200","transparent")(e),bg:O("gray.200","whiteAlpha.300")(e),color:O("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:O(`${t}.500`,`${t}.200`)(e),borderColor:O(`${t}.500`,`${t}.200`)(e),color:O("white","gray.900")(e)},_disabled:{bg:O("gray.100","whiteAlpha.100")(e),borderColor:O("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:O("red.500","red.300")(e)}}},Ex={_disabled:{cursor:"not-allowed"}},Rx={userSelect:"none",_disabled:{opacity:.4}},jx={transitionProperty:"transform",transitionDuration:"normal"},Mx=oi(e=>({icon:jx,container:Ex,control:Ue(Ax,e),label:Rx})),zx={sm:oi({control:{[Nn.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:oi({control:{[Nn.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:oi({control:{[Nn.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},bi=$x({baseStyle:Mx,sizes:zx,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ix,definePartsStyle:ii}=Q(Iy.keys),Bx=e=>{var t;const r=(t=Ue(bi.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Ox=ii(e=>{var t,r,n,o;return{label:(r=(t=bi).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=bi).baseStyle)==null?void 0:o.call(n,e).container,control:Bx(e)}}),Fx={md:ii({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ii({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ii({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Dx=Ix({baseStyle:Ox,sizes:Fx,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Vx,definePartsStyle:Lx}=Q(Df.keys),Lo=I("select-bg"),tu,Nx={...(tu=ae.baseStyle)==null?void 0:tu.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Lo.reference,[Lo.variable]:"colors.white",_dark:{[Lo.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Lo.reference}},Wx={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Hx=Lx({field:Nx,icon:Wx}),No={paddingInlineEnd:"8"},ru,nu,ou,iu,au,su,lu,cu,Ux={lg:{...(ru=ae.sizes)==null?void 0:ru.lg,field:{...(nu=ae.sizes)==null?void 0:nu.lg.field,...No}},md:{...(ou=ae.sizes)==null?void 0:ou.md,field:{...(iu=ae.sizes)==null?void 0:iu.md.field,...No}},sm:{...(au=ae.sizes)==null?void 0:au.sm,field:{...(su=ae.sizes)==null?void 0:su.sm.field,...No}},xs:{...(lu=ae.sizes)==null?void 0:lu.xs,field:{...(cu=ae.sizes)==null?void 0:cu.xs.field,...No},icon:{insetEnd:"1"}}},qx=Vx({baseStyle:Hx,sizes:Ux,variants:ae.variants,defaultProps:ae.defaultProps}),Aa=I("skeleton-start-color"),Ea=I("skeleton-end-color"),Gx={[Aa.variable]:"colors.gray.100",[Ea.variable]:"colors.gray.400",_dark:{[Aa.variable]:"colors.gray.800",[Ea.variable]:"colors.gray.600"},background:Aa.reference,borderColor:Ea.reference,opacity:.7,borderRadius:"sm"},Kx={baseStyle:Gx},Ra=I("skip-link-bg"),Xx={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Ra.variable]:"colors.white",_dark:{[Ra.variable]:"colors.gray.700"},bg:Ra.reference}},Yx={baseStyle:Xx},{defineMultiStyleConfig:Zx,definePartsStyle:Ji}=Q(By.keys),oo=I("slider-thumb-size"),io=I("slider-track-size"),or=I("slider-bg"),Jx=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...dl({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Qx=e=>({...dl({orientation:e.orientation,horizontal:{h:io.reference},vertical:{w:io.reference}}),overflow:"hidden",borderRadius:"sm",[or.variable]:"colors.gray.200",_dark:{[or.variable]:"colors.whiteAlpha.200"},_disabled:{[or.variable]:"colors.gray.300",_dark:{[or.variable]:"colors.whiteAlpha.300"}},bg:or.reference}),e2=e=>{const{orientation:t}=e;return{...dl({orientation:t,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)"}}}),w:oo.reference,h:oo.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},t2=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[or.variable]:`colors.${t}.500`,_dark:{[or.variable]:`colors.${t}.200`},bg:or.reference}},r2=Ji(e=>({container:Jx(e),track:Qx(e),thumb:e2(e),filledTrack:t2(e)})),n2=Ji({container:{[oo.variable]:"sizes.4",[io.variable]:"sizes.1"}}),o2=Ji({container:{[oo.variable]:"sizes.3.5",[io.variable]:"sizes.1"}}),i2=Ji({container:{[oo.variable]:"sizes.2.5",[io.variable]:"sizes.0.5"}}),a2={lg:n2,md:o2,sm:i2},s2=Zx({baseStyle:r2,sizes:a2,defaultProps:{size:"md",colorScheme:"blue"}}),kr=Ae("spinner-size"),l2={width:[kr.reference],height:[kr.reference]},c2={xs:{[kr.variable]:"sizes.3"},sm:{[kr.variable]:"sizes.4"},md:{[kr.variable]:"sizes.6"},lg:{[kr.variable]:"sizes.8"},xl:{[kr.variable]:"sizes.12"}},u2={baseStyle:l2,sizes:c2,defaultProps:{size:"md"}},{defineMultiStyleConfig:d2,definePartsStyle:Hf}=Q(Oy.keys),f2={fontWeight:"medium"},h2={opacity:.8,marginBottom:"2"},p2={verticalAlign:"baseline",fontWeight:"semibold"},m2={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},g2=Hf({container:{},label:f2,helpText:h2,number:p2,icon:m2}),v2={md:Hf({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},b2=d2({baseStyle:g2,sizes:v2,defaultProps:{size:"md"}}),ja=I("kbd-bg"),y2={[ja.variable]:"colors.gray.100",_dark:{[ja.variable]:"colors.whiteAlpha.100"},bg:ja.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},x2={baseStyle:y2},S2={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},w2={baseStyle:S2},{defineMultiStyleConfig:k2,definePartsStyle:C2}=Q(Ay.keys),_2={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},P2=C2({icon:_2}),T2=k2({baseStyle:P2}),{defineMultiStyleConfig:$2,definePartsStyle:A2}=Q(Ey.keys),Pt=I("menu-bg"),Ma=I("menu-shadow"),E2={[Pt.variable]:"#fff",[Ma.variable]:"shadows.sm",_dark:{[Pt.variable]:"colors.gray.700",[Ma.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Pt.reference,boxShadow:Ma.reference},R2={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Pt.variable]:"colors.gray.100",_dark:{[Pt.variable]:"colors.whiteAlpha.100"}},_active:{[Pt.variable]:"colors.gray.200",_dark:{[Pt.variable]:"colors.whiteAlpha.200"}},_expanded:{[Pt.variable]:"colors.gray.100",_dark:{[Pt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Pt.reference},j2={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},M2={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},z2={opacity:.6},I2={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},B2={transitionProperty:"common",transitionDuration:"normal"},O2=A2({button:B2,list:E2,item:R2,groupTitle:j2,icon:M2,command:z2,divider:I2}),F2=$2({baseStyle:O2}),{defineMultiStyleConfig:D2,definePartsStyle:gs}=Q(Ry.keys),za=I("modal-bg"),Ia=I("modal-shadow"),V2={bg:"blackAlpha.600",zIndex:"modal"},L2=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},N2=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[za.variable]:"colors.white",[Ia.variable]:"shadows.lg",_dark:{[za.variable]:"colors.gray.700",[Ia.variable]:"shadows.dark-lg"},bg:za.reference,boxShadow:Ia.reference}},W2={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},H2={position:"absolute",top:"2",insetEnd:"3"},U2=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},q2={px:"6",py:"4"},G2=gs(e=>({overlay:V2,dialogContainer:Ue(L2,e),dialog:Ue(N2,e),header:W2,closeButton:H2,body:Ue(U2,e),footer:q2}));function bt(e){return gs(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var K2={xs:bt("xs"),sm:bt("sm"),md:bt("md"),lg:bt("lg"),xl:bt("xl"),"2xl":bt("2xl"),"3xl":bt("3xl"),"4xl":bt("4xl"),"5xl":bt("5xl"),"6xl":bt("6xl"),full:bt("full")},X2=D2({baseStyle:G2,sizes:K2,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Y2,definePartsStyle:Uf}=Q(jy.keys),hl=Ae("number-input-stepper-width"),qf=Ae("number-input-input-padding"),Z2=Dt(hl).add("0.5rem").toString(),Ba=Ae("number-input-bg"),Oa=Ae("number-input-color"),Fa=Ae("number-input-border-color"),J2={[hl.variable]:"sizes.6",[qf.variable]:Z2},Q2=e=>{var t,r;return(r=(t=Ue(ae.baseStyle,e))==null?void 0:t.field)!=null?r:{}},eS={width:hl.reference},tS={borderStart:"1px solid",borderStartColor:Fa.reference,color:Oa.reference,bg:Ba.reference,[Oa.variable]:"colors.chakra-body-text",[Fa.variable]:"colors.chakra-border-color",_dark:{[Oa.variable]:"colors.whiteAlpha.800",[Fa.variable]:"colors.whiteAlpha.300"},_active:{[Ba.variable]:"colors.gray.200",_dark:{[Ba.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},rS=Uf(e=>{var t;return{root:J2,field:(t=Ue(Q2,e))!=null?t:{},stepperGroup:eS,stepper:tS}});function Wo(e){var t,r,n;const o=(t=ae.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=jf.fontSizes[a];return Uf({field:{...o.field,paddingInlineEnd:qf.reference,verticalAlign:"top"},stepper:{fontSize:Dt(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var nS={xs:Wo("xs"),sm:Wo("sm"),md:Wo("md"),lg:Wo("lg")},oS=Y2({baseStyle:rS,sizes:nS,variants:ae.variants,defaultProps:ae.defaultProps}),uu,iS={...(uu=ae.baseStyle)==null?void 0:uu.field,textAlign:"center"},aS={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},du,fu,sS={outline:e=>{var t,r,n;return(n=(r=Ue((t=ae.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=Ue((t=ae.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=Ue((t=ae.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(fu=(du=ae.variants)==null?void 0:du.unstyled.field)!=null?fu:{}},lS={baseStyle:iS,sizes:aS,variants:sS,defaultProps:ae.defaultProps},{defineMultiStyleConfig:cS,definePartsStyle:uS}=Q(My.keys),Ho=Ae("popper-bg"),dS=Ae("popper-arrow-bg"),hu=Ae("popper-arrow-shadow-color"),fS={zIndex:10},hS={[Ho.variable]:"colors.white",bg:Ho.reference,[dS.variable]:Ho.reference,[hu.variable]:"colors.gray.200",_dark:{[Ho.variable]:"colors.gray.700",[hu.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},pS={px:3,py:2,borderBottomWidth:"1px"},mS={px:3,py:2},gS={px:3,py:2,borderTopWidth:"1px"},vS={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},bS=uS({popper:fS,content:hS,header:pS,body:mS,footer:gS,closeButton:vS}),yS=cS({baseStyle:bS}),{definePartsStyle:vs,defineMultiStyleConfig:xS}=Q(Ty.keys),Da=I("drawer-bg"),Va=I("drawer-box-shadow");function Nr(e){return vs(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var SS={bg:"blackAlpha.600",zIndex:"modal"},wS={display:"flex",zIndex:"modal",justifyContent:"center"},kS=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Da.variable]:"colors.white",[Va.variable]:"shadows.lg",_dark:{[Da.variable]:"colors.gray.700",[Va.variable]:"shadows.dark-lg"},bg:Da.reference,boxShadow:Va.reference}},CS={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},_S={position:"absolute",top:"2",insetEnd:"3"},PS={px:"6",py:"2",flex:"1",overflow:"auto"},TS={px:"6",py:"4"},$S=vs(e=>({overlay:SS,dialogContainer:wS,dialog:Ue(kS,e),header:CS,closeButton:_S,body:PS,footer:TS})),AS={xs:Nr("xs"),sm:Nr("md"),md:Nr("lg"),lg:Nr("2xl"),xl:Nr("4xl"),full:Nr("full")},ES=xS({baseStyle:$S,sizes:AS,defaultProps:{size:"xs"}}),{definePartsStyle:RS,defineMultiStyleConfig:jS}=Q($y.keys),MS={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},zS={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},IS={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},BS=RS({preview:MS,input:zS,textarea:IS}),OS=jS({baseStyle:BS}),{definePartsStyle:FS,defineMultiStyleConfig:DS}=Q(Bf.keys),on=I("form-control-color"),VS={marginStart:"1",[on.variable]:"colors.red.500",_dark:{[on.variable]:"colors.red.300"},color:on.reference},LS={mt:"2",[on.variable]:"colors.gray.600",_dark:{[on.variable]:"colors.whiteAlpha.600"},color:on.reference,lineHeight:"normal",fontSize:"sm"},NS=FS({container:{width:"100%",position:"relative"},requiredIndicator:VS,helperText:LS}),WS=DS({baseStyle:NS}),{definePartsStyle:HS,defineMultiStyleConfig:US}=Q(Of.keys),an=I("form-error-color"),qS={[an.variable]:"colors.red.500",_dark:{[an.variable]:"colors.red.300"},color:an.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},GS={marginEnd:"0.5em",[an.variable]:"colors.red.500",_dark:{[an.variable]:"colors.red.300"},color:an.reference},KS=HS({text:qS,icon:GS}),XS=US({baseStyle:KS}),YS={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},ZS={baseStyle:YS},JS={fontFamily:"heading",fontWeight:"bold"},QS={"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}},ew={baseStyle:JS,sizes:QS,defaultProps:{size:"xl"}},{defineMultiStyleConfig:tw,definePartsStyle:rw}=Q(Py.keys),La=I("breadcrumb-link-decor"),nw={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:La.reference,[La.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[La.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},ow=rw({link:nw}),iw=tw({baseStyle:ow}),aw={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},Gf=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:O("gray.800","whiteAlpha.900")(e),_hover:{bg:O("gray.100","whiteAlpha.200")(e)},_active:{bg:O("gray.200","whiteAlpha.300")(e)}};const n=un(`${t}.200`,.12)(r),o=un(`${t}.200`,.24)(r);return{color:O(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:O(`${t}.50`,n)(e)},_active:{bg:O(`${t}.100`,o)(e)}}},sw=e=>{const{colorScheme:t}=e,r=O("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Ue(Gf,e)}},lw={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},cw=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=O("gray.100","whiteAlpha.200")(e);return{bg:l,color:O("gray.800","whiteAlpha.900")(e),_hover:{bg:O("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:O("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=(t=lw[r])!=null?t:{},s=O(n,`${r}.200`)(e);return{bg:s,color:O(o,"gray.800")(e),_hover:{bg:O(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:O(a,`${r}.400`)(e)}}},uw=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:O(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:O(`${t}.700`,`${t}.500`)(e)}}},dw={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},fw={ghost:Gf,outline:sw,solid:cw,link:uw,unstyled:dw},hw={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},pw={baseStyle:aw,variants:fw,sizes:hw,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:$r,defineMultiStyleConfig:mw}=Q(Lf.keys),yi=I("card-bg"),Nt=I("card-padding"),Kf=I("card-shadow"),ai=I("card-radius"),Xf=I("card-border-width","0"),Yf=I("card-border-color"),gw=$r({container:{[yi.variable]:"colors.chakra-body-bg",backgroundColor:yi.reference,boxShadow:Kf.reference,borderRadius:ai.reference,color:"chakra-body-text",borderWidth:Xf.reference,borderColor:Yf.reference},body:{padding:Nt.reference,flex:"1 1 0%"},header:{padding:Nt.reference},footer:{padding:Nt.reference}}),vw={sm:$r({container:{[ai.variable]:"radii.base",[Nt.variable]:"space.3"}}),md:$r({container:{[ai.variable]:"radii.md",[Nt.variable]:"space.5"}}),lg:$r({container:{[ai.variable]:"radii.xl",[Nt.variable]:"space.7"}})},bw={elevated:$r({container:{[Kf.variable]:"shadows.base",_dark:{[yi.variable]:"colors.gray.700"}}}),outline:$r({container:{[Xf.variable]:"1px",[Yf.variable]:"colors.chakra-border-color"}}),filled:$r({container:{[yi.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Nt.variable]:0},header:{[Nt.variable]:0},footer:{[Nt.variable]:0}}},yw=mw({baseStyle:gw,variants:bw,sizes:vw,defaultProps:{variant:"elevated",size:"md"}}),Wn=Ae("close-button-size"),$n=Ae("close-button-bg"),xw={w:[Wn.reference],h:[Wn.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[$n.variable]:"colors.blackAlpha.100",_dark:{[$n.variable]:"colors.whiteAlpha.100"}},_active:{[$n.variable]:"colors.blackAlpha.200",_dark:{[$n.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:$n.reference},Sw={lg:{[Wn.variable]:"sizes.10",fontSize:"md"},md:{[Wn.variable]:"sizes.8",fontSize:"xs"},sm:{[Wn.variable]:"sizes.6",fontSize:"2xs"}},ww={baseStyle:xw,sizes:Sw,defaultProps:{size:"md"}},{variants:kw,defaultProps:Cw}=Ln,_w={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:we.bg.reference,color:we.color.reference,boxShadow:we.shadow.reference},Pw={baseStyle:_w,variants:kw,defaultProps:Cw},Tw={w:"100%",mx:"auto",maxW:"prose",px:"4"},$w={baseStyle:Tw},Aw={opacity:.6,borderColor:"inherit"},Ew={borderStyle:"solid"},Rw={borderStyle:"dashed"},jw={solid:Ew,dashed:Rw},Mw={baseStyle:Aw,variants:jw,defaultProps:{variant:"solid"}},{definePartsStyle:zw,defineMultiStyleConfig:Iw}=Q(ky.keys),Bw={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Ow={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Fw={pt:"2",px:"4",pb:"5"},Dw={fontSize:"1.25em"},Vw=zw({container:Bw,button:Ow,panel:Fw,icon:Dw}),Lw=Iw({baseStyle:Vw}),{definePartsStyle:vo,defineMultiStyleConfig:Nw}=Q(Cy.keys),ot=I("alert-fg"),Ut=I("alert-bg"),Ww=vo({container:{bg:Ut.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ot.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ot.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function pl(e){const{theme:t,colorScheme:r}=e,n=un(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var Hw=vo(e=>{const{colorScheme:t}=e,r=pl(e);return{container:{[ot.variable]:`colors.${t}.600`,[Ut.variable]:r.light,_dark:{[ot.variable]:`colors.${t}.200`,[Ut.variable]:r.dark}}}}),Uw=vo(e=>{const{colorScheme:t}=e,r=pl(e);return{container:{[ot.variable]:`colors.${t}.600`,[Ut.variable]:r.light,_dark:{[ot.variable]:`colors.${t}.200`,[Ut.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ot.reference}}}),qw=vo(e=>{const{colorScheme:t}=e,r=pl(e);return{container:{[ot.variable]:`colors.${t}.600`,[Ut.variable]:r.light,_dark:{[ot.variable]:`colors.${t}.200`,[Ut.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ot.reference}}}),Gw=vo(e=>{const{colorScheme:t}=e;return{container:{[ot.variable]:"colors.white",[Ut.variable]:`colors.${t}.600`,_dark:{[ot.variable]:"colors.gray.900",[Ut.variable]:`colors.${t}.200`},color:ot.reference}}}),Kw={subtle:Hw,"left-accent":Uw,"top-accent":qw,solid:Gw},Xw=Nw({baseStyle:Ww,variants:Kw,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Zf,defineMultiStyleConfig:Yw}=Q(_y.keys),sn=I("avatar-border-color"),Hn=I("avatar-bg"),ao=I("avatar-font-size"),dn=I("avatar-size"),Zw={borderRadius:"full",border:"0.2em solid",borderColor:sn.reference,[sn.variable]:"white",_dark:{[sn.variable]:"colors.gray.800"}},Jw={bg:Hn.reference,fontSize:ao.reference,width:dn.reference,height:dn.reference,lineHeight:"1",[Hn.variable]:"colors.gray.200",_dark:{[Hn.variable]:"colors.whiteAlpha.400"}},Qw=e=>{const{name:t,theme:r}=e,n=t?a1({string:t}):"colors.gray.400",o=o1(n)(r);let i="white";return o||(i="gray.800"),{bg:Hn.reference,fontSize:ao.reference,color:i,borderColor:sn.reference,verticalAlign:"top",width:dn.reference,height:dn.reference,"&:not([data-loaded])":{[Hn.variable]:n},[sn.variable]:"colors.white",_dark:{[sn.variable]:"colors.gray.800"}}},e5={fontSize:ao.reference,lineHeight:"1"},t5=Zf(e=>({badge:Ue(Zw,e),excessLabel:Ue(Jw,e),container:Ue(Qw,e),label:e5}));function tr(e){const t=e!=="100%"?zf[e]:void 0;return Zf({container:{[dn.variable]:t??e,[ao.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[dn.variable]:t??e,[ao.variable]:`calc(${t??e} / 2.5)`}})}var r5={"2xs":tr(4),xs:tr(6),sm:tr(8),md:tr(12),lg:tr(16),xl:tr(24),"2xl":tr(32),full:tr("100%")},n5=Yw({baseStyle:t5,sizes:r5,defaultProps:{size:"md"}}),o5={Accordion:Lw,Alert:Xw,Avatar:n5,Badge:Ln,Breadcrumb:iw,Button:pw,Checkbox:bi,CloseButton:ww,Code:Pw,Container:$w,Divider:Mw,Drawer:ES,Editable:OS,Form:WS,FormError:XS,FormLabel:ZS,Heading:ew,Input:ae,Kbd:x2,Link:w2,List:T2,Menu:F2,Modal:X2,NumberInput:oS,PinInput:lS,Popover:yS,Progress:Px,Radio:Dx,Select:qx,Skeleton:Kx,SkipLink:Yx,Slider:s2,Spinner:u2,Stat:b2,Switch:w1,Table:A1,Tabs:H1,Tag:nx,Textarea:mx,Tooltip:bx,Card:yw,Stepper:wy},i5={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},a5={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},s5="ltr",l5={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Jf={semanticTokens:i5,direction:s5,...yy,components:o5,styles:a5,config:l5};function On(e){return typeof e=="function"}function c5(...e){return t=>e.reduce((r,n)=>n(r),t)}var u5=e=>function(...r){let n=[...r],o=r[r.length-1];return Xb(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,c5(...n.map(i=>a=>On(i)?i(a):f5(a,i)))(o)},d5=u5(Jf);function f5(...e){return pt({},...e,Qf)}function Qf(e,t,r,n){if((On(e)||On(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=On(e)?e(...o):e,a=On(t)?t(...o):t;return pt({},i,a,Qf)}}var pu=e=>e?"":void 0;function h5(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function p5(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},eh=m5(p5);function th(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var rh=e=>th(e,t=>t!=null);function g5(e){return typeof e=="function"}function nh(e,...t){return g5(e)?e(...t):e}var v5=typeof Element<"u",b5=typeof Map=="function",y5=typeof Set=="function",x5=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function si(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!si(e[n],t[n]))return!1;return!0}var i;if(b5&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!si(n.value[1],t.get(n.value[0])))return!1;return!0}if(y5&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(x5&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(v5&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!si(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var S5=function(t,r){try{return si(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const w5=Ys(S5);function oh(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:a}=kv(),s=e?eh(i,`components.${e}`):void 0,l=n||s,c=pt({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},rh(h5(o,["children"]))),u=v.useRef({});if(l){const f=qb(l)(c);w5(u.current,f)||(u.current=f)}return u.current}function et(e,t={}){return oh(e,t)}function Kt(e,t={}){return oh(e,t)}var k5=new Set([...zb,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),C5=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function _5(e){return C5.has(e)||!k5.has(e)}function P5(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function ih(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var T5=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$5=cf(function(e){return T5.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),A5=$5,E5=function(t){return t!=="theme"},mu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?A5:E5},gu=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},R5=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return mf(r,n,o),hg(function(){return gf(r,n,o)}),null},j5=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=gu(t,r,n),l=s||mu(o),c=!l("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;ht=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=th(a,(d,f)=>Bb(f)),l=nh(e,t),c=P5({},o,l,rh(s),i),u=Rf(c)(t.theme);return n?[u,n]:u};function Na(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=_5);const o=I5({baseStyle:r}),i=z5(e,n)(o);return hi.forwardRef(function(l,c){const{colorMode:u,forced:d}=Ki();return hi.createElement(i,{ref:c,"data-theme":d?u:void 0,...l})})}function B5(){const e=new Map;return new Proxy(Na,{apply(t,r,n){return Na(...n)},get(t,r){return e.has(r)||e.set(r,Na(r)),e.get(r)}})}var B=B5();function H(e){return v.forwardRef(e)}function ah(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=v.createContext(void 0);o.displayName=n;function i(){var a;const s=v.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function O5(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=v.useMemo(()=>Rb(r),[r]);return p.jsxs(sv,{theme:o,children:[p.jsx(F5,{root:t}),n]})}function F5({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return p.jsx(Gi,{styles:r=>({[t]:r.__cssVars})})}ah({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function D5(e){return ah({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function V5(){const{colorMode:e}=Ki();return p.jsx(Gi,{styles:t=>{const r=eh(t,"styles.global"),n=nh(r,{theme:t,colorMode:e});return n?Rf(n)(t):void 0}})}var sh=v.createContext({getDocument(){return document},getWindow(){return window}});sh.displayName="EnvironmentContext";function lh(e){const{children:t,environment:r,disabled:n}=e,o=v.useRef(null),i=v.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),a=!n||!r;return p.jsxs(sh.Provider,{value:i,children:[t,a&&p.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}lh.displayName="EnvironmentProvider";var L5=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=p.jsx(lh,{environment:s,disabled:c,children:t});return p.jsx(O5,{theme:a,cssVarsRoot:l,children:p.jsxs(Cf,{colorModeManager:r,options:a.config,children:[i?p.jsx(uv,{scope:o}):p.jsx(cv,{}),!u&&p.jsx(V5,{}),n?p.jsx(wf,{zIndex:n,children:d}):d]})})},N5=(e,t)=>e.find(r=>r.id===t);function bu(e,t){const r=ch(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function ch(e,t){for(const[r,n]of Object.entries(e))if(N5(n,t))return r}function W5(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function H5(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:i,left:a}}function Ar(e,t=[]){const r=v.useRef(e);return v.useEffect(()=>{r.current=e}),v.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function U5(e,t){const r=Ar(e);v.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function bs(e,t){const r=v.useRef(!1),n=v.useRef(!1);v.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),v.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const uh=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Qi=v.createContext({}),bo=v.createContext(null),ea=typeof document<"u",Si=ea?v.useLayoutEffect:v.useEffect,dh=v.createContext({strict:!1});function q5(e,t,r,n){const{visualElement:o}=v.useContext(Qi),i=v.useContext(dh),a=v.useContext(bo),s=v.useContext(uh).reducedMotion,l=v.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const c=l.current;return v.useInsertionEffect(()=>{c&&c.update(r,a)}),Si(()=>{c&&c.render()}),v.useEffect(()=>{c&&c.updateFeatures()}),(window.HandoffAppearAnimations?Si:v.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),c}function Qr(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function G5(e,t,r){return v.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Qr(r)&&(r.current=n))},[t])}function so(e){return typeof e=="string"||Array.isArray(e)}function ta(e){return typeof e=="object"&&typeof e.start=="function"}const ml=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gl=["initial",...ml];function ra(e){return ta(e.animate)||gl.some(t=>so(e[t]))}function fh(e){return!!(ra(e)||e.variants)}function K5(e,t){if(ra(e)){const{initial:r,animate:n}=e;return{initial:r===!1||so(r)?r:void 0,animate:so(n)?n:void 0}}return e.inherit!==!1?t:{}}function X5(e){const{initial:t,animate:r}=K5(e,v.useContext(Qi));return v.useMemo(()=>({initial:t,animate:r}),[yu(t),yu(r)])}function yu(e){return Array.isArray(e)?e.join(" "):e}const xu={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lo={};for(const e in xu)lo[e]={isEnabled:t=>xu[e].some(r=>!!t[r])};function Y5(e){for(const t in e)lo[t]={...lo[t],...e[t]}}const vl=v.createContext({}),hh=v.createContext({}),Z5=Symbol.for("motionComponentSymbol");function J5({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&Y5(e);function i(s,l){let c;const u={...v.useContext(uh),...s,layoutId:Q5(s)},{isStatic:d}=u,f=X5(s),h=n(s,d);if(!d&&ea){f.visualElement=q5(o,h,u,t);const g=v.useContext(hh),b=v.useContext(dh).strict;f.visualElement&&(c=f.visualElement.loadFeatures(u,b,e,g))}return v.createElement(Qi.Provider,{value:f},c&&f.visualElement?v.createElement(c,{visualElement:f.visualElement,...u}):null,r(o,s,G5(h,f.visualElement,l),h,d,f.visualElement))}const a=v.forwardRef(i);return a[Z5]=o,a}function Q5({layoutId:e}){const t=v.useContext(vl).id;return t&&e!==void 0?t+"-"+e:e}function ek(e){function t(n,o={}){return J5(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const tk=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bl(e){return typeof e!="string"||e.includes("-")?!1:!!(tk.indexOf(e)>-1||/[A-Z]/.test(e))}const wi={};function rk(e){Object.assign(wi,e)}const yo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Br=new Set(yo);function ph(e,{layout:t,layoutId:r}){return Br.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!wi[e]||e==="opacity")}const Qe=e=>!!(e&&e.getVelocity),nk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ok=yo.length;function ik(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),gh=mh("--"),ys=mh("var(--"),ak=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,sk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Mr=(e,t,r)=>Math.min(Math.max(r,e),t),Or={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Un={...Or,transform:e=>Mr(0,1,e)},Uo={...Or,default:1},qn=e=>Math.round(e*1e5)/1e5,na=/(-)?([\d]*\.?[\d])+/g,vh=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,lk=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function xo(e){return typeof e=="string"}const So=e=>({test:t=>xo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),rr=So("deg"),jt=So("%"),D=So("px"),ck=So("vh"),uk=So("vw"),Su={...jt,parse:e=>jt.parse(e)/100,transform:e=>jt.transform(e*100)},wu={...Or,transform:Math.round},bh={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,radius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,size:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,rotate:rr,rotateX:rr,rotateY:rr,rotateZ:rr,scale:Uo,scaleX:Uo,scaleY:Uo,scaleZ:Uo,skew:rr,skewX:rr,skewY:rr,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:Un,originX:Su,originY:Su,originZ:D,zIndex:wu,fillOpacity:Un,strokeOpacity:Un,numOctaves:wu};function yl(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const d in t){const f=t[d];if(gh(d)){i[d]=f;continue}const h=bh[d],g=sk(f,h);if(Br.has(d)){if(l=!0,a[d]=g,!u)continue;f!==(h.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,s[d]=g):o[d]=g}if(t.transform||(l||n?o.transform=ik(e.transform,r,u,n):o.transform&&(o.transform="none")),c){const{originX:d="50%",originY:f="50%",originZ:h=0}=s;o.transformOrigin=`${d} ${f} ${h}`}}const xl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yh(e,t,r){for(const n in t)!Qe(t[n])&&!ph(n,r)&&(e[n]=t[n])}function dk({transformTemplate:e},t,r){return v.useMemo(()=>{const n=xl();return yl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function fk(e,t,r){const n=e.style||{},o={};return yh(o,n,e),Object.assign(o,dk(e,t,r)),e.transformValues?e.transformValues(o):o}function hk(e,t,r){const n={},o=fk(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const pk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ki(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||pk.has(e)}let xh=e=>!ki(e);function mk(e){e&&(xh=t=>t.startsWith("on")?!ki(t):e(t))}try{mk(require("@emotion/is-prop-valid").default)}catch{}function gk(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(xh(o)||r===!0&&ki(o)||!t&&!ki(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function ku(e,t,r){return typeof e=="string"?e:D.transform(t+r*e)}function vk(e,t,r){const n=ku(t,e.x,e.width),o=ku(r,e.y,e.height);return`${n} ${o}`}const bk={offset:"stroke-dashoffset",array:"stroke-dasharray"},yk={offset:"strokeDashoffset",array:"strokeDasharray"};function xk(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?bk:yk;e[i.offset]=D.transform(-n);const a=D.transform(t),s=D.transform(r);e[i.array]=`${a} ${s}`}function Sl(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(yl(e,c,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:b}=e;h.transform&&(b&&(g.transform=h.transform),delete h.transform),b&&(o!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=vk(b,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),a!==void 0&&xk(h,a,s,l,!1)}const Sh=()=>({...xl(),attrs:{}}),wl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Sk(e,t,r,n){const o=v.useMemo(()=>{const i=Sh();return Sl(i,t,{enableHardwareAcceleration:!1},wl(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};yh(i,e.style,e),o.style={...i,...o.style}}return o}function wk(e=!1){return(r,n,o,{latestValues:i},a)=>{const l=(bl(r)?Sk:hk)(n,i,a,r),u={...gk(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=v.useMemo(()=>Qe(d)?d.get():d,[d]);return v.createElement(r,{...u,children:f})}}const kl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function wh(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const kh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ch(e,t,r,n){wh(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(kh.has(o)?o:kl(o),t.attrs[o])}function Cl(e,t){const{style:r}=e,n={};for(const o in r)(Qe(r[o])||t.style&&Qe(t.style[o])||ph(o,e))&&(n[o]=r[o]);return n}function _h(e,t){const r=Cl(e,t);for(const n in e)if(Qe(e[n])||Qe(t[n])){const o=yo.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function _l(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function Ph(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ci=e=>Array.isArray(e),kk=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Ck=e=>Ci(e)?e[e.length-1]||0:e;function li(e){const t=Qe(e)?e.get():e;return kk(t)?t.toValue():t}function _k({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:Pk(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const Th=e=>(t,r)=>{const n=v.useContext(Qi),o=v.useContext(bo),i=()=>_k(e,t,n,o);return r?i():Ph(i)};function Pk(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=li(i[f]);let{initial:a,animate:s}=e;const l=ra(e),c=fh(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;const d=u?s:a;return d&&typeof d!="boolean"&&!ta(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const g=_l(e,h);if(!g)return;const{transitionEnd:b,transition:y,...k}=g;for(const x in k){let C=k[x];if(Array.isArray(C)){const P=u?C.length-1:0;C=C[P]}C!==null&&(o[x]=C)}for(const x in b)o[x]=b[x]}),o}const Tk={useVisualState:Th({scrapeMotionValuesFromProps:_h,createRenderState:Sh,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}Sl(r,n,{enableHardwareAcceleration:!1},wl(t.tagName),e.transformTemplate),Ch(t,r)}})},$k={useVisualState:Th({scrapeMotionValuesFromProps:Cl,createRenderState:xl})};function Ak(e,{forwardMotionProps:t=!1},r,n){return{...bl(e)?Tk:$k,preloadedFeatures:r,useRender:wk(t),createVisualElement:n,Component:e}}function Lt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const $h=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function oa(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Ek=e=>t=>$h(t)&&e(t,oa(t));function Wt(e,t,r,n){return Lt(e,t,Ek(r),n)}const Rk=(e,t)=>r=>t(e(r)),sr=(...e)=>e.reduce(Rk);function Ah(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Cu=Ah("dragHorizontal"),_u=Ah("dragVertical");function Eh(e){let t=!1;if(e==="y")t=_u();else if(e==="x")t=Cu();else{const r=Cu(),n=_u();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Rh(){const e=Eh(!0);return e?(e(),!1):!0}class dr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function jk(e){let t=[],r=[],n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,c=!1,u=!1)=>{const d=u&&o,f=d?t:r;return c&&a.add(l),f.indexOf(l)===-1&&(f.push(l),d&&o&&(n=t.length)),l},cancel:l=>{const c=r.indexOf(l);c!==-1&&r.splice(c,1),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let c=0;c(e[t]=jk(()=>co=!0),e),{}),zk=e=>ln[e].process(Me),jh=e=>{co=!1,Me.delta=xs?1e3/60:Math.max(Math.min(e-Me.timestamp,Mk),1),Me.timestamp=e,Me.isProcessing=!0,ia.forEach(zk),Me.isProcessing=!1,co&&(xs=!1,requestAnimationFrame(jh))},Ik=()=>{co=!0,xs=!0,Me.isProcessing||requestAnimationFrame(jh)},ge=ia.reduce((e,t)=>{const r=ln[t];return e[t]=(n,o=!1,i=!1)=>(co||Ik(),r.schedule(n,o,i)),e},{});function qt(e){ia.forEach(t=>ln[t].cancel(e))}function Pu(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.type==="touch"||Rh())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&ge.update(()=>s[n](i,a))};return Wt(e.current,r,o,{passive:!e.getProps()[n]})}class Bk extends dr{mount(){this.unmount=sr(Pu(this.node,!0),Pu(this.node,!1))}unmount(){}}class Ok extends dr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=sr(Lt(this.node.current,"focus",()=>this.onFocus()),Lt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Mh=(e,t)=>t?e===t?!0:Mh(e,t.parentElement):!1,Pe=e=>e;function Wa(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,oa(r))}class Fk extends dr{constructor(){super(...arguments),this.removeStartListeners=Pe,this.removeEndListeners=Pe,this.removeAccessibleListeners=Pe,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Wt(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u}=this.node.getProps();ge.update(()=>{Mh(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)})},{passive:!(n.onTap||n.onPointerUp)}),a=Wt(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=sr(i,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||Wa("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&ge.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Lt(this.node.current,"keyup",a),Wa("down",(s,l)=>{this.startPress(s,l)})},r=Lt(this.node.current,"keydown",t),n=()=>{this.isPressing&&Wa("cancel",(i,a)=>this.cancelPress(i,a))},o=Lt(this.node.current,"blur",n);this.removeAccessibleListeners=sr(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ge.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Rh()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ge.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Wt(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Lt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=sr(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ss=new WeakMap,Ha=new WeakMap,Dk=e=>{const t=Ss.get(e.target);t&&t(e)},Vk=e=>{e.forEach(Dk)};function Lk({root:e,...t}){const r=e||document;Ha.has(r)||Ha.set(r,{});const n=Ha.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(Vk,{root:e,...t})),n[o]}function Nk(e,t,r){const n=Lk(t);return Ss.set(e,r),n.observe(e),()=>{Ss.delete(e),n.unobserve(e)}}const Wk={some:0,all:1};class Hk extends dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:Wk[o]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return Nk(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Uk(t,r))&&this.startObserver()}unmount(){}}function Uk({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const qk={inView:{Feature:Hk},tap:{Feature:Fk},focus:{Feature:Ok},hover:{Feature:Bk}};function zh(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function Kk(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function aa(e,t,r){const n=e.getProps();return _l(n,t,r!==void 0?r:n.custom,Gk(e),Kk(e))}const Xk="framerAppearId",Yk="data-"+kl(Xk);let Zk=Pe,Pl=Pe;const lr=e=>e*1e3,Ht=e=>e/1e3,Jk={current:!1},Ih=e=>Array.isArray(e)&&typeof e[0]=="number";function Bh(e){return!!(!e||typeof e=="string"&&Oh[e]||Ih(e)||Array.isArray(e)&&e.every(Bh))}const Fn=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Oh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fn([0,.65,.55,1]),circOut:Fn([.55,0,1,.45]),backIn:Fn([.31,.01,.66,-.59]),backOut:Fn([.33,1.53,.69,.99])};function Fh(e){if(e)return Ih(e)?Fn(e):Array.isArray(e)?e.map(Fh):Oh[e]}function Qk(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=Fh(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const Tu={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Ua={},Dh={};for(const e in Tu)Dh[e]=()=>(Ua[e]===void 0&&(Ua[e]=Tu[e]()),Ua[e]);function eC(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const Vh=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,tC=1e-7,rC=12;function nC(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=Vh(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>tC&&++snC(i,0,1,e,r);return i=>i===0||i===1?i:Vh(o(i),t,n)}const oC=wo(.42,0,1,1),iC=wo(0,0,.58,1),Lh=wo(.42,0,.58,1),aC=e=>Array.isArray(e)&&typeof e[0]!="number",Nh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Wh=e=>t=>1-e(1-t),Hh=e=>1-Math.sin(Math.acos(e)),Tl=Wh(Hh),sC=Nh(Tl),Uh=wo(.33,1.53,.69,.99),$l=Wh(Uh),lC=Nh($l),cC=e=>(e*=2)<1?.5*$l(e):.5*(2-Math.pow(2,-10*(e-1))),uC={linear:Pe,easeIn:oC,easeInOut:Lh,easeOut:iC,circIn:Hh,circInOut:sC,circOut:Tl,backIn:$l,backInOut:lC,backOut:Uh,anticipate:cC},$u=e=>{if(Array.isArray(e)){Pl(e.length===4);const[t,r,n,o]=e;return wo(t,r,n,o)}else if(typeof e=="string")return uC[e];return e},Al=(e,t)=>r=>!!(xo(r)&&lk.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),qh=(e,t,r)=>n=>{if(!xo(n))return n;const[o,i,a,s]=n.match(na);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},dC=e=>Mr(0,255,e),qa={...Or,transform:e=>Math.round(dC(e))},_r={test:Al("rgb","red"),parse:qh("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+qa.transform(e)+", "+qa.transform(t)+", "+qa.transform(r)+", "+qn(Un.transform(n))+")"};function fC(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const ws={test:Al("#"),parse:fC,transform:_r.transform},en={test:Al("hsl","hue"),parse:qh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+jt.transform(qn(t))+", "+jt.transform(qn(r))+", "+qn(Un.transform(n))+")"},We={test:e=>_r.test(e)||ws.test(e)||en.test(e),parse:e=>_r.test(e)?_r.parse(e):en.test(e)?en.parse(e):ws.parse(e),transform:e=>xo(e)?e:e.hasOwnProperty("red")?_r.transform(e):en.transform(e)},be=(e,t,r)=>-r*e+r*t+e;function Ga(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hC({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=Ga(l,s,e+1/3),i=Ga(l,s,e),a=Ga(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const Ka=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},pC=[ws,_r,en],mC=e=>pC.find(t=>t.test(e));function Au(e){const t=mC(e);let r=t.parse(e);return t===en&&(r=hC(r)),r}const Gh=(e,t)=>{const r=Au(e),n=Au(t),o={...r};return i=>(o.red=Ka(r.red,n.red,i),o.green=Ka(r.green,n.green,i),o.blue=Ka(r.blue,n.blue,i),o.alpha=be(r.alpha,n.alpha,i),_r.transform(o))};function gC(e){var t,r;return isNaN(e)&&xo(e)&&(((t=e.match(na))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(vh))===null||r===void 0?void 0:r.length)||0)>0}const Kh={regex:ak,countKey:"Vars",token:"${v}",parse:Pe},Xh={regex:vh,countKey:"Colors",token:"${c}",parse:We.parse},Yh={regex:na,countKey:"Numbers",token:"${n}",parse:Or.parse};function Xa(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function _i(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&Xa(r,Kh),Xa(r,Xh),Xa(r,Yh),r}function Zh(e){return _i(e).values}function Jh(e){const{values:t,numColors:r,numVars:n,tokenised:o}=_i(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function bC(e){const t=Zh(e);return Jh(e)(t.map(vC))}const cr={test:gC,parse:Zh,createTransformer:Jh,getAnimatableNone:bC},Qh=(e,t)=>r=>`${r>0?t:e}`;function ep(e,t){return typeof e=="number"?r=>be(e,t,r):We.test(e)?Gh(e,t):e.startsWith("var(")?Qh(e,t):rp(e,t)}const tp=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>ep(i,t[a]));return i=>{for(let a=0;a{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=ep(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},rp=(e,t)=>{const r=cr.createTransformer(t),n=_i(e),o=_i(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?sr(tp(n.values,o.values),r):Qh(e,t)},uo=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Eu=(e,t)=>r=>be(e,t,r);function xC(e){return typeof e=="number"?Eu:typeof e=="string"?We.test(e)?Gh:rp:Array.isArray(e)?tp:typeof e=="object"?yC:Eu}function SC(e,t,r){const n=[],o=r||xC(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=SC(t,n,o),s=a.length,l=c=>{let u=0;if(s>1)for(;ul(Mr(e[0],e[i-1],c)):l}function wC(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=uo(0,t,n);e.push(be(r,1,o))}}function kC(e){const t=[0];return wC(t,e.length-1),t}function CC(e,t){return e.map(r=>r*t)}function _C(e,t){return e.map(()=>t||Lh).splice(0,e.length-1)}function Pi({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=aC(n)?n.map($u):$u(n),i={done:!1,value:t[0]},a=CC(r&&r.length===t.length?r:kC(t),e),s=np(a,t,{ease:Array.isArray(o)?o:_C(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function op(e,t){return t?e*(1e3/t):0}const PC=5;function ip(e,t,r){const n=Math.max(t-PC,0);return op(r-e(n),t-n)}const Ya=.001,TC=.01,Ru=10,$C=.05,AC=1;function EC({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Zk(e<=lr(Ru));let a=1-t;a=Mr($C,AC,a),e=Mr(TC,Ru,Ht(e)),a<1?(o=c=>{const u=c*a,d=u*e,f=u-r,h=ks(c,a),g=Math.exp(-d);return Ya-f/h*g},i=c=>{const d=c*a*e,f=d*r+r,h=Math.pow(a,2)*Math.pow(c,2)*e,g=Math.exp(-d),b=ks(Math.pow(c,2),a);return(-o(c)+Ya>0?-1:1)*((f-h)*g)/b}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-Ya+u*d},i=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const s=5/e,l=jC(o,i,s);if(e=lr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}const RC=12;function jC(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function IC(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ju(e,zC)&&ju(e,MC)){const r=EC(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function ap({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=IC(n),h=u?-Ht(u):0,g=l/(2*Math.sqrt(s*c)),b=i-o,y=Ht(Math.sqrt(s/c)),k=Math.abs(b)<5;r||(r=k?.01:2),t||(t=k?.005:.5);let x;if(g<1){const C=ks(y,g);x=P=>{const $=Math.exp(-g*y*P);return i-$*((h+g*y*b)/C*Math.sin(C*P)+b*Math.cos(C*P))}}else if(g===1)x=C=>i-Math.exp(-y*C)*(b+(h+y*b)*C);else{const C=y*Math.sqrt(g*g-1);x=P=>{const $=Math.exp(-g*y*P),A=Math.min(C*P,300);return i-$*((h+g*y*b)*Math.sinh(A)+C*b*Math.cosh(A))/C}}return{calculatedDuration:f&&d||null,next:C=>{const P=x(C);if(f)a.done=C>=d;else{let $=h;C!==0&&(g<1?$=ip(x,C,P):$=0);const A=Math.abs($)<=r,T=Math.abs(i-P)<=t;a.done=A&&T}return a.value=a.done?i:P,a}}}function Mu({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=E=>s!==void 0&&El,g=E=>s===void 0?l:l===void 0||Math.abs(s-E)-b*Math.exp(-E/n),C=E=>k+x(E),P=E=>{const j=x(E),R=C(E);f.done=Math.abs(j)<=c,f.value=f.done?k:R};let $,A;const T=E=>{h(f.value)&&($=E,A=ap({keyframes:[f.value,g(f.value)],velocity:ip(C,E,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:E=>{let j=!1;return!A&&$===void 0&&(j=!0,P(E),T(E)),$!==void 0&&E>$?A.next(E-$):(!j&&P(E),f)}}}const BC=e=>{const t=({timestamp:r})=>e(r);return{start:()=>ge.update(t,!0),stop:()=>qt(t),now:()=>Me.isProcessing?Me.timestamp:performance.now()}},zu=2e4;function Iu(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=zu?1/0:t}const OC={decay:Mu,inertia:Mu,tween:Pi,keyframes:Pi,spring:ap};function Ti({autoplay:e=!0,delay:t=0,driver:r=BC,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let h=1,g=!1,b,y;const k=()=>{b&&b(),y=new Promise(q=>{b=q})};k();let x;const C=OC[o]||Pi;let P;C!==Pi&&typeof n[0]!="number"&&(P=np([0,100],n,{clamp:!1}),n=[0,100]);const $=C({...f,keyframes:n});let A;s==="mirror"&&(A=C({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let T="idle",E=null,j=null,R=null;$.calculatedDuration===null&&i&&($.calculatedDuration=Iu($));const{calculatedDuration:F}=$;let Y=1/0,ee=1/0;F!==null&&(Y=F+a,ee=Y*(i+1)-a);let N=0;const Z=q=>{if(j===null)return;h>0&&(j=Math.min(j,q)),E!==null?N=E:N=(q-j)*h;const Se=N-t,L=Se<0;N=Math.max(Se,0),T==="finished"&&E===null&&(N=ee);let te=N,ue=$;if(i){const qe=N/Y;let Ge=Math.floor(qe),Ee=qe%1;!Ee&&qe>=1&&(Ee=1),Ee===1&&Ge--,Ge=Math.min(Ge,i+1);const re=!!(Ge%2);re&&(s==="reverse"?(Ee=1-Ee,a&&(Ee-=a/Y)):s==="mirror"&&(ue=A));let Re=Mr(0,1,Ee);N>ee&&(Re=s==="reverse"&&re?1:0),te=Re*Y}const ve=L?{done:!1,value:n[0]}:ue.next(te);P&&(ve.value=P(ve.value));let{done:Ve}=ve;!L&&F!==null&&(Ve=N>=ee);const ke=E===null&&(T==="finished"||T==="running"&&Ve||h<0&&N<=0);return d&&d(ve.value),ke&&fe(),ve},W=()=>{x&&x.stop(),x=void 0},U=()=>{T="idle",W(),k(),j=R=null},fe=()=>{T="finished",u&&u(),W(),k()},xe=()=>{if(g)return;x||(x=r(Z));const q=x.now();l&&l(),E!==null?j=q-E:(!j||T==="finished")&&(j=q),R=j,E=null,T="running",x.start()};e&&xe();const De={then(q,Se){return y.then(q,Se)},get time(){return Ht(N)},set time(q){q=lr(q),N=q,E!==null||!x||h===0?E=q:j=x.now()-q/h},get duration(){const q=$.calculatedDuration===null?Iu($):$.calculatedDuration;return Ht(q)},get speed(){return h},set speed(q){q===h||!x||(h=q,De.time=Ht(N))},get state(){return T},play:xe,pause:()=>{T="paused",E=N},stop:()=>{g=!0,T!=="idle"&&(T="idle",c&&c(),U())},cancel:()=>{R!==null&&Z(R),U()},complete:()=>{T="finished"},sample:q=>(j=0,Z(q))};return De}const FC=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),qo=10,DC=2e4,VC=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Bh(t.ease);function LC(e,t,{onUpdate:r,onComplete:n,...o}){if(!(Dh.waapi()&&FC.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l;const c=()=>{l=new Promise(k=>{s=k})};c();let{keyframes:u,duration:d=300,ease:f,times:h}=o;if(VC(t,o)){const k=Ti({...o,repeat:0,delay:0});let x={done:!1,value:u[0]};const C=[];let P=0;for(;!x.done&&Pg.cancel(),y=()=>{ge.update(b),s(),c()};return g.onfinish=()=>{e.set(eC(u,o)),n&&n(),y()},{then(k,x){return l.then(k,x)},get time(){return Ht(g.currentTime||0)},set time(k){g.currentTime=lr(k)},get speed(){return g.playbackRate},set speed(k){g.playbackRate=k},get duration(){return Ht(d)},play:()=>{a||(g.play(),qt(b))},pause:()=>g.pause(),stop:()=>{if(a=!0,g.playState==="idle")return;const{currentTime:k}=g;if(k){const x=Ti({...o,autoplay:!1});e.setWithVelocity(x.sample(k-qo).value,x.sample(k).value,qo)}y()},complete:()=>g.finish(),cancel:y}}function NC({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Pe,pause:Pe,stop:Pe,then:i=>(i(),Promise.resolve()),cancel:Pe,complete:Pe});return t?Ti({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const WC={type:"spring",stiffness:500,damping:25,restSpeed:10},HC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),UC={type:"keyframes",duration:.8},qC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GC=(e,{keyframes:t})=>t.length>2?UC:Br.has(e)?e.startsWith("scale")?HC(t[1]):WC:qC,Cs=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(cr.test(t)||t==="0")&&!t.startsWith("url(")),KC=new Set(["brightness","contrast","saturate","opacity"]);function XC(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(na)||[];if(!n)return e;const o=r.replace(n,"");let i=KC.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const YC=/([a-z-]*)\(.*?\)/g,_s={...cr,getAnimatableNone:e=>{const t=e.match(YC);return t?t.map(XC).join(" "):e}},ZC={...bh,color:We,backgroundColor:We,outlineColor:We,fill:We,stroke:We,borderColor:We,borderTopColor:We,borderRightColor:We,borderBottomColor:We,borderLeftColor:We,filter:_s,WebkitFilter:_s},El=e=>ZC[e];function sp(e,t){let r=El(e);return r!==_s&&(r=cr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const lp=e=>/^0[^.\s]+$/.test(e);function JC(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||lp(e)}function QC(e,t,r,n){const o=Cs(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const l=[];for(let c=0;co=>{const i=cp(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s=s-lr(a);const l=QC(t,e,r,i),c=l[0],u=l[l.length-1],d=Cs(e,c),f=Cs(e,u);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:g=>{t.set(g),i.onUpdate&&i.onUpdate(g)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(e_(i)||(h={...h,...GC(e,h)}),h.duration&&(h.duration=lr(h.duration)),h.repeatDelay&&(h.repeatDelay=lr(h.repeatDelay)),!d||!f||Jk.current||i.type===!1)return NC(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=LC(t,e,h);if(g)return g}return Ti(h)};function $i(e){return!!(Qe(e)&&e.add)}const t_=e=>/^\-?\d*\.?\d+$/.test(e);function jl(e,t){e.indexOf(t)===-1&&e.push(t)}function Ml(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class zl{constructor(){this.subscriptions=[]}add(t){return jl(this.subscriptions,t),()=>Ml(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class n_{constructor(t,r={}){this.version="10.12.12",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:a}=Me;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,ge.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ge.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=r_(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new zl);const n=this.events[t].add(r);return t==="change"?()=>{n(),ge.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?op(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fn(e,t){return new n_(e,t)}const up=e=>t=>t.test(e),o_={test:e=>e==="auto",parse:e=>e},dp=[Or,D,jt,rr,uk,ck,o_],An=e=>dp.find(up(e)),i_=[...dp,We,cr],a_=e=>i_.find(up(e));function s_(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,fn(r))}function l_(e,t){const r=aa(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const a in i){const s=Ck(i[a]);s_(e,a,s)}}function c_(e,t,r){var n,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(d))),c.push(b)}return a&&Promise.all(c).then(()=>{a&&l_(e,a)}),c}function Ps(e,t,r={}){const n=aa(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(fp(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return h_(e,t,c+l,u,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,c]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>c())}else return Promise.all([i(),a(r.delay)])}function h_(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>s-c*n;return Array.from(e.variantChildren).sort(p_).forEach((c,u)=>{c.notify("AnimationStart",t),a.push(Ps(c,t,{...i,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function p_(e,t){return e.sortNodePosition(t)}function m_(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Ps(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Ps(e,t,r);else{const o=typeof t=="function"?aa(e,t,r.custom):t;n=Promise.all(fp(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const g_=[...ml].reverse(),v_=ml.length;function b_(e){return t=>Promise.all(t.map(({animation:r,options:n})=>m_(e,r,n)))}function y_(e){let t=b_(e);const r=S_();let n=!0;const o=(l,c)=>{const u=aa(e,c);if(u){const{transition:d,transitionEnd:f,...h}=u;l={...l,...h,...f}}return l};function i(l){t=l(e)}function a(l,c){const u=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let g={},b=1/0;for(let k=0;kb&&$;const R=Array.isArray(P)?P:[P];let F=R.reduce(o,{});A===!1&&(F={});const{prevResolvedValues:Y={}}=C,ee={...Y,...F},N=Z=>{j=!0,h.delete(Z),C.needsAnimating[Z]=!0};for(const Z in ee){const W=F[Z],U=Y[Z];g.hasOwnProperty(Z)||(W!==U?Ci(W)&&Ci(U)?!zh(W,U)||E?N(Z):C.protectedKeys[Z]=!0:W!==void 0?N(Z):h.add(Z):W!==void 0&&h.has(Z)?N(Z):C.protectedKeys[Z]=!0)}C.prevProp=P,C.prevResolvedValues=F,C.isActive&&(g={...g,...F}),n&&e.blockInitialAnimation&&(j=!1),j&&!T&&f.push(...R.map(Z=>({animation:Z,options:{type:x,...l}})))}if(h.size){const k={};h.forEach(x=>{const C=e.getBaseTarget(x);C!==void 0&&(k[x]=C)}),f.push({animation:k})}let y=!!f.length;return n&&u.initial===!1&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(f):Promise.resolve()}function s(l,c,u){var d;if(r[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;const f=a(u,l);for(const h in r)r[h].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function x_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!zh(t,e):!1}function yr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function S_(){return{animate:yr(!0),whileInView:yr(),whileHover:yr(),whileTap:yr(),whileDrag:yr(),whileFocus:yr(),exit:yr()}}class w_ extends dr{constructor(t){super(t),t.animationState||(t.animationState=y_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),ta(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let k_=0;class C_ extends dr{constructor(){super(...arguments),this.id=k_++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const __={animation:{Feature:w_},exit:{Feature:C_}},Bu=(e,t)=>Math.abs(e-t);function P_(e,t){const r=Bu(e.x,t.x),n=Bu(e.y,t.y);return Math.sqrt(r**2+n**2)}class hp{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=Ja(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,d=P_(c.offset,{x:0,y:0})>=3;if(!u&&!d)return;const{point:f}=c,{timestamp:h}=Me;this.history.push({...f,timestamp:h});const{onStart:g,onMove:b}=this.handlers;u||(g&&g(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,c)},this.handlePointerMove=(c,u)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Za(u,this.transformPagePoint),ge.update(this.updatePoint,!0)},this.handlePointerUp=(c,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,h=Ja(c.type==="pointercancel"?this.lastMoveEventInfo:Za(u,this.transformPagePoint),this.history);this.startEvent&&d&&d(c,h),f&&f(c,h)},!$h(t))return;this.handlers=r,this.transformPagePoint=n;const o=oa(t),i=Za(o,this.transformPagePoint),{point:a}=i,{timestamp:s}=Me;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=r;l&&l(t,Ja(i,this.history)),this.removeListeners=sr(Wt(window,"pointermove",this.handlePointerMove),Wt(window,"pointerup",this.handlePointerUp),Wt(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qt(this.updatePoint)}}function Za(e,t){return t?{point:t(e.point)}:e}function Ou(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ja({point:e},t){return{point:e,delta:Ou(e,pp(t)),offset:Ou(e,T_(t)),velocity:$_(t,.1)}}function T_(e){return e[0]}function pp(e){return e[e.length-1]}function $_(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=pp(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>lr(t)));)r--;if(!n)return{x:0,y:0};const i=Ht(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function it(e){return e.max-e.min}function Ts(e,t=0,r=.01){return Math.abs(e-t)<=r}function Fu(e,t,r,n=.5){e.origin=n,e.originPoint=be(t.min,t.max,e.origin),e.scale=it(r)/it(t),(Ts(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=be(r.min,r.max,e.origin)-e.originPoint,(Ts(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Gn(e,t,r,n){Fu(e.x,t.x,r.x,n?n.originX:void 0),Fu(e.y,t.y,r.y,n?n.originY:void 0)}function Du(e,t,r){e.min=r.min+t.min,e.max=e.min+it(t)}function A_(e,t,r){Du(e.x,t.x,r.x),Du(e.y,t.y,r.y)}function Vu(e,t,r){e.min=t.min-r.min,e.max=e.min+it(t)}function Kn(e,t,r){Vu(e.x,t.x,r.x),Vu(e.y,t.y,r.y)}function E_(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?be(r,e,n.max):Math.min(e,r)),e}function Lu(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function R_(e,{top:t,left:r,bottom:n,right:o}){return{x:Lu(e.x,r,o),y:Lu(e.y,t,n)}}function Nu(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=uo(t.min,t.max-n,e.min):n>o&&(r=uo(e.min,e.max-o,t.min)),Mr(0,1,r)}function z_(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const $s=.35;function I_(e=$s){return e===!1?e=0:e===!0&&(e=$s),{x:Wu(e,"left","right"),y:Wu(e,"top","bottom")}}function Wu(e,t,r){return{min:Hu(e,t),max:Hu(e,r)}}function Hu(e,t){return typeof e=="number"?e:e[t]||0}const Uu=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xn=()=>({x:Uu(),y:Uu()}),qu=()=>({min:0,max:0}),Ce=()=>({x:qu(),y:qu()});function _t(e){return[e("x"),e("y")]}function mp({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function B_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function O_(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Qa(e){return e===void 0||e===1}function As({scale:e,scaleX:t,scaleY:r}){return!Qa(e)||!Qa(t)||!Qa(r)}function xr(e){return As(e)||gp(e)||e.z||e.rotate||e.rotateX||e.rotateY}function gp(e){return Gu(e.x)||Gu(e.y)}function Gu(e){return e&&e!=="0%"}function Ai(e,t,r){const n=e-r,o=t*n;return r+o}function Ku(e,t,r,n,o){return o!==void 0&&(e=Ai(e,o,n)),Ai(e,r,n)+t}function Es(e,t=0,r=1,n,o){e.min=Ku(e.min,t,r,n,o),e.max=Ku(e.max,t,r,n,o)}function vp(e,{x:t,y:r}){Es(e.x,t.translate,t.scale,t.originPoint),Es(e.y,r.translate,r.scale,r.originPoint)}function F_(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function nr(e,t){e.min=e.min+t,e.max=e.max+t}function Yu(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,a=be(e.min,e.max,i);Es(e,t[r],t[n],a,t.scale)}const D_=["x","scaleX","originX"],V_=["y","scaleY","originY"];function tn(e,t){Yu(e.x,t,D_),Yu(e.y,t,V_)}function bp(e,t){return mp(O_(e.getBoundingClientRect(),t))}function L_(e,t,r){const n=bp(e,r),{scroll:o}=t;return o&&(nr(n.x,o.offset.x),nr(n.y,o.offset.y)),n}const N_=new WeakMap;class W_{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ce(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(oa(l,"page").point)},i=(l,c)=>{const{drag:u,dragPropagation:d,onDragStart:f}=this.getProps();if(u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Eh(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_t(g=>{let b=this.getAxisMotionValue(g).get()||0;if(jt.test(b)){const{projection:y}=this.visualElement;if(y&&y.layout){const k=y.layout.layoutBox[g];k&&(b=it(k)*(parseFloat(b)/100))}}this.originPoint[g]=b}),f&&ge.update(()=>f(l,c),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(l,c)=>{const{dragPropagation:u,dragDirectionLock:d,onDirectionLock:f,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:g}=c;if(d&&this.currentDirection===null){this.currentDirection=H_(g),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",c.point,g),this.updateAxis("y",c.point,g),this.visualElement.render(),h&&h(l,c)},s=(l,c)=>this.stop(l,c);this.panSession=new hp(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&ge.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Go(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=E_(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&Qr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=R_(n.layoutBox,t):this.constraints=!1,this.elastic=I_(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&_t(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=z_(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Qr(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=L_(n,o.root,this.visualElement.getTransformPagePoint());let a=j_(o.layout.layoutBox,i);if(r){const s=r(B_(a));this.hasMutatedConstraints=!!s,s&&(a=mp(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=_t(u=>{if(!Go(u,r,this.currentDirection))return;let d=l&&l[u]||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,g={type:"inertia",velocity:n?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Rl(t,n,0,r))}stopAnimation(){_t(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){_t(r=>{const{drag:n}=this.getProps();if(!Go(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-be(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Qr(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};_t(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=M_({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),_t(a=>{if(!Go(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:c}=this.constraints[a];s.set(be(l,c,o[a]))})}addListeners(){if(!this.visualElement.current)return;N_.set(this.visualElement,this);const t=this.visualElement.current,r=Wt(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Qr(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const a=Lt(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(_t(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=$s,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Go(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function H_(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class U_ extends dr{constructor(t){super(t),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new W_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zu=e=>(t,r)=>{e&&ge.update(()=>e(t,r))};class q_ extends dr{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(t){this.session=new hp(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Zu(t),onStart:Zu(r),onMove:n,onEnd:(i,a)=>{delete this.session,o&&ge.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=Wt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function G_(){const e=v.useContext(bo);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=v.useId();return v.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function K_(){return X_(v.useContext(bo))}function X_(e){return e===null?!0:e.isPresent}const ci={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ju(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const En={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const r=Ju(e,t.target.x),n=Ju(e,t.target.y);return`${r}% ${n}%`}},Y_={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=cr.parse(e);if(o.length>5)return n;const i=cr.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=be(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=c),typeof o[3+a]=="number"&&(o[3+a]/=c),i(o)}};class Z_ extends hi.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;rk(J_),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ci.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||ge.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function yp(e){const[t,r]=G_(),n=v.useContext(vl);return hi.createElement(Z_,{...e,layoutGroup:n,switchLayoutGroup:v.useContext(hh),isPresent:t,safeToRemove:r})}const J_={borderRadius:{...En,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:En,borderTopRightRadius:En,borderBottomLeftRadius:En,borderBottomRightRadius:En,boxShadow:Y_},xp=["TopLeft","TopRight","BottomLeft","BottomRight"],Q_=xp.length,Qu=e=>typeof e=="string"?parseFloat(e):e,ed=e=>typeof e=="number"||D.test(e);function e3(e,t,r,n,o,i){o?(e.opacity=be(0,r.opacity!==void 0?r.opacity:1,t3(n)),e.opacityExit=be(t.opacity!==void 0?t.opacity:1,0,r3(n))):i&&(e.opacity=be(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;ant?1:r(uo(e,t,n))}function rd(e,t){e.min=t.min,e.max=t.max}function ft(e,t){rd(e.x,t.x),rd(e.y,t.y)}function nd(e,t,r,n,o){return e-=t,e=Ai(e,1/r,n),o!==void 0&&(e=Ai(e,1/o,n)),e}function n3(e,t=0,r=1,n=.5,o,i=e,a=e){if(jt.test(t)&&(t=parseFloat(t),t=be(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=be(i.min,i.max,n);e===i&&(s-=t),e.min=nd(e.min,t,r,s,o),e.max=nd(e.max,t,r,s,o)}function od(e,t,[r,n,o],i,a){n3(e,t[r],t[n],t[o],t.scale,i,a)}const o3=["x","scaleX","originX"],i3=["y","scaleY","originY"];function id(e,t,r,n){od(e.x,t,o3,r?r.x:void 0,n?n.x:void 0),od(e.y,t,i3,r?r.y:void 0,n?n.y:void 0)}function ad(e){return e.translate===0&&e.scale===1}function wp(e){return ad(e.x)&&ad(e.y)}function Rs(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function sd(e){return it(e.x)/it(e.y)}class a3{constructor(){this.members=[]}add(t){jl(this.members,t),t.scheduleRender()}remove(t){if(Ml(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ld(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:c,rotateY:u}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),u&&(n+=`rotateY(${u}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const s3=(e,t)=>e.depth-t.depth;class l3{constructor(){this.children=[],this.isDirty=!1}add(t){jl(this.children,t),this.isDirty=!0}remove(t){Ml(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s3),this.isDirty=!1,this.children.forEach(t)}}function c3(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(qt(n),e(i-t))};return ge.read(n,!0),()=>qt(n)}function u3(e){window.MotionDebug&&window.MotionDebug.record(e)}function d3(e){return e instanceof SVGElement&&e.tagName!=="svg"}function f3(e,t,r){const n=Qe(e)?e:fn(e);return n.start(Rl("",n,t,r)),n.animation}const cd=["","X","Y","Z"],ud=1e3;let h3=0;const Sr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function kp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=h3++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Sr.totalNodes=Sr.resolvedTargetDeltas=Sr.recalculatedProjection=0,this.nodes.forEach(g3),this.nodes.forEach(x3),this.nodes.forEach(S3),this.nodes.forEach(v3),u3(Sr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=c3(f,250),ci.hasAnimatedSinceResize&&(ci.hasAnimatedSinceResize=!1,this.nodes.forEach(fd))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||u.getDefaultTransition()||P3,{onLayoutAnimationStart:y,onLayoutAnimationComplete:k}=u.getProps(),x=!this.targetLayout||!Rs(this.targetLayout,g)||h,C=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,C);const P={...cp(b,"layout"),onPlay:y,onComplete:k};(u.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else f||fd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(w3),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;uthis.update()))}clearAllSnapshots(){this.nodes.forEach(b3),this.sharedNodes.forEach(k3)}scheduleUpdateProjection(){ge.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const $=P/1e3;hd(d.x,a.x,$),hd(d.y,a.y,$),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Kn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),C3(this.relativeTarget,this.relativeTargetOrigin,f,$),C&&Rs(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Ce()),ft(C,this.relativeTarget)),b&&(this.animationValues=u,e3(u,c,this.latestValues,$,x,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ge.update(()=>{ci.hasAnimatedSinceResize=!0,this.currentAnimation=f3(0,ud,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ud),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&Cp(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ce();const d=it(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=it(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}ft(s,l),tn(s,u),Gn(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new a3),this.sharedNodes.get(a).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const c={};for(let u=0;u{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(dd),this.root.sharedNodes.clear()}}}function p3(e){e.updateLayout()}function m3(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?_t(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],h=it(f);f.min=n[d].min,f.max=f.min+h}):Cp(i,r.layoutBox,n)&&_t(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],h=it(n[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=Xn();Gn(s,n,r.layoutBox);const l=Xn();a?Gn(l,e.applyTransform(o,!0),r.measuredBox):Gn(l,n,r.layoutBox);const c=!wp(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const g=Ce();Kn(g,r.layoutBox,f.layoutBox);const b=Ce();Kn(b,n,h.layoutBox),Rs(g,b)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function g3(e){Sr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function v3(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function b3(e){e.clearSnapshot()}function dd(e){e.clearMeasurements()}function y3(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function fd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function x3(e){e.resolveTargetDelta()}function S3(e){e.calcProjection()}function w3(e){e.resetRotation()}function k3(e){e.removeLeadSnapshot()}function hd(e,t,r){e.translate=be(t.translate,0,r),e.scale=be(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function pd(e,t,r,n){e.min=be(t.min,r.min,n),e.max=be(t.max,r.max,n)}function C3(e,t,r,n){pd(e.x,t.x,r.x,n),pd(e.y,t.y,r.y,n)}function _3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const P3={duration:.45,ease:[.4,0,.1,1]};function md(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function T3(e){md(e.x),md(e.y)}function Cp(e,t,r){return e==="position"||e==="preserve-aspect"&&!Ts(sd(t),sd(r),.2)}const $3=kp({attachResizeListener:(e,t)=>Lt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),es={current:void 0},_p=kp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!es.current){const e=new $3({});e.mount(window),e.setOptions({layoutScroll:!0}),es.current=e}return es.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),A3={pan:{Feature:q_},drag:{Feature:U_,ProjectionNode:_p,MeasureLayout:yp}},E3=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function R3(e){const t=E3.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function js(e,t,r=1){const[n,o]=R3(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);return i?i.trim():ys(o)?js(o,t,r+1):o}function j3(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!ys(i))return;const a=js(i,n);a&&o.set(a)});for(const o in t){const i=t[o];if(!ys(i))continue;const a=js(i,n);a&&(t[o]=a,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const M3=new Set(["width","height","top","left","right","bottom","x","y"]),Pp=e=>M3.has(e),z3=e=>Object.keys(e).some(Pp),gd=e=>e===Or||e===D,vd=(e,t)=>parseFloat(e.split(", ")[t]),bd=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return vd(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?vd(i[1],e):0}},I3=new Set(["x","y","z"]),B3=yo.filter(e=>!I3.has(e));function O3(e){const t=[];return B3.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const yd={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:bd(4,13),y:bd(5,14)},F3=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{s[c]=yd[c](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(c=>{const u=t.getValue(c);u&&u.jump(s[c]),e[c]=yd[c](l,i)}),e},D3=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Pp);let i=[],a=!1;const s=[];if(o.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let u=r[l],d=An(u);const f=t[l];let h;if(Ci(f)){const g=f.length,b=f[0]===null?1:0;u=f[b],d=An(u);for(let y=b;y=0?window.pageYOffset:null,c=F3(t,e,s);return i.length&&i.forEach(([u,d])=>{e.getValue(u).set(d)}),e.render(),ea&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:t,transitionEnd:n}};function V3(e,t,r,n){return z3(t)?D3(e,t,r,n):{target:t,transitionEnd:n}}const L3=(e,t,r,n)=>{const o=j3(e,t,n);return t=o.target,n=o.transitionEnd,V3(e,t,r,n)},Ms={current:null},Tp={current:!1};function N3(){if(Tp.current=!0,!!ea)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ms.current=e.matches;e.addListener(t),t()}else Ms.current=!1}function W3(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(Qe(i))e.addValue(o,i),$i(n)&&n.add(o);else if(Qe(a))e.addValue(o,fn(i,{owner:e})),$i(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,fn(s!==void 0?s:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const xd=new WeakMap,$p=Object.keys(lo),H3=$p.length,Sd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],U3=gl.length;class q3{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ge.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=ra(r),this.isVariantNode=fh(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(r,{});for(const d in u){const f=u[d];s[d]!==void 0&&Qe(f)&&(f.set(s[d],!1),$i(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,xd.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Tp.current||N3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ms.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){xd.delete(this.current),this.projection&&this.projection.unmount(),qt(this.notifyUpdate),qt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=Br.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ge.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ce()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=fn(r,{owner:this}),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=_l(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Qe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new zl),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Ap extends q3{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let a=d_(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),a&&(a=o(a))),i){c_(this,n,a);const s=L3(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function G3(e){return window.getComputedStyle(e)}class K3 extends Ap{readValueFromInstance(t,r){if(Br.has(r)){const n=El(r);return n&&n.default||0}else{const n=G3(t),o=(gh(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return bp(t,r)}build(t,r,n,o){yl(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return Cl(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Qe(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){wh(t,r,n,o)}}class X3 extends Ap{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Br.has(r)){const n=El(r);return n&&n.default||0}return r=kh.has(r)?r:kl(r),t.getAttribute(r)}measureInstanceViewportBox(){return Ce()}scrapeMotionValuesFromProps(t,r){return _h(t,r)}build(t,r,n,o){Sl(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Ch(t,r,n,o)}mount(t){this.isSVGTag=wl(t.tagName),super.mount(t)}}const Y3=(e,t)=>bl(e)?new X3(t,{enableHardwareAcceleration:!1}):new K3(t,{enableHardwareAcceleration:!0}),Z3={layout:{ProjectionNode:_p,MeasureLayout:yp}},J3={...__,...qk,...A3,...Z3},Ep=ek((e,t)=>Ak(e,t,J3,Y3));function Rp(){const e=v.useRef(!1);return Si(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Q3(){const e=Rp(),[t,r]=v.useState(0),n=v.useCallback(()=>{e.current&&r(t+1)},[t]);return[v.useCallback(()=>ge.postRender(n),[n]),t]}class eP extends v.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function tP({children:e,isPresent:t}){const r=v.useId(),n=v.useRef(null),o=v.useRef({width:0,height:0,top:0,left:0});return v.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${i}px !important; + height: ${a}px !important; + top: ${s}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(c)}},[t]),v.createElement(eP,{isPresent:t,childRef:n,sizeRef:o},v.cloneElement(e,{ref:n}))}const ts=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Ph(rP),l=v.useId(),c=v.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:u=>{s.set(u,!0);for(const d of s.values())if(!d)return;n&&n()},register:u=>(s.set(u,!1),()=>s.delete(u))}),i?void 0:[r]);return v.useMemo(()=>{s.forEach((u,d)=>s.set(d,!1))},[r]),v.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=v.createElement(tP,{isPresent:r},e)),v.createElement(bo.Provider,{value:c},e)};function rP(){return new Map}function nP(e){return v.useEffect(()=>()=>e(),[])}const Ur=e=>e.key||"";function oP(e,t){e.forEach(r=>{const n=Ur(r);t.set(n,r)})}function iP(e){const t=[];return v.Children.forEach(e,r=>{v.isValidElement(r)&&t.push(r)}),t}const jp=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=v.useContext(vl).forceRender||Q3()[0],l=Rp(),c=iP(e);let u=c;const d=v.useRef(new Map).current,f=v.useRef(u),h=v.useRef(new Map).current,g=v.useRef(!0);if(Si(()=>{g.current=!1,oP(c,h),f.current=u}),nP(()=>{g.current=!0,h.clear(),d.clear()}),g.current)return v.createElement(v.Fragment,null,u.map(x=>v.createElement(ts,{key:Ur(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},x)));u=[...u];const b=f.current.map(Ur),y=c.map(Ur),k=b.length;for(let x=0;x{if(y.indexOf(C)!==-1)return;const P=h.get(C);if(!P)return;const $=b.indexOf(C);let A=x;if(!A){const T=()=>{h.delete(C),d.delete(C);const E=f.current.findIndex(j=>j.key===C);if(f.current.splice(E,1),!d.size){if(f.current=c,l.current===!1)return;s(),n&&n()}};A=v.createElement(ts,{key:Ur(P),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:i,mode:a},P),d.set(C,A)}u.splice($,0,A)}),u=u.map(x=>{const C=x.key;return d.has(C)?x:v.createElement(ts,{key:Ur(x),isPresent:!0,presenceAffectsLayout:i,mode:a},x)}),v.createElement(v.Fragment,null,d.size?u:u.map(x=>v.cloneElement(x)))};var aP={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Mp=v.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:c=aP,toastSpacing:u="0.5rem"}=e,[d,f]=v.useState(s),h=K_();bs(()=>{h||n==null||n()},[h]),bs(()=>{f(s)},[s]);const g=()=>f(null),b=()=>f(s),y=()=>{h&&o()};v.useEffect(()=>{h&&i&&o()},[h,i,o]),U5(y,d);const k=v.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),x=v.useMemo(()=>W5(a),[a]);return p.jsx(Ep.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:b,custom:{position:a},style:x,children:p.jsx(B.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:k,children:ir(r,{id:t,onClose:y})})})});Mp.displayName="ToastComponent";var wd={path:p.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[p.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),p.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),p.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Fr=H((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...c}=e,u=le("chakra-icon",s),d=et("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},h={ref:t,focusable:i,className:u,__css:f},g=n??wd.viewBox;if(r&&typeof r!="string")return p.jsx(B.svg,{as:r,...h,...c});const b=a??wd.path;return p.jsx(B.svg,{verticalAlign:"middle",viewBox:g,...h,...c,children:b})});Fr.displayName="Icon";function kt(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,i=v.Children.toArray(e.path),a=H((s,l)=>p.jsx(Fr,{ref:l,viewBox:t,...o,...s,children:i.length?i:p.jsx("path",{fill:"currentColor",d:r})}));return a.displayName=n,a}function sP(e){return p.jsx(Fr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function lP(e){return p.jsx(Fr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function kd(e){return p.jsx(Fr,{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var cP=bn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Il=H((e,t)=>{const r=et("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=$e(e),c=le("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${cP} ${i} linear infinite`,...r};return p.jsx(B.div,{ref:t,__css:u,className:c,...l,children:n&&p.jsx(B.span,{srOnly:!0,children:n})})});Il.displayName="Spinner";var[uP,Bl]=wt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[dP,Ol]=wt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),zp={info:{icon:lP,colorScheme:"blue"},warning:{icon:kd,colorScheme:"orange"},success:{icon:sP,colorScheme:"green"},error:{icon:kd,colorScheme:"red"},loading:{icon:Il,colorScheme:"blue"}};function fP(e){return zp[e].colorScheme}function hP(e){return zp[e].icon}var Ip=H(function(t,r){const n=Ol(),{status:o}=Bl(),i={display:"inline",...n.description};return p.jsx(B.div,{ref:r,"data-status":o,...t,className:le("chakra-alert__desc",t.className),__css:i})});Ip.displayName="AlertDescription";function Bp(e){const{status:t}=Bl(),r=hP(t),n=Ol(),o=t==="loading"?n.spinner:n.icon;return p.jsx(B.span,{display:"inherit","data-status":t,...e,className:le("chakra-alert__icon",e.className),__css:o,children:e.children||p.jsx(r,{h:"100%",w:"100%"})})}Bp.displayName="AlertIcon";var Op=H(function(t,r){const n=Ol(),{status:o}=Bl();return p.jsx(B.div,{ref:r,"data-status":o,...t,className:le("chakra-alert__title",t.className),__css:n.title})});Op.displayName="AlertTitle";var Fp=H(function(t,r){var n;const{status:o="info",addRole:i=!0,...a}=$e(t),s=(n=t.colorScheme)!=null?n:fP(o),l=Kt("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return p.jsx(uP,{value:{status:o},children:p.jsx(dP,{value:l,children:p.jsx(B.div,{"data-status":o,role:i?"alert":void 0,ref:r,...a,className:le("chakra-alert",t.className),__css:c})})})});Fp.displayName="Alert";function pP(e){return p.jsx(Fr,{focusable:"false","aria-hidden":!0,...e,children:p.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Dp=H(function(t,r){const n=et("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=$e(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return p.jsx(B.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...a},...s,children:o||p.jsx(pP,{width:"1em",height:"1em"})})});Dp.displayName="CloseButton";var mP={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Yn=gP(mP);function gP(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=vP(o,i),{position:s,id:l}=a;return n(c=>{var u,d;const h=s.includes("top")?[a,...(u=c[s])!=null?u:[]]:[...(d=c[s])!=null?d:[],a];return{...c,[s]:h}}),l},update:(o,i)=>{o&&n(a=>{const s={...a},{position:l,index:c}=bu(s,o);return l&&c!==-1&&(s[l][c]={...s[l][c],...i,message:yP(i)}),s})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,c)=>(l[c]=i[c].map(u=>({...u,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const a=ch(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!bu(Yn.getState(),o).position}}var Cd=0;function vP(e,t={}){var r,n;Cd+=1;const o=(r=t.id)!=null?r:Cd,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Yn.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var bP=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:c}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return p.jsxs(Fp,{addRole:!1,status:t,variant:r,id:u==null?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[p.jsx(Bp,{children:c}),p.jsxs(B.div,{flex:"1",maxWidth:"100%",children:[o&&p.jsx(Op,{id:u==null?void 0:u.title,children:o}),s&&p.jsx(Ip,{id:u==null?void 0:u.description,display:"block",children:s})]}),i&&p.jsx(Dp,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function yP(e={}){const{render:t,toastComponent:r=bP}=e;return o=>typeof t=="function"?t({...o,...e}):p.jsx(r,{...o,...e})}var[xP,gE]=wt({name:"ToastOptionsContext",strict:!1}),SP=e=>{const t=v.useSyncExternalStore(Yn.subscribe,Yn.getState,Yn.getState),{motionVariants:r,component:n=Mp,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return p.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:H5(s),children:p.jsx(jp,{initial:!1,children:l.map(c=>p.jsx(n,{motionVariants:r,...c},c.id))})},s)});return p.jsx(go,{...o,children:a})},wP=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return p.jsxs(L5,{theme:n,...i,children:[p.jsx(xP,{value:o==null?void 0:o.defaultOptions,children:r}),p.jsx(SP,{...o})]})},kP=wP(Jf);function CP(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function ur(...e){return t=>{e.forEach(r=>{CP(r,t)})}}function _P(...e){return v.useMemo(()=>ur(...e),e)}var zs=H(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...a}=t;return p.jsx("img",{width:n,height:o,ref:r,alt:i,...a})});zs.displayName="NativeImage";function PP(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[c,u]=v.useState("pending");v.useEffect(()=>{u(r?"loading":"pending")},[r]);const d=v.useRef(),f=v.useCallback(()=>{if(!r)return;h();const g=new Image;g.src=r,a&&(g.crossOrigin=a),n&&(g.srcset=n),s&&(g.sizes=s),t&&(g.loading=t),g.onload=b=>{h(),u("loaded"),o==null||o(b)},g.onerror=b=>{h(),u("failed"),i==null||i(b)},d.current=g},[r,a,n,s,o,i,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return ar(()=>{if(!l)return c==="loading"&&f(),()=>{h()}},[c,f,l]),l?"loaded":c}var TP=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function $P(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Fl=H(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:c,ignoreFallback:u,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...g}=t,b=n!==void 0||o!==void 0,y=c!=null||u||!b,k=PP({...t,crossOrigin:d,ignoreFallback:y}),x=TP(k,f),C={ref:r,objectFit:l,objectPosition:s,...y?g:$P(g,["onError","onLoad"])};return x?o||p.jsx(B.img,{as:zs,className:"chakra-image__placeholder",src:n,...C}):p.jsx(B.img,{as:zs,src:i,srcSet:a,crossOrigin:d,loading:c,referrerPolicy:h,className:"chakra-image",...C})});Fl.displayName="Image";function AP(e){return v.Children.toArray(e).filter(t=>v.isValidElement(t))}var[vE,EP]=wt({strict:!1,name:"ButtonGroupContext"});function RP(e){const[t,r]=v.useState(!e);return{ref:v.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Is(e){const{children:t,className:r,...n}=e,o=v.isValidElement(t)?v.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=le("chakra-button__icon",r);return p.jsx(B.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}Is.displayName="ButtonIcon";function Bs(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=p.jsx(Il,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=le("chakra-button__spinner",i),c=r==="start"?"marginEnd":"marginStart",u=v.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[c]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,c,n]);return p.jsx(B.div,{className:l,...s,__css:u,children:o})}Bs.displayName="ButtonSpinner";var ko=H((e,t)=>{const r=EP(),n=et("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:c,loadingText:u,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:g="start",className:b,as:y,...k}=$e(e),x=v.useMemo(()=>{const A={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:A}}},[n,r]),{ref:C,type:P}=RP(y),$={rightIcon:c,leftIcon:l,iconSpacing:d,children:s};return p.jsxs(B.button,{ref:_P(t,C),as:y,type:f??P,"data-active":K(a),"data-loading":K(i),__css:x,className:le("chakra-button",b),...k,disabled:o||i,children:[i&&g==="start"&&p.jsx(Bs,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d,children:h}),i?u||p.jsx(B.span,{opacity:0,children:p.jsx(_d,{...$})}):p.jsx(_d,{...$}),i&&g==="end"&&p.jsx(Bs,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d,children:h})]})});ko.displayName="Button";function _d(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return p.jsxs(p.Fragment,{children:[t&&p.jsx(Is,{marginEnd:o,children:t}),n,r&&p.jsx(Is,{marginStart:o,children:r})]})}var[jP,Vp]=D5("Card"),MP=H(function(t,r){const{className:n,...o}=t,i=Vp();return p.jsx(B.div,{ref:r,className:le("chakra-card__body",n),__css:i.body,...o})}),zP=H(function(t,r){const{className:n,...o}=t,i=Vp();return p.jsx(B.div,{ref:r,className:le("chakra-card__header",n),__css:i.header,...o})}),IP=H(function(t,r){const{className:n,children:o,direction:i="column",justify:a,align:s,...l}=$e(t),c=Kt("Card",t);return p.jsx(B.div,{ref:r,className:le("chakra-card",n),__css:{display:"flex",flexDirection:i,justifyContent:a,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...c.container},...l,children:p.jsx(jP,{value:c,children:o})})}),[bE,BP]=wt({name:"CheckboxGroupContext",strict:!1});function OP(e){const[t,r]=v.useState(e),[n,o]=v.useState(!1);return e!==t&&(o(!0),r(e)),n}function FP(e){return p.jsx(B.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:p.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function DP(e){return p.jsx(B.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:p.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function VP(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?DP:FP;return r||t?p.jsx(B.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:p.jsx(o,{...n})}):null}var[LP,Lp]=wt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[NP,yn]=wt({strict:!1,name:"FormControlContext"});function WP(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...a}=e,s=v.useId(),l=t||`field-${s}`,c=`${l}-label`,u=`${l}-feedback`,d=`${l}-helptext`,[f,h]=v.useState(!1),[g,b]=v.useState(!1),[y,k]=v.useState(!1),x=v.useCallback((T={},E=null)=>({id:d,...T,ref:ur(E,j=>{j&&b(!0)})}),[d]),C=v.useCallback((T={},E=null)=>({...T,ref:E,"data-focus":K(y),"data-disabled":K(o),"data-invalid":K(n),"data-readonly":K(i),id:T.id!==void 0?T.id:c,htmlFor:T.htmlFor!==void 0?T.htmlFor:l}),[l,o,y,n,i,c]),P=v.useCallback((T={},E=null)=>({id:u,...T,ref:ur(E,j=>{j&&h(!0)}),"aria-live":"polite"}),[u]),$=v.useCallback((T={},E=null)=>({...T,...a,ref:E,role:"group","data-focus":K(y),"data-disabled":K(o),"data-invalid":K(n),"data-readonly":K(i)}),[a,o,y,n,i]),A=v.useCallback((T={},E=null)=>({...T,ref:E,role:"presentation","aria-hidden":!0,children:T.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!y,onFocus:()=>k(!0),onBlur:()=>k(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:g,setHasHelpText:b,id:l,labelId:c,feedbackId:u,helpTextId:d,htmlProps:a,getHelpTextProps:x,getErrorMessageProps:P,getRootProps:$,getLabelProps:C,getRequiredIndicatorProps:A}}var Np=H(function(t,r){const n=Kt("Form",t),o=$e(t),{getRootProps:i,htmlProps:a,...s}=WP(o),l=le("chakra-form-control",t.className);return p.jsx(NP,{value:s,children:p.jsx(LP,{value:n,children:p.jsx(B.div,{...i({},r),className:l,__css:n.container})})})});Np.displayName="FormControl";var HP=H(function(t,r){const n=yn(),o=Lp(),i=le("chakra-form__helper-text",t.className);return p.jsx(B.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});HP.displayName="FormHelperText";var[UP,qP]=wt({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Wp=H((e,t)=>{const r=Kt("FormError",e),n=$e(e),o=yn();return o!=null&&o.isInvalid?p.jsx(UP,{value:r,children:p.jsx(B.div,{...o==null?void 0:o.getErrorMessageProps(n,t),className:le("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});Wp.displayName="FormErrorMessage";var GP=H((e,t)=>{const r=qP(),n=yn();if(!(n!=null&&n.isInvalid))return null;const o=le("chakra-form__error-icon",e.className);return p.jsx(Fr,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:o,children:p.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});GP.displayName="FormErrorIcon";var Hp=H(function(t,r){var n;const o=et("FormLabel",t),i=$e(t),{className:a,children:s,requiredIndicator:l=p.jsx(Up,{}),optionalIndicator:c=null,...u}=i,d=yn(),f=(n=d==null?void 0:d.getLabelProps(u,r))!=null?n:{ref:r,...u};return p.jsxs(B.label,{...f,className:le("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...o},children:[s,d!=null&&d.isRequired?l:c]})});Hp.displayName="FormLabel";var Up=H(function(t,r){const n=yn(),o=Lp();if(!(n!=null&&n.isRequired))return null;const i=le("chakra-form__required-indicator",t.className);return p.jsx(B.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:o.requiredIndicator,className:i})});Up.displayName="RequiredIndicator";function qp(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=Gp(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":Ca(r),"aria-required":Ca(o),"aria-readonly":Ca(n)}}function Gp(e){var t,r,n;const o=yn(),{id:i,disabled:a,readOnly:s,required:l,isRequired:c,isInvalid:u,isReadOnly:d,isDisabled:f,onFocus:h,onBlur:g,...b}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&y.push(o.feedbackId),o!=null&&o.hasHelpText&&y.push(o.helpTextId),{...b,"aria-describedby":y.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=a??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=s??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??c)!=null?n:o==null?void 0:o.isRequired,isInvalid:u??(o==null?void 0:o.isInvalid),onFocus:je(o==null?void 0:o.onFocus,h),onBlur:je(o==null?void 0:o.onBlur,g)}}var KP={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},XP=()=>typeof document<"u",Pd=!1,Co=null,zr=!1,Os=!1,Fs=new Set;function Dl(e,t){Fs.forEach(r=>r(e,t))}var YP=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function ZP(e){return!(e.metaKey||!YP&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Td(e){zr=!0,ZP(e)&&(Co="keyboard",Dl("keyboard",e))}function Wr(e){if(Co="pointer",e.type==="mousedown"||e.type==="pointerdown"){zr=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Dl("pointer",e)}}function JP(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function QP(e){JP(e)&&(zr=!0,Co="virtual")}function eT(e){e.target===window||e.target===document||(!zr&&!Os&&(Co="virtual",Dl("virtual",e)),zr=!1,Os=!1)}function tT(){zr=!1,Os=!0}function $d(){return Co!=="pointer"}function rT(){if(!XP()||Pd)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){zr=!0,e.apply(this,r)},document.addEventListener("keydown",Td,!0),document.addEventListener("keyup",Td,!0),document.addEventListener("click",QP,!0),window.addEventListener("focus",eT,!0),window.addEventListener("blur",tT,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Wr,!0),document.addEventListener("pointermove",Wr,!0),document.addEventListener("pointerup",Wr,!0)):(document.addEventListener("mousedown",Wr,!0),document.addEventListener("mousemove",Wr,!0),document.addEventListener("mouseup",Wr,!0)),Pd=!0}function nT(e){rT(),e($d());const t=()=>e($d());return Fs.add(t),()=>{Fs.delete(t)}}function oT(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Kp(e={}){const t=Gp(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:i,id:a,onBlur:s,onFocus:l,"aria-describedby":c}=t,{defaultChecked:u,isChecked:d,isFocusable:f,onChange:h,isIndeterminate:g,name:b,value:y,tabIndex:k=void 0,"aria-label":x,"aria-labelledby":C,"aria-invalid":P,...$}=e,A=oT($,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),T=Ar(h),E=Ar(s),j=Ar(l),[R,F]=v.useState(!1),[Y,ee]=v.useState(!1),[N,Z]=v.useState(!1),[W,U]=v.useState(!1);v.useEffect(()=>nT(F),[]);const fe=v.useRef(null),[xe,De]=v.useState(!0),[q,Se]=v.useState(!!u),L=d!==void 0,te=L?d:q,ue=v.useCallback(V=>{if(n||r){V.preventDefault();return}L||Se(te?V.target.checked:g?!0:V.target.checked),T==null||T(V)},[n,r,te,L,g,T]);ar(()=>{fe.current&&(fe.current.indeterminate=!!g)},[g]),bs(()=>{r&&ee(!1)},[r,ee]),ar(()=>{const V=fe.current;if(!(V!=null&&V.form))return;const Ie=()=>{Se(!!u)};return V.form.addEventListener("reset",Ie),()=>{var Ne;return(Ne=V.form)==null?void 0:Ne.removeEventListener("reset",Ie)}},[]);const ve=r&&!f,Ve=v.useCallback(V=>{V.key===" "&&U(!0)},[U]),ke=v.useCallback(V=>{V.key===" "&&U(!1)},[U]);ar(()=>{if(!fe.current)return;fe.current.checked!==te&&Se(fe.current.checked)},[fe.current]);const qe=v.useCallback((V={},Ie=null)=>{const Ne=Zt=>{Y&&Zt.preventDefault(),U(!0)};return{...V,ref:Ie,"data-active":K(W),"data-hover":K(N),"data-checked":K(te),"data-focus":K(Y),"data-focus-visible":K(Y&&R),"data-indeterminate":K(g),"data-disabled":K(r),"data-invalid":K(i),"data-readonly":K(n),"aria-hidden":!0,onMouseDown:je(V.onMouseDown,Ne),onMouseUp:je(V.onMouseUp,()=>U(!1)),onMouseEnter:je(V.onMouseEnter,()=>Z(!0)),onMouseLeave:je(V.onMouseLeave,()=>Z(!1))}},[W,te,r,Y,R,N,g,i,n]),Ge=v.useCallback((V={},Ie=null)=>({...V,ref:Ie,"data-active":K(W),"data-hover":K(N),"data-checked":K(te),"data-focus":K(Y),"data-focus-visible":K(Y&&R),"data-indeterminate":K(g),"data-disabled":K(r),"data-invalid":K(i),"data-readonly":K(n)}),[W,te,r,Y,R,N,g,i,n]),Ee=v.useCallback((V={},Ie=null)=>({...A,...V,ref:ur(Ie,Ne=>{Ne&&De(Ne.tagName==="LABEL")}),onClick:je(V.onClick,()=>{var Ne;xe||((Ne=fe.current)==null||Ne.click(),requestAnimationFrame(()=>{var Zt;(Zt=fe.current)==null||Zt.focus({preventScroll:!0})}))}),"data-disabled":K(r),"data-checked":K(te),"data-invalid":K(i)}),[A,r,te,i,xe]),re=v.useCallback((V={},Ie=null)=>({...V,ref:ur(fe,Ie),type:"checkbox",name:b,value:y,id:a,tabIndex:k,onChange:je(V.onChange,ue),onBlur:je(V.onBlur,E,()=>ee(!1)),onFocus:je(V.onFocus,j,()=>ee(!0)),onKeyDown:je(V.onKeyDown,Ve),onKeyUp:je(V.onKeyUp,ke),required:o,checked:te,disabled:ve,readOnly:n,"aria-label":x,"aria-labelledby":C,"aria-invalid":P?!!P:i,"aria-describedby":c,"aria-disabled":r,style:KP}),[b,y,a,ue,E,j,Ve,ke,o,te,ve,n,x,C,P,i,c,r,k]),Re=v.useCallback((V={},Ie=null)=>({...V,ref:Ie,onMouseDown:je(V.onMouseDown,iT),"data-disabled":K(r),"data-checked":K(te),"data-invalid":K(i)}),[te,r,i]);return{state:{isInvalid:i,isFocused:Y,isChecked:te,isActive:W,isHovered:N,isIndeterminate:g,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Ee,getCheckboxProps:qe,getIndicatorProps:Ge,getInputProps:re,getLabelProps:Re,htmlProps:A}}function iT(e){e.preventDefault(),e.stopPropagation()}var aT={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},sT={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},lT=bn({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),cT=bn({from:{opacity:0},to:{opacity:1}}),uT=bn({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Xp=H(function(t,r){const n=BP(),o={...n,...t},i=Kt("Checkbox",o),a=$e(t),{spacing:s="0.5rem",className:l,children:c,iconColor:u,iconSize:d,icon:f=p.jsx(VP,{}),isChecked:h,isDisabled:g=n==null?void 0:n.isDisabled,onChange:b,inputProps:y,...k}=a;let x=h;n!=null&&n.value&&a.value&&(x=n.value.includes(a.value));let C=b;n!=null&&n.onChange&&a.value&&(C=Av(n.onChange,b));const{state:P,getInputProps:$,getCheckboxProps:A,getLabelProps:T,getRootProps:E}=Kp({...k,isDisabled:g,isChecked:x,onChange:C}),j=OP(P.isChecked),R=v.useMemo(()=>({animation:j?P.isIndeterminate?`${cT} 20ms linear, ${uT} 200ms linear`:`${lT} 200ms linear`:void 0,fontSize:d,color:u,...i.icon}),[u,d,j,P.isIndeterminate,i.icon]),F=v.cloneElement(f,{__css:R,isIndeterminate:P.isIndeterminate,isChecked:P.isChecked});return p.jsxs(B.label,{__css:{...sT,...i.container},className:le("chakra-checkbox",l),...E(),children:[p.jsx("input",{className:"chakra-checkbox__input",...$(y,r)}),p.jsx(B.span,{__css:{...aT,...i.control},className:"chakra-checkbox__control",...A(),children:F}),c&&p.jsx(B.span,{className:"chakra-checkbox__label",...T(),__css:{marginStart:s,...i.label},children:c})]})});Xp.displayName="Checkbox";function rs(e,t,r,n){const o=Ar(r);return v.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!r||!i))return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,n)}}function dT(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function fT(e){var t;if(!dT(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function hT(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+o+n)}function pT(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function Yp(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:fT(e)&&hT(e)?e:Yp(pT(e))}var[mT,gT]=wt({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Zp=H(function(t,r){const n=Kt("Input",t),{children:o,className:i,...a}=$e(t),s=le("chakra-input__group",i),l={},c=AP(o),u=n.field;c.forEach(f=>{var h,g;n&&(u&&f.type.id==="InputLeftElement"&&(l.paddingStart=(h=u.height)!=null?h:u.h),u&&f.type.id==="InputRightElement"&&(l.paddingEnd=(g=u.height)!=null?g:u.h),f.type.id==="InputRightAddon"&&(l.borderEndRadius=0),f.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const d=c.map(f=>{var h,g;const b=ih({size:((h=f.props)==null?void 0:h.size)||t.size,variant:((g=f.props)==null?void 0:g.variant)||t.variant});return f.type.id!=="Input"?v.cloneElement(f,b):v.cloneElement(f,Object.assign(b,l,f.props))});return p.jsx(B.div,{className:s,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...a,children:p.jsx(mT,{value:n,children:d})})});Zp.displayName="InputGroup";var vT=B("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),sa=H(function(t,r){var n,o;const{placement:i="left",...a}=t,s=gT(),l=s.field,u={[i==="left"?"insetStart":"insetEnd"]:"0",width:(n=l==null?void 0:l.height)!=null?n:l==null?void 0:l.h,height:(o=l==null?void 0:l.height)!=null?o:l==null?void 0:l.h,fontSize:l==null?void 0:l.fontSize,...s.element};return p.jsx(vT,{ref:r,__css:u,...a})});sa.id="InputElement";sa.displayName="InputElement";var Jp=H(function(t,r){const{className:n,...o}=t,i=le("chakra-input__left-element",n);return p.jsx(sa,{ref:r,placement:"left",className:i,...o})});Jp.id="InputLeftElement";Jp.displayName="InputLeftElement";var Vl=H(function(t,r){const{className:n,...o}=t,i=le("chakra-input__right-element",n);return p.jsx(sa,{ref:r,placement:"right",className:i,...o})});Vl.id="InputRightElement";Vl.displayName="InputRightElement";var Ll=H(function(t,r){const{htmlSize:n,...o}=t,i=Kt("Input",o),a=$e(o),s=qp(a),l=le("chakra-input",t.className);return p.jsx(B.input,{size:n,...s,__css:i.field,ref:r,className:l})});Ll.displayName="Input";Ll.id="Input";var Qp=H(function(t,r){const n=et("Link",t),{className:o,isExternal:i,...a}=$e(t);return p.jsx(B.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:r,className:le("chakra-link",o),...a,__css:n})});Qp.displayName="Link";var rt=H(function(t,r){const n=et("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=$e(t),c=ih({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return p.jsx(B.p,{ref:r,className:le("chakra-text",t.className),...c,...l,__css:n})});rt.displayName="Text";var Ei=H(function(t,r){const n=et("Heading",t),{className:o,...i}=$e(t);return p.jsx(B.h2,{ref:r,className:le("chakra-heading",t.className),...i,__css:n})});Ei.displayName="Heading";var Te=B("div");Te.displayName="Box";var em=H(function(t,r){const{size:n,centerContent:o=!0,...i}=t,a=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return p.jsx(Te,{ref:r,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...i})});em.displayName="Square";var bT=H(function(t,r){const{size:n,...o}=t;return p.jsx(em,{size:n,ref:r,borderRadius:"9999px",...o})});bT.displayName="Circle";var tm=H(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:c,...u}=et("Divider",t),{className:d,orientation:f="horizontal",__css:h,...g}=$e(t),b={vertical:{borderLeftWidth:n||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||s||"1px",width:"100%"}};return p.jsx(B.hr,{ref:r,"aria-orientation":f,...g,__css:{...u,border:"0",borderColor:c,borderStyle:l,...b[f],...h},className:le("chakra-divider",d)})});tm.displayName="Divider";var Xt=H(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:c,...u}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c};return p.jsx(B.div,{ref:r,__css:d,...u})});Xt.displayName="Flex";var Hr=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Fe={arrowShadowColor:Hr("--popper-arrow-shadow-color"),arrowSize:Hr("--popper-arrow-size","8px"),arrowSizeHalf:Hr("--popper-arrow-size-half"),arrowBg:Hr("--popper-arrow-bg"),transformOrigin:Hr("--popper-transform-origin"),arrowOffset:Hr("--popper-arrow-offset")};function yT(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var xT={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},ST=e=>xT[e],Ad={scroll:!0,resize:!0};function wT(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Ad,...e}}:t={enabled:e,options:Ad},t}var kT={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},CT={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Ed(e)},effect:({state:e})=>()=>{Ed(e)}},Ed=e=>{e.elements.popper.style.setProperty(Fe.transformOrigin.var,ST(e.placement))},_T={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{PT(e)}},PT=e=>{var t;if(!e.placement)return;const r=TT(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:Fe.arrowSize.varRef,height:Fe.arrowSize.varRef,zIndex:-1});const n={[Fe.arrowSizeHalf.var]:`calc(${Fe.arrowSize.varRef} / 2 - 1px)`,[Fe.arrowOffset.var]:`calc(${Fe.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},TT=e=>{if(e.startsWith("top"))return{property:"bottom",value:Fe.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Fe.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Fe.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Fe.arrowOffset.varRef}},$T={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Rd(e)},effect:({state:e})=>()=>{Rd(e)}},Rd=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=yT(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:Fe.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},AT={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},ET={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function RT(e,t="ltr"){var r,n;const o=((r=AT[e])==null?void 0:r[t])||e;return t==="ltr"?o:(n=ET[e])!=null?n:o}var Ye="top",gt="bottom",vt="right",Ze="left",Nl="auto",_o=[Ye,gt,vt,Ze],hn="start",fo="end",jT="clippingParents",rm="viewport",Rn="popper",MT="reference",jd=_o.reduce(function(e,t){return e.concat([t+"-"+hn,t+"-"+fo])},[]),nm=[].concat(_o,[Nl]).reduce(function(e,t){return e.concat([t,t+"-"+hn,t+"-"+fo])},[]),zT="beforeRead",IT="read",BT="afterRead",OT="beforeMain",FT="main",DT="afterMain",VT="beforeWrite",LT="write",NT="afterWrite",WT=[zT,IT,BT,OT,FT,DT,VT,LT,NT];function It(e){return e?(e.nodeName||"").toLowerCase():null}function at(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ir(e){var t=at(e).Element;return e instanceof t||e instanceof Element}function mt(e){var t=at(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Wl(e){if(typeof ShadowRoot>"u")return!1;var t=at(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HT(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!mt(i)||!It(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function UT(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!mt(o)||!It(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const qT={name:"applyStyles",enabled:!0,phase:"write",fn:HT,effect:UT,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var Er=Math.max,Ri=Math.min,pn=Math.round;function Ds(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function om(){return!/^((?!chrome|android).)*safari/i.test(Ds())}function mn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&mt(e)&&(o=e.offsetWidth>0&&pn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&pn(n.height)/e.offsetHeight||1);var a=Ir(e)?at(e):window,s=a.visualViewport,l=!om()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/o,u=(n.top+(l&&s?s.offsetTop:0))/i,d=n.width/o,f=n.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Hl(e){var t=mn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function im(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Wl(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Gt(e){return at(e).getComputedStyle(e)}function GT(e){return["table","td","th"].indexOf(It(e))>=0}function fr(e){return((Ir(e)?e.ownerDocument:e.document)||window.document).documentElement}function la(e){return It(e)==="html"?e:e.assignedSlot||e.parentNode||(Wl(e)?e.host:null)||fr(e)}function Md(e){return!mt(e)||Gt(e).position==="fixed"?null:e.offsetParent}function KT(e){var t=/firefox/i.test(Ds()),r=/Trident/i.test(Ds());if(r&&mt(e)){var n=Gt(e);if(n.position==="fixed")return null}var o=la(e);for(Wl(o)&&(o=o.host);mt(o)&&["html","body"].indexOf(It(o))<0;){var i=Gt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Po(e){for(var t=at(e),r=Md(e);r&>(r)&&Gt(r).position==="static";)r=Md(r);return r&&(It(r)==="html"||It(r)==="body"&&Gt(r).position==="static")?t:r||KT(e)||t}function Ul(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zn(e,t,r){return Er(e,Ri(t,r))}function XT(e,t,r){var n=Zn(e,t,r);return n>r?r:n}function am(){return{top:0,right:0,bottom:0,left:0}}function sm(e){return Object.assign({},am(),e)}function lm(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var YT=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,sm(typeof t!="number"?t:lm(t,_o))};function ZT(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Mt(r.placement),l=Ul(s),c=[Ze,vt].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var d=YT(o.padding,r),f=Hl(i),h=l==="y"?Ye:Ze,g=l==="y"?gt:vt,b=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],y=a[l]-r.rects.reference[l],k=Po(i),x=k?l==="y"?k.clientHeight||0:k.clientWidth||0:0,C=b/2-y/2,P=d[h],$=x-f[u]-d[g],A=x/2-f[u]/2+C,T=Zn(P,A,$),E=l;r.modifiersData[n]=(t={},t[E]=T,t.centerOffset=T-A,t)}}function JT(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||im(t.elements.popper,o)&&(t.elements.arrow=o))}const QT={name:"arrow",enabled:!0,phase:"main",fn:ZT,effect:JT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gn(e){return e.split("-")[1]}var e$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function t$(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:pn(r*o)/o||0,y:pn(n*o)/o||0}}function zd(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,g=a.y,b=g===void 0?0:g,y=typeof u=="function"?u({x:h,y:b}):{x:h,y:b};h=y.x,b=y.y;var k=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),C=Ze,P=Ye,$=window;if(c){var A=Po(r),T="clientHeight",E="clientWidth";if(A===at(r)&&(A=fr(r),Gt(A).position!=="static"&&s==="absolute"&&(T="scrollHeight",E="scrollWidth")),A=A,o===Ye||(o===Ze||o===vt)&&i===fo){P=gt;var j=d&&A===$&&$.visualViewport?$.visualViewport.height:A[T];b-=j-n.height,b*=l?1:-1}if(o===Ze||(o===Ye||o===gt)&&i===fo){C=vt;var R=d&&A===$&&$.visualViewport?$.visualViewport.width:A[E];h-=R-n.width,h*=l?1:-1}}var F=Object.assign({position:s},c&&e$),Y=u===!0?t$({x:h,y:b},at(r)):{x:h,y:b};if(h=Y.x,b=Y.y,l){var ee;return Object.assign({},F,(ee={},ee[P]=x?"0":"",ee[C]=k?"0":"",ee.transform=($.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",ee))}return Object.assign({},F,(t={},t[P]=x?b+"px":"",t[C]=k?h+"px":"",t.transform="",t))}function r$(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Mt(t.placement),variation:gn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zd(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zd(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const n$={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:r$,data:{}};var Ko={passive:!0};function o$(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,l=at(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",r.update,Ko)}),s&&l.addEventListener("resize",r.update,Ko),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Ko)}),s&&l.removeEventListener("resize",r.update,Ko)}}const i$={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:o$,data:{}};var a$={left:"right",right:"left",bottom:"top",top:"bottom"};function ui(e){return e.replace(/left|right|bottom|top/g,function(t){return a$[t]})}var s$={start:"end",end:"start"};function Id(e){return e.replace(/start|end/g,function(t){return s$[t]})}function ql(e){var t=at(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Gl(e){return mn(fr(e)).left+ql(e).scrollLeft}function l$(e,t){var r=at(e),n=fr(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=om();(c||!c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Gl(e),y:l}}function c$(e){var t,r=fr(e),n=ql(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Er(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Er(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Gl(e),l=-n.scrollTop;return Gt(o||r).direction==="rtl"&&(s+=Er(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Kl(e){var t=Gt(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function cm(e){return["html","body","#document"].indexOf(It(e))>=0?e.ownerDocument.body:mt(e)&&Kl(e)?e:cm(la(e))}function Jn(e,t){var r;t===void 0&&(t=[]);var n=cm(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=at(n),a=o?[i].concat(i.visualViewport||[],Kl(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Jn(la(a)))}function Vs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function u$(e,t){var r=mn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Bd(e,t,r){return t===rm?Vs(l$(e,r)):Ir(t)?u$(t,r):Vs(c$(fr(e)))}function d$(e){var t=Jn(la(e)),r=["absolute","fixed"].indexOf(Gt(e).position)>=0,n=r&&mt(e)?Po(e):e;return Ir(n)?t.filter(function(o){return Ir(o)&&im(o,n)&&It(o)!=="body"}):[]}function f$(e,t,r,n){var o=t==="clippingParents"?d$(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(l,c){var u=Bd(e,c,n);return l.top=Er(u.top,l.top),l.right=Ri(u.right,l.right),l.bottom=Ri(u.bottom,l.bottom),l.left=Er(u.left,l.left),l},Bd(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function um(e){var t=e.reference,r=e.element,n=e.placement,o=n?Mt(n):null,i=n?gn(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case Ye:l={x:a,y:t.y-r.height};break;case gt:l={x:a,y:t.y+t.height};break;case vt:l={x:t.x+t.width,y:s};break;case Ze:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=o?Ul(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case hn:l[c]=l[c]-(t[u]/2-r[u]/2);break;case fo:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function ho(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?jT:s,c=r.rootBoundary,u=c===void 0?rm:c,d=r.elementContext,f=d===void 0?Rn:d,h=r.altBoundary,g=h===void 0?!1:h,b=r.padding,y=b===void 0?0:b,k=sm(typeof y!="number"?y:lm(y,_o)),x=f===Rn?MT:Rn,C=e.rects.popper,P=e.elements[g?x:f],$=f$(Ir(P)?P:P.contextElement||fr(e.elements.popper),l,u,a),A=mn(e.elements.reference),T=um({reference:A,element:C,strategy:"absolute",placement:o}),E=Vs(Object.assign({},C,T)),j=f===Rn?E:A,R={top:$.top-j.top+k.top,bottom:j.bottom-$.bottom+k.bottom,left:$.left-j.left+k.left,right:j.right-$.right+k.right},F=e.modifiersData.offset;if(f===Rn&&F){var Y=F[o];Object.keys(R).forEach(function(ee){var N=[vt,gt].indexOf(ee)>=0?1:-1,Z=[Ye,gt].indexOf(ee)>=0?"y":"x";R[ee]+=Y[Z]*N})}return R}function h$(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?nm:l,u=gn(n),d=u?s?jd:jd.filter(function(g){return gn(g)===u}):_o,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var h=f.reduce(function(g,b){return g[b]=ho(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[Mt(b)],g},{});return Object.keys(h).sort(function(g,b){return h[g]-h[b]})}function p$(e){if(Mt(e)===Nl)return[];var t=ui(e);return[Id(e),t,Id(t)]}function m$(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,b=r.allowedAutoPlacements,y=t.options.placement,k=Mt(y),x=k===y,C=l||(x||!g?[ui(y)]:p$(y)),P=[y].concat(C).reduce(function(te,ue){return te.concat(Mt(ue)===Nl?h$(t,{placement:ue,boundary:u,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:b}):ue)},[]),$=t.rects.reference,A=t.rects.popper,T=new Map,E=!0,j=P[0],R=0;R=0,Z=N?"width":"height",W=ho(t,{placement:F,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),U=N?ee?vt:Ze:ee?gt:Ye;$[Z]>A[Z]&&(U=ui(U));var fe=ui(U),xe=[];if(i&&xe.push(W[Y]<=0),s&&xe.push(W[U]<=0,W[fe]<=0),xe.every(function(te){return te})){j=F,E=!1;break}T.set(F,xe)}if(E)for(var De=g?3:1,q=function(ue){var ve=P.find(function(Ve){var ke=T.get(Ve);if(ke)return ke.slice(0,ue).every(function(qe){return qe})});if(ve)return j=ve,"break"},Se=De;Se>0;Se--){var L=q(Se);if(L==="break")break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}}const g$={name:"flip",enabled:!0,phase:"main",fn:m$,requiresIfExists:["offset"],data:{_skip:!1}};function Od(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Fd(e){return[Ye,vt,gt,Ze].some(function(t){return e[t]>=0})}function v$(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ho(t,{elementContext:"reference"}),s=ho(t,{altBoundary:!0}),l=Od(a,n),c=Od(s,o,i),u=Fd(l),d=Fd(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const b$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:v$};function y$(e,t,r){var n=Mt(e),o=[Ze,Ye].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ze,vt].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function x$(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=nm.reduce(function(u,d){return u[d]=y$(d,t.rects,i),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const S$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:x$};function w$(e){var t=e.state,r=e.name;t.modifiersData[r]=um({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const k$={name:"popperOffsets",enabled:!0,phase:"read",fn:w$,data:{}};function C$(e){return e==="x"?"y":"x"}function _$(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,h=f===void 0?!0:f,g=r.tetherOffset,b=g===void 0?0:g,y=ho(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),k=Mt(t.placement),x=gn(t.placement),C=!x,P=Ul(k),$=C$(P),A=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,j=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,R=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(A){if(i){var ee,N=P==="y"?Ye:Ze,Z=P==="y"?gt:vt,W=P==="y"?"height":"width",U=A[P],fe=U+y[N],xe=U-y[Z],De=h?-E[W]/2:0,q=x===hn?T[W]:E[W],Se=x===hn?-E[W]:-T[W],L=t.elements.arrow,te=h&&L?Hl(L):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:am(),ve=ue[N],Ve=ue[Z],ke=Zn(0,T[W],te[W]),qe=C?T[W]/2-De-ke-ve-R.mainAxis:q-ke-ve-R.mainAxis,Ge=C?-T[W]/2+De+ke+Ve+R.mainAxis:Se+ke+Ve+R.mainAxis,Ee=t.elements.arrow&&Po(t.elements.arrow),re=Ee?P==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,Re=(ee=F==null?void 0:F[P])!=null?ee:0,hr=U+qe-Re-re,V=U+Ge-Re,Ie=Zn(h?Ri(fe,hr):fe,U,h?Er(xe,V):xe);A[P]=Ie,Y[P]=Ie-U}if(s){var Ne,Zt=P==="x"?Ye:Ze,fa=P==="x"?gt:vt,lt=A[$],Jt=$==="y"?"height":"width",pr=lt+y[Zt],ct=lt-y[fa],Dr=[Ye,Ze].indexOf(k)!==-1,xn=(Ne=F==null?void 0:F[$])!=null?Ne:0,$o=Dr?pr:lt-T[Jt]-E[Jt]-xn+R.altAxis,Ao=Dr?lt+T[Jt]+E[Jt]-xn-R.altAxis:ct,mr=h&&Dr?XT($o,lt,Ao):Zn(h?$o:pr,lt,h?Ao:ct);A[$]=mr,Y[$]=mr-lt}t.modifiersData[n]=Y}}const P$={name:"preventOverflow",enabled:!0,phase:"main",fn:_$,requiresIfExists:["offset"]};function T$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $$(e){return e===at(e)||!mt(e)?ql(e):T$(e)}function A$(e){var t=e.getBoundingClientRect(),r=pn(t.width)/e.offsetWidth||1,n=pn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function E$(e,t,r){r===void 0&&(r=!1);var n=mt(t),o=mt(t)&&A$(t),i=fr(t),a=mn(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((It(t)!=="body"||Kl(i))&&(s=$$(t)),mt(t)?(l=mn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Gl(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function R$(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function j$(e){var t=R$(e);return WT.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function M$(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function z$(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Dd={placement:"bottom",modifiers:[],strategy:"absolute"};function Vd(){for(var e=arguments.length,t=new Array(e),r=0;r{}),C=v.useCallback(()=>{var R;!t||!g.current||!b.current||((R=x.current)==null||R.call(x),y.current=O$(g.current,b.current,{placement:k,modifiers:[$T,_T,CT,{...kT,enabled:!!f},{name:"eventListeners",...wT(a)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!c,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...r??[]],strategy:o}),y.current.forceUpdate(),x.current=y.current.destroy)},[k,t,r,f,a,i,s,l,c,d,u,o]);v.useEffect(()=>()=>{var R;!g.current&&!b.current&&((R=y.current)==null||R.destroy(),y.current=null)},[]);const P=v.useCallback(R=>{g.current=R,C()},[C]),$=v.useCallback((R={},F=null)=>({...R,ref:ur(P,F)}),[P]),A=v.useCallback(R=>{b.current=R,C()},[C]),T=v.useCallback((R={},F=null)=>({...R,ref:ur(A,F),style:{...R.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,A,f]),E=v.useCallback((R={},F=null)=>{const{size:Y,shadowColor:ee,bg:N,style:Z,...W}=R;return{...W,ref:F,"data-popper-arrow":"",style:D$(R)}},[]),j=v.useCallback((R={},F=null)=>({...R,ref:F,"data-popper-arrow-inner":""}),[]);return{update(){var R;(R=y.current)==null||R.update()},forceUpdate(){var R;(R=y.current)==null||R.forceUpdate()},transformOrigin:Fe.transformOrigin.varRef,referenceRef:P,popperRef:A,getPopperProps:T,getArrowProps:E,getArrowInnerProps:j,getReferenceProps:$}}function D$(e){const{size:t,shadowColor:r,bg:n,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}function V$(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,i=Ar(r),a=Ar(t),[s,l]=v.useState(e.defaultIsOpen||!1),c=n!==void 0?n:s,u=n!==void 0,d=v.useId(),f=o??`disclosure-${d}`,h=v.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),g=v.useCallback(()=>{u||l(!0),i==null||i()},[u,i]),b=v.useCallback(()=>{c?h():g()},[c,g,h]);function y(x={}){return{...x,"aria-expanded":c,"aria-controls":f,onClick(C){var P;(P=x.onClick)==null||P.call(x,C),b()}}}function k(x={}){return{...x,hidden:!c,id:f}}return{isOpen:c,onOpen:g,onClose:h,onToggle:b,isControlled:u,getButtonProps:y,getDisclosureProps:k}}var dm=H(function(t,r){const{children:n,placeholder:o,className:i,...a}=t;return p.jsxs(B.select,{...a,ref:r,className:le("chakra-select",i),children:[o&&p.jsx("option",{value:"",children:o}),n]})});dm.displayName="SelectField";function L$(e,t){const r={},n={};for(const[o,i]of Object.entries(e))t.includes(o)?r[o]=i:n[o]=i;return[r,n]}var fm=H((e,t)=>{var r;const n=Kt("Select",e),{rootProps:o,placeholder:i,icon:a,color:s,height:l,h:c,minH:u,minHeight:d,iconColor:f,iconSize:h,...g}=$e(e),[b,y]=L$(g,Mb),k=qp(y),x={width:"100%",height:"fit-content",position:"relative",color:s},C={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(r=n.field)==null?void 0:r._focus}};return p.jsxs(B.div,{className:"chakra-select__wrapper",__css:x,...b,...o,children:[p.jsx(dm,{ref:t,height:c??l,minH:u??d,placeholder:i,...k,__css:C,children:e.children}),p.jsx(hm,{"data-disabled":K(k.disabled),...(f||s)&&{color:f||s},__css:n.icon,...h&&{fontSize:h},children:a})]})});fm.displayName="Select";var N$=e=>p.jsx("svg",{viewBox:"0 0 24 24",...e,children:p.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),W$=B("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),hm=e=>{const{children:t=p.jsx(N$,{}),...r}=e,n=v.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return p.jsx(W$,{...r,className:"chakra-select__icon-wrapper",children:v.isValidElement(t)?n:null})};hm.displayName="SelectIcon";function H$(){const e=v.useRef(!0);return v.useEffect(()=>{e.current=!1},[]),e.current}function U$(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}var q$=B("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Ls=I("skeleton-start-color"),Ns=I("skeleton-end-color"),G$=bn({from:{opacity:0},to:{opacity:1}}),K$=bn({from:{borderColor:Ls.reference,background:Ls.reference},to:{borderColor:Ns.reference,background:Ns.reference}}),pm=H((e,t)=>{const r={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},n=et("Skeleton",r),o=H$(),{startColor:i="",endColor:a="",isLoaded:s,fadeDuration:l,speed:c,className:u,fitContent:d,...f}=$e(r),[h,g]=Pv("colors",[i,a]),b=U$(s),y=le("chakra-skeleton",u),k={...h&&{[Ls.variable]:h},...g&&{[Ns.variable]:g}};if(s){const x=o||b?"none":`${G$} ${l}s`;return p.jsx(B.div,{ref:t,className:y,__css:{animation:x},...f})}return p.jsx(q$,{ref:t,className:y,...f,__css:{width:d?"fit-content":void 0,...n,...k,_dark:{...n._dark,...k},animation:`${c}s linear infinite alternate ${K$}`}})});pm.displayName="Skeleton";var mm=({size:e="2rem",...t})=>p.jsx(pm,{borderRadius:"full",boxSize:e,...t});mm.displayName="SkeletonCircle";var gm=H(function(t,r){const n=Kt("Switch",t),{spacing:o="0.5rem",children:i,...a}=$e(t),{getIndicatorProps:s,getInputProps:l,getCheckboxProps:c,getRootProps:u,getLabelProps:d}=Kp(a),f=v.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),h=v.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),g=v.useMemo(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return p.jsxs(B.label,{...u(),className:le("chakra-switch",t.className),__css:f,children:[p.jsx("input",{className:"chakra-switch__input",...l({},r)}),p.jsx(B.span,{...c(),className:"chakra-switch__track",__css:h,children:p.jsx(B.span,{__css:n.thumb,className:"chakra-switch__thumb",...s()})}),i&&p.jsx(B.span,{className:"chakra-switch__label",...d(),__css:g,children:i})]})});gm.displayName="Switch";var X$={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Ws=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},di=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function Y$(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:c,placement:u,id:d,isOpen:f,defaultIsOpen:h,arrowSize:g=10,arrowShadowColor:b,arrowPadding:y,modifiers:k,isDisabled:x,gutter:C,offset:P,direction:$,...A}=e,{isOpen:T,onOpen:E,onClose:j}=V$({isOpen:f,defaultIsOpen:h,onOpen:l,onClose:c}),{referenceRef:R,getPopperProps:F,getArrowInnerProps:Y,getArrowProps:ee}=F$({enabled:T,placement:u,arrowPadding:y,modifiers:k,gutter:C,offset:P,direction:$}),N=v.useId(),W=`tooltip-${d??N}`,U=v.useRef(null),fe=v.useRef(),xe=v.useCallback(()=>{fe.current&&(clearTimeout(fe.current),fe.current=void 0)},[]),De=v.useRef(),q=v.useCallback(()=>{De.current&&(clearTimeout(De.current),De.current=void 0)},[]),Se=v.useCallback(()=>{q(),j()},[j,q]),L=Z$(U,Se),te=v.useCallback(()=>{if(!x&&!fe.current){T&&L();const re=di(U);fe.current=re.setTimeout(E,t)}},[L,x,T,E,t]),ue=v.useCallback(()=>{xe();const re=di(U);De.current=re.setTimeout(Se,r)},[r,Se,xe]),ve=v.useCallback(()=>{T&&n&&ue()},[n,ue,T]),Ve=v.useCallback(()=>{T&&a&&ue()},[a,ue,T]),ke=v.useCallback(re=>{T&&re.key==="Escape"&&ue()},[T,ue]);rs(()=>Ws(U),"keydown",s?ke:void 0),rs(()=>{if(!i)return null;const re=U.current;if(!re)return null;const Re=Yp(re);return Re.localName==="body"?di(U):Re},"scroll",()=>{T&&i&&Se()},{passive:!0,capture:!0}),v.useEffect(()=>{x&&(xe(),T&&j())},[x,T,j,xe]),v.useEffect(()=>()=>{xe(),q()},[xe,q]),rs(()=>U.current,"pointerleave",ue);const qe=v.useCallback((re={},Re=null)=>({...re,ref:ur(U,Re,R),onPointerEnter:je(re.onPointerEnter,V=>{V.pointerType!=="touch"&&te()}),onClick:je(re.onClick,ve),onPointerDown:je(re.onPointerDown,Ve),onFocus:je(re.onFocus,te),onBlur:je(re.onBlur,ue),"aria-describedby":T?W:void 0}),[te,ue,Ve,T,W,ve,R]),Ge=v.useCallback((re={},Re=null)=>F({...re,style:{...re.style,[Fe.arrowSize.var]:g?`${g}px`:void 0,[Fe.arrowShadowColor.var]:b}},Re),[F,g,b]),Ee=v.useCallback((re={},Re=null)=>{const hr={...re.style,position:"relative",transformOrigin:Fe.transformOrigin.varRef};return{ref:Re,...A,...re,id:W,role:"tooltip",style:hr}},[A,W]);return{isOpen:T,show:te,hide:ue,getTriggerProps:qe,getTooltipProps:Ee,getTooltipPositionerProps:Ge,getArrowProps:ee,getArrowInnerProps:Y}}var ns="chakra-ui:close-tooltip";function Z$(e,t){return v.useEffect(()=>{const r=Ws(e);return r.addEventListener(ns,t),()=>r.removeEventListener(ns,t)},[t,e]),()=>{const r=Ws(e),n=di(e);r.dispatchEvent(new n.CustomEvent(ns))}}function J$(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function Q$(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}var eA=B(Ep.div),po=H((e,t)=>{var r,n;const o=et("Tooltip",e),i=$e(e),a=il(),{children:s,label:l,shouldWrapChildren:c,"aria-label":u,hasArrow:d,bg:f,portalProps:h,background:g,backgroundColor:b,bgColor:y,motionProps:k,...x}=i,C=(n=(r=g??b)!=null?r:f)!=null?n:y;if(C){o.bg=C;const F=Gb(a,"colors",C);o[Fe.arrowBg.var]=F}const P=Y$({...x,direction:a.direction}),$=typeof s=="string"||c;let A;if($)A=p.jsx(B.span,{display:"inline-block",tabIndex:0,...P.getTriggerProps(),children:s});else{const F=v.Children.only(s);A=v.cloneElement(F,P.getTriggerProps(F.props,F.ref))}const T=!!u,E=P.getTooltipProps({},t),j=T?J$(E,["role","id"]):E,R=Q$(E,["role","id"]);return l?p.jsxs(p.Fragment,{children:[A,p.jsx(jp,{children:P.isOpen&&p.jsx(go,{...h,children:p.jsx(B.div,{...P.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:p.jsxs(eA,{variants:X$,initial:"exit",animate:"enter",exit:"exit",...k,...j,__css:o,children:[l,T&&p.jsx(B.span,{srOnly:!0,...R,children:u}),d&&p.jsx(B.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:p.jsx(B.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):p.jsx(p.Fragment,{children:s})});po.displayName="Tooltip";var tA=()=>p.jsxs(Xt,{as:"header",padding:"4",gap:"4",background:"background.default",boxShadow:"md",clipPath:"inset(0px 0px -16px 0px)",children:[p.jsx(mm,{width:"40px",height:"40px"}),p.jsxs(Te,{alignSelf:"center",children:[p.jsx(Ei,{as:"h1",fontSize:"sm",fontWeight:"500",lineHeight:"short",children:"Title"}),p.jsx(Ei,{as:"h2",fontSize:"xs",fontWeight:"400",lineHeight:"shorter",color:"text.alternative",children:"@organization/lorem-ipsum"})]})]}),rA=e=>p.jsxs(Te,{as:"svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("rect",{width:"18",height:"18",rx:"9",fill:"#0376C9"}),p.jsx("path",{d:"M12.9244 5.66405L9.56777 3.89204C9.21443 3.7033 8.78615 3.7033 8.43281 3.89204L5.07614 5.66405C4.82988 5.79511 4.67998 6.04676 4.67998 6.3351C4.67998 6.61821 4.82988 6.87509 5.07614 7.00616L8.43281 8.77817C8.60948 8.87253 8.80756 8.91972 9.00029 8.91972C9.19302 8.91972 9.3911 8.87253 9.56777 8.77817L12.9244 7.00616C13.1707 6.87509 13.3206 6.62345 13.3206 6.3351C13.3206 6.04676 13.1707 5.79511 12.9244 5.66405Z",fill:"white"}),p.jsx("path",{d:"M7.9921 9.24725L4.94137 7.62741C4.70005 7.51138 4.34018 7.6017 4.11495 7.73883C3.88435 7.88123 3.75029 8.11857 3.75029 8.38228V11.2884C3.75029 11.7894 4.03451 12.2737 4.49033 12.5005L7.61672 14.1697C7.72397 14.2225 7.84195 14.2488 7.95993 14.2488C8.09935 14.2488 8.23878 14.2119 8.36212 14.1381C8.59271 14.0009 8.72678 13.5985 8.72678 13.3347V10.4287C8.73214 9.92234 8.44792 9.46876 7.9921 9.24725Z",fill:"white"}),p.jsx("path",{d:"M13.8856 7.74093C13.655 7.60384 13.293 7.50615 13.0571 7.62741L10.0138 9.24884C9.55795 9.47556 9.27373 9.92372 9.27373 10.4299V13.335C9.27373 13.5986 9.40779 14.0027 9.63839 14.1398C9.76173 14.2136 9.90116 14.2505 10.0406 14.2505C10.1586 14.2505 10.2765 14.2241 10.3838 14.1714L13.5102 12.5005C13.9661 12.2738 14.2503 11.7954 14.2503 11.2893V8.38416C14.2503 8.12054 14.1162 7.88328 13.8856 7.74093Z",fill:"white"})]}),nA=({children:e})=>p.jsxs(Te,{margin:"4",border:"muted",borderRadius:"lg",background:"background.default",children:[p.jsxs(Xt,{padding:"1",gap:"1",borderBottom:"muted",alignItems:"center",children:[p.jsx(rA,{margin:"3px"}),p.jsxs(rt,{fontSize:"xs",lineHeight:"shorter",children:["Content from"," ",p.jsx(Te,{as:"span",fontWeight:"500",children:"Title"})]})]}),p.jsx(Te,{margin:"4",children:e})]}),Hs=(e,t)=>Object.hasOwnProperty.call(e,t);function oA(e){if(typeof e!="object"||e===null)return!1;try{let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch{return!1}}class iA extends TypeError{constructor(t,r){let n;const{message:o,explanation:i,...a}=t,{path:s}=t,l=s.length===0?o:`At path: ${s.join(".")} -- ${o}`;super(i??l),i!=null&&(this.cause=l),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...r()])}}function aA(e){return fi(e)&&typeof e[Symbol.iterator]=="function"}function fi(e){return typeof e=="object"&&e!=null}function vm(e){return typeof e=="symbol"?e.toString():typeof e=="string"?JSON.stringify(e):`${e}`}function sA(e){const{done:t,value:r}=e.next();return t?void 0:r}function lA(e,t,r,n){if(e===!0)return;e===!1?e={}:typeof e=="string"&&(e={message:e});const{path:o,branch:i}=t,{type:a}=r,{refinement:s,message:l=`Expected a value of type \`${a}\`${s?` with refinement \`${s}\``:""}, but received: \`${vm(n)}\``}=e;return{value:n,type:a,refinement:s,key:o[o.length-1],path:o,branch:i,...e,message:l}}function*Us(e,t,r,n){aA(e)||(e=[e]);for(const o of e){const i=lA(o,t,r,n);i&&(yield i)}}function*bm(e,t,r={}){const{path:n=[],branch:o=[e],coerce:i=!1,mask:a=!1}=r,s={path:n,branch:o};if(i&&(e=t.coercer(e,s),a&&t.type!=="type"&&fi(t.schema)&&fi(e)&&!Array.isArray(e)))for(const c in e)t.schema[c]===void 0&&delete e[c];let l="valid";for(const c of t.validator(e,s))c.explanation=r.message,l="not_valid",yield[c,void 0];for(let[c,u,d]of t.entries(e,s)){const f=bm(u,d,{path:c===void 0?n:[...n,c],branch:c===void 0?o:[...o,u],coerce:i,mask:a,message:r.message});for(const h of f)h[0]?(l=h[0].refinement!=null?"not_refined":"not_valid",yield[h[0],void 0]):i&&(u=h[1],c===void 0?e=u:e instanceof Map?e.set(c,u):e instanceof Set?e.add(u):fi(e)&&(u!==void 0||c in e)&&(e[c]=u))}if(l!=="not_valid")for(const c of t.refiner(e,s))c.explanation=r.message,l="not_refined",yield[c,void 0];l==="valid"&&(yield[void 0,e])}class ym{constructor(t){const{type:r,schema:n,validator:o,refiner:i,coercer:a=l=>l,entries:s=function*(){}}=t;this.type=r,this.schema=n,this.entries=s,this.coercer=a,o?this.validator=(l,c)=>{const u=o(l,c);return Us(u,c,this,l)}:this.validator=()=>[],i?this.refiner=(l,c)=>{const u=i(l,c);return Us(u,c,this,l)}:this.refiner=()=>[]}assert(t,r){return cA(t,this,r)}create(t,r){return uA(t,this,r)}is(t){return fA(t,this)}mask(t,r){return dA(t,this,r)}validate(t,r={}){return To(t,this,r)}}function cA(e,t,r){const n=To(e,t,{message:r});if(n[0])throw n[0]}function uA(e,t,r){const n=To(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function dA(e,t,r){const n=To(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function fA(e,t){return!To(e,t)[0]}function To(e,t,r={}){const n=bm(e,t,r),o=sA(n);return o[0]?[new iA(o[0],function*(){for(const a of n)a[0]&&(yield a[0])}),void 0]:[void 0,o[1]]}function hA(e,t){return new ym({type:e,schema:null,validator:t})}function ca(){return hA("string",e=>typeof e=="string"||`Expected a string, but received: ${vm(e)}`)}function ua(e,t){return pA(e,"pattern",r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`)}function pA(e,t,r){return new ym({...e,*refiner(n,o){yield*e.refiner(n,o);const i=r(n,o),a=Us(i,o,e,n);for(const s of a)yield{...s,refinement:t}}})}function mA(e){var t,r;return typeof((r=(t=e==null?void 0:e.prototype)==null?void 0:t.constructor)==null?void 0:r.name)=="string"}function gA(e,t){return mA(e)?new e({message:t}):e({message:t})}var vA=class extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}};function Xl(e,t="Assertion failed.",r=vA){if(!e)throw t instanceof Error?t:gA(r,t)}/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function bA(...e){const t=(o,i)=>a=>o(i(a)),r=Array.from(e).reverse().reduce((o,i)=>o?t(o,i.encode):i.encode,void 0),n=e.reduce((o,i)=>o?t(o,i.decode):i.decode,void 0);return{encode:r,decode:n}}function yA(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return t.map(r=>{if(r<0||r>=e.length)throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${e.length})`);return e[r]})},decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("alphabet.decode input should be array of strings");return t.map(r=>{if(typeof r!="string")throw new Error(`alphabet.decode: not string element=${r}`);const n=e.indexOf(r);if(n===-1)throw new Error(`Unknown letter: "${r}". Allowed: ${e}`);return n})}}}function xA(e=""){if(typeof e!="string")throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!="string")throw new Error("join.encode input should be array of strings");for(let r of t)if(typeof r!="string")throw new Error(`join.encode: non-string input=${r}`);return t.join(e)},decode:t=>{if(typeof t!="string")throw new Error("join.decode input should be string");return t.split(e)}}}function SA(e,t="="){if(typeof t!="string")throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&typeof r[0]!="string")throw new Error("padding.encode input should be array of strings");for(let n of r)if(typeof n!="string")throw new Error(`padding.encode: non-string input=${n}`);for(;r.length*e%8;)r.push(t);return r},decode(r){if(!Array.isArray(r)||r.length&&typeof r[0]!="string")throw new Error("padding.encode input should be array of strings");for(let o of r)if(typeof o!="string")throw new Error(`padding.decode: non-string input=${o}`);let n=r.length;if(n*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if(!((n-1)*e%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,n)}}}const xm=(e,t)=>t?xm(t,e%t):e,ji=(e,t)=>e+(t-xm(e,t));function Ld(e,t,r,n){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(ji(t,r)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${ji(t,r)}`);let o=0,i=0;const a=2**r-1,s=[];for(const l of e){if(l>=2**t)throw new Error(`convertRadix2: invalid data word=${l} from=${t}`);if(o=o<32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=r;i-=r)s.push((o>>i-r&a)>>>0);o&=2**i-1}if(o=o<=t)throw new Error("Excess padding");if(!n&&o)throw new Error(`Non-zero padding: ${o}`);return n&&i>0&&s.push(o>>>0),s}function wA(e,t=!1){if(e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(ji(8,e)>32||ji(e,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!(r instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Ld(Array.from(r),8,e,!t)},decode:r=>{if(!Array.isArray(r)||r.length&&typeof r[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Ld(r,e,8,t))}}}const kA=bA(wA(6),yA("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),SA(6),xA(""));function CA(e){return e instanceof Uint8Array}function _A(e){Xl(CA(e),"Value must be a Uint8Array.")}function Sm(e){return _A(e),kA.encode(e)}function wm(e){return Xl(typeof e=="string","Value must be a string."),new TextEncoder().encode(e)}ua(ca(),/^(?:0x)?[0-9a-f]+$/iu);ua(ca(),/^0x[0-9a-f]+$/iu);ua(ca(),/^0x[0-9a-f]{40}$/u);ua(ca(),/^0x[0-9a-fA-F]{40}$/u);function km(e){return Hs(e.props,"children")}function PA(e){return!!e&&e!==!0}function TA(e){if(km(e)){if(Array.isArray(e.props.children))return e.props.children.filter(PA).flat(1/0);if(e.props.children)return[e.props.children]}return[]}function qs(e,t,r=0){if(Array.isArray(e)){for(const o of e){const i=qs(o,t,r);if(i!==void 0)return i}return}const n=t(e,r);if(n!==void 0)return n;if(km(e)){const o=TA(e);for(const i of o)if(oA(i)){const a=qs(i,t,r+1);if(a!==void 0)return a}}}function $A(e){return qs(e,r=>{if(r.type==="Footer")return r})}var AA=({children:e,Renderer:t})=>{const r=$A(e);return p.jsxs(Xt,{direction:"column",width:"360px",height:"600px",background:"background.alternative",boxShadow:"md",children:[p.jsx(tA,{}),p.jsx(nA,{children:p.jsx(t,{id:"extension",element:e,overrides:{Footer:()=>null}})}),r&&p.jsx(t,{id:"footer",element:r})]})},EA=({colorMode:e})=>{const{setColorMode:t}=Ki();return v.useEffect(()=>{t(e)},[e,t]),null},RA=kt({displayName:"DangerIcon",viewBox:"0 0 512 512",d:"m443 342l-126-241c-16-32-40-50-65-50-26 0-50 18-66 50l-126 241c-16 30-18 60-5 83 13 23 38 36 71 36l251 0c33 0 58-13 71-36 13-23 11-53-5-83z m-206-145c0-8 6-15 15-15 8 0 14 7 14 15l0 105c0 8-6 15-14 15-9 0-15-7-15-15z m28 182c-1 1-2 2-3 3-1 0-2 1-3 1-1 1-2 1-4 2-1 0-2 0-3 0-2 0-3 0-4 0-2-1-3-1-4-2-1 0-2-1-3-1-1-1-2-2-3-3-4-4-6-9-6-15 0-5 2-11 6-15 1 0 2-1 3-2 1-1 2-2 3-2 1-1 2-1 4-1 2-1 5-1 7 0 2 0 3 0 4 1 1 0 2 1 3 2 1 1 2 2 3 2 4 4 6 10 6 15 0 6-2 11-6 15z",defaultProps:{width:"12px",height:"12px"}}),jA=kt({displayName:"QuestionIcon",viewBox:"0 0 512 512",d:"m456 256c0 113-91 205-204 205-114 0-205-92-205-205 0-113 91-205 205-205 113 0 204 92 204 205z m-204-108c-33 0-63 24-63 58 0 9 8 17 17 17 9 0 17-8 17-17 0-12 11-24 29-24 17 0 28 12 28 24 0 6-4 11-14 17l0 0c-12 8-32 21-32 48l0 5c0 9 8 17 18 17 9 0 17-8 17-17l0-5c0-7 3-12 15-19 11-7 30-20 30-46 0-34-30-58-62-58z m-1 170c-9 0-17 7-17 17 0 9 8 17 17 17l1 0c9 0 17-8 17-17 0-10-8-17-17-17z",defaultProps:{width:"16px",height:"16px"}}),MA=kt({displayName:"WarningIcon",viewBox:"0 0 512 512",d:"m252 51c-113 0-205 92-205 205 0 113 92 205 205 205 112 0 204-92 204-205 0-113-92-205-204-205z m-16 123c0-8 7-15 16-15 8 0 15 7 15 15l0 102c0 9-7 16-15 16-9 0-16-7-16-16z m34 172c-1 2-2 4-4 6-2 2-4 4-7 5-2 1-5 1-7 1-3 0-6 0-8-1-3-1-5-3-7-5-2-2-3-4-4-6-1-3-2-5-2-8 0-3 1-5 2-8 1-2 2-5 4-7 2-1 4-3 7-4 5-2 10-2 15 0 3 1 5 3 7 4 2 2 3 5 4 7 1 3 2 5 2 8 0 3-1 5-2 8z",defaultProps:{width:"16px",height:"16px"}});function zA(e){switch(e){case"warning":return p.jsx(MA,{});case"critical":return p.jsx(RA,{});default:return p.jsx(jA,{color:"icon.muted"})}}var IA=({tooltip:e,variant:t})=>e?p.jsx(po,{label:e,placement:"bottom",children:zA(t)}):null,BA=({label:e,variant:t="default",tooltip:r,children:n,Renderer:o})=>{const i=et("Row",{variant:t});return p.jsxs(Te,{__css:i,children:[p.jsxs(Xt,{alignItems:"center",gap:"1",children:[p.jsx(rt,{fontWeight:"500",children:e}),p.jsx(IA,{tooltip:r,variant:t})]}),p.jsx(o,{id:"row",element:n})]})},OA={baseStyle:{display:"flex",gap:"1",justifyContent:"space-between",borderRadius:"lg",paddingY:"px"},variants:{default:{flexDirection:"row"},warning:{color:"warning.default",background:"warning.muted",paddingX:"2"},critical:{color:"error.default",background:"error.muted",paddingX:"2"}}},FA=Object.defineProperty,ye=(e,t)=>{for(var r in t)FA(e,r,{get:t[r],enumerable:!0})},Cm={};ye(Cm,{Component:()=>BA,styles:()=>OA});var DA=({children:e,Renderer:t})=>p.jsx(rt,{children:p.jsx(t,{id:"text",element:e})}),VA={baseStyle:{fontSize:"inherit",lineHeight:"short"}},_m={};ye(_m,{Component:()=>DA,styles:()=>VA});var LA=({content:e,children:t,Renderer:r})=>p.jsx(po,{hasArrow:!0,label:p.jsx(r,{id:"tooltip",element:e}),children:p.jsx(Te,{width:"fit-content",children:p.jsx(r,{id:"text",element:t})})}),NA=I("popper-arrow-bg"),WA={baseStyle:{background:"background.default",color:"text.default",boxShadow:"md",[NA.variable]:"colors.background.default"},sizes:{sm:{fontSize:"xs",fontWeight:"normal",lineHeight:"short"}},defaultProps:{size:"sm"}},Pm={};ye(Pm,{Component:()=>LA,styles:()=>WA});function HA(e){return`data:image/svg+xml;base64,${Sm(wm(e))}`}var UA=({src:e,alt:t})=>p.jsx(Fl,{src:HA(e),alt:t}),Tm={};ye(Tm,{Component:()=>UA});var qA=({name:e,type:t,value:r,placeholder:n})=>p.jsx(Ll,{name:e,type:t,defaultValue:r,placeholder:n}),{definePartsStyle:Nd,defineMultiStyleConfig:GA}=Q(Ff.keys),KA=GA({baseStyle:Nd({field:{color:"text.default",fontSize:"sm",paddingX:"4",paddingY:"2"}}),variants:{outline:Nd({field:{background:"background.default",borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:"base",_focus:{outline:"5px auto",outlineColor:"primary.default",outlineOffset:"0"},_placeholder:{color:"text.alternative"},_invalid:{borderColor:"error.default",boxShadow:"none"}}})},defaultProps:{variant:"outline"}}),$m={};ye($m,{Component:()=>qA,styles:()=>KA});var XA=({children:e,Renderer:t})=>p.jsx("i",{children:p.jsx(t,{id:"italic",element:e})}),Am={};ye(Am,{Component:()=>XA});var YA=kt({displayName:"ExportIcon",viewBox:"0 0 512 512",d:"m313 469l-114 0c-108 0-156-48-156-156l0-114c0-108 48-156 156-156l39 0c13 0 23 9 23 23 0 13-10 23-23 23l-39 0c-83 0-110 27-110 110l0 114c0 83 27 110 110 110l114 0c83 0 110-27 110-110l0-39c0-13 10-23 23-23 14 0 23 10 23 23l0 39c0 108-48 156-156 156z m-39-208c-7 0-11-3-16-7-9-9-9-23 0-32l133-133-36 0c-14 0-23-10-23-23 0-14 9-23 23-23l91 0c14 0 23 9 23 23l0 91c0 14-9 23-23 23-13 0-23-9-23-23l0-36-133 133c-4 4-9 7-16 7z",defaultProps:{width:"14px",height:"14px"}}),ZA=({href:e,children:t,Renderer:r})=>p.jsxs(Qp,{target:"_blank",href:e,children:[p.jsx(r,{id:"link",element:t}),p.jsx(YA,{})]}),JA={baseStyle:{color:"primary.default",display:"inline-flex",alignItems:"center",gap:"1"}},Em={};ye(Em,{Component:()=>ZA,styles:()=>JA});var QA=({value:e,children:t})=>p.jsx("option",{value:e,children:t}),Rm={};ye(Rm,{Component:()=>QA});var e4=({element:e,Renderer:t})=>{const r=v.useRef(null),[n,o]=v.useState(0);if(v.useEffect(()=>{r.current&&o(r.current.offsetWidth)},[e,r]),Array.isArray(e)){const[i,a]=e;return p.jsxs(Zp,{sx:{input:{paddingRight:`${n}px`}},children:[p.jsx(t,{id:"field-input",element:i}),p.jsx(Vl,{ref:r,width:"auto",paddingX:"4",children:p.jsx(t,{id:"field-button",element:a})})]})}return p.jsx(t,{id:"field-input",element:e})},t4=({label:e,error:t,children:r,Renderer:n})=>p.jsxs(Np,{isInvalid:!!t,children:[p.jsx(Hp,{children:e}),p.jsx(e4,{element:r,Renderer:n}),t&&p.jsx(Wp,{children:t})]}),{definePartsStyle:r4,defineMultiStyleConfig:n4}=Q(Bf.keys),{definePartsStyle:o4,defineMultiStyleConfig:i4}=Q(Of.keys),a4={FormControl:n4({baseStyle:r4({helperText:{color:"error.default",marginTop:"1",fontSize:"2xs"}})}),FormError:i4({baseStyle:o4({text:{color:"error.default",fontSize:"2xs",marginTop:"1"}})}),FormLabel:{baseStyle:{color:"text.default",fontSize:"sm",marginBottom:"0"}}},jm={};ye(jm,{Component:()=>t4,styles:()=>a4});var s4=kt({displayName:"ImportIcon",viewBox:"0 0 512 512",d:"m256 64c10 0 18 8 18 18l0 207 30-30c7-7 19-7 26 0 7 7 7 19 0 26l-61 60c-7 7-19 7-26 0l-61-60c-7-7-7-19 0-26 7-7 19-7 26 0l30 30 0-207c0-10 8-18 18-18z m63 140c1-10 10-18 20-17 35 3 64 14 83 37 19 23 26 54 26 92l0 2c0 42-8 76-32 99-23 23-58 31-101 31l-118 0c-43 0-78-8-101-31-24-23-32-57-32-99l0-2c0-38 7-69 25-91 19-23 48-34 83-38 10 0 19 7 20 17 0 9-7 18-17 19-29 3-47 11-57 24-11 13-17 35-17 69l0 2c0 38 7 61 21 74 13 13 36 20 75 20l118 0c39 0 62-7 75-20 14-13 21-36 21-74l0-2c0-35-6-56-17-69-11-13-28-22-58-24-10-1-18-10-17-19z",defaultProps:{width:"20px",height:"20px"}}),l4=({name:e,accept:t,compact:r})=>{const n=et("FileInput",{variant:r?"compact":"default"}),o=v.useRef(null),[i,a]=v.useState(!1),[s,l]=v.useState(null),c=()=>{var g;(g=o.current)==null||g.click()},u=g=>{var y;const b=((y=g.target.files)==null?void 0:y[0])??null;l((b==null?void 0:b.name)??null)},d=g=>{g.preventDefault(),a(!0)},f=g=>{g.preventDefault(),a(!1)},h=g=>{var y,k;g.preventDefault(),a(!1);const b=((k=(y=g.dataTransfer)==null?void 0:y.files)==null?void 0:k[0])??null;l((b==null?void 0:b.name)??null)};return p.jsxs(Te,{__css:n,"data-active":pu(i),"data-selected":pu(!!s),onClick:c,onDragOver:d,onDragLeave:f,onDrop:h,children:[p.jsx("input",{ref:o,type:"file",name:e,onChange:u,accept:t==null?void 0:t.join(","),hidden:!0}),p.jsx(s4,{}),!r&&(s?p.jsx(rt,{isTruncated:!0,children:s}):p.jsx(rt,{children:"Drop your file here"}))]})},c4={baseStyle:{cursor:"pointer",background:"background.alternative",borderRadius:"lg",border:"1px solid",borderColor:"border.default",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"4",gap:"1",textAlign:"center",color:"icon.alternative",fontWeight:"500",_active:{backgroundColor:"background.alternativeHover",color:"primary.default"},_selected:{color:"text.default"}},variants:{compact:{width:"fit-content",height:"fit-content",padding:"1",_selected:{color:"icon.alternative"}}}},Mm={};ye(Mm,{Component:()=>l4,styles:()=>c4});var Wd=({children:e,Renderer:t})=>p.jsx(ko,{flexBasis:0,flexGrow:1,maxWidth:"auto",variant:"solid",size:"large",children:p.jsx(t,{id:"button",element:e})}),u4=e=>p.jsx(ko,{flexBasis:0,flexGrow:1,maxWidth:"auto",size:"large",...e,children:"Cancel"}),d4=({children:e,Renderer:t})=>Array.isArray(e)?p.jsx(t,{id:"footer",element:e,overrides:{Button:Wd}}):p.jsxs(p.Fragment,{children:[p.jsx(u4,{}),p.jsx(t,{id:"footer",element:e,overrides:{Button:Wd}})]}),f4=e=>p.jsx(Te,{padding:"4",gap:"2",display:"flex",background:"background.default",marginTop:"auto",boxShadow:"md",clipPath:"inset(-16px 0px 0px 0px)",children:p.jsx(d4,{...e})}),zm={};ye(zm,{Component:()=>f4});var h4=({name:e,children:t,Renderer:r})=>p.jsx(Xt,{as:"form",direction:"column",name:e,gap:"2",children:p.jsx(r,{id:"form",element:t})}),Im={};ye(Im,{Component:()=>h4});var p4=({children:e,Renderer:t})=>p.jsx(Ei,{children:p.jsx(t,{id:"heading",element:e})}),m4={baseStyle:{color:"text.default",fontWeight:"700"},sizes:{md:{fontSize:"md",lineHeight:"base"}},defaultProps:{size:"md"}},Bm={};ye(Bm,{Component:()=>p4,styles:()=>m4});var g4=kt({displayName:"CheckBoldIcon",viewBox:"0 0 512 512",d:"m412 145c12 12 12 32 0 45l-185 183c-12 12-32 12-45 0l-81-80c-13-13-13-33 0-46 12-12 32-12 45 0l59 58 161-161c13-12 33-12 46 1z",defaultProps:{width:"20px",height:"20px"}}),v4=({name:e,checked:t,label:r,variant:n})=>n==="toggle"?p.jsx(gm,{name:e,defaultChecked:t,children:r}):p.jsx(Xp,{name:e,defaultChecked:t,icon:p.jsx(g4,{}),iconSize:"20px",children:r}),{definePartsStyle:Hd,defineMultiStyleConfig:b4}=Q(If.keys),{definePartsStyle:Ud,defineMultiStyleConfig:y4}=Q(Vf.keys),x4=I("switch-track-width"),S4=I("switch-track-height"),w4={Checkbox:b4({baseStyle:Hd({control:{borderColor:"border.default",borderRadius:"base",_hover:{background:"background.defaultHover",color:"background.defaultHover"},_focus:{borderColor:"primary.default"},_checked:{background:"primary.default",borderColor:"primary.default",_hover:{background:"primary.alternative",borderColor:"primary.alternative"}}},label:{fontSize:"sm"}}),sizes:{md:Hd({control:{width:"20px",height:"20px"},label:{fontSize:"sm"}})},defaultProps:{size:"md"}}),Switch:y4({baseStyle:Ud({container:{display:"flex",alignItems:"center"},track:{_checked:{background:"primary.default"}}}),sizes:{md:Ud({container:{[x4.variable]:"32px",[S4.variable]:"18px"},track:{padding:"1"},thumb:{width:"18px",height:"18px"},label:{fontSize:"sm"}})},defaultProps:{size:"md"}})},Om={};ye(Om,{Component:()=>v4,styles:()=>w4});var k4=({children:e,Renderer:t})=>p.jsx(Te,{children:p.jsx(t,{id:"container",element:e})}),Fm={};ye(Fm,{Component:()=>k4});var C4=kt({displayName:"CopyIcon",viewBox:"0 0 512 512",d:"m333 274l0 86c0 72-28 101-100 101l-86 0c-72 0-100-29-100-101l0-86c0-71 28-100 100-100l86 0c72 0 100 29 100 100z m23-223l-86 0c-63 0-93 23-99 77-1 11 8 20 20 20l42 0c86 0 126 40 126 126l0 43c0 11 9 21 21 19 54-6 76-35 76-98l0-86c0-72-28-101-100-101z",defaultProps:{width:"16px",height:"16px"}}),_4=kt({displayName:"CopySuccessIcon",viewBox:"0 0 512 512",d:"m356 51l-86 0c-63 0-93 23-99 77-1 11 8 20 20 20l42 0c86 0 126 40 126 126l0 43c0 11 9 21 21 19 54-6 76-35 76-98l0-86c0-72-28-101-100-101z m-123 123l-86 0c-72 0-100 29-100 100l0 86c0 72 28 101 100 101l86 0c72 0 100-29 100-101l0-86c0-71-28-100-100-100z m24 116l-76 76c-2 3-6 4-10 4-4 0-8-1-10-4l-39-38c-5-6-5-15 0-21 6-6 15-6 21 0l28 28 66-66c5-6 15-6 20 0 6 6 6 15 0 21z",defaultProps:{width:"16px",height:"16px"}}),P4=({value:e})=>{const[t,r]=v.useState(!1);v.useEffect(()=>{if(t){const o=setTimeout(()=>{r(!1)},2e3);return()=>clearTimeout(o)}},[t]);const n=()=>{navigator.clipboard.writeText(e).then(()=>{r(!0)}).catch(()=>{})};return p.jsx(Te,{cursor:"pointer",onClick:n,children:t?p.jsx(_4,{}):p.jsx(C4,{})})},T4=()=>{const e=v.useRef(null),[t,r]=v.useState(!1);return v.useEffect(()=>{e.current&&r(e.current.offsetHeight{const{contentRef:o,isOverflow:i}=T4();return p.jsxs(Te,{ref:o,position:"relative",maxHeight:t?"none":"5.5rem",overflow:"hidden",children:[e,i&&!t&&p.jsx(Te,{position:"absolute",bottom:"0",right:"0",bgGradient:"linear-gradient(90deg, transparent 0%, background.default 33%)",children:p.jsx(ko,{paddingLeft:"8",bgGradient:$4(r),color:"inherit",lineHeight:"inherit",verticalAlign:"baseline",...n,children:"more"})})]})},E4=kt({displayName:"EyeIcon",viewBox:"0 0 512 512",d:"m441 198c-47-75-117-118-189-118-37 0-72 11-105 31-32 20-61 49-85 87-20 32-20 84 0 116 47 75 117 117 190 117 36 0 71-10 104-30 32-20 61-50 85-87 20-32 20-84 0-116z m-189 141c-46 0-83-37-83-83 0-46 37-83 83-83 45 0 82 37 82 83 0 46-37 83-82 83z m0-142c-33 0-59 27-59 59 0 32 26 58 59 58 32 0 58-26 58-58 0-32-26-59-58-59z",defaultProps:{width:"20px",height:"20px"}}),R4=kt({displayName:"EyeSlashIcon",viewBox:"0 0 512 512",d:"m454 196c-7-10-13-19-20-28-8-10-23-11-32-2l-64 64c5 14 6 31 2 48-8 30-32 54-62 61-17 5-33 4-47-1 0 0-31 31-53 53-11 10-7 29 7 35 23 8 47 13 71 13 38 0 75-11 108-32 35-21 66-53 91-93 20-32 19-86-1-118z m-137 60c0 33-27 61-61 61-1 0-2 0-4 0l64-65c1 2 1 3 1 4z m-258 61c-22-34-22-88 0-122 24-39 55-69 88-90 34-21 71-32 109-32 42 0 83 14 120 40l65-65c6-7 17-7 23 0 7 6 7 16 0 23l-393 393c-4 4-8 5-12 5-4 0-8-1-11-4-7-7-7-17 0-24l62-62c-19-18-36-39-51-62z m136-61c0-33 27-61 61-61 11 0 21 3 30 8l18-19c-14-9-30-14-48-14-48 0-86 38-86 86 0 18 5 35 14 48l19-18c-5-9-8-19-8-30z",defaultProps:{width:"20px",height:"20px"}}),qd=({isRevealed:e,onHide:t})=>e?p.jsx(po,{label:"Hide sensitive content",children:p.jsx(R4,{onClick:t,cursor:"pointer"})}):p.jsx(po,{label:"Do not share this with anyone",children:p.jsx(E4,{})}),j4=({sensitive:e,value:t})=>{const[r,n]=v.useState(!1),[o,i]=v.useState(!1),a=et("Copyable",{variant:o&&e?"sensitive":"default"}),s=()=>{n(!0)},l=()=>{i(!0)},c=()=>{n(!1),i(!1)};return e&&!o?p.jsxs(Te,{__css:a,cursor:"pointer",onClick:l,children:[p.jsx(qd,{isRevealed:o,onHide:c}),p.jsx(rt,{flexGrow:1,children:"Reveal sensitive content"})]}):p.jsxs(Te,{__css:a,children:[e&&p.jsx(qd,{isRevealed:o,onHide:c}),p.jsx(Te,{width:"100%",flexGrow:1,position:"relative",children:p.jsx(A4,{onClick:s,isExpanded:r,sensitive:e,children:p.jsx(rt,{fontSize:"inherit",color:"inherit",wordBreak:"break-all",children:t})})}),p.jsx(P4,{value:t})]})},M4={baseStyle:{display:"flex",gap:"2",justifyContent:"space-between",borderRadius:"lg",padding:"2",fontSize:"sm",color:"text.alternative",background:"background.alternative",overflowY:"hidden"},variants:{sensitive:{color:"error.default",background:"error.muted"}}},Dm={};ye(Dm,{Component:()=>j4,styles:()=>M4});var z4=()=>p.jsx(tm,{}),I4={baseStyle:{borderColor:"border.default"}},Vm={};ye(Vm,{Component:()=>z4,styles:()=>I4});var B4=kt({displayName:"ArrowDown",viewBox:"0 0 512 512",d:"m256 363c-17 0-32-7-45-21l-141-150c-8-10-8-26 0-36 9-9 22-9 31 0l140 153c9 9 21 9 30 0l140-153c9-9 22-9 31 0 8 10 8 24 0 33l-141 153c-13 14-28 21-45 21z",defaultProps:{width:"16px",height:"16px"}}),O4=({name:e,value:t,children:r,Renderer:n})=>p.jsx(fm,{defaultValue:t,name:e,iconSize:"16px",icon:p.jsx(B4,{}),children:p.jsx(n,{id:"dropdown",element:r})}),{definePartsStyle:Gd,defineMultiStyleConfig:F4}=Q(Df.keys),D4={Select:F4({baseStyle:Gd({field:{color:"text.default",fontSize:"sm",paddingX:"4",paddingY:"2"}}),variants:{outline:Gd({field:{background:"background.default",border:"1px solid",borderColor:"border.default",_focus:{outline:"5px auto",outlineColor:"primary.default",outlineOffset:"0"},_placeholder:{color:"text.alternative"},_invalid:{borderColor:"error.default",boxShadow:"none"}}})}}),defaultProps:{variant:"outline"}},Lm={};ye(Lm,{Component:()=>O4,styles:()=>D4});var Yt=function(e){e==null&&(e=new Date().getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};Yt.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};Yt.prototype.init_by_array=function(e,t){var r,n,o;for(this.init_seed(19650218),r=1,n=0,o=this.N>t?this.N:t;o;o--){var i=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(((i&4294901760)>>>16)*1664525<<16)+(i&65535)*1664525)+e[n]+n,this.mt[r]>>>=0,r++,n++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1),n>=t&&(n=0)}for(o=this.N-1;o;o--){var i=this.mt[r-1]^this.mt[r-1]>>>30;this.mt[r]=(this.mt[r]^(((i&4294901760)>>>16)*1566083941<<16)+(i&65535)*1566083941)-r,this.mt[r]>>>=0,r++,r>=this.N&&(this.mt[0]=this.mt[this.N-1],r=1)}this.mt[0]=2147483648};Yt.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var r;for(this.mti==this.N+1&&this.init_seed(5489),r=0;r>>1^t[e&1];for(;r>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};Yt.prototype.random_int31=function(){return this.random_int()>>>1};Yt.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};Yt.prototype.random=function(){return this.random_int()*(1/4294967296)};Yt.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};Yt.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var V4=Yt;function L4(e,t){var r=document.createElement("div");return r.style.borderRadius="50px",r.style.overflow="hidden",r.style.padding="0px",r.style.margin="0px",r.style.width=""+e+"px",r.style.height=""+e+"px",r.style.display="inline-block",r.style.background=t,{container:r}}var N4=L4,Nm={exports:{}};(function(e){var t=function(){function r(l,c,u,d){typeof c=="object"&&(u=c.depth,d=c.prototype,c.filter,c=c.circular);var f=[],h=[],g=typeof Cn<"u";typeof c>"u"&&(c=!0),typeof u>"u"&&(u=1/0);function b(y,k){if(y===null)return null;if(k==0)return y;var x,C;if(typeof y!="object")return y;if(r.__isArray(y))x=[];else if(r.__isRegExp(y))x=new RegExp(y.source,s(y)),y.lastIndex&&(x.lastIndex=y.lastIndex);else if(r.__isDate(y))x=new Date(y.getTime());else{if(g&&Cn.isBuffer(y))return Cn.allocUnsafe?x=Cn.allocUnsafe(y.length):x=new Cn(y.length),y.copy(x),x;typeof d>"u"?(C=Object.getPrototypeOf(y),x=Object.create(C)):(x=Object.create(d),C=d)}if(c){var P=f.indexOf(y);if(P!=-1)return h[P];f.push(y),h.push(x)}for(var $ in y){var A;C&&(A=Object.getOwnPropertyDescriptor(C,$)),!(A&&A.set==null)&&(x[$]=b(y[$],k-1))}return x}return b(l,u)}r.clonePrototype=function(c){if(c===null)return null;var u=function(){};return u.prototype=c,new u};function n(l){return Object.prototype.toString.call(l)}r.__objToStr=n;function o(l){return typeof l=="object"&&n(l)==="[object Date]"}r.__isDate=o;function i(l){return typeof l=="object"&&n(l)==="[object Array]"}r.__isArray=i;function a(l){return typeof l=="object"&&n(l)==="[object RegExp]"}r.__isRegExp=a;function s(l){var c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),c}return r.__getRegExpFlags=s,r}();e.exports&&(e.exports=t)})(Nm);var W4=Nm.exports,Wm={exports:{}},H4={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Rr=H4,Hm={};for(var os in Rr)Rr.hasOwnProperty(os)&&(Hm[Rr[os]]=os);var z=Wm.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var Ke in z)if(z.hasOwnProperty(Ke)){if(!("channels"in z[Ke]))throw new Error("missing channels property: "+Ke);if(!("labels"in z[Ke]))throw new Error("missing channel labels property: "+Ke);if(z[Ke].labels.length!==z[Ke].channels)throw new Error("channel and label counts mismatch: "+Ke);var U4=z[Ke].channels,q4=z[Ke].labels;delete z[Ke].channels,delete z[Ke].labels,Object.defineProperty(z[Ke],"channels",{value:U4}),Object.defineProperty(z[Ke],"labels",{value:q4})}z.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=i-o,s,l,c;return i===o?s=0:t===i?s=(r-n)/a:r===i?s=2+(n-t)/a:n===i&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360),c=(o+i)/2,i===o?l=0:c<=.5?l=a/(i+o):l=a/(2-i-o),[s,l*100,c*100]};z.rgb.hsv=function(e){var t,r,n,o,i,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(f){return(c-f)/6/u+1/2};return u===0?o=i=0:(i=u/c,t=d(a),r=d(s),n=d(l),a===c?o=n-r:s===c?o=1/3+t-n:l===c&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,i*100,c*100]};z.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],o=z.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,i*100,n*100]};z.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,o,i,a,s;return s=Math.min(1-t,1-r,1-n),o=(1-t-s)/(1-s)||0,i=(1-r-s)/(1-s)||0,a=(1-n-s)/(1-s)||0,[o*100,i*100,a*100,s*100]};function G4(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}z.rgb.keyword=function(e){var t=Hm[e];if(t)return t;var r=1/0,n;for(var o in Rr)if(Rr.hasOwnProperty(o)){var i=Rr[o],a=G4(e,i);a.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var o=t*.4124+r*.3576+n*.1805,i=t*.2126+r*.7152+n*.0722,a=t*.0193+r*.1192+n*.9505;return[o*100,i*100,a*100]};z.rgb.lab=function(e){var t=z.rgb.xyz(e),r=t[0],n=t[1],o=t[2],i,a,s;return r/=95.047,n/=100,o/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,i=116*n-16,a=500*(r-n),s=200*(n-o),[i,a,s]};z.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,o,i,a,s,l;if(r===0)return l=n*255,[l,l,l];n<.5?i=n*(1+r):i=n+r-n*r,o=2*n-i,s=[0,0,0];for(var c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?l=o+(i-o)*6*a:2*a<1?l=i:3*a<2?l=o+(i-o)*(2/3-a)*6:l=o,s[c]=l*255;return s};z.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=r,i=Math.max(n,.01),a,s;return n*=2,r*=n<=1?n:2-n,o*=i<=1?i:2-i,s=(n+r)/2,a=n===0?2*o/(i+o):2*r/(n+r),[t,a*100,s*100]};z.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,i=t-Math.floor(t),a=255*n*(1-r),s=255*n*(1-r*i),l=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}};z.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01),i,a,s;return s=(2-r)*n,i=(2-r)*o,a=r*o,a/=i<=1?i:2-i,a=a||0,s/=2,[t,a*100,s*100]};z.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,o=r+n,i,a,s,l;o>1&&(r/=o,n/=o),i=Math.floor(6*t),a=1-n,s=6*t-i,i&1&&(s=1-s),l=r+s*(a-r);var c,u,d;switch(i){default:case 6:case 0:c=a,u=l,d=r;break;case 1:c=l,u=a,d=r;break;case 2:c=r,u=a,d=l;break;case 3:c=r,u=l,d=a;break;case 4:c=l,u=r,d=a;break;case 5:c=a,u=r,d=l;break}return[c*255,u*255,d*255]};z.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,i,a,s;return i=1-Math.min(1,t*(1-o)+o),a=1-Math.min(1,r*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),[i*255,a*255,s*255]};z.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,o,i,a;return o=t*3.2406+r*-1.5372+n*-.4986,i=t*-.9689+r*1.8758+n*.0415,a=t*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[o*255,i*255,a*255]};z.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],o,i,a;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,o=116*r-16,i=500*(t-r),a=200*(r-n),[o,i,a]};z.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],o,i,a;i=(t+16)/116,o=r/500+i,a=i-n/200;var s=Math.pow(i,3),l=Math.pow(o,3),c=Math.pow(a,3);return i=s>.008856?s:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a=c>.008856?c:(a-16/116)/7.787,o*=95.047,i*=100,a*=108.883,[o,i,a]};z.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],o,i,a;return o=Math.atan2(n,r),i=o*360/2/Math.PI,i<0&&(i+=360),a=Math.sqrt(r*r+n*n),[t,a,i]};z.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],o,i,a;return a=n/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a),[t,o,i]};z.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],o=1 in arguments?arguments[1]:z.rgb.hsv(e)[2];if(o=Math.round(o/50),o===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return o===2&&(i+=60),i};z.hsv.ansi16=function(e){return z.rgb.ansi16(z.hsv.rgb(e),e[2])};z.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var o=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return o};z.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,o=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[n,o,i]};z.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,o=Math.floor((r=e%36)/6)/5*255,i=r%6/5*255;return[n,o,i]};z.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};z.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(s){return s+s}).join(""));var n=parseInt(r,16),o=n>>16&255,i=n>>8&255,a=n&255;return[o,i,a]};z.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),a=o-i,s,l;return a<1?s=i/(1-a):s=0,a<=0?l=0:o===t?l=(r-n)/a%6:o===r?l=2+(n-t)/a:l=4+(t-r)/a+4,l/=6,l%=1,[l*360,a*100,s*100]};z.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,o=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]};z.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]};z.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var o=[0,0,0],i=t%1*6,a=i%1,s=1-a,l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-r)*n,[(r*o[0]+l)*255,(r*o[1]+l)*255,(r*o[2]+l)*255]};z.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]};z.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]};z.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};z.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,o=n-t,i=0;return o<1&&(i=(n-o)/(1-o)),[e[0],o*100,i*100]};z.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};z.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};z.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};z.gray.hsl=z.gray.hsv=function(e){return[0,0,e[0]]};z.gray.hwb=function(e){return[0,100,e[0]]};z.gray.cmyk=function(e){return[0,0,0,e[0]]};z.gray.lab=function(e){return[e[0],0,0]};z.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};z.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var Um=Wm.exports,Mi=Um;function K4(){for(var e={},t=Object.keys(Mi),r=t.length,n=0;n1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function r6(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var o=n.length,i=0;ir?(t+.05)/(r+.05):(r+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb,t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){return this.values.hsl[2]+=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},darken:function(e){return this.values.hsl[2]-=this.values.hsl[2]*e,this.setValues("hsl",this.values.hsl),this},saturate:function(e){return this.values.hsl[1]+=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},desaturate:function(e){return this.values.hsl[1]-=this.values.hsl[1]*e,this.setValues("hsl",this.values.hsl),this},whiten:function(e){return this.values.hwb[1]+=this.values.hwb[1]*e,this.setValues("hwb",this.values.hwb),this},blacken:function(e){return this.values.hwb[2]+=this.values.hwb[2]*e,this.setValues("hwb",this.values.hwb),this},greyscale:function(){var e=this.values.rgb,t=e[0]*.3+e[1]*.59+e[2]*.11;return this.setValues("rgb",[t,t,t]),this},clearer:function(e){return this.setValues("alpha",this.values.alpha-this.values.alpha*e),this},opaquer:function(e){return this.setValues("alpha",this.values.alpha+this.values.alpha*e),this},rotate:function(e){var t=this.values.hsl[0];return t=(t+e)%360,t=t<0?360+t:t,this.values.hsl[0]=t,this.setValues("hsl",this.values.hsl),this},mix:function(e,t){var r=this,n=e,o=t===void 0?.5:t,i=2*o-1,a=r.alpha()-n.alpha(),s=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return this.rgb(s*r.red()+l*n.red(),s*r.green()+l*n.green(),s*r.blue()+l*n.blue()).alpha(r.alpha()*o+n.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var e=new zt;return e.values=p6(this.values),e}};zt.prototype.getValues=function(e){for(var t={},r=0;r{const n=v.useRef(null);return v.useEffect(()=>{if(n.current){const o=T6(e,$6(t));return n.current.appendChild(o),()=>{var i;(i=n.current)==null||i.removeChild(o)}}},[n,t]),p.jsx(Te,{ref:n,...r})};function E6(e){return`${e.slice(0,5)}...${e.slice(-3)}`}var R6=({address:e})=>p.jsxs(Xt,{gap:"2",children:[p.jsx(A6,{size:16,address:e}),p.jsx(rt,{children:E6(e)})]}),Qm={};ye(Qm,{Component:()=>R6});var j6=({children:e,Renderer:t})=>p.jsx("b",{children:p.jsx(t,{id:"bold",element:e})}),e0={};ye(e0,{Component:()=>j6});function M6({alignment:e,direction:t}){return t==="horizontal"?{direction:"row",justifyContent:e,alignItems:"center"}:{direction:"column",alignItems:e}}var z6=({direction:e,alignment:t,children:r,Renderer:n})=>p.jsx(Xt,{gap:"1",...M6({alignment:t,direction:e}),children:p.jsx(n,{id:"box",element:r})}),t0={};ye(t0,{Component:()=>z6});var I6=({name:e,type:t="button",variant:r,disabled:n=!1,children:o})=>p.jsx(ko,{name:e,type:t,variant:r,isDisabled:n,children:o}),B6={baseStyle:{background:"none",borderRadius:"0",maxWidth:"fit-content",_disabled:{opacity:1}},variants:{primary:{color:"info.default",_disabled:{color:"text.muted"}},destructive:{color:"error.default",_disabled:{color:"text.muted"}},solid:{color:"background.default",backgroundColor:"text.default",_disabled:{backgroundColor:"text.muted"},_hover:{backgroundColor:"text.alternative"}}},sizes:{text:{lineHeight:"short",fontSize:"sm",fontWeight:"500",margin:0,padding:0,paddingInlineStart:0,paddingInlineEnd:0},large:{lineHeight:"short",fontSize:"sm",fontWeight:"500",display:"flex",alignItems:"center",justifyContent:"center",paddingX:"4",height:"48px",borderRadius:"full",border:"1px solid",borderColor:"currentColor"}},defaultProps:{variant:"primary",size:"text"}},r0={};ye(r0,{Component:()=>I6,styles:()=>B6});var O6=({image:e,title:t,description:r,value:n,extra:o})=>p.jsxs(IP,{direction:"row",children:[e&&p.jsx(Fl,{src:`data:image/svg+xml;base64,${Sm(wm(e))}`,alt:t,width:"32px",height:"32px",borderRadius:"full"}),p.jsxs(MP,{children:[p.jsxs(zP,{children:[p.jsx(rt,{children:t}),p.jsx(rt,{children:n})]}),p.jsxs(Xt,{justifyContent:"space-between",gap:"2",children:[r?p.jsx(rt,{children:r}):p.jsx("span",{}),o?p.jsx(rt,{children:o}):p.jsx("span",{})]})]})]}),{definePartsStyle:Yd,defineMultiStyleConfig:F6}=Q(Lf.keys),D6=F6({baseStyle:Yd({container:{gap:"2"},header:{display:"flex",justifyContent:"space-between",gap:"2",padding:"0",color:"text.default",fontSize:"sm",fontWeight:"500"},body:{padding:"0",color:"text.alternative",fontSize:"sm"}}),variants:{clear:Yd({container:{background:"transparent",boxShadow:"none"}})},defaultProps:{variant:"clear"}}),n0={};ye(n0,{Component:()=>O6,styles:()=>D6});var o0={Address:Qm,Bold:e0,Box:t0,Button:r0,Card:n0,Checkbox:Om,Container:Fm,Copyable:Dm,Divider:Vm,Dropdown:Lm,Field:jm,FileInput:Mm,Footer:zm,Form:Im,Heading:Bm,Image:Tm,Input:$m,Italic:Am,Link:Em,Option:Rm,Row:Cm,Text:_m,Tooltip:Pm};function Xs(e){return Object.fromEntries(Object.entries(ef[e]).map(([t,r])=>[t,Object.fromEntries(Object.entries(r).map(([n,o])=>[n,{default:o,_dark:tf[e][t][n]}]))]))}function Zd(e){return`${e.shadowOffset.width}px ${e.shadowOffset.height}px ${e.shadowRadius}px 0px ${e.shadowColor}`}function V6(){return Object.fromEntries(Object.entries(ef.shadows.size).map(([e,t])=>[e,{default:Zd(t),_dark:Zd(tf.shadows.size[e])}]))}function L6(e){return e!==void 0&&!Hs(e,"baseStyle")&&!Hs(e,"variants")}function N6(e){return Object.entries(e).filter(([,t])=>t.styles!==void 0).reduce((t,[r,n])=>L6(n.styles)?{...t,...n.styles}:{...t,[r]:n.styles},{})}var W6={muted:{default:`1px solid ${Xs("colors").border.muted.default}`,_dark:`1px solid ${Xs("colors").border.muted._dark}`}},H6={initialColorMode:"light",useSystemColorMode:!1},U6={short:"1.375rem"},q6=V6(),G6={global:{body:{background:"background.default",color:"text.default",fontSize:"sm"},".docs-story":{background:"background.default",color:"text.default"}}};const{useParameter:K6,addons:X6,useEffect:yE,useMemo:xE}=__STORYBOOK_MODULE_PREVIEW_API__;var Y6=Object.defineProperty,Z6=(e,t)=>{for(var r in t)Y6(e,r,{get:t[r],enumerable:!0})},i0={};Z6(i0,{initializeThemeState:()=>oE,pluckThemeFromContext:()=>rE,useThemeParameters:()=>nE});var a0="themes",J6=`storybook/${a0}`,Q6="theme",eE={},tE={REGISTER_THEMES:`${J6}/REGISTER_THEMES`};function rE({globals:e}){return e[Q6]||""}function nE(){return K6(a0,eE)}function oE(e,t){X6.getChannel().emit(tE.REGISTER_THEMES,{defaultTheme:t,themes:e})}var{initializeThemeState:iE}=i0,aE=({children:e,theme:t})=>(iE(["light","dark"],"light"),p.jsxs(kP,{theme:cE,children:[p.jsx(EA,{colorMode:t}),p.jsx(da,{id:"provider",element:e})]})),s0={Extension:AA,ThemeProvider:aE};function sE(e){const t=Object.fromEntries(Object.entries(o0).map(([r,n])=>[r,n.Component]));return{...s0,...t,...e}}var da=({element:e,id:t,overrides:r={}})=>{const n=sE(r);if(typeof e=="string")return p.jsx(p.Fragment,{children:e});if(e===null||typeof e=="boolean")return null;if(Array.isArray(e))return p.jsx(p.Fragment,{children:e.map((i,a)=>p.jsx(da,{id:`${t}-${a}`,element:i,overrides:r},`${t}-${a}`))});const o=n[e.type];return Xl(o,`No component found for type: "${e.type}".`),p.jsx(o,{id:t,Renderer:lE(t,r),...e.props})};function lE(e,t){return function({id:n,element:o,overrides:i}){return p.jsx(da,{element:o,id:`${e}-${n}`,overrides:{...t,...i}})}}var cE=d5({config:H6,components:N6(o0),fonts:{heading:'"Euclid Circular B", sans-serif',body:'"Euclid Circular B", sans-serif'},lineHeights:U6,semanticTokens:{borders:W6,colors:Xs("colors"),shadows:q6},styles:G6}),uE=class extends v.PureComponent{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){this.state.hasError||this.props.showMain()}componentDidCatch(e){this.props.showException(e)}render(){return this.state.hasError?null:this.props.children}},SE=(e,t)=>{const{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return p.jsx(n,{...e})},wE=async({storyFn:e,showMain:t,showException:r,forceRemount:n},o)=>{const i=e(),a=p.jsx(v.StrictMode,{children:p.jsx(uE,{showMain:t,showException:r,children:p.jsx(da,{id:"root",element:i,overrides:s0})})});return n&&mc(o),await fg(a,o),()=>{mc(o)}};export{SE as render,wE as renderToCanvas}; diff --git a/storybook/pr/2531/assets/syntaxhighlighter-BP7B2CQK-1befffac.js b/storybook/pr/2531/assets/syntaxhighlighter-BP7B2CQK-7f618a79.js similarity index 83% rename from storybook/pr/2531/assets/syntaxhighlighter-BP7B2CQK-1befffac.js rename to storybook/pr/2531/assets/syntaxhighlighter-BP7B2CQK-7f618a79.js index 989d1e3fd3..9f0f983fbf 100644 --- a/storybook/pr/2531/assets/syntaxhighlighter-BP7B2CQK-1befffac.js +++ b/storybook/pr/2531/assets/syntaxhighlighter-BP7B2CQK-7f618a79.js @@ -1 +1 @@ -import{S as s,c as m,s as g,a as n}from"./DocsRenderer-K4EAMTCU-69b7bfae.js";import"./iframe-21f17388.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import"./react-18-17fe38b0.js";import"./index-161398fe.js";export{s as SyntaxHighlighter,m as createCopyToClipboardFunction,g as default,n as supportedLanguages}; +import{S as s,c as m,s as g,a as n}from"./DocsRenderer-K4EAMTCU-737df029.js";import"./iframe-f92ba46f.js";import"../sb-preview/runtime.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-242edf71.js";import"./react-18-17fe38b0.js";import"./index-161398fe.js";export{s as SyntaxHighlighter,m as createCopyToClipboardFunction,g as default,n as supportedLanguages}; diff --git a/storybook/pr/2531/iframe.html b/storybook/pr/2531/iframe.html index d70ea43dba..8f6f2b9f2f 100644 --- a/storybook/pr/2531/iframe.html +++ b/storybook/pr/2531/iframe.html @@ -528,7 +528,7 @@ - + diff --git a/storybook/pr/2531/index.json b/storybook/pr/2531/index.json index d1f68846da..4a5a76c7fb 100644 --- a/storybook/pr/2531/index.json +++ b/storybook/pr/2531/index.json @@ -1 +1 @@ -{"v":5,"entries":{"ui-address--docs":{"id":"ui-address--docs","title":"UI/Address","name":"Docs","importPath":"./src/jsx/components/Address.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-address--default":{"type":"story","id":"ui-address--default","name":"Default","title":"UI/Address","importPath":"./src/jsx/components/Address.stories.tsx","tags":["dev","test","autodocs"]},"layout-box--docs":{"id":"layout-box--docs","title":"Layout/Box","name":"Docs","importPath":"./src/jsx/components/Box.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"layout-box--vertical":{"type":"story","id":"layout-box--vertical","name":"Vertical","title":"Layout/Box","importPath":"./src/jsx/components/Box.stories.tsx","tags":["dev","test","autodocs"]},"layout-box--horizontal":{"type":"story","id":"layout-box--horizontal","name":"Horizontal","title":"Layout/Box","importPath":"./src/jsx/components/Box.stories.tsx","tags":["dev","test","autodocs"]},"layout-box--centered":{"type":"story","id":"layout-box--centered","name":"Centered","title":"Layout/Box","importPath":"./src/jsx/components/Box.stories.tsx","tags":["dev","test","autodocs"]},"layout-box--space-between":{"type":"story","id":"layout-box--space-between","name":"Space Between","title":"Layout/Box","importPath":"./src/jsx/components/Box.stories.tsx","tags":["dev","test","autodocs"]},"layout-container--docs":{"id":"layout-container--docs","title":"Layout/Container","name":"Docs","importPath":"./src/jsx/components/Container.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"layout-container--default":{"type":"story","id":"layout-container--default","name":"Default","title":"Layout/Container","importPath":"./src/jsx/components/Container.stories.tsx","tags":["dev","test","autodocs"]},"layout-container--box-only":{"type":"story","id":"layout-container--box-only","name":"Box Only","title":"Layout/Container","importPath":"./src/jsx/components/Container.stories.tsx","tags":["dev","test","autodocs"]},"ui-copyable--docs":{"id":"ui-copyable--docs","title":"UI/Copyable","name":"Docs","importPath":"./src/jsx/components/Copyable.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-copyable--default":{"type":"story","id":"ui-copyable--default","name":"Default","title":"UI/Copyable","importPath":"./src/jsx/components/Copyable.stories.tsx","tags":["dev","test","autodocs"]},"ui-copyable--sensitive":{"type":"story","id":"ui-copyable--sensitive","name":"Sensitive","title":"UI/Copyable","importPath":"./src/jsx/components/Copyable.stories.tsx","tags":["dev","test","autodocs"]},"ui-copyable--long-value":{"type":"story","id":"ui-copyable--long-value","name":"Long Value","title":"UI/Copyable","importPath":"./src/jsx/components/Copyable.stories.tsx","tags":["dev","test","autodocs"]},"layout-divider--docs":{"id":"layout-divider--docs","title":"Layout/Divider","name":"Docs","importPath":"./src/jsx/components/Divider.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"layout-divider--default":{"type":"story","id":"layout-divider--default","name":"Default","title":"Layout/Divider","importPath":"./src/jsx/components/Divider.stories.tsx","tags":["dev","test","autodocs"]},"layout-divider--with-text":{"type":"story","id":"layout-divider--with-text","name":"With Text","title":"Layout/Divider","importPath":"./src/jsx/components/Divider.stories.tsx","tags":["dev","test","autodocs"]},"layout-footer--docs":{"id":"layout-footer--docs","title":"Layout/Footer","name":"Docs","importPath":"./src/jsx/components/Footer.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"layout-footer--default":{"type":"story","id":"layout-footer--default","name":"Default","title":"Layout/Footer","importPath":"./src/jsx/components/Footer.stories.tsx","tags":["dev","test","autodocs"]},"layout-footer--two-buttons":{"type":"story","id":"layout-footer--two-buttons","name":"Two Buttons","title":"Layout/Footer","importPath":"./src/jsx/components/Footer.stories.tsx","tags":["dev","test","autodocs"]},"text-heading--docs":{"id":"text-heading--docs","title":"Text/Heading","name":"Docs","importPath":"./src/jsx/components/Heading.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-heading--default":{"type":"story","id":"text-heading--default","name":"Default","title":"Text/Heading","importPath":"./src/jsx/components/Heading.stories.tsx","tags":["dev","test","autodocs"]},"text-link--docs":{"id":"text-link--docs","title":"Text/Link","name":"Docs","importPath":"./src/jsx/components/Link.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-link--default":{"type":"story","id":"text-link--default","name":"Default","title":"Text/Link","importPath":"./src/jsx/components/Link.stories.tsx","tags":["dev","test","autodocs"]},"text-link--formatting":{"type":"story","id":"text-link--formatting","name":"Formatting","title":"Text/Link","importPath":"./src/jsx/components/Link.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--docs":{"id":"ui-row--docs","title":"UI/Row","name":"Docs","importPath":"./src/jsx/components/Row.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-row--default":{"type":"story","id":"ui-row--default","name":"Default","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--warning":{"type":"story","id":"ui-row--warning","name":"Warning","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--critical":{"type":"story","id":"ui-row--critical","name":"Critical","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--tooltip":{"type":"story","id":"ui-row--tooltip","name":"With tooltip","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--with-address":{"type":"story","id":"ui-row--with-address","name":"With address","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"text-text--docs":{"id":"text-text--docs","title":"Text/Text","name":"Docs","importPath":"./src/jsx/components/Text.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-text--default":{"type":"story","id":"text-text--default","name":"Default","title":"Text/Text","importPath":"./src/jsx/components/Text.stories.tsx","tags":["dev","test","autodocs"]},"text-text--formatting":{"type":"story","id":"text-text--formatting","name":"Formatting","title":"Text/Text","importPath":"./src/jsx/components/Text.stories.tsx","tags":["dev","test","autodocs"]},"text-text--with-link":{"type":"story","id":"text-text--with-link","name":"With Link","title":"Text/Text","importPath":"./src/jsx/components/Text.stories.tsx","tags":["dev","test","autodocs"]},"ui-tooltip--docs":{"id":"ui-tooltip--docs","title":"UI/Tooltip","name":"Docs","importPath":"./src/jsx/components/Tooltip.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-tooltip--default":{"type":"story","id":"ui-tooltip--default","name":"Default","title":"UI/Tooltip","importPath":"./src/jsx/components/Tooltip.stories.tsx","tags":["dev","test","autodocs"]},"ui-tooltip--formatting":{"type":"story","id":"ui-tooltip--formatting","name":"Formatting","title":"UI/Tooltip","importPath":"./src/jsx/components/Tooltip.stories.tsx","tags":["dev","test","autodocs"]},"forms-button--docs":{"id":"forms-button--docs","title":"Forms/Button","name":"Docs","importPath":"./src/jsx/components/form/Button.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-button--default":{"type":"story","id":"forms-button--default","name":"Default","title":"Forms/Button","importPath":"./src/jsx/components/form/Button.stories.tsx","tags":["dev","test","autodocs"]},"forms-button--destructive":{"type":"story","id":"forms-button--destructive","name":"Destructive","title":"Forms/Button","importPath":"./src/jsx/components/form/Button.stories.tsx","tags":["dev","test","autodocs"]},"forms-button--disabled":{"type":"story","id":"forms-button--disabled","name":"Disabled","title":"Forms/Button","importPath":"./src/jsx/components/form/Button.stories.tsx","tags":["dev","test","autodocs"]},"forms-checkbox--docs":{"id":"forms-checkbox--docs","title":"Forms/Checkbox","name":"Docs","importPath":"./src/jsx/components/form/Checkbox.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-checkbox--default":{"type":"story","id":"forms-checkbox--default","name":"Default","title":"Forms/Checkbox","importPath":"./src/jsx/components/form/Checkbox.stories.tsx","tags":["dev","test","autodocs"]},"forms-checkbox--checked":{"type":"story","id":"forms-checkbox--checked","name":"Checked","title":"Forms/Checkbox","importPath":"./src/jsx/components/form/Checkbox.stories.tsx","tags":["dev","test","autodocs"]},"forms-checkbox--toggle":{"type":"story","id":"forms-checkbox--toggle","name":"Toggle","title":"Forms/Checkbox","importPath":"./src/jsx/components/form/Checkbox.stories.tsx","tags":["dev","test","autodocs"]},"forms-dropdown--docs":{"id":"forms-dropdown--docs","title":"Forms/Dropdown","name":"Docs","importPath":"./src/jsx/components/form/Dropdown.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-dropdown--default":{"type":"story","id":"forms-dropdown--default","name":"Default","title":"Forms/Dropdown","importPath":"./src/jsx/components/form/Dropdown.stories.tsx","tags":["dev","test","autodocs"]},"forms-dropdown--within-field":{"type":"story","id":"forms-dropdown--within-field","name":"Within Field","title":"Forms/Dropdown","importPath":"./src/jsx/components/form/Dropdown.stories.tsx","tags":["dev","test","autodocs"]},"forms-field--docs":{"id":"forms-field--docs","title":"Forms/Field","name":"Docs","importPath":"./src/jsx/components/form/Field.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-field--default":{"type":"story","id":"forms-field--default","name":"Default","title":"Forms/Field","importPath":"./src/jsx/components/form/Field.stories.tsx","tags":["dev","test","autodocs"]},"forms-field--error":{"type":"story","id":"forms-field--error","name":"Error","title":"Forms/Field","importPath":"./src/jsx/components/form/Field.stories.tsx","tags":["dev","test","autodocs"]},"forms-field--input-with-button":{"type":"story","id":"forms-field--input-with-button","name":"Input With Button","title":"Forms/Field","importPath":"./src/jsx/components/form/Field.stories.tsx","tags":["dev","test","autodocs"]},"forms-fileinput--docs":{"id":"forms-fileinput--docs","title":"Forms/FileInput","name":"Docs","importPath":"./src/jsx/components/form/FileInput.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-fileinput--default":{"type":"story","id":"forms-fileinput--default","name":"Default","title":"Forms/FileInput","importPath":"./src/jsx/components/form/FileInput.stories.tsx","tags":["dev","test","autodocs"]},"forms-fileinput--compact":{"type":"story","id":"forms-fileinput--compact","name":"Compact","title":"Forms/FileInput","importPath":"./src/jsx/components/form/FileInput.stories.tsx","tags":["dev","test","autodocs"]},"forms-fileinput--within-field":{"type":"story","id":"forms-fileinput--within-field","name":"Within Field","title":"Forms/FileInput","importPath":"./src/jsx/components/form/FileInput.stories.tsx","tags":["dev","test","autodocs"]},"forms-fileinput--accept-images":{"type":"story","id":"forms-fileinput--accept-images","name":"Accept Images","title":"Forms/FileInput","importPath":"./src/jsx/components/form/FileInput.stories.tsx","tags":["dev","test","autodocs"]},"forms-form--docs":{"id":"forms-form--docs","title":"Forms/Form","name":"Docs","importPath":"./src/jsx/components/form/Form.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-form--default":{"type":"story","id":"forms-form--default","name":"Default","title":"Forms/Form","importPath":"./src/jsx/components/form/Form.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--docs":{"id":"forms-input--docs","title":"Forms/Input","name":"Docs","importPath":"./src/jsx/components/form/Input.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-input--default":{"type":"story","id":"forms-input--default","name":"Default","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--number":{"type":"story","id":"forms-input--number","name":"Number","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--password":{"type":"story","id":"forms-input--password","name":"Password","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--default-value":{"type":"story","id":"forms-input--default-value","name":"Default Value","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--within-field":{"type":"story","id":"forms-input--within-field","name":"Within Field","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-option--docs":{"id":"forms-option--docs","title":"Forms/Option","name":"Docs","importPath":"./src/jsx/components/form/Option.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-option--default":{"type":"story","id":"forms-option--default","name":"Default","title":"Forms/Option","importPath":"./src/jsx/components/form/Option.stories.tsx","tags":["dev","test","autodocs"]},"text-bold--docs":{"id":"text-bold--docs","title":"Text/Bold","name":"Docs","importPath":"./src/jsx/components/formatting/Bold.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-bold--default":{"type":"story","id":"text-bold--default","name":"Default","title":"Text/Bold","importPath":"./src/jsx/components/formatting/Bold.stories.tsx","tags":["dev","test","autodocs"]},"text-italic--docs":{"id":"text-italic--docs","title":"Text/Italic","name":"Docs","importPath":"./src/jsx/components/formatting/Italic.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-italic--default":{"type":"story","id":"text-italic--default","name":"Default","title":"Text/Italic","importPath":"./src/jsx/components/formatting/Italic.stories.tsx","tags":["dev","test","autodocs"]}}} +{"v":5,"entries":{"ui-address--docs":{"id":"ui-address--docs","title":"UI/Address","name":"Docs","importPath":"./src/jsx/components/Address.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-address--default":{"type":"story","id":"ui-address--default","name":"Default","title":"UI/Address","importPath":"./src/jsx/components/Address.stories.tsx","tags":["dev","test","autodocs"]},"layout-box--docs":{"id":"layout-box--docs","title":"Layout/Box","name":"Docs","importPath":"./src/jsx/components/Box.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"layout-box--vertical":{"type":"story","id":"layout-box--vertical","name":"Vertical","title":"Layout/Box","importPath":"./src/jsx/components/Box.stories.tsx","tags":["dev","test","autodocs"]},"layout-box--horizontal":{"type":"story","id":"layout-box--horizontal","name":"Horizontal","title":"Layout/Box","importPath":"./src/jsx/components/Box.stories.tsx","tags":["dev","test","autodocs"]},"layout-box--centered":{"type":"story","id":"layout-box--centered","name":"Centered","title":"Layout/Box","importPath":"./src/jsx/components/Box.stories.tsx","tags":["dev","test","autodocs"]},"layout-box--space-between":{"type":"story","id":"layout-box--space-between","name":"Space Between","title":"Layout/Box","importPath":"./src/jsx/components/Box.stories.tsx","tags":["dev","test","autodocs"]},"ui-card--docs":{"id":"ui-card--docs","title":"UI/Card","name":"Docs","importPath":"./src/jsx/components/Card.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-card--default":{"type":"story","id":"ui-card--default","name":"Default","title":"UI/Card","importPath":"./src/jsx/components/Card.stories.tsx","tags":["dev","test","autodocs"]},"ui-card--basic":{"type":"story","id":"ui-card--basic","name":"Basic","title":"UI/Card","importPath":"./src/jsx/components/Card.stories.tsx","tags":["dev","test","autodocs"]},"ui-card--with-image":{"type":"story","id":"ui-card--with-image","name":"With Image","title":"UI/Card","importPath":"./src/jsx/components/Card.stories.tsx","tags":["dev","test","autodocs"]},"layout-container--docs":{"id":"layout-container--docs","title":"Layout/Container","name":"Docs","importPath":"./src/jsx/components/Container.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"layout-container--default":{"type":"story","id":"layout-container--default","name":"Default","title":"Layout/Container","importPath":"./src/jsx/components/Container.stories.tsx","tags":["dev","test","autodocs"]},"layout-container--box-only":{"type":"story","id":"layout-container--box-only","name":"Box Only","title":"Layout/Container","importPath":"./src/jsx/components/Container.stories.tsx","tags":["dev","test","autodocs"]},"ui-copyable--docs":{"id":"ui-copyable--docs","title":"UI/Copyable","name":"Docs","importPath":"./src/jsx/components/Copyable.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-copyable--default":{"type":"story","id":"ui-copyable--default","name":"Default","title":"UI/Copyable","importPath":"./src/jsx/components/Copyable.stories.tsx","tags":["dev","test","autodocs"]},"ui-copyable--sensitive":{"type":"story","id":"ui-copyable--sensitive","name":"Sensitive","title":"UI/Copyable","importPath":"./src/jsx/components/Copyable.stories.tsx","tags":["dev","test","autodocs"]},"ui-copyable--long-value":{"type":"story","id":"ui-copyable--long-value","name":"Long Value","title":"UI/Copyable","importPath":"./src/jsx/components/Copyable.stories.tsx","tags":["dev","test","autodocs"]},"layout-divider--docs":{"id":"layout-divider--docs","title":"Layout/Divider","name":"Docs","importPath":"./src/jsx/components/Divider.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"layout-divider--default":{"type":"story","id":"layout-divider--default","name":"Default","title":"Layout/Divider","importPath":"./src/jsx/components/Divider.stories.tsx","tags":["dev","test","autodocs"]},"layout-divider--with-text":{"type":"story","id":"layout-divider--with-text","name":"With Text","title":"Layout/Divider","importPath":"./src/jsx/components/Divider.stories.tsx","tags":["dev","test","autodocs"]},"layout-footer--docs":{"id":"layout-footer--docs","title":"Layout/Footer","name":"Docs","importPath":"./src/jsx/components/Footer.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"layout-footer--default":{"type":"story","id":"layout-footer--default","name":"Default","title":"Layout/Footer","importPath":"./src/jsx/components/Footer.stories.tsx","tags":["dev","test","autodocs"]},"layout-footer--two-buttons":{"type":"story","id":"layout-footer--two-buttons","name":"Two Buttons","title":"Layout/Footer","importPath":"./src/jsx/components/Footer.stories.tsx","tags":["dev","test","autodocs"]},"text-heading--docs":{"id":"text-heading--docs","title":"Text/Heading","name":"Docs","importPath":"./src/jsx/components/Heading.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-heading--default":{"type":"story","id":"text-heading--default","name":"Default","title":"Text/Heading","importPath":"./src/jsx/components/Heading.stories.tsx","tags":["dev","test","autodocs"]},"ui-image--docs":{"id":"ui-image--docs","title":"UI/Image","name":"Docs","importPath":"./src/jsx/components/Image.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-image--default":{"type":"story","id":"ui-image--default","name":"Default","title":"UI/Image","importPath":"./src/jsx/components/Image.stories.tsx","tags":["dev","test","autodocs"]},"ui-image--embedded":{"type":"story","id":"ui-image--embedded","name":"Embedded","title":"UI/Image","importPath":"./src/jsx/components/Image.stories.tsx","tags":["dev","test","autodocs"]},"text-link--docs":{"id":"text-link--docs","title":"Text/Link","name":"Docs","importPath":"./src/jsx/components/Link.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-link--default":{"type":"story","id":"text-link--default","name":"Default","title":"Text/Link","importPath":"./src/jsx/components/Link.stories.tsx","tags":["dev","test","autodocs"]},"text-link--formatting":{"type":"story","id":"text-link--formatting","name":"Formatting","title":"Text/Link","importPath":"./src/jsx/components/Link.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--docs":{"id":"ui-row--docs","title":"UI/Row","name":"Docs","importPath":"./src/jsx/components/Row.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-row--default":{"type":"story","id":"ui-row--default","name":"Default","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--warning":{"type":"story","id":"ui-row--warning","name":"Warning","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--critical":{"type":"story","id":"ui-row--critical","name":"Critical","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--tooltip":{"type":"story","id":"ui-row--tooltip","name":"With tooltip","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"ui-row--with-address":{"type":"story","id":"ui-row--with-address","name":"With address","title":"UI/Row","importPath":"./src/jsx/components/Row.stories.tsx","tags":["dev","test","autodocs"]},"text-text--docs":{"id":"text-text--docs","title":"Text/Text","name":"Docs","importPath":"./src/jsx/components/Text.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-text--default":{"type":"story","id":"text-text--default","name":"Default","title":"Text/Text","importPath":"./src/jsx/components/Text.stories.tsx","tags":["dev","test","autodocs"]},"text-text--formatting":{"type":"story","id":"text-text--formatting","name":"Formatting","title":"Text/Text","importPath":"./src/jsx/components/Text.stories.tsx","tags":["dev","test","autodocs"]},"text-text--with-link":{"type":"story","id":"text-text--with-link","name":"With Link","title":"Text/Text","importPath":"./src/jsx/components/Text.stories.tsx","tags":["dev","test","autodocs"]},"ui-tooltip--docs":{"id":"ui-tooltip--docs","title":"UI/Tooltip","name":"Docs","importPath":"./src/jsx/components/Tooltip.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"ui-tooltip--default":{"type":"story","id":"ui-tooltip--default","name":"Default","title":"UI/Tooltip","importPath":"./src/jsx/components/Tooltip.stories.tsx","tags":["dev","test","autodocs"]},"ui-tooltip--formatting":{"type":"story","id":"ui-tooltip--formatting","name":"Formatting","title":"UI/Tooltip","importPath":"./src/jsx/components/Tooltip.stories.tsx","tags":["dev","test","autodocs"]},"forms-button--docs":{"id":"forms-button--docs","title":"Forms/Button","name":"Docs","importPath":"./src/jsx/components/form/Button.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-button--default":{"type":"story","id":"forms-button--default","name":"Default","title":"Forms/Button","importPath":"./src/jsx/components/form/Button.stories.tsx","tags":["dev","test","autodocs"]},"forms-button--destructive":{"type":"story","id":"forms-button--destructive","name":"Destructive","title":"Forms/Button","importPath":"./src/jsx/components/form/Button.stories.tsx","tags":["dev","test","autodocs"]},"forms-button--disabled":{"type":"story","id":"forms-button--disabled","name":"Disabled","title":"Forms/Button","importPath":"./src/jsx/components/form/Button.stories.tsx","tags":["dev","test","autodocs"]},"forms-checkbox--docs":{"id":"forms-checkbox--docs","title":"Forms/Checkbox","name":"Docs","importPath":"./src/jsx/components/form/Checkbox.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-checkbox--default":{"type":"story","id":"forms-checkbox--default","name":"Default","title":"Forms/Checkbox","importPath":"./src/jsx/components/form/Checkbox.stories.tsx","tags":["dev","test","autodocs"]},"forms-checkbox--checked":{"type":"story","id":"forms-checkbox--checked","name":"Checked","title":"Forms/Checkbox","importPath":"./src/jsx/components/form/Checkbox.stories.tsx","tags":["dev","test","autodocs"]},"forms-checkbox--toggle":{"type":"story","id":"forms-checkbox--toggle","name":"Toggle","title":"Forms/Checkbox","importPath":"./src/jsx/components/form/Checkbox.stories.tsx","tags":["dev","test","autodocs"]},"forms-dropdown--docs":{"id":"forms-dropdown--docs","title":"Forms/Dropdown","name":"Docs","importPath":"./src/jsx/components/form/Dropdown.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-dropdown--default":{"type":"story","id":"forms-dropdown--default","name":"Default","title":"Forms/Dropdown","importPath":"./src/jsx/components/form/Dropdown.stories.tsx","tags":["dev","test","autodocs"]},"forms-dropdown--within-field":{"type":"story","id":"forms-dropdown--within-field","name":"Within Field","title":"Forms/Dropdown","importPath":"./src/jsx/components/form/Dropdown.stories.tsx","tags":["dev","test","autodocs"]},"forms-field--docs":{"id":"forms-field--docs","title":"Forms/Field","name":"Docs","importPath":"./src/jsx/components/form/Field.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-field--default":{"type":"story","id":"forms-field--default","name":"Default","title":"Forms/Field","importPath":"./src/jsx/components/form/Field.stories.tsx","tags":["dev","test","autodocs"]},"forms-field--error":{"type":"story","id":"forms-field--error","name":"Error","title":"Forms/Field","importPath":"./src/jsx/components/form/Field.stories.tsx","tags":["dev","test","autodocs"]},"forms-field--input-with-button":{"type":"story","id":"forms-field--input-with-button","name":"Input With Button","title":"Forms/Field","importPath":"./src/jsx/components/form/Field.stories.tsx","tags":["dev","test","autodocs"]},"forms-fileinput--docs":{"id":"forms-fileinput--docs","title":"Forms/FileInput","name":"Docs","importPath":"./src/jsx/components/form/FileInput.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-fileinput--default":{"type":"story","id":"forms-fileinput--default","name":"Default","title":"Forms/FileInput","importPath":"./src/jsx/components/form/FileInput.stories.tsx","tags":["dev","test","autodocs"]},"forms-fileinput--compact":{"type":"story","id":"forms-fileinput--compact","name":"Compact","title":"Forms/FileInput","importPath":"./src/jsx/components/form/FileInput.stories.tsx","tags":["dev","test","autodocs"]},"forms-fileinput--within-field":{"type":"story","id":"forms-fileinput--within-field","name":"Within Field","title":"Forms/FileInput","importPath":"./src/jsx/components/form/FileInput.stories.tsx","tags":["dev","test","autodocs"]},"forms-fileinput--accept-images":{"type":"story","id":"forms-fileinput--accept-images","name":"Accept Images","title":"Forms/FileInput","importPath":"./src/jsx/components/form/FileInput.stories.tsx","tags":["dev","test","autodocs"]},"forms-form--docs":{"id":"forms-form--docs","title":"Forms/Form","name":"Docs","importPath":"./src/jsx/components/form/Form.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-form--default":{"type":"story","id":"forms-form--default","name":"Default","title":"Forms/Form","importPath":"./src/jsx/components/form/Form.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--docs":{"id":"forms-input--docs","title":"Forms/Input","name":"Docs","importPath":"./src/jsx/components/form/Input.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-input--default":{"type":"story","id":"forms-input--default","name":"Default","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--number":{"type":"story","id":"forms-input--number","name":"Number","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--password":{"type":"story","id":"forms-input--password","name":"Password","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--default-value":{"type":"story","id":"forms-input--default-value","name":"Default Value","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-input--within-field":{"type":"story","id":"forms-input--within-field","name":"Within Field","title":"Forms/Input","importPath":"./src/jsx/components/form/Input.stories.tsx","tags":["dev","test","autodocs"]},"forms-option--docs":{"id":"forms-option--docs","title":"Forms/Option","name":"Docs","importPath":"./src/jsx/components/form/Option.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"forms-option--default":{"type":"story","id":"forms-option--default","name":"Default","title":"Forms/Option","importPath":"./src/jsx/components/form/Option.stories.tsx","tags":["dev","test","autodocs"]},"text-bold--docs":{"id":"text-bold--docs","title":"Text/Bold","name":"Docs","importPath":"./src/jsx/components/formatting/Bold.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-bold--default":{"type":"story","id":"text-bold--default","name":"Default","title":"Text/Bold","importPath":"./src/jsx/components/formatting/Bold.stories.tsx","tags":["dev","test","autodocs"]},"text-italic--docs":{"id":"text-italic--docs","title":"Text/Italic","name":"Docs","importPath":"./src/jsx/components/formatting/Italic.stories.tsx","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"text-italic--default":{"type":"story","id":"text-italic--default","name":"Default","title":"Text/Italic","importPath":"./src/jsx/components/formatting/Italic.stories.tsx","tags":["dev","test","autodocs"]}}} diff --git a/storybook/pr/2531/project.json b/storybook/pr/2531/project.json index b74b29b2f7..cab41b93d4 100644 --- a/storybook/pr/2531/project.json +++ b/storybook/pr/2531/project.json @@ -1 +1 @@ -{"generatedAt":1720108500482,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@metamask/eslint-config-jest":"12.1.0","@types/jest":"27.5.1","eslint-plugin-jest":"27.1.5","jest":"29.5.0","jest-fetch-mock":"3.0.3","jest-it-up":"2.1.0","ts-jest":"29.1.1"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.4.1"},"preview":{"usesGlobals":false},"framework":{"name":"@metamask/snaps-storybook","options":{}},"builder":"@storybook/builder-vite","language":"typescript","storybookPackages":{"@metamask/snaps-storybook":{"version":"0.0.0"},"@storybook/blocks":{"version":"8.1.11"},"storybook":{"version":"8.1.11"}},"addons":{"@storybook/addon-controls":{"version":"8.1.11"}}} +{"generatedAt":1720113634947,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@metamask/eslint-config-jest":"12.1.0","@types/jest":"27.5.1","eslint-plugin-jest":"27.1.5","jest":"29.5.0","jest-fetch-mock":"3.0.3","jest-it-up":"2.1.0","ts-jest":"29.1.1"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"3.4.1"},"preview":{"usesGlobals":false},"framework":{"name":"@metamask/snaps-storybook","options":{}},"builder":"@storybook/builder-vite","language":"typescript","storybookPackages":{"@metamask/snaps-storybook":{"version":"0.0.0"},"@storybook/blocks":{"version":"8.1.11"},"storybook":{"version":"8.1.11"}},"addons":{"@storybook/addon-controls":{"version":"8.1.11"}}}