diff --git a/assets/Button.stories-jpv_FyYn.js b/assets/Button.stories-DNySRfAR.js similarity index 99% rename from assets/Button.stories-jpv_FyYn.js rename to assets/Button.stories-DNySRfAR.js index 41081cf..0ee9618 100644 --- a/assets/Button.stories-jpv_FyYn.js +++ b/assets/Button.stories-DNySRfAR.js @@ -192,7 +192,7 @@ import{j as a}from"./emotion-serialize.browser.esm-Xr4f5Ts3.js";import{n}from"./ ${C} `;n.label` ${s} -`;const b=N.forwardRef((e,t)=>{switch(e.variant){case"primary":return a.jsx(y,{ref:t,...e});case"secondary":return a.jsx(p,{ref:t,...e});case"reject":return a.jsx(F,{ref:t,...e});case"tertiary":return a.jsx(H,{ref:t,...e});case"outlined":return a.jsx(p,{ref:t,...e});case"blue":return a.jsx(M,{ref:t,...e});case"white":return a.jsx(q,{ref:t,...e});case"icon":return a.jsx(V,{ref:t,...e});default:return a.jsx(y,{ref:t,...e})}});b.displayName="Button";try{b.displayName="Button",b.__docgenInfo={description:"",displayName:"Button",props:{variant:{defaultValue:null,description:"",name:"variant",required:!0,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"reject"'},{value:'"tertiary"'},{value:'"outlined"'},{value:'"blue"'},{value:'"white"'},{value:'"icon"'}]}},size:{defaultValue:null,description:"",name:"size",required:!0,type:{name:"enum",value:[{value:'"large"'},{value:'"small"'},{value:'"medium"'}]}},transform:{defaultValue:null,description:"",name:"transform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"uppercase"'},{value:'"none"'},{value:'"lowercase"'}]}}}}}catch{}const er={component:b,parameters:{docs:{description:{component:"Extends the native HTML button element with some additional props, such as variant and size. All props available on the regular HTML button also work with this component. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button."}}}},i={args:{variant:"primary",size:"medium",children:"I am a button"}},d={args:{...i.args,variant:"secondary"}},l={args:{...i.args,variant:"tertiary"}},u={args:{variant:"primary",size:"large",children:"I am a button"}},m={args:{variant:"primary",size:"small",children:"I am a button"}};var g,$,x;i.parameters={...i.parameters,docs:{...(g=i.parameters)==null?void 0:g.docs,source:{originalSource:`{ +`;const b=N.forwardRef((e,t)=>{switch(e.variant){case"primary":return a.jsx(y,{ref:t,...e});case"secondary":return a.jsx(p,{ref:t,...e});case"reject":return a.jsx(F,{ref:t,...e});case"tertiary":return a.jsx(H,{ref:t,...e});case"outlined":return a.jsx(p,{ref:t,...e});case"blue":return a.jsx(M,{ref:t,...e});case"white":return a.jsx(q,{ref:t,...e});case"icon":return a.jsx(V,{ref:t,...e});default:return a.jsx(y,{ref:t,...e})}});b.displayName="Button";try{b.displayName="Button",b.__docgenInfo={description:"",displayName:"Button",props:{variant:{defaultValue:null,description:"",name:"variant",required:!0,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"reject"'},{value:'"tertiary"'},{value:'"outlined"'},{value:'"blue"'},{value:'"white"'},{value:'"icon"'}]}},size:{defaultValue:null,description:"",name:"size",required:!0,type:{name:"enum",value:[{value:'"large"'},{value:'"medium"'},{value:'"small"'}]}},transform:{defaultValue:null,description:"",name:"transform",required:!1,type:{name:"enum",value:[{value:'"capitalize"'},{value:'"uppercase"'},{value:'"none"'},{value:'"lowercase"'}]}}}}}catch{}const er={component:b,parameters:{docs:{description:{component:"Extends the native HTML button element with some additional props, such as variant and size. All props available on the regular HTML button also work with this component. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button."}}}},i={args:{variant:"primary",size:"medium",children:"I am a button"}},d={args:{...i.args,variant:"secondary"}},l={args:{...i.args,variant:"tertiary"}},u={args:{variant:"primary",size:"large",children:"I am a button"}},m={args:{variant:"primary",size:"small",children:"I am a button"}};var g,$,x;i.parameters={...i.parameters,docs:{...(g=i.parameters)==null?void 0:g.docs,source:{originalSource:`{ args: { variant: "primary", size: "medium", diff --git a/assets/Color-PRSJMWNM-Ct1T2eB-.js b/assets/Color-PRSJMWNM-Ckos_97c.js similarity index 99% rename from assets/Color-PRSJMWNM-Ct1T2eB-.js rename to assets/Color-PRSJMWNM-Ckos_97c.js index a8c6975..ea8fd69 100644 --- a/assets/Color-PRSJMWNM-Ct1T2eB-.js +++ b/assets/Color-PRSJMWNM-Ckos_97c.js @@ -1 +1 @@ -import{n as $,d as ue,T as Me,F as Ce,M as $e,g as Oe}from"./DocsRenderer-K4EAMTCU-BwFSP7Wv.js";import{R as h,r as m,g as fe}from"./index-CDs2tPxN.js";import{_ as Ne,i as J,a as Ie}from"./_getPrototype-DtJm8IA_.js";import"./iframe-5rMNvAur.js";import"../sb-preview/runtime.js";import"./react-18-CqnZ7Kye.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./extends-CCbyfPlC.js";import"./index-DXimoRZY.js";import"./index-DrFu-skq.js";function N(){return(N=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=m.useRef(e),n=m.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,s.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=i.current,w=V(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(re(b),!function(k,O){return O&&!F(k)}(b,i.current)&&w)){if(F(b)){i.current=!0;var E=b.changedTouches||[];E.length&&(s.current=E[0].identifier)}w.focus(),a(ne(w,b,s.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[l,a]),d=c[0],f=c[1],g=c[2];return m.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}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=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?y(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?y(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},Te=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?Fe({h:je(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}},Fe=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}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=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),l=r*(1-n),s=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,s,l,l,i,r][c]),g:y(255*[i,r,r,s,l,l][c]),b:y(255*[l,l,i,r,r,s][c]),a:y(o,2)}},He=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},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(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),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:y(60*(s<0?s+6:s)),s:y(a?l/a*100:0),v:y(a/255*100),a:o}},me=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":y(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})})))}),be=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 "+y(t.s)+"%, Brightness "+y(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,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var c=e.toHsva(t);s.current={hsva:c,color:t},l(c)}},[t,e]),m.useEffect(function(){var c;ve(a,s.current.hsva)||e.equal(c=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:c},r(c))},[a,e,r]);var i=m.useCallback(function(c){l(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(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=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,N({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=H(["react-colorful__alpha",t]),l=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:R(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Te,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,N({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,N({},e,{colorModel:Ge}))},Ye={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]};const z=Ye,ke={};for(const e of Object.keys(z))ke[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 _e=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),l=a-o;let s,i;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=l/(a+o):i=l/(2-a-o),[s,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,i=e[2]/255,c=Math.max(l,s,i),d=c-Math.min(l,s,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(l),n=f(s),r=f(i),l===c?o=r-n:s===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*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,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*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=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],l=Je(e,a);l.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,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*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,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,i[c]=l*255;return i};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 l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*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),l=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,l];case 1:return[s,r,l];case 2:return[l,r,i];case 3:return[l,s,r];case 4:return[i,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*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 l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const i=n+a*(s-n);let c,d,f;switch(l){default:case 6:case 0:c=s,d=i,f=n;break;case 1:c=i,d=s,f=n;break;case 2:c=n,d=s,f=i;break;case 3:c=n,d=i,f=s;break;case 4:c=i,d=n,f=s;break;case 5:c=s,d=n,f=i;break}return[c*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),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=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,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*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),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,i=o**3,c=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,l=c>.008856?c:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};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 l=Math.sqrt(n*n+r*r);return[t,l,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),l=n*Math.sin(o);return[t,a,l]};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 l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};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(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};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),l=o-a;let s,i;return l<1?s=a/(1-l):s=0,l<=0?i=0:o===t?i=(n-r)/l%6:o===n?i=2+(r-t)/l:i=4+(t-n)/l,i/=6,i%=1,[i*360,l*100,s*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,l=a%1,s=1-l;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,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]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*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 W=_e;function Qe(){const e={},t=Object.keys(W);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function lt(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,l=0;l{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]=lt(o),I[e][r].raw=at(o)})});var st=I;const _=fe(st);var it=Ne,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,le=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return le;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||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?le:+e}var Mt=Et,Ct=J,D=ut,se=Mt,$t="Expected a function",Ot=Math.max,Nt=Math.min;function It(e,t,n){var r,o,a,l,s,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,T=o;return r=o=void 0,c=v,l=e.apply(T,C),l}function j(v){return c=v,s=setTimeout(b,t),d?x(v):l}function M(v){var C=v-i,T=v-c,te=t-C;return f?Nt(te,a-T):te}function p(v){var C=v-i,T=v-c;return i===void 0||C>=t||C<0||f&&T>=a}function b(){var v=D();if(p(v))return w(v);s=setTimeout(b,M(v))}function w(v){return s=void 0,g&&r?x(v):(r=o=void 0,l)}function E(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0}function k(){return s===void 0?l:w(D())}function O(){var v=D(),C=p(v);if(r=arguments,o=this,i=v,C){if(s===void 0)return j(i);if(f)return clearTimeout(s),s=setTimeout(b,t),x(i)}return s===void 0&&(s=setTimeout(b,t)),l}return O.cancel=E,O.flush=k,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"}}),qt=$.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"}}),Bt=$(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=$.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})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...n,style:{...t,backgroundImage:r}})},Kt=$(Ce.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=$($e)(({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})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),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:De,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=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[l,s,i,c]=ce(e),[d,f,g]=_.rgb.hsl([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([l,s,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${_.rgb.hex([l,s,i]).toLowerCase()}`}}if(Ut.test(e)){let[l,s,i,c]=ce(e),[d,f,g]=_.hsl.rgb([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([l,s,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${_.hsl.hex([l,s,i]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.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{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.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 q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},Zt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[l,s]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),s((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=m.useMemo(()=>Qt(n,o,l).toLowerCase(),[n,o,l]),c=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(l)+1;f>=L.length&&(f=0),s(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:l,cycleColorSpace:d}},X=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(s=>typeof s=="string"?S(s):s.title?{...S(s.color),keyword:s.title}:S(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s!=null&&s.valid&&(a.some(i=>X(i[n])===X(s[n]))||o(i=>i.concat(s)))},[n,a]);return{presets:a,addPreset:l}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{var E;let i=m.useCallback(Ht(n,200),[n]),{value:c,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Zt(t,i),{presets:M,addPreset:p}=en(a,g,x),b=Jt[x],w=!!((E=s==null?void 0:s.table)!=null&&E.readonly);return h.createElement(Pt,{"aria-readonly":w},h.createElement(Lt,{startOpen:l,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(qt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Wt,null,M.map((k,O)=>h.createElement(ue,{key:`${k.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:k.keyword||k.value})},h.createElement(ie,{value:k[x],active:g&&X(k[x])===X(g[x]),onClick:()=>f(k.value)})))))},h.createElement(ie,{value:d,style:{margin:4}})),h.createElement(Kt,{id:Oe(e),value:c,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),c?h.createElement(Vt,{onClick:j}):null)},dn=tn;export{tn as ColorControl,dn as default}; +import{n as $,d as ue,T as Me,F as Ce,M as $e,g as Oe}from"./DocsRenderer-K4EAMTCU-BuL2Sdw5.js";import{R as h,r as m,g as fe}from"./index-CDs2tPxN.js";import{_ as Ne,i as J,a as Ie}from"./_getPrototype-DtJm8IA_.js";import"./iframe-TDzcBqMd.js";import"../sb-preview/runtime.js";import"./react-18-CqnZ7Kye.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./extends-CCbyfPlC.js";import"./index-DXimoRZY.js";import"./index-DrFu-skq.js";function N(){return(N=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=m.useRef(e),n=m.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,s.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=i.current,w=V(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(re(b),!function(k,O){return O&&!F(k)}(b,i.current)&&w)){if(F(b)){i.current=!0;var E=b.changedTouches||[];E.length&&(s.current=E[0].identifier)}w.focus(),a(ne(w,b,s.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[l,a]),d=c[0],f=c[1],g=c[2];return m.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}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=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?y(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?y(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},Te=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?Fe({h:je(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}},Fe=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}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=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),l=r*(1-n),s=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,s,l,l,i,r][c]),g:y(255*[i,r,r,s,l,l][c]),b:y(255*[l,l,i,r,r,s][c]),a:y(o,2)}},He=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},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(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),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:y(60*(s<0?s+6:s)),s:y(a?l/a*100:0),v:y(a/255*100),a:o}},me=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":y(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})})))}),be=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 "+y(t.s)+"%, Brightness "+y(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,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var c=e.toHsva(t);s.current={hsva:c,color:t},l(c)}},[t,e]),m.useEffect(function(){var c;ve(a,s.current.hsva)||e.equal(c=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:c},r(c))},[a,e,r]);var i=m.useCallback(function(c){l(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(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=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,N({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=H(["react-colorful__alpha",t]),l=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:R(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var i=ye(n,o,a),c=i[0],d=i[1],f=H(["react-colorful",t]);return h.createElement("div",N({},l,{ref:s,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Te,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,N({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,N({},e,{colorModel:Ge}))},Ye={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]};const z=Ye,ke={};for(const e of Object.keys(z))ke[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 _e=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),l=a-o;let s,i;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=l/(a+o):i=l/(2-a-o),[s,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,i=e[2]/255,c=Math.max(l,s,i),d=c-Math.min(l,s,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(l),n=f(s),r=f(i),l===c?o=r-n:s===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*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,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*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=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],l=Je(e,a);l.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,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*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,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,i[c]=l*255;return i};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 l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*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),l=255*r*(1-n),s=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,l];case 1:return[s,r,l];case 2:return[l,r,i];case 3:return[l,s,r];case 4:return[i,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*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 l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const i=n+a*(s-n);let c,d,f;switch(l){default:case 6:case 0:c=s,d=i,f=n;break;case 1:c=i,d=s,f=n;break;case 2:c=n,d=s,f=i;break;case 3:c=n,d=i,f=s;break;case 4:c=i,d=n,f=s;break;case 5:c=s,d=n,f=i;break}return[c*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),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=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,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*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),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,i=o**3,c=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,l=c>.008856?c:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};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 l=Math.sqrt(n*n+r*r);return[t,l,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),l=n*Math.sin(o);return[t,a,l]};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 l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};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(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};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),l=o-a;let s,i;return l<1?s=a/(1-l):s=0,l<=0?i=0:o===t?i=(n-r)/l%6:o===n?i=2+(r-t)/l:i=4+(t-n)/l,i/=6,i%=1,[i*360,l*100,s*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,l=a%1,s=1-l;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,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]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*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 W=_e;function Qe(){const e={},t=Object.keys(W);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function lt(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,l=0;l{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]=lt(o),I[e][r].raw=at(o)})});var st=I;const _=fe(st);var it=Ne,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,le=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return le;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||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?le:+e}var Mt=Et,Ct=J,D=ut,se=Mt,$t="Expected a function",Ot=Math.max,Nt=Math.min;function It(e,t,n){var r,o,a,l,s,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,T=o;return r=o=void 0,c=v,l=e.apply(T,C),l}function j(v){return c=v,s=setTimeout(b,t),d?x(v):l}function M(v){var C=v-i,T=v-c,te=t-C;return f?Nt(te,a-T):te}function p(v){var C=v-i,T=v-c;return i===void 0||C>=t||C<0||f&&T>=a}function b(){var v=D();if(p(v))return w(v);s=setTimeout(b,M(v))}function w(v){return s=void 0,g&&r?x(v):(r=o=void 0,l)}function E(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0}function k(){return s===void 0?l:w(D())}function O(){var v=D(),C=p(v);if(r=arguments,o=this,i=v,C){if(s===void 0)return j(i);if(f)return clearTimeout(s),s=setTimeout(b,t),x(i)}return s===void 0&&(s=setTimeout(b,t)),l}return O.cancel=E,O.flush=k,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"}}),qt=$.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"}}),Bt=$(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=$.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})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...n,style:{...t,backgroundImage:r}})},Kt=$(Ce.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=$($e)(({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})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),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:De,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=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[l,s,i,c]=ce(e),[d,f,g]=_.rgb.hsl([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([l,s,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${_.rgb.hex([l,s,i]).toLowerCase()}`}}if(Ut.test(e)){let[l,s,i,c]=ce(e),[d,f,g]=_.hsl.rgb([l,s,i])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([l,s,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${_.hsl.hex([l,s,i]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.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{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.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 q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},Zt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[l,s]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),s((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=m.useMemo(()=>Qt(n,o,l).toLowerCase(),[n,o,l]),c=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(l)+1;f>=L.length&&(f=0),s(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:l,cycleColorSpace:d}},X=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(s=>typeof s=="string"?S(s):s.title?{...S(s.color),keyword:s.title}:S(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s!=null&&s.valid&&(a.some(i=>X(i[n])===X(s[n]))||o(i=>i.concat(s)))},[n,a]);return{presets:a,addPreset:l}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{var E;let i=m.useCallback(Ht(n,200),[n]),{value:c,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Zt(t,i),{presets:M,addPreset:p}=en(a,g,x),b=Jt[x],w=!!((E=s==null?void 0:s.table)!=null&&E.readonly);return h.createElement(Pt,{"aria-readonly":w},h.createElement(Lt,{startOpen:l,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(qt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Wt,null,M.map((k,O)=>h.createElement(ue,{key:`${k.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:k.keyword||k.value})},h.createElement(ie,{value:k[x],active:g&&X(k[x])===X(g[x]),onClick:()=>f(k.value)})))))},h.createElement(ie,{value:d,style:{margin:4}})),h.createElement(Kt,{id:Oe(e),value:c,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),c?h.createElement(Vt,{onClick:j}):null)},dn=tn;export{tn as ColorControl,dn as default}; diff --git a/assets/DocsRenderer-K4EAMTCU-BwFSP7Wv.js b/assets/DocsRenderer-K4EAMTCU-BuL2Sdw5.js similarity index 99% rename from assets/DocsRenderer-K4EAMTCU-BwFSP7Wv.js rename to assets/DocsRenderer-K4EAMTCU-BuL2Sdw5.js index 8d31b7e..85d24f2 100644 --- a/assets/DocsRenderer-K4EAMTCU-BwFSP7Wv.js +++ b/assets/DocsRenderer-K4EAMTCU-BuL2Sdw5.js @@ -1,5 +1,5 @@ -const __vite__fileDeps=["./syntaxhighlighter-BP7B2CQK-BqUApr9f.js","./iframe-5rMNvAur.js","./index-CDs2tPxN.js","./react-18-CqnZ7Kye.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js","./extends-CCbyfPlC.js","./index-DXimoRZY.js","./_getPrototype-DtJm8IA_.js","./index-DrFu-skq.js","./formatter-2WMMO6ZP-DQjKcaNQ.js","./WithTooltip-KJL26V4Q-_SnEfJ06.js","./Color-PRSJMWNM-Ct1T2eB-.js","./index-CqcSDpoT.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as Rt}from"./iframe-5rMNvAur.js";import{g as Kn,r as o,R as u,$ as Ru}from"./index-CDs2tPxN.js";import{a as Xn,$ as ns,r as Au,u as Iu}from"./react-18-CqnZ7Kye.js";import{a as li,u as Go}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import{_ as oe}from"./extends-CCbyfPlC.js";import{O as as,P as _u}from"./index-DXimoRZY.js";import{q as os,r as ku,s as ls,t as $u,i as Zn,v as Ou,w as Tu,x as Mu,c as is,y as ss,z as Lu,A as cs,B as zu,C as Pu,D as Bu,E as Fu,F as Hu,G as Nu,H as ds,I as ju,J as Du,K as us,_ as Uu,L as Vu,M as Wu,N as qo,d as fs,O as ps,P as hs,Q as Gu,R as qu,U as Yu,e as Ku,S as ii,j as Aa}from"./_getPrototype-DtJm8IA_.js";import{d as Xu}from"./index-DrFu-skq.js";var Fe=e=>`control-${e.replace(/\s+/g,"-")}`,Jn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Zu}=__STORYBOOK_MODULE_GLOBAL__,{logger:Ju}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Qu=Object.create,gs=Object.defineProperty,ef=Object.getOwnPropertyDescriptor,ms=Object.getOwnPropertyNames,tf=Object.getPrototypeOf,rf=Object.prototype.hasOwnProperty,Yo=(e,t)=>function(){return t||(0,e[ms(e)[0]])((t={exports:{}}).exports,t),t.exports},nf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ms(t))!rf.call(e,a)&&a!==r&&gs(e,a,{get:()=>t[a],enumerable:!(n=ef(t,a))||n.enumerable});return e},vs=(e,t,r)=>(r=e!=null?Qu(tf(e)):{},nf(!e||!e.__esModule?gs(r,"default",{value:e,enumerable:!0}):r,e));function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>__vite__fileDeps[i]); +import{_ as Rt}from"./iframe-TDzcBqMd.js";import{g as Kn,r as o,R as u,$ as Ru}from"./index-CDs2tPxN.js";import{a as Xn,$ as ns,r as Au,u as Iu}from"./react-18-CqnZ7Kye.js";import{a as li,u as Go}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import{_ as oe}from"./extends-CCbyfPlC.js";import{O as as,P as _u}from"./index-DXimoRZY.js";import{q as os,r as ku,s as ls,t as $u,i as Zn,v as Ou,w as Tu,x as Mu,c as is,y as ss,z as Lu,A as cs,B as zu,C as Pu,D as Bu,E as Fu,F as Hu,G as Nu,H as ds,I as ju,J as Du,K as us,_ as Uu,L as Vu,M as Wu,N as qo,d as fs,O as ps,P as hs,Q as Gu,R as qu,U as Yu,e as Ku,S as ii,j as Aa}from"./_getPrototype-DtJm8IA_.js";import{d as Xu}from"./index-DrFu-skq.js";var Fe=e=>`control-${e.replace(/\s+/g,"-")}`,Jn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Zu}=__STORYBOOK_MODULE_GLOBAL__,{logger:Ju}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Qu=Object.create,gs=Object.defineProperty,ef=Object.getOwnPropertyDescriptor,ms=Object.getOwnPropertyNames,tf=Object.getPrototypeOf,rf=Object.prototype.hasOwnProperty,Yo=(e,t)=>function(){return t||(0,e[ms(e)[0]])((t={exports:{}}).exports,t),t.exports},nf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ms(t))!rf.call(e,a)&&a!==r&&gs(e,a,{get:()=>t[a],enumerable:!(n=ef(t,a))||n.enumerable});return e},vs=(e,t,r)=>(r=e!=null?Qu(tf(e)):{},nf(!e||!e.__esModule?gs(r,"default",{value:e,enumerable:!0}):r,e));function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?a-1:0),i=1;i=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var f=r-l/2,g=c+f,m=s+f,p=d+f;return n(g,m,p)}var i0={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 ty(e){if(typeof e!="string")return e;var t=e.toLowerCase();return i0[t]?"#"+i0[t]:e}var ry=/^#[a-fA-F0-9]{6}$/,ny=/^#[a-fA-F0-9]{8}$/,ay=/^#[a-fA-F0-9]{3}$/,oy=/^#[a-fA-F0-9]{4}$/,qa=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ly=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,iy=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,sy=/^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 Rl(e){if(typeof e!="string")throw new tt(3);var t=ty(e);if(t.match(ry))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(ny)){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(ay))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(oy)){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=qa.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=ly.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=iy.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,f="rgb("+Xr(c,s,d)+")",g=qa.exec(f);if(!g)throw new tt(4,t,f);return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10)}}var m=sy.exec(t.substring(0,50));if(m){var p=parseInt(""+m[1],10),v=parseInt(""+m[2],10)/100,h=parseInt(""+m[3],10)/100,y="rgb("+Xr(p,v,h)+")",x=qa.exec(y);if(!x)throw new tt(4,t,y);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new tt(5)}function cy(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?Vn(e,t,r):"rgba("+Xr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Vn(e.hue,e.saturation,e.lightness):"rgba("+Xr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new tt(2)}function Oo(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return $o("#"+Pt(e)+Pt(t)+Pt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return $o("#"+Pt(e.red)+Pt(e.green)+Pt(e.blue));throw new tt(6)}function Wn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=Rl(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?Oo(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?Oo(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new tt(7)}var hy=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},gy=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},my=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},vy=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function w1(e){if(typeof e!="object")throw new tt(8);if(gy(e))return Wn(e);if(hy(e))return Oo(e);if(vy(e))return py(e);if(my(e))return fy(e);throw new tt(8)}function x1(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):x1(e,t,n)}}function Al(e){return x1(e,e.length,[])}function Il(e,t,r){return Math.max(e,Math.min(t,r))}function by(e,t){if(t==="transparent")return t;var r=y1(t);return w1(Y({},r,{lightness:Il(0,1,r.lightness-parseFloat(e))}))}var yy=Al(by),sr=yy;function wy(e,t){if(t==="transparent")return t;var r=y1(t);return w1(Y({},r,{lightness:Il(0,1,r.lightness+parseFloat(e))}))}var xy=Al(wy),s0=xy;function Ey(e,t){if(t==="transparent")return t;var r=Rl(t),n=typeof r.alpha=="number"?r.alpha:1,a=Y({},r,{alpha:Il(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Wn(a)}var Sy=Al(Ey),ke=Sy,Sr=({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"}}),gt=({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}),ne=({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"}),Xt={margin:"16px 0"},Cy=({href:e,...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return u.createElement("a",{href:r,target:n,...t})},E1=I(Cy)(ne,({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}})),S1=I.blockquote(ne,Xt,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Ry=e=>typeof e=="string",Ay=/[\n\r]/g,Iy=I.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),gt),_y=I(hl)(({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"}})),_l=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=o.Children.toArray(t);return a.filter(Ry).some(l=>l.match(Ay))?u.createElement(_y,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):u.createElement(Iy,{...r,className:e},a)},C1=I.div(ne),R1=I.dl(ne,Xt,{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}}),A1=I.h1(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),kl=I.h2(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),$l=I.h3(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),I1=I.h4(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),_1=I.h5(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),k1=I.h6(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),$1=I.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),O1=I.img({maxWidth:"100%"}),T1=I.li(ne,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":gt({theme:e})})),ky={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},M1=I.ol(ne,Xt,ky,{listStyle:"decimal"}),L1=I.p(ne,Xt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":gt({theme:e})})),z1=I.pre(ne,Xt,({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"}})),P1=I.span(ne,({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"}}})),B1=I.table(ne,Xt,({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}})),F1=I.title(gt),$y={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},H1=I.ul(ne,Xt,$y,{listStyle:"disc"}),Ol=I.div(ne),N1={h1:e=>u.createElement(A1,{...re(e,"h1")}),h2:e=>u.createElement(kl,{...re(e,"h2")}),h3:e=>u.createElement($l,{...re(e,"h3")}),h4:e=>u.createElement(I1,{...re(e,"h4")}),h5:e=>u.createElement(_1,{...re(e,"h5")}),h6:e=>u.createElement(k1,{...re(e,"h6")}),pre:e=>u.createElement(z1,{...re(e,"pre")}),a:e=>u.createElement(E1,{...re(e,"a")}),hr:e=>u.createElement($1,{...re(e,"hr")}),dl:e=>u.createElement(R1,{...re(e,"dl")}),blockquote:e=>u.createElement(S1,{...re(e,"blockquote")}),table:e=>u.createElement(B1,{...re(e,"table")}),img:e=>u.createElement(O1,{...re(e,"img")}),div:e=>u.createElement(C1,{...re(e,"div")}),span:e=>u.createElement(P1,{...re(e,"span")}),li:e=>u.createElement(T1,{...re(e,"li")}),ul:e=>u.createElement(H1,{...re(e,"ul")}),ol:e=>u.createElement(M1,{...re(e,"ol")}),p:e=>u.createElement(L1,{...re(e,"p")}),code:e=>u.createElement(_l,{...re(e,"code")}),tt:e=>u.createElement(F1,{...re(e,"tt")}),resetwrapper:e=>u.createElement(Ol,{...re(e,"resetwrapper")})},Oy=I.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{}}}),Ty=({...e})=>u.createElement(Oy,{...e}),My=0,Ly=e=>e.button===My&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,zy=(e,t)=>{Ly(e)&&(e.preventDefault(),t(e))},Py=I.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}}:{}),By=I.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:sr(.07,e.color.secondary),"svg path:not([fill])":{fill:sr(.07,e.color.secondary)}},"&:active":{color:sr(.1,e.color.secondary),"svg path:not([fill])":{fill:sr(.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"}:{}),Vt=({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,style:i=void 0,...c})=>u.createElement(By,{...c,onClick:r&&e?s=>zy(s,r):r,className:l},u.createElement(Py,{withArrow:n,containsIcon:a},t,n&&u.createElement(El,null))),Fy=I.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}})),Wt=[],yr=null,Hy=o.lazy(async()=>{let{SyntaxHighlighter:e}=await Rt(()=>import("./syntaxhighlighter-BP7B2CQK-BqUApr9f.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return Wt.length>0&&(Wt.forEach(t=>{e.registerLanguage(...t)}),Wt=[]),yr===null&&(yr=e),{default:t=>u.createElement(e,{...t})}}),Ny=o.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Rt(()=>import("./syntaxhighlighter-BP7B2CQK-BqUApr9f.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),Rt(()=>import("./formatter-2WMMO6ZP-DQjKcaNQ.js"),__vite__mapDeps([9,1,2,3,4,5,6,7,8]),import.meta.url)]);return Wt.length>0&&(Wt.forEach(r=>{e.registerLanguage(...r)}),Wt=[]),yr===null&&(yr=e),{default:r=>u.createElement(e,{...r,formatter:t})}}),ha=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},e.format!==!1?u.createElement(Ny,{...e}):u.createElement(Hy,{...e}));ha.registerLanguage=(...e)=>{if(yr!==null){yr.registerLanguage(...e);return}Wt.push(e)};var j1={};A5(j1,{Actions:()=>Yy,CloseButton:()=>W1,Col:()=>q1,Container:()=>V1,Content:()=>Vy,Description:()=>qy,Error:()=>Ky,ErrorWrapper:()=>Y1,Header:()=>Wy,Overlay:()=>U1,Row:()=>G1,Title:()=>Gy});var $t=o.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:l=!1,active:i=!1,onClick:c,...s},d)=>{let f="button";s.isLink&&(f="a"),e&&(f=rn);let g=n,m=r,[p,v]=o.useState(!1),h=y=>{c&&c(y),t!=="none"&&v(!0)};if(o.useEffect(()=>{let y=setTimeout(()=>{p&&v(!1)},1e3);return()=>clearTimeout(y)},[p]),s.primary&&(g="solid",m="medium"),(s.secondary||s.tertiary||s.gray||s.outline||s.inForm)&&(g="outline",m="medium"),s.small||s.isLink||s.primary||s.secondary||s.tertiary||s.gray||s.outline||s.inForm||s.containsIcon){let y=u.Children.toArray(s.children).filter(x=>typeof x=="string"&&x!=="");v1(`Use of deprecated props in the button ${y.length>0?`"${y.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 u.createElement(jy,{as:f,ref:d,variant:g,size:m,padding:a,disabled:l,active:i,animating:p,animation:t,onClick:h,...s})});$t.displayName="Button";var jy=I("button",{shouldForwardProp:e=>Ko(e)})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:l,animation:i,padding:c})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:c==="small"&&r==="small"?"0 7px":c==="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:`${Wn(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 s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?ke(.86,e.color.secondary):e.base==="light"?sr(.02,s):s0(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?sr(.02,s):s0(.03,s)})()},"&:focus":{boxShadow:`${Wn(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:l&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),Ct=o.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>u.createElement($t,{padding:e,variant:t,ref:n,...r}));Ct.displayName="IconButton";var D1=pt({from:{opacity:0},to:{opacity:1}}),Dy=pt({from:{maxHeight:0},to:{}}),Uy=pt({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),U1=I.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${D1} 200ms`}),V1=I.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:`${Uy} 200ms`,"&:focus-visible":{outline:"none"}})),W1=e=>u.createElement(m1,{asChild:!0},u.createElement(Ct,{...e},u.createElement(Mc,null))),Vy=I.div({display:"flex",flexDirection:"column",margin:16,gap:16}),G1=I.div({display:"flex",justifyContent:"space-between",gap:16}),q1=I.div({display:"flex",flexDirection:"column",gap:4}),Wy=e=>u.createElement(G1,null,u.createElement(q1,{...e}),u.createElement(W1,null)),Gy=I(h1)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),qy=I(g1)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),Yy=I.div({display:"flex",flexDirection:"row-reverse",gap:8}),Y1=I.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${Dy} 300ms, ${D1} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),Ky=({children:e,...t})=>u.createElement(Y1,{...t},u.createElement("div",null,e));function Xy({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=s=>s.preventDefault(),className:l,container:i,...c}){return u.createElement(d1,{...c},u.createElement(u1,{container:i},u.createElement(f1,{asChild:!0},u.createElement(U1,null)),u.createElement(p1,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},u.createElement(V1,{className:l,width:t,height:r},e))))}var Zy=Object.assign(Xy,j1,{Dialog:Wb}),Jy=e=>typeof e=="number"?e:Number(e),Qy=I.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${vo}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${vo}`]:{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{}}}),e6=({col:e,row:t,outer:r,children:n,...a})=>{let l=Jy(typeof r=="number"||!r?r:e||t);return u.createElement(Qy,{col:e,row:t,outer:l,...a},n)},t6=I.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),r6=I.div(),n6=I.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),a6=({children:e,...t})=>{let[r,n]=o.Children.toArray(e);return u.createElement(n6,{...t},u.createElement(t6,null,r),n&&u.createElement(r6,null,n))};function o6(e,t){var r=o.useRef(null),n=o.useRef(null);n.current=t;var a=o.useRef(null);o.useEffect(function(){l()});var l=o.useCallback(function(){var i=a.current,c=n.current,s=i||(c?c instanceof Element?c:c.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return o.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),o.useCallback(function(i){a.current=i,l()},[l])}function c0(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 K1(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(),l=o.useState({width:void 0,height:void 0}),i=l[0],c=l[1],s=o.useRef(!1);o.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var d=o.useRef({width:void 0,height:void 0}),f=o6(o.useCallback(function(g){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(m){var p=m[0],v=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=c0(p,v,"inlineSize"),y=c0(p,v,"blockSize"),x=h?n(h):void 0,E=y?n(y):void 0;if(d.current.width!==x||d.current.height!==E){var b={width:x,height:E};d.current.width=x,d.current.height=E,r.current?r.current(b):s.current||c(b)}})}),a.current.instance.observe(g,{box:e.box}),function(){a.current&&a.current.instance.unobserve(g)}},[e.box,n]),e.ref);return o.useMemo(function(){return{ref:f,width:i.width,height:i.height}},[f,i.width,i.height])}var l6=I.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function i6({scale:e,children:t}){let r=o.useRef(null),[n,a]=o.useState(0),l=o.useCallback(({height:i})=>{i&&a(i/e)},[e]);return o.useEffect(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[e]),K1({ref:r,onResize:l}),u.createElement(l6,{scale:e,elementHeight:n},u.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var s6=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 u.createElement(u.Fragment,null,e)}},X1={Element:i6,IFrame:s6},{document:c6}=qb,d6=I.strong(({theme:e})=>({color:e.color.orange})),u6=I.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),d0=I.em(({theme:e})=>({color:e.textMutedColor})),f6=/(Error): (.*)\n/,p6=/at (?:(.*) )?\(?(.+)\)?/,h6=/([^@]+)?(?:\/<)?@(.+)?/,g6=/([^@]+)?@(.+)?/,Z1=({error:e})=>{if(!e)return u.createElement(o.Fragment,null,"This error has no stack or message");if(!e.stack)return u.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 Qb(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var f=r-l/2,g=c+f,m=s+f,p=d+f;return n(g,m,p)}var i0={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 ty(e){if(typeof e!="string")return e;var t=e.toLowerCase();return i0[t]?"#"+i0[t]:e}var ry=/^#[a-fA-F0-9]{6}$/,ny=/^#[a-fA-F0-9]{8}$/,ay=/^#[a-fA-F0-9]{3}$/,oy=/^#[a-fA-F0-9]{4}$/,qa=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ly=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,iy=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,sy=/^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 Rl(e){if(typeof e!="string")throw new tt(3);var t=ty(e);if(t.match(ry))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(ny)){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(ay))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(oy)){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=qa.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=ly.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=iy.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,f="rgb("+Xr(c,s,d)+")",g=qa.exec(f);if(!g)throw new tt(4,t,f);return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10)}}var m=sy.exec(t.substring(0,50));if(m){var p=parseInt(""+m[1],10),v=parseInt(""+m[2],10)/100,h=parseInt(""+m[3],10)/100,y="rgb("+Xr(p,v,h)+")",x=qa.exec(y);if(!x)throw new tt(4,t,y);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new tt(5)}function cy(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?Vn(e,t,r):"rgba("+Xr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Vn(e.hue,e.saturation,e.lightness):"rgba("+Xr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new tt(2)}function Oo(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return $o("#"+Pt(e)+Pt(t)+Pt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return $o("#"+Pt(e.red)+Pt(e.green)+Pt(e.blue));throw new tt(6)}function Wn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=Rl(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?Oo(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?Oo(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new tt(7)}var hy=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},gy=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},my=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},vy=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function w1(e){if(typeof e!="object")throw new tt(8);if(gy(e))return Wn(e);if(hy(e))return Oo(e);if(vy(e))return py(e);if(my(e))return fy(e);throw new tt(8)}function x1(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):x1(e,t,n)}}function Al(e){return x1(e,e.length,[])}function Il(e,t,r){return Math.max(e,Math.min(t,r))}function by(e,t){if(t==="transparent")return t;var r=y1(t);return w1(Y({},r,{lightness:Il(0,1,r.lightness-parseFloat(e))}))}var yy=Al(by),sr=yy;function wy(e,t){if(t==="transparent")return t;var r=y1(t);return w1(Y({},r,{lightness:Il(0,1,r.lightness+parseFloat(e))}))}var xy=Al(wy),s0=xy;function Ey(e,t){if(t==="transparent")return t;var r=Rl(t),n=typeof r.alpha=="number"?r.alpha:1,a=Y({},r,{alpha:Il(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Wn(a)}var Sy=Al(Ey),ke=Sy,Sr=({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"}}),gt=({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}),ne=({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"}),Xt={margin:"16px 0"},Cy=({href:e,...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return u.createElement("a",{href:r,target:n,...t})},E1=I(Cy)(ne,({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}})),S1=I.blockquote(ne,Xt,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Ry=e=>typeof e=="string",Ay=/[\n\r]/g,Iy=I.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),gt),_y=I(hl)(({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"}})),_l=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=o.Children.toArray(t);return a.filter(Ry).some(l=>l.match(Ay))?u.createElement(_y,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):u.createElement(Iy,{...r,className:e},a)},C1=I.div(ne),R1=I.dl(ne,Xt,{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}}),A1=I.h1(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),kl=I.h2(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),$l=I.h3(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),I1=I.h4(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),_1=I.h5(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),k1=I.h6(ne,Sr,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),$1=I.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),O1=I.img({maxWidth:"100%"}),T1=I.li(ne,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":gt({theme:e})})),ky={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},M1=I.ol(ne,Xt,ky,{listStyle:"decimal"}),L1=I.p(ne,Xt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":gt({theme:e})})),z1=I.pre(ne,Xt,({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"}})),P1=I.span(ne,({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"}}})),B1=I.table(ne,Xt,({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}})),F1=I.title(gt),$y={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},H1=I.ul(ne,Xt,$y,{listStyle:"disc"}),Ol=I.div(ne),N1={h1:e=>u.createElement(A1,{...re(e,"h1")}),h2:e=>u.createElement(kl,{...re(e,"h2")}),h3:e=>u.createElement($l,{...re(e,"h3")}),h4:e=>u.createElement(I1,{...re(e,"h4")}),h5:e=>u.createElement(_1,{...re(e,"h5")}),h6:e=>u.createElement(k1,{...re(e,"h6")}),pre:e=>u.createElement(z1,{...re(e,"pre")}),a:e=>u.createElement(E1,{...re(e,"a")}),hr:e=>u.createElement($1,{...re(e,"hr")}),dl:e=>u.createElement(R1,{...re(e,"dl")}),blockquote:e=>u.createElement(S1,{...re(e,"blockquote")}),table:e=>u.createElement(B1,{...re(e,"table")}),img:e=>u.createElement(O1,{...re(e,"img")}),div:e=>u.createElement(C1,{...re(e,"div")}),span:e=>u.createElement(P1,{...re(e,"span")}),li:e=>u.createElement(T1,{...re(e,"li")}),ul:e=>u.createElement(H1,{...re(e,"ul")}),ol:e=>u.createElement(M1,{...re(e,"ol")}),p:e=>u.createElement(L1,{...re(e,"p")}),code:e=>u.createElement(_l,{...re(e,"code")}),tt:e=>u.createElement(F1,{...re(e,"tt")}),resetwrapper:e=>u.createElement(Ol,{...re(e,"resetwrapper")})},Oy=I.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{}}}),Ty=({...e})=>u.createElement(Oy,{...e}),My=0,Ly=e=>e.button===My&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,zy=(e,t)=>{Ly(e)&&(e.preventDefault(),t(e))},Py=I.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}}:{}),By=I.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:sr(.07,e.color.secondary),"svg path:not([fill])":{fill:sr(.07,e.color.secondary)}},"&:active":{color:sr(.1,e.color.secondary),"svg path:not([fill])":{fill:sr(.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"}:{}),Vt=({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,style:i=void 0,...c})=>u.createElement(By,{...c,onClick:r&&e?s=>zy(s,r):r,className:l},u.createElement(Py,{withArrow:n,containsIcon:a},t,n&&u.createElement(El,null))),Fy=I.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}})),Wt=[],yr=null,Hy=o.lazy(async()=>{let{SyntaxHighlighter:e}=await Rt(()=>import("./syntaxhighlighter-BP7B2CQK-cDMmZo71.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return Wt.length>0&&(Wt.forEach(t=>{e.registerLanguage(...t)}),Wt=[]),yr===null&&(yr=e),{default:t=>u.createElement(e,{...t})}}),Ny=o.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Rt(()=>import("./syntaxhighlighter-BP7B2CQK-cDMmZo71.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),Rt(()=>import("./formatter-2WMMO6ZP-Wjeup1XW.js"),__vite__mapDeps([9,1,2,3,4,5,6,7,8]),import.meta.url)]);return Wt.length>0&&(Wt.forEach(r=>{e.registerLanguage(...r)}),Wt=[]),yr===null&&(yr=e),{default:r=>u.createElement(e,{...r,formatter:t})}}),ha=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},e.format!==!1?u.createElement(Ny,{...e}):u.createElement(Hy,{...e}));ha.registerLanguage=(...e)=>{if(yr!==null){yr.registerLanguage(...e);return}Wt.push(e)};var j1={};A5(j1,{Actions:()=>Yy,CloseButton:()=>W1,Col:()=>q1,Container:()=>V1,Content:()=>Vy,Description:()=>qy,Error:()=>Ky,ErrorWrapper:()=>Y1,Header:()=>Wy,Overlay:()=>U1,Row:()=>G1,Title:()=>Gy});var $t=o.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:l=!1,active:i=!1,onClick:c,...s},d)=>{let f="button";s.isLink&&(f="a"),e&&(f=rn);let g=n,m=r,[p,v]=o.useState(!1),h=y=>{c&&c(y),t!=="none"&&v(!0)};if(o.useEffect(()=>{let y=setTimeout(()=>{p&&v(!1)},1e3);return()=>clearTimeout(y)},[p]),s.primary&&(g="solid",m="medium"),(s.secondary||s.tertiary||s.gray||s.outline||s.inForm)&&(g="outline",m="medium"),s.small||s.isLink||s.primary||s.secondary||s.tertiary||s.gray||s.outline||s.inForm||s.containsIcon){let y=u.Children.toArray(s.children).filter(x=>typeof x=="string"&&x!=="");v1(`Use of deprecated props in the button ${y.length>0?`"${y.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 u.createElement(jy,{as:f,ref:d,variant:g,size:m,padding:a,disabled:l,active:i,animating:p,animation:t,onClick:h,...s})});$t.displayName="Button";var jy=I("button",{shouldForwardProp:e=>Ko(e)})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:l,animation:i,padding:c})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:c==="small"&&r==="small"?"0 7px":c==="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:`${Wn(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 s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?ke(.86,e.color.secondary):e.base==="light"?sr(.02,s):s0(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?sr(.02,s):s0(.03,s)})()},"&:focus":{boxShadow:`${Wn(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:l&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),Ct=o.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>u.createElement($t,{padding:e,variant:t,ref:n,...r}));Ct.displayName="IconButton";var D1=pt({from:{opacity:0},to:{opacity:1}}),Dy=pt({from:{maxHeight:0},to:{}}),Uy=pt({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),U1=I.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${D1} 200ms`}),V1=I.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:`${Uy} 200ms`,"&:focus-visible":{outline:"none"}})),W1=e=>u.createElement(m1,{asChild:!0},u.createElement(Ct,{...e},u.createElement(Mc,null))),Vy=I.div({display:"flex",flexDirection:"column",margin:16,gap:16}),G1=I.div({display:"flex",justifyContent:"space-between",gap:16}),q1=I.div({display:"flex",flexDirection:"column",gap:4}),Wy=e=>u.createElement(G1,null,u.createElement(q1,{...e}),u.createElement(W1,null)),Gy=I(h1)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),qy=I(g1)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),Yy=I.div({display:"flex",flexDirection:"row-reverse",gap:8}),Y1=I.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${Dy} 300ms, ${D1} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),Ky=({children:e,...t})=>u.createElement(Y1,{...t},u.createElement("div",null,e));function Xy({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=s=>s.preventDefault(),className:l,container:i,...c}){return u.createElement(d1,{...c},u.createElement(u1,{container:i},u.createElement(f1,{asChild:!0},u.createElement(U1,null)),u.createElement(p1,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},u.createElement(V1,{className:l,width:t,height:r},e))))}var Zy=Object.assign(Xy,j1,{Dialog:Wb}),Jy=e=>typeof e=="number"?e:Number(e),Qy=I.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${vo}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${vo}`]:{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{}}}),e6=({col:e,row:t,outer:r,children:n,...a})=>{let l=Jy(typeof r=="number"||!r?r:e||t);return u.createElement(Qy,{col:e,row:t,outer:l,...a},n)},t6=I.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),r6=I.div(),n6=I.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),a6=({children:e,...t})=>{let[r,n]=o.Children.toArray(e);return u.createElement(n6,{...t},u.createElement(t6,null,r),n&&u.createElement(r6,null,n))};function o6(e,t){var r=o.useRef(null),n=o.useRef(null);n.current=t;var a=o.useRef(null);o.useEffect(function(){l()});var l=o.useCallback(function(){var i=a.current,c=n.current,s=i||(c?c instanceof Element?c:c.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return o.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),o.useCallback(function(i){a.current=i,l()},[l])}function c0(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 K1(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(),l=o.useState({width:void 0,height:void 0}),i=l[0],c=l[1],s=o.useRef(!1);o.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var d=o.useRef({width:void 0,height:void 0}),f=o6(o.useCallback(function(g){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(m){var p=m[0],v=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=c0(p,v,"inlineSize"),y=c0(p,v,"blockSize"),x=h?n(h):void 0,E=y?n(y):void 0;if(d.current.width!==x||d.current.height!==E){var b={width:x,height:E};d.current.width=x,d.current.height=E,r.current?r.current(b):s.current||c(b)}})}),a.current.instance.observe(g,{box:e.box}),function(){a.current&&a.current.instance.unobserve(g)}},[e.box,n]),e.ref);return o.useMemo(function(){return{ref:f,width:i.width,height:i.height}},[f,i.width,i.height])}var l6=I.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function i6({scale:e,children:t}){let r=o.useRef(null),[n,a]=o.useState(0),l=o.useCallback(({height:i})=>{i&&a(i/e)},[e]);return o.useEffect(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[e]),K1({ref:r,onResize:l}),u.createElement(l6,{scale:e,elementHeight:n},u.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var s6=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 u.createElement(u.Fragment,null,e)}},X1={Element:i6,IFrame:s6},{document:c6}=qb,d6=I.strong(({theme:e})=>({color:e.color.orange})),u6=I.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),d0=I.em(({theme:e})=>({color:e.textMutedColor})),f6=/(Error): (.*)\n/,p6=/at (?:(.*) )?\(?(.+)\)?/,h6=/([^@]+)?(?:\/<)?@(.+)?/,g6=/([^@]+)?@(.+)?/,Z1=({error:e})=>{if(!e)return u.createElement(o.Fragment,null,"This error has no stack or message");if(!e.stack)return u.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(f6);if(!r)return u.createElement(o.Fragment,null,t);let[,n,a]=r,l=t.split(/\n/).slice(1),[,...i]=l.map(c=>{let s=c.match(p6)||c.match(h6)||c.match(g6);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(c6.location.origin,"")}:null}).filter(Boolean);return u.createElement(o.Fragment,null,u.createElement("span",null,n),": ",u.createElement(d6,null,a),u.createElement("br",null),i.map((c,s)=>c.name?u.createElement(o.Fragment,{key:s}," ","at ",u.createElement(u6,null,c.name)," (",u.createElement(d0,null,c.location),")",u.createElement("br",null)):u.createElement(o.Fragment,{key:s}," ","at ",u.createElement(d0,null,c.location),u.createElement("br",null))))},m6=I.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),v6=I.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),b6=({label:e,children:t,...r})=>u.createElement(m6,{...r},e?u.createElement(v6,null,u.createElement("span",null,e)):null,t),y6=o.useLayoutEffect,w6=y6,x6=function(e){var t=o.useRef(e);return w6(function(){t.current=e}),t},u0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},E6=function(e,t){var r=o.useRef();return o.useCallback(function(n){e.current=n,r.current&&u0(r.current,null),r.current=t,t&&u0(t,n)},[t])},S6=E6,f0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},C6=function(e){Object.keys(f0).forEach(function(t){e.style.setProperty(t,f0[t],"important")})},p0=C6,we=null,h0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function R6(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),we||(we=document.createElement("textarea"),we.setAttribute("tabindex","-1"),we.setAttribute("aria-hidden","true"),p0(we)),we.parentNode===null&&document.body.appendChild(we);var a=e.paddingSize,l=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(m){var p=m;we.style[p]=i[p]}),p0(we),we.value=t;var s=h0(we,e);we.value=t,s=h0(we,e),we.value="x";var d=we.scrollHeight-a,f=d*r;c==="border-box"&&(f=f+a+l),s=Math.max(f,s);var g=d*n;return c==="border-box"&&(g=g+a+l),s=Math.min(g,s),[s,d]}var g0=function(){},A6=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},I6=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],_6=!!document.documentElement.currentStyle,k6=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=A6(I6,t),n=r.boxSizing;if(n==="")return null;_6&&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),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:l}},$6=k6;function J1(e,t,r){var n=x6(r);o.useLayoutEffect(function(){var a=function(l){return n.current(l)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var O6=function(e){J1(window,"resize",e)},T6=function(e){J1(document.fonts,"loadingdone",e)},M6=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],L6=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,l=e.onChange,i=l===void 0?g0:l,c=e.onHeightChange,s=c===void 0?g0:c,d=al(e,M6),f=d.value!==void 0,g=o.useRef(null),m=S6(g,t),p=o.useRef(0),v=o.useRef(),h=function(){var x=g.current,E=r&&v.current?v.current:$6(x);if(E){v.current=E;var b=R6(E,x.value||x.placeholder||"x",a,n),w=b[0],S=b[1];p.current!==w&&(p.current=w,x.style.setProperty("height",w+"px","important"),s(w,{rowHeight:S}))}},y=function(x){f||h(),i(x)};return o.useLayoutEffect(h),O6(h),T6(h),o.createElement("textarea",Y({},d,{onChange:y,ref:m}))},z6=o.forwardRef(L6),P6={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Tl=({theme:e})=>({...P6,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}}),Ml=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},Q1=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},Ll=({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{}}},B6=Object.assign(I(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement("input",{...n,ref:a})}))(Tl,Ml,Q1,Ll,{minHeight:32}),{displayName:"Input"}),F6=Object.assign(I(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement("select",{...n,ref:a})}))(Tl,Ml,Ll,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),H6=Object.assign(I(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement(z6,{...n,ref:a})}))(Tl,Ml,Q1,Ll,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Cr=Object.assign(I.form({boxSizing:"border-box",width:"100%"}),{Field:b6,Input:B6,Select:F6,Textarea:H6,Button:$t}),N6=o.lazy(()=>Rt(()=>import("./WithTooltip-KJL26V4Q-_SnEfJ06.js"),__vite__mapDeps([10,1,2,3,4,5,6,7,8]),import.meta.url).then(e=>({default:e.WithTooltip}))),j6=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(N6,{...e})),D6=o.lazy(()=>Rt(()=>import("./WithTooltip-KJL26V4Q-_SnEfJ06.js"),__vite__mapDeps([10,1,2,3,4,5,6,7,8]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),ed=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(D6,{...e})),U6=I.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),V6=I.span(),W6=I.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),G6=I.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),q6=I.div({padding:15,width:280,boxSizing:"border-box"}),Y6=({title:e,desc:t,links:r})=>u.createElement(q6,null,u.createElement(G6,null,e&&u.createElement(U6,null,e),t&&u.createElement(V6,null,t)),r&&u.createElement(W6,null,r.map(({title:n,...a})=>u.createElement(Vt,{...a,key:n},n)))),K6=I.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})),X6=({note:e,...t})=>u.createElement(K6,{...t},e),Z6=I(({active:e,loading:t,disabled:r,...n})=>u.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)}:{}),J6=I.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),Q6=I.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),ew=I.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),tw=I.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),rw=I.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"}:{}),nw=Yt(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}),aw=({loading:e=!1,title:t=u.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:a=!1,disabled:l=!1,isIndented:i,href:c=null,onClick:s=null,icon:d,LinkWrapper:f=null,...g})=>{let m=nw(s,c,f),p={active:a,disabled:l};return u.createElement(rw,{...p,...g,...m},d&&u.createElement(tw,{...p},d),t||r?u.createElement(Q6,{isIndented:!d&&i},t&&u.createElement(Z6,{...p,loading:e},t),r&&u.createElement(ew,{...p},r)):null,n&&u.createElement(J6,{...p},n))},td=aw,ow=I.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),lw=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:a,...l}=e,{title:i,href:c,active:s}=l,d=o.useCallback(g=>{r(g,l)},[r]),f=!!r;return u.createElement(td,{title:i,active:s,href:c,id:`list-item-${n}`,LinkWrapper:t,isIndented:a,...l,...f?{onClick:d}:{}})},rd=({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return u.createElement(ow,null,e.map(({isGatsby:n,...a})=>u.createElement(lw,{key:a.id,LinkWrapper:n?t:null,isIndented:r,...a})))},iw=e=>typeof e.props.href=="string",sw=e=>typeof e.props.href!="string";function cw({children:e,...t},r){let n={props:t,ref:r};if(iw(n))return u.createElement("a",{ref:n.ref,...n.props},e);if(sw(n))return u.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var nd=o.forwardRef(cw);nd.displayName="ButtonOrLink";var sn=I(nd,{shouldForwardProp:Ko})({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}});sn.displayName="TabButton";var dw=I.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),uw=I.div(()=>({marginTop:6,padding:7,height:28})),fw=()=>u.createElement(uw,null,u.createElement(dw,null)),To=I.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}}:{});To.displayName="Side";var pw=({children:e,className:t,scrollable:r})=>r?u.createElement(da,{vertical:!1,className:t},e):u.createElement("div",{className:t},e),zl=I(pw)(({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}:{});zl.displayName="Bar";var hw=I.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),ga=({children:e,backgroundColor:t,className:r,...n})=>{let[a,l]=o.Children.toArray(e);return u.createElement(zl,{className:`sb-bar ${r}`,...n},u.createElement(hw,{bgColor:t},u.createElement(To,{scrollable:n.scrollable,left:!0},a),l?u.createElement(To,{right:!0},l):null))};ga.displayName="FlexBar";var ad=I.div(({active:e})=>e?{display:"block"}:{display:"none"}),gw=e=>o.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>u.createElement(ad,{active:i,role:"tabpanel"},l)}}),mw=I.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"})),vw=I(sn)(({active:e,theme:t,preActive:r})=>` +${t}`);let r=t.match(f6);if(!r)return u.createElement(o.Fragment,null,t);let[,n,a]=r,l=t.split(/\n/).slice(1),[,...i]=l.map(c=>{let s=c.match(p6)||c.match(h6)||c.match(g6);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(c6.location.origin,"")}:null}).filter(Boolean);return u.createElement(o.Fragment,null,u.createElement("span",null,n),": ",u.createElement(d6,null,a),u.createElement("br",null),i.map((c,s)=>c.name?u.createElement(o.Fragment,{key:s}," ","at ",u.createElement(u6,null,c.name)," (",u.createElement(d0,null,c.location),")",u.createElement("br",null)):u.createElement(o.Fragment,{key:s}," ","at ",u.createElement(d0,null,c.location),u.createElement("br",null))))},m6=I.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),v6=I.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),b6=({label:e,children:t,...r})=>u.createElement(m6,{...r},e?u.createElement(v6,null,u.createElement("span",null,e)):null,t),y6=o.useLayoutEffect,w6=y6,x6=function(e){var t=o.useRef(e);return w6(function(){t.current=e}),t},u0=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},E6=function(e,t){var r=o.useRef();return o.useCallback(function(n){e.current=n,r.current&&u0(r.current,null),r.current=t,t&&u0(t,n)},[t])},S6=E6,f0={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},C6=function(e){Object.keys(f0).forEach(function(t){e.style.setProperty(t,f0[t],"important")})},p0=C6,we=null,h0=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function R6(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),we||(we=document.createElement("textarea"),we.setAttribute("tabindex","-1"),we.setAttribute("aria-hidden","true"),p0(we)),we.parentNode===null&&document.body.appendChild(we);var a=e.paddingSize,l=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(m){var p=m;we.style[p]=i[p]}),p0(we),we.value=t;var s=h0(we,e);we.value=t,s=h0(we,e),we.value="x";var d=we.scrollHeight-a,f=d*r;c==="border-box"&&(f=f+a+l),s=Math.max(f,s);var g=d*n;return c==="border-box"&&(g=g+a+l),s=Math.min(g,s),[s,d]}var g0=function(){},A6=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},I6=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],_6=!!document.documentElement.currentStyle,k6=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=A6(I6,t),n=r.boxSizing;if(n==="")return null;_6&&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),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:l}},$6=k6;function J1(e,t,r){var n=x6(r);o.useLayoutEffect(function(){var a=function(l){return n.current(l)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var O6=function(e){J1(window,"resize",e)},T6=function(e){J1(document.fonts,"loadingdone",e)},M6=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],L6=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,l=e.onChange,i=l===void 0?g0:l,c=e.onHeightChange,s=c===void 0?g0:c,d=al(e,M6),f=d.value!==void 0,g=o.useRef(null),m=S6(g,t),p=o.useRef(0),v=o.useRef(),h=function(){var x=g.current,E=r&&v.current?v.current:$6(x);if(E){v.current=E;var b=R6(E,x.value||x.placeholder||"x",a,n),w=b[0],S=b[1];p.current!==w&&(p.current=w,x.style.setProperty("height",w+"px","important"),s(w,{rowHeight:S}))}},y=function(x){f||h(),i(x)};return o.useLayoutEffect(h),O6(h),T6(h),o.createElement("textarea",Y({},d,{onChange:y,ref:m}))},z6=o.forwardRef(L6),P6={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Tl=({theme:e})=>({...P6,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}}),Ml=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},Q1=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},Ll=({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{}}},B6=Object.assign(I(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement("input",{...n,ref:a})}))(Tl,Ml,Q1,Ll,{minHeight:32}),{displayName:"Input"}),F6=Object.assign(I(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement("select",{...n,ref:a})}))(Tl,Ml,Ll,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),H6=Object.assign(I(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement(z6,{...n,ref:a})}))(Tl,Ml,Q1,Ll,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Cr=Object.assign(I.form({boxSizing:"border-box",width:"100%"}),{Field:b6,Input:B6,Select:F6,Textarea:H6,Button:$t}),N6=o.lazy(()=>Rt(()=>import("./WithTooltip-KJL26V4Q-DnVe0vjQ.js"),__vite__mapDeps([10,1,2,3,4,5,6,7,8]),import.meta.url).then(e=>({default:e.WithTooltip}))),j6=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(N6,{...e})),D6=o.lazy(()=>Rt(()=>import("./WithTooltip-KJL26V4Q-DnVe0vjQ.js"),__vite__mapDeps([10,1,2,3,4,5,6,7,8]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),ed=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(D6,{...e})),U6=I.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),V6=I.span(),W6=I.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),G6=I.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),q6=I.div({padding:15,width:280,boxSizing:"border-box"}),Y6=({title:e,desc:t,links:r})=>u.createElement(q6,null,u.createElement(G6,null,e&&u.createElement(U6,null,e),t&&u.createElement(V6,null,t)),r&&u.createElement(W6,null,r.map(({title:n,...a})=>u.createElement(Vt,{...a,key:n},n)))),K6=I.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})),X6=({note:e,...t})=>u.createElement(K6,{...t},e),Z6=I(({active:e,loading:t,disabled:r,...n})=>u.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)}:{}),J6=I.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),Q6=I.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),ew=I.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),tw=I.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),rw=I.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"}:{}),nw=Yt(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}),aw=({loading:e=!1,title:t=u.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:a=!1,disabled:l=!1,isIndented:i,href:c=null,onClick:s=null,icon:d,LinkWrapper:f=null,...g})=>{let m=nw(s,c,f),p={active:a,disabled:l};return u.createElement(rw,{...p,...g,...m},d&&u.createElement(tw,{...p},d),t||r?u.createElement(Q6,{isIndented:!d&&i},t&&u.createElement(Z6,{...p,loading:e},t),r&&u.createElement(ew,{...p},r)):null,n&&u.createElement(J6,{...p},n))},td=aw,ow=I.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),lw=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:a,...l}=e,{title:i,href:c,active:s}=l,d=o.useCallback(g=>{r(g,l)},[r]),f=!!r;return u.createElement(td,{title:i,active:s,href:c,id:`list-item-${n}`,LinkWrapper:t,isIndented:a,...l,...f?{onClick:d}:{}})},rd=({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return u.createElement(ow,null,e.map(({isGatsby:n,...a})=>u.createElement(lw,{key:a.id,LinkWrapper:n?t:null,isIndented:r,...a})))},iw=e=>typeof e.props.href=="string",sw=e=>typeof e.props.href!="string";function cw({children:e,...t},r){let n={props:t,ref:r};if(iw(n))return u.createElement("a",{ref:n.ref,...n.props},e);if(sw(n))return u.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var nd=o.forwardRef(cw);nd.displayName="ButtonOrLink";var sn=I(nd,{shouldForwardProp:Ko})({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}});sn.displayName="TabButton";var dw=I.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),uw=I.div(()=>({marginTop:6,padding:7,height:28})),fw=()=>u.createElement(uw,null,u.createElement(dw,null)),To=I.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}}:{});To.displayName="Side";var pw=({children:e,className:t,scrollable:r})=>r?u.createElement(da,{vertical:!1,className:t},e):u.createElement("div",{className:t},e),zl=I(pw)(({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}:{});zl.displayName="Bar";var hw=I.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),ga=({children:e,backgroundColor:t,className:r,...n})=>{let[a,l]=o.Children.toArray(e);return u.createElement(zl,{className:`sb-bar ${r}`,...n},u.createElement(hw,{bgColor:t},u.createElement(To,{scrollable:n.scrollable,left:!0},a),l?u.createElement(To,{right:!0},l):null))};ga.displayName="FlexBar";var ad=I.div(({active:e})=>e?{display:"block"}:{display:"none"}),gw=e=>o.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>u.createElement(ad,{active:i,role:"tabpanel"},l)}}),mw=I.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"})),vw=I(sn)(({active:e,theme:t,preActive:r})=>` color: ${r||e?t.barSelectedColor:t.barTextColor}; .addon-collapsible-icon { color: ${r||e?t.barSelectedColor:t.barTextColor}; @@ -498,7 +498,7 @@ ${t}`);let r=t.match(f6);if(!r)return u.createElement(o.Fragment,null,t);let[,n, ${Ye(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Ft(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Ft(.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 ${ut(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),pu=I.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),ek=I(pu)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),tk=I.div({display:"flex",alignItems:"center",width:"100%"});function rk(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 nk=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:c,argType:s})=>{var p;let d=v=>{r(p_(v.target.value))},f=t!==void 0,g=o.useMemo(()=>rk(l),[l]),m=!!((p=s==null?void 0:s.table)!=null&&p.readonly);return u.createElement(tk,{"aria-readonly":m},u.createElement(pu,null,n),u.createElement(Q_,{id:Fe(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:l,onFocus:c,onBlur:i}),u.createElement(ek,{numberOFDecimalsPlaces:g,max:a},f?t.toFixed(g):"--"," / ",a))},ak=I.label({display:"flex"}),ok=I.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),lk=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:i})=>{var p;let c=v=>{r(v.target.value)},s=!!((p=i==null?void 0:i.table)!=null&&p.readonly),[d,f]=o.useState(!1),g=o.useCallback(()=>{r(""),f(!0)},[f]);if(t===void 0)return u.createElement($t,{variant:"outline",size:"medium",disabled:s,id:Jn(e),onClick:g},"Set string");let m=typeof t=="string";return u.createElement(ak,null,u.createElement(Cr.Textarea,{id:Fe(e),maxLength:l,onChange:c,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:m?null:"error",name:e,value:m?t:"",onFocus:n,onBlur:a}),l&&u.createElement(ok,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},ik=I(Cr.Input)({padding:10});function sk(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var ck=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var s;let l=o.useRef(null),i=(s=a==null?void 0:a.control)==null?void 0:s.readOnly;function c(d){if(!d.target.files)return;let f=Array.from(d.target.files).map(g=>URL.createObjectURL(g));e(f),sk(n)}return o.useEffect(()=>{n==null&&l.current&&(l.current.value=null)},[n,t]),u.createElement(ik,{ref:l,id:Fe(t),type:"file",name:t,multiple:!0,disabled:i,onChange:c,accept:r,size:"flex"})},dk=o.lazy(()=>Rt(()=>import("./Color-PRSJMWNM-Ct1T2eB-.js"),__vite__mapDeps([11,2,7,1,3,4,5,6,8]),import.meta.url)),uk=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(dk,{...e})),fk={array:es,object:es,boolean:o_,color:uk,date:u_,number:g_,check:lr,"inline-check":lr,radio:lr,"inline-radio":lr,select:lr,"multi-select":lr,range:nk,text:lk,file:ck},ts=()=>u.createElement(u.Fragment,null,"-"),pk=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var h;let{key:a,control:l}=e,[i,c]=o.useState(!1),[s,d]=o.useState({value:t});o.useEffect(()=>{i||d({value:t})},[i,t]);let f=o.useCallback(y=>(d({value:y}),r({[a]:y}),y),[r,a]),g=o.useCallback(()=>c(!1),[]),m=o.useCallback(()=>c(!0),[]);if(!l||l.disable){let y=(l==null?void 0:l.disable)!==!0&&((h=e==null?void 0:e.type)==null?void 0:h.name)!=="function";return n&&y?u.createElement(Vt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):u.createElement(ts,null)}let p={name:a,argType:e,value:s.value,onChange:f,onBlur:g,onFocus:m},v=fk[l.type]||ts;return u.createElement(v,{...p,...l,controlType:l.type})},hk=I.span({fontWeight:"bold"}),gk=I.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),mk=I.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...gt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),vk=I.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?4:0})),bk=I.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),yk=I.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),wk=e=>e&&{summary:typeof e=="string"?e:e.name},Cn=e=>{var h;let[t,r]=o.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:c}=e,{name:s,description:d}=n,f=n.table||{},g=f.type||wk(n.type),m=f.defaultValue||n.defaultValue,p=(h=n.type)==null?void 0:h.required,v=d!=null&&d!=="";return u.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},u.createElement(yk,{expandable:i},u.createElement(hk,null,s),p?u.createElement(gk,{title:"Required"},"*"):null),l?null:u.createElement("td",null,v&&u.createElement(mk,null,u.createElement(Ld,null,d)),f.jsDocTags!=null?u.createElement(u.Fragment,null,u.createElement(bk,{hasDescription:v},u.createElement(oo,{value:g,initialExpandedArgs:c})),u.createElement(GI,{tags:f.jsDocTags})):u.createElement(vk,{hasDescription:v},u.createElement(oo,{value:g,initialExpandedArgs:c}))),l?null:u.createElement("td",null,u.createElement(oo,{value:m,initialExpandedArgs:c})),a?u.createElement("td",null,u.createElement(pk,{...e,isHovered:t})):null)},xk=I(Bc)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?te(.25,e.color.defaultText):te(.3,e.color.defaultText),border:"none",display:"inline-block"})),Ek=I(El)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?te(.25,e.color.defaultText):te(.3,e.color.defaultText),border:"none",display:"inline-block"})),Sk=I.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Ck=I.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"?te(.4,e.color.defaultText):te(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Rk=I.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Ak=I.td(()=>({position:"relative"})),Ik=I.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Ft(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),rs=I.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"})),io=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=o.useState(n),c=e==="subsection"?Rk:Ck,s=(r==null?void 0:r.length)||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",f=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return u.createElement(u.Fragment,null,u.createElement(Ik,{title:f},u.createElement(c,{colSpan:1},u.createElement(rs,{onClick:g=>i(!l),tabIndex:0},f),u.createElement(Sk,null,l?u.createElement(xk,null):u.createElement(Ek,null),t)),u.createElement(Ak,{colSpan:a-1},u.createElement(rs,{onClick:g=>i(!l),tabIndex:-1,style:{outline:"none"}},f),l?null:d)),l?r:null)},Rn=I.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ge=I.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ce=I.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})),me=[2,4,2,2],_k=()=>u.createElement(u.Fragment,null,u.createElement(Rn,null,u.createElement(ge,{numColumn:me[0]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[1]},u.createElement(ce,{width:"30%"})),u.createElement(ge,{numColumn:me[2]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[3]},u.createElement(ce,{width:"60%"}))),u.createElement(Rn,null,u.createElement(ge,{numColumn:me[0]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[1]},u.createElement(ce,{width:"80%"}),u.createElement(ce,{width:"30%"})),u.createElement(ge,{numColumn:me[2]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[3]},u.createElement(ce,{width:"60%"}))),u.createElement(Rn,null,u.createElement(ge,{numColumn:me[0]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[1]},u.createElement(ce,{width:"80%"}),u.createElement(ce,{width:"30%"})),u.createElement(ge,{numColumn:me[2]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[3]},u.createElement(ce,{width:"60%"}))),u.createElement(Rn,null,u.createElement(ge,{numColumn:me[0]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[1]},u.createElement(ce,{width:"80%"}),u.createElement(ce,{width:"30%"})),u.createElement(ge,{numColumn:me[2]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[3]},u.createElement(ce,{width:"60%"})))),kk=I.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"})),$k=I.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Ok=I.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Tk=({inAddonPanel:e})=>{let[t,r]=o.useState(!0);return o.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:u.createElement(kk,{inAddonPanel:e},u.createElement(Pl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:u.createElement(u.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:u.createElement($k,null,e&&u.createElement(u.Fragment,null,u.createElement(Vt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},u.createElement(Tc,null)," Watch 5m video"),u.createElement(Ok,null),u.createElement(Vt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},u.createElement(Dn,null)," Read docs")),!e&&u.createElement(Vt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},u.createElement(Dn,null)," Learn how to set that up"))}))},Mk=I.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"?te(.25,e.color.defaultText):te(.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}}}}})),Lk=I(Ct)(({theme:e})=>({margin:"-4px -12px -4px 0"})),zk=I.span({display:"flex",justifyContent:"space-between"}),Pk={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},Bk=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:c,subcategory:s}=(i==null?void 0:i.table)||{};if(c){let d=r.sections[c]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push({key:l,...i});else{let f=d.subsections[s]||[];f.push({key:l,...i}),d.subsections[s]=f}r.sections[c]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push({key:l,...i}),r.ungroupedSubsections[s]=d}else r.ungrouped.push({key:l,...i})});let n=Pk[t],a=l=>n?Object.keys(l).reduce((i,c)=>({...i,[c]:l[c].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},Fk=(e,t,r)=>{try{return _u(e,t,r)}catch(n){return gI.warn(n.message),!1}},Uo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:l,sort:i="none",isLoading:c}=e;if("error"in e){let{error:E}=e;return u.createElement(Xd,null,E," ",u.createElement(Vt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},u.createElement(Dn,null)," Read the docs"))}if(c)return u.createElement(_k,null);let{rows:s,args:d,globals:f}="rows"in e&&e,g=Bk(g9(s,E=>{var b;return!((b=E==null?void 0:E.table)!=null&&b.disable)&&Fk(E,d||{},f||{})}),i),m=g.ungrouped.length===0,p=Object.entries(g.sections).length===0,v=Object.entries(g.ungroupedSubsections).length===0;if(m&&p&&v)return u.createElement(Tk,{inAddonPanel:a});let h=1;t&&(h+=1),n||(h+=2);let y=Object.keys(g.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:l};return u.createElement(Ol,null,u.createElement(Mk,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},u.createElement("thead",{className:"docblock-argstable-head"},u.createElement("tr",null,u.createElement("th",null,u.createElement("span",null,"Name")),n?null:u.createElement("th",null,u.createElement("span",null,"Description")),n?null:u.createElement("th",null,u.createElement("span",null,"Default")),t?u.createElement("th",null,u.createElement(zk,null,"Control"," ",!c&&r&&u.createElement(Lk,{onClick:()=>r(),title:"Reset controls"},u.createElement(Hc,{"aria-hidden":!0})))):null)),u.createElement("tbody",{className:"docblock-argstable-body"},g.ungrouped.map(E=>u.createElement(Cn,{key:E.key,row:E,arg:d&&d[E.key],...x})),Object.entries(g.ungroupedSubsections).map(([E,b])=>u.createElement(io,{key:E,label:E,level:"subsection",colSpan:h},b.map(w=>u.createElement(Cn,{key:w.key,row:w,arg:d&&d[w.key],expandable:y,...x})))),Object.entries(g.sections).map(([E,b])=>u.createElement(io,{key:E,label:E,level:"section",colSpan:h},b.ungrouped.map(w=>u.createElement(Cn,{key:w.key,row:w,arg:d&&d[w.key],...x})),Object.entries(b.subsections).map(([w,S])=>u.createElement(io,{key:w,label:w,level:"subsection",colSpan:h},S.map(C=>u.createElement(Cn,{key:C.key,row:C,arg:d&&d[C.key],expandable:y,...x})))))))))},Hk=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?u.createElement(Uo,{...r[0][1],...t}):u.createElement(Hl,null,r.map((n,a)=>{let[l,i]=n,c=`prop_table_div_${l}`,s="div",d=a===0?t:{sort:t.sort};return u.createElement(s,{key:c,id:c,title:l},({active:f})=>f?u.createElement(Uo,{key:`prop_table_${l}`,...i,...d}):null)}))};I.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}));I.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});I.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});I.div(ne,({theme:e})=>({...Ea(e),margin:"25px 0 40px",padding:"30px 20px"}));I.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));I.div(({theme:e})=>({color:e.base==="light"?te(.2,e.color.defaultText):te(.6,e.color.defaultText)}));I.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});I.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"?te(.4,e.color.defaultText):te(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));I.div({display:"flex",flexDirection:"row"});I.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));I.div(({theme:e})=>({...Ea(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"}));I.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});I.div({flex:1,display:"flex",flexDirection:"row"});I.div({display:"flex",alignItems:"flex-start"});I.div({flex:"0 0 30%"});I.div({flex:1});I.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}));I.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));I.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));I.div(({theme:e})=>({...Ea(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));I.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});I.div({display:"flex",flexFlow:"row wrap"});var Nk=e=>`anchor--${e}`,jk=({storyId:e,children:t})=>u.createElement("div",{id:Nk(e),className:"sb-anchor"},t);$e&&$e.__DOCS_CONTEXT__===void 0&&($e.__DOCS_CONTEXT__=o.createContext(null),$e.__DOCS_CONTEXT__.displayName="DocsContext");var lt=$e?$e.__DOCS_CONTEXT__:o.createContext(null),Zt=(e,t)=>o.useContext(lt).resolveOf(e,t),Dk=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),Uk=e=>{if(e)return typeof e=="string"?e.includes("-")?Dk(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function Vk(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function hu(e){return nI(e,{allowFunction:!1})}var gu=o.createContext({sources:{}}),mu="--unknown--",Wk=({children:e,channel:t})=>{let[r,n]=o.useState({});return o.useEffect(()=>{let a=(l,i=null,c=!1)=>{let{id:s,args:d=void 0,source:f,format:g}=typeof l=="string"?{id:l,source:i,format:c}:l,m=d?hu(d):mu;n(p=>({...p,[s]:{...p[s],[m]:{code:f,format:g}}}))};return t.on(ii,a),()=>t.off(ii,a)},[]),u.createElement(gu.Provider,{value:{sources:r}},e)},Gk=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[hu(t)])||(a==null?void 0:a[mu])||{code:""}},qk=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var s,d;let{__isArgsStory:a}=t.parameters,l=((s=t.parameters.docs)==null?void 0:s.source)||{},i=r||l.type||Aa.AUTO;if(l.code!==void 0)return l.code;let c=i===Aa.DYNAMIC||i===Aa.AUTO&&e&&a?e:l.originalSource||"";return((d=n??l.transform)==null?void 0:d(c,t))||c},Yk=(e,t,r)=>{var p,v,h,y;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 l=((v=(p=n==null?void 0:n.parameters)==null?void 0:p.docs)==null?void 0:v.source)||{},{code:i}=e,c=e.format??l.format,s=e.language??l.language??"jsx",d=e.dark??l.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:c,language:s,dark:d};let f=t.getStoryContext(n),g=e.__forceInitialArgs?f.initialArgs:f.unmappedArgs,m=Gk(n.id,g,r);return c=m.format??((y=(h=n.parameters.docs)==null?void 0:h.source)==null?void 0:y.format)??!1,{code:qk({snippet:m.code,storyContext:{...f,args:g},typeFromProps:e.type,transformFromProps:e.transform}),format:c,language:s,dark:d}};function Kk(e,t){let r=Xk([e],t);return r&&r[0]}function Xk(e,t){let[r,n]=o.useState({});return o.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Zk=(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},Jk=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let c=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:c,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Qk=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=o.useContext(lt),r=Zk(e,t),n=Kk(r,t);if(!n)return u.createElement(Qd,null);let a=Jk(e,n,t);return a?u.createElement(FI,{...a}):null},e$=e=>{var m,p,v,h,y,x,E,b,w,S;let t=o.useContext(lt),r=o.useContext(gu),{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:l}=Zt(n||"story",["story"]),i=Yk({...a,...n&&{of:n}},t,r),c=e.layout??l.parameters.layout??((p=(m=l.parameters.docs)==null?void 0:m.canvas)==null?void 0:p.layout)??"padded",s=e.withToolbar??((h=(v=l.parameters.docs)==null?void 0:v.canvas)==null?void 0:h.withToolbar)??!1,d=e.additionalActions??((x=(y=l.parameters.docs)==null?void 0:y.canvas)==null?void 0:x.additionalActions),f=e.sourceState??((b=(E=l.parameters.docs)==null?void 0:E.canvas)==null?void 0:b.sourceState)??"hidden",g=e.className??((S=(w=l.parameters.docs)==null?void 0:w.canvas)==null?void 0:S.className);return u.createElement(eu,{withSource:f==="none"?void 0:i,isExpanded:f==="shown",withToolbar:s,additionalActions:d,className:g,layout:c},u.createElement(Qk,{of:n||l.moduleExport,meta:e.meta,...e.story}))},t$=(e,t)=>{let r=t.getStoryContext(e),[n,a]=o.useState(r.globals);return o.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(U0,l),()=>t.channel.off(U0,l)},[t.channel]),[n]},r$=(e,t)=>{let r=n$(e,t);if(!r)throw new Error("No result when story was defined");return r},n$=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=o.useState(r.args);o.useEffect(()=>{let s=d=>{d.storyId===n&&l(d.args)};return t.channel.on(V0,s),()=>t.channel.off(V0,s)},[n,t.channel]);let i=o.useCallback(s=>t.channel.emit(mI,{storyId:n,updatedArgs:s}),[n,t.channel]),c=o.useCallback(s=>t.channel.emit(vI,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,c]};function a$(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var o$=e=>{var w;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(lt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:l,component:i,subcomponents:c}=n,s=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??s.include,f=e.exclude??s.exclude,g=e.sort??s.sort,[m,p,v]=r$(n,r),[h]=t$(n,r),y=D0(l,d,f);if(!(c&&Object.keys(c).length>0))return Object.keys(y).length>0||Object.keys(m).length>0?u.createElement(Uo,{rows:y,sort:g,args:m,globals:h,updateArgs:p,resetArgs:v}):null;let x=Uk(i),E=Object.fromEntries(Object.entries(c).map(([S,C])=>[S,{rows:D0(a$(C,a),d,f),sort:g}])),b={[x]:{rows:y,sort:g},...E};return u.createElement(Hk,{tabs:b,sort:g,args:m,globals:h,updateArgs:p,resetArgs:v})},{document:vu}=$e,bu=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return u.createElement(_l,null,t);let n=e&&e.split("-");return u.createElement(Zd,{language:n&&n[1]||"text",format:!1,code:t,...r})};function ei(e,t){e.channel.emit(bI,t)}var Vo=id.a,l$=({hash:e,children:t})=>{let r=o.useContext(lt);return u.createElement(Vo,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);vu.getElementById(a)&&ei(r,e)}},t)},yu=e=>{let{href:t,target:r,children:n,...a}=e,l=o.useContext(lt);return!t||r==="_blank"||/^https?:\/\//.test(t)?u.createElement(Vo,{...e}):t.startsWith("#")?u.createElement(l$,{hash:t},n):u.createElement(Vo,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),ei(l,i.currentTarget.getAttribute("href")))},target:r,...a},n)},wu=["h1","h2","h3","h4","h5","h6"],i$=wu.reduce((e,t)=>({...e,[t]:I(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),s$=I.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),c$=({as:e,id:t,children:r,...n})=>{let a=o.useContext(lt),l=i$[e],i=`#${t}`;return u.createElement(l,{id:t,...n},u.createElement(s$,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:c=>{vu.getElementById(t)&&ei(a,i)}},u.createElement(Pc,null)),r)},ti=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return u.createElement(c$,{as:t,id:r,...a},n);let l=t,{as:i,...c}=e;return u.createElement(l,{...re(c,t)})},xu=wu.reduce((e,t)=>({...e,[t]:r=>u.createElement(ti,{as:t,...r})}),{}),d$=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Xu`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${Ft(.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 ${ut(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),pu=I.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),ek=I(pu)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),tk=I.div({display:"flex",alignItems:"center",width:"100%"});function rk(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 nk=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:c,argType:s})=>{var p;let d=v=>{r(p_(v.target.value))},f=t!==void 0,g=o.useMemo(()=>rk(l),[l]),m=!!((p=s==null?void 0:s.table)!=null&&p.readonly);return u.createElement(tk,{"aria-readonly":m},u.createElement(pu,null,n),u.createElement(Q_,{id:Fe(e),type:"range",disabled:m,onChange:d,name:e,value:t,min:n,max:a,step:l,onFocus:c,onBlur:i}),u.createElement(ek,{numberOFDecimalsPlaces:g,max:a},f?t.toFixed(g):"--"," / ",a))},ak=I.label({display:"flex"}),ok=I.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),lk=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:i})=>{var p;let c=v=>{r(v.target.value)},s=!!((p=i==null?void 0:i.table)!=null&&p.readonly),[d,f]=o.useState(!1),g=o.useCallback(()=>{r(""),f(!0)},[f]);if(t===void 0)return u.createElement($t,{variant:"outline",size:"medium",disabled:s,id:Jn(e),onClick:g},"Set string");let m=typeof t=="string";return u.createElement(ak,null,u.createElement(Cr.Textarea,{id:Fe(e),maxLength:l,onChange:c,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:m?null:"error",name:e,value:m?t:"",onFocus:n,onBlur:a}),l&&u.createElement(ok,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},ik=I(Cr.Input)({padding:10});function sk(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var ck=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var s;let l=o.useRef(null),i=(s=a==null?void 0:a.control)==null?void 0:s.readOnly;function c(d){if(!d.target.files)return;let f=Array.from(d.target.files).map(g=>URL.createObjectURL(g));e(f),sk(n)}return o.useEffect(()=>{n==null&&l.current&&(l.current.value=null)},[n,t]),u.createElement(ik,{ref:l,id:Fe(t),type:"file",name:t,multiple:!0,disabled:i,onChange:c,accept:r,size:"flex"})},dk=o.lazy(()=>Rt(()=>import("./Color-PRSJMWNM-Ckos_97c.js"),__vite__mapDeps([11,2,7,1,3,4,5,6,8]),import.meta.url)),uk=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(dk,{...e})),fk={array:es,object:es,boolean:o_,color:uk,date:u_,number:g_,check:lr,"inline-check":lr,radio:lr,"inline-radio":lr,select:lr,"multi-select":lr,range:nk,text:lk,file:ck},ts=()=>u.createElement(u.Fragment,null,"-"),pk=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var h;let{key:a,control:l}=e,[i,c]=o.useState(!1),[s,d]=o.useState({value:t});o.useEffect(()=>{i||d({value:t})},[i,t]);let f=o.useCallback(y=>(d({value:y}),r({[a]:y}),y),[r,a]),g=o.useCallback(()=>c(!1),[]),m=o.useCallback(()=>c(!0),[]);if(!l||l.disable){let y=(l==null?void 0:l.disable)!==!0&&((h=e==null?void 0:e.type)==null?void 0:h.name)!=="function";return n&&y?u.createElement(Vt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):u.createElement(ts,null)}let p={name:a,argType:e,value:s.value,onChange:f,onBlur:g,onFocus:m},v=fk[l.type]||ts;return u.createElement(v,{...p,...l,controlType:l.type})},hk=I.span({fontWeight:"bold"}),gk=I.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),mk=I.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...gt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),vk=I.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?4:0})),bk=I.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?te(.1,e.color.defaultText):te(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),yk=I.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),wk=e=>e&&{summary:typeof e=="string"?e:e.name},Cn=e=>{var h;let[t,r]=o.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:c}=e,{name:s,description:d}=n,f=n.table||{},g=f.type||wk(n.type),m=f.defaultValue||n.defaultValue,p=(h=n.type)==null?void 0:h.required,v=d!=null&&d!=="";return u.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},u.createElement(yk,{expandable:i},u.createElement(hk,null,s),p?u.createElement(gk,{title:"Required"},"*"):null),l?null:u.createElement("td",null,v&&u.createElement(mk,null,u.createElement(Ld,null,d)),f.jsDocTags!=null?u.createElement(u.Fragment,null,u.createElement(bk,{hasDescription:v},u.createElement(oo,{value:g,initialExpandedArgs:c})),u.createElement(GI,{tags:f.jsDocTags})):u.createElement(vk,{hasDescription:v},u.createElement(oo,{value:g,initialExpandedArgs:c}))),l?null:u.createElement("td",null,u.createElement(oo,{value:m,initialExpandedArgs:c})),a?u.createElement("td",null,u.createElement(pk,{...e,isHovered:t})):null)},xk=I(Bc)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?te(.25,e.color.defaultText):te(.3,e.color.defaultText),border:"none",display:"inline-block"})),Ek=I(El)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?te(.25,e.color.defaultText):te(.3,e.color.defaultText),border:"none",display:"inline-block"})),Sk=I.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Ck=I.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"?te(.4,e.color.defaultText):te(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),Rk=I.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Ak=I.td(()=>({position:"relative"})),Ik=I.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Ft(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),rs=I.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"})),io=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=o.useState(n),c=e==="subsection"?Rk:Ck,s=(r==null?void 0:r.length)||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",f=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return u.createElement(u.Fragment,null,u.createElement(Ik,{title:f},u.createElement(c,{colSpan:1},u.createElement(rs,{onClick:g=>i(!l),tabIndex:0},f),u.createElement(Sk,null,l?u.createElement(xk,null):u.createElement(Ek,null),t)),u.createElement(Ak,{colSpan:a-1},u.createElement(rs,{onClick:g=>i(!l),tabIndex:-1,style:{outline:"none"}},f),l?null:d)),l?r:null)},Rn=I.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ge=I.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ce=I.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})),me=[2,4,2,2],_k=()=>u.createElement(u.Fragment,null,u.createElement(Rn,null,u.createElement(ge,{numColumn:me[0]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[1]},u.createElement(ce,{width:"30%"})),u.createElement(ge,{numColumn:me[2]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[3]},u.createElement(ce,{width:"60%"}))),u.createElement(Rn,null,u.createElement(ge,{numColumn:me[0]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[1]},u.createElement(ce,{width:"80%"}),u.createElement(ce,{width:"30%"})),u.createElement(ge,{numColumn:me[2]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[3]},u.createElement(ce,{width:"60%"}))),u.createElement(Rn,null,u.createElement(ge,{numColumn:me[0]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[1]},u.createElement(ce,{width:"80%"}),u.createElement(ce,{width:"30%"})),u.createElement(ge,{numColumn:me[2]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[3]},u.createElement(ce,{width:"60%"}))),u.createElement(Rn,null,u.createElement(ge,{numColumn:me[0]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[1]},u.createElement(ce,{width:"80%"}),u.createElement(ce,{width:"30%"})),u.createElement(ge,{numColumn:me[2]},u.createElement(ce,{width:"60%"})),u.createElement(ge,{numColumn:me[3]},u.createElement(ce,{width:"60%"})))),kk=I.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"})),$k=I.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Ok=I.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Tk=({inAddonPanel:e})=>{let[t,r]=o.useState(!0);return o.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:u.createElement(kk,{inAddonPanel:e},u.createElement(Pl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:u.createElement(u.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:u.createElement($k,null,e&&u.createElement(u.Fragment,null,u.createElement(Vt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},u.createElement(Tc,null)," Watch 5m video"),u.createElement(Ok,null),u.createElement(Vt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},u.createElement(Dn,null)," Read docs")),!e&&u.createElement(Vt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},u.createElement(Dn,null)," Learn how to set that up"))}))},Mk=I.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"?te(.25,e.color.defaultText):te(.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}}}}})),Lk=I(Ct)(({theme:e})=>({margin:"-4px -12px -4px 0"})),zk=I.span({display:"flex",justifyContent:"space-between"}),Pk={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},Bk=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:c,subcategory:s}=(i==null?void 0:i.table)||{};if(c){let d=r.sections[c]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push({key:l,...i});else{let f=d.subsections[s]||[];f.push({key:l,...i}),d.subsections[s]=f}r.sections[c]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push({key:l,...i}),r.ungroupedSubsections[s]=d}else r.ungrouped.push({key:l,...i})});let n=Pk[t],a=l=>n?Object.keys(l).reduce((i,c)=>({...i,[c]:l[c].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},Fk=(e,t,r)=>{try{return _u(e,t,r)}catch(n){return gI.warn(n.message),!1}},Uo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:l,sort:i="none",isLoading:c}=e;if("error"in e){let{error:E}=e;return u.createElement(Xd,null,E," ",u.createElement(Vt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},u.createElement(Dn,null)," Read the docs"))}if(c)return u.createElement(_k,null);let{rows:s,args:d,globals:f}="rows"in e&&e,g=Bk(g9(s,E=>{var b;return!((b=E==null?void 0:E.table)!=null&&b.disable)&&Fk(E,d||{},f||{})}),i),m=g.ungrouped.length===0,p=Object.entries(g.sections).length===0,v=Object.entries(g.ungroupedSubsections).length===0;if(m&&p&&v)return u.createElement(Tk,{inAddonPanel:a});let h=1;t&&(h+=1),n||(h+=2);let y=Object.keys(g.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:l};return u.createElement(Ol,null,u.createElement(Mk,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},u.createElement("thead",{className:"docblock-argstable-head"},u.createElement("tr",null,u.createElement("th",null,u.createElement("span",null,"Name")),n?null:u.createElement("th",null,u.createElement("span",null,"Description")),n?null:u.createElement("th",null,u.createElement("span",null,"Default")),t?u.createElement("th",null,u.createElement(zk,null,"Control"," ",!c&&r&&u.createElement(Lk,{onClick:()=>r(),title:"Reset controls"},u.createElement(Hc,{"aria-hidden":!0})))):null)),u.createElement("tbody",{className:"docblock-argstable-body"},g.ungrouped.map(E=>u.createElement(Cn,{key:E.key,row:E,arg:d&&d[E.key],...x})),Object.entries(g.ungroupedSubsections).map(([E,b])=>u.createElement(io,{key:E,label:E,level:"subsection",colSpan:h},b.map(w=>u.createElement(Cn,{key:w.key,row:w,arg:d&&d[w.key],expandable:y,...x})))),Object.entries(g.sections).map(([E,b])=>u.createElement(io,{key:E,label:E,level:"section",colSpan:h},b.ungrouped.map(w=>u.createElement(Cn,{key:w.key,row:w,arg:d&&d[w.key],...x})),Object.entries(b.subsections).map(([w,S])=>u.createElement(io,{key:w,label:w,level:"subsection",colSpan:h},S.map(C=>u.createElement(Cn,{key:C.key,row:C,arg:d&&d[C.key],expandable:y,...x})))))))))},Hk=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?u.createElement(Uo,{...r[0][1],...t}):u.createElement(Hl,null,r.map((n,a)=>{let[l,i]=n,c=`prop_table_div_${l}`,s="div",d=a===0?t:{sort:t.sort};return u.createElement(s,{key:c,id:c,title:l},({active:f})=>f?u.createElement(Uo,{key:`prop_table_${l}`,...i,...d}):null)}))};I.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}));I.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});I.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});I.div(ne,({theme:e})=>({...Ea(e),margin:"25px 0 40px",padding:"30px 20px"}));I.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));I.div(({theme:e})=>({color:e.base==="light"?te(.2,e.color.defaultText):te(.6,e.color.defaultText)}));I.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});I.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"?te(.4,e.color.defaultText):te(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));I.div({display:"flex",flexDirection:"row"});I.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));I.div(({theme:e})=>({...Ea(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"}));I.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});I.div({flex:1,display:"flex",flexDirection:"row"});I.div({display:"flex",alignItems:"flex-start"});I.div({flex:"0 0 30%"});I.div({flex:1});I.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?te(.4,e.color.defaultText):te(.6,e.color.defaultText)}));I.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));I.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));I.div(({theme:e})=>({...Ea(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));I.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});I.div({display:"flex",flexFlow:"row wrap"});var Nk=e=>`anchor--${e}`,jk=({storyId:e,children:t})=>u.createElement("div",{id:Nk(e),className:"sb-anchor"},t);$e&&$e.__DOCS_CONTEXT__===void 0&&($e.__DOCS_CONTEXT__=o.createContext(null),$e.__DOCS_CONTEXT__.displayName="DocsContext");var lt=$e?$e.__DOCS_CONTEXT__:o.createContext(null),Zt=(e,t)=>o.useContext(lt).resolveOf(e,t),Dk=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),Uk=e=>{if(e)return typeof e=="string"?e.includes("-")?Dk(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function Vk(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function hu(e){return nI(e,{allowFunction:!1})}var gu=o.createContext({sources:{}}),mu="--unknown--",Wk=({children:e,channel:t})=>{let[r,n]=o.useState({});return o.useEffect(()=>{let a=(l,i=null,c=!1)=>{let{id:s,args:d=void 0,source:f,format:g}=typeof l=="string"?{id:l,source:i,format:c}:l,m=d?hu(d):mu;n(p=>({...p,[s]:{...p[s],[m]:{code:f,format:g}}}))};return t.on(ii,a),()=>t.off(ii,a)},[]),u.createElement(gu.Provider,{value:{sources:r}},e)},Gk=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[hu(t)])||(a==null?void 0:a[mu])||{code:""}},qk=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var s,d;let{__isArgsStory:a}=t.parameters,l=((s=t.parameters.docs)==null?void 0:s.source)||{},i=r||l.type||Aa.AUTO;if(l.code!==void 0)return l.code;let c=i===Aa.DYNAMIC||i===Aa.AUTO&&e&&a?e:l.originalSource||"";return((d=n??l.transform)==null?void 0:d(c,t))||c},Yk=(e,t,r)=>{var p,v,h,y;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 l=((v=(p=n==null?void 0:n.parameters)==null?void 0:p.docs)==null?void 0:v.source)||{},{code:i}=e,c=e.format??l.format,s=e.language??l.language??"jsx",d=e.dark??l.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:c,language:s,dark:d};let f=t.getStoryContext(n),g=e.__forceInitialArgs?f.initialArgs:f.unmappedArgs,m=Gk(n.id,g,r);return c=m.format??((y=(h=n.parameters.docs)==null?void 0:h.source)==null?void 0:y.format)??!1,{code:qk({snippet:m.code,storyContext:{...f,args:g},typeFromProps:e.type,transformFromProps:e.transform}),format:c,language:s,dark:d}};function Kk(e,t){let r=Xk([e],t);return r&&r[0]}function Xk(e,t){let[r,n]=o.useState({});return o.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var Zk=(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},Jk=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let c=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:c,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Qk=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=o.useContext(lt),r=Zk(e,t),n=Kk(r,t);if(!n)return u.createElement(Qd,null);let a=Jk(e,n,t);return a?u.createElement(FI,{...a}):null},e$=e=>{var m,p,v,h,y,x,E,b,w,S;let t=o.useContext(lt),r=o.useContext(gu),{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:l}=Zt(n||"story",["story"]),i=Yk({...a,...n&&{of:n}},t,r),c=e.layout??l.parameters.layout??((p=(m=l.parameters.docs)==null?void 0:m.canvas)==null?void 0:p.layout)??"padded",s=e.withToolbar??((h=(v=l.parameters.docs)==null?void 0:v.canvas)==null?void 0:h.withToolbar)??!1,d=e.additionalActions??((x=(y=l.parameters.docs)==null?void 0:y.canvas)==null?void 0:x.additionalActions),f=e.sourceState??((b=(E=l.parameters.docs)==null?void 0:E.canvas)==null?void 0:b.sourceState)??"hidden",g=e.className??((S=(w=l.parameters.docs)==null?void 0:w.canvas)==null?void 0:S.className);return u.createElement(eu,{withSource:f==="none"?void 0:i,isExpanded:f==="shown",withToolbar:s,additionalActions:d,className:g,layout:c},u.createElement(Qk,{of:n||l.moduleExport,meta:e.meta,...e.story}))},t$=(e,t)=>{let r=t.getStoryContext(e),[n,a]=o.useState(r.globals);return o.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(U0,l),()=>t.channel.off(U0,l)},[t.channel]),[n]},r$=(e,t)=>{let r=n$(e,t);if(!r)throw new Error("No result when story was defined");return r},n$=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=o.useState(r.args);o.useEffect(()=>{let s=d=>{d.storyId===n&&l(d.args)};return t.channel.on(V0,s),()=>t.channel.off(V0,s)},[n,t.channel]);let i=o.useCallback(s=>t.channel.emit(mI,{storyId:n,updatedArgs:s}),[n,t.channel]),c=o.useCallback(s=>t.channel.emit(vI,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,c]};function a$(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var o$=e=>{var w;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(lt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:l,component:i,subcomponents:c}=n,s=((w=a.docs)==null?void 0:w.controls)||{},d=e.include??s.include,f=e.exclude??s.exclude,g=e.sort??s.sort,[m,p,v]=r$(n,r),[h]=t$(n,r),y=D0(l,d,f);if(!(c&&Object.keys(c).length>0))return Object.keys(y).length>0||Object.keys(m).length>0?u.createElement(Uo,{rows:y,sort:g,args:m,globals:h,updateArgs:p,resetArgs:v}):null;let x=Uk(i),E=Object.fromEntries(Object.entries(c).map(([S,C])=>[S,{rows:D0(a$(C,a),d,f),sort:g}])),b={[x]:{rows:y,sort:g},...E};return u.createElement(Hk,{tabs:b,sort:g,args:m,globals:h,updateArgs:p,resetArgs:v})},{document:vu}=$e,bu=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return u.createElement(_l,null,t);let n=e&&e.split("-");return u.createElement(Zd,{language:n&&n[1]||"text",format:!1,code:t,...r})};function ei(e,t){e.channel.emit(bI,t)}var Vo=id.a,l$=({hash:e,children:t})=>{let r=o.useContext(lt);return u.createElement(Vo,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);vu.getElementById(a)&&ei(r,e)}},t)},yu=e=>{let{href:t,target:r,children:n,...a}=e,l=o.useContext(lt);return!t||r==="_blank"||/^https?:\/\//.test(t)?u.createElement(Vo,{...e}):t.startsWith("#")?u.createElement(l$,{hash:t},n):u.createElement(Vo,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),ei(l,i.currentTarget.getAttribute("href")))},target:r,...a},n)},wu=["h1","h2","h3","h4","h5","h6"],i$=wu.reduce((e,t)=>({...e,[t]:I(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),s$=I.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),c$=({as:e,id:t,children:r,...n})=>{let a=o.useContext(lt),l=i$[e],i=`#${t}`;return u.createElement(l,{id:t,...n},u.createElement(s$,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:c=>{vu.getElementById(t)&&ei(a,i)}},u.createElement(Pc,null)),r)},ti=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return u.createElement(c$,{as:t,id:r,...a},n);let l=t,{as:i,...c}=e;return u.createElement(l,{...re(c,t)})},xu=wu.reduce((e,t)=>({...e,[t]:r=>u.createElement(ti,{as:t,...r})}),{}),d$=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(Xu`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/assets/ErrorBanner.stories-BLfkuZNs.js b/assets/ErrorBanner.stories-D-_wHjn3.js similarity index 98% rename from assets/ErrorBanner.stories-BLfkuZNs.js rename to assets/ErrorBanner.stories-D-_wHjn3.js index a4deaaa..eed1419 100644 --- a/assets/ErrorBanner.stories-BLfkuZNs.js +++ b/assets/ErrorBanner.stories-D-_wHjn3.js @@ -1,4 +1,4 @@ -import{j as e}from"./emotion-serialize.browser.esm-Xr4f5Ts3.js";import{n as m}from"./emotion-styled.browser.esm-OyKATk7d.js";import{r as y}from"./index-CDs2tPxN.js";import{b}from"./theme-QoxxbpC5.js";import{S as O}from"./Spinner-BOGW5kw2.js";import{u as $}from"./useTranslation-B1yBCfgX.js";import"./extends-CCbyfPlC.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";function k(d){const r=d;return(r!==null&&typeof r=="object"||typeof r=="function")&&typeof r.block_id=="string"}function B(d){const r=d;return(r!==null&&typeof r=="object"||typeof r=="function")&&typeof r.title=="string"&&typeof r.message=="string"&&(r.source===null||typeof r.source=="string")&&(r.data===null||k(r.data))}const a=m.div` +import{j as e}from"./emotion-serialize.browser.esm-Xr4f5Ts3.js";import{n as m}from"./emotion-styled.browser.esm-OyKATk7d.js";import{r as y}from"./index-CDs2tPxN.js";import{b}from"./theme-QoxxbpC5.js";import{S as O}from"./Spinner-DklfHp98.js";import{u as $}from"./useTranslation-B1yBCfgX.js";import"./extends-CCbyfPlC.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";function k(d){const r=d;return(r!==null&&typeof r=="object"||typeof r=="function")&&typeof r.block_id=="string"}function B(d){const r=d;return(r!==null&&typeof r=="object"||typeof r=="function")&&typeof r.title=="string"&&typeof r.message=="string"&&(r.source===null||typeof r.source=="string")&&(r.data===null||k(r.data))}const a=m.div` background: #f1f1f1; width: 100%; position: relative; diff --git a/assets/Spinner-BOGW5kw2.js b/assets/Spinner-DklfHp98.js similarity index 97% rename from assets/Spinner-BOGW5kw2.js rename to assets/Spinner-DklfHp98.js index 0f6a13e..6835a1f 100644 --- a/assets/Spinner-BOGW5kw2.js +++ b/assets/Spinner-DklfHp98.js @@ -31,4 +31,4 @@ import{s as C,j as E}from"./emotion-serialize.browser.esm-Xr4f5Ts3.js";import"./ animation-iteration-count: infinite, 1; animation-delay: 400ms; animation-fill-mode: forwards; -`,h=e=>E.jsx(D,{className:q,...e});try{h.displayName="Spinner",h.__docgenInfo={description:"",displayName:"Spinner",props:{variant:{defaultValue:null,description:"",name:"variant",required:!0,type:{name:"enum",value:[{value:'"large"'},{value:'"small"'},{value:'"medium"'}]}},disableMargin:{defaultValue:null,description:"",name:"disableMargin",required:!1,type:{name:"boolean"}}}}}catch{}export{h as S}; +`,h=e=>E.jsx(D,{className:q,...e});try{h.displayName="Spinner",h.__docgenInfo={description:"",displayName:"Spinner",props:{variant:{defaultValue:null,description:"",name:"variant",required:!0,type:{name:"enum",value:[{value:'"large"'},{value:'"medium"'},{value:'"small"'}]}},disableMargin:{defaultValue:null,description:"",name:"disableMargin",required:!1,type:{name:"boolean"}}}}}catch{}export{h as S}; diff --git a/assets/Spinner.stories-ECDghkGR.js b/assets/Spinner.stories-CUi0bS-J.js similarity index 95% rename from assets/Spinner.stories-ECDghkGR.js rename to assets/Spinner.stories-CUi0bS-J.js index ca40813..2acf929 100644 --- a/assets/Spinner.stories-ECDghkGR.js +++ b/assets/Spinner.stories-CUi0bS-J.js @@ -1,4 +1,4 @@ -import{S as l}from"./Spinner-BOGW5kw2.js";import"./emotion-serialize.browser.esm-Xr4f5Ts3.js";import"./index-CDs2tPxN.js";import"./emotion-styled.browser.esm-OyKATk7d.js";import"./extends-CCbyfPlC.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./theme-QoxxbpC5.js";const T={component:l,parameters:{docs:{description:{component:"Used to display a loading animation."}}}},a={args:{variant:"medium",disableMargin:!1}},r={args:{variant:"small"}},e={args:{variant:"large"}};var s,o,t;a.parameters={...a.parameters,docs:{...(s=a.parameters)==null?void 0:s.docs,source:{originalSource:`{ +import{S as l}from"./Spinner-DklfHp98.js";import"./emotion-serialize.browser.esm-Xr4f5Ts3.js";import"./index-CDs2tPxN.js";import"./emotion-styled.browser.esm-OyKATk7d.js";import"./extends-CCbyfPlC.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./theme-QoxxbpC5.js";const T={component:l,parameters:{docs:{description:{component:"Used to display a loading animation."}}}},a={args:{variant:"medium",disableMargin:!1}},r={args:{variant:"small"}},e={args:{variant:"large"}};var s,o,t;a.parameters={...a.parameters,docs:{...(s=a.parameters)==null?void 0:s.docs,source:{originalSource:`{ args: { variant: "medium", disableMargin: false diff --git a/assets/WithTooltip-KJL26V4Q-_SnEfJ06.js b/assets/WithTooltip-KJL26V4Q-DnVe0vjQ.js similarity index 71% rename from assets/WithTooltip-KJL26V4Q-_SnEfJ06.js rename to assets/WithTooltip-KJL26V4Q-DnVe0vjQ.js index e55c9e8..7d4975d 100644 --- a/assets/WithTooltip-KJL26V4Q-_SnEfJ06.js +++ b/assets/WithTooltip-KJL26V4Q-DnVe0vjQ.js @@ -1 +1 @@ -import{W as l,W as s,b}from"./DocsRenderer-K4EAMTCU-BwFSP7Wv.js";import"./iframe-5rMNvAur.js";import"../sb-preview/runtime.js";import"./index-CDs2tPxN.js";import"./react-18-CqnZ7Kye.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./extends-CCbyfPlC.js";import"./index-DXimoRZY.js";import"./_getPrototype-DtJm8IA_.js";import"./index-DrFu-skq.js";export{l as WithToolTipState,s as WithTooltip,b as WithTooltipPure}; +import{W as l,W as s,b}from"./DocsRenderer-K4EAMTCU-BuL2Sdw5.js";import"./iframe-TDzcBqMd.js";import"../sb-preview/runtime.js";import"./index-CDs2tPxN.js";import"./react-18-CqnZ7Kye.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./extends-CCbyfPlC.js";import"./index-DXimoRZY.js";import"./_getPrototype-DtJm8IA_.js";import"./index-DrFu-skq.js";export{l as WithToolTipState,s as WithTooltip,b as WithTooltipPure}; diff --git a/assets/formatter-2WMMO6ZP-DQjKcaNQ.js b/assets/formatter-2WMMO6ZP-Wjeup1XW.js similarity index 99% rename from assets/formatter-2WMMO6ZP-DQjKcaNQ.js rename to assets/formatter-2WMMO6ZP-Wjeup1XW.js index e6bc651..de9dd0d 100644 --- a/assets/formatter-2WMMO6ZP-DQjKcaNQ.js +++ b/assets/formatter-2WMMO6ZP-Wjeup1XW.js @@ -1,4 +1,4 @@ -var Qi=Object.defineProperty;var Zi=(e,t,r)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _e=(e,t,r)=>(Zi(e,typeof t!="symbol"?t+"":t,r),r);import{m as ea}from"./DocsRenderer-K4EAMTCU-BwFSP7Wv.js";import"./iframe-5rMNvAur.js";import"../sb-preview/runtime.js";import"./index-CDs2tPxN.js";import"./react-18-CqnZ7Kye.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./extends-CCbyfPlC.js";import"./index-DXimoRZY.js";import"./_getPrototype-DtJm8IA_.js";import"./index-DrFu-skq.js";var ta=Object.defineProperty,pu=(e,t)=>{for(var r in t)ta(e,r,{get:t[r],enumerable:!0})},hu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(hu(e,t,"read from private field"),t.get(e)),ra=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},na=(e,t,r,n)=>(hu(e,t,"write to private field"),t.set(e,r),r),du={};pu(du,{languages:()=>Vl,options:()=>zl,parsers:()=>Gu,printers:()=>Gl});var ua=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},O=ua,Br="string",xr="array",Tr="cursor",Bt="indent",xt="align",Lr="trim",Ye="group",Tt="fill",Lt="if-break",Nt="indent-if-break",Nr="line-suffix",qr="line-suffix-boundary",be="line",Pr="label",qt="break-parent",Du=new Set([Tr,Bt,xt,Lr,Ye,Tt,Lt,Nt,Nr,qr,be,Pr,qt]);function ia(e){if(typeof e=="string")return Br;if(Array.isArray(e))return xr;if(!e)return;let{type:t}=e;if(Du.has(t))return t}var Ir=ia,aa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function sa(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +var Qi=Object.defineProperty;var Zi=(e,t,r)=>t in e?Qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _e=(e,t,r)=>(Zi(e,typeof t!="symbol"?t+"":t,r),r);import{m as ea}from"./DocsRenderer-K4EAMTCU-BuL2Sdw5.js";import"./iframe-TDzcBqMd.js";import"../sb-preview/runtime.js";import"./index-CDs2tPxN.js";import"./react-18-CqnZ7Kye.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./extends-CCbyfPlC.js";import"./index-DXimoRZY.js";import"./_getPrototype-DtJm8IA_.js";import"./index-DrFu-skq.js";var ta=Object.defineProperty,pu=(e,t)=>{for(var r in t)ta(e,r,{get:t[r],enumerable:!0})},hu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(hu(e,t,"read from private field"),t.get(e)),ra=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},na=(e,t,r,n)=>(hu(e,t,"write to private field"),t.set(e,r),r),du={};pu(du,{languages:()=>Vl,options:()=>zl,parsers:()=>Gu,printers:()=>Gl});var ua=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},O=ua,Br="string",xr="array",Tr="cursor",Bt="indent",xt="align",Lr="trim",Ye="group",Tt="fill",Lt="if-break",Nt="indent-if-break",Nr="line-suffix",qr="line-suffix-boundary",be="line",Pr="label",qt="break-parent",Du=new Set([Tr,Bt,xt,Lr,Ye,Tt,Lt,Nt,Nr,qr,be,Pr,qt]);function ia(e){if(typeof e=="string")return Br;if(Array.isArray(e))return xr;if(!e)return;let{type:t}=e;if(Du.has(t))return t}var Ir=ia,aa=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function sa(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', Expected it to be 'string' or 'object'.`;if(Ir(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=aa([...Du].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${n}.`}var oa=class extends Error{constructor(t){super(sa(t));_e(this,"name","InvalidDocError");this.doc=t}},fu=oa,la=()=>{},ca=la;function we(e){return{type:Bt,contents:e}}function mu(e,t){return{type:xt,contents:t,n:e}}function q(e,t={}){return ca(t.expandedStates),{type:Ye,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function pa(e){return mu(Number.NEGATIVE_INFINITY,e)}function ha(e){return mu({type:"root"},e)}function gu(e){return{type:Tt,parts:e}}function bt(e,t="",r={}){return{type:Lt,breakContents:e,flatContents:t,groupId:r.groupId}}function da(e,t){return{type:Nt,contents:e,groupId:t.groupId,negate:t.negate}}var Ze={type:qt},Da={type:be,hard:!0},fa={type:be,hard:!0,literal:!0},L={type:be},I={type:be,soft:!0},A=[Da,Ze],ma=[fa,Ze];function et(e,t){let r=[];for(let n=0;n{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},Pt=ga;function Or(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=u(i);return r.set(i,a),a}function u(i){switch(Ir(i)){case xr:return t(i.map(n));case Tt:return t({...i,parts:i.parts.map(n)});case Lt:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Ye:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case xt:case Bt:case Nt:case Pr:case Nr:return t({...i,contents:n(i.contents)});case Br:case Tr:case Lr:case qr:case be:case qt:return t(i);default:throw new fu(i)}}}function Ca(e){switch(Ir(e)){case Tt:if(e.parts.every(t=>t===""))return"";break;case Ye:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ye&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case xt:case Bt:case Nt:case Nr:if(!e.contents)return"";break;case Lt:if(!e.flatContents&&!e.breakContents)return"";break;case xr:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Pt(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case Br:case Tr:case Lr:case qr:case be:case Pr:case qt:break;default:throw new fu(e)}return e}function Fa(e){return Or(e,t=>Ca(t))}function G(e,t=ma){return Or(e,r=>typeof r=="string"?et(t,r.split(` `)):r)}var va=class extends Error{constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);_e(this,"name","UnexpectedNodeError");this.node=t}},ya=va,lt="'",cn='"';function Ea(e,t){let r=t===!0||t===lt?lt:cn,n=r===lt?cn:lt,u=0,i=0;for(let a of e)a===r?u++:a===n&&i++;return u>i?n:r}var ba=Ea;function wa(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,Sa=class{constructor(e){ra(this,U,void 0),na(this,U,new Set(e))}getLeadingWhitespaceCount(e){let t=se(this,U),r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return se(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return se(this,U).has(Pt(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${wa([...se(this,U)].join(""))}]+`,n=new RegExp(t?`(${r})`:r);return e.split(n)}hasWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=se(this,U);return Array.prototype.every.call(e,r=>t.has(r))}};U=new WeakMap;var Aa=Sa,ka=[" ",` diff --git a/assets/iframe-5rMNvAur.js b/assets/iframe-TDzcBqMd.js similarity index 93% rename from assets/iframe-5rMNvAur.js rename to assets/iframe-TDzcBqMd.js index e223a52..569658d 100644 --- a/assets/iframe-5rMNvAur.js +++ b/assets/iframe-TDzcBqMd.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./Button.stories-jpv_FyYn.js","./emotion-serialize.browser.esm-Xr4f5Ts3.js","./index-CDs2tPxN.js","./emotion-styled.browser.esm-OyKATk7d.js","./extends-CCbyfPlC.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js","./typography-Bdnj4Bgw.js","./theme-QoxxbpC5.js","./Dialog.stories-CAnFJxvl.js","./emotion-css.esm-DPNEF3j8.js","./ErrorBanner.stories-BLfkuZNs.js","./Spinner-BOGW5kw2.js","./useTranslation-B1yBCfgX.js","./GenericInfoBox.stories-CyEoJufC.js","./Spinner.stories-ECDghkGR.js","./Checkbox.stories-vCwXmGFz.js","./DatePickerField.stories-CEmtZHR8.js","./DateTimeLocal.stories-D61-MU5B.js","./FileField.stories-y3kikWAb.js","./strings-x18Zmgj1.js","./RadioButton.stories-C7-UKijm.js","./SelectField.stories-VLQ_3hKn.js","./TextAreaField.stories-W52m1el9.js","./TextField.stories-BJnSSQ_Z.js","./TimerPickerField.stories-CbE5GfvK.js","./entry-preview-DRtwuanT.js","./react-18-CqnZ7Kye.js","./entry-preview-docs-eVh9VKdd.js","./_getPrototype-DtJm8IA_.js","./index-DrFu-skq.js","./preview-TCN6m6T-.js","./index-DXimoRZY.js","./preview-CwqMn10d.js","./preview-BAz7FMXc.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import"../sb-preview/runtime.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.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 m(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=m(e);fetch(e.href,r)}})();const R="modulepreload",P=function(_,n){return new URL(_,n).href},d={},t=function(n,m,c){let e=Promise.resolve();if(m&&m.length>0){const r=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),E=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));e=Promise.all(m.map(i=>{if(i=P(i,c),i in d)return;d[i]=!0;const u=i.endsWith(".css"),O=u?'[rel="stylesheet"]':"";if(!!c)for(let l=r.length-1;l>=0;l--){const a=r[l];if(a.href===i&&(!u||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${O}`))return;const s=document.createElement("link");if(s.rel=u?"stylesheet":R,u||(s.as="script",s.crossOrigin=""),s.href=i,E&&s.setAttribute("nonce",E),document.head.appendChild(s),u)return new Promise((l,a)=>{s.addEventListener("load",l),s.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${i}`)))})}))}return e.then(()=>n()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},{createBrowserChannel:f}=__STORYBOOK_MODULE_CHANNELS__,{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__,p=f({page:"preview"});T.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const L={"./stories/common/Button.stories.tsx":async()=>t(()=>import("./Button.stories-jpv_FyYn.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),"./stories/common/Dialog.stories.tsx":async()=>t(()=>import("./Dialog.stories-CAnFJxvl.js"),__vite__mapDeps([8,1,2,9,6]),import.meta.url),"./stories/common/ErrorBanner.stories.tsx":async()=>t(()=>import("./ErrorBanner.stories-BLfkuZNs.js"),__vite__mapDeps([10,1,2,3,4,5,7,11,12]),import.meta.url),"./stories/common/GenericInfoBox.stories.tsx":async()=>t(()=>import("./GenericInfoBox.stories-CyEoJufC.js"),__vite__mapDeps([13,1,2,9,4,7]),import.meta.url),"./stories/common/Spinner.stories.tsx":async()=>t(()=>import("./Spinner.stories-ECDghkGR.js"),__vite__mapDeps([14,11,1,2,3,4,5,7]),import.meta.url),"./stories/common/inputs/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-vCwXmGFz.js"),__vite__mapDeps([15,1,2,9,3,4,5,6,7]),import.meta.url),"./stories/common/inputs/DatePickerField.stories.tsx":async()=>t(()=>import("./DatePickerField.stories-CEmtZHR8.js"),__vite__mapDeps([16,1,2,9]),import.meta.url),"./stories/common/inputs/DateTimeLocal.stories.tsx":async()=>t(()=>import("./DateTimeLocal.stories-D61-MU5B.js"),__vite__mapDeps([17,1,2,9,7]),import.meta.url),"./stories/common/inputs/FileField.stories.tsx":async()=>t(()=>import("./FileField.stories-y3kikWAb.js"),__vite__mapDeps([18,1,2,9,3,4,5,6,7,19,12]),import.meta.url),"./stories/common/inputs/RadioButton.stories.tsx":async()=>t(()=>import("./RadioButton.stories-C7-UKijm.js"),__vite__mapDeps([20,1,2,9,6,7]),import.meta.url),"./stories/common/inputs/SelectField.stories.tsx":async()=>t(()=>import("./SelectField.stories-VLQ_3hKn.js"),__vite__mapDeps([21,1,2,9]),import.meta.url),"./stories/common/inputs/TextAreaField.stories.tsx":async()=>t(()=>import("./TextAreaField.stories-W52m1el9.js"),__vite__mapDeps([22,1,2,9]),import.meta.url),"./stories/common/inputs/TextField.stories.tsx":async()=>t(()=>import("./TextField.stories-BJnSSQ_Z.js"),__vite__mapDeps([23,1,2,9,3,4,5,6,7,19,12]),import.meta.url),"./stories/common/inputs/TimerPickerField.stories.tsx":async()=>t(()=>import("./TimerPickerField.stories-CbE5GfvK.js"),__vite__mapDeps([24,1,2,9]),import.meta.url)};async function v(_){return L[_]()}const{composeConfigs:A,PreviewWeb:I,ClientApi:w}=__STORYBOOK_MODULE_PREVIEW_API__,y=async()=>{const _=await Promise.all([t(()=>import("./entry-preview-DRtwuanT.js"),__vite__mapDeps([25,2,26]),import.meta.url),t(()=>import("./entry-preview-docs-eVh9VKdd.js"),__vite__mapDeps([27,28,2,29]),import.meta.url),t(()=>import("./preview-TCN6m6T-.js"),__vite__mapDeps([30,31]),import.meta.url),t(()=>import("./preview-CUMqKAY5.js"),[],import.meta.url),t(()=>import("./preview-UNaZQn6M.js"),[],import.meta.url),t(()=>import("./preview-CwqMn10d.js"),__vite__mapDeps([32,29]),import.meta.url),t(()=>import("./preview-B4GcaC1c.js"),[],import.meta.url),t(()=>import("./preview-Db4Idchh.js"),[],import.meta.url),t(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([33,29]),import.meta.url),t(()=>import("./preview-BpcF_O6y.js"),[],import.meta.url),t(()=>import("./preview-BcrGd3F6.js"),[],import.meta.url),t(()=>import("./preview-C6l_UQpt.js"),[],import.meta.url)]);return A(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new I(v,y);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__fileDeps=["./Button.stories-DNySRfAR.js","./emotion-serialize.browser.esm-Xr4f5Ts3.js","./index-CDs2tPxN.js","./emotion-styled.browser.esm-OyKATk7d.js","./extends-CCbyfPlC.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js","./typography-Bdnj4Bgw.js","./theme-QoxxbpC5.js","./Dialog.stories-CAnFJxvl.js","./emotion-css.esm-DPNEF3j8.js","./ErrorBanner.stories-D-_wHjn3.js","./Spinner-DklfHp98.js","./useTranslation-B1yBCfgX.js","./GenericInfoBox.stories-CyEoJufC.js","./Spinner.stories-CUi0bS-J.js","./Checkbox.stories-vCwXmGFz.js","./DatePickerField.stories-CEmtZHR8.js","./DateTimeLocal.stories-D61-MU5B.js","./FileField.stories-y3kikWAb.js","./strings-x18Zmgj1.js","./RadioButton.stories-C7-UKijm.js","./SelectField.stories-VLQ_3hKn.js","./TextAreaField.stories-W52m1el9.js","./TextField.stories-BJnSSQ_Z.js","./TimerPickerField.stories-CbE5GfvK.js","./entry-preview-DRtwuanT.js","./react-18-CqnZ7Kye.js","./entry-preview-docs-eVh9VKdd.js","./_getPrototype-DtJm8IA_.js","./index-DrFu-skq.js","./preview-TCN6m6T-.js","./index-DXimoRZY.js","./preview-CwqMn10d.js","./preview-BAz7FMXc.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import"../sb-preview/runtime.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.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 m(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=m(e);fetch(e.href,r)}})();const R="modulepreload",P=function(_,n){return new URL(_,n).href},d={},t=function(n,m,c){let e=Promise.resolve();if(m&&m.length>0){const r=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),E=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));e=Promise.all(m.map(i=>{if(i=P(i,c),i in d)return;d[i]=!0;const u=i.endsWith(".css"),O=u?'[rel="stylesheet"]':"";if(!!c)for(let l=r.length-1;l>=0;l--){const a=r[l];if(a.href===i&&(!u||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${O}`))return;const s=document.createElement("link");if(s.rel=u?"stylesheet":R,u||(s.as="script",s.crossOrigin=""),s.href=i,E&&s.setAttribute("nonce",E),document.head.appendChild(s),u)return new Promise((l,a)=>{s.addEventListener("load",l),s.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${i}`)))})}))}return e.then(()=>n()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},{createBrowserChannel:f}=__STORYBOOK_MODULE_CHANNELS__,{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__,p=f({page:"preview"});T.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const L={"./stories/common/Button.stories.tsx":async()=>t(()=>import("./Button.stories-DNySRfAR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url),"./stories/common/Dialog.stories.tsx":async()=>t(()=>import("./Dialog.stories-CAnFJxvl.js"),__vite__mapDeps([8,1,2,9,6]),import.meta.url),"./stories/common/ErrorBanner.stories.tsx":async()=>t(()=>import("./ErrorBanner.stories-D-_wHjn3.js"),__vite__mapDeps([10,1,2,3,4,5,7,11,12]),import.meta.url),"./stories/common/GenericInfoBox.stories.tsx":async()=>t(()=>import("./GenericInfoBox.stories-CyEoJufC.js"),__vite__mapDeps([13,1,2,9,4,7]),import.meta.url),"./stories/common/Spinner.stories.tsx":async()=>t(()=>import("./Spinner.stories-CUi0bS-J.js"),__vite__mapDeps([14,11,1,2,3,4,5,7]),import.meta.url),"./stories/common/inputs/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-vCwXmGFz.js"),__vite__mapDeps([15,1,2,9,3,4,5,6,7]),import.meta.url),"./stories/common/inputs/DatePickerField.stories.tsx":async()=>t(()=>import("./DatePickerField.stories-CEmtZHR8.js"),__vite__mapDeps([16,1,2,9]),import.meta.url),"./stories/common/inputs/DateTimeLocal.stories.tsx":async()=>t(()=>import("./DateTimeLocal.stories-D61-MU5B.js"),__vite__mapDeps([17,1,2,9,7]),import.meta.url),"./stories/common/inputs/FileField.stories.tsx":async()=>t(()=>import("./FileField.stories-y3kikWAb.js"),__vite__mapDeps([18,1,2,9,3,4,5,6,7,19,12]),import.meta.url),"./stories/common/inputs/RadioButton.stories.tsx":async()=>t(()=>import("./RadioButton.stories-C7-UKijm.js"),__vite__mapDeps([20,1,2,9,6,7]),import.meta.url),"./stories/common/inputs/SelectField.stories.tsx":async()=>t(()=>import("./SelectField.stories-VLQ_3hKn.js"),__vite__mapDeps([21,1,2,9]),import.meta.url),"./stories/common/inputs/TextAreaField.stories.tsx":async()=>t(()=>import("./TextAreaField.stories-W52m1el9.js"),__vite__mapDeps([22,1,2,9]),import.meta.url),"./stories/common/inputs/TextField.stories.tsx":async()=>t(()=>import("./TextField.stories-BJnSSQ_Z.js"),__vite__mapDeps([23,1,2,9,3,4,5,6,7,19,12]),import.meta.url),"./stories/common/inputs/TimerPickerField.stories.tsx":async()=>t(()=>import("./TimerPickerField.stories-CbE5GfvK.js"),__vite__mapDeps([24,1,2,9]),import.meta.url)};async function v(_){return L[_]()}const{composeConfigs:A,PreviewWeb:I,ClientApi:w}=__STORYBOOK_MODULE_PREVIEW_API__,y=async()=>{const _=await Promise.all([t(()=>import("./entry-preview-DRtwuanT.js"),__vite__mapDeps([25,2,26]),import.meta.url),t(()=>import("./entry-preview-docs-eVh9VKdd.js"),__vite__mapDeps([27,28,2,29]),import.meta.url),t(()=>import("./preview-TCN6m6T-.js"),__vite__mapDeps([30,31]),import.meta.url),t(()=>import("./preview-C0ngc3XW.js"),[],import.meta.url),t(()=>import("./preview-UNaZQn6M.js"),[],import.meta.url),t(()=>import("./preview-CwqMn10d.js"),__vite__mapDeps([32,29]),import.meta.url),t(()=>import("./preview-B4GcaC1c.js"),[],import.meta.url),t(()=>import("./preview-Db4Idchh.js"),[],import.meta.url),t(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([33,29]),import.meta.url),t(()=>import("./preview-BpcF_O6y.js"),[],import.meta.url),t(()=>import("./preview-BcrGd3F6.js"),[],import.meta.url),t(()=>import("./preview-C6l_UQpt.js"),[],import.meta.url)]);return A(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new I(v,y);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/preview-CUMqKAY5.js b/assets/preview-C0ngc3XW.js similarity index 72% rename from assets/preview-CUMqKAY5.js rename to assets/preview-C0ngc3XW.js index 35b09a8..20ecc82 100644 --- a/assets/preview-CUMqKAY5.js +++ b/assets/preview-C0ngc3XW.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./DocsRenderer-K4EAMTCU-BwFSP7Wv.js","./iframe-5rMNvAur.js","./index-CDs2tPxN.js","./react-18-CqnZ7Kye.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js","./extends-CCbyfPlC.js","./index-DXimoRZY.js","./_getPrototype-DtJm8IA_.js","./index-DrFu-skq.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as a}from"./iframe-5rMNvAur.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-BwFSP7Wv.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),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}; +const __vite__fileDeps=["./DocsRenderer-K4EAMTCU-BuL2Sdw5.js","./iframe-TDzcBqMd.js","./index-CDs2tPxN.js","./react-18-CqnZ7Kye.js","./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js","./extends-CCbyfPlC.js","./index-DXimoRZY.js","./_getPrototype-DtJm8IA_.js","./index-DrFu-skq.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as a}from"./iframe-TDzcBqMd.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-BuL2Sdw5.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),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/assets/syntaxhighlighter-BP7B2CQK-BqUApr9f.js b/assets/syntaxhighlighter-BP7B2CQK-cDMmZo71.js similarity index 74% rename from assets/syntaxhighlighter-BP7B2CQK-BqUApr9f.js rename to assets/syntaxhighlighter-BP7B2CQK-cDMmZo71.js index 53d927e..68bd14b 100644 --- a/assets/syntaxhighlighter-BP7B2CQK-BqUApr9f.js +++ b/assets/syntaxhighlighter-BP7B2CQK-cDMmZo71.js @@ -1 +1 @@ -import{S as u,c,s as d,a as l}from"./DocsRenderer-K4EAMTCU-BwFSP7Wv.js";import"./iframe-5rMNvAur.js";import"../sb-preview/runtime.js";import"./index-CDs2tPxN.js";import"./react-18-CqnZ7Kye.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./extends-CCbyfPlC.js";import"./index-DXimoRZY.js";import"./_getPrototype-DtJm8IA_.js";import"./index-DrFu-skq.js";export{u as SyntaxHighlighter,c as createCopyToClipboardFunction,d as default,l as supportedLanguages}; +import{S as u,c,s as d,a as l}from"./DocsRenderer-K4EAMTCU-BuL2Sdw5.js";import"./iframe-TDzcBqMd.js";import"../sb-preview/runtime.js";import"./index-CDs2tPxN.js";import"./react-18-CqnZ7Kye.js";import"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BA1o8LyZ.js";import"./extends-CCbyfPlC.js";import"./index-DXimoRZY.js";import"./_getPrototype-DtJm8IA_.js";import"./index-DrFu-skq.js";export{u as SyntaxHighlighter,c as createCopyToClipboardFunction,d as default,l as supportedLanguages}; diff --git a/iframe.html b/iframe.html index 74bbdf1..27424f5 100644 --- a/iframe.html +++ b/iframe.html @@ -505,7 +505,7 @@ } - + diff --git a/project.json b/project.json index f66a75f..17edf32 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1717757261294,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"10.7.0"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.1.1","storybookVersionSpecifier":"^8.1.1","language":"javascript","storybookPackages":{"@storybook/blocks":{"version":"8.1.1"},"@storybook/react":{"version":"8.1.1"},"@storybook/react-vite":{"version":"8.1.1"},"@storybook/test":{"version":"8.1.1"},"storybook":{"version":"8.1.1"}},"addons":{"@storybook/addon-links":{"version":"8.1.1"},"@storybook/addon-essentials":{"version":"8.1.1"},"@storybook/addon-onboarding":{"version":"8.1.1"},"@storybook/addon-interactions":{"version":"8.1.1"},"@chromatic-com/storybook":{"version":"1.4.0"}}} +{"generatedAt":1717759926430,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"packageManager":{"type":"npm","version":"10.7.0"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.1.1","storybookVersionSpecifier":"^8.1.1","language":"javascript","storybookPackages":{"@storybook/blocks":{"version":"8.1.1"},"@storybook/react":{"version":"8.1.1"},"@storybook/react-vite":{"version":"8.1.1"},"@storybook/test":{"version":"8.1.1"},"storybook":{"version":"8.1.1"}},"addons":{"@storybook/addon-links":{"version":"8.1.1"},"@storybook/addon-essentials":{"version":"8.1.1"},"@storybook/addon-onboarding":{"version":"8.1.1"},"@storybook/addon-interactions":{"version":"8.1.1"},"@chromatic-com/storybook":{"version":"1.4.0"}}}