digital-rabbit-cl 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FileUpload/FileUpload.d.ts +39 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -0
- package/dist/components/FileUpload/index.d.ts +3 -0
- package/dist/components/FileUpload/index.d.ts.map +1 -0
- package/dist/components/Hamburger/Hamburger.d.ts +2 -3
- package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
- package/dist/components/ImageThumbnail/ImageThumbnail.d.ts +53 -0
- package/dist/components/ImageThumbnail/ImageThumbnail.d.ts.map +1 -0
- package/dist/components/ImageThumbnail/index.d.ts +3 -0
- package/dist/components/ImageThumbnail/index.d.ts.map +1 -0
- package/dist/components/NavDropdown/NavDropdown.d.ts +2 -5
- package/dist/components/NavDropdown/NavDropdown.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +11 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/digital-rabbit-cl.es.js +1561 -1320
- package/dist/digital-rabbit-cl.umd.js +4 -4
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__navMobile___h795P{flex-direction:column;min-height:100%;overflow-x:hidden}.ResponsiveNav-module__navHeader___Me8bB{height:3.5em;flex-shrink:0}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavDropdown-module__trigger___1PQZp{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;gap:.375rem;padding:0}.NavDropdown-module__chevron___ZLAV7{align-items:center;display:inline-flex;transition:transform .2s ease}.NavDropdown-module__chevronOpen___9mgjr{transform:rotate(180deg)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.Stack-module__stack___yUU-B{display:flex;gap:.5em}.Stack-module__vertical___sKTyQ{flex-direction:column;margin-bottom:.5em}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
-
(function($,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],m):($=typeof globalThis<"u"?globalThis:$||self,m($.DigitalRabbitCL={},$.jsxRuntime,$.React,$.ReactDOM))})(this,(function($,m,_,Te){"use strict";const Ve={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeLarge:"Button-module__sizeLarge___yeZSH"},Ar=({isActive:e,disabled:r,color:t,hoverColor:o,hoverTextColor:s,outline:n,theme:a})=>{const l=t||a.colors.primary,f=a.buttons.textColor;let u,d,p;n?(u="transparent",d=l,p=l,e&&(u=o||l,d=o||l,p=s||f)):(u=l,d=l,p=f,e&&(u=o||l,d=o||l,p=s||f));let y=1;return r?y=.3:e&&!o&&(y=.75),{backgroundColor:u,borderColor:d,color:p,opacity:y}};function _t(e,r){const t={...e};return xe(e)&&xe(r)&&Object.keys(r).forEach(o=>{const s=r[o],n=e[o];xe(s)&&xe(n)?t[o]=_t(n,s):s!==void 0&&(t[o]=s)}),t}function xe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function me(e){const r=e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);if(!r){const s=parseInt(e,10),n=e.replace(/[0-9.]/g,"")||"px";return{maxWidth:isNaN(s)?768:s-1,unit:n}}const t=parseFloat(r[1]),o=r[2];return{maxWidth:t-1,unit:o}}const He={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},je={colors:He,fonts:{color:"#000",lineHeight:1.5,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeightHeader:700,size:"22px",rhythm:"1.45rem",fontSizeH1:"2.5rem",fontSizeH2:"1.75rem",fontSizeH3:"1.38316rem",fontSizeH4:"1rem",fontSizeH5:"0.85028rem",fontSizeH6:"0.78405rem"},buttons:{textColor:"#FFF",paddingHorizontal:.35,primary:{textColor:He.secondary}},inputs:{paddingHorizontal:.27},sizes:{small:{paddingVertical:.07},large:{paddingVertical:.17}},border:{radius:"5px",width:"0.15em"},breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",paddingSm:"0.5rem",padding:"1rem"},modal:{backgroundColor:He.secondary,backdropColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)"}},vt=_.createContext(je),Pr=({theme:e,children:r})=>{const t=e?_t(je,e):je;return m.jsx(vt.Provider,{value:t,children:r})},j=()=>_.useContext(vt),bt=({color:e,hoverColor:r,hoverTextColor:t,disabled:o=!1,size:s="large",outline:n=!1,type:a="button",className:l,style:f,buttonProps:u={},onClick:d,children:p})=>{const y=j(),[V,C]=_.useState(!1),F={...Ar({isActive:V,disabled:o,color:e,hoverColor:r,hoverTextColor:t,outline:n,theme:y}),fontSize:y.fonts.size,borderWidth:y.border.width,borderRadius:y.border.radius,"--button-padding-small":`calc(${y.fonts.rhythm} * ${y.sizes.small.paddingVertical}) calc(${y.fonts.rhythm} * ${y.buttons.paddingHorizontal})`,"--button-padding-large":`calc(${y.fonts.rhythm} * ${y.sizes.large.paddingVertical}) calc(${y.fonts.rhythm} * ${y.buttons.paddingHorizontal})`,...f},N=[Ve.button,s==="small"?Ve.sizeSmall:Ve.sizeLarge,n?Ve.outline:"",l].filter(Boolean).join(" ");return m.jsx("button",{...u,className:N,disabled:o,onClick:d,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),type:a,style:F,children:p})};var St=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Mr=new Uint8Array(16);function Br(){if(!St)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return St(Mr)}for(var wt=[],Ee=0;Ee<256;++Ee)wt[Ee]=(Ee+256).toString(16).substr(1);function Dr(e,r){var t=0,o=wt;return[o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]]].join("")}function Ct(e,r,t){var o=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||Br)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,r)for(var n=0;n<16;++n)r[o+n]=s[n];return r||Dr(s)}const Ie={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},Or=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:o=!1})=>{let s=e;return r?s=r:o&&(s="white"),{checkboxColor:e,checkmarkColor:s,cursor:t?"default":"pointer",opacity:t?.3:1}},kt={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},Tr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),$e=({color:e,disabled:r=!1,error:t=!1,htmlFor:o,children:s,className:n,style:a,labelProps:l})=>{const f=j(),u=f.colors.error,d=t?u:e||f.colors.primary,p=Tr({color:d,disabled:r,fontSize:".85em"}),y={"--form-label-padding-bottom":`calc(${f.fonts.rhythm} * 0.17)`,color:p.color,fontSize:p.fontSize,opacity:p.opacity,cursor:p.cursor,...a},V=[kt.label,r?kt.disabled:"",n].filter(Boolean).join(" ");return m.jsx("label",{...l,className:V,htmlFor:o,style:y,children:s})},ze=({color:e,checkmarkColor:r,checked:t=!1,inverted:o=!1,disabled:s=!1,error:n=!1,name:a,id:l,onChange:f,label:u,labelStyle:d,className:p,style:y,divProps:V})=>{const C=j(),g=l||Ct(),F=C.colors.error,N=n?F:e||C.colors.primary,b=Or({color:N,checkmarkColor:r,disabled:s,inverted:o}),E=A=>{s||f(A)},z={cursor:b.cursor,fontSize:C.fonts.size,opacity:b.opacity,...y},L={width:"1em"},H={fill:o&&t?b.checkboxColor:"transparent",strokeWidth:"25",stroke:b.checkboxColor},D={stroke:b.checkmarkColor,strokeWidth:"15",fill:"transparent"},J=[Ie.container,p].filter(Boolean).join(" ");return m.jsxs("div",{...V,className:J,style:z,children:[m.jsx("input",{id:g,checked:t,disabled:s,onChange:A=>E({target:{checked:A.target.checked,name:a,type:"checkbox"}}),name:a,style:{display:"none"},type:"checkbox"}),m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>E({target:{checked:!t,name:a,type:"checkbox"}}),style:L,className:Ie.svg,children:[m.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:H}),t&&m.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:D})]}),u&&m.jsx($e,{htmlFor:g,className:Ie.label,style:{paddingBottom:0,...d},color:b.checkboxColor,disabled:s,error:n,children:u})]})},Hr=()=>{const e=j();return _.useLayoutEffect(()=>{const r=document.documentElement;e.fonts&&(e.fonts.fontFamily&&r.style.setProperty("--font-family",e.fonts.fontFamily),e.fonts.size&&r.style.setProperty("--font-size",e.fonts.size),e.fonts.lineHeight!==void 0&&r.style.setProperty("--line-height",e.fonts.lineHeight.toString()),e.fonts.fontWeightHeader!==void 0&&r.style.setProperty("--font-weight-header",e.fonts.fontWeightHeader.toString()),e.fonts.fontSizeH1&&r.style.setProperty("--font-size-h1",e.fonts.fontSizeH1),e.fonts.fontSizeH2&&r.style.setProperty("--font-size-h2",e.fonts.fontSizeH2),e.fonts.fontSizeH3&&r.style.setProperty("--font-size-h3",e.fonts.fontSizeH3),e.fonts.fontSizeH4&&r.style.setProperty("--font-size-h4",e.fonts.fontSizeH4),e.fonts.fontSizeH5&&r.style.setProperty("--font-size-h5",e.fonts.fontSizeH5),e.fonts.fontSizeH6&&r.style.setProperty("--font-size-h6",e.fonts.fontSizeH6)),e.colors&&(e.colors.primary&&r.style.setProperty("--primary-color",e.colors.primary),e.colors.secondary&&r.style.setProperty("--background-color",e.colors.secondary),e.colors.accent&&r.style.setProperty("--accent-color",e.colors.accent)),e.breakpoints&&(e.breakpoints.xs&&r.style.setProperty("--breakpoint-xs",e.breakpoints.xs),e.breakpoints.sm&&r.style.setProperty("--breakpoint-sm",e.breakpoints.sm),e.breakpoints.md&&r.style.setProperty("--breakpoint-md",e.breakpoints.md),e.breakpoints.lg&&r.style.setProperty("--breakpoint-lg",e.breakpoints.lg)),e.layout&&(e.layout.maxWidth&&r.style.setProperty("--layout-max-width",e.layout.maxWidth),e.layout.paddingSm&&r.style.setProperty("--layout-wrapper-padding-sm",e.layout.paddingSm),e.layout.padding&&r.style.setProperty("--layout-wrapper-padding",e.layout.padding))},[e]),null};var Se=e=>e.type==="checkbox",ye=e=>e instanceof Date,R=e=>e==null;const Ft=e=>typeof e=="object";var q=e=>!R(e)&&!Array.isArray(e)&&Ft(e)&&!ye(e),Vt=e=>q(e)&&e.target?Se(e.target)?e.target.checked:e.target.value:e,jr=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,xt=(e,r)=>e.has(jr(r)),Ir=e=>{const r=e.constructor&&e.constructor.prototype;return q(r)&&r.hasOwnProperty("isPrototypeOf")},We=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Z(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(We&&(e instanceof Blob||o))&&(t||q(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!Ir(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=Z(e[s]));else return e;return r}var Ne=e=>/^\w*$/.test(e),U=e=>e===void 0,Ue=e=>Array.isArray(e)?e.filter(Boolean):[],qe=e=>Ue(e.replace(/["|']|\]/g,"").split(/\.|\[/)),w=(e,r,t)=>{if(!r||!q(e))return t;const o=(Ne(r)?[r]:qe(r)).reduce((s,n)=>R(s)?s:s[n],e);return U(o)||o===e?U(e[r])?t:e[r]:o},ee=e=>typeof e=="boolean",B=(e,r,t)=>{let o=-1;const s=Ne(r)?[r]:qe(r),n=s.length,a=n-1;for(;++o<n;){const l=s[o];let f=t;if(o!==a){const u=e[l];f=q(u)||Array.isArray(u)?u:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=f,e=e[l]}};const Le={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ce={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Et=_.createContext(null);Et.displayName="HookFormContext";const Ge=()=>_.useContext(Et);var $t=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return r._proxyFormState[a]!==ne.all&&(r._proxyFormState[a]=!o||ne.all),t&&(t[a]=!0),e[a]}});return s};const Ze=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Wr(e){const r=Ge(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,l]=_.useState(t._formState),f=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ze(()=>t._subscribe({name:s,formState:f.current,exact:n,callback:u=>{!o&&l({...t._formState,...u})}}),[s,o,n]),_.useEffect(()=>{f.current.isValid&&t._setValid(!0)},[t]),_.useMemo(()=>$t(a,t,f.current,!1),[a,t])}var te=e=>typeof e=="string",Qe=(e,r,t,o,s)=>te(e)?(o&&r.watch.add(e),w(t,e,s)):Array.isArray(e)?e.map(n=>(o&&r.watch.add(n),w(t,n))):(o&&(r.watchAll=!0),t),Ke=e=>R(e)||!Ft(e);function ae(e,r,t=new WeakSet){if(Ke(e)||Ke(r))return e===r;if(ye(e)&&ye(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of o){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=r[n];if(ye(a)&&ye(l)||q(a)&&q(l)||Array.isArray(a)&&Array.isArray(l)?!ae(a,l,t):a!==l)return!1}}return!0}function Ur(e){const r=Ge(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},f=_.useRef(s),u=_.useRef(l),d=_.useRef(void 0),p=_.useRef(t),y=_.useRef(o);u.current=l;const[V,C]=_.useState(()=>{const z=t._getWatch(o,f.current);return u.current?u.current(z):z}),g=_.useCallback(z=>{const L=Qe(o,t._names,z||t._formValues,!1,f.current);return u.current?u.current(L):L},[t._formValues,t._names,o]),F=_.useCallback(z=>{if(!n){const L=Qe(o,t._names,z||t._formValues,!1,f.current);if(u.current){const H=u.current(L);ae(H,d.current)||(C(H),d.current=H)}else C(L)}},[t._formValues,t._names,n,o]);Ze(()=>((p.current!==t||!ae(y.current,o))&&(p.current=t,y.current=o,F()),t._subscribe({name:o,formState:{values:!0},exact:a,callback:z=>{F(z.values)}})),[t,a,o,F]),_.useEffect(()=>t._removeUnmounted());const N=p.current!==t,b=y.current,E=_.useMemo(()=>{if(n)return null;const z=!N&&!ae(b,o);return N||z?g():null},[n,N,o,b,g]);return E!==null?E:V}function qr(e){const r=Ge(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,l=xt(s._names.array,t),f=_.useMemo(()=>w(s._formValues,t,w(s._defaultValues,t,a)),[s,t,a]),u=Ur({control:s,name:t,defaultValue:f,exact:!0}),d=Wr({control:s,name:t,exact:!0}),p=_.useRef(e),y=_.useRef(void 0),V=_.useRef(s.register(t,{...e.rules,value:u,...ee(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const C=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!w(d.errors,t)},isDirty:{enumerable:!0,get:()=>!!w(d.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!w(d.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!w(d.validatingFields,t)},error:{enumerable:!0,get:()=>w(d.errors,t)}}),[d,t]),g=_.useCallback(E=>V.current.onChange({target:{value:Vt(E),name:t},type:Le.CHANGE}),[t]),F=_.useCallback(()=>V.current.onBlur({target:{value:w(s._formValues,t),name:t},type:Le.BLUR}),[t,s._formValues]),N=_.useCallback(E=>{const z=w(s._fields,t);z&&E&&(z._f.ref={focus:()=>E.focus&&E.focus(),select:()=>E.select&&E.select(),setCustomValidity:L=>E.setCustomValidity(L),reportValidity:()=>E.reportValidity()})},[s._fields,t]),b=_.useMemo(()=>({name:t,value:u,...ee(o)||d.disabled?{disabled:d.disabled||o}:{},onChange:g,onBlur:F,ref:N}),[t,o,d.disabled,g,F,N,u]);return _.useEffect(()=>{const E=s._options.shouldUnregister||n,z=y.current;z&&z!==t&&!l&&s.unregister(z),s.register(t,{...p.current.rules,...ee(p.current.disabled)?{disabled:p.current.disabled}:{}});const L=(H,D)=>{const J=w(s._fields,H);J&&J._f&&(J._f.mount=D)};if(L(t,!0),E){const H=Z(w(s._options.defaultValues,t,p.current.defaultValue));B(s._defaultValues,t,H),U(w(s._formValues,t))&&B(s._formValues,t,H)}return!l&&s.register(t),y.current=t,()=>{(l?E&&!s._state.action:E)?s.unregister(t):L(t,!1)}},[t,s,l,n]),_.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),_.useMemo(()=>({field:b,formState:d,fieldState:C}),[b,d,C])}var Je=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},we=e=>Array.isArray(e)?e:[e],zt=()=>{let e=[];return{get observers(){return e},next:s=>{for(const n of e)n.next&&n.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(n=>n!==s)}}),unsubscribe:()=>{e=[]}}};function Nt(e,r){const t={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o],n=r[o];if(s&&q(s)&&n){const a=Nt(s,n);q(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var K=e=>q(e)&&!Object.keys(e).length,Xe=e=>e.type==="file",le=e=>typeof e=="function",Ae=e=>{if(!We)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Lt=e=>e.type==="select-multiple",Ye=e=>e.type==="radio",Gr=e=>Ye(e)||Se(e),Re=e=>Ae(e)&&e.isConnected;function Zr(e,r){const t=r.slice(0,-1).length;let o=0;for(;o<t;)e=U(e)?o++:e[r[o++]];return e}function Qr(e){for(const r in e)if(e.hasOwnProperty(r)&&!U(e[r]))return!1;return!0}function G(e,r){const t=Array.isArray(r)?r:Ne(r)?[r]:qe(r),o=t.length===1?e:Zr(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(q(o)&&K(o)||Array.isArray(o)&&Qr(o))&&G(e,t.slice(0,-1)),e}var Kr=e=>{for(const r in e)if(le(e[r]))return!0;return!1};function At(e){return Array.isArray(e)||q(e)&&!Kr(e)}function et(e,r={}){for(const t in e)At(e[t])?(r[t]=Array.isArray(e[t])?[]:{},et(e[t],r[t])):U(e[t])||(r[t]=!0);return r}function pe(e,r,t){t||(t=et(r));for(const o in e)At(e[o])?U(r)||Ke(t[o])?t[o]=et(e[o],Array.isArray(e[o])?[]:{}):pe(e[o],R(r)?{}:r[o],t[o]):t[o]=!ae(e[o],r[o]);return t}const Pt={value:!1,isValid:!1},Mt={value:!0,isValid:!0};var Bt=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!U(e[0].attributes.value)?U(e[0].value)||e[0].value===""?Mt:{value:e[0].value,isValid:!0}:Mt:Pt}return Pt},Dt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:o})=>U(e)?e:r?e===""?NaN:e&&+e:t&&te(e)?new Date(e):o?o(e):e;const Ot={isValid:!1,value:null};var Tt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Ot):Ot;function Ht(e){const r=e.ref;return Xe(r)?r.files:Ye(r)?Tt(e.refs).value:Lt(r)?[...r.selectedOptions].map(({value:t})=>t):Se(r)?Bt(e.refs).value:Dt(U(r.value)?e.ref.value:r.value,e)}var Jr=(e,r,t,o)=>{const s={};for(const n of e){const a=w(r,n);a&&B(s,n,a._f)}return{criteriaMode:t,names:[...e],fields:s,shouldUseNativeValidation:o}},Pe=e=>e instanceof RegExp,Ce=e=>U(e)?e:Pe(e)?e.source:q(e)?Pe(e.value)?e.value.source:e.value:e,jt=e=>({isOnSubmit:!e||e===ne.onSubmit,isOnBlur:e===ne.onBlur,isOnChange:e===ne.onChange,isOnAll:e===ne.all,isOnTouch:e===ne.onTouched});const It="AsyncFunction";var Xr=e=>!!e&&!!e.validate&&!!(le(e.validate)&&e.validate.constructor.name===It||q(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===It)),Yr=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Wt=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const ke=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=w(e,s);if(n){const{_f:a,...l}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],s)&&!o)return!0;if(a.ref&&r(a.ref,a.name)&&!o)return!0;if(ke(l,r))break}else if(q(l)&&ke(l,r))break}}};function Ut(e,r,t){const o=w(e,t);if(o||Ne(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=w(r,n),l=w(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(l&&l.type)return{name:n,error:l};if(l&&l.root&&l.root.type)return{name:`${n}.root`,error:l.root};s.pop()}return{name:t}}var Rr=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return K(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||ne.all))},eo=(e,r,t)=>!e||!r||e===r||we(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),to=(e,r,t,o,s)=>s.isOnAll?!1:!t&&s.isOnTouch?!(r||e):(t?o.isOnBlur:s.isOnBlur)?!e:(t?o.isOnChange:s.isOnChange)?e:!0,ro=(e,r)=>!Ue(w(e,r)).length&&G(e,r),oo=(e,r,t)=>{const o=we(w(e,t));return B(o,"root",r[t]),B(e,t,o),e};function qt(e,r,t="validate"){if(te(e)||Array.isArray(e)&&e.every(te)||ee(e)&&!e)return{type:t,message:te(e)?e:"",ref:r}}var ge=e=>q(e)&&!Pe(e)?e:{value:e,message:""},Gt=async(e,r,t,o,s,n)=>{const{ref:a,refs:l,required:f,maxLength:u,minLength:d,min:p,max:y,pattern:V,validate:C,name:g,valueAsNumber:F,mount:N}=e._f,b=w(t,g);if(!N||r.has(g))return{};const E=l?l[0]:a,z=P=>{s&&E.reportValidity&&(E.setCustomValidity(ee(P)?"":P||""),E.reportValidity())},L={},H=Ye(a),D=Se(a),J=H||D,A=(F||Xe(a))&&U(a.value)&&U(b)||Ae(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,X=Je.bind(null,g,o,L),Y=(P,M,W,O=ce.maxLength,Q=ce.minLength)=>{const re=P?M:W;L[g]={type:P?O:Q,message:re,ref:a,...X(P?O:Q,re)}};if(n?!Array.isArray(b)||!b.length:f&&(!J&&(A||R(b))||ee(b)&&!b||D&&!Bt(l).isValid||H&&!Tt(l).isValid)){const{value:P,message:M}=te(f)?{value:!!f,message:f}:ge(f);if(P&&(L[g]={type:ce.required,message:M,ref:E,...X(ce.required,M)},!o))return z(M),L}if(!A&&(!R(p)||!R(y))){let P,M;const W=ge(y),O=ge(p);if(!R(b)&&!isNaN(b)){const Q=a.valueAsNumber||b&&+b;R(W.value)||(P=Q>W.value),R(O.value)||(M=Q<O.value)}else{const Q=a.valueAsDate||new Date(b),re=De=>new Date(new Date().toDateString()+" "+De),de=a.type=="time",be=a.type=="week";te(W.value)&&b&&(P=de?re(b)>re(W.value):be?b>W.value:Q>new Date(W.value)),te(O.value)&&b&&(M=de?re(b)<re(O.value):be?b<O.value:Q<new Date(O.value))}if((P||M)&&(Y(!!P,W.message,O.message,ce.max,ce.min),!o))return z(L[g].message),L}if((u||d)&&!A&&(te(b)||n&&Array.isArray(b))){const P=ge(u),M=ge(d),W=!R(P.value)&&b.length>+P.value,O=!R(M.value)&&b.length<+M.value;if((W||O)&&(Y(W,P.message,M.message),!o))return z(L[g].message),L}if(V&&!A&&te(b)){const{value:P,message:M}=ge(V);if(Pe(P)&&!b.match(P)&&(L[g]={type:ce.pattern,message:M,ref:a,...X(ce.pattern,M)},!o))return z(M),L}if(C){if(le(C)){const P=await C(b,t),M=qt(P,E);if(M&&(L[g]={...M,...X(ce.validate,M.message)},!o))return z(M.message),L}else if(q(C)){let P={};for(const M in C){if(!K(P)&&!o)break;const W=qt(await C[M](b,t),E,M);W&&(P={...W,...X(M,W.message)},z(W.message),o&&(L[g]=P))}if(!K(P)&&(L[g]={ref:E,...P},!o))return L}}return z(!0),L};const so={mode:ne.onSubmit,reValidateMode:ne.onChange,shouldFocusError:!0};function no(e={}){let r={...so,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:le(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},s=q(r.defaultValues)||q(r.values)?Z(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:Z(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let p={...d};const y={array:zt(),state:zt()},V=r.criteriaMode===ne.all,C=i=>c=>{clearTimeout(u),u=setTimeout(i,c)},g=async i=>{if(!r.disabled&&(d.isValid||p.isValid||i)){const c=r.resolver?K((await D()).errors):await A(o,!0);c!==t.isValid&&y.state.next({isValid:c})}},F=(i,c)=>{!r.disabled&&(d.isValidating||d.validatingFields||p.isValidating||p.validatingFields)&&((i||Array.from(l.mount)).forEach(h=>{h&&(c?B(t.validatingFields,h,c):G(t.validatingFields,h))}),y.state.next({validatingFields:t.validatingFields,isValidating:!K(t.validatingFields)}))},N=(i,c=[],h,k,S=!0,v=!0)=>{if(k&&h&&!r.disabled){if(a.action=!0,v&&Array.isArray(w(o,i))){const x=h(w(o,i),k.argA,k.argB);S&&B(o,i,x)}if(v&&Array.isArray(w(t.errors,i))){const x=h(w(t.errors,i),k.argA,k.argB);S&&B(t.errors,i,x),ro(t.errors,i)}if((d.touchedFields||p.touchedFields)&&v&&Array.isArray(w(t.touchedFields,i))){const x=h(w(t.touchedFields,i),k.argA,k.argB);S&&B(t.touchedFields,i,x)}(d.dirtyFields||p.dirtyFields)&&(t.dirtyFields=pe(s,n)),y.state.next({name:i,isDirty:Y(i,c),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else B(n,i,c)},b=(i,c)=>{B(t.errors,i,c),y.state.next({errors:t.errors})},E=i=>{t.errors=i,y.state.next({errors:t.errors,isValid:!1})},z=(i,c,h,k)=>{const S=w(o,i);if(S){const v=w(n,i,U(h)?w(s,i):h);U(v)||k&&k.defaultChecked||c?B(n,i,c?v:Ht(S._f)):W(i,v),a.mount&&g()}},L=(i,c,h,k,S)=>{let v=!1,x=!1;const T={name:i};if(!r.disabled){if(!h||k){(d.isDirty||p.isDirty)&&(x=t.isDirty,t.isDirty=T.isDirty=Y(),v=x!==T.isDirty);const I=ae(w(s,i),c);x=!!w(t.dirtyFields,i),I?G(t.dirtyFields,i):B(t.dirtyFields,i,!0),T.dirtyFields=t.dirtyFields,v=v||(d.dirtyFields||p.dirtyFields)&&x!==!I}if(h){const I=w(t.touchedFields,i);I||(B(t.touchedFields,i,h),T.touchedFields=t.touchedFields,v=v||(d.touchedFields||p.touchedFields)&&I!==h)}v&&S&&y.state.next(T)}return v?T:{}},H=(i,c,h,k)=>{const S=w(t.errors,i),v=(d.isValid||p.isValid)&&ee(c)&&t.isValid!==c;if(r.delayError&&h?(f=C(()=>b(i,h)),f(r.delayError)):(clearTimeout(u),f=null,h?B(t.errors,i,h):G(t.errors,i)),(h?!ae(S,h):S)||!K(k)||v){const x={...k,...v&&ee(c)?{isValid:c}:{},errors:t.errors,name:i};t={...t,...x},y.state.next(x)}},D=async i=>{F(i,!0);const c=await r.resolver(n,r.context,Jr(i||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return F(i),c},J=async i=>{const{errors:c}=await D(i);if(i)for(const h of i){const k=w(c,h);k?B(t.errors,h,k):G(t.errors,h)}else t.errors=c;return c},A=async(i,c,h={valid:!0})=>{for(const k in i){const S=i[k];if(S){const{_f:v,...x}=S;if(v){const T=l.array.has(v.name),I=S._f&&Xr(S._f);I&&d.validatingFields&&F([v.name],!0);const se=await Gt(S,l.disabled,n,V,r.shouldUseNativeValidation&&!c,T);if(I&&d.validatingFields&&F([v.name]),se[v.name]&&(h.valid=!1,c))break;!c&&(w(se,v.name)?T?oo(t.errors,se,v.name):B(t.errors,v.name,se[v.name]):G(t.errors,v.name))}!K(x)&&await A(x,c,h)}}return h.valid},X=()=>{for(const i of l.unMount){const c=w(o,i);c&&(c._f.refs?c._f.refs.every(h=>!Re(h)):!Re(c._f.ref))&&yt(i)}l.unMount=new Set},Y=(i,c)=>!r.disabled&&(i&&c&&B(n,i,c),!ae(De(),s)),P=(i,c,h)=>Qe(i,l,{...a.mount?n:U(c)?s:te(i)?{[i]:c}:c},h,c),M=i=>Ue(w(a.mount?n:s,i,r.shouldUnregister?w(s,i,[]):[])),W=(i,c,h={})=>{const k=w(o,i);let S=c;if(k){const v=k._f;v&&(!v.disabled&&B(n,i,Dt(c,v)),S=Ae(v.ref)&&R(c)?"":c,Lt(v.ref)?[...v.ref.options].forEach(x=>x.selected=S.includes(x.value)):v.refs?Se(v.ref)?v.refs.forEach(x=>{(!x.defaultChecked||!x.disabled)&&(Array.isArray(S)?x.checked=!!S.find(T=>T===x.value):x.checked=S===x.value||!!S)}):v.refs.forEach(x=>x.checked=x.value===S):Xe(v.ref)?v.ref.value="":(v.ref.value=S,v.ref.type||y.state.next({name:i,values:Z(n)})))}(h.shouldDirty||h.shouldTouch)&&L(i,S,h.shouldTouch,h.shouldDirty,!0),h.shouldValidate&&be(i)},O=(i,c,h)=>{for(const k in c){if(!c.hasOwnProperty(k))return;const S=c[k],v=i+"."+k,x=w(o,v);(l.array.has(i)||q(S)||x&&!x._f)&&!ye(S)?O(v,S,h):W(v,S,h)}},Q=(i,c,h={})=>{const k=w(o,i),S=l.array.has(i),v=Z(c);B(n,i,v),S?(y.array.next({name:i,values:Z(n)}),(d.isDirty||d.dirtyFields||p.isDirty||p.dirtyFields)&&h.shouldDirty&&y.state.next({name:i,dirtyFields:pe(s,n),isDirty:Y(i,v)})):k&&!k._f&&!R(v)?O(i,v,h):W(i,v,h),Wt(i,l)&&y.state.next({...t,name:i}),y.state.next({name:a.mount?i:void 0,values:Z(n)})},re=async i=>{a.mount=!0;const c=i.target;let h=c.name,k=!0;const S=w(o,h),v=I=>{k=Number.isNaN(I)||ye(I)&&isNaN(I.getTime())||ae(I,w(n,h,I))},x=jt(r.mode),T=jt(r.reValidateMode);if(S){let I,se;const Oe=c.type?Ht(S._f):Vt(i),fe=i.type===Le.BLUR||i.type===Le.FOCUS_OUT,as=!Yr(S._f)&&!r.resolver&&!w(t.errors,h)&&!S._f.deps||to(fe,w(t.touchedFields,h),t.isSubmitted,T,x),pt=Wt(h,l,fe);B(n,h,Oe),fe?(!c||!c.readOnly)&&(S._f.onBlur&&S._f.onBlur(i),f&&f(0)):S._f.onChange&&S._f.onChange(i);const gt=L(h,Oe,fe),ls=!K(gt)||pt;if(!fe&&y.state.next({name:h,type:i.type,values:Z(n)}),as)return(d.isValid||p.isValid)&&(r.mode==="onBlur"?fe&&g():fe||g()),ls&&y.state.next({name:h,...pt?{}:gt});if(!fe&&pt&&y.state.next({...t}),r.resolver){const{errors:Nr}=await D([h]);if(v(Oe),k){const is=Ut(t.errors,o,h),Lr=Ut(Nr,o,is.name||h);I=Lr.error,h=Lr.name,se=K(Nr)}}else F([h],!0),I=(await Gt(S,l.disabled,n,V,r.shouldUseNativeValidation))[h],F([h]),v(Oe),k&&(I?se=!1:(d.isValid||p.isValid)&&(se=await A(o,!0)));k&&(S._f.deps&&(!Array.isArray(S._f.deps)||S._f.deps.length>0)&&be(S._f.deps),H(h,se,I,gt))}},de=(i,c)=>{if(w(t.errors,c)&&i.focus)return i.focus(),1},be=async(i,c={})=>{let h,k;const S=we(i);if(r.resolver){const v=await J(U(i)?i:S);h=K(v),k=i?!S.some(x=>w(v,x)):h}else i?(k=(await Promise.all(S.map(async v=>{const x=w(o,v);return await A(x&&x._f?{[v]:x}:x)}))).every(Boolean),!(!k&&!t.isValid)&&g()):k=h=await A(o);return y.state.next({...!te(i)||(d.isValid||p.isValid)&&h!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:h}:{},errors:t.errors}),c.shouldFocus&&!k&&ke(o,de,i?S:l.mount),k},De=(i,c)=>{let h={...a.mount?n:s};return c&&(h=Nt(c.dirtyFields?t.dirtyFields:t.touchedFields,h)),U(i)?h:te(i)?w(h,i):i.map(k=>w(h,k))},Cr=(i,c)=>({invalid:!!w((c||t).errors,i),isDirty:!!w((c||t).dirtyFields,i),error:w((c||t).errors,i),isValidating:!!w(t.validatingFields,i),isTouched:!!w((c||t).touchedFields,i)}),Ro=i=>{i&&we(i).forEach(c=>G(t.errors,c)),y.state.next({errors:i?t.errors:{}})},kr=(i,c,h)=>{const k=(w(o,i,{_f:{}})._f||{}).ref,S=w(t.errors,i)||{},{ref:v,message:x,type:T,...I}=S;B(t.errors,i,{...I,...c,ref:k}),y.state.next({name:i,errors:t.errors,isValid:!1}),h&&h.shouldFocus&&k&&k.focus&&k.focus()},es=(i,c)=>le(i)?y.state.subscribe({next:h=>"values"in h&&i(P(void 0,c),h)}):P(i,c,!0),Fr=i=>y.state.subscribe({next:c=>{eo(i.name,c.name,i.exact)&&Rr(c,i.formState||d,ns,i.reRenderRoot)&&i.callback({values:{...n},...t,...c,defaultValues:s})}}).unsubscribe,ts=i=>(a.mount=!0,p={...p,...i.formState},Fr({...i,formState:p})),yt=(i,c={})=>{for(const h of i?we(i):l.mount)l.mount.delete(h),l.array.delete(h),c.keepValue||(G(o,h),G(n,h)),!c.keepError&&G(t.errors,h),!c.keepDirty&&G(t.dirtyFields,h),!c.keepTouched&&G(t.touchedFields,h),!c.keepIsValidating&&G(t.validatingFields,h),!r.shouldUnregister&&!c.keepDefaultValue&&G(s,h);y.state.next({values:Z(n)}),y.state.next({...t,...c.keepDirty?{isDirty:Y()}:{}}),!c.keepIsValid&&g()},Vr=({disabled:i,name:c})=>{(ee(i)&&a.mount||i||l.disabled.has(c))&&(i?l.disabled.add(c):l.disabled.delete(c))},ht=(i,c={})=>{let h=w(o,i);const k=ee(c.disabled)||ee(r.disabled);return B(o,i,{...h||{},_f:{...h&&h._f?h._f:{ref:{name:i}},name:i,mount:!0,...c}}),l.mount.add(i),h?Vr({disabled:ee(c.disabled)?c.disabled:r.disabled,name:i}):z(i,!0,c.value),{...k?{disabled:c.disabled||r.disabled}:{},...r.progressive?{required:!!c.required,min:Ce(c.min),max:Ce(c.max),minLength:Ce(c.minLength),maxLength:Ce(c.maxLength),pattern:Ce(c.pattern)}:{},name:i,onChange:re,onBlur:re,ref:S=>{if(S){ht(i,c),h=w(o,i);const v=U(S.value)&&S.querySelectorAll&&S.querySelectorAll("input,select,textarea")[0]||S,x=Gr(v),T=h._f.refs||[];if(x?T.find(I=>I===v):v===h._f.ref)return;B(o,i,{_f:{...h._f,...x?{refs:[...T.filter(Re),v,...Array.isArray(w(s,i))?[{}]:[]],ref:{type:v.type,name:i}}:{ref:v}}}),z(i,!1,void 0,v)}else h=w(o,i,{}),h._f&&(h._f.mount=!1),(r.shouldUnregister||c.shouldUnregister)&&!(xt(l.array,i)&&a.action)&&l.unMount.add(i)}}},mt=()=>r.shouldFocusError&&ke(o,de,l.mount),rs=i=>{ee(i)&&(y.state.next({disabled:i}),ke(o,(c,h)=>{const k=w(o,h);k&&(c.disabled=k._f.disabled||i,Array.isArray(k._f.refs)&&k._f.refs.forEach(S=>{S.disabled=k._f.disabled||i}))},0,!1))},xr=(i,c)=>async h=>{let k;h&&(h.preventDefault&&h.preventDefault(),h.persist&&h.persist());let S=Z(n);if(y.state.next({isSubmitting:!0}),r.resolver){const{errors:v,values:x}=await D();t.errors=v,S=Z(x)}else await A(o);if(l.disabled.size)for(const v of l.disabled)G(S,v);if(G(t.errors,"root"),K(t.errors)){y.state.next({errors:{}});try{await i(S,h)}catch(v){k=v}}else c&&await c({...t.errors},h),mt(),setTimeout(mt);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:K(t.errors)&&!k,submitCount:t.submitCount+1,errors:t.errors}),k)throw k},os=(i,c={})=>{w(o,i)&&(U(c.defaultValue)?Q(i,Z(w(s,i))):(Q(i,c.defaultValue),B(s,i,Z(c.defaultValue))),c.keepTouched||G(t.touchedFields,i),c.keepDirty||(G(t.dirtyFields,i),t.isDirty=c.defaultValue?Y(i,Z(w(s,i))):Y()),c.keepError||(G(t.errors,i),d.isValid&&g()),y.state.next({...t}))},Er=(i,c={})=>{const h=i?Z(i):s,k=Z(h),S=K(i),v=S?s:k;if(c.keepDefaultValues||(s=h),!c.keepValues){if(c.keepDirtyValues){const x=new Set([...l.mount,...Object.keys(pe(s,n))]);for(const T of Array.from(x))w(t.dirtyFields,T)?B(v,T,w(n,T)):Q(T,w(v,T))}else{if(We&&U(i))for(const x of l.mount){const T=w(o,x);if(T&&T._f){const I=Array.isArray(T._f.refs)?T._f.refs[0]:T._f.ref;if(Ae(I)){const se=I.closest("form");if(se){se.reset();break}}}}if(c.keepFieldsRef)for(const x of l.mount)Q(x,w(v,x));else o={}}n=r.shouldUnregister?c.keepDefaultValues?Z(s):{}:Z(v),y.array.next({values:{...v}}),y.state.next({values:{...v}})}l={mount:c.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!r.shouldUnregister&&!K(v),a.watch=!!r.shouldUnregister,y.state.next({submitCount:c.keepSubmitCount?t.submitCount:0,isDirty:S?!1:c.keepDirty?t.isDirty:!!(c.keepDefaultValues&&!ae(i,s)),isSubmitted:c.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:S?{}:c.keepDirtyValues?c.keepDefaultValues&&n?pe(s,n):t.dirtyFields:c.keepDefaultValues&&i?pe(s,i):c.keepDirty?t.dirtyFields:{},touchedFields:c.keepTouched?t.touchedFields:{},errors:c.keepErrors?t.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},$r=(i,c)=>Er(le(i)?i(n):i,c),ss=(i,c={})=>{const h=w(o,i),k=h&&h._f;if(k){const S=k.refs?k.refs[0]:k.ref;S.focus&&(S.focus(),c.shouldSelect&&le(S.select)&&S.select())}},ns=i=>{t={...t,...i}},zr={control:{register:ht,unregister:yt,getFieldState:Cr,handleSubmit:xr,setError:kr,_subscribe:Fr,_runSchema:D,_focusError:mt,_getWatch:P,_getDirty:Y,_setValid:g,_setFieldArray:N,_setDisabledField:Vr,_setErrors:E,_getFieldArray:M,_reset:Er,_resetDefaultValues:()=>le(r.defaultValues)&&r.defaultValues().then(i=>{$r(i,r.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:X,_disableForm:rs,_subjects:y,_proxyFormState:d,get _fields(){return o},get _formValues(){return n},get _state(){return a},set _state(i){a=i},get _defaultValues(){return s},get _names(){return l},set _names(i){l=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:ts,trigger:be,register:ht,handleSubmit:xr,watch:es,setValue:Q,getValues:De,reset:$r,resetField:os,clearErrors:Ro,unregister:yt,setError:kr,setFocus:ss,getFieldState:Cr};return{...zr,formControl:zr}}function ao(e={}){const r=_.useRef(void 0),t=_.useRef(void 0),[o,s]=_.useState({isDirty:!1,isValidating:!1,isLoading:le(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:le(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:o},e.defaultValues&&!le(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...l}=no(e);r.current={...l,formState:o}}const n=r.current.control;return n._options=e,Ze(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>s({...n._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),n._formState.isReady=!0,a},[n]),_.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),_.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),_.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),_.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),_.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==o.isDirty&&n._subjects.state.next({isDirty:a})}},[n,o.isDirty]),_.useEffect(()=>{e.values&&!ae(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,s(a=>({...a}))):n._resetDefaultValues()},[n,e.values]),_.useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),r.current.formState=$t(o,n),r.current}const Zt=(e,r,t)=>{if(e&&"reportValidity"in e){const o=w(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},tt=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?Zt(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>Zt(s,t,e))}},Qt=(e,r)=>{r.shouldUseNativeValidation&&tt(e,r);const t={};for(const o in e){const s=w(r.fields,o),n=Object.assign(e[o]||{},{ref:s&&s.ref});if(lo(r.names||Object.keys(e),o)){const a=Object.assign({},w(t,o));B(a,"root",n),B(t,o,a)}else B(t,o,n)}return t},lo=(e,r)=>{const t=Kt(r);return e.some(o=>Kt(o).match(`^${t}\\.\\d+`))};function Kt(e){return e.replace(/\]|\[/g,"")}function Jt(e,r,t){function o(l,f){var u;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(u=l._zod).traits??(u.traits=new Set),l._zod.traits.add(e),r(l,f);for(const d in a.prototype)d in l||Object.defineProperty(l,d,{value:a.prototype[d].bind(l)});l._zod.constr=a,l._zod.def=f}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var f;const u=t!=null&&t.Parent?new n:this;o(u,l),(f=u._zod).deferred??(f.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var f,u;return t!=null&&t.Parent&&l instanceof t.Parent?!0:(u=(f=l==null?void 0:l._zod)==null?void 0:f.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class io extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const co={};function Xt(e){return co}function uo(e,r){return typeof r=="bigint"?r.toString():r}const Yt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Me(e){return typeof e=="string"?e:e==null?void 0:e.message}function Rt(e,r,t){var s,n,a,l,f,u;const o={...e,path:e.path??[]};if(!e.message){const d=Me((a=(n=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:n.error)==null?void 0:a.call(n,e))??Me((l=r==null?void 0:r.error)==null?void 0:l.call(r,e))??Me((f=t.customError)==null?void 0:f.call(t,e))??Me((u=t.localeError)==null?void 0:u.call(t,e))??"Invalid input";o.message=d}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const er=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,uo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fo=Jt("$ZodError",er),tr=Jt("$ZodError",er,{Parent:Error}),yo=(e=>(r,t,o,s)=>{const n=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new io;if(a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>Rt(f,n,Xt())));throw Yt(l,s==null?void 0:s.callee),l}return a.value})(tr),ho=(e=>async(r,t,o,s)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(f=>Rt(f,n,Xt())));throw Yt(l,s==null?void 0:s.callee),l}return a.value})(tr);function rr(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function mo(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if("unionErrors"in o){var l=o.unionErrors[0].errors[0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(d){return d.errors.forEach(function(p){return e.push(p)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Je(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return t}function po(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if(o.code==="invalid_union"&&o.errors.length>0){var l=o.errors[0][0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(d){return d.forEach(function(p){return e.push(p)})}),r){var f=t[a].types,u=f&&f[o.code];t[a]=Je(a,r,t,s,u?[].concat(u,o.message):o.message)}e.shift()}return t}function go(e,r,t){if(t===void 0&&(t={}),(function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def})(e))return function(o,s,n){try{return Promise.resolve(rr(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&tt({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return Array.isArray(l==null?void 0:l.issues)})(a))return{values:{},errors:Qt(mo(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(o){return"_zod"in o&&typeof o._zod=="object"})(e))return function(o,s,n){try{return Promise.resolve(rr(function(){return Promise.resolve((t.mode==="sync"?yo:ho)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&tt({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return l instanceof fo})(a))return{values:{},errors:Qt(po(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const or=_.createContext(null);function sr(){const e=_.useContext(or);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function _o({onSubmit:e,children:r,schema:t,defaultValues:o,mode:s="onSubmit",reValidateMode:n="onChange",className:a,style:l,formProps:f}){const u=ao({resolver:t?go(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),d=u.handleSubmit(e);return m.jsx(or.Provider,{value:u,children:m.jsx("form",{...f,className:a,style:l,onSubmit:d,children:typeof r=="function"?r(u):r})})}const vo=_o,bo={formError:"FormError-module__formError___kaUBn"},nr=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=j(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},l=[bo.formError,t].filter(Boolean).join(" ");return m.jsx("div",{...s,className:l,style:a,role:"alert","aria-live":"polite",children:r})},_e={formGroup:"FormGroup-module__formGroup___aVI-B",inputWrapper:"FormGroup-module__inputWrapper___429QE",indented:"FormGroup-module__indented___t61iz",disabled:"FormGroup-module__disabled___W-tJ0",required:"FormGroup-module__required___mO3xA"},ar=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:l,children:f,className:u,style:d,divProps:p})=>{const y=j(),V=[_e.formGroup,r?_e.error:"",e?_e.disabled:"",u].filter(Boolean).join(" "),C={"--form-group-margin-bottom":`calc(${y.fonts.rhythm} * 0.35)`,...d},g=_.Children.map(f,F=>{if(_.isValidElement(F)){const N={};if(e&&F.props.disabled===void 0&&(N.disabled=!0),r&&F.props.error===void 0&&(N.error=!0),s&&F.props.id===void 0&&F.type!==_.Fragment&&(N.id=s),Object.keys(N).length>0)return _.cloneElement(F,N)}return F});return m.jsxs("div",{...p,className:V,style:C,children:[n&&m.jsxs($e,{htmlFor:s,disabled:e,error:r,...l,children:[n,t&&m.jsxs("span",{className:_e.required,"aria-label":"required",children:[" ","*"]})]}),m.jsx("div",{className:`${_e.inputWrapper} ${o?_e.indented:""}`,children:g}),r&&a&&m.jsx(nr,{children:a})]})};function ue({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:l,indent:f,labelProps:u}){const{control:d}=sr(),{field:p,fieldState:{error:y}}=qr({name:e,control:d,rules:s});return m.jsx(ar,{label:r,name:e,error:!!y,errorMessage:y==null?void 0:y.message,disabled:n,required:t,className:a,style:l,indent:f,labelProps:u,children:o({value:p.value,onChange:p.onChange,onBlur:p.onBlur,name:p.name,error:!!y,indent:f})})}const rt={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},So=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),lr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,type:f="text",value:u="",onChange:d,onBlur:p,className:y,style:V,inputProps:C})=>{const g=j(),F=g.colors.error,N=r?F:t||g.colors.primary,b=So({color:N,disabled:e,fontSize:g.fonts.size,placeholderOpacity:l}),E={"--placeholder-opacity":b.placeholderOpacity,"--input-padding-small":`calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,"--input-padding-large":`calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,borderColor:b.borderColor,borderWidth:g.border.width,borderRadius:g.border.radius,color:b.color,fontSize:b.fontSize,opacity:b.opacity,...V},z=[rt.input,o==="small"?rt.sizeSmall:rt.sizeLarge,y].filter(Boolean).join(" ");return m.jsx("input",{...C,className:z,disabled:e,id:s,name:n,onChange:d,onBlur:p,placeholder:a,type:f,value:u,style:E})};function wo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return m.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:p,error:y})=>m.jsx(lr,{...l,name:p,value:f||"",onChange:V=>u(V.target.value),onBlur:d,error:y})})}const ot={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},Co=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),ir=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,rows:f=3,value:u="",onChange:d,onBlur:p,className:y,style:V,textareaProps:C})=>{const g=j(),F=g.colors.error,N=r?F:t||g.colors.primary,b=Co({color:N,disabled:e,placeholderOpacity:l}),E={"--placeholder-opacity":b.placeholderOpacity,"--textarea-padding-small":`calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,"--textarea-padding-large":`calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,borderColor:b.borderColor,borderWidth:g.border.width,borderRadius:g.border.radius,color:b.color,fontSize:g.fonts.size,opacity:b.opacity,...V},z=[ot.textarea,o==="small"?ot.sizeSmall:ot.sizeLarge,y].filter(Boolean).join(" ");return m.jsx("textarea",{...C,className:z,disabled:e,id:s,name:n,onChange:d,onBlur:p,placeholder:a,rows:f,value:u,style:E})};function ko({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return m.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:f,onChange:u,onBlur:d,name:p,error:y})=>m.jsx(ir,{...l,name:p,value:f||"",onChange:V=>u(V.target.value),onBlur:d,error:y})})}const st={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},Fo=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const a=`
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header)}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__navMobile___h795P{flex-direction:column;min-height:100%;overflow-x:hidden}.ResponsiveNav-module__navHeader___Me8bB{height:3.5em;flex-shrink:0}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavDropdown-module__trigger___1PQZp{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;gap:.375rem;padding:0}.NavDropdown-module__chevron___ZLAV7{align-items:center;display:inline-flex;transition:transform .2s ease}.NavDropdown-module__chevronOpen___9mgjr{transform:rotate(180deg)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.Stack-module__stack___yUU-B{display:flex;gap:.5em}.Stack-module__vertical___sKTyQ{flex-direction:column;margin-bottom:.5em}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGridSection-module__section___wZrbC{padding:var(--section-padding-vertical) 0}.FeatureGridSection-module__grid___iwPJv{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}.FileUpload-module__dropzone___jqua0{border-style:dashed;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:1rem;text-align:center;transition:opacity .15s ease,background-color .15s ease;width:100%}.FileUpload-module__dropzone___jqua0:hover:not(.FileUpload-module__loading___C7PsH){background-color:#00000008}.FileUpload-module__dropzone___jqua0:focus-visible{outline:2px solid var(--upload-color, currentColor);outline-offset:2px}.FileUpload-module__dragOver___q1zPo{background-color:#0000000f}.FileUpload-module__loading___C7PsH{cursor:not-allowed;opacity:.6}.FileUpload-module__hiddenInput___RLLPJ{display:none}.FileUpload-module__content___yCP0l{display:flex;flex-direction:column;align-items:center;gap:.35rem}.FileUpload-module__label___lbMkx{font-weight:600}.FileUpload-module__hint___8dXlk{font-size:.85em;opacity:.7}.FileUpload-module__errorMessage___8HB3n{font-size:.85em;font-weight:600;margin-top:.25rem}.ImageThumbnail-module__thumbnail___-igbe{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.ImageThumbnail-module__img___Q7Z4V{width:100%;height:100%;object-fit:cover;display:block}.ImageThumbnail-module__sizeSm___rtC81{width:3rem;height:3rem}.ImageThumbnail-module__sizeMd___GL9qs{width:6rem;height:6rem}.ImageThumbnail-module__sizeLg___E70Oi{width:12rem;height:12rem}.ImageThumbnail-module__removeButton___Ceh1Q{position:absolute;top:.25rem;right:.25rem;width:1.1rem;height:1.1rem;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;z-index:1;opacity:.6;transition:opacity .15s ease}.ImageThumbnail-module__removeButton___Ceh1Q:hover{opacity:1}@keyframes Skeleton-module__pulse___8RWFn{0%,to{opacity:.4}50%{opacity:1}}.Skeleton-module__skeleton___CB4uF{background-color:var(--skeleton-color, color-mix(in srgb, currentColor 20%, transparent));animation:Skeleton-module__pulse___8RWFn 2s ease-in-out infinite;display:block;width:100%;height:100%}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
(function($,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],f):($=typeof globalThis<"u"?globalThis:$||self,f($.DigitalRabbitCL={},$.jsxRuntime,$.React,$.ReactDOM))})(this,(function($,f,p,He){"use strict";const ze={button:"Button-module__button___2ZuB7",sizeSmall:"Button-module__sizeSmall___DRT8P",sizeLarge:"Button-module__sizeLarge___yeZSH"},Br=({isActive:e,disabled:r,color:t,hoverColor:o,hoverTextColor:s,outline:n,theme:a})=>{const l=t||a.colors.primary,y=a.buttons.textColor;let c,u,_;n?(c="transparent",u=l,_=l,e&&(c=o||l,u=o||l,_=s||y)):(c=l,u=l,_=y,e&&(c=o||l,u=o||l,_=s||y));let h=1;return r?h=.3:e&&!o&&(h=.75),{backgroundColor:c,borderColor:u,color:_,opacity:h}};function St(e,r){const t={...e};return Ee(e)&&Ee(r)&&Object.keys(r).forEach(o=>{const s=r[o],n=e[o];Ee(s)&&Ee(n)?t[o]=St(n,s):s!==void 0&&(t[o]=s)}),t}function Ee(e){return e&&typeof e=="object"&&!Array.isArray(e)}function _e(e){const r=e.match(/^(\d+(?:\.\d+)?)(px|em|rem)$/);if(!r){const s=parseInt(e,10),n=e.replace(/[0-9.]/g,"")||"px";return{maxWidth:isNaN(s)?768:s-1,unit:n}}const t=parseFloat(r[1]),o=r[2];return{maxWidth:t-1,unit:o}}const je={primary:"#000",secondary:"#FFF",accent:"#4381C1",error:"#F00",success:"#008000",warning:"#FFEB3B"},We={colors:je,fonts:{color:"#000",lineHeight:1.5,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeightHeader:700,size:"22px",rhythm:"1.45rem",fontSizeH1:"2.5rem",fontSizeH2:"1.75rem",fontSizeH3:"1.38316rem",fontSizeH4:"1rem",fontSizeH5:"0.85028rem",fontSizeH6:"0.78405rem"},buttons:{textColor:"#FFF",paddingHorizontal:.35,primary:{textColor:je.secondary}},inputs:{paddingHorizontal:.27},sizes:{small:{paddingVertical:.07},large:{paddingVertical:.17}},border:{radius:"5px",width:"0.15em"},breakpoints:{xs:"350px",sm:"475px",md:"769px",lg:"1025px"},layout:{maxWidth:"1280px",paddingSm:"0.5rem",padding:"1rem"},modal:{backgroundColor:je.secondary,backdropColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0 10px 40px rgba(0, 0, 0, 0.2)"}},kt=p.createContext(We),Dr=({theme:e,children:r})=>{const t=e?St(We,e):We;return f.jsx(kt.Provider,{value:t,children:r})},O=()=>p.useContext(kt),wt=({color:e,hoverColor:r,hoverTextColor:t,disabled:o=!1,size:s="large",outline:n=!1,type:a="button",className:l,style:y,buttonProps:c={},onClick:u,children:_})=>{const h=O(),[x,S]=p.useState(!1),F={...Br({isActive:x,disabled:o,color:e,hoverColor:r,hoverTextColor:t,outline:n,theme:h}),fontSize:h.fonts.size,borderWidth:h.border.width,borderRadius:h.border.radius,"--button-padding-small":`calc(${h.fonts.rhythm} * ${h.sizes.small.paddingVertical}) calc(${h.fonts.rhythm} * ${h.buttons.paddingHorizontal})`,"--button-padding-large":`calc(${h.fonts.rhythm} * ${h.sizes.large.paddingVertical}) calc(${h.fonts.rhythm} * ${h.buttons.paddingHorizontal})`,...y},z=[ze.button,s==="small"?ze.sizeSmall:ze.sizeLarge,n?ze.outline:"",l].filter(Boolean).join(" ");return f.jsx("button",{...c,className:z,disabled:o,onClick:u,onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),type:a,style:F,children:_})};var Ct=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Or=new Uint8Array(16);function Tr(){if(!Ct)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ct(Or)}for(var Ft=[],$e=0;$e<256;++$e)Ft[$e]=($e+256).toString(16).substr(1);function Ir(e,r){var t=0,o=Ft;return[o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]]].join("")}function xt(e,r,t){var o=r&&t||0;typeof e=="string"&&(r=e==="binary"?new Array(16):null,e=null),e=e||{};var s=e.random||(e.rng||Tr)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,r)for(var n=0;n<16;++n)r[o+n]=s[n];return r||Ir(s)}const Ue={container:"Checkbox-module__container___aV9qz",svg:"Checkbox-module__svg___kkluC",label:"Checkbox-module__label___cwRtI"},Hr=({color:e="#000",checkmarkColor:r,disabled:t=!1,inverted:o=!1})=>{let s=e;return r?s=r:o&&(s="white"),{checkboxColor:e,checkmarkColor:s,cursor:t?"default":"pointer",opacity:t?.3:1}},Vt={label:"FormLabel-module__label___0M-fo",disabled:"FormLabel-module__disabled___ktIFp"},jr=({color:e="#000",disabled:r=!1,fontSize:t=".85em"})=>({color:e,fontSize:t,opacity:r?.5:1,cursor:r?"not-allowed":"default"}),Ne=({color:e,disabled:r=!1,error:t=!1,htmlFor:o,children:s,className:n,style:a,labelProps:l})=>{const y=O(),c=y.colors.error,u=t?c:e||y.colors.primary,_=jr({color:u,disabled:r,fontSize:".85em"}),h={"--form-label-padding-bottom":`calc(${y.fonts.rhythm} * 0.17)`,color:_.color,fontSize:_.fontSize,opacity:_.opacity,cursor:_.cursor,...a},x=[Vt.label,r?Vt.disabled:"",n].filter(Boolean).join(" ");return f.jsx("label",{...l,className:x,htmlFor:o,style:h,children:s})},Le=({color:e,checkmarkColor:r,checked:t=!1,inverted:o=!1,disabled:s=!1,error:n=!1,name:a,id:l,onChange:y,label:c,labelStyle:u,className:_,style:h,divProps:x})=>{const S=O(),g=l||xt(),F=S.colors.error,z=n?F:e||S.colors.primary,v=Hr({color:z,checkmarkColor:r,disabled:s,inverted:o}),V=A=>{s||y(A)},E={cursor:v.cursor,fontSize:S.fonts.size,opacity:v.opacity,...h},N={width:"1em"},D={fill:o&&t?v.checkboxColor:"transparent",strokeWidth:"25",stroke:v.checkboxColor},B={stroke:v.checkmarkColor,strokeWidth:"15",fill:"transparent"},K=[Ue.container,_].filter(Boolean).join(" ");return f.jsxs("div",{...x,className:K,style:E,children:[f.jsx("input",{id:g,checked:t,disabled:s,onChange:A=>V({target:{checked:A.target.checked,name:a,type:"checkbox"}}),name:a,style:{display:"none"},type:"checkbox"}),f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>V({target:{checked:!t,name:a,type:"checkbox"}}),style:N,className:Ue.svg,children:[f.jsx("rect",{x:"0",y:"0",height:"100",width:"100",style:D}),t&&f.jsx("path",{d:"M 25 45 L 45 65 L 75 30",style:B})]}),c&&f.jsx(Ne,{htmlFor:g,className:Ue.label,style:{paddingBottom:0,...u},color:v.checkboxColor,disabled:s,error:n,children:c})]})},Wr=()=>{const e=O();return p.useLayoutEffect(()=>{const r=document.documentElement;e.fonts&&(e.fonts.fontFamily&&r.style.setProperty("--font-family",e.fonts.fontFamily),e.fonts.size&&r.style.setProperty("--font-size",e.fonts.size),e.fonts.lineHeight!==void 0&&r.style.setProperty("--line-height",e.fonts.lineHeight.toString()),e.fonts.fontWeightHeader!==void 0&&r.style.setProperty("--font-weight-header",e.fonts.fontWeightHeader.toString()),e.fonts.fontSizeH1&&r.style.setProperty("--font-size-h1",e.fonts.fontSizeH1),e.fonts.fontSizeH2&&r.style.setProperty("--font-size-h2",e.fonts.fontSizeH2),e.fonts.fontSizeH3&&r.style.setProperty("--font-size-h3",e.fonts.fontSizeH3),e.fonts.fontSizeH4&&r.style.setProperty("--font-size-h4",e.fonts.fontSizeH4),e.fonts.fontSizeH5&&r.style.setProperty("--font-size-h5",e.fonts.fontSizeH5),e.fonts.fontSizeH6&&r.style.setProperty("--font-size-h6",e.fonts.fontSizeH6)),e.colors&&(e.colors.primary&&r.style.setProperty("--primary-color",e.colors.primary),e.colors.secondary&&r.style.setProperty("--background-color",e.colors.secondary),e.colors.accent&&r.style.setProperty("--accent-color",e.colors.accent)),e.breakpoints&&(e.breakpoints.xs&&r.style.setProperty("--breakpoint-xs",e.breakpoints.xs),e.breakpoints.sm&&r.style.setProperty("--breakpoint-sm",e.breakpoints.sm),e.breakpoints.md&&r.style.setProperty("--breakpoint-md",e.breakpoints.md),e.breakpoints.lg&&r.style.setProperty("--breakpoint-lg",e.breakpoints.lg)),e.layout&&(e.layout.maxWidth&&r.style.setProperty("--layout-max-width",e.layout.maxWidth),e.layout.paddingSm&&r.style.setProperty("--layout-wrapper-padding-sm",e.layout.paddingSm),e.layout.padding&&r.style.setProperty("--layout-wrapper-padding",e.layout.padding))},[e]),null};var we=e=>e.type==="checkbox",he=e=>e instanceof Date,R=e=>e==null;const zt=e=>typeof e=="object";var G=e=>!R(e)&&!Array.isArray(e)&&zt(e)&&!he(e),Et=e=>G(e)&&e.target?we(e.target)?e.target.checked:e.target.value:e,Ur=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,$t=(e,r)=>e.has(Ur(r)),qr=e=>{const r=e.constructor&&e.constructor.prototype;return G(r)&&r.hasOwnProperty("isPrototypeOf")},qe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Q(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(qe&&(e instanceof Blob||o))&&(t||G(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!qr(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=Q(e[s]));else return e;return r}var Me=e=>/^\w*$/.test(e),U=e=>e===void 0,Ge=e=>Array.isArray(e)?e.filter(Boolean):[],Ze=e=>Ge(e.replace(/["|']|\]/g,"").split(/\.|\[/)),w=(e,r,t)=>{if(!r||!G(e))return t;const o=(Me(r)?[r]:Ze(r)).reduce((s,n)=>R(s)?s:s[n],e);return U(o)||o===e?U(e[r])?t:e[r]:o},ee=e=>typeof e=="boolean",T=(e,r,t)=>{let o=-1;const s=Me(r)?[r]:Ze(r),n=s.length,a=n-1;for(;++o<n;){const l=s[o];let y=t;if(o!==a){const c=e[l];y=G(c)||Array.isArray(c)?c:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=y,e=e[l]}};const Pe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ce={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Nt=p.createContext(null);Nt.displayName="HookFormContext";const Qe=()=>p.useContext(Nt);var Lt=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return r._proxyFormState[a]!==ne.all&&(r._proxyFormState[a]=!o||ne.all),t&&(t[a]=!0),e[a]}});return s};const Ke=typeof window<"u"?p.useLayoutEffect:p.useEffect;function Gr(e){const r=Qe(),{control:t=r.control,disabled:o,name:s,exact:n}=e||{},[a,l]=p.useState(t._formState),y=p.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ke(()=>t._subscribe({name:s,formState:y.current,exact:n,callback:c=>{!o&&l({...t._formState,...c})}}),[s,o,n]),p.useEffect(()=>{y.current.isValid&&t._setValid(!0)},[t]),p.useMemo(()=>Lt(a,t,y.current,!1),[a,t])}var te=e=>typeof e=="string",Je=(e,r,t,o,s)=>te(e)?(o&&r.watch.add(e),w(t,e,s)):Array.isArray(e)?e.map(n=>(o&&r.watch.add(n),w(t,n))):(o&&(r.watchAll=!0),t),Xe=e=>R(e)||!zt(e);function ae(e,r,t=new WeakSet){if(Xe(e)||Xe(r))return e===r;if(he(e)&&he(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of o){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=r[n];if(he(a)&&he(l)||G(a)&&G(l)||Array.isArray(a)&&Array.isArray(l)?!ae(a,l,t):a!==l)return!1}}return!0}function Zr(e){const r=Qe(),{control:t=r.control,name:o,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},y=p.useRef(s),c=p.useRef(l),u=p.useRef(void 0),_=p.useRef(t),h=p.useRef(o);c.current=l;const[x,S]=p.useState(()=>{const E=t._getWatch(o,y.current);return c.current?c.current(E):E}),g=p.useCallback(E=>{const N=Je(o,t._names,E||t._formValues,!1,y.current);return c.current?c.current(N):N},[t._formValues,t._names,o]),F=p.useCallback(E=>{if(!n){const N=Je(o,t._names,E||t._formValues,!1,y.current);if(c.current){const D=c.current(N);ae(D,u.current)||(S(D),u.current=D)}else S(N)}},[t._formValues,t._names,n,o]);Ke(()=>((_.current!==t||!ae(h.current,o))&&(_.current=t,h.current=o,F()),t._subscribe({name:o,formState:{values:!0},exact:a,callback:E=>{F(E.values)}})),[t,a,o,F]),p.useEffect(()=>t._removeUnmounted());const z=_.current!==t,v=h.current,V=p.useMemo(()=>{if(n)return null;const E=!z&&!ae(v,o);return z||E?g():null},[n,z,o,v,g]);return V!==null?V:x}function Qr(e){const r=Qe(),{name:t,disabled:o,control:s=r.control,shouldUnregister:n,defaultValue:a}=e,l=$t(s._names.array,t),y=p.useMemo(()=>w(s._formValues,t,w(s._defaultValues,t,a)),[s,t,a]),c=Zr({control:s,name:t,defaultValue:y,exact:!0}),u=Gr({control:s,name:t,exact:!0}),_=p.useRef(e),h=p.useRef(void 0),x=p.useRef(s.register(t,{...e.rules,value:c,...ee(e.disabled)?{disabled:e.disabled}:{}}));_.current=e;const S=p.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!w(u.errors,t)},isDirty:{enumerable:!0,get:()=>!!w(u.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!w(u.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!w(u.validatingFields,t)},error:{enumerable:!0,get:()=>w(u.errors,t)}}),[u,t]),g=p.useCallback(V=>x.current.onChange({target:{value:Et(V),name:t},type:Pe.CHANGE}),[t]),F=p.useCallback(()=>x.current.onBlur({target:{value:w(s._formValues,t),name:t},type:Pe.BLUR}),[t,s._formValues]),z=p.useCallback(V=>{const E=w(s._fields,t);E&&V&&(E._f.ref={focus:()=>V.focus&&V.focus(),select:()=>V.select&&V.select(),setCustomValidity:N=>V.setCustomValidity(N),reportValidity:()=>V.reportValidity()})},[s._fields,t]),v=p.useMemo(()=>({name:t,value:c,...ee(o)||u.disabled?{disabled:u.disabled||o}:{},onChange:g,onBlur:F,ref:z}),[t,o,u.disabled,g,F,z,c]);return p.useEffect(()=>{const V=s._options.shouldUnregister||n,E=h.current;E&&E!==t&&!l&&s.unregister(E),s.register(t,{..._.current.rules,...ee(_.current.disabled)?{disabled:_.current.disabled}:{}});const N=(D,B)=>{const K=w(s._fields,D);K&&K._f&&(K._f.mount=B)};if(N(t,!0),V){const D=Q(w(s._options.defaultValues,t,_.current.defaultValue));T(s._defaultValues,t,D),U(w(s._formValues,t))&&T(s._formValues,t,D)}return!l&&s.register(t),h.current=t,()=>{(l?V&&!s._state.action:V)?s.unregister(t):N(t,!1)}},[t,s,l,n]),p.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),p.useMemo(()=>({field:v,formState:u,fieldState:S}),[v,u,S])}var Ye=(e,r,t,o,s)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[o]:s||!0}}:{},Ce=e=>Array.isArray(e)?e:[e],Mt=()=>{let e=[];return{get observers(){return e},next:s=>{for(const n of e)n.next&&n.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(n=>n!==s)}}),unsubscribe:()=>{e=[]}}};function Pt(e,r){const t={};for(const o in e)if(e.hasOwnProperty(o)){const s=e[o],n=r[o];if(s&&G(s)&&n){const a=Pt(s,n);G(a)&&(t[o]=a)}else e[o]&&(t[o]=n)}return t}var Y=e=>G(e)&&!Object.keys(e).length,Re=e=>e.type==="file",le=e=>typeof e=="function",Ae=e=>{if(!qe)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},At=e=>e.type==="select-multiple",et=e=>e.type==="radio",Kr=e=>et(e)||we(e),tt=e=>Ae(e)&&e.isConnected;function Jr(e,r){const t=r.slice(0,-1).length;let o=0;for(;o<t;)e=U(e)?o++:e[r[o++]];return e}function Xr(e){for(const r in e)if(e.hasOwnProperty(r)&&!U(e[r]))return!1;return!0}function Z(e,r){const t=Array.isArray(r)?r:Me(r)?[r]:Ze(r),o=t.length===1?e:Jr(e,t),s=t.length-1,n=t[s];return o&&delete o[n],s!==0&&(G(o)&&Y(o)||Array.isArray(o)&&Xr(o))&&Z(e,t.slice(0,-1)),e}var Yr=e=>{for(const r in e)if(le(e[r]))return!0;return!1};function Bt(e){return Array.isArray(e)||G(e)&&!Yr(e)}function rt(e,r={}){for(const t in e)Bt(e[t])?(r[t]=Array.isArray(e[t])?[]:{},rt(e[t],r[t])):U(e[t])||(r[t]=!0);return r}function ge(e,r,t){t||(t=rt(r));for(const o in e)Bt(e[o])?U(r)||Xe(t[o])?t[o]=rt(e[o],Array.isArray(e[o])?[]:{}):ge(e[o],R(r)?{}:r[o],t[o]):t[o]=!ae(e[o],r[o]);return t}const Dt={value:!1,isValid:!1},Ot={value:!0,isValid:!0};var Tt=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!U(e[0].attributes.value)?U(e[0].value)||e[0].value===""?Ot:{value:e[0].value,isValid:!0}:Ot:Dt}return Dt},It=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:o})=>U(e)?e:r?e===""?NaN:e&&+e:t&&te(e)?new Date(e):o?o(e):e;const Ht={isValid:!1,value:null};var jt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,Ht):Ht;function Wt(e){const r=e.ref;return Re(r)?r.files:et(r)?jt(e.refs).value:At(r)?[...r.selectedOptions].map(({value:t})=>t):we(r)?Tt(e.refs).value:It(U(r.value)?e.ref.value:r.value,e)}var Rr=(e,r,t,o)=>{const s={};for(const n of e){const a=w(r,n);a&&T(s,n,a._f)}return{criteriaMode:t,names:[...e],fields:s,shouldUseNativeValidation:o}},Be=e=>e instanceof RegExp,Fe=e=>U(e)?e:Be(e)?e.source:G(e)?Be(e.value)?e.value.source:e.value:e,Ut=e=>({isOnSubmit:!e||e===ne.onSubmit,isOnBlur:e===ne.onBlur,isOnChange:e===ne.onChange,isOnAll:e===ne.all,isOnTouch:e===ne.onTouched});const qt="AsyncFunction";var eo=e=>!!e&&!!e.validate&&!!(le(e.validate)&&e.validate.constructor.name===qt||G(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===qt)),to=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Gt=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const xe=(e,r,t,o)=>{for(const s of t||Object.keys(e)){const n=w(e,s);if(n){const{_f:a,...l}=n;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],s)&&!o)return!0;if(a.ref&&r(a.ref,a.name)&&!o)return!0;if(xe(l,r))break}else if(G(l)&&xe(l,r))break}}};function Zt(e,r,t){const o=w(e,t);if(o||Me(t))return{error:o,name:t};const s=t.split(".");for(;s.length;){const n=s.join("."),a=w(r,n),l=w(e,n);if(a&&!Array.isArray(a)&&t!==n)return{name:t};if(l&&l.type)return{name:n,error:l};if(l&&l.root&&l.root.type)return{name:`${n}.root`,error:l.root};s.pop()}return{name:t}}var ro=(e,r,t,o)=>{t(e);const{name:s,...n}=e;return Y(n)||Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(a=>r[a]===(!o||ne.all))},oo=(e,r,t)=>!e||!r||e===r||Ce(e).some(o=>o&&(t?o===r:o.startsWith(r)||r.startsWith(o))),so=(e,r,t,o,s)=>s.isOnAll?!1:!t&&s.isOnTouch?!(r||e):(t?o.isOnBlur:s.isOnBlur)?!e:(t?o.isOnChange:s.isOnChange)?e:!0,no=(e,r)=>!Ge(w(e,r)).length&&Z(e,r),ao=(e,r,t)=>{const o=Ce(w(e,t));return T(o,"root",r[t]),T(e,t,o),e};function Qt(e,r,t="validate"){if(te(e)||Array.isArray(e)&&e.every(te)||ee(e)&&!e)return{type:t,message:te(e)?e:"",ref:r}}var pe=e=>G(e)&&!Be(e)?e:{value:e,message:""},Kt=async(e,r,t,o,s,n)=>{const{ref:a,refs:l,required:y,maxLength:c,minLength:u,min:_,max:h,pattern:x,validate:S,name:g,valueAsNumber:F,mount:z}=e._f,v=w(t,g);if(!z||r.has(g))return{};const V=l?l[0]:a,E=M=>{s&&V.reportValidity&&(V.setCustomValidity(ee(M)?"":M||""),V.reportValidity())},N={},D=et(a),B=we(a),K=D||B,A=(F||Re(a))&&U(a.value)&&U(v)||Ae(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,J=Ye.bind(null,g,o,N),q=(M,P,I,H=ce.maxLength,X=ce.minLength)=>{const re=M?P:I;N[g]={type:M?H:X,message:re,ref:a,...J(M?H:X,re)}};if(n?!Array.isArray(v)||!v.length:y&&(!K&&(A||R(v))||ee(v)&&!v||B&&!Tt(l).isValid||D&&!jt(l).isValid)){const{value:M,message:P}=te(y)?{value:!!y,message:y}:pe(y);if(M&&(N[g]={type:ce.required,message:P,ref:V,...J(ce.required,P)},!o))return E(P),N}if(!A&&(!R(_)||!R(h))){let M,P;const I=pe(h),H=pe(_);if(!R(v)&&!isNaN(v)){const X=a.valueAsNumber||v&&+v;R(I.value)||(M=X>I.value),R(H.value)||(P=X<H.value)}else{const X=a.valueAsDate||new Date(v),re=Te=>new Date(new Date().toDateString()+" "+Te),fe=a.type=="time",ke=a.type=="week";te(I.value)&&v&&(M=fe?re(v)>re(I.value):ke?v>I.value:X>new Date(I.value)),te(H.value)&&v&&(P=fe?re(v)<re(H.value):ke?v<H.value:X<new Date(H.value))}if((M||P)&&(q(!!M,I.message,H.message,ce.max,ce.min),!o))return E(N[g].message),N}if((c||u)&&!A&&(te(v)||n&&Array.isArray(v))){const M=pe(c),P=pe(u),I=!R(M.value)&&v.length>+M.value,H=!R(P.value)&&v.length<+P.value;if((I||H)&&(q(I,M.message,P.message),!o))return E(N[g].message),N}if(x&&!A&&te(v)){const{value:M,message:P}=pe(x);if(Be(M)&&!v.match(M)&&(N[g]={type:ce.pattern,message:P,ref:a,...J(ce.pattern,P)},!o))return E(P),N}if(S){if(le(S)){const M=await S(v,t),P=Qt(M,V);if(P&&(N[g]={...P,...J(ce.validate,P.message)},!o))return E(P.message),N}else if(G(S)){let M={};for(const P in S){if(!Y(M)&&!o)break;const I=Qt(await S[P](v,t),V,P);I&&(M={...I,...J(P,I.message)},E(I.message),o&&(N[g]=M))}if(!Y(M)&&(N[g]={ref:V,...M},!o))return N}}return E(!0),N};const lo={mode:ne.onSubmit,reValidateMode:ne.onChange,shouldFocusError:!0};function io(e={}){let r={...lo,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:le(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},s=G(r.defaultValues)||G(r.values)?Q(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:Q(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},y,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let _={...u};const h={array:Mt(),state:Mt()},x=r.criteriaMode===ne.all,S=i=>d=>{clearTimeout(c),c=setTimeout(i,d)},g=async i=>{if(!r.disabled&&(u.isValid||_.isValid||i)){const d=r.resolver?Y((await B()).errors):await A(o,!0);d!==t.isValid&&h.state.next({isValid:d})}},F=(i,d)=>{!r.disabled&&(u.isValidating||u.validatingFields||_.isValidating||_.validatingFields)&&((i||Array.from(l.mount)).forEach(m=>{m&&(d?T(t.validatingFields,m,d):Z(t.validatingFields,m))}),h.state.next({validatingFields:t.validatingFields,isValidating:!Y(t.validatingFields)}))},z=(i,d=[],m,C,k=!0,b=!0)=>{if(C&&m&&!r.disabled){if(a.action=!0,b&&Array.isArray(w(o,i))){const L=m(w(o,i),C.argA,C.argB);k&&T(o,i,L)}if(b&&Array.isArray(w(t.errors,i))){const L=m(w(t.errors,i),C.argA,C.argB);k&&T(t.errors,i,L),no(t.errors,i)}if((u.touchedFields||_.touchedFields)&&b&&Array.isArray(w(t.touchedFields,i))){const L=m(w(t.touchedFields,i),C.argA,C.argB);k&&T(t.touchedFields,i,L)}(u.dirtyFields||_.dirtyFields)&&(t.dirtyFields=ge(s,n)),h.state.next({name:i,isDirty:q(i,d),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else T(n,i,d)},v=(i,d)=>{T(t.errors,i,d),h.state.next({errors:t.errors})},V=i=>{t.errors=i,h.state.next({errors:t.errors,isValid:!1})},E=(i,d,m,C)=>{const k=w(o,i);if(k){const b=w(n,i,U(m)?w(s,i):m);U(b)||C&&C.defaultChecked||d?T(n,i,d?b:Wt(k._f)):I(i,b),a.mount&&g()}},N=(i,d,m,C,k)=>{let b=!1,L=!1;const j={name:i};if(!r.disabled){if(!m||C){(u.isDirty||_.isDirty)&&(L=t.isDirty,t.isDirty=j.isDirty=q(),b=L!==j.isDirty);const W=ae(w(s,i),d);L=!!w(t.dirtyFields,i),W?Z(t.dirtyFields,i):T(t.dirtyFields,i,!0),j.dirtyFields=t.dirtyFields,b=b||(u.dirtyFields||_.dirtyFields)&&L!==!W}if(m){const W=w(t.touchedFields,i);W||(T(t.touchedFields,i,m),j.touchedFields=t.touchedFields,b=b||(u.touchedFields||_.touchedFields)&&W!==m)}b&&k&&h.state.next(j)}return b?j:{}},D=(i,d,m,C)=>{const k=w(t.errors,i),b=(u.isValid||_.isValid)&&ee(d)&&t.isValid!==d;if(r.delayError&&m?(y=S(()=>v(i,m)),y(r.delayError)):(clearTimeout(c),y=null,m?T(t.errors,i,m):Z(t.errors,i)),(m?!ae(k,m):k)||!Y(C)||b){const L={...C,...b&&ee(d)?{isValid:d}:{},errors:t.errors,name:i};t={...t,...L},h.state.next(L)}},B=async i=>{F(i,!0);const d=await r.resolver(n,r.context,Rr(i||l.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return F(i),d},K=async i=>{const{errors:d}=await B(i);if(i)for(const m of i){const C=w(d,m);C?T(t.errors,m,C):Z(t.errors,m)}else t.errors=d;return d},A=async(i,d,m={valid:!0})=>{for(const C in i){const k=i[C];if(k){const{_f:b,...L}=k;if(b){const j=l.array.has(b.name),W=k._f&&eo(k._f);W&&u.validatingFields&&F([b.name],!0);const se=await Kt(k,l.disabled,n,x,r.shouldUseNativeValidation&&!d,j);if(W&&u.validatingFields&&F([b.name]),se[b.name]&&(m.valid=!1,d))break;!d&&(w(se,b.name)?j?ao(t.errors,se,b.name):T(t.errors,b.name,se[b.name]):Z(t.errors,b.name))}!Y(L)&&await A(L,d,m)}}return m.valid},J=()=>{for(const i of l.unMount){const d=w(o,i);d&&(d._f.refs?d._f.refs.every(m=>!tt(m)):!tt(d._f.ref))&&_t(i)}l.unMount=new Set},q=(i,d)=>!r.disabled&&(i&&d&&T(n,i,d),!ae(Te(),s)),M=(i,d,m)=>Je(i,l,{...a.mount?n:U(d)?s:te(i)?{[i]:d}:d},m,d),P=i=>Ge(w(a.mount?n:s,i,r.shouldUnregister?w(s,i,[]):[])),I=(i,d,m={})=>{const C=w(o,i);let k=d;if(C){const b=C._f;b&&(!b.disabled&&T(n,i,It(d,b)),k=Ae(b.ref)&&R(d)?"":d,At(b.ref)?[...b.ref.options].forEach(L=>L.selected=k.includes(L.value)):b.refs?we(b.ref)?b.refs.forEach(L=>{(!L.defaultChecked||!L.disabled)&&(Array.isArray(k)?L.checked=!!k.find(j=>j===L.value):L.checked=k===L.value||!!k)}):b.refs.forEach(L=>L.checked=L.value===k):Re(b.ref)?b.ref.value="":(b.ref.value=k,b.ref.type||h.state.next({name:i,values:Q(n)})))}(m.shouldDirty||m.shouldTouch)&&N(i,k,m.shouldTouch,m.shouldDirty,!0),m.shouldValidate&&ke(i)},H=(i,d,m)=>{for(const C in d){if(!d.hasOwnProperty(C))return;const k=d[C],b=i+"."+C,L=w(o,b);(l.array.has(i)||G(k)||L&&!L._f)&&!he(k)?H(b,k,m):I(b,k,m)}},X=(i,d,m={})=>{const C=w(o,i),k=l.array.has(i),b=Q(d);T(n,i,b),k?(h.array.next({name:i,values:Q(n)}),(u.isDirty||u.dirtyFields||_.isDirty||_.dirtyFields)&&m.shouldDirty&&h.state.next({name:i,dirtyFields:ge(s,n),isDirty:q(i,b)})):C&&!C._f&&!R(b)?H(i,b,m):I(i,b,m),Gt(i,l)&&h.state.next({...t,name:i}),h.state.next({name:a.mount?i:void 0,values:Q(n)})},re=async i=>{a.mount=!0;const d=i.target;let m=d.name,C=!0;const k=w(o,m),b=W=>{C=Number.isNaN(W)||he(W)&&isNaN(W.getTime())||ae(W,w(n,m,W))},L=Ut(r.mode),j=Ut(r.reValidateMode);if(k){let W,se;const Ie=d.type?Wt(k._f):Et(i),ye=i.type===Pe.BLUR||i.type===Pe.FOCUS_OUT,hs=!to(k._f)&&!r.resolver&&!w(t.errors,m)&&!k._f.deps||so(ye,w(t.touchedFields,m),t.isSubmitted,j,L),vt=Gt(m,l,ye);T(n,m,Ie),ye?(!d||!d.readOnly)&&(k._f.onBlur&&k._f.onBlur(i),y&&y(0)):k._f.onChange&&k._f.onChange(i);const bt=N(m,Ie,ye),ms=!Y(bt)||vt;if(!ye&&h.state.next({name:m,type:i.type,values:Q(n)}),hs)return(u.isValid||_.isValid)&&(r.mode==="onBlur"?ye&&g():ye||g()),ms&&h.state.next({name:m,...vt?{}:bt});if(!ye&&vt&&h.state.next({...t}),r.resolver){const{errors:Pr}=await B([m]);if(b(Ie),C){const _s=Zt(t.errors,o,m),Ar=Zt(Pr,o,_s.name||m);W=Ar.error,m=Ar.name,se=Y(Pr)}}else F([m],!0),W=(await Kt(k,l.disabled,n,x,r.shouldUseNativeValidation))[m],F([m]),b(Ie),C&&(W?se=!1:(u.isValid||_.isValid)&&(se=await A(o,!0)));C&&(k._f.deps&&(!Array.isArray(k._f.deps)||k._f.deps.length>0)&&ke(k._f.deps),D(m,se,W,bt))}},fe=(i,d)=>{if(w(t.errors,d)&&i.focus)return i.focus(),1},ke=async(i,d={})=>{let m,C;const k=Ce(i);if(r.resolver){const b=await K(U(i)?i:k);m=Y(b),C=i?!k.some(L=>w(b,L)):m}else i?(C=(await Promise.all(k.map(async b=>{const L=w(o,b);return await A(L&&L._f?{[b]:L}:L)}))).every(Boolean),!(!C&&!t.isValid)&&g()):C=m=await A(o);return h.state.next({...!te(i)||(u.isValid||_.isValid)&&m!==t.isValid?{}:{name:i},...r.resolver||!i?{isValid:m}:{},errors:t.errors}),d.shouldFocus&&!C&&xe(o,fe,i?k:l.mount),C},Te=(i,d)=>{let m={...a.mount?n:s};return d&&(m=Pt(d.dirtyFields?t.dirtyFields:t.touchedFields,m)),U(i)?m:te(i)?w(m,i):i.map(C=>w(m,C))},xr=(i,d)=>({invalid:!!w((d||t).errors,i),isDirty:!!w((d||t).dirtyFields,i),error:w((d||t).errors,i),isValidating:!!w(t.validatingFields,i),isTouched:!!w((d||t).touchedFields,i)}),ls=i=>{i&&Ce(i).forEach(d=>Z(t.errors,d)),h.state.next({errors:i?t.errors:{}})},Vr=(i,d,m)=>{const C=(w(o,i,{_f:{}})._f||{}).ref,k=w(t.errors,i)||{},{ref:b,message:L,type:j,...W}=k;T(t.errors,i,{...W,...d,ref:C}),h.state.next({name:i,errors:t.errors,isValid:!1}),m&&m.shouldFocus&&C&&C.focus&&C.focus()},is=(i,d)=>le(i)?h.state.subscribe({next:m=>"values"in m&&i(M(void 0,d),m)}):M(i,d,!0),zr=i=>h.state.subscribe({next:d=>{oo(i.name,d.name,i.exact)&&ro(d,i.formState||u,ys,i.reRenderRoot)&&i.callback({values:{...n},...t,...d,defaultValues:s})}}).unsubscribe,cs=i=>(a.mount=!0,_={..._,...i.formState},zr({...i,formState:_})),_t=(i,d={})=>{for(const m of i?Ce(i):l.mount)l.mount.delete(m),l.array.delete(m),d.keepValue||(Z(o,m),Z(n,m)),!d.keepError&&Z(t.errors,m),!d.keepDirty&&Z(t.dirtyFields,m),!d.keepTouched&&Z(t.touchedFields,m),!d.keepIsValidating&&Z(t.validatingFields,m),!r.shouldUnregister&&!d.keepDefaultValue&&Z(s,m);h.state.next({values:Q(n)}),h.state.next({...t,...d.keepDirty?{isDirty:q()}:{}}),!d.keepIsValid&&g()},Er=({disabled:i,name:d})=>{(ee(i)&&a.mount||i||l.disabled.has(d))&&(i?l.disabled.add(d):l.disabled.delete(d))},gt=(i,d={})=>{let m=w(o,i);const C=ee(d.disabled)||ee(r.disabled);return T(o,i,{...m||{},_f:{...m&&m._f?m._f:{ref:{name:i}},name:i,mount:!0,...d}}),l.mount.add(i),m?Er({disabled:ee(d.disabled)?d.disabled:r.disabled,name:i}):E(i,!0,d.value),{...C?{disabled:d.disabled||r.disabled}:{},...r.progressive?{required:!!d.required,min:Fe(d.min),max:Fe(d.max),minLength:Fe(d.minLength),maxLength:Fe(d.maxLength),pattern:Fe(d.pattern)}:{},name:i,onChange:re,onBlur:re,ref:k=>{if(k){gt(i,d),m=w(o,i);const b=U(k.value)&&k.querySelectorAll&&k.querySelectorAll("input,select,textarea")[0]||k,L=Kr(b),j=m._f.refs||[];if(L?j.find(W=>W===b):b===m._f.ref)return;T(o,i,{_f:{...m._f,...L?{refs:[...j.filter(tt),b,...Array.isArray(w(s,i))?[{}]:[]],ref:{type:b.type,name:i}}:{ref:b}}}),E(i,!1,void 0,b)}else m=w(o,i,{}),m._f&&(m._f.mount=!1),(r.shouldUnregister||d.shouldUnregister)&&!($t(l.array,i)&&a.action)&&l.unMount.add(i)}}},pt=()=>r.shouldFocusError&&xe(o,fe,l.mount),ds=i=>{ee(i)&&(h.state.next({disabled:i}),xe(o,(d,m)=>{const C=w(o,m);C&&(d.disabled=C._f.disabled||i,Array.isArray(C._f.refs)&&C._f.refs.forEach(k=>{k.disabled=C._f.disabled||i}))},0,!1))},$r=(i,d)=>async m=>{let C;m&&(m.preventDefault&&m.preventDefault(),m.persist&&m.persist());let k=Q(n);if(h.state.next({isSubmitting:!0}),r.resolver){const{errors:b,values:L}=await B();t.errors=b,k=Q(L)}else await A(o);if(l.disabled.size)for(const b of l.disabled)Z(k,b);if(Z(t.errors,"root"),Y(t.errors)){h.state.next({errors:{}});try{await i(k,m)}catch(b){C=b}}else d&&await d({...t.errors},m),pt(),setTimeout(pt);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Y(t.errors)&&!C,submitCount:t.submitCount+1,errors:t.errors}),C)throw C},us=(i,d={})=>{w(o,i)&&(U(d.defaultValue)?X(i,Q(w(s,i))):(X(i,d.defaultValue),T(s,i,Q(d.defaultValue))),d.keepTouched||Z(t.touchedFields,i),d.keepDirty||(Z(t.dirtyFields,i),t.isDirty=d.defaultValue?q(i,Q(w(s,i))):q()),d.keepError||(Z(t.errors,i),u.isValid&&g()),h.state.next({...t}))},Nr=(i,d={})=>{const m=i?Q(i):s,C=Q(m),k=Y(i),b=k?s:C;if(d.keepDefaultValues||(s=m),!d.keepValues){if(d.keepDirtyValues){const L=new Set([...l.mount,...Object.keys(ge(s,n))]);for(const j of Array.from(L))w(t.dirtyFields,j)?T(b,j,w(n,j)):X(j,w(b,j))}else{if(qe&&U(i))for(const L of l.mount){const j=w(o,L);if(j&&j._f){const W=Array.isArray(j._f.refs)?j._f.refs[0]:j._f.ref;if(Ae(W)){const se=W.closest("form");if(se){se.reset();break}}}}if(d.keepFieldsRef)for(const L of l.mount)X(L,w(b,L));else o={}}n=r.shouldUnregister?d.keepDefaultValues?Q(s):{}:Q(b),h.array.next({values:{...b}}),h.state.next({values:{...b}})}l={mount:d.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!d.keepIsValid||!!d.keepDirtyValues||!r.shouldUnregister&&!Y(b),a.watch=!!r.shouldUnregister,h.state.next({submitCount:d.keepSubmitCount?t.submitCount:0,isDirty:k?!1:d.keepDirty?t.isDirty:!!(d.keepDefaultValues&&!ae(i,s)),isSubmitted:d.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:k?{}:d.keepDirtyValues?d.keepDefaultValues&&n?ge(s,n):t.dirtyFields:d.keepDefaultValues&&i?ge(s,i):d.keepDirty?t.dirtyFields:{},touchedFields:d.keepTouched?t.touchedFields:{},errors:d.keepErrors?t.errors:{},isSubmitSuccessful:d.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:s})},Lr=(i,d)=>Nr(le(i)?i(n):i,d),fs=(i,d={})=>{const m=w(o,i),C=m&&m._f;if(C){const k=C.refs?C.refs[0]:C.ref;k.focus&&(k.focus(),d.shouldSelect&&le(k.select)&&k.select())}},ys=i=>{t={...t,...i}},Mr={control:{register:gt,unregister:_t,getFieldState:xr,handleSubmit:$r,setError:Vr,_subscribe:zr,_runSchema:B,_focusError:pt,_getWatch:M,_getDirty:q,_setValid:g,_setFieldArray:z,_setDisabledField:Er,_setErrors:V,_getFieldArray:P,_reset:Nr,_resetDefaultValues:()=>le(r.defaultValues)&&r.defaultValues().then(i=>{Lr(i,r.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:J,_disableForm:ds,_subjects:h,_proxyFormState:u,get _fields(){return o},get _formValues(){return n},get _state(){return a},set _state(i){a=i},get _defaultValues(){return s},get _names(){return l},set _names(i){l=i},get _formState(){return t},get _options(){return r},set _options(i){r={...r,...i}}},subscribe:cs,trigger:ke,register:gt,handleSubmit:$r,watch:is,setValue:X,getValues:Te,reset:Lr,resetField:us,clearErrors:ls,unregister:_t,setError:Vr,setFocus:fs,getFieldState:xr};return{...Mr,formControl:Mr}}function co(e={}){const r=p.useRef(void 0),t=p.useRef(void 0),[o,s]=p.useState({isDirty:!1,isValidating:!1,isLoading:le(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:le(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:o},e.defaultValues&&!le(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...l}=io(e);r.current={...l,formState:o}}const n=r.current.control;return n._options=e,Ke(()=>{const a=n._subscribe({formState:n._proxyFormState,callback:()=>s({...n._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),n._formState.isReady=!0,a},[n]),p.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),p.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),p.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),p.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),p.useEffect(()=>{if(n._proxyFormState.isDirty){const a=n._getDirty();a!==o.isDirty&&n._subjects.state.next({isDirty:a})}},[n,o.isDirty]),p.useEffect(()=>{e.values&&!ae(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),t.current=e.values,s(a=>({...a}))):n._resetDefaultValues()},[n,e.values]),p.useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),r.current.formState=Lt(o,n),r.current}const Jt=(e,r,t)=>{if(e&&"reportValidity"in e){const o=w(t,r);e.setCustomValidity(o&&o.message||""),e.reportValidity()}},ot=(e,r)=>{for(const t in r.fields){const o=r.fields[t];o&&o.ref&&"reportValidity"in o.ref?Jt(o.ref,t,e):o&&o.refs&&o.refs.forEach(s=>Jt(s,t,e))}},Xt=(e,r)=>{r.shouldUseNativeValidation&&ot(e,r);const t={};for(const o in e){const s=w(r.fields,o),n=Object.assign(e[o]||{},{ref:s&&s.ref});if(uo(r.names||Object.keys(e),o)){const a=Object.assign({},w(t,o));T(a,"root",n),T(t,o,a)}else T(t,o,n)}return t},uo=(e,r)=>{const t=Yt(r);return e.some(o=>Yt(o).match(`^${t}\\.\\d+`))};function Yt(e){return e.replace(/\]|\[/g,"")}function Rt(e,r,t){function o(l,y){var c;Object.defineProperty(l,"_zod",{value:l._zod??{},enumerable:!1}),(c=l._zod).traits??(c.traits=new Set),l._zod.traits.add(e),r(l,y);for(const u in a.prototype)u in l||Object.defineProperty(l,u,{value:a.prototype[u].bind(l)});l._zod.constr=a,l._zod.def=y}const s=(t==null?void 0:t.Parent)??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var y;const c=t!=null&&t.Parent?new n:this;o(c,l),(y=c._zod).deferred??(y.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var y,c;return t!=null&&t.Parent&&l instanceof t.Parent?!0:(c=(y=l==null?void 0:l._zod)==null?void 0:y.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class fo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const yo={};function er(e){return yo}function ho(e,r){return typeof r=="bigint"?r.toString():r}const tr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function De(e){return typeof e=="string"?e:e==null?void 0:e.message}function rr(e,r,t){var s,n,a,l,y,c;const o={...e,path:e.path??[]};if(!e.message){const u=De((a=(n=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:n.error)==null?void 0:a.call(n,e))??De((l=r==null?void 0:r.error)==null?void 0:l.call(r,e))??De((y=t.customError)==null?void 0:y.call(t,e))??De((c=t.localeError)==null?void 0:c.call(t,e))??"Invalid input";o.message=u}return delete o.inst,delete o.continue,r!=null&&r.reportInput||delete o.input,o}const or=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,ho,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},mo=Rt("$ZodError",or),sr=Rt("$ZodError",or,{Parent:Error}),_o=(e=>(r,t,o,s)=>{const n=o?Object.assign(o,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise)throw new fo;if(a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(y=>rr(y,n,er())));throw tr(l,s==null?void 0:s.callee),l}return a.value})(sr),go=(e=>async(r,t,o,s)=>{const n=o?Object.assign(o,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((s==null?void 0:s.Err)??e)(a.issues.map(y=>rr(y,n,er())));throw tr(l,s==null?void 0:s.callee),l}return a.value})(sr);function nr(e,r){try{var t=e()}catch(o){return r(o)}return t&&t.then?t.then(void 0,r):t}function po(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if("unionErrors"in o){var l=o.unionErrors[0].errors[0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if("unionErrors"in o&&o.unionErrors.forEach(function(u){return u.errors.forEach(function(_){return e.push(_)})}),r){var y=t[a].types,c=y&&y[o.code];t[a]=Ye(a,r,t,s,c?[].concat(c,o.message):o.message)}e.shift()}return t}function vo(e,r){for(var t={};e.length;){var o=e[0],s=o.code,n=o.message,a=o.path.join(".");if(!t[a])if(o.code==="invalid_union"&&o.errors.length>0){var l=o.errors[0][0];t[a]={message:l.message,type:l.code}}else t[a]={message:n,type:s};if(o.code==="invalid_union"&&o.errors.forEach(function(u){return u.forEach(function(_){return e.push(_)})}),r){var y=t[a].types,c=y&&y[o.code];t[a]=Ye(a,r,t,s,c?[].concat(c,o.message):o.message)}e.shift()}return t}function bo(e,r,t){if(t===void 0&&(t={}),(function(o){return"_def"in o&&typeof o._def=="object"&&"typeName"in o._def})(e))return function(o,s,n){try{return Promise.resolve(nr(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(a){return n.shouldUseNativeValidation&&ot({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return Array.isArray(l==null?void 0:l.issues)})(a))return{values:{},errors:Xt(po(a.errors,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};if((function(o){return"_zod"in o&&typeof o._zod=="object"})(e))return function(o,s,n){try{return Promise.resolve(nr(function(){return Promise.resolve((t.mode==="sync"?_o:go)(e,o,r)).then(function(a){return n.shouldUseNativeValidation&&ot({},n),{errors:{},values:t.raw?Object.assign({},o):a}})},function(a){if((function(l){return l instanceof mo})(a))return{values:{},errors:Xt(vo(a.issues,!n.shouldUseNativeValidation&&n.criteriaMode==="all"),n)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const ar=p.createContext(null);function lr(){const e=p.useContext(ar);if(!e)throw new Error("useFormContext must be used within a Form component");return e}function So({onSubmit:e,children:r,schema:t,defaultValues:o,mode:s="onSubmit",reValidateMode:n="onChange",className:a,style:l,formProps:y}){const c=co({resolver:t?bo(t):void 0,defaultValues:o,mode:s,reValidateMode:n}),u=c.handleSubmit(e);return f.jsx(ar.Provider,{value:c,children:f.jsx("form",{...y,className:a,style:l,onSubmit:u,children:typeof r=="function"?r(c):r})})}const ko=So,wo={formError:"FormError-module__formError___kaUBn"},ir=({color:e,children:r,className:t,style:o,divProps:s})=>{const n=O(),a={"--form-error-margin-top":`calc(${n.fonts.rhythm} * 0.17)`,color:e||n.colors.error,...o},l=[wo.formError,t].filter(Boolean).join(" ");return f.jsx("div",{...s,className:l,style:a,role:"alert","aria-live":"polite",children:r})},ve={formGroup:"FormGroup-module__formGroup___aVI-B",inputWrapper:"FormGroup-module__inputWrapper___429QE",indented:"FormGroup-module__indented___t61iz",disabled:"FormGroup-module__disabled___W-tJ0",required:"FormGroup-module__required___mO3xA"},cr=({disabled:e=!1,error:r=!1,required:t=!1,indent:o=!1,name:s,label:n,errorMessage:a,labelProps:l,children:y,className:c,style:u,divProps:_})=>{const h=O(),x=[ve.formGroup,r?ve.error:"",e?ve.disabled:"",c].filter(Boolean).join(" "),S={"--form-group-margin-bottom":`calc(${h.fonts.rhythm} * 0.35)`,...u},g=p.Children.map(y,F=>{if(p.isValidElement(F)){const z={};if(e&&F.props.disabled===void 0&&(z.disabled=!0),r&&F.props.error===void 0&&(z.error=!0),s&&F.props.id===void 0&&F.type!==p.Fragment&&(z.id=s),Object.keys(z).length>0)return p.cloneElement(F,z)}return F});return f.jsxs("div",{..._,className:x,style:S,children:[n&&f.jsxs(Ne,{htmlFor:s,disabled:e,error:r,...l,children:[n,t&&f.jsxs("span",{className:ve.required,"aria-label":"required",children:[" ","*"]})]}),f.jsx("div",{className:`${ve.inputWrapper} ${o?ve.indented:""}`,children:g}),r&&a&&f.jsx(ir,{children:a})]})};function ue({name:e,label:r,required:t,children:o,rules:s,disabled:n,className:a,style:l,indent:y,labelProps:c}){const{control:u}=lr(),{field:_,fieldState:{error:h}}=Qr({name:e,control:u,rules:s});return f.jsx(cr,{label:r,name:e,error:!!h,errorMessage:h==null?void 0:h.message,disabled:n,required:t,className:a,style:l,indent:y,labelProps:c,children:o({value:_.value,onChange:_.onChange,onBlur:_.onBlur,name:_.name,error:!!h,indent:y})})}const st={input:"Input-module__input___WjT81",sizeSmall:"Input-module__sizeSmall___NFvsi",sizeLarge:"Input-module__sizeLarge___4Boj3"},Co=({color:e="#000",disabled:r=!1,fontSize:t="1em",placeholderOpacity:o=.3})=>({borderColor:e,color:e,fontSize:t,opacity:r?.3:1,placeholderOpacity:o}),dr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,type:y="text",value:c="",onChange:u,onBlur:_,className:h,style:x,inputProps:S})=>{const g=O(),F=g.colors.error,z=r?F:t||g.colors.primary,v=Co({color:z,disabled:e,fontSize:g.fonts.size,placeholderOpacity:l}),V={"--placeholder-opacity":v.placeholderOpacity,"--input-padding-small":`calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,"--input-padding-large":`calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,borderColor:v.borderColor,borderWidth:g.border.width,borderRadius:g.border.radius,color:v.color,fontSize:v.fontSize,opacity:v.opacity,...x},E=[st.input,o==="small"?st.sizeSmall:st.sizeLarge,h].filter(Boolean).join(" ");return f.jsx("input",{...S,className:E,disabled:e,id:s,name:n,onChange:u,onBlur:_,placeholder:a,type:y,value:c,style:V})};function Fo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return f.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:y,onChange:c,onBlur:u,name:_,error:h})=>f.jsx(dr,{...l,name:_,value:y||"",onChange:x=>c(x.target.value),onBlur:u,error:h})})}const nt={textarea:"Textarea-module__textarea___Z-y6g",sizeSmall:"Textarea-module__sizeSmall___HHFEM",sizeLarge:"Textarea-module__sizeLarge___5a3sf"},xo=({color:e="#000",disabled:r=!1,placeholderOpacity:t=.3})=>({color:e,borderColor:e,opacity:r?.3:1,placeholderOpacity:t}),ur=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a,placeholderOpacity:l=.3,rows:y=3,value:c="",onChange:u,onBlur:_,className:h,style:x,textareaProps:S})=>{const g=O(),F=g.colors.error,z=r?F:t||g.colors.primary,v=xo({color:z,disabled:e,placeholderOpacity:l}),V={"--placeholder-opacity":v.placeholderOpacity,"--textarea-padding-small":`calc(${g.fonts.rhythm} * ${g.sizes.small.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,"--textarea-padding-large":`calc(${g.fonts.rhythm} * ${g.sizes.large.paddingVertical}) calc(${g.fonts.rhythm} * ${g.inputs.paddingHorizontal})`,borderColor:v.borderColor,borderWidth:g.border.width,borderRadius:g.border.radius,color:v.color,fontSize:g.fonts.size,opacity:v.opacity,...x},E=[nt.textarea,o==="small"?nt.sizeSmall:nt.sizeLarge,h].filter(Boolean).join(" ");return f.jsx("textarea",{...S,className:E,disabled:e,id:s,name:n,onChange:u,onBlur:_,placeholder:a,rows:y,value:c,style:V})};function Vo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,...l}){return f.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:y,onChange:c,onBlur:u,name:_,error:h})=>f.jsx(ur,{...l,name:_,value:y||"",onChange:x=>c(x.target.value),onBlur:u,error:h})})}const at={select:"Select-module__select___cjdcr",sizeSmall:"Select-module__sizeSmall___i1quj",sizeLarge:"Select-module__sizeLarge___eBA1T"},zo=({color:e="#000",disabled:r=!1})=>({color:e,borderColor:e,cursor:r?"default":"pointer",opacity:r?.3:1,backgroundImage:(n=>{const a=`
|
|
3
3
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
4
4
|
<path
|
|
5
5
|
d="M 30 42.5 L 50 22.5 L 70 42.5"
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
fill="transparent"
|
|
15
15
|
/>
|
|
16
16
|
</svg>
|
|
17
|
-
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(a)}")`})(e)}),cr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:l="",onChange:f,onBlur:u,children:d,className:p,style:y,selectProps:V})=>{const C=j(),g=C.colors.error,F=r?g:t||C.colors.primary,N=Fo({color:F,disabled:e}),b={"--select-padding-small":`calc(${C.fonts.rhythm} * ${C.sizes.small.paddingVertical}) calc(${C.fonts.rhythm} * 1.2) calc(${C.fonts.rhythm} * ${C.sizes.small.paddingVertical}) calc(${C.fonts.rhythm} * ${C.inputs.paddingHorizontal})`,"--select-padding-large":`calc(${C.fonts.rhythm} * ${C.sizes.large.paddingVertical}) calc(${C.fonts.rhythm} * 1.4) calc(${C.fonts.rhythm} * ${C.sizes.large.paddingVertical}) calc(${C.fonts.rhythm} * ${C.inputs.paddingHorizontal})`,backgroundImage:N.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:N.borderColor,borderWidth:C.border.width,borderRadius:C.border.radius,color:N.color,cursor:N.cursor,fontSize:C.fonts.size,opacity:N.opacity,...y},E=[st.select,o==="small"?st.sizeSmall:st.sizeLarge,p].filter(Boolean).join(" ");return m.jsxs("select",{...V,className:E,disabled:e,id:s,name:n,onChange:f,onBlur:u,value:l,style:b,children:[a!==""&&m.jsx("option",{disabled:!0,value:"",children:a}),d]})};function Vo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:l,...f}){return m.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,onBlur:p,name:y,error:V})=>m.jsx(cr,{...f,name:y,value:u||"",onChange:C=>d(C.target.value),onBlur:p,error:V,children:l})})}function xo({name:e,required:r,rules:t,disabled:o,className:s,style:n,...a}){return m.jsx(ue,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:l,onChange:f,name:u,error:d})=>m.jsx(ze,{...a,name:u,checked:!!l,onChange:p=>f(p.target.checked),error:d})})}const nt={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},Eo=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),at=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:l,labelStyle:f,className:u,style:d,divProps:p})=>{const y=j(),V=n||Ct(),C=y.colors.error,g=o?C:e||y.colors.primary,F=Eo({color:g,disabled:t}),N=D=>{t||a(D)},b={cursor:F.cursor,fontSize:y.fonts.size,opacity:F.opacity,...d},E={width:"1em"},z={fill:"transparent",strokeWidth:"12.5",stroke:F.radioColor},L={fill:F.radioColor},H=[nt.container,u].filter(Boolean).join(" ");return m.jsxs("div",{...p,className:H,style:b,children:[m.jsx("input",{id:V,checked:r,disabled:t,name:s,onChange:D=>N({target:{checked:D.target.checked,name:s,type:"radio"}}),style:{display:"none"},type:"radio"}),m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>N({target:{checked:!r,name:s,type:"radio"}}),className:nt.svg,style:E,children:[m.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:z}),r&&m.jsx("circle",{cx:"50",cy:"50",r:"25",style:L})]}),l&&m.jsx($e,{htmlFor:V,className:nt.label,style:{paddingBottom:0,...f},color:F.radioColor,disabled:t,error:o,children:l})]})};function $o({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:l,...f}){return m.jsx(ue,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:u,onChange:d,name:p,error:y})=>m.jsx(at,{...f,name:p,checked:u===l,onChange:()=>d(l),error:y,label:r})})}function zo({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:l=!0}){return m.jsx(ue,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:l,labelProps:{style:{marginBottom:".25em"}},children:({value:f,onChange:u,name:d,error:p})=>m.jsx(m.Fragment,{children:o.map(y=>m.jsx(at,{name:d,checked:f===y.value,onChange:()=>u(y.value),label:y.label,disabled:s||y.disabled,error:p},y.value))})})}function No({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:l,indent:f=!0}){return m.jsx(ue,{name:e,label:r,required:t,disabled:n,className:a,style:l,indent:f,labelProps:{style:{marginBottom:".25em"}},children:({value:u,onChange:d,name:p,error:y})=>{const V=Array.isArray(u)?u:[],C=(g,F)=>{d(F?[...V,g]:V.filter(N=>N!==g))};return m.jsx(m.Fragment,{children:o?o.map(g=>m.jsx(ze,{name:`${p}[]`,checked:V.includes(g.value),onChange:F=>C(g.value,F.target.checked),label:g.label,disabled:n||g.disabled,error:y},g.value)):_.Children.map(s,g=>{if(_.isValidElement(g)&&g.type===ze){const F=g.props.value||g.props.name;return _.cloneElement(g,{name:`${p}[]`,checked:V.includes(F),onChange:N=>C(F,N.target.checked),error:y||g.props.error,disabled:n||g.props.disabled})}return g})})}})}const Fe={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},Lo=({compact:e,color:r,visible:t,border:o})=>{const s=j(),n=e?"1.5em":"2em";return{"--hamburger-border-radius":(o==null?void 0:o.radius)||s.border.radius,color:r||"inherit",display:t?"flex":"none",width:n,height:n}},ur=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:l,style:f})=>{const u=Lo({compact:t,color:e,visible:r,border:n}),d=[Fe.hamburger,s?Fe.open:"",l].filter(Boolean).join(" ");return m.jsxs("button",{ref:o,className:d,onClick:()=>a(!s),style:{...u,...f},"aria-label":"Toggle menu","aria-expanded":s,children:[m.jsx("div",{className:Fe.line}),m.jsx("div",{className:Fe.line}),m.jsx("div",{className:Fe.line})]})},dr={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},Ao=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:f,backgroundColor:u,color:d}={})=>{const p=j();return{"--header-max-width":r||p.layout.maxWidth,"--header-min-width":t,"--header-width":o,"--header-height":s,"--header-padding":e?n||p.layout.paddingSm:a||p.layout.padding,"--header-margin":l,"--header-gap":f,backgroundColor:u,color:d}},oe=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const a=window.matchMedia(e);return a.addEventListener("change",n),()=>a.removeEventListener("change",n)},o=()=>r?window.matchMedia(e).matches:!1,s=()=>!1;return _.useSyncExternalStore(t,o,s)},fr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,breakpoint:d,fixed:p=!1,children:y,className:V,style:C,headerProps:g})=>{const F=j(),N=d||F.breakpoints.sm,{maxWidth:b,unit:E}=me(N),z=oe(`(max-width: ${b}${E})`),L=Ao({isSmallScreen:z,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:f,gap:u,backgroundColor:e,color:r}),H=[dr.container,V].filter(Boolean).join(" "),D=p?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return m.jsx("header",{...g,className:dr.header,style:D,children:m.jsx("div",{className:H,style:{...L,...C},children:y})})},ve={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",navHeader:"ResponsiveNav-module__navHeader___Me8bB",compact:"ResponsiveNav-module__compact___UhuAE",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},ie={triggerWrapper:"Popover-module__triggerWrapper___dZpf6",popup:"Popover-module__popup___JAvrb",panelOverlay:"Popover-module__panelOverlay___1xDU5",panelOverlayVisible:"Popover-module__panelOverlayVisible___BgtIQ",backdrop:"Popover-module__backdrop___e8qHL",panel:"Popover-module__panel___eUJ2E",panelLeft:"Popover-module__panelLeft___9nSLp",panelRight:"Popover-module__panelRight___OrQfl",panelOpen:"Popover-module__panelOpen___hhvV-",panelCloseButton:"Popover-module__panelCloseButton___kALaN"};function Po(e,r){const[t,o]=_.useState(!1),[s,n]=_.useState(!1);_.useEffect(()=>{r==="panel"&&(e?o(!0):n(!1))},[e,r]),_.useEffect(()=>{if(r!=="panel"||!t||!e)return;let l,f;return l=requestAnimationFrame(()=>{f=requestAnimationFrame(()=>n(!0))}),()=>{cancelAnimationFrame(l),cancelAnimationFrame(f)}},[t,e,r]);const a=_.useCallback(()=>{s||o(!1)},[s]);return{panelMounted:t,panelVisible:s,handleTransitionEnd:a}}function Mo(e,r,t,o){const[s,n]=_.useState({}),a=_.useCallback(()=>{if(r!=="popup"||!t.current)return;const l=t.current.getBoundingClientRect(),f={position:"fixed",top:l.bottom+4,zIndex:999};n(o==="bottom-start"?{...f,left:l.left}:o==="bottom"?{...f,left:l.left+l.width/2,transform:"translateX(-50%)"}:{...f,left:l.right,transform:"translateX(-100%)"})},[r,o,t]);return _.useEffect(()=>{e&&r==="popup"&&a()},[e,r,a]),_.useEffect(()=>{if(!(!e||r!=="popup"))return window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a,!0),window.removeEventListener("resize",a)}},[e,r,a]),{popupPositionStyle:s}}const lt=({trigger:e,children:r,variant:t="popup",isOpen:o,onOpenChange:s,placement:n="bottom-start",side:a="left",panelWidth:l="75%",backdropColor:f="rgba(0, 0, 0, 0.5)",hideCloseButton:u=!1,closeOnBackdropClick:d=!0,className:p,style:y,popoverProps:V})=>{const C=j(),g=o!==void 0,[F,N]=_.useState(!1),b=g?o:F,E=_.useRef(null),z=_.useRef(null),L=_.useCallback(O=>{g||N(O),s==null||s(O)},[g,s]),H=_.useCallback(()=>L(!b),[b,L]),D=_.useCallback(()=>L(!1),[L]),{panelMounted:J,panelVisible:A,handleTransitionEnd:X}=Po(b,t),{popupPositionStyle:Y}=Mo(b,t,E,n);_.useEffect(()=>{if(!b||t!=="popup")return;const O=Q=>{var re,de;(re=z.current)!=null&&re.contains(Q.target)||(de=E.current)!=null&&de.contains(Q.target)||D()};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[b,t,D]),_.useEffect(()=>{if(!b)return;const O=Q=>{Q.key==="Escape"&&D()};return document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[b,D]),_.useEffect(()=>{if(!b||t!=="panel")return;const O=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${O}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,O)}},[b,t]);const P=e?typeof e=="function"?e({onClick:H,isOpen:b}):m.jsx("span",{onClick:H,style:{cursor:"pointer",display:"contents"},children:e}):null,M=e?m.jsx("span",{ref:E,className:ie.triggerWrapper,children:P}):null;if(t==="popup"){const O={backgroundColor:C.colors.secondary,borderRadius:C.border.radius,boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",...Y,...y};return m.jsxs(m.Fragment,{children:[M,b&&Te.createPortal(m.jsx("div",{ref:z,className:[ie.popup,p].filter(Boolean).join(" "),style:O,...V,children:r}),document.body)]})}const W={width:l,backgroundColor:C.colors.secondary,...y};return m.jsxs(m.Fragment,{children:[M,J&&Te.createPortal(m.jsxs("div",{className:[ie.panelOverlay,A?ie.panelOverlayVisible:""].filter(Boolean).join(" "),children:[m.jsx("div",{className:ie.backdrop,style:{backgroundColor:A?f:"transparent"},onClick:d?D:void 0,role:"presentation"}),m.jsxs("div",{ref:z,className:[ie.panel,a==="right"?ie.panelRight:ie.panelLeft,A?ie.panelOpen:"",p].filter(Boolean).join(" "),style:W,role:"dialog","aria-modal":"true",onTransitionEnd:X,...V,children:[!u&&m.jsx("button",{className:ie.panelCloseButton,onClick:D,"aria-label":"Close panel",type:"button",children:m.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:m.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),r]})]}),document.body)]})},Bo=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=j();return _.useMemo(()=>e?{navStyles:{...(t==null?void 0:t.backgroundColor)&&{backgroundColor:t.backgroundColor},color:(t==null?void 0:t.color)||s.fonts.color,...t==null?void 0:t.style}}:{navStyles:{...(o==null?void 0:o.backgroundColor)&&{backgroundColor:o.backgroundColor},color:(o==null?void 0:o.color)||s.fonts.color,...o==null?void 0:o.style}},[e,r,t,o,s])},yr=_.createContext({isMobile:!1,setOpen:()=>{}}),Do=({open:e,setOpen:r,hamburgerRef:t,isCompact:o,mobile:s,panelWidth:n,side:a,navClassName:l,cssProps:f,navProps:u,content:d,onNavClick:p})=>{const{backgroundColor:y,...V}=f;return m.jsx(lt,{variant:"panel",side:a||"right",panelWidth:n||"75%",isOpen:e,onOpenChange:r,style:y?{backgroundColor:y}:void 0,trigger:({onClick:C})=>m.jsx(ur,{hamburgerRef:t,visible:!0,compact:o,open:!1,setOpen:g=>C(),...s==null?void 0:s.hamburgerProps}),children:m.jsxs("nav",{...u,className:l,style:V,onClickCapture:p,children:[m.jsx("div",{className:ve.navHeader}),typeof d=="function"?d({setOpen:r}):d]})})},Oo=({setOpen:e,navClassName:r,cssProps:t,navProps:o,content:s})=>m.jsx("nav",{...o,className:r,style:t,children:typeof s=="function"?s({setOpen:e}):s}),To=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a,disableMobileTreatment:l=!1})=>{const[f,u]=_.useState(!1),d=_.useRef(null),y={...j().breakpoints,...t},{maxWidth:V,unit:C}=me(y.md),{maxWidth:g,unit:F}=me(y.sm),N=oe(`(max-width: ${V}${C})`),b=oe(`(max-width: ${g}${F})`),E=l?!1:N,z=l?!1:b,{navStyles:L}=Bo({isMobile:E,isCompact:z,mobile:e,desktop:r}),H={...L,...n},D=X=>{const Y=X.target;Y.closest("[data-navdropdown-trigger]")||Y.closest("a, button")&&u(!1)},J=[ve.nav,ve.navMobile,z||e!=null&&e.compact?ve.compact:"",s].filter(Boolean).join(" "),A=[ve.nav,ve.navDesktop,s].filter(Boolean).join(" ");return m.jsx(yr.Provider,{value:{isMobile:E,setOpen:u},children:E?m.jsx(Do,{open:f,setOpen:u,hamburgerRef:d,isCompact:z,mobile:e,panelWidth:e==null?void 0:e.panelWidth,side:e==null?void 0:e.side,navClassName:J,cssProps:H,navProps:a,content:(e==null?void 0:e.content)||o,onNavClick:D}):m.jsx(Oo,{setOpen:u,navClassName:A,cssProps:H,navProps:a,content:(r==null?void 0:r.content)||o})})},it={trigger:"NavDropdown-module__trigger___1PQZp",chevron:"NavDropdown-module__chevron___ZLAV7",chevronOpen:"NavDropdown-module__chevronOpen___9mgjr"};function ct({isActive:e=!1,hoverOpacity:r=.5,color:t}={}){const o=j(),[s,n]=_.useState(!1);return{style:{color:t||o.fonts.color,fontWeight:700,textDecoration:"none",opacity:e||s?r:1},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}}const Ho=({label:e,children:r,dropdownVariant:t="popup",side:o="left",panelWidth:s="75%",color:n,hoverOpacity:a,className:l,style:f,buttonProps:u})=>{const[d,p]=_.useState(!1),{style:y,onMouseEnter:V,onMouseLeave:C}=ct({isActive:d,color:n,hoverOpacity:a});return m.jsx(lt,{variant:t,side:o,panelWidth:s,isOpen:d,onOpenChange:p,trigger:({onClick:g})=>m.jsxs("button",{type:"button",className:[it.trigger,l].filter(Boolean).join(" "),style:{...y,...f},"data-navdropdown-trigger":!0,onClick:g,onMouseEnter:V,onMouseLeave:C,...u,children:[e,m.jsx("span",{className:[it.chevron,d?it.chevronOpen:""].filter(Boolean).join(" "),"aria-hidden":"true",children:m.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M2 4L6 8L10 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),children:r})},jo=({isActive:e,hoverOpacity:r,color:t,children:o})=>{const{style:s,onMouseEnter:n,onMouseLeave:a}=ct({isActive:e,hoverOpacity:r,color:t});return _.cloneElement(o,{style:{...s,...o.props.style},onMouseEnter:l=>{var f,u;n(),(u=(f=o.props).onMouseEnter)==null||u.call(f,l)},onMouseLeave:l=>{var f,u;a(),(u=(f=o.props).onMouseLeave)==null||u.call(f,l)}})},hr=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=j(),l=e||a.colors.primary,f=r||a.colors.secondary,u=m.jsx("div",{...t?void 0:n,className:t?void 0:o,style:{fontSize:"2.5em",borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...t?{}:s,border:`0.1em solid ${l}`,borderTop:`0.1em solid ${f}`}}),d=m.jsxs(m.Fragment,{children:[u,m.jsx("style",{children:`
|
|
17
|
+
`.trim();return`url("data:image/svg+xml,${encodeURIComponent(a)}")`})(e)}),fr=({disabled:e=!1,error:r=!1,color:t,size:o="large",id:s,name:n="",placeholder:a="",value:l="",onChange:y,onBlur:c,children:u,className:_,style:h,selectProps:x})=>{const S=O(),g=S.colors.error,F=r?g:t||S.colors.primary,z=zo({color:F,disabled:e}),v={"--select-padding-small":`calc(${S.fonts.rhythm} * ${S.sizes.small.paddingVertical}) calc(${S.fonts.rhythm} * 1.2) calc(${S.fonts.rhythm} * ${S.sizes.small.paddingVertical}) calc(${S.fonts.rhythm} * ${S.inputs.paddingHorizontal})`,"--select-padding-large":`calc(${S.fonts.rhythm} * ${S.sizes.large.paddingVertical}) calc(${S.fonts.rhythm} * 1.4) calc(${S.fonts.rhythm} * ${S.sizes.large.paddingVertical}) calc(${S.fonts.rhythm} * ${S.inputs.paddingHorizontal})`,backgroundImage:z.backgroundImage,backgroundPosition:"right center",backgroundRepeat:"no-repeat",backgroundSize:"auto 85%",backgroundColor:"transparent",borderColor:z.borderColor,borderWidth:S.border.width,borderRadius:S.border.radius,color:z.color,cursor:z.cursor,fontSize:S.fonts.size,opacity:z.opacity,...h},V=[at.select,o==="small"?at.sizeSmall:at.sizeLarge,_].filter(Boolean).join(" ");return f.jsxs("select",{...x,className:V,disabled:e,id:s,name:n,onChange:y,onBlur:c,value:l,style:v,children:[a!==""&&f.jsx("option",{disabled:!0,value:"",children:a}),u]})};function Eo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:l,...y}){return f.jsx(ue,{name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,children:({value:c,onChange:u,onBlur:_,name:h,error:x})=>f.jsx(fr,{...y,name:h,value:c||"",onChange:S=>u(S.target.value),onBlur:_,error:x,children:l})})}function $o({name:e,required:r,rules:t,disabled:o,className:s,style:n,...a}){return f.jsx(ue,{name:e,required:r,rules:t,disabled:o,className:s,style:n,children:({value:l,onChange:y,name:c,error:u})=>f.jsx(Le,{...a,name:c,checked:!!l,onChange:_=>y(_.target.checked),error:u})})}const lt={container:"Radio-module__container___AQxhk",svg:"Radio-module__svg___zl5kF",label:"Radio-module__label___vAFIP"},No=({color:e="#000",disabled:r=!1})=>({radioColor:e,cursor:r?"default":"pointer",opacity:r?.3:1}),it=({color:e,checked:r=!1,disabled:t=!1,error:o=!1,name:s,id:n,onChange:a,label:l,labelStyle:y,className:c,style:u,divProps:_})=>{const h=O(),x=n||xt(),S=h.colors.error,g=o?S:e||h.colors.primary,F=No({color:g,disabled:t}),z=B=>{t||a(B)},v={cursor:F.cursor,fontSize:h.fonts.size,opacity:F.opacity,...u},V={width:"1em"},E={fill:"transparent",strokeWidth:"12.5",stroke:F.radioColor},N={fill:F.radioColor},D=[lt.container,c].filter(Boolean).join(" ");return f.jsxs("div",{..._,className:D,style:v,children:[f.jsx("input",{id:x,checked:r,disabled:t,name:s,onChange:B=>z({target:{checked:B.target.checked,name:s,type:"radio"}}),style:{display:"none"},type:"radio"}),f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",onClick:()=>z({target:{checked:!r,name:s,type:"radio"}}),className:lt.svg,style:V,children:[f.jsx("circle",{cx:"50",cy:"50",r:"42.5",width:"100%",style:E}),r&&f.jsx("circle",{cx:"50",cy:"50",r:"25",style:N})]}),l&&f.jsx(Ne,{htmlFor:x,className:lt.label,style:{paddingBottom:0,...y},color:F.radioColor,disabled:t,error:o,children:l})]})};function Lo({name:e,label:r,required:t,rules:o,disabled:s,className:n,style:a,value:l,...y}){return f.jsx(ue,{name:e,required:t,rules:o,disabled:s,className:n,style:a,children:({value:c,onChange:u,name:_,error:h})=>f.jsx(it,{...y,name:_,checked:c===l,onChange:()=>u(l),error:h,label:r})})}function Mo({name:e,label:r,required:t,options:o,disabled:s,className:n,style:a,indent:l=!0}){return f.jsx(ue,{name:e,label:r,required:t,disabled:s,className:n,style:a,indent:l,labelProps:{style:{marginBottom:".25em"}},children:({value:y,onChange:c,name:u,error:_})=>f.jsx(f.Fragment,{children:o.map(h=>f.jsx(it,{name:u,checked:y===h.value,onChange:()=>c(h.value),label:h.label,disabled:s||h.disabled,error:_},h.value))})})}function Po({name:e,label:r,required:t,options:o,children:s,disabled:n,className:a,style:l,indent:y=!0}){return f.jsx(ue,{name:e,label:r,required:t,disabled:n,className:a,style:l,indent:y,labelProps:{style:{marginBottom:".25em"}},children:({value:c,onChange:u,name:_,error:h})=>{const x=Array.isArray(c)?c:[],S=(g,F)=>{u(F?[...x,g]:x.filter(z=>z!==g))};return f.jsx(f.Fragment,{children:o?o.map(g=>f.jsx(Le,{name:`${_}[]`,checked:x.includes(g.value),onChange:F=>S(g.value,F.target.checked),label:g.label,disabled:n||g.disabled,error:h},g.value)):p.Children.map(s,g=>{if(p.isValidElement(g)&&g.type===Le){const F=g.props.value||g.props.name;return p.cloneElement(g,{name:`${_}[]`,checked:x.includes(F),onChange:z=>S(F,z.target.checked),error:h||g.props.error,disabled:n||g.props.disabled})}return g})})}})}const Ve={hamburger:"Hamburger-module__hamburger___Tf4-t",line:"Hamburger-module__line___gybZM",open:"Hamburger-module__open___gRswh"},Ao=({compact:e,color:r,visible:t,border:o})=>{const s=O(),n=e?"1.5em":"2em";return{"--hamburger-border-radius":(o==null?void 0:o.radius)||s.border.radius,color:r||"inherit",display:t?"flex":"none",width:n,height:n}},yr=({color:e,visible:r,compact:t,hamburgerRef:o,open:s=!1,border:n,setOpen:a,className:l,style:y})=>{const c=Ao({compact:t,color:e,visible:r,border:n}),u=[Ve.hamburger,s?Ve.open:"",l].filter(Boolean).join(" ");return f.jsxs("button",{ref:o,className:u,onClick:()=>a(!s),style:{...c,...y},"aria-label":"Toggle menu","aria-expanded":s,children:[f.jsx("div",{className:Ve.line}),f.jsx("div",{className:Ve.line}),f.jsx("div",{className:Ve.line})]})},hr={header:"Header-module__header___RUooH",container:"Header-module__container___t68M9"},Bo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:y,backgroundColor:c,color:u}={})=>{const _=O();return{"--header-max-width":r||_.layout.maxWidth,"--header-min-width":t,"--header-width":o,"--header-height":s,"--header-padding":e?n||_.layout.paddingSm:a||_.layout.padding,"--header-margin":l,"--header-gap":y,backgroundColor:c,color:u}},oe=e=>{const r=typeof window<"u"&&typeof window.matchMedia=="function",t=n=>{if(!r)return()=>{};const a=window.matchMedia(e);return a.addEventListener("change",n),()=>a.removeEventListener("change",n)},o=()=>r?window.matchMedia(e).matches:!1,s=()=>!1;return p.useSyncExternalStore(t,o,s)},mr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:y,gap:c,breakpoint:u,fixed:_=!1,children:h,className:x,style:S,headerProps:g})=>{const F=O(),z=u||F.breakpoints.sm,{maxWidth:v,unit:V}=_e(z),E=oe(`(max-width: ${v}${V})`),N=Bo({isSmallScreen:E,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:y,gap:c,backgroundColor:e,color:r}),D=[hr.container,x].filter(Boolean).join(" "),B=_?{position:"fixed",top:0,left:0,right:0,zIndex:1e3}:{};return f.jsx("header",{...g,className:hr.header,style:B,children:f.jsx("div",{className:D,style:{...N,...S},children:h})})},be={nav:"ResponsiveNav-module__nav___xOfv5",navMobile:"ResponsiveNav-module__navMobile___h795P",navHeader:"ResponsiveNav-module__navHeader___Me8bB",compact:"ResponsiveNav-module__compact___UhuAE",navDesktop:"ResponsiveNav-module__navDesktop___9wscZ"},ie={triggerWrapper:"Popover-module__triggerWrapper___dZpf6",popup:"Popover-module__popup___JAvrb",panelOverlay:"Popover-module__panelOverlay___1xDU5",panelOverlayVisible:"Popover-module__panelOverlayVisible___BgtIQ",backdrop:"Popover-module__backdrop___e8qHL",panel:"Popover-module__panel___eUJ2E",panelLeft:"Popover-module__panelLeft___9nSLp",panelRight:"Popover-module__panelRight___OrQfl",panelOpen:"Popover-module__panelOpen___hhvV-",panelCloseButton:"Popover-module__panelCloseButton___kALaN"};function Do(e,r){const[t,o]=p.useState(!1),[s,n]=p.useState(!1);p.useEffect(()=>{r==="panel"&&(e?o(!0):n(!1))},[e,r]),p.useEffect(()=>{if(r!=="panel"||!t||!e)return;let l,y;return l=requestAnimationFrame(()=>{y=requestAnimationFrame(()=>n(!0))}),()=>{cancelAnimationFrame(l),cancelAnimationFrame(y)}},[t,e,r]);const a=p.useCallback(()=>{s||o(!1)},[s]);return{panelMounted:t,panelVisible:s,handleTransitionEnd:a}}function Oo(e,r,t,o){const[s,n]=p.useState({}),a=p.useCallback(()=>{if(r!=="popup"||!t.current)return;const l=t.current.getBoundingClientRect(),y={position:"fixed",top:l.bottom+4,zIndex:999};n(o==="bottom-start"?{...y,left:l.left}:o==="bottom"?{...y,left:l.left+l.width/2,transform:"translateX(-50%)"}:{...y,left:l.right,transform:"translateX(-100%)"})},[r,o,t]);return p.useEffect(()=>{e&&r==="popup"&&a()},[e,r,a]),p.useEffect(()=>{if(!(!e||r!=="popup"))return window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a,!0),window.removeEventListener("resize",a)}},[e,r,a]),{popupPositionStyle:s}}const ct=({trigger:e,children:r,variant:t="popup",isOpen:o,onOpenChange:s,placement:n="bottom-start",side:a="left",panelWidth:l="75%",backdropColor:y="rgba(0, 0, 0, 0.5)",hideCloseButton:c=!1,closeOnBackdropClick:u=!0,className:_,style:h,popoverProps:x})=>{const S=O(),g=o!==void 0,[F,z]=p.useState(!1),v=g?o:F,V=p.useRef(null),E=p.useRef(null),N=p.useCallback(H=>{g||z(H),s==null||s(H)},[g,s]),D=p.useCallback(()=>N(!v),[v,N]),B=p.useCallback(()=>N(!1),[N]),{panelMounted:K,panelVisible:A,handleTransitionEnd:J}=Do(v,t),{popupPositionStyle:q}=Oo(v,t,V,n);p.useEffect(()=>{if(!v||t!=="popup")return;const H=X=>{var re,fe;(re=E.current)!=null&&re.contains(X.target)||(fe=V.current)!=null&&fe.contains(X.target)||B()};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[v,t,B]),p.useEffect(()=>{if(!v)return;const H=X=>{X.key==="Escape"&&B()};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[v,B]),p.useEffect(()=>{if(!v||t!=="panel")return;const H=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${H}px`,document.body.style.width="100%",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",window.scrollTo(0,H)}},[v,t]);const M=e?typeof e=="function"?e({onClick:D,isOpen:v}):f.jsx("span",{onClick:D,style:{cursor:"pointer",display:"contents"},children:e}):null,P=e?f.jsx("span",{ref:V,className:ie.triggerWrapper,children:M}):null;if(t==="popup"){const H={backgroundColor:S.colors.secondary,borderRadius:S.border.radius,boxShadow:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)",...q,...h};return f.jsxs(f.Fragment,{children:[P,v&&He.createPortal(f.jsx("div",{ref:E,className:[ie.popup,_].filter(Boolean).join(" "),style:H,...x,children:r}),document.body)]})}const I={width:l,backgroundColor:S.colors.secondary,...h};return f.jsxs(f.Fragment,{children:[P,K&&He.createPortal(f.jsxs("div",{className:[ie.panelOverlay,A?ie.panelOverlayVisible:""].filter(Boolean).join(" "),children:[f.jsx("div",{className:ie.backdrop,style:{backgroundColor:A?y:"transparent"},onClick:u?B:void 0,role:"presentation"}),f.jsxs("div",{ref:E,className:[ie.panel,a==="right"?ie.panelRight:ie.panelLeft,A?ie.panelOpen:"",_].filter(Boolean).join(" "),style:I,role:"dialog","aria-modal":"true",onTransitionEnd:J,...x,children:[!c&&f.jsx("button",{className:ie.panelCloseButton,onClick:B,"aria-label":"Close panel",type:"button",children:f.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),r]})]}),document.body)]})},To=({isMobile:e,isCompact:r,mobile:t,desktop:o})=>{const s=O();return p.useMemo(()=>e?{navStyles:{...(t==null?void 0:t.backgroundColor)&&{backgroundColor:t.backgroundColor},color:(t==null?void 0:t.color)||s.fonts.color,...t==null?void 0:t.style}}:{navStyles:{...(o==null?void 0:o.backgroundColor)&&{backgroundColor:o.backgroundColor},color:(o==null?void 0:o.color)||s.fonts.color,...o==null?void 0:o.style}},[e,r,t,o,s])},_r=p.createContext({isMobile:!1,setOpen:()=>{}}),Io=({open:e,setOpen:r,hamburgerRef:t,isCompact:o,mobile:s,panelWidth:n,side:a,navClassName:l,cssProps:y,navProps:c,content:u,onNavClick:_})=>{const{backgroundColor:h,...x}=y;return f.jsx(ct,{variant:"panel",side:a||"right",panelWidth:n||"75%",isOpen:e,onOpenChange:r,style:h?{backgroundColor:h}:void 0,trigger:({onClick:S})=>f.jsx(yr,{hamburgerRef:t,visible:!0,compact:o,open:!1,setOpen:g=>S(),...s==null?void 0:s.hamburgerProps}),children:f.jsxs("nav",{...c,className:l,style:x,onClickCapture:_,children:[f.jsx("div",{className:be.navHeader}),typeof u=="function"?u({setOpen:r}):u]})})},Ho=({setOpen:e,navClassName:r,cssProps:t,navProps:o,content:s})=>f.jsx("nav",{...o,className:r,style:t,children:typeof s=="function"?s({setOpen:e}):s}),jo=({mobile:e,desktop:r,breakpoints:t,children:o,className:s,style:n,navProps:a,disableMobileTreatment:l=!1})=>{const[y,c]=p.useState(!1),u=p.useRef(null),h={...O().breakpoints,...t},{maxWidth:x,unit:S}=_e(h.md),{maxWidth:g,unit:F}=_e(h.sm),z=oe(`(max-width: ${x}${S})`),v=oe(`(max-width: ${g}${F})`),V=l?!1:z,E=l?!1:v,{navStyles:N}=To({isMobile:V,isCompact:E,mobile:e,desktop:r}),D={...N,...n},B=J=>{const q=J.target;q.closest("[data-navdropdown-trigger]")||q.closest("a, button")&&c(!1)},K=[be.nav,be.navMobile,E||e!=null&&e.compact?be.compact:"",s].filter(Boolean).join(" "),A=[be.nav,be.navDesktop,s].filter(Boolean).join(" ");return f.jsx(_r.Provider,{value:{isMobile:V,setOpen:c},children:V?f.jsx(Io,{open:y,setOpen:c,hamburgerRef:u,isCompact:E,mobile:e,panelWidth:e==null?void 0:e.panelWidth,side:e==null?void 0:e.side,navClassName:K,cssProps:D,navProps:a,content:(e==null?void 0:e.content)||o,onNavClick:B}):f.jsx(Ho,{setOpen:c,navClassName:A,cssProps:D,navProps:a,content:(r==null?void 0:r.content)||o})})},dt={trigger:"NavDropdown-module__trigger___1PQZp",chevron:"NavDropdown-module__chevron___ZLAV7",chevronOpen:"NavDropdown-module__chevronOpen___9mgjr"};function ut({isActive:e=!1,hoverOpacity:r=.5,color:t}={}){const o=O(),[s,n]=p.useState(!1);return{style:{color:t||o.fonts.color,fontWeight:700,textDecoration:"none",opacity:e||s?r:1},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)}}const Wo=({label:e,children:r,dropdownVariant:t="popup",side:o="left",panelWidth:s="75%",color:n,hoverOpacity:a,className:l,style:y,buttonProps:c})=>{const[u,_]=p.useState(!1),{style:h,onMouseEnter:x,onMouseLeave:S}=ut({isActive:u,color:n,hoverOpacity:a});return f.jsx(ct,{variant:t,side:o,panelWidth:s,isOpen:u,onOpenChange:_,trigger:({onClick:g})=>f.jsxs("button",{type:"button",className:[dt.trigger,l].filter(Boolean).join(" "),style:{...h,...y},"data-navdropdown-trigger":!0,onClick:g,onMouseEnter:x,onMouseLeave:S,...c,children:[e,f.jsx("span",{className:[dt.chevron,u?dt.chevronOpen:""].filter(Boolean).join(" "),"aria-hidden":"true",children:f.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M2 4L6 8L10 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),children:r})},Uo=({isActive:e,hoverOpacity:r,color:t,children:o})=>{const{style:s,onMouseEnter:n,onMouseLeave:a}=ut({isActive:e,hoverOpacity:r,color:t});return p.cloneElement(o,{style:{...s,...o.props.style},onMouseEnter:l=>{var y,c;n(),(c=(y=o.props).onMouseEnter)==null||c.call(y,l)},onMouseLeave:l=>{var y,c;a(),(c=(y=o.props).onMouseLeave)==null||c.call(y,l)}})},ft=({color:e,backgroundColor:r,fullScreen:t=!0,className:o,style:s,divProps:n})=>{const a=O(),l=e||a.colors.primary,y=r||a.colors.secondary,c=f.jsx("div",{...t?void 0:n,className:t?void 0:o,style:{fontSize:"2.5em",borderRadius:"50%",width:"1em",height:"1em",animation:"spin 1s linear infinite",...t?{}:s,border:`0.1em solid ${l}`,borderTop:`0.1em solid ${y}`}}),u=f.jsxs(f.Fragment,{children:[c,f.jsx("style",{children:`
|
|
18
18
|
@keyframes spin {
|
|
19
19
|
0% { transform: rotate(0deg); }
|
|
20
20
|
100% { transform: rotate(360deg); }
|
|
21
21
|
}
|
|
22
|
-
`})]});return t?m.jsx("div",{...n,className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:d}):d},Io=({children:e,loadingComponent:r})=>{const[t,o]=_.useState(!1);return _.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?m.jsx(m.Fragment,{children:e}):r||m.jsx(hr,{})},he={backdrop:"Modal-module__backdrop___GVUh4",modal:"Modal-module__modal___aD7aP",header:"Modal-module__header___ILG9i",title:"Modal-module__title___A5OeE",closeButton:"Modal-module__closeButton___3LpSf",content:"Modal-module__content___dWO-B",actions:"Modal-module__actions___hY6zi"},ut={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},mr=({direction:e="row",children:r,className:t,style:o,divProps:s})=>{const n=[ut.stack,e==="column"?ut.vertical:ut.horizontal,t].filter(Boolean).join(" ");return m.jsx("div",{...s,className:n,style:o,children:r})},pr=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:l=[],resolveModal:f,width:u="500px",maxWidth:d="90vw",backgroundColor:p,backdropColor:y="rgba(0, 0, 0, 0.5)",className:V,style:C,divProps:g})=>{const F=j(),N=_.useRef(null),b=_.useRef(null),{maxWidth:E}=me(F.breakpoints.md),z=oe(`(max-width: ${E-1}px)`);_.useEffect(()=>{if(e)return b.current=document.activeElement,document.body.style.overflow="hidden",N.current&&N.current.focus(),()=>{document.body.style.overflow="",b.current&&b.current.focus()}},[e]),_.useEffect(()=>{if(!e||!a)return;const A=X=>{X.key==="Escape"&&r()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[e,a,r]);const L=A=>{A.target===A.currentTarget&&n&&r()};if(!e)return null;const H={width:u,maxWidth:d,backgroundColor:p||F.colors.secondary,borderRadius:F.border.radius,...C},D={backgroundColor:y},J=m.jsx("div",{className:he.backdrop,style:D,onClick:L,role:"presentation",children:m.jsxs("div",{ref:N,className:[he.modal,V].filter(Boolean).join(" "),style:H,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,...g,children:[m.jsxs("div",{className:he.header,children:[o&&m.jsx("h2",{id:"modal-title",className:he.title,children:o}),!s&&m.jsx("button",{className:he.closeButton,onClick:r,"aria-label":"Close modal",type:"button",children:m.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:m.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),m.jsx("div",{className:he.content,children:t}),l.length>0&&m.jsx(mr,{direction:z?"column":"row",className:he.actions,children:l.map((A,X)=>m.jsx(bt,{color:A.color,outline:A.variant==="outline",disabled:A.disabled,onClick:()=>{A.onClick?A.onClick(f||r):f?f(A.value):r()},children:A.label},X))})]})});return Te.createPortal(J,document.body)},gr=_.createContext(null),Wo=({children:e})=>{const[r,t]=_.useState(null),o=_.useCallback(u=>new Promise((d,p)=>{const y=Math.random().toString(36).substr(2,9);t({id:y,content:u.content,title:u.title,actions:u.actions,options:u.options,resolve:d,reject:p})}),[]),s=_.useCallback(u=>{t(d=>(d&&d.resolve(u),null))},[]),n=_.useCallback(u=>o({title:u.title||"Confirm",content:u.message,actions:[{label:u.cancelLabel||"Cancel",variant:"outline",onClick:d=>d(!1)},{label:u.confirmLabel||"Confirm",color:u.confirmColor,onClick:d=>d(!0)}],options:u.options}),[o]),a=_.useCallback(u=>o({title:u.title||"Alert",content:u.message,actions:[{label:u.okLabel||"OK",color:u.okColor,onClick:d=>d()}],options:u.options}),[o]),l=_.useCallback(()=>{s()},[s]),f=_.useMemo(()=>({show:o,resolve:s,confirm:n,alert:a}),[o,s,n,a]);return m.jsxs(gr.Provider,{value:f,children:[e,r&&m.jsx(pr,{isOpen:!0,onClose:l,title:r.title,actions:r.actions,resolveModal:s,...r.options,children:typeof r.content=="function"?r.content(s):r.content})]})},Uo=()=>{const e=_.useContext(gr);if(!e)throw new Error("useModal must be used within a ModalProvider");return e},_r={section:"ResponsiveSection-module__section___gBESK",innerDiv:"ResponsiveSection-module__innerDiv___r1bky"},dt=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,verticalRhythm:d=3,children:p,className:y,style:V,sectionProps:C})=>{const g=j(),F=oe(`(min-width: ${g.breakpoints.sm})`),N={backgroundColor:e,color:r||g.fonts.color,margin:f,...V},b=`calc(${g.fonts.rhythm} * ${d})`,E=F?a||g.layout.padding:l||g.layout.paddingSm,z={"--max-width":t||g.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${b} ${E}`,"--gap":u},L=[_r.section,y].filter(Boolean).join(" ");return m.jsx("section",{...C,className:L,style:N,children:m.jsx("div",{className:_r.innerDiv,style:z,children:p})})},vr={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},qo=({isMd:e=!1,isLg:r=!1,theme:t})=>_.useMemo(()=>{const{rhythm:o}=t.fonts;let s=`calc(${o} * 2) 0`,n="2rem",a="1.125rem";return r?(s=`calc(${o} * 4) 0`,n="3.5rem",a="1.5rem"):e&&(s=`calc(${o} * 3.5) 0`,n="3rem",a="1.25rem"),{"--hero-padding":s,"--hero-h1-font-size":n,"--hero-p-font-size":a,"--hero-h1-margin-bottom":`calc(${o} * 0.7)`}},[e,r,t.fonts]),Go=({color:e,breakpoints:r,children:t,className:o,style:s,...n})=>{const a=j(),l=[vr.hero,o].filter(Boolean).join(" "),f=(r==null?void 0:r.md)||a.breakpoints.md,u=(r==null?void 0:r.lg)||a.breakpoints.lg,d=oe(`(min-width: ${f})`),p=oe(`(min-width: ${u})`),y=qo({isMd:d,isLg:p,theme:a});return m.jsx(dt,{className:l,color:e||a.fonts.color,style:{...y,...s},...n,children:m.jsx("div",{className:vr.content,children:t})})},br={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},Zo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:f,backgroundColor:u,color:d}={})=>{const p=j();return{maxWidth:r||p.layout.maxWidth,minWidth:t,width:o,height:s,padding:e?n||p.layout.paddingSm:a||p.layout.padding,margin:l,gap:f,backgroundColor:u,color:d||p.fonts.color}},Sr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:f,gap:u,breakPoint:d,children:p,className:y,style:V,footerProps:C})=>{const g=j(),F=d||g.breakpoints.sm,{maxWidth:N,unit:b}=me(F),E=oe(`(max-width: ${N}${b})`),z=Zo({isSmallScreen:E,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:f,gap:u,backgroundColor:e,color:r}),L=[br.container,y].filter(Boolean).join(" ");return m.jsx("footer",{...C,className:br.footer,children:m.jsx("div",{className:L,style:{...z,...V},children:p})})},Be={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},Qo=({isMd:e=!1,theme:r})=>_.useMemo(()=>{const{rhythm:t}=r.fonts;return{"--feature-icon-font-size":e?"3rem":"2.5rem","--feature-title-font-size":e?"1.5rem":"1.25rem","--feature-card-padding":`calc(${t} * 1)`,"--feature-icon-margin-bottom":`calc(${t} * 0.7)`,"--feature-title-margin-bottom":`calc(${t} * 0.5)`}},[e,r.fonts]),Ko=({breakpoint:e,icon:r,title:t,children:o,className:s,style:n,divProps:a})=>{const l=j(),f=[Be.card,s].filter(Boolean).join(" "),u=e||l.breakpoints.md,d=oe(`(min-width: ${u})`),p=Qo({isMd:d,theme:l});return m.jsxs("div",{...a,className:f,style:{...p,...n},children:[r&&m.jsx("div",{className:Be.icon,children:r}),m.jsx("h3",{className:Be.title,children:t}),m.jsx("div",{className:Be.content,children:o})]})},wr={section:"FeatureGridSection-module__section___wZrbC",grid:"FeatureGridSection-module__grid___iwPJv"},Jo=({columns:e,isMd:r=!1,isLg:t=!1})=>_.useMemo(()=>r?r&&!t&&(e===3||e===4)?{"--grid-template-columns":"repeat(2, 1fr)"}:{"--grid-template-columns":{1:"1fr",2:"repeat(2, 1fr)",3:"repeat(3, 1fr)",4:"repeat(4, 1fr)"}[e]}:{"--grid-template-columns":"1fr"},[e,r,t]),Xo=({columns:e=3,breakpoints:r,gap:t,children:o,className:s,style:n,...a})=>{const l=j(),f=[wr.section,s].filter(Boolean).join(" "),u=(r==null?void 0:r.md)||l.breakpoints.md,d=(r==null?void 0:r.lg)||l.breakpoints.lg,p=oe(`(min-width: ${u})`),y=oe(`(min-width: ${d})`),V=Jo({columns:e,isMd:p,isLg:y}),C={"--section-padding-vertical":`calc(${l.fonts.rhythm} * 2)`},g={...V,gap:t,...n};return m.jsx(dt,{className:f,style:C,...a,children:m.jsx("div",{className:wr.grid,style:g,children:o})})},ft={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},Yo=({header:e,footer:r,children:t,className:o,style:s,headerProps:n,footerProps:a,divProps:l,mainProps:f})=>{const u=[ft.layoutContainer,o].filter(Boolean).join(" ");return m.jsxs("div",{...l,className:u,style:s,children:[m.jsxs("div",{className:ft.content,children:[e&&m.jsx(fr,{...n,children:e}),m.jsx("main",{...f,className:ft.main,children:t})]}),r&&m.jsx(Sr,{...a,children:r})]})};$.Button=bt,$.CSSReset=Hr,$.Checkbox=ze,$.FeatureCard=Ko,$.FeatureGridSection=Xo,$.Footer=Sr,$.Form=vo,$.FormCheckbox=xo,$.FormCheckboxGroup=No,$.FormError=nr,$.FormField=ue,$.FormGroup=ar,$.FormInput=wo,$.FormLabel=$e,$.FormRadio=$o,$.FormRadioGroup=zo,$.FormSelect=Vo,$.FormTextarea=ko,$.Hamburger=ur,$.Header=fr,$.Hero=Go,$.Input=lr,$.LoadingSpinner=hr,$.Modal=pr,$.ModalProvider=Wo,$.NavDropdown=Ho,$.NavLink=jo,$.PageLayout=Yo,$.Popover=lt,$.Radio=at,$.ResponsiveNav=To,$.ResponsiveNavContext=yr,$.ResponsiveSection=dt,$.Select=cr,$.Stack=mr,$.StyleLoader=Io,$.Textarea=ir,$.ThemeProvider=Pr,$.parseBreakpoint=me,$.useFormContext=sr,$.useMediaQuery=oe,$.useModal=Uo,$.useNavLinkStyles=ct,$.useTheme=j,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
|
|
22
|
+
`})]});return t?f.jsx("div",{...n,className:o,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",...s},children:u}):u},qo=({children:e,loadingComponent:r})=>{const[t,o]=p.useState(!1);return p.useEffect(()=>{requestAnimationFrame(()=>{o(!0)})},[]),t?f.jsx(f.Fragment,{children:e}):r||f.jsx(ft,{})},me={backdrop:"Modal-module__backdrop___GVUh4",modal:"Modal-module__modal___aD7aP",header:"Modal-module__header___ILG9i",title:"Modal-module__title___A5OeE",closeButton:"Modal-module__closeButton___3LpSf",content:"Modal-module__content___dWO-B",actions:"Modal-module__actions___hY6zi"},yt={stack:"Stack-module__stack___yUU-B",vertical:"Stack-module__vertical___sKTyQ",horizontal:"Stack-module__horizontal___YsvtV"},gr=({direction:e="row",children:r,className:t,style:o,divProps:s})=>{const n=[yt.stack,e==="column"?yt.vertical:yt.horizontal,t].filter(Boolean).join(" ");return f.jsx("div",{...s,className:n,style:o,children:r})},pr=({isOpen:e,onClose:r,children:t,title:o,hideCloseButton:s=!1,closeOnBackdropClick:n=!0,closeOnEscape:a=!0,actions:l=[],resolveModal:y,width:c="500px",maxWidth:u="90vw",backgroundColor:_,backdropColor:h="rgba(0, 0, 0, 0.5)",className:x,style:S,divProps:g})=>{const F=O(),z=p.useRef(null),v=p.useRef(null),{maxWidth:V}=_e(F.breakpoints.md),E=oe(`(max-width: ${V-1}px)`);p.useEffect(()=>{if(e)return v.current=document.activeElement,document.body.style.overflow="hidden",z.current&&z.current.focus(),()=>{document.body.style.overflow="",v.current&&v.current.focus()}},[e]),p.useEffect(()=>{if(!e||!a)return;const A=J=>{J.key==="Escape"&&r()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[e,a,r]);const N=A=>{A.target===A.currentTarget&&n&&r()};if(!e)return null;const D={width:c,maxWidth:u,backgroundColor:_||F.colors.secondary,borderRadius:F.border.radius,...S},B={backgroundColor:h},K=f.jsx("div",{className:me.backdrop,style:B,onClick:N,role:"presentation",children:f.jsxs("div",{ref:z,className:[me.modal,x].filter(Boolean).join(" "),style:D,role:"dialog","aria-modal":"true","aria-labelledby":o?"modal-title":void 0,tabIndex:-1,...g,children:[f.jsxs("div",{className:me.header,children:[o&&f.jsx("h2",{id:"modal-title",className:me.title,children:o}),!s&&f.jsx("button",{className:me.closeButton,onClick:r,"aria-label":"Close modal",type:"button",children:f.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),f.jsx("div",{className:me.content,children:t}),l.length>0&&f.jsx(gr,{direction:E?"column":"row",className:me.actions,children:l.map((A,J)=>f.jsx(wt,{color:A.color,outline:A.variant==="outline",disabled:A.disabled,onClick:()=>{A.onClick?A.onClick(y||r):y?y(A.value):r()},children:A.label},J))})]})});return He.createPortal(K,document.body)},vr=p.createContext(null),Go=({children:e})=>{const[r,t]=p.useState(null),o=p.useCallback(c=>new Promise((u,_)=>{const h=Math.random().toString(36).substr(2,9);t({id:h,content:c.content,title:c.title,actions:c.actions,options:c.options,resolve:u,reject:_})}),[]),s=p.useCallback(c=>{t(u=>(u&&u.resolve(c),null))},[]),n=p.useCallback(c=>o({title:c.title||"Confirm",content:c.message,actions:[{label:c.cancelLabel||"Cancel",variant:"outline",onClick:u=>u(!1)},{label:c.confirmLabel||"Confirm",color:c.confirmColor,onClick:u=>u(!0)}],options:c.options}),[o]),a=p.useCallback(c=>o({title:c.title||"Alert",content:c.message,actions:[{label:c.okLabel||"OK",color:c.okColor,onClick:u=>u()}],options:c.options}),[o]),l=p.useCallback(()=>{s()},[s]),y=p.useMemo(()=>({show:o,resolve:s,confirm:n,alert:a}),[o,s,n,a]);return f.jsxs(vr.Provider,{value:y,children:[e,r&&f.jsx(pr,{isOpen:!0,onClose:l,title:r.title,actions:r.actions,resolveModal:s,...r.options,children:typeof r.content=="function"?r.content(s):r.content})]})},Zo=()=>{const e=p.useContext(vr);if(!e)throw new Error("useModal must be used within a ModalProvider");return e},br={section:"ResponsiveSection-module__section___gBESK",innerDiv:"ResponsiveSection-module__innerDiv___r1bky"},ht=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:y,gap:c,verticalRhythm:u=3,children:_,className:h,style:x,sectionProps:S})=>{const g=O(),F=oe(`(min-width: ${g.breakpoints.sm})`),z={backgroundColor:e,color:r||g.fonts.color,margin:y,...x},v=`calc(${g.fonts.rhythm} * ${u})`,V=F?a||g.layout.padding:l||g.layout.paddingSm,E={"--max-width":t||g.layout.maxWidth,"--min-width":o,"--width":s,"--height":n,"--section-padding":`${v} ${V}`,"--gap":c},N=[br.section,h].filter(Boolean).join(" ");return f.jsx("section",{...S,className:N,style:z,children:f.jsx("div",{className:br.innerDiv,style:E,children:_})})},Sr={hero:"Hero-module__hero___IB2tg",content:"Hero-module__content___rkkfQ"},Qo=({isMd:e=!1,isLg:r=!1,theme:t})=>p.useMemo(()=>{const{rhythm:o}=t.fonts;let s=`calc(${o} * 2) 0`,n="2rem",a="1.125rem";return r?(s=`calc(${o} * 4) 0`,n="3.5rem",a="1.5rem"):e&&(s=`calc(${o} * 3.5) 0`,n="3rem",a="1.25rem"),{"--hero-padding":s,"--hero-h1-font-size":n,"--hero-p-font-size":a,"--hero-h1-margin-bottom":`calc(${o} * 0.7)`}},[e,r,t.fonts]),Ko=({color:e,breakpoints:r,children:t,className:o,style:s,...n})=>{const a=O(),l=[Sr.hero,o].filter(Boolean).join(" "),y=(r==null?void 0:r.md)||a.breakpoints.md,c=(r==null?void 0:r.lg)||a.breakpoints.lg,u=oe(`(min-width: ${y})`),_=oe(`(min-width: ${c})`),h=Qo({isMd:u,isLg:_,theme:a});return f.jsx(ht,{className:l,color:e||a.fonts.color,style:{...h,...s},...n,children:f.jsx("div",{className:Sr.content,children:t})})},kr={footer:"Footer-module__footer___A76NF",container:"Footer-module__container___QneNs"},Jo=({isSmallScreen:e=!1,maxWidth:r,minWidth:t,width:o,height:s,paddingSm:n,padding:a,margin:l,gap:y,backgroundColor:c,color:u}={})=>{const _=O();return{maxWidth:r||_.layout.maxWidth,minWidth:t,width:o,height:s,padding:e?n||_.layout.paddingSm:a||_.layout.padding,margin:l,gap:y,backgroundColor:c,color:u||_.fonts.color}},wr=({backgroundColor:e,color:r,maxWidth:t,minWidth:o,width:s,height:n,padding:a,paddingSm:l,margin:y,gap:c,breakPoint:u,children:_,className:h,style:x,footerProps:S})=>{const g=O(),F=u||g.breakpoints.sm,{maxWidth:z,unit:v}=_e(F),V=oe(`(max-width: ${z}${v})`),E=Jo({isSmallScreen:V,maxWidth:t,minWidth:o,width:s,height:n,paddingSm:l,padding:a,margin:y,gap:c,backgroundColor:e,color:r}),N=[kr.container,h].filter(Boolean).join(" ");return f.jsx("footer",{...S,className:kr.footer,children:f.jsx("div",{className:N,style:{...E,...x},children:_})})},Oe={card:"FeatureCard-module__card___XQt66",icon:"FeatureCard-module__icon___dXJ92",title:"FeatureCard-module__title___KxXyA",content:"FeatureCard-module__content___68xkw"},Xo=({isMd:e=!1,theme:r})=>p.useMemo(()=>{const{rhythm:t}=r.fonts;return{"--feature-icon-font-size":e?"3rem":"2.5rem","--feature-title-font-size":e?"1.5rem":"1.25rem","--feature-card-padding":`calc(${t} * 1)`,"--feature-icon-margin-bottom":`calc(${t} * 0.7)`,"--feature-title-margin-bottom":`calc(${t} * 0.5)`}},[e,r.fonts]),Yo=({breakpoint:e,icon:r,title:t,children:o,className:s,style:n,divProps:a})=>{const l=O(),y=[Oe.card,s].filter(Boolean).join(" "),c=e||l.breakpoints.md,u=oe(`(min-width: ${c})`),_=Xo({isMd:u,theme:l});return f.jsxs("div",{...a,className:y,style:{..._,...n},children:[r&&f.jsx("div",{className:Oe.icon,children:r}),f.jsx("h3",{className:Oe.title,children:t}),f.jsx("div",{className:Oe.content,children:o})]})},Cr={section:"FeatureGridSection-module__section___wZrbC",grid:"FeatureGridSection-module__grid___iwPJv"},Ro=({columns:e,isMd:r=!1,isLg:t=!1})=>p.useMemo(()=>r?r&&!t&&(e===3||e===4)?{"--grid-template-columns":"repeat(2, 1fr)"}:{"--grid-template-columns":{1:"1fr",2:"repeat(2, 1fr)",3:"repeat(3, 1fr)",4:"repeat(4, 1fr)"}[e]}:{"--grid-template-columns":"1fr"},[e,r,t]),es=({columns:e=3,breakpoints:r,gap:t,children:o,className:s,style:n,...a})=>{const l=O(),y=[Cr.section,s].filter(Boolean).join(" "),c=(r==null?void 0:r.md)||l.breakpoints.md,u=(r==null?void 0:r.lg)||l.breakpoints.lg,_=oe(`(min-width: ${c})`),h=oe(`(min-width: ${u})`),x=Ro({columns:e,isMd:_,isLg:h}),S={"--section-padding-vertical":`calc(${l.fonts.rhythm} * 2)`},g={...x,gap:t,...n};return f.jsx(ht,{className:y,style:S,...a,children:f.jsx("div",{className:Cr.grid,style:g,children:o})})},mt={layoutContainer:"PageLayout-module__layoutContainer___diLdT",content:"PageLayout-module__content___h2mBr",main:"PageLayout-module__main___Sw7Pv"},ts=({header:e,footer:r,children:t,className:o,style:s,headerProps:n,footerProps:a,divProps:l,mainProps:y})=>{const c=[mt.layoutContainer,o].filter(Boolean).join(" ");return f.jsxs("div",{...l,className:c,style:s,children:[f.jsxs("div",{className:mt.content,children:[e&&f.jsx(mr,{...n,children:e}),f.jsx("main",{...y,className:mt.main,children:t})]}),r&&f.jsx(wr,{...a,children:r})]})},de={dropzone:"FileUpload-module__dropzone___jqua0",loading:"FileUpload-module__loading___C7PsH",dragOver:"FileUpload-module__dragOver___q1zPo",hiddenInput:"FileUpload-module__hiddenInput___RLLPJ",content:"FileUpload-module__content___yCP0l",label:"FileUpload-module__label___lbMkx",hint:"FileUpload-module__hint___8dXlk",errorMessage:"FileUpload-module__errorMessage___8HB3n"},rs=({color:e})=>f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:e,width:"48",height:"48","aria-hidden":!0,children:f.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"})}),os=({onUpload:e,accept:r,maxSizeBytes:t,loading:o=!1,error:s,label:n="Click or drag & drop a file here",className:a,style:l,divProps:y,inputProps:c})=>{const u=O(),_=p.useRef(null),[h,x]=p.useState(!1),[S,g]=p.useState(null),F=s||S,z=F?u.colors.error:u.colors.primary,v=F?u.colors.error:u.colors.primary,V=p.useCallback(M=>{if(g(null),t&&M.size>t){const P=(t/1048576).toFixed(1);g(`File exceeds maximum size of ${P} MB`);return}e(M)},[t,e]),E=()=>{var M;o||(M=_.current)==null||M.click()},N=M=>{var P;(M.key==="Enter"||M.key===" ")&&!o&&(M.preventDefault(),(P=_.current)==null||P.click())},D=M=>{var I;const P=(I=M.target.files)==null?void 0:I[0];P&&V(P),M.target.value=""},B=M=>{M.preventDefault(),o||x(!0)},K=()=>x(!1),A=M=>{var I;if(M.preventDefault(),x(!1),o)return;const P=(I=M.dataTransfer.files)==null?void 0:I[0];P&&V(P)},J=[de.dropzone,h&&de.dragOver,o&&de.loading,a].filter(Boolean).join(" "),q={"--upload-color":z,borderColor:z,borderWidth:u.border.width,borderRadius:u.border.radius,fontSize:u.fonts.size,color:v,...l};return f.jsxs("div",{...y,className:J,style:q,onClick:E,onKeyDown:N,onDragOver:B,onDragLeave:K,onDrop:A,role:"button",tabIndex:o?-1:0,"aria-disabled":o,"aria-label":n,children:[f.jsx("input",{...c,ref:_,type:"file",accept:r,onChange:D,disabled:o,className:de.hiddenInput,tabIndex:-1,"aria-hidden":!0}),o?f.jsx(ft,{fullScreen:!1,style:{fontSize:"1.5em"}}):f.jsxs("div",{className:de.content,children:[f.jsx(rs,{color:z}),f.jsx("span",{className:de.label,children:n}),r&&f.jsxs("span",{className:de.hint,children:["Accepted: ",r]}),t&&f.jsxs("span",{className:de.hint,children:["Max size: ",(t/(1024*1024)).toFixed(1)," MB"]}),F&&f.jsx("span",{className:de.errorMessage,role:"alert",children:F})]})]})},Se={thumbnail:"ImageThumbnail-module__thumbnail___-igbe",img:"ImageThumbnail-module__img___Q7Z4V",sizeSm:"ImageThumbnail-module__sizeSm___rtC81",sizeMd:"ImageThumbnail-module__sizeMd___GL9qs",sizeLg:"ImageThumbnail-module__sizeLg___E70Oi",removeButton:"ImageThumbnail-module__removeButton___Ceh1Q"},ss={skeleton:"Skeleton-module__skeleton___CB4uF"},Fr=({className:e,style:r,divProps:t})=>{const o=O(),s=[ss.skeleton,e].filter(Boolean).join(" ");return f.jsx("div",{...t,className:s,style:{borderRadius:o.border.radius,...r},"aria-label":"Loading","aria-busy":!0})},ns=({color:e})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"1.5",width:"40%",height:"40%","aria-hidden":!0,children:[f.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),f.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),f.jsx("polyline",{points:"21 15 16 10 5 21"})]}),as=({src:e,alt:r="",size:t="md",loading:o=!1,skeletonDelay:s=500,onRemove:n,removeLabel:a="Remove",fallback:l,className:y,style:c,imgProps:u})=>{const _=O(),[h,x]=p.useState(null),[S,g]=p.useState(null),[F,z]=p.useState(null),v=h===e,V=S===e,E=F===e;p.useEffect(()=>{if(!e)return;const q=setTimeout(()=>z(e),s);return()=>clearTimeout(q)},[e,s]);const N=o||!!e&&!v&&!V&&E,D=!o&&(!e||V),B=t==="sm"?Se.sizeSm:t==="lg"?Se.sizeLg:Se.sizeMd,K=[Se.thumbnail,B,y].filter(Boolean).join(" "),A={borderRadius:_.border.radius,...c},J={background:_.colors.primary,color:_.buttons.primary.textColor,borderRadius:"50%"};return f.jsxs("div",{className:K,style:A,"aria-label":D?r||"Image placeholder":void 0,"aria-busy":N||void 0,children:[N&&f.jsx(Fr,{style:{borderRadius:"inherit",position:"absolute",inset:0}}),D&&(l??f.jsx(ns,{color:_.colors.primary})),!o&&e&&!V&&f.jsx("img",{...u,src:e,alt:r,className:Se.img,style:{opacity:v?1:0},onLoad:()=>e&&x(e),onError:()=>e&&g(e)}),n&&f.jsx("button",{type:"button",className:Se.removeButton,style:J,onClick:q=>{q.stopPropagation(),n()},"aria-label":a,children:f.jsxs("svg",{viewBox:"0 0 10 10",width:"60%",height:"60%",fill:"none",stroke:"currentColor",strokeWidth:_.fonts.fontWeightHeader>=700?2:1.5,"aria-hidden":!0,children:[f.jsx("line",{x1:"2",y1:"2",x2:"8",y2:"8"}),f.jsx("line",{x1:"8",y1:"2",x2:"2",y2:"8"})]})})]})};$.Button=wt,$.CSSReset=Wr,$.Checkbox=Le,$.FeatureCard=Yo,$.FeatureGridSection=es,$.FileUpload=os,$.Footer=wr,$.Form=ko,$.FormCheckbox=$o,$.FormCheckboxGroup=Po,$.FormError=ir,$.FormField=ue,$.FormGroup=cr,$.FormInput=Fo,$.FormLabel=Ne,$.FormRadio=Lo,$.FormRadioGroup=Mo,$.FormSelect=Eo,$.FormTextarea=Vo,$.Hamburger=yr,$.Header=mr,$.Hero=Ko,$.ImageThumbnail=as,$.Input=dr,$.LoadingSpinner=ft,$.Modal=pr,$.ModalProvider=Go,$.NavDropdown=Wo,$.NavLink=Uo,$.PageLayout=ts,$.Popover=ct,$.Radio=it,$.ResponsiveNav=jo,$.ResponsiveNavContext=_r,$.ResponsiveSection=ht,$.Select=fr,$.Skeleton=Fr,$.Stack=gr,$.StyleLoader=qo,$.Textarea=ur,$.ThemeProvider=Dr,$.parseBreakpoint=_e,$.useFormContext=lr,$.useMediaQuery=oe,$.useModal=Zo,$.useNavLinkStyles=ut,$.useTheme=O,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,9 @@ export { default as Footer } from './components/Footer';
|
|
|
25
25
|
export { default as FeatureCard } from './components/FeatureCard';
|
|
26
26
|
export { default as FeatureGridSection } from './components/FeatureGridSection';
|
|
27
27
|
export { default as PageLayout } from './components/PageLayout';
|
|
28
|
+
export { default as FileUpload } from './components/FileUpload';
|
|
29
|
+
export { default as ImageThumbnail } from './components/ImageThumbnail';
|
|
30
|
+
export { default as Skeleton } from './components/Skeleton';
|
|
28
31
|
export { ThemeProvider, useTheme } from './theme';
|
|
29
32
|
export { parseBreakpoint } from './utils';
|
|
30
33
|
export { useMediaQuery } from './hooks/useMediaQuery';
|
|
@@ -57,4 +60,7 @@ export type { FooterProps } from './components/Footer';
|
|
|
57
60
|
export type { FeatureCardProps } from './components/FeatureCard';
|
|
58
61
|
export type { FeatureGridSectionProps } from './components/FeatureGridSection';
|
|
59
62
|
export type { PageLayoutProps } from './components/PageLayout';
|
|
63
|
+
export type { FileUploadProps } from './components/FileUpload';
|
|
64
|
+
export type { ImageThumbnailProps, ImageThumbnailSize } from './components/ImageThumbnail';
|
|
65
|
+
export type { SkeletonProps } from './components/Skeleton';
|
|
60
66
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,OAAO,IAAI,IAAI,EACf,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,WAAW,EACX,YAAY,GACb,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EACV,SAAS,EACT,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,WAAW,EACX,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAChG,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EACV,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,YAAY,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,OAAO,IAAI,IAAI,EACf,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,oBAAoB,EACpB,WAAW,EACX,YAAY,GACb,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EACV,SAAS,EACT,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,WAAW,EACX,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAChG,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EACV,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,YAAY,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|