@useloops/design-system 1.4.112 → 1.4.113
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/esm/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
object-assign
|
|
21
21
|
(c) Sindre Sorhus
|
|
22
22
|
@license MIT
|
|
23
|
-
*/function Xt(){if(_t)return Pt;_t=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return Pt=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,n){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},Pt}function Jt(){if(Dt)return Nt;Dt=1;return Nt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Qt(){return zt?Vt:(zt=1,Vt=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var er=Yt();Rt.exports=function(){if(Kt)return Zt;Kt=1;var e=Yt(),t=Xt(),r=Jt(),o=Qt(),n=function(){if(Ht)return Wt;Ht=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Jt(),r={},o=Qt();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function n(n,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in n)if(o(n,c)){var u;try{if("function"!=typeof n[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=n[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in r)){r[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return n.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},Wt=n}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Zt=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(a),arrayOf:function(e){return f((function(t,o,n,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[o];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,n,i,a+"["+l+"]",r);if(c instanceof Error)return c}return null}))},element:f((function(e,t,r,o,n){var i=e[t];return s(i)?null:new m("Invalid "+o+" `"+n+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:f((function(t,r,o,n,i){var a=t[r];return e.isValidElementType(a)?null:new m("Invalid "+n+" `"+i+"` of type `"+b(a)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,r,o,n,i){if(!(t[r]instanceof e)){var a=e.name||u;return new m("Invalid "+n+" `"+i+"` of type `"+((s=t[r]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+o+"`, expected instance of `"+a+"`.")}var s;return null}))},node:f((function(e,t,r,o,n){return x(e[t])?null:new m("Invalid "+o+" `"+n+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,n,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[n],c=b(l);if("object"!==c)return new m("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(o(l,u)){var d=e(l,u,i,a,s+"."+u,r);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?f((function(t,r,o,n,i){for(var a=t[r],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new m("Invalid "+n+" `"+i+"` of value `"+String(a)+"` supplied to `"+o+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(n)+" at index "+t+"."),a}return f((function(t,n,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,n,i,a,s,r);if(null==u)return null;u.data&&o(u.data,"expectedType")&&l.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,o,n,i,a){var s=t[o],l=b(s);if("object"!==l)return new m("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(n,i,a,c,y(u));var d=u(s,c,n,i,a+"."+c,r);if(d)return d}return null}))},exact:function(e){return f((function(n,i,a,s,l){var c=n[i],u=b(c);if("object"!==u)return new m("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},n[i],e);for(var p in d){var f=e[p];if(o(e,p)&&"function"!=typeof f)return g(a,s,l,p,y(f));if(!f)return new m("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(n[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(c,p,a,s,l+"."+p,r);if(h)return h}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function n(n,a,s,c,d,p,f){if(c=c||u,p=p||s,f!==r){if(l){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&o<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,o++)}}return null==a[s]?n?null===a[s]?new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=n.bind(null,!1);return a.isRequired=n.bind(null,!0),a}function h(e){return f((function(t,r,o,n,i,a){var s=t[r];return b(s)!==e?new m("Invalid "+n+" `"+i+"` of type `"+y(s)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,r,o,n){return new m((e||"React class")+": "+t+" type `"+r+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+n+"`.")}function x(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(x);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,o=t.call(e);if(t!==e.entries){for(;!(r=o.next()).done;)if(!x(r.value))return!1}else for(;!(r=o.next()).done;){var n=r.value;if(n&&!x(n[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=n,d.resetWarningCache=n.resetWarningCache,d.PropTypes=d,d},Zt}()(er.isElement,!0)}else Rt.exports=function(){if(Ut)return Gt;Ut=1;var e=Jt();function t(){}function r(){}return r.resetWarningCache=t,Gt=function(){function o(t,r,o,n,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:n,element:o,elementType:o,instanceOf:n,node:o,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}()();var tr=E(Rt.exports);function rr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function or(e){if(j.isValidElement(e)||!rr(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=or(e[r])})),t}function nr(e,t,r={clone:!0}){const o=r.clone?$t({},e):e;return rr(e)&&rr(t)&&Object.keys(t).forEach((n=>{j.isValidElement(t[n])?o[n]=t[n]:rr(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&rr(e[n])?o[n]=nr(e[n],t[n],r):r.clone?o[n]=rr(t[n])?or(t[n]):t[n]:o[n]=t[n]})),o}const ir=["values","unit","step"];function ar(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,n=Tt(e,ir),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>$t({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${r})`}function c(e,n){const i=a.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:n)-o/100}${r})`}return $t({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},n)}const sr={borderRadius:4},lr="production"!==process.env.NODE_ENV?tr.oneOfType([tr.number,tr.string,tr.object,tr.array]):{};function cr(e,t){return t?nr(e,t,{clone:!1}):e}const ur={xs:0,sm:600,md:900,lg:1200,xl:1536},dr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ur[e]}px)`};function pr(e,t,r){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||dr;return t.reduce(((o,n,i)=>(o[e.up(e.keys[i])]=r(t[i]),o)),{})}if("object"==typeof t){const e=o.breakpoints||dr;return Object.keys(t).reduce(((o,n)=>{if(-1!==Object.keys(e.values||ur).indexOf(n)){o[e.up(n)]=r(t[n],n)}else{const e=n;o[e]=t[e]}return o}),{})}return r(t)}function mr(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Mt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fr(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function hr(e,t,r,o=r){let n;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:fr(e,r)||o,t&&(n=t(n,o,e)),n}function gr(e){const{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=fr(e.theme,o)||{};return pr(e,i,(e=>{let o=hr(a,n,e);return e===o&&"string"==typeof e&&(o=hr(a,n,`${t}${"default"===e?"":mr(e)}`,e)),!1===r?o:{[r]:o}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:lr}:{},i.filterProps=[t],i}const xr={m:"margin",p:"padding"},br={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vr=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!yr[e])return[e];e=yr[e]}const[t,r]=e.split(""),o=xr[t],n=br[r]||"";return Array.isArray(n)?n.map((e=>o+e)):[o+n]})),Cr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],kr=[...Cr,...wr];function jr(e,t,r,o){var n;const i=null!=(n=fr(e,t,!1))?n:r;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Sr(e){return jr(e,"spacing",8,"spacing")}function Mr(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Er(e,t,r,o){if(-1===t.indexOf(r))return null;const n=function(e,t){return r=>e.reduce(((e,o)=>(e[o]=Mr(t,r),e)),{})}(vr(r),o);return pr(e,e[r],n)}function Or(e,t){const r=Sr(e.theme);return Object.keys(e).map((o=>Er(e,t,o,r))).reduce(cr,{})}function $r(e){return Or(e,Cr)}function Tr(e){return Or(e,wr)}function Ir(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,o)=>t[o]?cr(r,t[o](e)):r),{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Rr(e){return"number"!=typeof e?e:`${e}px solid`}function Br(e,t){return gr({prop:e,themeKey:"borders",transform:t})}$r.propTypes="production"!==process.env.NODE_ENV?Cr.reduce(((e,t)=>(e[t]=lr,e)),{}):{},$r.filterProps=Cr,Tr.propTypes="production"!==process.env.NODE_ENV?wr.reduce(((e,t)=>(e[t]=lr,e)),{}):{},Tr.filterProps=wr,"production"===process.env.NODE_ENV||kr.reduce(((e,t)=>(e[t]=lr,e)),{});const Lr=Br("border",Rr),Ar=Br("borderTop",Rr),Fr=Br("borderRight",Rr),Pr=Br("borderBottom",Rr),_r=Br("borderLeft",Rr),Nr=Br("borderColor"),Dr=Br("borderTopColor"),Vr=Br("borderRightColor"),zr=Br("borderBottomColor"),Wr=Br("borderLeftColor"),Hr=Br("outline",Rr),Zr=Br("outlineColor"),Kr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jr(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:Mr(t,e)});return pr(e,e.borderRadius,r)}return null};Kr.propTypes="production"!==process.env.NODE_ENV?{borderRadius:lr}:{},Kr.filterProps=["borderRadius"],Ir(Lr,Ar,Fr,Pr,_r,Nr,Dr,Vr,zr,Wr,Kr,Hr,Zr);const Gr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jr(e.theme,"spacing",8,"gap"),r=e=>({gap:Mr(t,e)});return pr(e,e.gap,r)}return null};Gr.propTypes="production"!==process.env.NODE_ENV?{gap:lr}:{},Gr.filterProps=["gap"];const Ur=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jr(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:Mr(t,e)});return pr(e,e.columnGap,r)}return null};Ur.propTypes="production"!==process.env.NODE_ENV?{columnGap:lr}:{},Ur.filterProps=["columnGap"];const qr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jr(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:Mr(t,e)});return pr(e,e.rowGap,r)}return null};qr.propTypes="production"!==process.env.NODE_ENV?{rowGap:lr}:{},qr.filterProps=["rowGap"];function Yr(e,t){return"grey"===t?t:e}Ir(Gr,Ur,qr,gr({prop:"gridColumn"}),gr({prop:"gridRow"}),gr({prop:"gridAutoFlow"}),gr({prop:"gridAutoColumns"}),gr({prop:"gridAutoRows"}),gr({prop:"gridTemplateColumns"}),gr({prop:"gridTemplateRows"}),gr({prop:"gridTemplateAreas"}),gr({prop:"gridArea"}));function Xr(e){return e<=1&&0!==e?100*e+"%":e}Ir(gr({prop:"color",themeKey:"palette",transform:Yr}),gr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yr}),gr({prop:"backgroundColor",themeKey:"palette",transform:Yr}));const Jr=gr({prop:"width",transform:Xr}),Qr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,o;const n=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||ur[t];return n?"px"!==(null==(o=e.theme)||null==(o=o.breakpoints)?void 0:o.unit)?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Xr(t)}};return pr(e,e.maxWidth,t)}return null};Qr.filterProps=["maxWidth"];const eo=gr({prop:"minWidth",transform:Xr}),to=gr({prop:"height",transform:Xr}),ro=gr({prop:"maxHeight",transform:Xr}),oo=gr({prop:"minHeight",transform:Xr});gr({prop:"size",cssProperty:"width",transform:Xr}),gr({prop:"size",cssProperty:"height",transform:Xr});Ir(Jr,Qr,eo,to,ro,oo,gr({prop:"boxSizing"}));const no={border:{themeKey:"borders",transform:Rr},borderTop:{themeKey:"borders",transform:Rr},borderRight:{themeKey:"borders",transform:Rr},borderBottom:{themeKey:"borders",transform:Rr},borderLeft:{themeKey:"borders",transform:Rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Rr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Kr},color:{themeKey:"palette",transform:Yr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yr},backgroundColor:{themeKey:"palette",transform:Yr},p:{style:Tr},pt:{style:Tr},pr:{style:Tr},pb:{style:Tr},pl:{style:Tr},px:{style:Tr},py:{style:Tr},padding:{style:Tr},paddingTop:{style:Tr},paddingRight:{style:Tr},paddingBottom:{style:Tr},paddingLeft:{style:Tr},paddingX:{style:Tr},paddingY:{style:Tr},paddingInline:{style:Tr},paddingInlineStart:{style:Tr},paddingInlineEnd:{style:Tr},paddingBlock:{style:Tr},paddingBlockStart:{style:Tr},paddingBlockEnd:{style:Tr},m:{style:$r},mt:{style:$r},mr:{style:$r},mb:{style:$r},ml:{style:$r},mx:{style:$r},my:{style:$r},margin:{style:$r},marginTop:{style:$r},marginRight:{style:$r},marginBottom:{style:$r},marginLeft:{style:$r},marginX:{style:$r},marginY:{style:$r},marginInline:{style:$r},marginInlineStart:{style:$r},marginInlineEnd:{style:$r},marginBlock:{style:$r},marginBlockStart:{style:$r},marginBlockEnd:{style:$r},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gr},rowGap:{style:qr},columnGap:{style:Ur},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xr},maxWidth:{style:Qr},minWidth:{transform:Xr},height:{transform:Xr},maxHeight:{transform:Xr},minHeight:{transform:Xr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const io=function(){function e(e,t,r,o){const n={[e]:t,theme:r},i=o[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=fr(r,s)||{};if(c)return c(n);return pr(n,t,(t=>{let r=hr(u,l,t);return t===r&&"string"==typeof t&&(r=hr(u,l,`${e}${"default"===t?"":mr(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var o;const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=null!=(o=i.unstable_sxConfig)?o:no;function s(r){let o=r;if("function"==typeof r)o=r(i);else if("object"!=typeof r)return r;if(!o)return null;const n=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(n);let l=n;return Object.keys(o).forEach((r=>{const n=(s=o[r],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=n)if("object"==typeof n)if(a[r])l=cr(l,e(r,n,i,a));else{const e=pr({theme:i},n,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,n)?l=cr(l,e):l[r]=t({sx:n,theme:i})}else l=cr(l,e(r,n,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(n)?n.map(s):s(n)}}();function ao(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const o=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[o]:t}}return r.palette.mode===e?t:{}}io.filterProps=["sx"];const so=["breakpoints","palette","spacing","shape"];function lo(e={},...t){const{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=e,a=Tt(e,so),s=ar(r),l=function(e=8){if(e.mui)return e;const t=Sr({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" "));return r.mui=!0,r}(n);let c=nr({breakpoints:s,direction:"ltr",components:{},palette:$t({mode:"light"},o),spacing:l,shape:$t({},sr,i)},a);return c.applyStyles=ao,c=t.reduce(((e,t)=>nr(e,t)),c),c.unstable_sxConfig=$t({},no,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return io({sx:e,theme:this})},c}function co(e=null){const t=j.useContext(n.ThemeContext);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const uo=lo();const po=e=>e,mo=(()=>{let e=po;return{configure(t){e=t},generate:t=>e(t),reset(){e=po}}})(),fo={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ho(e,t,r="Mui"){const o=fo[t];return o?`${r}-${o}`:`${mo.generate(e)}-${t}`}function go(e,t){const r=$t({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))r[o]=$t({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const n=e[o]||{},i=t[o];r[o]={},i&&Object.keys(i)?n&&Object.keys(n)?(r[o]=$t({},i),Object.keys(n).forEach((e=>{r[o][e]=go(n[e],i[e])}))):r[o]=i:r[o]=n}else void 0===r[o]&&(r[o]=e[o])})),r}function xo(e){const{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?go(t.components[r].defaultProps,o):o}const bo="undefined"!=typeof window?j.useLayoutEffect:j.useEffect;function yo(e,t,r,o,n){const[i,a]=j.useState((()=>n&&r?r(e).matches:o?o(e).matches:t));return bo((()=>{let t=!0;if(!r)return;const o=r(e),n=()=>{t&&a(o.matches)};return n(),o.addListener(n),()=>{t=!1,o.removeListener(n)}}),[e,r]),i}const vo=j.useSyncExternalStore;function Co(e,t,r,o,n){const i=j.useCallback((()=>t),[t]),a=j.useMemo((()=>{if(n&&r)return()=>r(e).matches;if(null!==o){const{matches:t}=o(e);return()=>t}return i}),[i,e,o,n,r]),[s,l]=j.useMemo((()=>{if(null===r)return[i,()=>()=>{}];const t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,r,e]);return vo(l,s,a)}var wo=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}});const ko="exact-prop: ";function jo(e){return"production"===process.env.NODE_ENV?e:$t({},e,{[ko]:t=>{const r=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return r.length>0?new Error(`The following props are not supported: ${r.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}const So=j.createContext(null);function Mo(){const e=j.useContext(So);return"production"!==process.env.NODE_ENV&&j.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(So.displayName="ThemeContext");var Eo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Oo(e){const{children:t,theme:r}=e,o=Mo();"production"!==process.env.NODE_ENV&&null===o&&"function"==typeof r&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const n=j.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t){const r=t(e);return"production"!==process.env.NODE_ENV&&(r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),r}return $t({},e,t)}(o,r);return null!=e&&(e[Eo]=null!==o),e}),[r,o]);return L.jsx(So.Provider,{value:n,children:t})}"production"!==process.env.NODE_ENV&&(Oo.propTypes={children:tr.node,theme:tr.oneOfType([tr.object,tr.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Oo.propTypes=jo(Oo.propTypes));const $o=["value"],To=j.createContext();function Io(e){let{value:t}=e,r=Tt(e,$o);return L.jsx(To.Provider,$t({value:null==t||t},r))}"production"!==process.env.NODE_ENV&&(Io.propTypes={children:tr.node,value:tr.bool});const Ro=j.createContext(void 0);function Bo({value:e,children:t}){return L.jsx(Ro.Provider,{value:e,children:t})}"production"!==process.env.NODE_ENV&&(Bo.propTypes={children:tr.node,value:tr.object});const Lo={};function Ao(e,t,r,o=!1){return j.useMemo((()=>{const n=e&&t[e]||t;if("function"==typeof r){const i=r(n),a=e?$t({},t,{[e]:i}):i;return o?()=>a:a}return $t({},t,e?{[e]:r}:r)}),[e,t,r,o])}function Fo(e){const{children:t,theme:r,themeId:o}=e,i=co(Lo),a=Mo()||Lo;"production"!==process.env.NODE_ENV&&(null===i&&"function"==typeof r||o&&i&&!i[o]&&"function"==typeof r)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const s=Ao(o,i,r),l=Ao(o,a,r,!0),c="rtl"===s.direction;return L.jsx(Oo,{theme:l,children:L.jsx(n.ThemeContext.Provider,{value:s,children:L.jsx(Io,{value:c,children:L.jsx(Bo,{value:null==s?void 0:s.components,children:t})})})})}function Po(e,t){return $t({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}"production"!==process.env.NODE_ENV&&(Fo.propTypes={children:tr.node,theme:tr.oneOfType([tr.func,tr.object]).isRequired,themeId:tr.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Fo.propTypes=jo(Fo.propTypes));var _o,No={},Do={exports:{}};(_o=Do).exports=function(e){return e&&e.__esModule?e:{default:e}},_o.exports.__esModule=!0,_o.exports.default=_o.exports;var Vo=Do.exports,zo=O(Et),Wo=O(wo),Ho=Vo;Object.defineProperty(No,"__esModule",{value:!0}),No.alpha=on,No.blend=function(e,t,r,o=1){const n=(e,t)=>Math.round((e**(1/o)*(1-r)+t**(1/o)*r)**o),i=Jo(e),a=Jo(t),s=[n(i.values[0],a.values[0]),n(i.values[1],a.values[1]),n(i.values[2],a.values[2])];return en({type:"rgb",values:s})},No.colorChannel=void 0;var Zo=No.darken=nn;No.decomposeColor=Jo,No.emphasize=sn;var Ko=No.getContrastRatio=function(e,t){const r=rn(e),o=rn(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)};No.getLuminance=rn,No.hexToRgb=Xo,No.hslToRgb=tn;var Go=No.lighten=an;No.private_safeAlpha=function(e,t,r){try{return on(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},No.private_safeColorChannel=void 0,No.private_safeDarken=function(e,t,r){try{return nn(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},No.private_safeEmphasize=function(e,t,r){try{return sn(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},No.private_safeLighten=function(e,t,r){try{return an(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},No.recomposeColor=en,No.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Jo(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Uo=Ho(zo),qo=Ho(Wo);function Yo(e,t=0,r=1){return"production"!==process.env.NODE_ENV&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,qo.default)(e,t,r)}function Xo(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Jo(e){if(e.type)return e;if("#"===e.charAt(0))return Jo(Xo(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Uo.default)(9,e));let o,n=e.substring(t+1,e.length-1);if("color"===r){if(n=n.split(" "),o=n.shift(),4===n.length&&"/"===n[3].charAt(0)&&(n[3]=n[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Uo.default)(10,o))}else n=n.split(",");return n=n.map((e=>parseFloat(e))),{type:r,values:n,colorSpace:o}}const Qo=e=>{const t=Jo(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};No.colorChannel=Qo;function en(e){const{type:t,colorSpace:r}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${r} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function tn(e){e=Jo(e);const{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,i=o*Math.min(n,1-n),a=(e,t=(e+r/30)%12)=>n-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),en({type:s,values:l})}function rn(e){let t="hsl"===(e=Jo(e)).type||"hsla"===e.type?Jo(tn(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function on(e,t){return e=Jo(e),t=Yo(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,en(e)}function nn(e,t){if(e=Jo(e),t=Yo(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return en(e)}function an(e,t){if(e=Jo(e),t=Yo(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return en(e)}function sn(e,t=.15){return rn(e)>.5?nn(e,t):an(e,t)}No.private_safeColorChannel=(e,t)=>{try{return Qo(e)}catch(r){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};const ln={black:"#000",white:"#fff"},cn={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},un="#f3e5f5",dn="#ce93d8",pn="#ba68c8",mn="#ab47bc",fn="#9c27b0",hn="#7b1fa2",gn="#e57373",xn="#ef5350",bn="#f44336",yn="#d32f2f",vn="#c62828",Cn="#ffb74d",wn="#ffa726",kn="#ff9800",jn="#f57c00",Sn="#e65100",Mn="#e3f2fd",En="#90caf9",On="#42a5f5",$n="#1976d2",Tn="#1565c0",In="#4fc3f7",Rn="#29b6f6",Bn="#03a9f4",Ln="#0288d1",An="#01579b",Fn="#81c784",Pn="#66bb6a",_n="#4caf50",Nn="#388e3c",Dn="#2e7d32",Vn="#1b5e20",zn=["mode","contrastThreshold","tonalOffset"],Wn={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ln.white,default:ln.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Hn={text:{primary:ln.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ln.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Zn(e,t,r,o){const n=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Go(e.main,n):"dark"===t&&(e.dark=Zo(e.main,i)))}function Kn(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:o=.2}=e,n=Tt(e,zn),i=e.primary||function(e="light"){return"dark"===e?{main:En,light:Mn,dark:On}:{main:$n,light:On,dark:Tn}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:dn,light:un,dark:mn}:{main:fn,light:pn,dark:hn}}(t),s=e.error||function(e="light"){return"dark"===e?{main:bn,light:gn,dark:yn}:{main:yn,light:xn,dark:vn}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Rn,light:In,dark:Ln}:{main:Ln,light:Bn,dark:An}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Pn,light:Fn,dark:Nn}:{main:Dn,light:_n,dark:Vn}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:wn,light:Cn,dark:jn}:{main:"#ed6c02",light:kn,dark:Sn}}(t);function d(e){const t=Ko(e,Hn.text.primary)>=r?Hn.text.primary:Wn.text.primary;if("production"!==process.env.NODE_ENV){const r=Ko(e,t);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const p=({color:e,name:t,mainShade:r=500,lightShade:n=300,darkShade:i=700})=>{if(!(e=$t({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:Mt(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:Mt(12,t?` (${t})`:"",JSON.stringify(e.main)));return Zn(e,"light",n,o),Zn(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},m={dark:Hn,light:Wn};"production"!==process.env.NODE_ENV&&(m[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return nr($t({common:$t({},ln),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:cn,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:o},m[t]),n)}const Gn=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Un={textTransform:"uppercase"},qn='"Roboto", "Helvetica", "Arial", sans-serif';function Yn(e,t){const r="function"==typeof t?t(e):t,{fontFamily:o=qn,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,p=Tt(r,Gn);"production"!==process.env.NODE_ENV&&("number"!=typeof n&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=n/14,f=d||(e=>e/c*m+"rem"),h=(e,t,r,n,i)=>{return $t({fontFamily:o,fontWeight:e,fontSize:f(t),lineHeight:r},o===qn?{letterSpacing:(a=n/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Un),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Un),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nr($t({htmlFontSize:c,pxToRem:f,fontFamily:o,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Xn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Jn=["none",Xn(0,2,1,-1,0,1,1,0,0,1,3,0),Xn(0,3,1,-2,0,2,2,0,0,1,5,0),Xn(0,3,3,-2,0,3,4,0,0,1,8,0),Xn(0,2,4,-1,0,4,5,0,0,1,10,0),Xn(0,3,5,-1,0,5,8,0,0,1,14,0),Xn(0,3,5,-1,0,6,10,0,0,1,18,0),Xn(0,4,5,-2,0,7,10,1,0,2,16,1),Xn(0,5,5,-3,0,8,10,1,0,3,14,2),Xn(0,5,6,-3,0,9,12,1,0,3,16,2),Xn(0,6,6,-3,0,10,14,1,0,4,18,3),Xn(0,6,7,-4,0,11,15,1,0,4,20,3),Xn(0,7,8,-4,0,12,17,2,0,5,22,4),Xn(0,7,8,-4,0,13,19,2,0,5,24,4),Xn(0,7,9,-4,0,14,21,2,0,5,26,4),Xn(0,8,9,-5,0,15,22,2,0,6,28,5),Xn(0,8,10,-5,0,16,24,2,0,6,30,5),Xn(0,8,11,-5,0,17,26,2,0,6,32,5),Xn(0,9,11,-5,0,18,28,2,0,7,34,6),Xn(0,9,12,-6,0,19,29,2,0,7,36,6),Xn(0,10,13,-6,0,20,31,3,0,8,38,7),Xn(0,10,13,-6,0,21,33,3,0,8,40,7),Xn(0,10,14,-6,0,22,35,3,0,8,42,7),Xn(0,11,14,-7,0,23,36,3,0,9,44,8),Xn(0,11,15,-7,0,24,38,3,0,9,46,8)],Qn=["duration","easing","delay"],ei={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ti={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ri(e){return`${Math.round(e)}ms`}function oi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ni(e){const t=$t({},ei,e.easing),r=$t({},ti,e.duration);return $t({getAutoHeightDuration:oi,create:(e=["all"],o={})=>{const{duration:n=r.standard,easing:i=t.easeInOut,delay:a=0}=o,s=Tt(o,Qn);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(n)||t(n)||console.error(`MUI: Argument "duration" must be a number or a string but found ${n}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),r(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof o&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof n?n:ri(n)} ${i} ${"string"==typeof a?a:ri(a)}`)).join(",")}},e,{easing:t,duration:r})}const ii={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ai=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const si=function(e={},...t){const{mixins:r={},palette:o={},transitions:n={},typography:i={}}=e,a=Tt(e,ai);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Mt(18));const s=Kn(o),l=lo(e);let c=nr(l,{mixins:Po(l.breakpoints,r),palette:s,shadows:Jn.slice(),typography:Yn(s,i),transitions:ni(n),zIndex:$t({},ii)});if(c=nr(c,a),c=t.reduce(((e,t)=>nr(e,t)),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let o;for(o in t){const n=t[o];if(-1!==e.indexOf(o)&&Object.keys(n).length>0){if("production"!==process.env.NODE_ENV){const e=ho("",o);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:n}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(c.components).forEach((e=>{const r=c.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&t(r,e)}))}return c.unstable_sxConfig=$t({},no,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return io({sx:e,theme:this})},c}();function li(){const e=function(e=uo){return co(e)}(si);return"production"!==process.env.NODE_ENV&&j.useDebugValue(e),e[Ot]||e}const ci=["theme"];function ui(e){let{theme:t}=e,r=Tt(e,ci);const o=t[Ot];return L.jsx(Fo,$t({},r,{themeId:o?Ot:void 0,theme:o||t}))}"production"!==process.env.NODE_ENV&&(ui.propTypes={children:tr.node,theme:tr.oneOfType([tr.object,tr.func]).isRequired});const di=()=>{const e=li();return[...e.breakpoints.keys].reduce(((t,r)=>{const o=function(e,t={}){const r=co(),o="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:n=!1,matchMedia:i=(o?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=xo({name:"MuiUseMediaQuery",props:t,theme:r});"production"!==process.env.NODE_ENV&&"function"==typeof e&&null===r&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n"));let l="function"==typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");const c=(void 0!==vo?Co:yo)(l,n,i,a,s);return"production"!==process.env.NODE_ENV&&j.useDebugValue({query:l,match:c}),c}(e.breakpoints.up(r));return o?r:t}),null)??"sm"},pi=({children:e,...t})=>e,mi=e=>({backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.icon.primary}),fi=e=>({backgroundColor:e.custom.palette.purple[100],color:e.custom.palette.icon.primary,"& .MuiButtonBase-root":{":hover":{background:e.custom.palette.interaction.hoverOnDark},":active":{background:e.custom.palette.interaction.pressOnDark}}}),hi=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,color:e.custom.palette.icon.primary,"&.MuiIconButton-root:disabled":{border:"none"}}),gi=e=>({backgroundColor:e.custom.palette.surface.raised,boxShadow:e.custom.elevation.raised,color:e.custom.palette.icon.primary,"&:focus-visible:after":{boxShadow:e.custom.boxShadow.input.focus},"&.MuiIconButton-root:disabled":{boxShadow:"none"}}),xi=(e,t)=>({borderRadius:"default"===e?t.spacing(t.custom.radius.md):t.custom.radius.round}),bi={xs:3*H,sm:3.5*H,md:4*H,lg:5*H,xl:6*H},yi=e=>({height:bi[e],width:bi[e]}),vi={xs:2*H,sm:2*H,md:2*H,lg:2.5*H,xl:3*H},Ci=e=>({height:vi[e],width:vi[e]}),wi=t.styled(t.IconButton)((({theme:e,variation:t,shape:r="default",sizing:o})=>({boxSizing:"border-box",transition:"all 200ms ease",...r&&{...xi(r,e)},...o&&{...yi(o)},"&.MuiIconButton-root":{..."default"===t&&{...mi(e)},..."toggle"===t&&{...fi(e)},..."outlined"===t&&{...hi(e)},..."raised"===t&&{...gi(e)},...r&&{...xi(r,e)},"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:focus":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.icon.disabled}},"& .MuiSvgIcon-root":{...o&&{...Ci(o)},position:"relative",zIndex:1}}))),ki=({icon:e,loading:t,sizing:r,...o})=>L.jsx(wi,{...o,sizing:r,children:t?L.jsx(et,{sizing:r}):e}),ji=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderBottomLeftRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderTopLeftRadius:0}}),Si=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopLeftRadius:0,borderBottomLeftRadius:0}}),Mi=t.styled(t.ButtonGroup)((({theme:e,variation:t,orientation:r="horizontal",iconColor:o,sizing:n="lg",groupRaised:i=!1})=>({"&.MuiButtonGroup-root":{border:`1px solid ${e.custom.palette.stroke.default}`,...i&&{boxShadow:e.custom.elevation.raised,border:"none"},"& > button":{borderRadius:0,..."default"===t&&{...mi(e)},..."toggle"===t&&{...fi(e)},..."vertical"===r&&{...ji(e)},..."horizontal"===r&&{...Si(e)},...n&&{...yi(n)}},"& .MuiSvgIcon-root":{...n&&{...Ci(n)},fill:o||"inherit"}}}))),Ei=({sx:e,...t})=>L.jsx(ht,{...t,sx:o.mergeSx({fontSize:{xs:Ve.sm.body.md,sm:Ve.sm.body.md,md:Ve.sm.body.md,lg:Ve.lg.body.md,xl:Ve.lg.body.md}},!!e&&{...e})}),Oi=t.styled(t.Box)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"&:before":{width:N,borderRadius:e.custom.radius.round,right:"50%",transform:`translateX(-${N}px)`,left:"auto"}}},"&:last-child":{"& .MuiBox-root":{"&:after":{width:N,borderRadius:e.custom.radius.round,right:"auto",left:"50%",transform:`translateX(${N}px)`}}}}}))),$i=({children:e,width:t})=>L.jsx(Oi,{sx:{width:t},children:e}),Ti=t.styled(gt)((()=>({lineHeight:"110%",textAlign:"center",width:"100%"}))),Ii=({disabled:e,children:t})=>L.jsx(Ti,{showicon:!1,disabled:e,sx:{cursor:"inherit"},children:t}),Ri=t.styled(vt)((()=>({marginRight:0}))),Bi=t.styled(t.Box)((({theme:e})=>({posiion:"relative","&:before":{content:'""',position:"absolute",top:"50%",left:0,height:P,width:`calc(50% - ${V/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default},"&:after":{content:'""',position:"absolute",top:"50%",right:0,height:P,width:`calc(50% - ${V/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),Li=e=>L.jsx(Bi,{sx:{textAlign:"center",position:"relative"},children:L.jsx(Ri,{...e})}),Ai=({options:e=[],disabled:r=!1,sizing:o="lg",onChange:n,internalChange:i,value:a})=>{const s=t.useTheme();function l(e){console.warn(e),n(e.value),i&&i()}return L.jsx(t.Box,{children:L.jsx($i,{children:L.jsx(t.Grid,{container:!0,justifyContent:"space-between",children:e.map((e=>L.jsxs(t.Grid,{item:!0,sm:!0,onClick:()=>l(e),sx:{cursor:"pointer",textAlign:"center","&:hover":{"& .MuiButtonBase-root.MuiRadio-root":{"&:before":{backgroundColor:s.custom.palette.interaction.hover}}},"&:active":{"& .MuiButtonBase-root.MuiRadio-root":{backgroundColor:s.custom.palette.input.default,borderColor:s.custom.palette.stroke.focus,boxShadow:s.custom.boxShadow.input.focus,"&:before":{backgroundColor:s.custom.palette.interaction.press},"&.Mui-checked":{backgroundColor:s.custom.palette.purple[500]}}}},children:[L.jsx(Li,{sizing:o,disabled:r,onChange:t=>l(e),checked:a===e.value},e.value),L.jsx(t.Box,{sx:{mt:Z.xs,width:"100%"},children:L.jsx(Ii,{disabled:r,children:e.label})})]},e.value)))})})})},Fi=t.styled(t.Link)((({theme:e,disabled:t})=>({"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,borderRadius:e.spacing(e.custom.radius.sm),outline:"none"},"&.MuiLink-root":{transition:"all 200ms ease",display:"inline",cursor:"pointer",color:t?e.custom.palette.text.lockedWhite:e.custom.palette.text.textLink,textDecorationColor:e.custom.palette.text.textLink,pointerEvents:t?"none":"auto","&:hover":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover},"&:active":{color:e.custom.palette.text.textLinkHover,textDecorationColor:e.custom.palette.text.textLinkHover},"&:visited":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink}}}))),Pi=e=>e.target&&"_blank"===e.target?L.jsx(Fi,{rel:"noopener",...e}):L.jsx(Fi,{...e}),_i=e.forwardRef(((e,t)=>{const{decimalSeparator:r,thousandSeparator:o,value:n,...a}=e,s=j.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"group"===e.type))?.value??"";var e}),[void 0]),l=j.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"decimal"===e.type))?.value??".";var e}),[void 0]);return L.jsx(i.NumericFormat,{...a,value:n??"",getInputRef:t,thousandSeparator:o??s,decimalSeparator:r??l})})),Ni=(o,n)=>{const{disabled:i=!1,InputProps:a,inputProps:s,placeholder:l,hideActionButtons:c=!1,max:u=1/0,min:d=-1/0,numericFormatProps:p,onChange:m,step:f=1,value:h,...g}=o,x=t.useTheme(),[b,y]=e.useState(h),v=b,C=e=>{y(e),m?.(e)},w=()=>{const e=(null==v||Number.isNaN(v)?0:v)+f;e>u||C(e)},k=()=>{const e=(null==v||Number.isNaN(v)?0:v)-f;e<d||C(e)},j={decimalScale:5,isAllowed:({floatValue:e})=>null==e||e>=d&&e<=u,max:u!==1/0?u:void 0,min:d!==-1/0?d:void 0,step:1!==f?f:void 0,onKeyDown:e=>{"ArrowUp"===e.key?w():"ArrowDown"===e.key&&k()},onValueChange:({floatValue:e})=>{e!==v&&C(e)},value:v,...p};return L.jsx(lt,{placeholder:l,sx:{height:z},...g,ref:n,value:v??"",disabled:i,InputProps:{...a,inputComponent:_i,endAdornment:!c&&L.jsxs(t.Stack,{sx:{position:"absolute",top:0,right:0,height:"100%",ml:"auto",width:32,borderLeft:`1px solid ${x.custom.palette.stroke.default}`},children:[L.jsx(t.ButtonBase,{onClick:()=>w(),sx:{flex:1,borderTopRightRadius:x.spacing(x.custom.radius.md),fontSize:12,"&:hover":{background:x.custom.palette.interaction.hover}},children:L.jsx(r.ArrowDropUp,{fontSize:"inherit"})}),L.jsx(t.Divider,{}),L.jsx(t.ButtonBase,{onClick:()=>k(),sx:{flex:1,borderBottomRightRadius:x.spacing(x.custom.radius.md),fontSize:12,"&:hover":{background:x.custom.palette.interaction.hover}},children:L.jsx(r.ArrowDropDown,{fontSize:"inherit"})})]})},inputProps:{...s,...j}})};const Di=(e,t)=>"light"===t?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"},Vi=(e,t,r)=>{switch(t){case"peach":return{background:e.custom.palette.peach[100],color:"heavy"===r?e.custom.palette.peach[1e3]:e.custom.palette.peach[800]};case"peachDark":return{background:e.custom.palette.peach[800],color:e.custom.palette.peach[0]};case"purple":return{background:e.custom.palette.purple[100],color:"heavy"===r?e.custom.palette.purple[1e3]:e.custom.palette.purple[800]};default:return{background:e.custom.palette.neutral[100],color:"heavy"===r?e.custom.palette.neutral[1e3]:e.custom.palette.neutral[800]}}},zi=t.styled(t.Chip)((({theme:e,variation:t,weight:r})=>({borderRadius:e.spacing(e.custom.radius.md),height:28,...Vi(e,t,r),"& .MuiChip-label":{fontSize:`${Ve.sm.body.sm}`,padding:`0 ${e.spacing(e.custom.padding.sm)}`,...Di(0,r)},"& .MuiChip-icon":{width:"0.8em",height:"0.8em",marginRight:-4,...Vi(e,t,r),...Di(0,r)}})));var Wi=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Hi="undefined"!=typeof document,Zi=function(e,t,r){for(var o=0,n=0;o=n,n=a.peek(),38===o&&12===n&&(t[r]=1),!a.token(n);)a.next();return a.slice(e,a.position)},Ki=function(e,t){return a.dealloc(function(e,t){var r=-1,o=44;do{switch(a.token(o)){case 0:38===o&&12===a.peek()&&(t[r]=1),e[r]+=Zi(a.position-1,t,r);break;case 2:e[r]+=a.delimit(o);break;case 4:if(44===o){e[++r]=58===a.peek()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=a.from(o)}}while(o=a.next());return e}(a.alloc(e),t))},Gi=new WeakMap,Ui=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,o=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Gi.get(r))&&!o){Gi.set(e,!0);for(var n=[],i=Ki(t,n),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},qi=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Yi(e,t){switch(a.hash(e,t)){case 5103:return a.WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a.WEBKIT+e+a.MOZ+e+a.MS+e+e;case 6828:case 4268:return a.WEBKIT+e+a.MS+e+e;case 6165:return a.WEBKIT+e+a.MS+"flex-"+e+e;case 5187:return a.WEBKIT+e+a.replace(e,/(\w+).+(:[^]+)/,a.WEBKIT+"box-$1$2"+a.MS+"flex-$1$2")+e;case 5443:return a.WEBKIT+e+a.MS+"flex-item-"+a.replace(e,/flex-|-self/,"")+e;case 4675:return a.WEBKIT+e+a.MS+"flex-line-pack"+a.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return a.WEBKIT+e+a.MS+a.replace(e,"shrink","negative")+e;case 5292:return a.WEBKIT+e+a.MS+a.replace(e,"basis","preferred-size")+e;case 6060:return a.WEBKIT+"box-"+a.replace(e,"-grow","")+a.WEBKIT+e+a.MS+a.replace(e,"grow","positive")+e;case 4554:return a.WEBKIT+a.replace(e,/([^-])(transform)/g,"$1"+a.WEBKIT+"$2")+e;case 6187:return a.replace(a.replace(a.replace(e,/(zoom-|grab)/,a.WEBKIT+"$1"),/(image-set)/,a.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return a.replace(e,/(image-set\([^]*)/,a.WEBKIT+"$1$`$1");case 4968:return a.replace(a.replace(e,/(.+:)(flex-)?(.*)/,a.WEBKIT+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return a.replace(e,/(.+)-inline(.+)/,a.WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(a.strlen(e)-1-t>6)switch(a.charat(e,t+1)){case 109:if(45!==a.charat(e,t+4))break;case 102:return a.replace(e,/(.+:)(.+)-([^]+)/,"$1"+a.WEBKIT+"$2-$3$1"+a.MOZ+(108==a.charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~a.indexof(e,"stretch")?Yi(a.replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==a.charat(e,t+1))break;case 6444:switch(a.charat(e,a.strlen(e)-3-(~a.indexof(e,"!important")&&10))){case 107:return a.replace(e,":",":"+a.WEBKIT)+e;case 101:return a.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.WEBKIT+(45===a.charat(e,14)?"inline-":"")+"box$3$1"+a.WEBKIT+"$2$3$1"+a.MS+"$2box$3")+e}break;case 5936:switch(a.charat(e,t+11)){case 114:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a.WEBKIT+e+a.MS+e+e}return e}var Xi,Ji,Qi=Hi?void 0:(Xi=function(){return e=function(){return{}},t=Object.create(null),function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]};var e,t},Ji=new WeakMap,function(e){if(Ji.has(e))return Ji.get(e);var t=Xi(e);return Ji.set(e,t),t}),ea=[function(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case a.DECLARATION:e.return=Yi(e.value,e.length);break;case a.KEYFRAMES:return a.serialize([a.copy(e,{value:a.replace(e.value,"@","@"+a.WEBKIT)})],o);case a.RULESET:if(e.length)return a.combine(e.props,(function(t){switch(a.match(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return a.serialize([a.copy(e,{props:[a.replace(t,/:(read-\w+)/,":"+a.MOZ+"$1")]})],o);case"::placeholder":return a.serialize([a.copy(e,{props:[a.replace(t,/:(plac\w+)/,":"+a.WEBKIT+"input-$1")]}),a.copy(e,{props:[a.replace(t,/:(plac\w+)/,":"+a.MOZ+"$1")]}),a.copy(e,{props:[a.replace(t,/:(plac\w+)/,a.MS+"input-$1")]})],o)}return""}))}}],ta=function(e){var t=e.key;if(Hi&&"css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,n,i=e.stylisPlugins||ea,s={},l=[];Hi&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;l.push(e)})));var c=[Ui,qi];if(Qi){var u=[a.stringify],d=a.middleware(c.concat(i,u)),p=Qi(i)(t),m=function(e,t){var r,o=t.name;return void 0===p[o]&&(p[o]=(r=e?e+"{"+t.styles+"}":t.styles,a.serialize(a.compile(r),d))),p[o]};n=function(e,t,r,o){var n=t.name,i=m(e,t);return void 0===x.compat?(o&&(x.inserted[n]=!0),i):o?void(x.inserted[n]=i):i}}else{var f,h=[a.stringify,a.rulesheet((function(e){f.insert(e)}))],g=a.middleware(c.concat(i,h));n=function(e,t,r,o){var n;f=r,n=e?e+"{"+t.styles+"}":t.styles,a.serialize(a.compile(n),g),o&&(x.inserted[t.name]=!0)}}var x={key:t,sheet:new Wi({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:n};return x.sheet.hydrate(l),x};const ra=t.styled("iframe")((()=>({border:"none",height:"100%",width:"100%"}))),oa=({options:r,onChange:o,other:n,value:i,internalChange:a,...s})=>{const l=n?.enabled,c="other-option",u=`${c}-value-`,[d,p]=e.useState(i),[m,f]=e.useState(!1);e.useEffect((()=>{!m&&d?.includes(u)?f(!0):m&&f(!1)}),[d]);return L.jsxs(L.Fragment,{children:[L.jsxs(t.RadioGroup,{...s,value:d,sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiRadio-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},onChange:(e,t)=>{o&&o(t),p(t),a&&a()},children:[r?r.map(((e,t)=>L.jsx(nt,{sx:{"& .MuiButtonBase-root.MuiRadio-root":{alignSelf:"baseline"}},...e,control:L.jsx(vt,{})},t))):null,l&&L.jsx(nt,{label:n?.label||"Other",value:u,control:L.jsx(vt,{checked:d?.includes(u)})},c)]}),m&&L.jsx(t.Box,{sx:{mt:1},children:L.jsx(ct,{fullWidth:!0,autoFocus:!0,placeholder:n?.placeholder,defaultValue:d?.replace(u,""),onChange:e=>{var t;o&&o((t=e.target.value,`${u}${t}`)),a&&a()},required:!0})})]})},na=({handleSelectAll:r,isIndeterminate:o,isAllSelected:n,sizing:i})=>{const[a,s]=e.useState(!1),l=t.useTheme();return e.useEffect((()=>{n&&s(n)}),[n]),L.jsxs(t.Stack,{direction:"row",gap:l.spacing(l.custom.padding.sm),onClick:e=>{const t=!a;s(t),r(e,t)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[L.jsx(t.FormLabel,{sx:{cursor:"pointer",fontSize:()=>i&&We[i]},children:"Select all"}),L.jsx(at,{sizing:"default",indeterminate:o,checked:a})]})},ia=e.forwardRef((({children:e,handleSelectAll:t,showSelectAll:r,value:o=[],selections:n,sizing:i,...a},s)=>{const l=Array.isArray(o)&&o.length===n.length,c=Array.isArray(o)&&o.length>0&&o.length<n.length;return L.jsxs("ul",{ref:s,...a,children:[r&&L.jsx(na,{handleSelectAll:t,isIndeterminate:c,isAllSelected:l,sizing:i}),e]})})),aa="0px 4px 8px 0px #06040D14, 0px 16px 24px 0px #06040D14, 0px 0px 4px 2px #06040D0A, 0px 0px 0px 1px #FFFFFF29",sa=e=>{switch(e){case"xs":return 24;case"md":return 32;default:return 40}},la=(e,t)=>({"& .MuiTypography-root":{height:sa(t),fontSize:We[t],display:"flex",alignItems:"center",paddingLeft:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm),paddingRight:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm)}}),ca=e=>({fontSize:`${Ve.sm.body.md}`,borderRadius:e.spacing(e.custom.radius.md),position:"relative",padding:e.spacing(e.custom.padding.sm),"& .MuiSelect-outlined":{padding:0},"& .MuiSelect-select.MuiInputBase-input":{paddingRight:e.spacing(K.md)},"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",background:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.md),inset:0,zIndex:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-focused:before":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled:before":{backgroundColor:e.custom.palette.interaction.none},"& .MuiSelect-select":{position:"relative"}}),ua=(e,t)=>{switch(t){case"lg":return{height:sa(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:J.lg,height:J.lg,top:`calc(50% - ${J.lg/2}px)`}};case"md":return{height:sa(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:J.md,height:J.md,top:`calc(50% - ${J.md/2}px)`}};case"xs":return{height:sa(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:J.xs,height:J.xs,top:`calc(50% - ${J.xs/2}px)`}};default:return{height:sa("lg"),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:J.lg,height:J.lg,top:`calc(50% - ${J.lg/2}px)`}}}},da=e=>({position:"relative",fontSize:`${Ve.sm.body.md}`,backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.text.primary,"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root":{position:"relative",zIndex:2,width:"100%","& .MuiSvgIcon-root":{marginRight:e.spacing(e.custom.margin.sm),width:J.xl,height:J.xl},"& .MuiBox-root":{padding:e.spacing(e.custom.padding.sm),lineHeight:"22px"}}}),pa=e=>({"&.MuiModal-root.MuiPopover-root":{"&.MuiMenu-root":{borderRadius:e.spacing(e.custom.radius.sm),"& .MuiPaper-root":{border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:aa}}}}),ma=t.styled(t.Autocomplete)((({theme:e,sizing:t,value:r})=>({maxWidth:"100%",backgroundColor:e.custom.palette.surface.raised,borderRadius:e.spacing(e.custom.radius.md),border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiSvgIcon-root":{...t&&{width:J[t],height:J[t]}},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...t&&{height:"xs"===t?2*H+"px":3*H+"px"},paddingTop:0,paddingBottom:0,paddingLeft:r&&Array.isArray(r)&&r.length>0?0:e.spacing(e.custom.padding.sm),justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-inputRoot":{...t&&{fontSize:We[t],gap:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*H+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:"0"},"& .MuiAutocomplete-tag":{...t&&{height:"xs"===t?2*H+"px":3*H+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"&.Mui-disabled":{backgroundColor:`${e.custom.palette.input.disabled}`,borderColor:`${e.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`}}}))),fa=t.styled(t.Chip)((({theme:e,sizing:t})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.default,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:e.custom.palette.icon.primary,borderRadius:e.custom.radius.round,margin:0,"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,fill:e.custom.palette.icon.disabled}}}))),ha=t.styled(t.TextField)((({theme:e,sizing:t})=>({"& .MuiOutlinedInput-root":{padding:0,...t&&{margin:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}))),ga=t.styled(t.Popper)((({theme:e,sizing:r})=>({"& .MuiPaper-root":{...r&&{margin:"lg"===r?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs),marginLeft:"lg"===r?`-${e.spacing(e.custom.padding.sm)}`:`-${e.spacing(e.custom.padding.xs)}`,marginTop:`calc(${"lg"===r?e.spacing(e.custom.margin.sm):e.spacing(e.custom.margin.xs)} + ${e.spacing(e.custom.margin.xs)})`},border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:aa,borderRadius:e.spacing(e.custom.radius.sm)},[`& .${t.autocompleteClasses.listbox}`]:{overflowX:"hidden",[`& .${t.autocompleteClasses.option}`]:{fontSize:We[r],...r&&{height:"lg"===r?5*H+"px":4*H+"px"},"> span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'&[aria-selected="true"]':{backgroundColor:e.custom.palette.interaction.hover,display:"flex",alignItems:"center",justifyContent:"space-between"}}}}))),xa=e=>L.jsx(ga,{...e}),ba=({selections:t,disableClearable:o=!1,disabled:n,internalChange:i,multiple:a=!0,onChange:s,placeholder:l="",renderListItem:c,sizing:u="lg",value:d=(a?[]:"")})=>{const[p,m]=e.useState(t.filter((e=>d.includes(e?.value)))),f=(e,r)=>{if(s){const o=r?t.map((({value:e})=>e)):[];m(r?t:[]),s(e,o,"selectOption"),i&&i()}},h=e=>null!==e&&(!Array.isArray(e)||e.length>0);return L.jsx(ma,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:L.jsx(r.KeyboardArrowDown,{}),sizing:u,disabled:n,disableClearable:o,autoComplete:!0,multiple:a,renderInput:e=>L.jsx(ha,{...e,placeholder:h(p)?void 0:l,sizing:u}),options:t,renderTags:(e,t)=>e.map(((e,o)=>{const{key:n,...i}=t({index:o});return L.jsx(fa,{sizing:u,deleteIcon:L.jsx(r.CloseRounded,{fontSize:"small"}),label:e.label,...i},n)})),onChange:(e,t,r)=>{const o=Array.isArray(t)?t.map((e=>e.value)):t?.value??null;m(t),s?.(e,o,r),i?.()},PopperComponent:e=>L.jsx(xa,{...e,sizing:u}),isOptionEqualToValue:(e,t)=>e.value===t.value,renderOption:(e,t,{selected:o})=>{const{key:n,...i}=e;return L.jsxs("li",{...i,children:[L.jsx("span",{children:c?c(t.label):t.label}),L.jsx(r.Check,{sx:{visibility:o?"visible":"hidden",fontSize:"16px"}})]},n)},ListboxComponent:e.forwardRef(((e,r)=>L.jsx(ia,{ref:r,...e,showSelectAll:a,handleSelectAll:f,value:p,selections:t,sizing:u}))),value:p})},ya=t.styled(t.MenuItem)((({theme:e})=>({...{...da(e)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.none},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.input.default}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:before":{backgroundColor:e.custom.palette.interaction.hover}}},"&:active":{"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),va=({children:e,selected:o,...n})=>L.jsx(ya,{...n,children:L.jsxs(t.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[L.jsx(t.Box,{children:e}),o&&L.jsx(r.Check,{})]})}),Ca=t.styled(t.Select)((({theme:e,sizing:t})=>({...{...ca(e)},...t&&{...ua(e,t)},...t&&{...la(e,t)},backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiOutlinedInput-notchedOutline":{border:e.custom.palette.stroke.default},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.custom.palette.stroke.default}},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& .MuiSvgIcon-root":{color:e.custom.palette.icon.disabled,transition:e.custom.easing.input}}}))),wa=({selections:e,autoComplete:o=!1,disabled:n=!1,disablePortal:i=!1,inputRef:a,internalChange:s,multi:l=!0,onChange:c,placeholder:u="",selectOptionProps:d,sizing:p="lg",sx:m,value:f=[],renderListItem:h,...g})=>{const x=t.useTheme(),b=di();return o?L.jsx(ba,{selections:e,placeholder:u,disabled:n,sizing:p,onChange:(e,t)=>{c&&c(t||""),s&&s()},value:Array.isArray(f)?f??[]:f??"",internalChange:s,renderListItem:h,multiple:l}):L.jsxs(Ca,{sizing:p,inputRef:a,MenuProps:{disablePortal:i,sx:pa,anchorOrigin:{vertical:45,horizontal:"center"}},displayEmpty:!0,IconComponent:r.KeyboardArrowDown,renderValue:t=>u&&!t?L.jsx(Pe,{component:"p",variation:"sm"===b||"md"===b?"sm":"lg",sx:{color:x.custom.palette.text.placeholder},children:u}):L.jsx(Pe,{component:"p",variation:"sm"===b||"md"===b?"sm":"lg",children:e?.find((({value:e})=>e===t))?.label}),onChange:(e,t)=>{c&&c(e,t),s&&s()},sx:m,value:f,...g,children:[""!==u.trim()&&L.jsx(va,{disabled:!0,value:"","aria-label":"placeholder",children:u},"placeholder"),e?.map((({value:e,label:t})=>L.jsx(va,{value:e,...d,children:h?h(t):t},e)))]})},ka=t.styled(t.Box)((({theme:e,disabled:t,fullWidth:r})=>({width:r?"100%":"auto",minWidth:240,backgroundColor:t?e.custom.palette.input.disabled:e.custom.palette.surface.raised,border:`1px solid ${t?e.custom.palette.stroke.disabled:e.custom.palette.stroke.default}`,borderRadius:e.spacing(e.custom.radius.lg),padding:e.spacing(e.custom.padding.md),position:"relative",zIndex:0,"&:after":{content:'""',backgroundColor:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.lg),position:"absolute",inset:0},"&:hover":{"&:after":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{"&:after":{backgroundColor:e.custom.palette.interaction.press}},"& svg":{fill:e.custom.palette.icon.primary},...t&&{background:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"&:after":{backgroundColor:e.custom.palette.interaction.none},"& .MuiBox-root > .MuiSvgIcon-root":{fill:"none"}}}))),ja=t.styled(Ei)((({theme:e})=>({fontSize:Ve.button.md,color:e.custom.palette.text.primary,lineHeight:"120%",letterSpacing:"0.16px"}))),Sa=({label:e="Placeholder",disabled:o,onChange:n,options:i,fullWidth:a})=>{const s=t.useTheme(),l=i.map((e=>e.label)).indexOf(e);return L.jsx(ka,{disabled:o,fullWidth:a,children:L.jsxs(t.Stack,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",sx:{position:"relative",zIndex:1},children:[L.jsxs(t.Box,{display:"flex",alignItems:"center",sx:{"& svg":{fill:s.custom.palette.icon.secondary}},children:[L.jsx(r.DragHandle,{sx:{width:J.lg,height:J.lg,mr:s.custom.padding.sm}}),L.jsx(ja,{align:"left",disabled:o,children:e})]}),L.jsx(wa,{name:"rank",sizing:"xs",selections:i.map(((e,t)=>({label:`${t+1}`,value:`${t}`}))),disabled:o,value:`${l}`,onChange:function(e){const t=l,r=Number(e.target.value),o=i;let a=1;const s=o.splice(t,a)[0];a=0,o.splice(r,a,s),n(o)},MenuProps:{anchorOrigin:{vertical:V,horizontal:"center"}}})]})})},Ma=e.createContext({attributes:{},listeners:void 0,ref(){}}),Ea=e=>u.defaultAnimateLayoutChanges({...e,wasDragging:!0});function Oa({children:r,top:o,bottom:n,id:i}){const{attributes:a,isDragging:s,listeners:l,setNodeRef:c,setActivatorNodeRef:p,transform:m,transition:f}=u.useSortable({id:i,animateLayoutChanges:Ea}),h=e.useMemo((()=>({attributes:a,listeners:l,ref:p})),[a,l,p]),g={opacity:s?.4:void 0,transform:d.CSS.Translate.toString(m),transition:f};return L.jsx(Ma.Provider,{value:h,children:L.jsxs(t.Stack,{className:"SortableItem",...a,sx:{position:"relative",...g,width:"100%"},ref:c,children:[o&&o,L.jsx(t.Box,{...l,sx:{display:"flex",cursor:"grab"},children:r}),n&&n]})})}const $a={sideEffects:c.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.4"}}})};function Ta({children:e}){return l.createPortal(L.jsx(c.DragOverlay,{zIndex:999999,dropAnimation:$a,children:e}),document.body)}const Ia=({nativeEvent:e})=>{let t=e.target;for(;t;){if(t.dataset.noDnd)return!1;t=t.parentElement}return!0};class Ra extends c.MouseSensor{static activators=[{eventName:"onMouseDown",handler:Ia}]}class Ba extends c.TouchSensor{static activators=[{eventName:"onTouchStart",handler:Ia}]}function La({items:r,onChange:o,renderItem:n,disabled:i,direction:a}){if(!r)return;const[s,l]=e.useState(null),d=e.useMemo((()=>r.find((e=>e?.id===s?.id))),[s,r]),p=t.useTheme(),m=t.useMediaQuery(p.breakpoints.down("md")),f=c.useSensors(c.useSensor(Ra,{activationConstraint:{distance:5}}),c.useSensor(Ba,{activationConstraint:{delay:m?300:0,tolerance:8}}),c.useSensor(c.KeyboardSensor,{coordinateGetter:u.sortableKeyboardCoordinates}));return L.jsxs(c.DndContext,{measuring:{droppable:{strategy:c.MeasuringStrategy.Always}},sensors:f,onDragStart:({active:e})=>{l(e)},onDragEnd:({active:e,over:t})=>{if(t&&e.id!==t?.id){const n=r.findIndex((({id:t})=>t===e.id)),i=r.findIndex((({id:e})=>e===t.id));o(u.arrayMove(r,n,i))}l(null)},onDragCancel:()=>{l(null)},children:[L.jsx(u.SortableContext,{items:r,disabled:i,strategy:"horizontal"===a?u.horizontalListSortingStrategy:u.verticalListSortingStrategy,children:L.jsx(t.Stack,{sx:{..."horizontal"===a&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:r.map((t=>L.jsx(e.Fragment,{children:n(t)},t.id)))})}),L.jsx(Ta,{children:d?n(d,!0,!!s):null})]})}La.Item=Oa,La.DragHandle=function(){const{attributes:r,listeners:o,ref:n}=e.useContext(Ma);return L.jsx(t.Box,{...r,...o,ref:n,children:L.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:L.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};const Aa=({labelTop:r,labelBottom:o,disabled:n,fullWidth:i=!1,options:a,onChange:s,value:l,internalChange:c})=>{const u=t.useTheme(),[d,p]=e.useState(l||a);function m(e){p(e),s(e.map((({id:e})=>e))),c&&c()}return L.jsxs(t.Stack,{gap:u.custom.margin.sm,textAlign:"center",sx:{width:i?"100%":"auto"},children:[r&&L.jsx(Ei,{disabled:n,sx:{color:u.custom.palette.text.secondary},children:r}),L.jsx(La,{onChange:function(e){p(e),s(e.map((({id:e})=>e))),c&&c()},items:d,direction:"vertical",renderItem:({...e})=>L.jsx(Oa,{id:e.id,children:L.jsx(Sa,{onChange:m,...e,options:d,disabled:n,selections:e.selections,fullWidth:i})})}),o&&L.jsx(Ei,{disabled:n,sx:{color:u.custom.palette.text.secondary},children:o})]})},Fa=t.styled(f.RichTextEditor)((({theme:e})=>({"&.MuiTiptap-FieldContainer-root":{backgroundColor:e.custom.palette.input.default,"&:hover":{".MuiTiptap-FieldContainer-notchedOutline":{borderSize:1,backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default}}},"&.MuiTiptap-FieldContainer-focused":{".MuiTiptap-FieldContainer-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}!important`,boxShadow:e.custom.boxShadow.input.focus}},".MuiTiptap-RichTextField-menuBar":{padding:0,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.surface.default,margin:e.spacing(e.custom.margin.sm),border:`1px solid ${e.custom.palette.stroke.default}`,marginBottom:0,".MuiTiptap-RichTextField-content":{padding:e.spacing(e.custom.padding.xs)}}}))),Pa=({onChange:o,value:n,internalChange:i,minWidth:a=100,minHeight:s=100,maxHeight:l,placeholder:c})=>{const u=e.useRef(null),d=t.useTheme();return L.jsx(Fa,{sx:{"& .ProseMirror":{overflowY:"auto",minHeight:s,minWidth:a,maxHeight:l}},ref:u,onUpdate:({editor:e})=>{o&&o(e.storage.markdown.getMarkdown()),i&&i()},extensions:[m.StarterKit.configure({strike:!1,code:!1,heading:!1,listItem:!1,bulletList:!1,orderedList:!1,blockquote:!1,horizontalRule:!1,codeBlock:!1}),p.Placeholder.configure({placeholder:c}),h.Markdown],content:n,renderControls:()=>L.jsxs(t.Stack,{gap:d.custom.margin.xs,direction:"row",children:[L.jsx(f.MenuButtonBold,{component:ki,icon:L.jsx(r.FormatBold,{}),sizing:"md"}),L.jsx(f.MenuButtonItalic,{component:ki,icon:L.jsx(r.FormatItalic,{}),sizing:"md"})]})})},_a=e=>({"& .MuiSlider-thumb":{width:D,height:D,backgroundColor:e.custom.palette.text.primary,boxShadow:e.custom.boxShadow.input.handle,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",width:P,height:P,backgroundColor:e.custom.palette.icon.primaryInverted}}}),Na=e=>Array.isArray(e),Da=(e,t)=>({height:_,padding:`${_}px 0`,"& .MuiSlider-rail":{width:`calc(100% + ${V}px)`,left:`-${N}px`,backgroundColor:e.custom.palette.icon.disabled,opacity:1},"& .MuiSlider-track":{position:"relative",border:"none",backgroundColor:e.custom.palette.purple[500],"&:before":{content:'""',position:"absolute",top:0,left:t&&Na(t)?`-${_+1}px`:`-${N+1}px`,width:`calc(100% + ${N}px)`,height:"100%",borderRadius:"inherit",backgroundColor:"inherit"}},"& .MuiSlider-mark":{height:P,width:P,borderRadius:e.custom.radius.round,backgroundColor:e.custom.palette.text.primaryInverted,"&.MuiSlider-markActive":{backgroundColor:e.custom.palette.text.primaryInverted}}}),Va=e=>({"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm),padding:P,minWidth:V,"&.MuiSlider-valueLabelOpen":{top:"-9px"},"& .MuiSlider-valueLabelLabel":{padding:`0 ${e.spacing(e.custom.padding.xs)}`,fontSize:`${Ve.lg.body.sm}`,color:e.custom.palette.text.lockedWhite,fontWeight:500,lineHeight:"140%"}}}),za=t.styled(t.Slider)((({theme:e,value:t})=>({"&.MuiSlider-root":{width:`calc(100% - ${V}px)`,marginLeft:V/2,...{...Da(e,t)},...{..._a(e)},...{...Va(e)},"&.Mui-disabled":{"& .MuiSlider-rail, & .MuiSlider-track":{backgroundColor:e.custom.palette.icon.secondary},"& .MuiSlider-rail":{backgroundColor:e.custom.palette.icon.disabled},"& .MuiSlider-thumb":{backgroundColor:e.custom.palette.icon.disabled,"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.icon.disabled}}},"& .MuiSlider-markLabel":{color:e.custom.palette.text.secondary,"&.MuiSlider-markLabelActive":{color:e.custom.palette.text.secondary}}}}))),Wa=[1,2,5,10],Ha=(e,t)=>{if(e>=t)return console.warn("Min value must be less than max value"),1;const r=(t-e)/9;if(r<=1)return 1;const o=Math.floor(Math.log10(r)),n=r/Math.pow(10,o);return i=n,(Wa.find((e=>i<=e))??Wa[Wa.length-1])*Math.pow(10,o);var i},Za=({labelLeft:e,labelMiddle:r,labelRight:o,labelRightProps:n,labelLeftProps:i,disabled:a,onChange:s,internalChange:l,max:c,min:u,step:d,...p})=>{const m=d??Ha(u,c),f=((e,t,r)=>{const o=[];for(let n=e;n<=t;n+=r)o.push({value:n,label:n===e||n===t||n+r<=t?n.toString():void 0});return o[o.length-1].value!==t&&o.push({value:t,label:t.toString()}),o})(u,c,m);return L.jsxs(t.Box,{sx:{minWidth:300},children:[L.jsx(t.Box,{height:24,children:L.jsx(za,{valueLabelDisplay:a?"on":"auto",disabled:a,marks:f,step:m,max:c,min:u,onChangeCommitted:()=>{l&&l()},onChange:(e,t,r)=>{s&&s(e,t,r)},...p})}),L.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",pt:K.lg,gap:1},children:[e&&L.jsx(t.Box,{sx:{flex:1},children:L.jsx(gt,{disabled:a,showicon:!1,...i,children:e})}),r&&L.jsx(t.Box,{sx:{flex:1,textAlign:"center"},children:L.jsx(gt,{showicon:!1,disabled:a,children:r})}),o&&L.jsx(t.Box,{sx:{flex:1,textAlign:"right"},children:L.jsx(gt,{...n,showicon:!1,disabled:a,children:o})})]})]})},Ka=t.styled(t.Rating)((({theme:e})=>({"&.MuiRating-root":{"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.secondary},"& .MuiRating-iconFilled":{color:e.custom.palette.yellow[600]},".MuiRating-iconHover":{fontSize:"inherit",transform:"none"},"&.Mui-disabled":{opacity:1,color:e.custom.palette.icon.disabled,"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.disabled},"& .MuiRating-iconFilled":{color:e.custom.palette.icon.disabled}}}}))),Ga=({internalChange:e,onChange:r,...o})=>L.jsx(Ka,{...o,onChange:(t,o)=>{r&&r(t,o),e&&e()},icon:L.jsx(t.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M24.114 35.395L32.414 40.415C33.934 41.335 35.794 39.975 35.394 38.255L33.194 28.815L40.534 22.455C41.874 21.295 41.154 19.095 39.394 18.955L29.734 18.135L25.954 9.21499C25.274 7.59499 22.954 7.59499 22.274 9.21499L18.494 18.115L8.83396 18.935C7.07396 19.075 6.35396 21.275 7.69396 22.435L15.034 28.795L12.834 38.235C12.434 39.955 14.294 41.315 15.814 40.395L24.114 35.395Z"})}),emptyIcon:L.jsx(t.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.1047 20.58L30.8559 27.7274L33.3274 38.3549L23.9992 32.713L14.6668 38.335L17.1388 27.7279L8.89132 20.5816L19.748 19.66L23.9966 9.63416L28.2463 19.6377L39.1047 20.58ZM12.7171 37.8892L14.9171 28.4492L7.57709 22.0892C6.23709 20.9292 6.95709 18.7292 8.71709 18.5892L18.3771 17.7692L22.1571 8.84916C22.8371 7.22916 25.1571 7.22916 25.8371 8.84916L29.6171 17.7492L39.2971 18.5892C41.0571 18.7292 41.7571 20.9292 40.4171 22.0892L33.0771 28.4492L35.2771 37.9092C35.6771 39.6292 33.8171 40.9892 32.2971 40.0692L23.9971 35.0492L15.6971 40.0492C14.1771 40.9692 12.3171 39.6092 12.7171 37.8892Z"})})}),Ua=e=>({boxShadow:e.custom.elevation.raised}),qa=e=>({boxShadow:e.custom.elevation.overlay}),Ya=(e,t)=>{switch(e){case"sunken":return t.custom.palette.surface.sunken;case"raised":return t.custom.palette.surface.raised;case"overlay":return t.custom.palette.surface.overlay;default:return t.custom.palette.surface.default}},Xa=(e,t)=>{switch(t){case"xs":return e.spacing(e.custom.radius.xs);case"sm":return e.spacing(e.custom.radius.sm);case"md":return e.spacing(e.custom.radius.md);case"lg":return e.spacing(e.custom.radius.lg);default:return e.spacing(e.custom.radius.xl)}},Ja=t.styled(t.Paper)((({theme:e,variation:t="default",borderradius:r})=>({boxShadow:"unset",borderRadius:Xa(e,r),background:Ya(t,e),..."overlay"===t&&{...qa(e)},..."raised"===t&&{...Ua(e)}}))),Qa=t.styled((e=>L.jsx(t.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((({theme:e})=>({width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:e.custom.palette.green[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.custom.palette.neutral[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===e.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"none",filter:"drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1))"},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:e.custom.palette.neutral[100],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}))),es=t.styled(lt)((({theme:e})=>({"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,minHeight:z,alignItems:"baseline","& .MuiInputBase-input":{},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart":{alignSelf:"self-end",height:J.xl,marginTop:e.spacing(1),marginBottom:e.spacing(1),"&:first-of-type":{alignSelf:"self-start"}}}}))),ts=({startAdornment:e,endAdornment:r,onChange:o,internalChange:n,inputRef:i,...a})=>L.jsx(es,{multiline:!0,inputRef:i,InputProps:{startAdornment:e?L.jsx(t.InputAdornment,{position:"start",children:e}):null,endAdornment:r?L.jsx(t.InputAdornment,{position:"start",children:r}):null},onChange:e=>{o&&o(e),n&&n()},...a}),rs=({status:e})=>{const r=t.useTheme();switch(e){case"neutral":return null;case"success":return L.jsx(os,{backgroundColor:r.custom.palette.green[500],name:"check-circle"});case"warning":return L.jsx(os,{backgroundColor:r.custom.palette.yellow[500],name:"error-outline"});case"danger":return L.jsx(os,{backgroundColor:r.custom.palette.red[500],name:"warning-amber"});case"discover":return L.jsx(os,{backgroundColor:r.custom.palette.purple[500],name:"lightbulb"})}},os=({backgroundColor:e,name:r})=>{const o=t.useTheme();return L.jsx(t.Box,{sx:{display:"flex",alignItems:"flex-start",pt:.25},children:L.jsx(t.Box,{sx:{backgroundColor:e,borderRadius:o.custom.radius.round,color:o.custom.palette.white,display:"flex",p:.5},children:L.jsx(Q,{name:r,size:20})})})},ns=({children:e,message:r,variation:o="primary"})=>{const n=t.useTheme();if("primary"===o)return L.jsx(t.Tooltip,{componentsProps:{popper:{sx:{"& .MuiTooltip-tooltip":{borderRadius:n.spacing(n.custom.radius.sm)}}}},title:r,arrow:!0,sx:{maxWidth:300},role:"tooltip",children:L.jsx(t.Box,{sx:{cursor:"pointer",display:"flex",alignItems:"center"},children:e})})};const is=(e,t)=>{switch(e){case 1:return t.custom.palette.red[500];case 2:return t.custom.palette.yellow[500];case 3:case 4:return t.custom.palette.green[500];default:return t.custom.palette.icon.disabled}},as=(e,t)=>{switch(e){case 1:return t.custom.palette.text.negative;case 2:return t.custom.palette.yellow[800];case 3:return t.custom.palette.green[800];case 4:return t.custom.palette.text.positive;default:return t.custom.palette.icon.disabled}},ss=t.styled(t.LinearProgress)((({theme:e,score:r})=>({boxShadow:"unset",background:e.custom.palette.neutral[100],borderRadius:e.spacing(e.custom.radius.sm),[`.${t.linearProgressClasses.bar}`]:{borderRadius:e.spacing(e.custom.radius.sm),backgroundColor:is(r,e)}}))),ls={translations:M.translations,graphs:S.adjacencyGraphs,dictionary:{...S.dictionary,...M.dictionary}};b.zxcvbnOptions.setOptions(ls);const cs=({label:r="Strength",width:o=60,value:n,onChange:i})=>{const[a,s]=e.useState(0),l=t.useTheme();return e.useEffect((()=>{s(b.zxcvbn(n).score)}),[n]),e.useEffect((()=>{i(a)}),[a]),L.jsxs(t.Stack,{direction:"row",gap:1,sx:{alignItems:"center"},children:[L.jsx(Pe,{variation:"sm",component:"p",children:r}),L.jsx(ss,{variant:"determinate",value:0===a?6.6:25*a,score:a,sx:{width:o}}),L.jsx(Pe,{variation:"sm",component:"p",sx:{color:as(a,l)},children:["","Very weak","Weak","Strong","Excellent"][a]})]})},us=({helperText:e,inputName:t,errors:r,...o})=>{const n=Boolean(r&&r[t]);return n?L.jsx(C.ErrorMessage,{errors:r,name:t,render:({message:e})=>L.jsx(gt,{showicon:!!e,state:"negative",children:e})}):e&&!n?L.jsx(gt,{state:"default",...o,children:e}):null},ds={textfield:ct,numberfield:Ni,textarea:ts,select:wa,checkbox:st,checkboxGroup:ut,slider:Za,starRating:Ga,differential:jt,likert:Ai,radioGroup:oa,ranking:Aa,richTextfield:Pa},ps=({name:r,fieldType:o,label:n,control:i,errors:a,labelProps:s,helperText:l,helpTextProps:c,validation:u,content:d,styleOverrides:p,defaultValue:m,onChange:f,watch:h,trigger:b,strengthIndicator:y,...v})=>{const{custom:C}=t.useTheme(),w=void 0!==a&&Object.keys(a).length>0,[k,j]=e.useState(0);return y&&e.useEffect((()=>{k>0&&b(r)}),[k]),L.jsxs(t.Stack,{sx:p?.sxInputStack,gap:C.margin.sm,children:[n&&L.jsx(Ei,{...s,children:n}),"html"===o&&d?L.jsx(pi,{children:d}):L.jsxs(L.Fragment,{children:[L.jsx(g.Controller,{name:r,control:i,render:e=>function({field:{ref:e,...t}}){const r=ds[o];return t.value||""===t.value||"false"===t.value?.toString()||0===parseInt(t.value)?L.jsx(r,{...v,...t,inputRef:e}):L.jsx("div",{})}({...e,field:{...e.field,value:e.field.value||m}}),rules:{...u,validate:e=>{if(u&&"phone"in u)return x.isValidPhoneNumber(`+${h("extension")}${e}`)||u.phone.message;if(u&&"score"in u)return k<=u.score.value?u.score.message:void 0;if(u&&"white_space"in u)return!e.match(/^\s*$/g)||u.white_space.message;if(u&&"match"in u)switch(u.match?.comparison){case"not_eq":return e!=h(u.match.field)||u.match.message;case"gt":return e>h(u.match.field)||u.match.message;case"lt":return e<h(u.match.field)||u.match.message;default:return e===h(u.match.field)||u.match.message}}}}),y&&"password"===v?.type&&L.jsx(cs,{value:h(r),onChange:j})]}),L.jsxs(L.Fragment,{children:[Boolean(w)?L.jsx(us,{helperText:void 0,inputName:r,errors:a,showicon:!0}):null,Boolean(l)?L.jsx(us,{helperText:l,inputName:r,errors:void 0,...c}):null]})]})},ms=e=>e.reduce(((e,t)=>({...e,[t?.name]:fs(t,t?.defaultValue)})),{}),fs=(e,t)=>{switch(e.fieldType){case"select":return Array.isArray(t),t;case"starRating":case"numberfield":return t||0;case"slider":{const{min:r}=e;return Array.isArray(t)?t:t||r}case"likert":case"radioGroup":default:return t||"";case"checkboxGroup":return t||[];case"checkbox":return t||!1;case"ranking":{const{options:r}=e;return t?t.map((e=>r.find((({id:t})=>t===e)))):r}}},hs=e.forwardRef((({submitButton:r,secondaryButton:o,onFormSubmit:n,onFormChange:i,formConfig:a},s)=>{const{custom:l}=t.useTheme(),{fields:c,reValidateMode:u,styleOverrides:d,autoComplete:p,formId:m,mode:f}=a,{reset:h,getValues:x,trigger:b,setValue:y,control:v,formState:{isValid:C,errors:w},setFocus:k,handleSubmit:j,watch:S}=g.useForm({mode:f||"onChange",reValidateMode:u,defaultValues:e.useMemo((()=>ms(c)),[]),shouldUnregister:!0});e.useEffect((()=>{(function(e,t){const r=new Set(e),o=new Set(t);return e.every((e=>o.has(e)))&&t.every((e=>r.has(e)))})(c.map((({name:e})=>e)),Object.keys(x()))||c.forEach((e=>{"html"!==e.fieldType&&e.defaultValue&&y(e.name,fs(e,e.defaultValue))}))}),[c]),e.useEffect((()=>{h(ms(c))}),[m]),e.useImperativeHandle(s,(()=>({set(e,t){y(e,t)},resetForm(){h()},focus(e){k(e)},submit(){n&&j(n)()},values:()=>x(),valid:()=>C,errors:()=>w,async triggerFormValidation(){await b()}})));const M=()=>{i&&i(x())};return L.jsxs(t.Box,{component:"form",autoComplete:p,noValidate:!0,sx:d?.sxForm,...n&&{onSubmit:j(n)},children:[L.jsx(t.Stack,{gap:l.margin.md,sx:d?.sxStack,children:c.map((({name:t,...r})=>e.createElement(ps,{...i&&{internalChange:M},name:t,key:t,errors:w,control:v,watch:S,trigger:b,...r,defaultValue:ms(c)[t]})))}),(o||r)&&L.jsxs(t.Stack,{direction:"row",sx:d?.sxButtons||{mt:l.margin.lg,gap:l.margin.sm,justifyContent:"flex-end"},children:[o&&o,r&&r]})]})})),gs=e=>{const t=e.toLowerCase();return["a","e","i","o","u"].some((e=>t.startsWith(e)))?"an":"a"},xs=(e,t,r)=>({maxLength:{value:r||255,message:`Maximum character limit of ${r||255}.`},...t&&{required:e?`Please enter ${gs(e)} ${e}`:"This field is required"}}),bs=xs().maxLength.value;var ys={headings:{"01-starter":{heading:"Starter",pricing:"{{currencySymbol}} {{starterPrice}} / month"},"02-team":{heading:"Team",pricing:"{{currencySymbol}} {{teamPrice}} / month"},"03-plus":{heading:"Plus",pricing:"{{currencySymbol}} {{plusPrice}} / month"},"04-scale":{heading:"Scale",pricing:"{{currencySymbol}} {{scalePrice}} / month"}},rows:{"01-seats":{heading:"Seats",description:"The number of users you can have on your account.",starter:"1",team:"10",plus:"50",scale:"100+"},"02-servicing":{heading:"Client servicing included",description:"Get direct communication with a Loops Customer Success Manager.",starter:"{{dash}}",team:"{{dash}}",plus:"Serviced lite",scale:"💪\nFully serviced"},"03-respondents":{heading:"Price per respondent",description:"The amount you pay to recruit and survey each respondent.",starter:"{{currencySymbol}}{{starterRespondentPrice}}",team:"{{currencySymbol}}{{teamRespondentPrice}}",plus:"{{currencySymbol}}{{plusRespondentPrice}}",scale:"{{currencySymbol}}{{scaleRespondentPrice}}"},"04-questions":{heading:"Question limit",description:"The maximum number of questions you can add to a test.",starter:"10",team:"15",plus:"20",scale:"25"},"05-ai":{heading:"AI-powered insights",description:"Use Loops AI to summarise the findings from your tests.",starter:"Basic",team:"✨\nAdvanced",plus:"✨\nAdvanced",scale:"✨\nAdvanced"},"06-demographics":{heading:"Demographic filters",description:"Reach your target audience using built-in demographic filters.",starter:"Basic",team:"🎯\nAdvanced",plus:"🎯\nAdvanced",scale:"🎯\nAdvanced"},"07-training":{heading:"Training",description:"Our team will onboard you and get you set up.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"08-invite":{heading:"Invite your own respondents",description:"Share your test with your own recruited audience.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"09-email":{heading:"Email capture",description:"Ability to collect respondent email addresses.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"10-beta":{heading:"Beta features",description:"Assess to our latest features as they become available.",starter:"{{dash}}",team:"{{dash}}",plus:"{{tick}}",scale:"{{tick}}"},"11-sso":{heading:"Single sign on (SSO)",description:"Enterprise level authentication using SAML (supports Okta and OneLogin).",starter:"{{dash}}",team:"{{dash}}",plus:"{{dash}}",scale:"{{tick}}"},"12-minimum":{heading:"Minimum term",description:"The minimum subscription period.",starter:"30 days",team:"6 months",plus:"6 months",scale:"12 months"}}};const vs=({text:e})=>{const r=t.useTheme(),o="{{tick}}"===e,n="{{dash}}"===e;return L.jsx(t.Box,{sx:{display:"flex",alignItems:"center",textAlign:"center",width:122},children:L.jsxs(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",p:{sm:.5,md:1},flex:1},children:[o&&L.jsx(Q,{name:"check",size:24}),n&&L.jsx(Q,{name:"dash",size:24}),!o&&!n&&L.jsx(Pe,{variation:"lg",component:"p",sx:{color:r.custom.palette.text.secondary,hyphens:"none",whiteSpace:"pre"},children:L.jsx(L.Fragment,{children:e})})]})})},Cs=()=>{const t="object"==typeof window;function r(){return{width:t?window.innerWidth:void 0,height:t?window.innerHeight:void 0}}const[o,n]=e.useState(r);return e.useEffect((()=>{if(t)return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o);function o(){e.startTransition((()=>{n(r())}))}}),[]),o},ws="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",ks=(e,r,o)=>t.createTheme({direction:o,custom:{palette:{black:"#000000",white:"#ffffff",neutral:ke[e],neutralAlpha:"light"===e?be:ye,purple:Se[e],red:Me[e],peach:Ee[e],yellow:Oe[e],blue:$e[e],green:Te[e],icon:Ie[e].icon,interaction:Ie[e].interaction,stroke:Ie[e].stroke,surface:Ie[e].surface,text:Ie[e].text,input:Ie[e].input},margin:Z,padding:K,radius:G,elevation:U,elevationFilter:q,boxShadow:Y,easing:X,typography:Ve[r]},palette:{mode:e,primary:{main:ve[500]}},spacing:H,shape:{borderRadius:H,hotspot:{default:12,active:24}},breakpoints:{values:A},typography:{fontFamily:`"${Le.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:ze(r),styleOverrides:{root:{color:Ie[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${ke[e][0]};\n\t\t\t\t\t\tmin-width: 320px;\n\t\t\t\t\t}\n\t\t\t\t\ta {\n\t\t\t\t\t\tcolor: inherit;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\t}\n\t\t\t\t\tb {\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t}\n @font-face {\n font-family: '${Be.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Be.default.weight};\n src: url(${ws}${Be.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Be.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Be.bold.weight};\n src: url(${ws}${Be.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Le.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Le.default.weight};\n src: url(${ws}${Le.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Le.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Le.bold.weight};\n src: url(${ws}${Le.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${A.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${A.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiTooltip:{styleOverrides:{arrow:({theme:{custom:e}})=>({color:e.palette.surface.overlay}),tooltip:({theme:{custom:e}})=>({backgroundColor:e.palette.surface.overlay,borderRadius:e.radius.md,color:e.palette.text.primary,backdropFilter:"blur(0)",filter:e.elevationFilter.overlay,fontFamily:Le.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*H}px ${e.padding.md*H}px`})}},MuiAvatarGroup:{styleOverrides:{root:{flexDirection:"row"},avatar:({theme:{custom:e}})=>({border:`1px solid ${e.palette.stroke.default}`,marginLeft:0,marginRight:-8,":last-child":{marginLeft:"auto"}})}}}}),js=e.createContext(null),Ss=()=>L.jsx(t.GlobalStyles,{styles:{"strong, b":{fontWeight:500}}}),Ms=ta({key:"muirtl",stylisPlugins:[a.prefixer,w]}),Es=ta({key:"mui"});exports.AnnualController=({body:e,currency:r,changeCurrencyEvent:o=()=>{},frequency:n,heading:i,setCurrency:a=()=>{},setFrequency:s=()=>{},togglePayAnnuallyEvent:l=()=>{}})=>{const c=t.useTheme(),u=di(),d=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}];return L.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:c.custom.palette.surface.default,borderRadius:c.custom.radius.round,boxShadow:c.custom.elevation.raised,display:"flex",gap:{sm:2,lg:4},mb:2,mt:4,px:{sm:2,lg:4},py:{sm:1,lg:2}},children:[L.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:1},children:[L.jsx(Qa,{defaultChecked:!0,onChange:()=>(l(),void s("monthly"===n?"annual":"monthly")),role:"switch","aria-checked":"monthly"!==n,"aria-label":"Switch between monthly and annual billing",inputProps:{"aria-label":"Input for switch between monthly and annual billing"}}),L.jsxs(t.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[L.jsx(Pe,{variation:"sm"===u||"md"===u?"md":"xxl",component:"p",children:i}),L.jsx(Pe,{variation:"sm",component:"p",sx:{color:c.custom.palette.text.secondary},children:e})]})]}),L.jsx(wa,{name:"currency",onChange:e=>{return t=e.target.value,o(t),void a(t);var t},selections:d,value:d.find((e=>e.value===r))?.value,sx:{minWidth:{sm:64,lg:72},height:{sm:V,lg:z}}})]})},exports.AuthContainerSurface=({children:e,headContent:r,sx:o,...n})=>{const i=t.useTheme();return L.jsxs(Ja,{sx:{mx:[i.spacing(i.custom.margin.md),0],width:1,maxWidth:[512]},...n,children:[r&&L.jsx(t.Box,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:i.spacing(i.custom.margin.md),px:i.spacing(i.custom.margin.md)},children:r}),L.jsx(t.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:r?[i.spacing(i.custom.margin.md)]:[i.spacing(i.custom.padding.lg),i.spacing(i.custom.padding.xl)],px:[i.spacing(i.custom.padding.lg),i.spacing(i.custom.padding.xl)],pb:[i.spacing(i.custom.padding.lg),i.spacing(i.custom.padding.xl)]},children:e})]})},exports.AuthFormHeader=({logo:e,headerText:r,subText:o})=>{const n=t.useTheme();return L.jsxs(t.Stack,{gap:n.spacing(n.custom.margin.md),alignItems:"center",mb:n.spacing(n.custom.margin.lg),children:[!1===e?null:e||L.jsx(Q,{name:"loopsOfficial",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),L.jsxs(t.Stack,{gap:n.spacing(n.custom.margin.md),children:[r&&L.jsx(Pe,{variation:"sm",component:"h1",align:"center",weight:"bold",children:r}),function(){if(o)return"string"==typeof o?L.jsx(Pe,{variation:"md",component:"p",align:"center",children:o}):o}()]})]})},exports.Avatar=({variation:e="lg",children:r,...o})=>{const{custom:n}=t.useTheme();switch(e){case"sm":return L.jsx(t.Avatar,{sx:{border:`1px solid ${n.palette.stroke.default}`,height:32,width:32},...o,children:r});case"lg":return L.jsx(t.Avatar,{sx:{border:`1px solid ${n.palette.stroke.default}`,height:48,width:48},...o,children:r})}},exports.AvatarGroup=({variation:e="primary",...r})=>{if("primary"===e)return L.jsx(t.AvatarGroup,{...r})},exports.Button=ot,exports.CheckBoxGroup=ut,exports.Checkbox=st,exports.ColorBackgroundContainer=({sx:e,children:r,texture:n="noise1",gradient:i="tone1",...a})=>{const s=t.useTheme();return L.jsx(t.Container,{maxWidth:!1,disableGutters:!0,sx:o.mergeSx({background:mt(s,{texture:n,gradient:i}),height:"100%",p:[0,0,0]},!!e&&{...e}),...a,children:r})},exports.DEFAULT_MAX_INPUT_LENGTH=bs,exports.Differential=jt,exports.DropdownMenu=({open:e,anchorEl:r,handleClick:o,handleClose:n,items:i,...a})=>L.jsx(L.Fragment,{children:L.jsx(St,{anchorEl:r,open:e,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...a,children:i?.map(((e,r)=>L.jsxs(t.MenuItem,{onClick:e.onClick,...e.menuItemProps,children:[e.icon&&L.jsx(t.Box,{mr:1,children:e.icon}),e.label]},r)))})}),exports.FormControlLabel=nt,exports.FormGenerator=hs,exports.GridOverlay=({breakpoint:e})=>{const r=t.useTheme(),o=Array.from({length:6},((e,t)=>t));return e||(e=di()),L.jsxs(t.Stack,{sx:{alignItems:"center",height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:({zIndex:e})=>e.tooltip},children:[L.jsx(t.Container,{sx:{background:r.custom.palette.red[300],display:"flex",flex:1,opacity:.3,position:"relative"},children:L.jsx(t.Box,{sx:{background:r.custom.palette.purple[300],display:"flex",flex:1},children:L.jsxs(t.Grid,{container:!0,spacing:2,children:[o.map((e=>L.jsx(t.Grid,{item:!0,sm:!0,sx:{display:{sm:"none",md:"block"}},children:L.jsx(t.Box,{sx:{background:r.custom.palette.green[300],height:"100%"}})},`grid-1-${e}`))),o.map((e=>L.jsx(t.Grid,{item:!0,sm:!0,sx:{display:{sm:"block"}},children:L.jsx(t.Box,{sx:{background:r.custom.palette.green[300],height:"100%"}})},`grid-2-${e}`)))]})})}),!!e&&L.jsx(t.Box,{sx:{backgroundColor:r.custom.palette.surface.default,borderRadius:r.spacing(r.custom.radius.md),bottom:16,filter:r.custom.elevationFilter.raised,display:"block",left:16,position:"fixed",px:2,py:1},children:L.jsx(Pe,{variation:"sm",component:"p",weight:"bold",children:e})})]})},exports.Html=pi,exports.Icon=Q,exports.IconButton=ki,exports.IconButtonGroup=({ButtonGroupProps:e,children:t,...r})=>L.jsx(Mi,{...r,...e,children:t}),exports.InputLabel=Ei,exports.InputLabelHelp=gt,exports.Likert=Ai,exports.Link=Pi,exports.Loader=()=>L.jsx(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100dvh - 80px)"},children:L.jsx("img",{src:"https://useloops-public.s3.eu-west-2.amazonaws.com/public/landing/brand/loading-animation.gif",width:125})}),exports.Logo=e=>L.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:L.jsx("path",{d:"M8.72886 20.0975C7.43461 19.1995 7.16357 18.9302 7.16357 16.9549V0.988281H-0.000106812V1.28748L0.0165316 1.29764C1.3293 2.09875 1.92633 2.46309 1.92633 4.43011V16.9549C1.92633 18.9302 1.65553 19.1995 0.361043 20.0975V20.3965H8.72886V20.0975ZM14.5709 13.437C13.7868 9.01598 14.1045 7.0153 16.0905 6.66718C18.0767 6.31907 19.0631 8.09095 19.8472 12.512C20.6311 16.933 20.3137 18.9335 18.3275 19.2816C16.3415 19.6299 15.3548 17.8578 14.5709 13.437ZM9.11663 14.3934C9.93203 18.9911 14.141 21.3529 18.5575 20.5785C22.9743 19.8041 26.1169 16.1534 25.3015 11.5559C24.4861 6.95793 20.2773 4.5961 15.8605 5.3705C11.444 6.14467 8.30123 9.79541 9.11663 14.3934ZM33.3669 6.66718C31.381 7.0153 31.0633 9.01598 31.8474 13.437C32.6313 17.8578 33.618 19.6299 35.6039 19.2816C37.5901 18.9335 37.9076 16.933 37.1237 12.512C36.3396 8.09095 35.3531 6.31907 33.3669 6.66718ZM35.834 20.5785C31.4175 21.3529 27.2085 18.9911 26.3931 14.3934C25.5777 9.79541 28.7205 6.14467 33.137 5.3705C37.5538 4.5961 41.7625 6.95793 42.5779 11.5559C43.3933 16.1534 40.2508 19.8041 35.834 20.5785ZM52.9075 18.9002C51.0712 18.9002 49.6266 16.8353 49.6266 14.441V12.3162C49.6266 9.6524 50.9209 7.64737 52.9075 7.64737C54.9843 7.64737 56.0078 9.53285 56.0078 12.7351C56.0078 16.955 54.9542 18.9002 52.9075 18.9002ZM51.6733 24.5936C50.1696 23.7488 49.6266 23.4437 49.6266 21.5189V17.9125C50.4091 19.4689 51.9744 20.6958 54.5629 20.6958C58.476 20.6958 61.5762 17.763 61.5762 12.7052C61.5762 7.55754 58.5663 5.25308 55.1047 5.25308C52.2753 5.25308 50.3187 6.83937 49.6266 9.02405L49.5063 5.55228H42.5833V5.85171L42.5873 5.85427C43.8786 6.69033 44.3891 7.02081 44.3891 8.99411V21.5189C44.3891 23.4942 44.1183 23.7637 42.824 24.6613V24.9605H51.7937V24.6613L51.6733 24.5936ZM79.8954 18.9002C79.8954 19.8689 79.1055 20.6543 78.1313 20.6543C77.157 20.6543 76.3671 19.8689 76.3671 18.9002C76.3671 17.9315 77.157 17.1462 78.1313 17.1462C79.1055 17.1462 79.8954 17.9315 79.8954 18.9002ZM70.0692 10.2734C68.0387 9.67975 66.9044 9.34812 66.9044 8.15614C66.9044 7.16849 67.8074 6.71957 68.8309 6.71957C70.7874 6.71957 72.3224 7.827 74.0985 10.4007H74.5196V5.25306H74.2187L72.8642 6.24072C72.8031 6.21577 72.742 6.19075 72.681 6.16573C71.5696 5.71024 70.454 5.25306 68.7707 5.25306C65.55 5.25306 62.9916 7.22837 62.9916 10.1612C62.9916 12.795 64.2557 14.2912 68.8008 15.4585C70.4863 15.8775 71.6601 16.1767 71.6601 17.4636C71.6601 18.6608 70.4863 19.2293 69.0718 19.2293C66.9044 19.2293 65.3093 17.763 63.2021 14.9797H62.7509L63.0819 20.6661H63.413L64.6169 19.4688C65.5801 19.9477 67.0851 20.6958 69.1019 20.6958C72.9546 20.6958 75.6334 18.571 75.6334 15.5783C75.6334 12.4956 73.7672 11.3584 70.095 10.2809L70.0692 10.2734Z"})}),exports.NumberField=Ni,exports.Pill=({body:e,maxWidth:t,...r})=>L.jsx(zi,{label:e,sx:{...t&&{maxWidth:`${t}px`}},...r}),exports.PlanFeatureTable=({currencySymbol:e,data:r,starterPrice:o,starterRespondentPrice:n,teamPrice:i,teamRespondentPrice:a,plusPrice:s,plusRespondentPrice:l,scalePrice:c,scaleRespondentPrice:u,variation:d="default"})=>{const p=t.useTheme();r||(r=ys);const m=Object.values(r.headings).map((({heading:t,pricing:r})=>({heading:t,pricing:r.replace("{{currencySymbol}}",e).replace("{{starterPrice}}",o).replace("{{teamPrice}}",i).replace("{{plusPrice}}",s).replace("{{scalePrice}}",c)}))),f=t=>t.replace("{{currencySymbol}}",e).replace("{{starterRespondentPrice}}",n||"").replace("{{teamRespondentPrice}}",a||"").replace("{{plusRespondentPrice}}",l||"").replace("{{scaleRespondentPrice}}",u||""),h=[...Object.values(r.rows).map(((e,t)=>({key:`pricing-table-features-${t}`,type:"row",name:{heading:e.heading,description:e.description},starter:f(e.starter),team:f(e.team),plus:f(e.plus),scale:f(e.scale)})))];return L.jsxs(t.Stack,{sx:{backgroundColor:p.custom.palette.surface.default,borderRadius:p.spacing(p.custom.radius.xl),boxShadow:p.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[L.jsxs(t.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[L.jsx(t.Box,{sx:{width:160}}),m.map((({heading:e,pricing:r})=>L.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[L.jsx(Pe,{variation:"platform"===d?"lg":"xxl",component:"p",weight:"bold",children:e}),L.jsx(Pe,{variation:"platform"===d?"sm":"md",component:"p",sx:{color:p.custom.palette.text.secondary},children:r})]},e)))]}),h.map((e=>L.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(odd)":{backgroundColor:p.custom.palette.surface.sunken}},children:[L.jsx(t.Box,{sx:{display:"flex",alignItems:"center",width:160},children:L.jsxs(t.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&L.jsx(ns,{message:e.name.description,children:L.jsx(t.Box,{sx:{alignItems:"center",color:p.custom.palette.icon.secondary,display:"flex"},children:L.jsx(Q,{name:"info",size:24})})}),L.jsx(Pe,{variation:"platform"===d?"md":"lg",component:"p",children:e.name.heading})]})}),L.jsx(vs,{text:e.starter}),L.jsx(vs,{text:e.team}),L.jsx(vs,{text:e.plus}),L.jsx(vs,{text:e.scale})]},e.key)))]})},exports.PlanTierCard=({amount:r,billingType:o,body:n,ctaEvent:i=()=>{},ctaLink:a="#",ctaTarget:s="_self",ctaText:l,ctaVariation:c="primary",currencySymbol:u,currentPlan:d,features:p=[],freeTrialLength:m,freeTrialText:f,frequency:h,heading:g,label:x,largestHeaderHeight:b=0,perMonth:y,setLargestHeaderHeight:v=()=>{},variation:C="default"})=>{const w=t.useTheme(),k=di(),{width:j}=Cs(),S=e.useRef(null),[M,E]=e.useState("sm");return e.useEffect((()=>{e.startTransition((()=>{E(k),k!==M&&v(0),S.current&&S.current.offsetHeight>b&&v(S.current.offsetHeight)}))}),[k,M,j]),L.jsxs(t.Stack,{sx:{display:"flex",flex:1,position:"relative"},children:[L.jsx(t.Stack,{sx:{alignItems:"center",backgroundColor:w.custom.palette.icon.primary,borderTopLeftRadius:w.spacing(w.custom.radius.lg),borderTopRightRadius:w.spacing(w.custom.radius.lg),boxShadow:w.custom.elevation.overlay,color:w.custom.palette.text.primaryInverted,justifyContent:"center",p:{sm:1,lg:2},textTransform:"uppercase",opacity:x?1:0,display:{sm:x?"flex":"none",md:"flex"}},children:L.jsx(Pe,{variation:"md",component:"p",weight:"bold",sx:{color:w.custom.palette.white},children:x||" "})}),L.jsxs(t.Stack,{sx:{backgroundColor:w.custom.palette.surface.default,borderBottomLeftRadius:w.spacing(w.custom.radius.lg),borderBottomRightRadius:w.spacing(w.custom.radius.lg),borderTopLeftRadius:x?0:w.spacing(w.custom.radius.lg),borderTopRightRadius:x?0:w.spacing(w.custom.radius.lg),boxShadow:w.custom.elevation.overlay,display:"flex",flex:1},children:[L.jsxs(t.Stack,{sx:{display:"flex",gap:"sm"===k||"md"===k?1:2,textAlign:"center",minHeight:{sm:"none",md:b},px:2,py:{sm:2,lg:4}},ref:S,children:[L.jsx(Pe,{variation:"sm"===k?"xxl":"platform"===C?"md":"lg",component:"h2",weight:"bold",children:g}),L.jsx(Pe,{variation:"sm"===k?"md":"platform"===C?"md"===k?"sm":"md":"md"===k?"md":"lg",component:"p",sx:{color:w.custom.palette.text.secondary},children:n})]}),L.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",gap:2,minHeight:{sm:"none",md:168,lg:"platform"===C?184:240,xl:"platform"===C?184:226},px:2,py:{sm:2,md:2,lg:"platform"===C?2:6}},children:[L.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex",gap:.5,justifyContent:"center"},children:[L.jsx(Pe,{variation:"md"===k?"sm":"xxl",component:"p",weight:"bold",sx:{lineHeight:1,marginBottom:-.15,marginRight:-.4},children:u}),L.jsx(Pe,{variation:"xxl",component:"p",weight:"bold",sx:{fontSize:{sm:48,md:26,lg:48},lineHeight:.8},children:r}),y&&L.jsx(Pe,{variation:"sm",component:"p",sx:{color:w.custom.palette.text.secondary,lineHeight:1,marginLeft:-.5},children:y})]}),m&&f&&L.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:w.custom.palette.yellow[300],borderRadius:w.custom.radius.round,boxShadow:w.custom.elevation.raised,display:"flex",gap:{sm:.5,md:1},px:2,py:1},children:[L.jsx(Q,{name:"gift",size:24}),L.jsxs(t.Box,{sx:{display:"flex",flexDirection:{sm:"row",md:"column",lg:"row"},gap:{sm:.5,md:0,lg:.5}},children:[L.jsx(Pe,{variation:"md",component:"p",weight:"bold",sx:{lineHeight:1},children:m}),L.jsx(Pe,{variation:"md",component:"p",sx:{lineHeight:1},children:f})]})]}),o&&L.jsx(Pe,{variation:"sm",component:"p",sx:{color:w.custom.palette.text.placeholder},children:o})]}),L.jsxs(t.Stack,{sx:{display:"flex",flexDirection:{sm:"column-reverse",md:"column"}},children:[L.jsx(t.Box,{sx:{py:{sm:2,md:0},px:{sm:2,lg:4}},children:L.jsx(Pi,{href:a,title:l,target:s,onClick:()=>{g&&i(g)},sx:{"&:hover":{cursor:d?"default":"pointer"}},children:L.jsx(ot,{fullWidth:!0,variation:c,sizing:"lg",disabled:d,children:l})})}),p?.length&&L.jsx(t.Stack,{sx:{alignItems:"center",gap:.5,px:{sm:2,lg:4},py:{sm:2,md:4,lg:"platform"===C?4:6}},children:p.map(((e,r)=>L.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:1,maxWidth:200,width:"100%"},children:[L.jsx(Q,{name:"positive",size:24}),L.jsx(Pe,{variation:"md",component:"p",children:e})]},`${g}-feature-${r}`)))})]})]})]})},exports.PlanTierCardScale=({body:e,ctaEvent:r=()=>{},ctaLink:o="",ctaTarget:n="_blank",ctaText:i,currencySymbol:a,heading:s,postText:l,preText:c,amount:u})=>{const d=t.useTheme();return L.jsxs(t.Box,{sx:{backgroundColor:d.custom.palette.purple[0],borderRadius:d.spacing(d.custom.radius.lg),display:"flex",flexDirection:{sm:"column",md:"row"},textAlign:{sm:"center",md:"left"},boxShadow:d.custom.elevation.overlay,flex:1,gap:{sm:4,md:2},p:{sm:2,lg:4}},children:[L.jsxs(t.Stack,{sx:{flex:1,gap:2,justifyContent:"center"},children:[L.jsx(Pe,{variation:"md",component:"h2",sx:{fontWeight:500},children:s}),L.jsx(Pe,{variation:"md",component:"p",sx:{color:d.custom.palette.text.secondary},children:e})]}),L.jsxs(t.Stack,{sx:{flex:1,gap:{sm:4,md:2},justifyContent:"center",maxWidth:{sm:"none",md:180,lg:320},p:{sm:0,md:2,lg:4}},children:[L.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex",justifyContent:"center"},children:[L.jsx(Pe,{variation:"md",component:"p",sx:{color:d.custom.palette.text.placeholder,pr:.5},children:c}),L.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex"},children:[L.jsx(Pe,{variation:"xxl",component:"p",sx:{fontWeight:500,lineHeight:1.2},children:a}),L.jsx(Pe,{variation:"xxl",component:"p",sx:{fontWeight:500,fontSize:{sm:"1.6rem",lg:"2.2rem"},lineHeight:{sm:1.15,lg:1}},children:u})]}),L.jsx(Pe,{variation:"md",component:"p",sx:{color:d.custom.palette.text.placeholder,pl:.1},children:l})]}),L.jsx(Pi,{href:o,title:i,target:n,onClick:()=>{s&&r(s)},children:L.jsx(ot,{fullWidth:!0,variation:"outlined",sizing:"lg",children:i})})]})]})},exports.Portal=t=>{const[r,o]=e.useState(null),n=r?.contentWindow?.document?.body,i=ta({key:"css",container:r?.contentWindow?.document?.head,prepend:!0});return L.jsx(ra,{ref:o,children:n&&l.createPortal(L.jsx(s.CacheProvider,{value:i,children:t.children}),n)})},exports.PoweredByWatermarkLogo=()=>L.jsxs(t.Stack,{gap:.5,flexDirection:"row",children:[L.jsx(t.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M2.09034 4.64868H4.09536C5.65956 4.64868 6.41322 4.00878 6.41322 2.84274C6.41322 1.69092 5.65956 1.05102 4.09536 1.05102H2.09034V4.64868ZM2.09034 5.6583V9H0.86742V0.0413991H4.1238C6.34212 0.0413991 7.6077 1.09368 7.6077 2.84274C7.6077 4.60602 6.34212 5.6583 4.1238 5.6583H2.09034ZM9.27266 5.90004C9.27266 7.27938 9.96944 8.26056 11.2208 8.26056C12.4864 8.26056 13.1974 7.27938 13.1974 5.90004C13.1974 4.50648 12.4864 3.53952 11.2208 3.53952C9.96944 3.53952 9.27266 4.50648 9.27266 5.90004ZM14.4061 5.90004C14.4061 7.83396 13.0552 9.17064 11.2208 9.17064C9.40064 9.17064 8.06396 7.83396 8.06396 5.90004C8.06396 3.96612 9.40064 2.61522 11.2208 2.61522C13.0552 2.61522 14.4061 3.96612 14.4061 5.90004ZM19.9082 2.78586L21.2449 7.49268H21.3018L22.738 2.78586H23.8329L21.8564 9H20.7188L19.3963 4.36428H19.3394L18.0312 9H16.8936L14.9028 2.78586H16.083L17.5477 7.49268H17.6046L18.9128 2.78586H19.9082ZM29.4445 6.78168L30.4257 6.89544C30.1271 8.31744 29.0748 9.17064 27.5248 9.17064C25.6762 9.17064 24.3253 7.91928 24.3253 5.98536C24.3253 4.023 25.6762 2.61522 27.4679 2.61522C29.4445 2.61522 30.4541 4.023 30.4541 5.71518V6.17022H25.5056C25.5624 7.40736 26.4299 8.24634 27.539 8.24634C28.5771 8.24634 29.2028 7.74864 29.4445 6.78168ZM25.534 5.445H29.2454C29.217 4.43538 28.634 3.51108 27.4679 3.51108C26.3445 3.51108 25.662 4.40694 25.534 5.445ZM35.5059 2.89962L35.3921 3.96612C35.0509 3.78126 34.8091 3.71016 34.4252 3.71016C33.5293 3.71016 32.861 4.5207 32.861 5.71518V9H31.6807V2.78586H32.861V4.05144C33.0885 3.34044 33.7284 2.61522 34.6243 2.61522C35.0082 2.61522 35.2926 2.71476 35.5059 2.89962ZM40.9288 6.78168L41.91 6.89544C41.6114 8.31744 40.5591 9.17064 39.0091 9.17064C37.1605 9.17064 35.8096 7.91928 35.8096 5.98536C35.8096 4.023 37.1605 2.61522 38.9522 2.61522C40.9288 2.61522 41.9384 4.023 41.9384 5.71518V6.17022H36.9899C37.0468 7.40736 37.9142 8.24634 39.0233 8.24634C40.0614 8.24634 40.6871 7.74864 40.9288 6.78168ZM37.0183 5.445H40.7297C40.7013 4.43538 40.1183 3.51108 38.9522 3.51108C37.8289 3.51108 37.1463 4.40694 37.0183 5.445ZM47.8993 6.07068V5.71518C47.8993 4.36428 47.0461 3.56796 45.9227 3.56796C44.6998 3.56796 44.0172 4.47804 44.0172 5.90004C44.0172 7.32204 44.6998 8.23212 45.9227 8.23212C47.0461 8.23212 47.8993 7.4358 47.8993 6.07068ZM47.8851 9V7.70598C47.6007 8.47386 46.8186 9.17064 45.6525 9.17064C43.8039 9.17064 42.8085 7.73442 42.8085 5.90004C42.8085 4.06566 43.8039 2.61522 45.6525 2.61522C46.8186 2.61522 47.6007 3.32622 47.8851 4.0941V0.0413991H49.0653V9H47.8851ZM54.3847 5.71518V6.07068C54.3847 7.4358 55.2521 8.23212 56.3755 8.23212C57.5984 8.23212 58.2668 7.32204 58.2668 5.90004C58.2668 4.47804 57.5984 3.56796 56.3755 3.56796C55.2521 3.56796 54.3847 4.36428 54.3847 5.71518ZM54.3847 7.70598L54.1288 9H53.2329V0.0413991H54.4132V4.0941C54.6833 3.32622 55.4797 2.61522 56.6457 2.61522C58.4801 2.61522 59.4897 4.06566 59.4897 5.90004C59.4897 7.73442 58.4801 9.17064 56.6315 9.17064C55.4797 9.17064 54.6691 8.48808 54.3847 7.70598ZM62.6822 11.389H61.5304L62.54 8.98578L59.9235 2.78586H61.1607L63.1372 7.56378H63.1941L65.0996 2.78586H66.2656L62.6822 11.389Z",fill:"#473F5C"})}),L.jsxs(t.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:L.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M4.3189 9.56522C3.67851 9.11556 3.54429 8.98169 3.54429 7.99199V0H0V0.149886L0.00580287 0.153463C0.656931 0.554852 0.953183 0.737477 0.953183 1.72311V7.99199C0.953183 8.98169 0.818964 9.11556 0.17858 9.56522V9.7151H4.3189V9.56522ZM4.51113 6.71053C4.91378 9.01144 6.99646 10.1934 9.18264 9.80664C11.3677 9.41876 12.9226 7.58467 12.5199 5.28947C12.1173 2.99428 10.0346 1.80549 7.84841 2.19336C5.66223 2.58124 4.10847 4.40961 4.51113 6.71053ZM7.2103 6.23112C6.8247 4.01831 6.98053 3.01716 7.96215 2.84325C8.94377 2.66819 9.43515 3.55263 9.82074 5.76545C10.2063 7.97826 10.0516 8.97483 9.06889 9.15332C8.08613 9.33181 7.59589 8.44394 7.2103 6.23112ZM17.7306 9.80664C15.5455 10.1934 13.4629 9.01144 13.0591 6.71053C12.6553 4.40961 14.2102 2.58124 16.3963 2.19336C18.5825 1.80549 20.6641 2.99428 21.0678 5.28947C21.4716 7.58467 19.9156 9.41876 17.7306 9.80664ZM16.5101 2.84325C15.5273 3.01716 15.3726 4.01831 15.7582 6.23112C16.1438 8.44394 16.6341 9.33181 17.6168 9.15675C18.5996 8.98169 18.7543 7.98169 18.3687 5.76888C17.9831 3.55606 17.4928 2.66819 16.5101 2.84325ZM25.5683 11.8168C24.8234 11.3931 24.5553 11.2406 24.5553 10.2769L24.5575 8.4794C24.9443 9.25858 25.7189 9.873 26.9997 9.873C28.9356 9.873 30.47 8.40046 30.47 5.86842C30.47 3.29176 28.9743 2.13844 27.2681 2.13844C25.8679 2.13844 24.8988 2.93249 24.5575 4.02631L24.4973 2.28833H21.0724V2.43135L21.0731 2.43181C21.713 2.85024 21.9653 3.01524 21.9653 4.00458V10.2769C21.9653 11.2654 21.8322 11.4005 21.1907 11.8501V12H25.6267V11.8501L25.5683 11.8168ZM26.1784 8.9611C25.2696 8.9611 24.5553 7.92792 24.5553 6.72998V5.66247C24.5553 4.32952 25.1957 3.32494 26.1784 3.32494C27.2055 3.32494 27.7117 4.27002 27.7117 5.87185C27.7117 7.98741 27.1907 8.9611 26.1784 8.9611ZM38.6585 9.84325C39.1403 9.84325 39.5309 9.45034 39.5309 8.96567C39.5309 8.481 39.1403 8.0881 38.6585 8.0881C38.1767 8.0881 37.7861 8.481 37.7861 8.96567C37.7861 9.45034 38.1767 9.84325 38.6585 9.84325ZM34.6585 4.64621C33.661 4.35019 33.0998 4.18365 33.0998 3.5881C33.0998 3.08924 33.5548 2.86842 34.0552 2.86842C35.0244 2.86842 35.783 3.42334 36.6623 4.71167H36.8704V2.13501H36.7214L36.0515 2.62929C36.0223 2.61721 35.9931 2.6051 35.9639 2.59299C35.4126 2.36413 34.8607 2.13501 34.0257 2.13501C32.4321 2.13501 31.1661 3.12357 31.1661 4.59153C31.1661 5.90961 31.7929 6.65904 34.0416 7.24371C34.8765 7.45309 35.4566 7.60297 35.4566 8.24714C35.4566 8.84668 34.8765 9.13043 34.1758 9.13043C33.0998 9.13043 32.3138 8.39702 31.2799 7.00343H31.0524L31.2094 9.85011H31.3731L31.968 9.25057C32.4446 9.49085 33.1897 9.86499 34.1872 9.86499C36.0936 9.86499 37.4198 8.80091 37.4198 7.3032C37.4198 5.75973 36.4985 5.19107 34.6786 4.65217L34.6585 4.64621Z",fill:"#473F5C"})}),L.jsx("defs",{children:L.jsx("clipPath",{id:"clip0_900_1816",children:L.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=et,exports.Radio=vt,exports.RadioGroup=oa,exports.Rank=Aa,exports.RichTextField=Pa,exports.Select=wa,exports.Slider=Za,exports.SortableList=La,exports.StarRating=Ga,exports.Surface=Ja,exports.Switch=Qa,exports.TextArea=ts,exports.TextBarDivider=({typographyProps:e,text:r,sx:n})=>{const i=t.useTheme();return L.jsx(t.Box,{sx:o.mergeSx(n,{width:"100%",position:"relative",display:"flex",gap:4,my:i.spacing(i.custom.margin.md),"&:before":{content:'""',width:"100%",background:i.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:i.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:L.jsx(Pe,{align:"center",variation:"sm",component:"p",...e,children:r})})},exports.TextField=ct,exports.ThemeProvider=({mode:r="light",screenSize:o="lg",direction:n="ltr",children:i})=>{const a=((r="light",o="lg",n="ltr")=>{const{width:i}=Cs(),[a,s]=e.useState(r),[l,c]=e.useState(o),[u,d]=e.useState(!1),[p,m]=e.useState(ks(a,l,n)),[f,h]=e.useState(ks("light"===a?"dark":"light",l,n)),[g,x]=e.useState("");e.useEffect((()=>{e.startTransition((()=>{c(i&&i<A.lg?"sm":"lg")}))}),[i]),e.useEffect((()=>{e.startTransition((()=>{m(ks(a,l,n)),h(ks("light"===a?"dark":"light",l,n))}))}),[a,l]);const b=t.useMediaQuery(p.breakpoints.only("sm"),{noSsr:!0}),y=t.useMediaQuery(p.breakpoints.only("md"),{noSsr:!0}),v=t.useMediaQuery(p.breakpoints.between("lg","xl"),{noSsr:!0}),C=t.useMediaQuery(p.breakpoints.up("xl"),{noSsr:!0});return e.useEffect((()=>{e.startTransition((()=>{b&&x("sm"),y&&x("md"),v&&x("lg"),C&&x("xl")}))}),[b,y,v,C]),{breakpoint:g,darkTheme:f,gridOverlayVisible:u,mode:a,theme:p,toggleGridOverlay:()=>{e.startTransition((()=>{d((e=>!e))}))},toggleMode:t=>{e.startTransition((()=>{if(t)return s(t);s((e=>"light"===e?"dark":"light"))}))}}})(r,o,n);return e.useEffect((()=>{"rtl"===n&&(document.dir="rtl")}),[]),L.jsx(js.Provider,{value:a,children:L.jsx(s.CacheProvider,{value:"rtl"===n?Ms:Es,children:L.jsxs(ui,{theme:a.theme,children:[L.jsx(t.CssBaseline,{}),L.jsx(Ss,{}),i]})})})},exports.TickGroup=({heading:e,ticks:r})=>(t.useTheme(),L.jsxs(t.Stack,{sx:{display:"flex",gap:{sm:2,lg:4},py:{sm:2,lg:4}},children:[L.jsx(Pe,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),L.jsx(t.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:r.map(((r,o)=>L.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[L.jsx(Q,{name:"positive",size:32}),L.jsx(Pe,{variation:"xxl",component:"p",children:r})]},`tick-group-${e}-${o}`)))})]})),exports.Toast=({buttons:e,message:r,status:o="neutral",variation:n="sm"})=>{const i=t.useTheme();return L.jsx(t.Stack,{sx:{backgroundColor:i.custom.palette.surface.overlay,borderRadius:i.spacing(i.custom.radius.lg),boxShadow:i.custom.elevation.overlay,color:i.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:L.jsxs(t.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===n?"row":"column",gap:2},children:[L.jsxs(t.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==o&&L.jsx(rs,{status:o}),L.jsx(t.Box,{sx:{display:"flex"},children:L.jsx(Pe,{variation:"md",component:"p",sx:{px:1,pt:.5},children:r})})]}),e&&L.jsx(t.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},exports.Tooltip=ns,exports.Typography=Pe,exports.backgroundCreator=mt,exports.chooseArticle=gs,exports.defaultInputValidation=xs,exports.emailValidation={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},exports.passwordValidation=e=>({minLength:{value:e||8,message:`Password must have at least ${e||8} characters`},equal:{value:"password",message:"You cannot choose 'password' as your password"}}),exports.useDropdownMenu=()=>{const[t,r]=e.useState(null);return{open:Boolean(t),handleClick:e=>{r(e.currentTarget)},handleClose:()=>{r(null)},anchorEl:t}};
|
|
23
|
+
*/function Xt(){if(_t)return Pt;_t=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return Pt=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,n){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){a=e(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s},Pt}function Jt(){if(Dt)return Nt;Dt=1;return Nt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Qt(){return zt?Vt:(zt=1,Vt=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var er=Yt();Rt.exports=function(){if(Kt)return Zt;Kt=1;var e=Yt(),t=Xt(),r=Jt(),o=Qt(),n=function(){if(Ht)return Wt;Ht=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Jt(),r={},o=Qt();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function n(n,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in n)if(o(n,c)){var u;try{if("function"!=typeof n[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=n[c](i,c,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in r)){r[u.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+u.message+(null!=p?p:""))}}}return n.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},Wt=n}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Zt=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(a),arrayOf:function(e){return f((function(t,o,n,i,a){if("function"!=typeof e)return new m("Property `"+a+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[o];if(!Array.isArray(s))return new m("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,n,i,a+"["+l+"]",r);if(c instanceof Error)return c}return null}))},element:f((function(e,t,r,o,n){var i=e[t];return s(i)?null:new m("Invalid "+o+" `"+n+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:f((function(t,r,o,n,i){var a=t[r];return e.isValidElementType(a)?null:new m("Invalid "+n+" `"+i+"` of type `"+b(a)+"` supplied to `"+o+"`, expected a single ReactElement type.")})),instanceOf:function(e){return f((function(t,r,o,n,i){if(!(t[r]instanceof e)){var a=e.name||u;return new m("Invalid "+n+" `"+i+"` of type `"+((s=t[r]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+o+"`, expected instance of `"+a+"`.")}var s;return null}))},node:f((function(e,t,r,o,n){return x(e[t])?null:new m("Invalid "+o+" `"+n+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return f((function(t,n,i,a,s){if("function"!=typeof e)return new m("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[n],c=b(l);if("object"!==c)return new m("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(o(l,u)){var d=e(l,u,i,a,s+"."+u,r);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?f((function(t,r,o,n,i){for(var a=t[r],s=0;s<e.length;s++)if(p(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new m("Invalid "+n+" `"+i+"` of value `"+String(a)+"` supplied to `"+o+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(n)+" at index "+t+"."),a}return f((function(t,n,i,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,n,i,a,s,r);if(null==u)return null;u.data&&o(u.data,"expectedType")&&l.push(u.data.expectedType)}return new m("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return f((function(t,o,n,i,a){var s=t[o],l=b(s);if("object"!==l)return new m("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(n,i,a,c,y(u));var d=u(s,c,n,i,a+"."+c,r);if(d)return d}return null}))},exact:function(e){return f((function(n,i,a,s,l){var c=n[i],u=b(c);if("object"!==u)return new m("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},n[i],e);for(var p in d){var f=e[p];if(o(e,p)&&"function"!=typeof f)return g(a,s,l,p,y(f));if(!f)return new m("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(n[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=f(c,p,a,s,l+"."+p,r);if(h)return h}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function n(n,a,s,c,d,p,f){if(c=c||u,p=p||s,f!==r){if(l){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+s;!t[g]&&o<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,o++)}}return null==a[s]?n?null===a[s]?new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,s,c,d,p)}var a=n.bind(null,!1);return a.isRequired=n.bind(null,!0),a}function h(e){return f((function(t,r,o,n,i,a){var s=t[r];return b(s)!==e?new m("Invalid "+n+" `"+i+"` of type `"+y(s)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function g(e,t,r,o,n){return new m((e||"React class")+": "+t+" type `"+r+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+n+"`.")}function x(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(x);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,o=t.call(e);if(t!==e.entries){for(;!(r=o.next()).done;)if(!x(r.value))return!1}else for(;!(r=o.next()).done;){var n=r.value;if(n&&!x(n[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,d.checkPropTypes=n,d.resetWarningCache=n.resetWarningCache,d.PropTypes=d,d},Zt}()(er.isElement,!0)}else Rt.exports=function(){if(Ut)return Gt;Ut=1;var e=Jt();function t(){}function r(){}return r.resetWarningCache=t,Gt=function(){function o(t,r,o,n,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:n,element:o,elementType:o,instanceOf:n,node:o,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}()();var tr=E(Rt.exports);function rr(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function or(e){if(j.isValidElement(e)||!rr(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=or(e[r])})),t}function nr(e,t,r={clone:!0}){const o=r.clone?$t({},e):e;return rr(e)&&rr(t)&&Object.keys(t).forEach((n=>{j.isValidElement(t[n])?o[n]=t[n]:rr(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&rr(e[n])?o[n]=nr(e[n],t[n],r):r.clone?o[n]=rr(t[n])?or(t[n]):t[n]:o[n]=t[n]})),o}const ir=["values","unit","step"];function ar(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:o=5}=e,n=Tt(e,ir),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>$t({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${r})`}function c(e,n){const i=a.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:n)-o/100}${r})`}return $t({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},n)}const sr={borderRadius:4},lr="production"!==process.env.NODE_ENV?tr.oneOfType([tr.number,tr.string,tr.object,tr.array]):{};function cr(e,t){return t?nr(e,t,{clone:!1}):e}const ur={xs:0,sm:600,md:900,lg:1200,xl:1536},dr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ur[e]}px)`};function pr(e,t,r){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||dr;return t.reduce(((o,n,i)=>(o[e.up(e.keys[i])]=r(t[i]),o)),{})}if("object"==typeof t){const e=o.breakpoints||dr;return Object.keys(t).reduce(((o,n)=>{if(-1!==Object.keys(e.values||ur).indexOf(n)){o[e.up(n)]=r(t[n],n)}else{const e=n;o[e]=t[e]}return o}),{})}return r(t)}function mr(e){if("string"!=typeof e)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Mt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fr(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function hr(e,t,r,o=r){let n;return n="function"==typeof e?e(r):Array.isArray(e)?e[r]||o:fr(e,r)||o,t&&(n=t(n,o,e)),n}function gr(e){const{prop:t,cssProperty:r=e.prop,themeKey:o,transform:n}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=fr(e.theme,o)||{};return pr(e,i,(e=>{let o=hr(a,n,e);return e===o&&"string"==typeof e&&(o=hr(a,n,`${t}${"default"===e?"":mr(e)}`,e)),!1===r?o:{[r]:o}}))};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:lr}:{},i.filterProps=[t],i}const xr={m:"margin",p:"padding"},br={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vr=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!yr[e])return[e];e=yr[e]}const[t,r]=e.split(""),o=xr[t],n=br[r]||"";return Array.isArray(n)?n.map((e=>o+e)):[o+n]})),Cr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],kr=[...Cr,...wr];function jr(e,t,r,o){var n;const i=null!=(n=fr(e,t,!1))?n:r;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Sr(e){return jr(e,"spacing",8,"spacing")}function Mr(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Er(e,t,r,o){if(-1===t.indexOf(r))return null;const n=function(e,t){return r=>e.reduce(((e,o)=>(e[o]=Mr(t,r),e)),{})}(vr(r),o);return pr(e,e[r],n)}function Or(e,t){const r=Sr(e.theme);return Object.keys(e).map((o=>Er(e,t,o,r))).reduce(cr,{})}function $r(e){return Or(e,Cr)}function Tr(e){return Or(e,wr)}function Ir(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,o)=>t[o]?cr(r,t[o](e)):r),{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce(((e,t)=>Object.assign(e,t.propTypes)),{}):{},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Rr(e){return"number"!=typeof e?e:`${e}px solid`}function Br(e,t){return gr({prop:e,themeKey:"borders",transform:t})}$r.propTypes="production"!==process.env.NODE_ENV?Cr.reduce(((e,t)=>(e[t]=lr,e)),{}):{},$r.filterProps=Cr,Tr.propTypes="production"!==process.env.NODE_ENV?wr.reduce(((e,t)=>(e[t]=lr,e)),{}):{},Tr.filterProps=wr,"production"===process.env.NODE_ENV||kr.reduce(((e,t)=>(e[t]=lr,e)),{});const Lr=Br("border",Rr),Ar=Br("borderTop",Rr),Fr=Br("borderRight",Rr),Pr=Br("borderBottom",Rr),_r=Br("borderLeft",Rr),Nr=Br("borderColor"),Dr=Br("borderTopColor"),Vr=Br("borderRightColor"),zr=Br("borderBottomColor"),Wr=Br("borderLeftColor"),Hr=Br("outline",Rr),Zr=Br("outlineColor"),Kr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jr(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:Mr(t,e)});return pr(e,e.borderRadius,r)}return null};Kr.propTypes="production"!==process.env.NODE_ENV?{borderRadius:lr}:{},Kr.filterProps=["borderRadius"],Ir(Lr,Ar,Fr,Pr,_r,Nr,Dr,Vr,zr,Wr,Kr,Hr,Zr);const Gr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jr(e.theme,"spacing",8,"gap"),r=e=>({gap:Mr(t,e)});return pr(e,e.gap,r)}return null};Gr.propTypes="production"!==process.env.NODE_ENV?{gap:lr}:{},Gr.filterProps=["gap"];const Ur=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jr(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:Mr(t,e)});return pr(e,e.columnGap,r)}return null};Ur.propTypes="production"!==process.env.NODE_ENV?{columnGap:lr}:{},Ur.filterProps=["columnGap"];const qr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jr(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:Mr(t,e)});return pr(e,e.rowGap,r)}return null};qr.propTypes="production"!==process.env.NODE_ENV?{rowGap:lr}:{},qr.filterProps=["rowGap"];function Yr(e,t){return"grey"===t?t:e}Ir(Gr,Ur,qr,gr({prop:"gridColumn"}),gr({prop:"gridRow"}),gr({prop:"gridAutoFlow"}),gr({prop:"gridAutoColumns"}),gr({prop:"gridAutoRows"}),gr({prop:"gridTemplateColumns"}),gr({prop:"gridTemplateRows"}),gr({prop:"gridTemplateAreas"}),gr({prop:"gridArea"}));function Xr(e){return e<=1&&0!==e?100*e+"%":e}Ir(gr({prop:"color",themeKey:"palette",transform:Yr}),gr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yr}),gr({prop:"backgroundColor",themeKey:"palette",transform:Yr}));const Jr=gr({prop:"width",transform:Xr}),Qr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,o;const n=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||ur[t];return n?"px"!==(null==(o=e.theme)||null==(o=o.breakpoints)?void 0:o.unit)?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Xr(t)}};return pr(e,e.maxWidth,t)}return null};Qr.filterProps=["maxWidth"];const eo=gr({prop:"minWidth",transform:Xr}),to=gr({prop:"height",transform:Xr}),ro=gr({prop:"maxHeight",transform:Xr}),oo=gr({prop:"minHeight",transform:Xr});gr({prop:"size",cssProperty:"width",transform:Xr}),gr({prop:"size",cssProperty:"height",transform:Xr});Ir(Jr,Qr,eo,to,ro,oo,gr({prop:"boxSizing"}));const no={border:{themeKey:"borders",transform:Rr},borderTop:{themeKey:"borders",transform:Rr},borderRight:{themeKey:"borders",transform:Rr},borderBottom:{themeKey:"borders",transform:Rr},borderLeft:{themeKey:"borders",transform:Rr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Rr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Kr},color:{themeKey:"palette",transform:Yr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yr},backgroundColor:{themeKey:"palette",transform:Yr},p:{style:Tr},pt:{style:Tr},pr:{style:Tr},pb:{style:Tr},pl:{style:Tr},px:{style:Tr},py:{style:Tr},padding:{style:Tr},paddingTop:{style:Tr},paddingRight:{style:Tr},paddingBottom:{style:Tr},paddingLeft:{style:Tr},paddingX:{style:Tr},paddingY:{style:Tr},paddingInline:{style:Tr},paddingInlineStart:{style:Tr},paddingInlineEnd:{style:Tr},paddingBlock:{style:Tr},paddingBlockStart:{style:Tr},paddingBlockEnd:{style:Tr},m:{style:$r},mt:{style:$r},mr:{style:$r},mb:{style:$r},ml:{style:$r},mx:{style:$r},my:{style:$r},margin:{style:$r},marginTop:{style:$r},marginRight:{style:$r},marginBottom:{style:$r},marginLeft:{style:$r},marginX:{style:$r},marginY:{style:$r},marginInline:{style:$r},marginInlineStart:{style:$r},marginInlineEnd:{style:$r},marginBlock:{style:$r},marginBlockStart:{style:$r},marginBlockEnd:{style:$r},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gr},rowGap:{style:qr},columnGap:{style:Ur},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xr},maxWidth:{style:Qr},minWidth:{transform:Xr},height:{transform:Xr},maxHeight:{transform:Xr},minHeight:{transform:Xr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const io=function(){function e(e,t,r,o){const n={[e]:t,theme:r},i=o[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=fr(r,s)||{};if(c)return c(n);return pr(n,t,(t=>{let r=hr(u,l,t);return t===r&&"string"==typeof t&&(r=hr(u,l,`${e}${"default"===t?"":mr(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var o;const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=null!=(o=i.unstable_sxConfig)?o:no;function s(r){let o=r;if("function"==typeof r)o=r(i);else if("object"!=typeof r)return r;if(!o)return null;const n=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(n);let l=n;return Object.keys(o).forEach((r=>{const n=(s=o[r],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=n)if("object"==typeof n)if(a[r])l=cr(l,e(r,n,i,a));else{const e=pr({theme:i},n,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,n)?l=cr(l,e):l[r]=t({sx:n,theme:i})}else l=cr(l,e(r,n,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(n)?n.map(s):s(n)}}();function ao(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const o=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[o]:t}}return r.palette.mode===e?t:{}}io.filterProps=["sx"];const so=["breakpoints","palette","spacing","shape"];function lo(e={},...t){const{breakpoints:r={},palette:o={},spacing:n,shape:i={}}=e,a=Tt(e,so),s=ar(r),l=function(e=8){if(e.mui)return e;const t=Sr({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" "));return r.mui=!0,r}(n);let c=nr({breakpoints:s,direction:"ltr",components:{},palette:$t({mode:"light"},o),spacing:l,shape:$t({},sr,i)},a);return c.applyStyles=ao,c=t.reduce(((e,t)=>nr(e,t)),c),c.unstable_sxConfig=$t({},no,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return io({sx:e,theme:this})},c}function co(e=null){const t=j.useContext(n.ThemeContext);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const uo=lo();const po=e=>e,mo=(()=>{let e=po;return{configure(t){e=t},generate:t=>e(t),reset(){e=po}}})(),fo={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ho(e,t,r="Mui"){const o=fo[t];return o?`${r}-${o}`:`${mo.generate(e)}-${t}`}function go(e,t){const r=$t({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))r[o]=$t({},e[o],r[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const n=e[o]||{},i=t[o];r[o]={},i&&Object.keys(i)?n&&Object.keys(n)?(r[o]=$t({},i),Object.keys(n).forEach((e=>{r[o][e]=go(n[e],i[e])}))):r[o]=i:r[o]=n}else void 0===r[o]&&(r[o]=e[o])})),r}function xo(e){const{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?go(t.components[r].defaultProps,o):o}const bo="undefined"!=typeof window?j.useLayoutEffect:j.useEffect;function yo(e,t,r,o,n){const[i,a]=j.useState((()=>n&&r?r(e).matches:o?o(e).matches:t));return bo((()=>{let t=!0;if(!r)return;const o=r(e),n=()=>{t&&a(o.matches)};return n(),o.addListener(n),()=>{t=!1,o.removeListener(n)}}),[e,r]),i}const vo=j.useSyncExternalStore;function Co(e,t,r,o,n){const i=j.useCallback((()=>t),[t]),a=j.useMemo((()=>{if(n&&r)return()=>r(e).matches;if(null!==o){const{matches:t}=o(e);return()=>t}return i}),[i,e,o,n,r]),[s,l]=j.useMemo((()=>{if(null===r)return[i,()=>()=>{}];const t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,r,e]);return vo(l,s,a)}var wo=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}});const ko="exact-prop: ";function jo(e){return"production"===process.env.NODE_ENV?e:$t({},e,{[ko]:t=>{const r=Object.keys(t).filter((t=>!e.hasOwnProperty(t)));return r.length>0?new Error(`The following props are not supported: ${r.map((e=>`\`${e}\``)).join(", ")}. Please remove them.`):null}})}const So=j.createContext(null);function Mo(){const e=j.useContext(So);return"production"!==process.env.NODE_ENV&&j.useDebugValue(e),e}"production"!==process.env.NODE_ENV&&(So.displayName="ThemeContext");var Eo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Oo(e){const{children:t,theme:r}=e,o=Mo();"production"!==process.env.NODE_ENV&&null===o&&"function"==typeof r&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const n=j.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t){const r=t(e);return"production"!==process.env.NODE_ENV&&(r||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join("\n"))),r}return $t({},e,t)}(o,r);return null!=e&&(e[Eo]=null!==o),e}),[r,o]);return L.jsx(So.Provider,{value:n,children:t})}"production"!==process.env.NODE_ENV&&(Oo.propTypes={children:tr.node,theme:tr.oneOfType([tr.object,tr.func]).isRequired}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Oo.propTypes=jo(Oo.propTypes));const $o=["value"],To=j.createContext();function Io(e){let{value:t}=e,r=Tt(e,$o);return L.jsx(To.Provider,$t({value:null==t||t},r))}"production"!==process.env.NODE_ENV&&(Io.propTypes={children:tr.node,value:tr.bool});const Ro=j.createContext(void 0);function Bo({value:e,children:t}){return L.jsx(Ro.Provider,{value:e,children:t})}"production"!==process.env.NODE_ENV&&(Bo.propTypes={children:tr.node,value:tr.object});const Lo={};function Ao(e,t,r,o=!1){return j.useMemo((()=>{const n=e&&t[e]||t;if("function"==typeof r){const i=r(n),a=e?$t({},t,{[e]:i}):i;return o?()=>a:a}return $t({},t,e?{[e]:r}:r)}),[e,t,r,o])}function Fo(e){const{children:t,theme:r,themeId:o}=e,i=co(Lo),a=Mo()||Lo;"production"!==process.env.NODE_ENV&&(null===i&&"function"==typeof r||o&&i&&!i[o]&&"function"==typeof r)&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join("\n"));const s=Ao(o,i,r),l=Ao(o,a,r,!0),c="rtl"===s.direction;return L.jsx(Oo,{theme:l,children:L.jsx(n.ThemeContext.Provider,{value:s,children:L.jsx(Io,{value:c,children:L.jsx(Bo,{value:null==s?void 0:s.components,children:t})})})})}function Po(e,t){return $t({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}"production"!==process.env.NODE_ENV&&(Fo.propTypes={children:tr.node,theme:tr.oneOfType([tr.func,tr.object]).isRequired,themeId:tr.string}),"production"!==process.env.NODE_ENV&&"production"!==process.env.NODE_ENV&&(Fo.propTypes=jo(Fo.propTypes));var _o,No={},Do={exports:{}};(_o=Do).exports=function(e){return e&&e.__esModule?e:{default:e}},_o.exports.__esModule=!0,_o.exports.default=_o.exports;var Vo=Do.exports,zo=O(Et),Wo=O(wo),Ho=Vo;Object.defineProperty(No,"__esModule",{value:!0}),No.alpha=on,No.blend=function(e,t,r,o=1){const n=(e,t)=>Math.round((e**(1/o)*(1-r)+t**(1/o)*r)**o),i=Jo(e),a=Jo(t),s=[n(i.values[0],a.values[0]),n(i.values[1],a.values[1]),n(i.values[2],a.values[2])];return en({type:"rgb",values:s})},No.colorChannel=void 0;var Zo=No.darken=nn;No.decomposeColor=Jo,No.emphasize=sn;var Ko=No.getContrastRatio=function(e,t){const r=rn(e),o=rn(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)};No.getLuminance=rn,No.hexToRgb=Xo,No.hslToRgb=tn;var Go=No.lighten=an;No.private_safeAlpha=function(e,t,r){try{return on(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},No.private_safeColorChannel=void 0,No.private_safeDarken=function(e,t,r){try{return nn(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},No.private_safeEmphasize=function(e,t,r){try{return sn(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},No.private_safeLighten=function(e,t,r){try{return an(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},No.recomposeColor=en,No.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Jo(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Uo=Ho(zo),qo=Ho(Wo);function Yo(e,t=0,r=1){return"production"!==process.env.NODE_ENV&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,qo.default)(e,t,r)}function Xo(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Jo(e){if(e.type)return e;if("#"===e.charAt(0))return Jo(Xo(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Uo.default)(9,e));let o,n=e.substring(t+1,e.length-1);if("color"===r){if(n=n.split(" "),o=n.shift(),4===n.length&&"/"===n[3].charAt(0)&&(n[3]=n[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Uo.default)(10,o))}else n=n.split(",");return n=n.map((e=>parseFloat(e))),{type:r,values:n,colorSpace:o}}const Qo=e=>{const t=Jo(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};No.colorChannel=Qo;function en(e){const{type:t,colorSpace:r}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${r} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function tn(e){e=Jo(e);const{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,i=o*Math.min(n,1-n),a=(e,t=(e+r/30)%12)=>n-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),en({type:s,values:l})}function rn(e){let t="hsl"===(e=Jo(e)).type||"hsla"===e.type?Jo(tn(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function on(e,t){return e=Jo(e),t=Yo(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,en(e)}function nn(e,t){if(e=Jo(e),t=Yo(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return en(e)}function an(e,t){if(e=Jo(e),t=Yo(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return en(e)}function sn(e,t=.15){return rn(e)>.5?nn(e,t):an(e,t)}No.private_safeColorChannel=(e,t)=>{try{return Qo(e)}catch(r){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};const ln={black:"#000",white:"#fff"},cn={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},un="#f3e5f5",dn="#ce93d8",pn="#ba68c8",mn="#ab47bc",fn="#9c27b0",hn="#7b1fa2",gn="#e57373",xn="#ef5350",bn="#f44336",yn="#d32f2f",vn="#c62828",Cn="#ffb74d",wn="#ffa726",kn="#ff9800",jn="#f57c00",Sn="#e65100",Mn="#e3f2fd",En="#90caf9",On="#42a5f5",$n="#1976d2",Tn="#1565c0",In="#4fc3f7",Rn="#29b6f6",Bn="#03a9f4",Ln="#0288d1",An="#01579b",Fn="#81c784",Pn="#66bb6a",_n="#4caf50",Nn="#388e3c",Dn="#2e7d32",Vn="#1b5e20",zn=["mode","contrastThreshold","tonalOffset"],Wn={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ln.white,default:ln.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Hn={text:{primary:ln.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ln.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Zn(e,t,r,o){const n=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Go(e.main,n):"dark"===t&&(e.dark=Zo(e.main,i)))}function Kn(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:o=.2}=e,n=Tt(e,zn),i=e.primary||function(e="light"){return"dark"===e?{main:En,light:Mn,dark:On}:{main:$n,light:On,dark:Tn}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:dn,light:un,dark:mn}:{main:fn,light:pn,dark:hn}}(t),s=e.error||function(e="light"){return"dark"===e?{main:bn,light:gn,dark:yn}:{main:yn,light:xn,dark:vn}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Rn,light:In,dark:Ln}:{main:Ln,light:Bn,dark:An}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Pn,light:Fn,dark:Nn}:{main:Dn,light:_n,dark:Vn}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:wn,light:Cn,dark:jn}:{main:"#ed6c02",light:kn,dark:Sn}}(t);function d(e){const t=Ko(e,Hn.text.primary)>=r?Hn.text.primary:Wn.text.primary;if("production"!==process.env.NODE_ENV){const r=Ko(e,t);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return t}const p=({color:e,name:t,mainShade:r=500,lightShade:n=300,darkShade:i=700})=>{if(!(e=$t({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:Mt(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:Mt(12,t?` (${t})`:"",JSON.stringify(e.main)));return Zn(e,"light",n,o),Zn(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},m={dark:Hn,light:Wn};"production"!==process.env.NODE_ENV&&(m[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return nr($t({common:$t({},ln),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:cn,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:o},m[t]),n)}const Gn=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Un={textTransform:"uppercase"},qn='"Roboto", "Helvetica", "Arial", sans-serif';function Yn(e,t){const r="function"==typeof t?t(e):t,{fontFamily:o=qn,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,p=Tt(r,Gn);"production"!==process.env.NODE_ENV&&("number"!=typeof n&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=n/14,f=d||(e=>e/c*m+"rem"),h=(e,t,r,n,i)=>{return $t({fontFamily:o,fontWeight:e,fontSize:f(t),lineHeight:r},o===qn?{letterSpacing:(a=n/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Un),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Un),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nr($t({htmlFontSize:c,pxToRem:f,fontFamily:o,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Xn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Jn=["none",Xn(0,2,1,-1,0,1,1,0,0,1,3,0),Xn(0,3,1,-2,0,2,2,0,0,1,5,0),Xn(0,3,3,-2,0,3,4,0,0,1,8,0),Xn(0,2,4,-1,0,4,5,0,0,1,10,0),Xn(0,3,5,-1,0,5,8,0,0,1,14,0),Xn(0,3,5,-1,0,6,10,0,0,1,18,0),Xn(0,4,5,-2,0,7,10,1,0,2,16,1),Xn(0,5,5,-3,0,8,10,1,0,3,14,2),Xn(0,5,6,-3,0,9,12,1,0,3,16,2),Xn(0,6,6,-3,0,10,14,1,0,4,18,3),Xn(0,6,7,-4,0,11,15,1,0,4,20,3),Xn(0,7,8,-4,0,12,17,2,0,5,22,4),Xn(0,7,8,-4,0,13,19,2,0,5,24,4),Xn(0,7,9,-4,0,14,21,2,0,5,26,4),Xn(0,8,9,-5,0,15,22,2,0,6,28,5),Xn(0,8,10,-5,0,16,24,2,0,6,30,5),Xn(0,8,11,-5,0,17,26,2,0,6,32,5),Xn(0,9,11,-5,0,18,28,2,0,7,34,6),Xn(0,9,12,-6,0,19,29,2,0,7,36,6),Xn(0,10,13,-6,0,20,31,3,0,8,38,7),Xn(0,10,13,-6,0,21,33,3,0,8,40,7),Xn(0,10,14,-6,0,22,35,3,0,8,42,7),Xn(0,11,14,-7,0,23,36,3,0,9,44,8),Xn(0,11,15,-7,0,24,38,3,0,9,46,8)],Qn=["duration","easing","delay"],ei={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ti={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ri(e){return`${Math.round(e)}ms`}function oi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ni(e){const t=$t({},ei,e.easing),r=$t({},ti,e.duration);return $t({getAutoHeightDuration:oi,create:(e=["all"],o={})=>{const{duration:n=r.standard,easing:i=t.easeInOut,delay:a=0}=o,s=Tt(o,Qn);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(n)||t(n)||console.error(`MUI: Argument "duration" must be a number or a string but found ${n}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),r(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof o&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof n?n:ri(n)} ${i} ${"string"==typeof a?a:ri(a)}`)).join(",")}},e,{easing:t,duration:r})}const ii={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ai=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const si=function(e={},...t){const{mixins:r={},palette:o={},transitions:n={},typography:i={}}=e,a=Tt(e,ai);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Mt(18));const s=Kn(o),l=lo(e);let c=nr(l,{mixins:Po(l.breakpoints,r),palette:s,shadows:Jn.slice(),typography:Yn(s,i),transitions:ni(n),zIndex:$t({},ii)});if(c=nr(c,a),c=t.reduce(((e,t)=>nr(e,t)),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let o;for(o in t){const n=t[o];if(-1!==e.indexOf(o)&&Object.keys(n).length>0){if("production"!==process.env.NODE_ENV){const e=ho("",o);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:n}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(c.components).forEach((e=>{const r=c.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&t(r,e)}))}return c.unstable_sxConfig=$t({},no,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return io({sx:e,theme:this})},c}();function li(){const e=function(e=uo){return co(e)}(si);return"production"!==process.env.NODE_ENV&&j.useDebugValue(e),e[Ot]||e}const ci=["theme"];function ui(e){let{theme:t}=e,r=Tt(e,ci);const o=t[Ot];return L.jsx(Fo,$t({},r,{themeId:o?Ot:void 0,theme:o||t}))}"production"!==process.env.NODE_ENV&&(ui.propTypes={children:tr.node,theme:tr.oneOfType([tr.object,tr.func]).isRequired});const di=()=>{const e=li();return[...e.breakpoints.keys].reduce(((t,r)=>{const o=function(e,t={}){const r=co(),o="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:n=!1,matchMedia:i=(o?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=xo({name:"MuiUseMediaQuery",props:t,theme:r});"production"!==process.env.NODE_ENV&&"function"==typeof e&&null===r&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join("\n"));let l="function"==typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");const c=(void 0!==vo?Co:yo)(l,n,i,a,s);return"production"!==process.env.NODE_ENV&&j.useDebugValue({query:l,match:c}),c}(e.breakpoints.up(r));return o?r:t}),null)??"sm"},pi=({children:e,...t})=>e,mi=e=>({backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.icon.primary}),fi=e=>({backgroundColor:e.custom.palette.purple[100],color:e.custom.palette.icon.primary,"& .MuiButtonBase-root":{":hover":{background:e.custom.palette.interaction.hoverOnDark},":active":{background:e.custom.palette.interaction.pressOnDark}}}),hi=e=>({backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,color:e.custom.palette.icon.primary,"&.MuiIconButton-root:disabled":{border:"none"}}),gi=e=>({backgroundColor:e.custom.palette.surface.raised,boxShadow:e.custom.elevation.raised,color:e.custom.palette.icon.primary,"&:focus-visible:after":{boxShadow:e.custom.boxShadow.input.focus},"&.MuiIconButton-root:disabled":{boxShadow:"none"}}),xi=(e,t)=>({borderRadius:"default"===e?t.spacing(t.custom.radius.md):t.custom.radius.round}),bi={xs:3*H,sm:3.5*H,md:4*H,lg:5*H,xl:6*H},yi=e=>({height:bi[e],width:bi[e]}),vi={xs:2*H,sm:2*H,md:2*H,lg:2.5*H,xl:3*H},Ci=e=>({height:vi[e],width:vi[e]}),wi=t.styled(t.IconButton)((({theme:e,variation:t,shape:r="default",sizing:o})=>({boxSizing:"border-box",transition:"all 200ms ease",...r&&{...xi(r,e)},...o&&{...yi(o)},"&.MuiIconButton-root":{..."default"===t&&{...mi(e)},..."toggle"===t&&{...fi(e)},..."outlined"===t&&{...hi(e)},..."raised"===t&&{...gi(e)},...r&&{...xi(r,e)},"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:focus":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,color:e.custom.palette.icon.disabled}},"& .MuiSvgIcon-root":{...o&&{...Ci(o)},position:"relative",zIndex:1}}))),ki=({icon:e,loading:t,sizing:r,...o})=>L.jsx(wi,{...o,sizing:r,children:t?L.jsx(et,{sizing:r}):e}),ji=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderBottomLeftRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderTopLeftRadius:0}}),Si=e=>({"&:first-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderRadius:`calc(${e.spacing(e.custom.radius.md)} - 1px)`,borderTopLeftRadius:0,borderBottomLeftRadius:0}}),Mi=t.styled(t.ButtonGroup)((({theme:e,variation:t,orientation:r="horizontal",iconColor:o,sizing:n="lg",groupRaised:i=!1})=>({"&.MuiButtonGroup-root":{border:`1px solid ${e.custom.palette.stroke.default}`,...i&&{boxShadow:e.custom.elevation.raised,border:"none"},"& > button":{borderRadius:0,..."default"===t&&{...mi(e)},..."toggle"===t&&{...fi(e)},..."vertical"===r&&{...ji(e)},..."horizontal"===r&&{...Si(e)},...n&&{...yi(n)}},"& .MuiSvgIcon-root":{...n&&{...Ci(n)},fill:o||"inherit"}}}))),Ei=({sx:e,...t})=>L.jsx(ht,{...t,sx:o.mergeSx({fontSize:{xs:Ve.sm.body.md,sm:Ve.sm.body.md,md:Ve.sm.body.md,lg:Ve.lg.body.md,xl:Ve.lg.body.md}},!!e&&{...e})}),Oi=t.styled(t.Box)((({theme:e})=>({"& .MuiGrid-item":{"&:first-of-type":{"& .MuiBox-root":{"&:before":{width:N,borderRadius:e.custom.radius.round,right:"50%",transform:`translateX(-${N}px)`,left:"auto"}}},"&:last-child":{"& .MuiBox-root":{"&:after":{width:N,borderRadius:e.custom.radius.round,right:"auto",left:"50%",transform:`translateX(${N}px)`}}}}}))),$i=({children:e,width:t})=>L.jsx(Oi,{sx:{width:t},children:e}),Ti=t.styled(gt)((()=>({lineHeight:"110%",textAlign:"center",width:"100%"}))),Ii=({disabled:e,children:t})=>L.jsx(Ti,{showicon:!1,disabled:e,sx:{cursor:"inherit"},children:t}),Ri=t.styled(vt)((()=>({marginRight:0}))),Bi=t.styled(t.Box)((({theme:e})=>({posiion:"relative","&:before":{content:'""',position:"absolute",top:"50%",left:0,height:P,width:`calc(50% - ${V/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default},"&:after":{content:'""',position:"absolute",top:"50%",right:0,height:P,width:`calc(50% - ${V/2}px)`,zIndex:0,backgroundColor:e.custom.palette.stroke.default}}))),Li=e=>L.jsx(Bi,{sx:{textAlign:"center",position:"relative"},children:L.jsx(Ri,{...e})}),Ai=({options:e=[],disabled:r=!1,sizing:o="lg",onChange:n,internalChange:i,value:a})=>{const s=t.useTheme();function l(e){console.warn(e),n(e.value),i&&i()}return L.jsx(t.Box,{children:L.jsx($i,{children:L.jsx(t.Grid,{container:!0,justifyContent:"space-between",children:e.map((e=>L.jsxs(t.Grid,{item:!0,sm:!0,onClick:()=>l(e),sx:{cursor:"pointer",textAlign:"center","&:hover":{"& .MuiButtonBase-root.MuiRadio-root":{"&:before":{backgroundColor:s.custom.palette.interaction.hover}}},"&:active":{"& .MuiButtonBase-root.MuiRadio-root":{backgroundColor:s.custom.palette.input.default,borderColor:s.custom.palette.stroke.focus,boxShadow:s.custom.boxShadow.input.focus,"&:before":{backgroundColor:s.custom.palette.interaction.press},"&.Mui-checked":{backgroundColor:s.custom.palette.purple[500]}}}},children:[L.jsx(Li,{sizing:o,disabled:r,onChange:t=>l(e),checked:a===e.value},e.value),L.jsx(t.Box,{sx:{mt:Z.xs,width:"100%"},children:L.jsx(Ii,{disabled:r,children:e.label})})]},e.value)))})})})},Fi=t.styled(t.Link)((({theme:e,disabled:t})=>({"&:focus-visible":{boxShadow:e.custom.boxShadow.input.focus,borderRadius:e.spacing(e.custom.radius.sm),outline:"none"},"&.MuiLink-root":{transition:"all 200ms ease",display:"inline",cursor:"pointer",color:t?e.custom.palette.text.lockedWhite:e.custom.palette.text.textLink,textDecorationColor:e.custom.palette.text.textLink,pointerEvents:t?"none":"auto","&:hover":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLinkHover},"&:active":{color:e.custom.palette.text.textLinkHover,textDecorationColor:e.custom.palette.text.textLinkHover},"&:visited":{color:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink,textDecorationColor:t?e.custom.palette.text.disabled:e.custom.palette.text.textLink}}}))),Pi=e=>e.target&&"_blank"===e.target?L.jsx(Fi,{rel:"noopener",...e}):L.jsx(Fi,{...e}),_i=e.forwardRef(((e,t)=>{const{decimalSeparator:r,thousandSeparator:o,value:n,...a}=e,s=j.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"group"===e.type))?.value??"";var e}),[void 0]),l=j.useMemo((()=>{return e=void 0,new Intl.NumberFormat(e).formatToParts(1234.5678).find((e=>"decimal"===e.type))?.value??".";var e}),[void 0]);return L.jsx(i.NumericFormat,{...a,value:n??"",getInputRef:t,thousandSeparator:o??s,decimalSeparator:r??l})})),Ni=o=>{const{disabled:n=!1,InputProps:i,inputProps:a,placeholder:s,hideActionButtons:l=!1,max:c=1/0,min:u=-1/0,numericFormatProps:d,onChange:p,step:m=1,value:f,...h}=o,g=t.useTheme(),[x,b]=e.useState(f),y=x,v=e=>{b(e),p?.(e)},C=()=>{const e=(null==y||Number.isNaN(y)?0:y)+m;e>c||v(e)},w=()=>{const e=(null==y||Number.isNaN(y)?0:y)-m;e<u||v(e)},k={decimalScale:5,isAllowed:({floatValue:e})=>null==e||e>=u&&e<=c,max:c!==1/0?c:void 0,min:u!==-1/0?u:void 0,step:1!==m?m:void 0,onKeyDown:e=>{"ArrowUp"===e.key?C():"ArrowDown"===e.key&&w()},onValueChange:({floatValue:e})=>{e!==y&&v(e)},value:y,...d};return L.jsx(lt,{placeholder:s,sx:{height:z},...h,value:y??"",disabled:n,InputProps:{...i,inputComponent:_i,endAdornment:!l&&L.jsxs(t.Stack,{sx:{position:"absolute",top:0,right:0,height:"100%",ml:"auto",width:32,borderLeft:`1px solid ${g.custom.palette.stroke.default}`},children:[L.jsx(t.ButtonBase,{onClick:()=>C(),sx:{flex:1,borderTopRightRadius:g.spacing(g.custom.radius.md),fontSize:12,"&:hover":{background:g.custom.palette.interaction.hover}},children:L.jsx(r.ArrowDropUp,{fontSize:"inherit"})}),L.jsx(t.Divider,{}),L.jsx(t.ButtonBase,{onClick:()=>w(),sx:{flex:1,borderBottomRightRadius:g.spacing(g.custom.radius.md),fontSize:12,"&:hover":{background:g.custom.palette.interaction.hover}},children:L.jsx(r.ArrowDropDown,{fontSize:"inherit"})})]})},inputProps:{...a,...k}})};const Di=(e,t)=>"light"===t?{fontWeight:400}:{fontWeight:500,textTransform:"uppercase"},Vi=(e,t,r)=>{switch(t){case"peach":return{background:e.custom.palette.peach[100],color:"heavy"===r?e.custom.palette.peach[1e3]:e.custom.palette.peach[800]};case"peachDark":return{background:e.custom.palette.peach[800],color:e.custom.palette.peach[0]};case"purple":return{background:e.custom.palette.purple[100],color:"heavy"===r?e.custom.palette.purple[1e3]:e.custom.palette.purple[800]};default:return{background:e.custom.palette.neutral[100],color:"heavy"===r?e.custom.palette.neutral[1e3]:e.custom.palette.neutral[800]}}},zi=t.styled(t.Chip)((({theme:e,variation:t,weight:r})=>({borderRadius:e.spacing(e.custom.radius.md),height:28,...Vi(e,t,r),"& .MuiChip-label":{fontSize:`${Ve.sm.body.sm}`,padding:`0 ${e.spacing(e.custom.padding.sm)}`,...Di(0,r)},"& .MuiChip-icon":{width:"0.8em",height:"0.8em",marginRight:-4,...Vi(e,t,r),...Di(0,r)}})));var Wi=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Hi="undefined"!=typeof document,Zi=function(e,t,r){for(var o=0,n=0;o=n,n=a.peek(),38===o&&12===n&&(t[r]=1),!a.token(n);)a.next();return a.slice(e,a.position)},Ki=function(e,t){return a.dealloc(function(e,t){var r=-1,o=44;do{switch(a.token(o)){case 0:38===o&&12===a.peek()&&(t[r]=1),e[r]+=Zi(a.position-1,t,r);break;case 2:e[r]+=a.delimit(o);break;case 4:if(44===o){e[++r]=58===a.peek()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=a.from(o)}}while(o=a.next());return e}(a.alloc(e),t))},Gi=new WeakMap,Ui=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,o=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Gi.get(r))&&!o){Gi.set(e,!0);for(var n=[],i=Ki(t,n),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},qi=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Yi(e,t){switch(a.hash(e,t)){case 5103:return a.WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a.WEBKIT+e+a.MOZ+e+a.MS+e+e;case 6828:case 4268:return a.WEBKIT+e+a.MS+e+e;case 6165:return a.WEBKIT+e+a.MS+"flex-"+e+e;case 5187:return a.WEBKIT+e+a.replace(e,/(\w+).+(:[^]+)/,a.WEBKIT+"box-$1$2"+a.MS+"flex-$1$2")+e;case 5443:return a.WEBKIT+e+a.MS+"flex-item-"+a.replace(e,/flex-|-self/,"")+e;case 4675:return a.WEBKIT+e+a.MS+"flex-line-pack"+a.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return a.WEBKIT+e+a.MS+a.replace(e,"shrink","negative")+e;case 5292:return a.WEBKIT+e+a.MS+a.replace(e,"basis","preferred-size")+e;case 6060:return a.WEBKIT+"box-"+a.replace(e,"-grow","")+a.WEBKIT+e+a.MS+a.replace(e,"grow","positive")+e;case 4554:return a.WEBKIT+a.replace(e,/([^-])(transform)/g,"$1"+a.WEBKIT+"$2")+e;case 6187:return a.replace(a.replace(a.replace(e,/(zoom-|grab)/,a.WEBKIT+"$1"),/(image-set)/,a.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return a.replace(e,/(image-set\([^]*)/,a.WEBKIT+"$1$`$1");case 4968:return a.replace(a.replace(e,/(.+:)(flex-)?(.*)/,a.WEBKIT+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return a.replace(e,/(.+)-inline(.+)/,a.WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(a.strlen(e)-1-t>6)switch(a.charat(e,t+1)){case 109:if(45!==a.charat(e,t+4))break;case 102:return a.replace(e,/(.+:)(.+)-([^]+)/,"$1"+a.WEBKIT+"$2-$3$1"+a.MOZ+(108==a.charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~a.indexof(e,"stretch")?Yi(a.replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==a.charat(e,t+1))break;case 6444:switch(a.charat(e,a.strlen(e)-3-(~a.indexof(e,"!important")&&10))){case 107:return a.replace(e,":",":"+a.WEBKIT)+e;case 101:return a.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.WEBKIT+(45===a.charat(e,14)?"inline-":"")+"box$3$1"+a.WEBKIT+"$2$3$1"+a.MS+"$2box$3")+e}break;case 5936:switch(a.charat(e,t+11)){case 114:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a.WEBKIT+e+a.MS+a.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a.WEBKIT+e+a.MS+e+e}return e}var Xi,Ji,Qi=Hi?void 0:(Xi=function(){return e=function(){return{}},t=Object.create(null),function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]};var e,t},Ji=new WeakMap,function(e){if(Ji.has(e))return Ji.get(e);var t=Xi(e);return Ji.set(e,t),t}),ea=[function(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case a.DECLARATION:e.return=Yi(e.value,e.length);break;case a.KEYFRAMES:return a.serialize([a.copy(e,{value:a.replace(e.value,"@","@"+a.WEBKIT)})],o);case a.RULESET:if(e.length)return a.combine(e.props,(function(t){switch(a.match(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return a.serialize([a.copy(e,{props:[a.replace(t,/:(read-\w+)/,":"+a.MOZ+"$1")]})],o);case"::placeholder":return a.serialize([a.copy(e,{props:[a.replace(t,/:(plac\w+)/,":"+a.WEBKIT+"input-$1")]}),a.copy(e,{props:[a.replace(t,/:(plac\w+)/,":"+a.MOZ+"$1")]}),a.copy(e,{props:[a.replace(t,/:(plac\w+)/,a.MS+"input-$1")]})],o)}return""}))}}],ta=function(e){var t=e.key;if(Hi&&"css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,n,i=e.stylisPlugins||ea,s={},l=[];Hi&&(o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;l.push(e)})));var c=[Ui,qi];if(Qi){var u=[a.stringify],d=a.middleware(c.concat(i,u)),p=Qi(i)(t),m=function(e,t){var r,o=t.name;return void 0===p[o]&&(p[o]=(r=e?e+"{"+t.styles+"}":t.styles,a.serialize(a.compile(r),d))),p[o]};n=function(e,t,r,o){var n=t.name,i=m(e,t);return void 0===x.compat?(o&&(x.inserted[n]=!0),i):o?void(x.inserted[n]=i):i}}else{var f,h=[a.stringify,a.rulesheet((function(e){f.insert(e)}))],g=a.middleware(c.concat(i,h));n=function(e,t,r,o){var n;f=r,n=e?e+"{"+t.styles+"}":t.styles,a.serialize(a.compile(n),g),o&&(x.inserted[t.name]=!0)}}var x={key:t,sheet:new Wi({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:n};return x.sheet.hydrate(l),x};const ra=t.styled("iframe")((()=>({border:"none",height:"100%",width:"100%"}))),oa=({options:r,onChange:o,other:n,value:i,internalChange:a,...s})=>{const l=n?.enabled,c="other-option",u=`${c}-value-`,[d,p]=e.useState(i),[m,f]=e.useState(!1);e.useEffect((()=>{!m&&d?.includes(u)?f(!0):m&&f(!1)}),[d]);return L.jsxs(L.Fragment,{children:[L.jsxs(t.RadioGroup,{...s,value:d,sx:{display:"flex",gap:e=>e.custom.margin.sm,label:{"&:last-child":{mb:0},"&:hover":{"& .MuiRadio-root":{backgroundColor:e=>e.custom.palette.interaction.hover,"&.Mui-checked":{backgroundColor:e=>e.custom.palette.purple[500]}}}}},onChange:(e,t)=>{o&&o(t),p(t),a&&a()},children:[r?r.map(((e,t)=>L.jsx(nt,{sx:{"& .MuiButtonBase-root.MuiRadio-root":{alignSelf:"baseline"}},...e,control:L.jsx(vt,{})},t))):null,l&&L.jsx(nt,{label:n?.label||"Other",value:u,control:L.jsx(vt,{checked:d?.includes(u)})},c)]}),m&&L.jsx(t.Box,{sx:{mt:1},children:L.jsx(ct,{fullWidth:!0,autoFocus:!0,placeholder:n?.placeholder,defaultValue:d?.replace(u,""),onChange:e=>{var t;o&&o((t=e.target.value,`${u}${t}`)),a&&a()},required:!0})})]})},na=({handleSelectAll:r,isIndeterminate:o,isAllSelected:n,sizing:i})=>{const[a,s]=e.useState(!1),l=t.useTheme();return e.useEffect((()=>{n&&s(n)}),[n]),L.jsxs(t.Stack,{direction:"row",gap:l.spacing(l.custom.padding.sm),onClick:e=>{const t=!a;s(t),r(e,t)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[L.jsx(t.FormLabel,{sx:{cursor:"pointer",fontSize:()=>i&&We[i]},children:"Select all"}),L.jsx(at,{sizing:"default",indeterminate:o,checked:a})]})},ia=e.forwardRef((({children:e,handleSelectAll:t,showSelectAll:r,value:o=[],selections:n,sizing:i,...a},s)=>{const l=Array.isArray(o)&&o.length===n.length,c=Array.isArray(o)&&o.length>0&&o.length<n.length;return L.jsxs("ul",{ref:s,...a,children:[r&&L.jsx(na,{handleSelectAll:t,isIndeterminate:c,isAllSelected:l,sizing:i}),e]})})),aa="0px 4px 8px 0px #06040D14, 0px 16px 24px 0px #06040D14, 0px 0px 4px 2px #06040D0A, 0px 0px 0px 1px #FFFFFF29",sa=e=>{switch(e){case"xs":return 24;case"md":return 32;default:return 40}},la=(e,t)=>({"& .MuiTypography-root":{height:sa(t),fontSize:We[t],display:"flex",alignItems:"center",paddingLeft:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm),paddingRight:e.spacing("xs"===t?e.custom.padding.xs:e.custom.padding.sm)}}),ca=e=>({fontSize:`${Ve.sm.body.md}`,borderRadius:e.spacing(e.custom.radius.md),position:"relative",padding:e.spacing(e.custom.padding.sm),"& .MuiSelect-outlined":{padding:0},"& .MuiSelect-select.MuiInputBase-input":{paddingRight:e.spacing(K.md)},"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",background:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.md),inset:0,zIndex:0},"&:hover:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-focused:before":{backgroundColor:e.custom.palette.interaction.press},"&.Mui-disabled:before":{backgroundColor:e.custom.palette.interaction.none},"& .MuiSelect-select":{position:"relative"}}),ua=(e,t)=>{switch(t){case"lg":return{height:sa(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:J.lg,height:J.lg,top:`calc(50% - ${J.lg/2}px)`}};case"md":return{height:sa(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:J.md,height:J.md,top:`calc(50% - ${J.md/2}px)`}};case"xs":return{height:sa(t),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:J.xs,height:J.xs,top:`calc(50% - ${J.xs/2}px)`}};default:return{height:sa("lg"),"& .MuiSvgIcon-root":{color:e.custom.palette.icon.primary,transition:e.custom.easing.input,width:J.lg,height:J.lg,top:`calc(50% - ${J.lg/2}px)`}}}},da=e=>({position:"relative",fontSize:`${Ve.sm.body.md}`,backgroundColor:e.custom.palette.interaction.none,color:e.custom.palette.text.primary,"&:before":{transition:e.custom.easing.input,content:'""',position:"absolute",inset:0,zIndex:1},"& > .MuiBox-root":{position:"relative",zIndex:2,width:"100%","& .MuiSvgIcon-root":{marginRight:e.spacing(e.custom.margin.sm),width:J.xl,height:J.xl},"& .MuiBox-root":{padding:e.spacing(e.custom.padding.sm),lineHeight:"22px"}}}),pa=e=>({"&.MuiModal-root.MuiPopover-root":{"&.MuiMenu-root":{borderRadius:e.spacing(e.custom.radius.sm),"& .MuiPaper-root":{border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:aa}}}}),ma=t.styled(t.Autocomplete)((({theme:e,sizing:t,value:r})=>({maxWidth:"100%",backgroundColor:e.custom.palette.surface.raised,borderRadius:e.spacing(e.custom.radius.md),border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiSvgIcon-root":{...t&&{width:J[t],height:J[t]}},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...t&&{height:"xs"===t?2*H+"px":3*H+"px"},paddingTop:0,paddingBottom:0,paddingLeft:r&&Array.isArray(r)&&r.length>0?0:e.spacing(e.custom.padding.sm),justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-inputRoot":{...t&&{fontSize:We[t],gap:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*H+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:"0"},"& .MuiAutocomplete-tag":{...t&&{height:"xs"===t?2*H+"px":3*H+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"&.Mui-disabled":{backgroundColor:`${e.custom.palette.input.disabled}`,borderColor:`${e.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`}}}))),fa=t.styled(t.Chip)((({theme:e,sizing:t})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.default,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:e.custom.palette.icon.primary,borderRadius:e.custom.radius.round,margin:0,"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,fill:e.custom.palette.icon.disabled}}}))),ha=t.styled(t.TextField)((({theme:e,sizing:t})=>({"& .MuiOutlinedInput-root":{padding:0,...t&&{margin:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}))),ga=t.styled(t.Popper)((({theme:e,sizing:r})=>({"& .MuiPaper-root":{...r&&{margin:"lg"===r?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs),marginLeft:"lg"===r?`-${e.spacing(e.custom.padding.sm)}`:`-${e.spacing(e.custom.padding.xs)}`,marginTop:`calc(${"lg"===r?e.spacing(e.custom.margin.sm):e.spacing(e.custom.margin.xs)} + ${e.spacing(e.custom.margin.xs)})`},border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.raised,boxShadow:aa,borderRadius:e.spacing(e.custom.radius.sm)},[`& .${t.autocompleteClasses.listbox}`]:{overflowX:"hidden",[`& .${t.autocompleteClasses.option}`]:{fontSize:We[r],...r&&{height:"lg"===r?5*H+"px":4*H+"px"},"> span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},'&[aria-selected="true"]':{backgroundColor:e.custom.palette.interaction.hover,display:"flex",alignItems:"center",justifyContent:"space-between"}}}}))),xa=e=>L.jsx(ga,{...e}),ba=({selections:t,disableClearable:o=!1,disabled:n,internalChange:i,multiple:a=!0,onChange:s,placeholder:l="",renderListItem:c,sizing:u="lg",value:d=(a?[]:"")})=>{const[p,m]=e.useState(t.filter((e=>d.includes(e?.value)))),f=(e,r)=>{if(s){const o=r?t.map((({value:e})=>e)):[];m(r?t:[]),s(e,o,"selectOption"),i&&i()}},h=e=>null!==e&&(!Array.isArray(e)||e.length>0);return L.jsx(ma,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:L.jsx(r.KeyboardArrowDown,{}),sizing:u,disabled:n,disableClearable:o,autoComplete:!0,multiple:a,renderInput:e=>L.jsx(ha,{...e,placeholder:h(p)?void 0:l,sizing:u}),options:t,renderTags:(e,t)=>e.map(((e,o)=>{const{key:n,...i}=t({index:o});return L.jsx(fa,{sizing:u,deleteIcon:L.jsx(r.CloseRounded,{fontSize:"small"}),label:e.label,...i},n)})),onChange:(e,t,r)=>{const o=Array.isArray(t)?t.map((e=>e.value)):t?.value??null;m(t),s?.(e,o,r),i?.()},PopperComponent:e=>L.jsx(xa,{...e,sizing:u}),isOptionEqualToValue:(e,t)=>e.value===t.value,renderOption:(e,t,{selected:o})=>{const{key:n,...i}=e;return L.jsxs("li",{...i,children:[L.jsx("span",{children:c?c(t.label):t.label}),L.jsx(r.Check,{sx:{visibility:o?"visible":"hidden",fontSize:"16px"}})]},n)},ListboxComponent:e.forwardRef(((e,r)=>L.jsx(ia,{ref:r,...e,showSelectAll:a,handleSelectAll:f,value:p,selections:t,sizing:u}))),value:p})},ya=t.styled(t.MenuItem)((({theme:e})=>({...{...da(e)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.none},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.input.default}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}},"&:hover":{backgroundColor:e.custom.palette.input.default,"&:before":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.input.default,"&.Mui-focusVisible":{"&:before":{backgroundColor:e.custom.palette.interaction.hover}},"&:before":{backgroundColor:e.custom.palette.interaction.hover}}},"&:active":{"&:before":{backgroundColor:e.custom.palette.interaction.press}}}))),va=({children:e,selected:o,...n})=>L.jsx(ya,{...n,children:L.jsxs(t.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[L.jsx(t.Box,{children:e}),o&&L.jsx(r.Check,{})]})}),Ca=t.styled(t.Select)((({theme:e,sizing:t})=>({...{...ca(e)},...t&&{...ua(e,t)},...t&&{...la(e,t)},backgroundColor:e.custom.palette.surface.raised,border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiOutlinedInput-notchedOutline":{border:e.custom.palette.stroke.default},"&:hover":{"& .MuiOutlinedInput-notchedOutline":{borderColor:e.custom.palette.stroke.default}},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"&.Mui-disabled":{backgroundColor:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"& .MuiSvgIcon-root":{color:e.custom.palette.icon.disabled,transition:e.custom.easing.input}}}))),wa=({selections:e,autoComplete:o=!1,disabled:n=!1,disablePortal:i=!1,inputRef:a,internalChange:s,multi:l=!0,onChange:c,placeholder:u="",selectOptionProps:d,sizing:p="lg",sx:m,value:f=[],renderListItem:h,...g})=>{const x=t.useTheme(),b=di();return o?L.jsx(ba,{selections:e,placeholder:u,disabled:n,sizing:p,onChange:(e,t)=>{c&&c(t||""),s&&s()},value:Array.isArray(f)?f??[]:f??"",internalChange:s,renderListItem:h,multiple:l}):L.jsxs(Ca,{sizing:p,inputRef:a,MenuProps:{disablePortal:i,sx:pa,anchorOrigin:{vertical:45,horizontal:"center"}},displayEmpty:!0,IconComponent:r.KeyboardArrowDown,renderValue:t=>u&&!t?L.jsx(Pe,{component:"p",variation:"sm"===b||"md"===b?"sm":"lg",sx:{color:x.custom.palette.text.placeholder},children:u}):L.jsx(Pe,{component:"p",variation:"sm"===b||"md"===b?"sm":"lg",children:e?.find((({value:e})=>e===t))?.label}),onChange:(e,t)=>{c&&c(e,t),s&&s()},sx:m,value:f,...g,children:[""!==u.trim()&&L.jsx(va,{disabled:!0,value:"","aria-label":"placeholder",children:u},"placeholder"),e?.map((({value:e,label:t})=>L.jsx(va,{value:e,...d,children:h?h(t):t},e)))]})},ka=t.styled(t.Box)((({theme:e,disabled:t,fullWidth:r})=>({width:r?"100%":"auto",minWidth:240,backgroundColor:t?e.custom.palette.input.disabled:e.custom.palette.surface.raised,border:`1px solid ${t?e.custom.palette.stroke.disabled:e.custom.palette.stroke.default}`,borderRadius:e.spacing(e.custom.radius.lg),padding:e.spacing(e.custom.padding.md),position:"relative",zIndex:0,"&:after":{content:'""',backgroundColor:e.custom.palette.interaction.none,borderRadius:e.spacing(e.custom.radius.lg),position:"absolute",inset:0},"&:hover":{"&:after":{backgroundColor:e.custom.palette.interaction.hover}},"&:active":{"&:after":{backgroundColor:e.custom.palette.interaction.press}},"& svg":{fill:e.custom.palette.icon.primary},...t&&{background:e.custom.palette.input.disabled,borderColor:e.custom.palette.stroke.disabled,"&:after":{backgroundColor:e.custom.palette.interaction.none},"& .MuiBox-root > .MuiSvgIcon-root":{fill:"none"}}}))),ja=t.styled(Ei)((({theme:e})=>({fontSize:Ve.button.md,color:e.custom.palette.text.primary,lineHeight:"120%",letterSpacing:"0.16px"}))),Sa=({label:e="Placeholder",disabled:o,onChange:n,options:i,fullWidth:a})=>{const s=t.useTheme(),l=i.map((e=>e.label)).indexOf(e);return L.jsx(ka,{disabled:o,fullWidth:a,children:L.jsxs(t.Stack,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",sx:{position:"relative",zIndex:1},children:[L.jsxs(t.Box,{display:"flex",alignItems:"center",sx:{"& svg":{fill:s.custom.palette.icon.secondary}},children:[L.jsx(r.DragHandle,{sx:{width:J.lg,height:J.lg,mr:s.custom.padding.sm}}),L.jsx(ja,{align:"left",disabled:o,children:e})]}),L.jsx(wa,{name:"rank",sizing:"xs",selections:i.map(((e,t)=>({label:`${t+1}`,value:`${t}`}))),disabled:o,value:`${l}`,onChange:function(e){const t=l,r=Number(e.target.value),o=i;let a=1;const s=o.splice(t,a)[0];a=0,o.splice(r,a,s),n(o)},MenuProps:{anchorOrigin:{vertical:V,horizontal:"center"}}})]})})},Ma=e.createContext({attributes:{},listeners:void 0,ref(){}}),Ea=e=>u.defaultAnimateLayoutChanges({...e,wasDragging:!0});function Oa({children:r,top:o,bottom:n,id:i}){const{attributes:a,isDragging:s,listeners:l,setNodeRef:c,setActivatorNodeRef:p,transform:m,transition:f}=u.useSortable({id:i,animateLayoutChanges:Ea}),h=e.useMemo((()=>({attributes:a,listeners:l,ref:p})),[a,l,p]),g={opacity:s?.4:void 0,transform:d.CSS.Translate.toString(m),transition:f};return L.jsx(Ma.Provider,{value:h,children:L.jsxs(t.Stack,{className:"SortableItem",...a,sx:{position:"relative",...g,width:"100%"},ref:c,children:[o&&o,L.jsx(t.Box,{...l,sx:{display:"flex",cursor:"grab"},children:r}),n&&n]})})}const $a={sideEffects:c.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.4"}}})};function Ta({children:e}){return l.createPortal(L.jsx(c.DragOverlay,{zIndex:999999,dropAnimation:$a,children:e}),document.body)}const Ia=({nativeEvent:e})=>{let t=e.target;for(;t;){if(t.dataset.noDnd)return!1;t=t.parentElement}return!0};class Ra extends c.MouseSensor{static activators=[{eventName:"onMouseDown",handler:Ia}]}class Ba extends c.TouchSensor{static activators=[{eventName:"onTouchStart",handler:Ia}]}function La({items:r,onChange:o,renderItem:n,disabled:i,direction:a}){if(!r)return;const[s,l]=e.useState(null),d=e.useMemo((()=>r.find((e=>e?.id===s?.id))),[s,r]),p=t.useTheme(),m=t.useMediaQuery(p.breakpoints.down("md")),f=c.useSensors(c.useSensor(Ra,{activationConstraint:{distance:5}}),c.useSensor(Ba,{activationConstraint:{delay:m?300:0,tolerance:8}}),c.useSensor(c.KeyboardSensor,{coordinateGetter:u.sortableKeyboardCoordinates}));return L.jsxs(c.DndContext,{measuring:{droppable:{strategy:c.MeasuringStrategy.Always}},sensors:f,onDragStart:({active:e})=>{l(e)},onDragEnd:({active:e,over:t})=>{if(t&&e.id!==t?.id){const n=r.findIndex((({id:t})=>t===e.id)),i=r.findIndex((({id:e})=>e===t.id));o(u.arrayMove(r,n,i))}l(null)},onDragCancel:()=>{l(null)},children:[L.jsx(u.SortableContext,{items:r,disabled:i,strategy:"horizontal"===a?u.horizontalListSortingStrategy:u.verticalListSortingStrategy,children:L.jsx(t.Stack,{sx:{..."horizontal"===a&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:r.map((t=>L.jsx(e.Fragment,{children:n(t)},t.id)))})}),L.jsx(Ta,{children:d?n(d,!0,!!s):null})]})}La.Item=Oa,La.DragHandle=function(){const{attributes:r,listeners:o,ref:n}=e.useContext(Ma);return L.jsx(t.Box,{...r,...o,ref:n,children:L.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:L.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})};const Aa=({labelTop:r,labelBottom:o,disabled:n,fullWidth:i=!1,options:a,onChange:s,value:l,internalChange:c})=>{const u=t.useTheme(),[d,p]=e.useState(l||a);function m(e){p(e),s(e.map((({id:e})=>e))),c&&c()}return L.jsxs(t.Stack,{gap:u.custom.margin.sm,textAlign:"center",sx:{width:i?"100%":"auto"},children:[r&&L.jsx(Ei,{disabled:n,sx:{color:u.custom.palette.text.secondary},children:r}),L.jsx(La,{onChange:function(e){p(e),s(e.map((({id:e})=>e))),c&&c()},items:d,direction:"vertical",renderItem:({...e})=>L.jsx(Oa,{id:e.id,children:L.jsx(Sa,{onChange:m,...e,options:d,disabled:n,selections:e.selections,fullWidth:i})})}),o&&L.jsx(Ei,{disabled:n,sx:{color:u.custom.palette.text.secondary},children:o})]})},Fa=t.styled(f.RichTextEditor)((({theme:e})=>({"&.MuiTiptap-FieldContainer-root":{backgroundColor:e.custom.palette.input.default,"&:hover":{".MuiTiptap-FieldContainer-notchedOutline":{borderSize:1,backgroundColor:e.custom.palette.interaction.hover,borderColor:e.custom.palette.stroke.default}}},"&.MuiTiptap-FieldContainer-focused":{".MuiTiptap-FieldContainer-notchedOutline":{transition:e.custom.easing.input,border:`1px solid ${e.custom.palette.stroke.focus}!important`,boxShadow:e.custom.boxShadow.input.focus}},".MuiTiptap-RichTextField-menuBar":{padding:0,borderRadius:e.spacing(e.custom.radius.md),background:e.custom.palette.surface.default,margin:e.spacing(e.custom.margin.sm),border:`1px solid ${e.custom.palette.stroke.default}`,marginBottom:0,".MuiTiptap-RichTextField-content":{padding:e.spacing(e.custom.padding.xs)}}}))),Pa=({onChange:o,value:n,internalChange:i,minWidth:a=100,minHeight:s=100,maxHeight:l,placeholder:c})=>{const u=e.useRef(null),d=t.useTheme();return L.jsx(Fa,{sx:{"& .ProseMirror":{overflowY:"auto",minHeight:s,minWidth:a,maxHeight:l}},ref:u,onUpdate:({editor:e})=>{o&&o(e.storage.markdown.getMarkdown()),i&&i()},extensions:[m.StarterKit.configure({strike:!1,code:!1,heading:!1,listItem:!1,bulletList:!1,orderedList:!1,blockquote:!1,horizontalRule:!1,codeBlock:!1}),p.Placeholder.configure({placeholder:c}),h.Markdown],content:n,renderControls:()=>L.jsxs(t.Stack,{gap:d.custom.margin.xs,direction:"row",children:[L.jsx(f.MenuButtonBold,{component:ki,icon:L.jsx(r.FormatBold,{}),sizing:"md"}),L.jsx(f.MenuButtonItalic,{component:ki,icon:L.jsx(r.FormatItalic,{}),sizing:"md"})]})})},_a=e=>({"& .MuiSlider-thumb":{width:D,height:D,backgroundColor:e.custom.palette.text.primary,boxShadow:e.custom.boxShadow.input.handle,"&:after":{content:'""',position:"absolute",top:"50%",left:"50%",width:P,height:P,backgroundColor:e.custom.palette.icon.primaryInverted}}}),Na=e=>Array.isArray(e),Da=(e,t)=>({height:_,padding:`${_}px 0`,"& .MuiSlider-rail":{width:`calc(100% + ${V}px)`,left:`-${N}px`,backgroundColor:e.custom.palette.icon.disabled,opacity:1},"& .MuiSlider-track":{position:"relative",border:"none",backgroundColor:e.custom.palette.purple[500],"&:before":{content:'""',position:"absolute",top:0,left:t&&Na(t)?`-${_+1}px`:`-${N+1}px`,width:`calc(100% + ${N}px)`,height:"100%",borderRadius:"inherit",backgroundColor:"inherit"}},"& .MuiSlider-mark":{height:P,width:P,borderRadius:e.custom.radius.round,backgroundColor:e.custom.palette.text.primaryInverted,"&.MuiSlider-markActive":{backgroundColor:e.custom.palette.text.primaryInverted}}}),Va=e=>({"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.purple[500],borderRadius:e.spacing(e.custom.radius.sm),padding:P,minWidth:V,"&.MuiSlider-valueLabelOpen":{top:"-9px"},"& .MuiSlider-valueLabelLabel":{padding:`0 ${e.spacing(e.custom.padding.xs)}`,fontSize:`${Ve.lg.body.sm}`,color:e.custom.palette.text.lockedWhite,fontWeight:500,lineHeight:"140%"}}}),za=t.styled(t.Slider)((({theme:e,value:t})=>({"&.MuiSlider-root":{width:`calc(100% - ${V}px)`,marginLeft:V/2,...{...Da(e,t)},...{..._a(e)},...{...Va(e)},"&.Mui-disabled":{"& .MuiSlider-rail, & .MuiSlider-track":{backgroundColor:e.custom.palette.icon.secondary},"& .MuiSlider-rail":{backgroundColor:e.custom.palette.icon.disabled},"& .MuiSlider-thumb":{backgroundColor:e.custom.palette.icon.disabled,"& .MuiSlider-valueLabel":{backgroundColor:e.custom.palette.icon.disabled}}},"& .MuiSlider-markLabel":{color:e.custom.palette.text.secondary,"&.MuiSlider-markLabelActive":{color:e.custom.palette.text.secondary}}}}))),Wa=[1,2,5,10],Ha=(e,t)=>{if(e>=t)return console.warn("Min value must be less than max value"),1;const r=(t-e)/9;if(r<=1)return 1;const o=Math.floor(Math.log10(r)),n=r/Math.pow(10,o);return i=n,(Wa.find((e=>i<=e))??Wa[Wa.length-1])*Math.pow(10,o);var i},Za=({labelLeft:e,labelMiddle:r,labelRight:o,labelRightProps:n,labelLeftProps:i,disabled:a,onChange:s,internalChange:l,max:c,min:u,step:d,...p})=>{const m=d??Ha(u,c),f=((e,t,r)=>{const o=[];for(let n=e;n<=t;n+=r)o.push({value:n,label:n===e||n===t||n+r<=t?n.toString():void 0});return o[o.length-1].value!==t&&o.push({value:t,label:t.toString()}),o})(u,c,m);return L.jsxs(t.Box,{sx:{minWidth:300},children:[L.jsx(t.Box,{height:24,children:L.jsx(za,{valueLabelDisplay:a?"on":"auto",disabled:a,marks:f,step:m,max:c,min:u,onChangeCommitted:()=>{l&&l()},onChange:(e,t,r)=>{s&&s(e,t,r)},...p})}),L.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",pt:K.lg,gap:1},children:[e&&L.jsx(t.Box,{sx:{flex:1},children:L.jsx(gt,{disabled:a,showicon:!1,...i,children:e})}),r&&L.jsx(t.Box,{sx:{flex:1,textAlign:"center"},children:L.jsx(gt,{showicon:!1,disabled:a,children:r})}),o&&L.jsx(t.Box,{sx:{flex:1,textAlign:"right"},children:L.jsx(gt,{...n,showicon:!1,disabled:a,children:o})})]})]})},Ka=t.styled(t.Rating)((({theme:e})=>({"&.MuiRating-root":{"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.secondary},"& .MuiRating-iconFilled":{color:e.custom.palette.yellow[600]},".MuiRating-iconHover":{fontSize:"inherit",transform:"none"},"&.Mui-disabled":{opacity:1,color:e.custom.palette.icon.disabled,"& .MuiRating-iconEmpty":{color:e.custom.palette.icon.disabled},"& .MuiRating-iconFilled":{color:e.custom.palette.icon.disabled}}}}))),Ga=({internalChange:e,onChange:r,...o})=>L.jsx(Ka,{...o,onChange:(t,o)=>{r&&r(t,o),e&&e()},icon:L.jsx(t.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M24.114 35.395L32.414 40.415C33.934 41.335 35.794 39.975 35.394 38.255L33.194 28.815L40.534 22.455C41.874 21.295 41.154 19.095 39.394 18.955L29.734 18.135L25.954 9.21499C25.274 7.59499 22.954 7.59499 22.274 9.21499L18.494 18.115L8.83396 18.935C7.07396 19.075 6.35396 21.275 7.69396 22.435L15.034 28.795L12.834 38.235C12.434 39.955 14.294 41.315 15.814 40.395L24.114 35.395Z"})}),emptyIcon:L.jsx(t.SvgIcon,{sx:{width:48,height:48},viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.1047 20.58L30.8559 27.7274L33.3274 38.3549L23.9992 32.713L14.6668 38.335L17.1388 27.7279L8.89132 20.5816L19.748 19.66L23.9966 9.63416L28.2463 19.6377L39.1047 20.58ZM12.7171 37.8892L14.9171 28.4492L7.57709 22.0892C6.23709 20.9292 6.95709 18.7292 8.71709 18.5892L18.3771 17.7692L22.1571 8.84916C22.8371 7.22916 25.1571 7.22916 25.8371 8.84916L29.6171 17.7492L39.2971 18.5892C41.0571 18.7292 41.7571 20.9292 40.4171 22.0892L33.0771 28.4492L35.2771 37.9092C35.6771 39.6292 33.8171 40.9892 32.2971 40.0692L23.9971 35.0492L15.6971 40.0492C14.1771 40.9692 12.3171 39.6092 12.7171 37.8892Z"})})}),Ua=e=>({boxShadow:e.custom.elevation.raised}),qa=e=>({boxShadow:e.custom.elevation.overlay}),Ya=(e,t)=>{switch(e){case"sunken":return t.custom.palette.surface.sunken;case"raised":return t.custom.palette.surface.raised;case"overlay":return t.custom.palette.surface.overlay;default:return t.custom.palette.surface.default}},Xa=(e,t)=>{switch(t){case"xs":return e.spacing(e.custom.radius.xs);case"sm":return e.spacing(e.custom.radius.sm);case"md":return e.spacing(e.custom.radius.md);case"lg":return e.spacing(e.custom.radius.lg);default:return e.spacing(e.custom.radius.xl)}},Ja=t.styled(t.Paper)((({theme:e,variation:t="default",borderradius:r})=>({boxShadow:"unset",borderRadius:Xa(e,r),background:Ya(t,e),..."overlay"===t&&{...qa(e)},..."raised"===t&&{...Ua(e)}}))),Qa=t.styled((e=>L.jsx(t.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e})))((({theme:e})=>({width:36,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:e.custom.palette.green[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:e.custom.palette.neutral[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===e.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"none",filter:"drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.1))"},"& .MuiSwitch-track":{borderRadius:10,backgroundColor:e.custom.palette.neutral[100],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}))),es=t.styled(lt)((({theme:e})=>({"& .MuiInputBase-root":{paddingTop:0,paddingBottom:0,minHeight:z,alignItems:"baseline","& .MuiInputBase-input":{},"& .MuiInputAdornment-root.MuiInputAdornment-positionStart":{alignSelf:"self-end",height:J.xl,marginTop:e.spacing(1),marginBottom:e.spacing(1),"&:first-of-type":{alignSelf:"self-start"}}}}))),ts=({startAdornment:e,endAdornment:r,onChange:o,internalChange:n,inputRef:i,...a})=>L.jsx(es,{multiline:!0,inputRef:i,InputProps:{startAdornment:e?L.jsx(t.InputAdornment,{position:"start",children:e}):null,endAdornment:r?L.jsx(t.InputAdornment,{position:"start",children:r}):null},onChange:e=>{o&&o(e),n&&n()},...a}),rs=({status:e})=>{const r=t.useTheme();switch(e){case"neutral":return null;case"success":return L.jsx(os,{backgroundColor:r.custom.palette.green[500],name:"check-circle"});case"warning":return L.jsx(os,{backgroundColor:r.custom.palette.yellow[500],name:"error-outline"});case"danger":return L.jsx(os,{backgroundColor:r.custom.palette.red[500],name:"warning-amber"});case"discover":return L.jsx(os,{backgroundColor:r.custom.palette.purple[500],name:"lightbulb"})}},os=({backgroundColor:e,name:r})=>{const o=t.useTheme();return L.jsx(t.Box,{sx:{display:"flex",alignItems:"flex-start",pt:.25},children:L.jsx(t.Box,{sx:{backgroundColor:e,borderRadius:o.custom.radius.round,color:o.custom.palette.white,display:"flex",p:.5},children:L.jsx(Q,{name:r,size:20})})})},ns=({children:e,message:r,variation:o="primary"})=>{const n=t.useTheme();if("primary"===o)return L.jsx(t.Tooltip,{componentsProps:{popper:{sx:{"& .MuiTooltip-tooltip":{borderRadius:n.spacing(n.custom.radius.sm)}}}},title:r,arrow:!0,sx:{maxWidth:300},role:"tooltip",children:L.jsx(t.Box,{sx:{cursor:"pointer",display:"flex",alignItems:"center"},children:e})})};const is=(e,t)=>{switch(e){case 1:return t.custom.palette.red[500];case 2:return t.custom.palette.yellow[500];case 3:case 4:return t.custom.palette.green[500];default:return t.custom.palette.icon.disabled}},as=(e,t)=>{switch(e){case 1:return t.custom.palette.text.negative;case 2:return t.custom.palette.yellow[800];case 3:return t.custom.palette.green[800];case 4:return t.custom.palette.text.positive;default:return t.custom.palette.icon.disabled}},ss=t.styled(t.LinearProgress)((({theme:e,score:r})=>({boxShadow:"unset",background:e.custom.palette.neutral[100],borderRadius:e.spacing(e.custom.radius.sm),[`.${t.linearProgressClasses.bar}`]:{borderRadius:e.spacing(e.custom.radius.sm),backgroundColor:is(r,e)}}))),ls={translations:M.translations,graphs:S.adjacencyGraphs,dictionary:{...S.dictionary,...M.dictionary}};b.zxcvbnOptions.setOptions(ls);const cs=({label:r="Strength",width:o=60,value:n,onChange:i})=>{const[a,s]=e.useState(0),l=t.useTheme();return e.useEffect((()=>{s(b.zxcvbn(n).score)}),[n]),e.useEffect((()=>{i(a)}),[a]),L.jsxs(t.Stack,{direction:"row",gap:1,sx:{alignItems:"center"},children:[L.jsx(Pe,{variation:"sm",component:"p",children:r}),L.jsx(ss,{variant:"determinate",value:0===a?6.6:25*a,score:a,sx:{width:o}}),L.jsx(Pe,{variation:"sm",component:"p",sx:{color:as(a,l)},children:["","Very weak","Weak","Strong","Excellent"][a]})]})},us=({helperText:e,inputName:t,errors:r,...o})=>{const n=Boolean(r&&r[t]);return n?L.jsx(C.ErrorMessage,{errors:r,name:t,render:({message:e})=>L.jsx(gt,{showicon:!!e,state:"negative",children:e})}):e&&!n?L.jsx(gt,{state:"default",...o,children:e}):null},ds={textfield:ct,numberfield:Ni,textarea:ts,select:wa,checkbox:st,checkboxGroup:ut,slider:Za,starRating:Ga,differential:jt,likert:Ai,radioGroup:oa,ranking:Aa,richTextfield:Pa},ps=({name:r,fieldType:o,label:n,control:i,errors:a,labelProps:s,helperText:l,helpTextProps:c,validation:u,content:d,styleOverrides:p,defaultValue:m,onChange:f,watch:h,trigger:b,strengthIndicator:y,...v})=>{const{custom:C}=t.useTheme(),w=void 0!==a&&Object.keys(a).length>0,[k,j]=e.useState(0);return y&&e.useEffect((()=>{k>0&&b(r)}),[k]),L.jsxs(t.Stack,{sx:p?.sxInputStack,gap:C.margin.sm,children:[n&&L.jsx(Ei,{...s,children:n}),"html"===o&&d?L.jsx(pi,{children:d}):L.jsxs(L.Fragment,{children:[L.jsx(g.Controller,{name:r,control:i,render:e=>function({field:{ref:e,...t}}){const r=ds[o];return t.value||""===t.value||"false"===t.value?.toString()||0===parseInt(t.value)?L.jsx(r,{...v,...t,inputRef:e}):L.jsx("div",{})}({...e,field:{...e.field,value:e.field.value||m}}),rules:{...u,validate:e=>{if(u&&"phone"in u)return x.isValidPhoneNumber(`+${h("extension")}${e}`)||u.phone.message;if(u&&"score"in u)return k<=u.score.value?u.score.message:void 0;if(u&&"white_space"in u)return!e.match(/^\s*$/g)||u.white_space.message;if(u&&"match"in u)switch(u.match?.comparison){case"not_eq":return e!=h(u.match.field)||u.match.message;case"gt":return e>h(u.match.field)||u.match.message;case"lt":return e<h(u.match.field)||u.match.message;default:return e===h(u.match.field)||u.match.message}}}}),y&&"password"===v?.type&&L.jsx(cs,{value:h(r),onChange:j})]}),L.jsxs(L.Fragment,{children:[Boolean(w)?L.jsx(us,{helperText:void 0,inputName:r,errors:a,showicon:!0}):null,Boolean(l)?L.jsx(us,{helperText:l,inputName:r,errors:void 0,...c}):null]})]})},ms=e=>e.reduce(((e,t)=>({...e,[t?.name]:fs(t,t?.defaultValue)})),{}),fs=(e,t)=>{switch(e.fieldType){case"select":return Array.isArray(t),t;case"starRating":case"numberfield":return t||0;case"slider":{const{min:r}=e;return Array.isArray(t)?t:t||r}case"likert":case"radioGroup":default:return t||"";case"checkboxGroup":return t||[];case"checkbox":return t||!1;case"ranking":{const{options:r}=e;return t?t.map((e=>r.find((({id:t})=>t===e)))):r}}},hs=e.forwardRef((({submitButton:r,secondaryButton:o,onFormSubmit:n,onFormChange:i,formConfig:a},s)=>{const{custom:l}=t.useTheme(),{fields:c,reValidateMode:u,styleOverrides:d,autoComplete:p,formId:m,mode:f}=a,{reset:h,getValues:x,trigger:b,setValue:y,control:v,formState:{isValid:C,errors:w},setFocus:k,handleSubmit:j,watch:S}=g.useForm({mode:f||"onChange",reValidateMode:u,defaultValues:e.useMemo((()=>ms(c)),[]),shouldUnregister:!0});e.useEffect((()=>{(function(e,t){const r=new Set(e),o=new Set(t);return e.every((e=>o.has(e)))&&t.every((e=>r.has(e)))})(c.map((({name:e})=>e)),Object.keys(x()))||c.forEach((e=>{"html"!==e.fieldType&&e.defaultValue&&y(e.name,fs(e,e.defaultValue))}))}),[c]),e.useEffect((()=>{h(ms(c))}),[m]),e.useImperativeHandle(s,(()=>({set(e,t){y(e,t)},resetForm(){h()},focus(e){k(e)},submit(){n&&j(n)()},values:()=>x(),valid:()=>C,errors:()=>w,async triggerFormValidation(){await b()}})));const M=()=>{i&&i(x())};return L.jsxs(t.Box,{component:"form",autoComplete:p,noValidate:!0,sx:d?.sxForm,...n&&{onSubmit:j(n)},children:[L.jsx(t.Stack,{gap:l.margin.md,sx:d?.sxStack,children:c.map((({name:t,...r})=>e.createElement(ps,{...i&&{internalChange:M},name:t,key:t,errors:w,control:v,watch:S,trigger:b,...r,defaultValue:ms(c)[t]})))}),(o||r)&&L.jsxs(t.Stack,{direction:"row",sx:d?.sxButtons||{mt:l.margin.lg,gap:l.margin.sm,justifyContent:"flex-end"},children:[o&&o,r&&r]})]})})),gs=e=>{const t=e.toLowerCase();return["a","e","i","o","u"].some((e=>t.startsWith(e)))?"an":"a"},xs=(e,t,r)=>({maxLength:{value:r||255,message:`Maximum character limit of ${r||255}.`},...t&&{required:e?`Please enter ${gs(e)} ${e}`:"This field is required"}}),bs=xs().maxLength.value;var ys={headings:{"01-starter":{heading:"Starter",pricing:"{{currencySymbol}} {{starterPrice}} / month"},"02-team":{heading:"Team",pricing:"{{currencySymbol}} {{teamPrice}} / month"},"03-plus":{heading:"Plus",pricing:"{{currencySymbol}} {{plusPrice}} / month"},"04-scale":{heading:"Scale",pricing:"{{currencySymbol}} {{scalePrice}} / month"}},rows:{"01-seats":{heading:"Seats",description:"The number of users you can have on your account.",starter:"1",team:"10",plus:"50",scale:"100+"},"02-servicing":{heading:"Client servicing included",description:"Get direct communication with a Loops Customer Success Manager.",starter:"{{dash}}",team:"{{dash}}",plus:"Serviced lite",scale:"💪\nFully serviced"},"03-respondents":{heading:"Price per respondent",description:"The amount you pay to recruit and survey each respondent.",starter:"{{currencySymbol}}{{starterRespondentPrice}}",team:"{{currencySymbol}}{{teamRespondentPrice}}",plus:"{{currencySymbol}}{{plusRespondentPrice}}",scale:"{{currencySymbol}}{{scaleRespondentPrice}}"},"04-questions":{heading:"Question limit",description:"The maximum number of questions you can add to a test.",starter:"10",team:"15",plus:"20",scale:"25"},"05-ai":{heading:"AI-powered insights",description:"Use Loops AI to summarise the findings from your tests.",starter:"Basic",team:"✨\nAdvanced",plus:"✨\nAdvanced",scale:"✨\nAdvanced"},"06-demographics":{heading:"Demographic filters",description:"Reach your target audience using built-in demographic filters.",starter:"Basic",team:"🎯\nAdvanced",plus:"🎯\nAdvanced",scale:"🎯\nAdvanced"},"07-training":{heading:"Training",description:"Our team will onboard you and get you set up.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"08-invite":{heading:"Invite your own respondents",description:"Share your test with your own recruited audience.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"09-email":{heading:"Email capture",description:"Ability to collect respondent email addresses.",starter:"{{dash}}",team:"{{tick}}",plus:"{{tick}}",scale:"{{tick}}"},"10-beta":{heading:"Beta features",description:"Assess to our latest features as they become available.",starter:"{{dash}}",team:"{{dash}}",plus:"{{tick}}",scale:"{{tick}}"},"11-sso":{heading:"Single sign on (SSO)",description:"Enterprise level authentication using SAML (supports Okta and OneLogin).",starter:"{{dash}}",team:"{{dash}}",plus:"{{dash}}",scale:"{{tick}}"},"12-minimum":{heading:"Minimum term",description:"The minimum subscription period.",starter:"30 days",team:"6 months",plus:"6 months",scale:"12 months"}}};const vs=({text:e})=>{const r=t.useTheme(),o="{{tick}}"===e,n="{{dash}}"===e;return L.jsx(t.Box,{sx:{display:"flex",alignItems:"center",textAlign:"center",width:122},children:L.jsxs(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",p:{sm:.5,md:1},flex:1},children:[o&&L.jsx(Q,{name:"check",size:24}),n&&L.jsx(Q,{name:"dash",size:24}),!o&&!n&&L.jsx(Pe,{variation:"lg",component:"p",sx:{color:r.custom.palette.text.secondary,hyphens:"none",whiteSpace:"pre"},children:L.jsx(L.Fragment,{children:e})})]})})},Cs=()=>{const t="object"==typeof window;function r(){return{width:t?window.innerWidth:void 0,height:t?window.innerHeight:void 0}}const[o,n]=e.useState(r);return e.useEffect((()=>{if(t)return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o);function o(){e.startTransition((()=>{n(r())}))}}),[]),o},ws="https://useloops-public.s3.eu-west-2.amazonaws.com/public/fonts/",ks=(e,r,o)=>t.createTheme({direction:o,custom:{palette:{black:"#000000",white:"#ffffff",neutral:ke[e],neutralAlpha:"light"===e?be:ye,purple:Se[e],red:Me[e],peach:Ee[e],yellow:Oe[e],blue:$e[e],green:Te[e],icon:Ie[e].icon,interaction:Ie[e].interaction,stroke:Ie[e].stroke,surface:Ie[e].surface,text:Ie[e].text,input:Ie[e].input},margin:Z,padding:K,radius:G,elevation:U,elevationFilter:q,boxShadow:Y,easing:X,typography:Ve[r]},palette:{mode:e,primary:{main:ve[500]}},spacing:H,shape:{borderRadius:H,hotspot:{default:12,active:24}},breakpoints:{values:A},typography:{fontFamily:`"${Le.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:ze(r),styleOverrides:{root:{color:Ie[e].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${ke[e][0]};\n\t\t\t\t\t\tmin-width: 320px;\n\t\t\t\t\t}\n\t\t\t\t\ta {\n\t\t\t\t\t\tcolor: inherit;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\t}\n\t\t\t\t\tb {\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t}\n @font-face {\n font-family: '${Be.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Be.default.weight};\n src: url(${ws}${Be.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Be.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Be.bold.weight};\n src: url(${ws}${Be.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Le.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Le.default.weight};\n src: url(${ws}${Le.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${Le.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${Le.bold.weight};\n src: url(${ws}${Le.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${A.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${A.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiTooltip:{styleOverrides:{arrow:({theme:{custom:e}})=>({color:e.palette.surface.overlay}),tooltip:({theme:{custom:e}})=>({backgroundColor:e.palette.surface.overlay,borderRadius:e.radius.md,color:e.palette.text.primary,backdropFilter:"blur(0)",filter:e.elevationFilter.overlay,fontFamily:Le.name,fontSize:e.typography.body.sm,fontWeight:400,padding:`${e.padding.sm*H}px ${e.padding.md*H}px`})}},MuiAvatarGroup:{styleOverrides:{root:{flexDirection:"row"},avatar:({theme:{custom:e}})=>({border:`1px solid ${e.palette.stroke.default}`,marginLeft:0,marginRight:-8,":last-child":{marginLeft:"auto"}})}}}}),js=e.createContext(null),Ss=()=>L.jsx(t.GlobalStyles,{styles:{"strong, b":{fontWeight:500}}}),Ms=ta({key:"muirtl",stylisPlugins:[a.prefixer,w]}),Es=ta({key:"mui"});exports.AnnualController=({body:e,currency:r,changeCurrencyEvent:o=()=>{},frequency:n,heading:i,setCurrency:a=()=>{},setFrequency:s=()=>{},togglePayAnnuallyEvent:l=()=>{}})=>{const c=t.useTheme(),u=di(),d=[{value:"gbp",label:"£"},{value:"eur",label:"€"},{value:"usd",label:"$"}];return L.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:c.custom.palette.surface.default,borderRadius:c.custom.radius.round,boxShadow:c.custom.elevation.raised,display:"flex",gap:{sm:2,lg:4},mb:2,mt:4,px:{sm:2,lg:4},py:{sm:1,lg:2}},children:[L.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:1},children:[L.jsx(Qa,{defaultChecked:!0,onChange:()=>(l(),void s("monthly"===n?"annual":"monthly")),role:"switch","aria-checked":"monthly"!==n,"aria-label":"Switch between monthly and annual billing",inputProps:{"aria-label":"Input for switch between monthly and annual billing"}}),L.jsxs(t.Stack,{sx:{alignItems:"flex-start",display:"flex"},children:[L.jsx(Pe,{variation:"sm"===u||"md"===u?"md":"xxl",component:"p",children:i}),L.jsx(Pe,{variation:"sm",component:"p",sx:{color:c.custom.palette.text.secondary},children:e})]})]}),L.jsx(wa,{name:"currency",onChange:e=>{return t=e.target.value,o(t),void a(t);var t},selections:d,value:d.find((e=>e.value===r))?.value,sx:{minWidth:{sm:64,lg:72},height:{sm:V,lg:z}}})]})},exports.AuthContainerSurface=({children:e,headContent:r,sx:o,...n})=>{const i=t.useTheme();return L.jsxs(Ja,{sx:{mx:[i.spacing(i.custom.margin.md),0],width:1,maxWidth:[512]},...n,children:[r&&L.jsx(t.Box,{sx:{width:"100%",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",pt:i.spacing(i.custom.margin.md),px:i.spacing(i.custom.margin.md)},children:r}),L.jsx(t.Box,{sx:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",pt:r?[i.spacing(i.custom.margin.md)]:[i.spacing(i.custom.padding.lg),i.spacing(i.custom.padding.xl)],px:[i.spacing(i.custom.padding.lg),i.spacing(i.custom.padding.xl)],pb:[i.spacing(i.custom.padding.lg),i.spacing(i.custom.padding.xl)]},children:e})]})},exports.AuthFormHeader=({logo:e,headerText:r,subText:o})=>{const n=t.useTheme();return L.jsxs(t.Stack,{gap:n.spacing(n.custom.margin.md),alignItems:"center",mb:n.spacing(n.custom.margin.lg),children:[!1===e?null:e||L.jsx(Q,{name:"loopsOfficial",sx:{width:{sm:79,md:79,lg:106},height:{sm:24,md:24,lg:32}}}),L.jsxs(t.Stack,{gap:n.spacing(n.custom.margin.md),children:[r&&L.jsx(Pe,{variation:"sm",component:"h1",align:"center",weight:"bold",children:r}),function(){if(o)return"string"==typeof o?L.jsx(Pe,{variation:"md",component:"p",align:"center",children:o}):o}()]})]})},exports.Avatar=({variation:e="lg",children:r,...o})=>{const{custom:n}=t.useTheme();switch(e){case"sm":return L.jsx(t.Avatar,{sx:{border:`1px solid ${n.palette.stroke.default}`,height:32,width:32},...o,children:r});case"lg":return L.jsx(t.Avatar,{sx:{border:`1px solid ${n.palette.stroke.default}`,height:48,width:48},...o,children:r})}},exports.AvatarGroup=({variation:e="primary",...r})=>{if("primary"===e)return L.jsx(t.AvatarGroup,{...r})},exports.Button=ot,exports.CheckBoxGroup=ut,exports.Checkbox=st,exports.ColorBackgroundContainer=({sx:e,children:r,texture:n="noise1",gradient:i="tone1",...a})=>{const s=t.useTheme();return L.jsx(t.Container,{maxWidth:!1,disableGutters:!0,sx:o.mergeSx({background:mt(s,{texture:n,gradient:i}),height:"100%",p:[0,0,0]},!!e&&{...e}),...a,children:r})},exports.DEFAULT_MAX_INPUT_LENGTH=bs,exports.Differential=jt,exports.DropdownMenu=({open:e,anchorEl:r,handleClick:o,handleClose:n,items:i,...a})=>L.jsx(L.Fragment,{children:L.jsx(St,{anchorEl:r,open:e,onClose:n,MenuListProps:{"aria-labelledby":"basic-button"},elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...a,children:i?.map(((e,r)=>L.jsxs(t.MenuItem,{onClick:e.onClick,...e.menuItemProps,children:[e.icon&&L.jsx(t.Box,{mr:1,children:e.icon}),e.label]},r)))})}),exports.FormControlLabel=nt,exports.FormGenerator=hs,exports.GridOverlay=({breakpoint:e})=>{const r=t.useTheme(),o=Array.from({length:6},((e,t)=>t));return e||(e=di()),L.jsxs(t.Stack,{sx:{alignItems:"center",height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:({zIndex:e})=>e.tooltip},children:[L.jsx(t.Container,{sx:{background:r.custom.palette.red[300],display:"flex",flex:1,opacity:.3,position:"relative"},children:L.jsx(t.Box,{sx:{background:r.custom.palette.purple[300],display:"flex",flex:1},children:L.jsxs(t.Grid,{container:!0,spacing:2,children:[o.map((e=>L.jsx(t.Grid,{item:!0,sm:!0,sx:{display:{sm:"none",md:"block"}},children:L.jsx(t.Box,{sx:{background:r.custom.palette.green[300],height:"100%"}})},`grid-1-${e}`))),o.map((e=>L.jsx(t.Grid,{item:!0,sm:!0,sx:{display:{sm:"block"}},children:L.jsx(t.Box,{sx:{background:r.custom.palette.green[300],height:"100%"}})},`grid-2-${e}`)))]})})}),!!e&&L.jsx(t.Box,{sx:{backgroundColor:r.custom.palette.surface.default,borderRadius:r.spacing(r.custom.radius.md),bottom:16,filter:r.custom.elevationFilter.raised,display:"block",left:16,position:"fixed",px:2,py:1},children:L.jsx(Pe,{variation:"sm",component:"p",weight:"bold",children:e})})]})},exports.Html=pi,exports.Icon=Q,exports.IconButton=ki,exports.IconButtonGroup=({ButtonGroupProps:e,children:t,...r})=>L.jsx(Mi,{...r,...e,children:t}),exports.InputLabel=Ei,exports.InputLabelHelp=gt,exports.Likert=Ai,exports.Link=Pi,exports.Loader=()=>L.jsx(t.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100dvh - 80px)"},children:L.jsx("img",{src:"https://useloops-public.s3.eu-west-2.amazonaws.com/public/landing/brand/loading-animation.gif",width:125})}),exports.Logo=e=>L.jsx("svg",{viewBox:"0 0 80 25",fill:"currentColor",...e,children:L.jsx("path",{d:"M8.72886 20.0975C7.43461 19.1995 7.16357 18.9302 7.16357 16.9549V0.988281H-0.000106812V1.28748L0.0165316 1.29764C1.3293 2.09875 1.92633 2.46309 1.92633 4.43011V16.9549C1.92633 18.9302 1.65553 19.1995 0.361043 20.0975V20.3965H8.72886V20.0975ZM14.5709 13.437C13.7868 9.01598 14.1045 7.0153 16.0905 6.66718C18.0767 6.31907 19.0631 8.09095 19.8472 12.512C20.6311 16.933 20.3137 18.9335 18.3275 19.2816C16.3415 19.6299 15.3548 17.8578 14.5709 13.437ZM9.11663 14.3934C9.93203 18.9911 14.141 21.3529 18.5575 20.5785C22.9743 19.8041 26.1169 16.1534 25.3015 11.5559C24.4861 6.95793 20.2773 4.5961 15.8605 5.3705C11.444 6.14467 8.30123 9.79541 9.11663 14.3934ZM33.3669 6.66718C31.381 7.0153 31.0633 9.01598 31.8474 13.437C32.6313 17.8578 33.618 19.6299 35.6039 19.2816C37.5901 18.9335 37.9076 16.933 37.1237 12.512C36.3396 8.09095 35.3531 6.31907 33.3669 6.66718ZM35.834 20.5785C31.4175 21.3529 27.2085 18.9911 26.3931 14.3934C25.5777 9.79541 28.7205 6.14467 33.137 5.3705C37.5538 4.5961 41.7625 6.95793 42.5779 11.5559C43.3933 16.1534 40.2508 19.8041 35.834 20.5785ZM52.9075 18.9002C51.0712 18.9002 49.6266 16.8353 49.6266 14.441V12.3162C49.6266 9.6524 50.9209 7.64737 52.9075 7.64737C54.9843 7.64737 56.0078 9.53285 56.0078 12.7351C56.0078 16.955 54.9542 18.9002 52.9075 18.9002ZM51.6733 24.5936C50.1696 23.7488 49.6266 23.4437 49.6266 21.5189V17.9125C50.4091 19.4689 51.9744 20.6958 54.5629 20.6958C58.476 20.6958 61.5762 17.763 61.5762 12.7052C61.5762 7.55754 58.5663 5.25308 55.1047 5.25308C52.2753 5.25308 50.3187 6.83937 49.6266 9.02405L49.5063 5.55228H42.5833V5.85171L42.5873 5.85427C43.8786 6.69033 44.3891 7.02081 44.3891 8.99411V21.5189C44.3891 23.4942 44.1183 23.7637 42.824 24.6613V24.9605H51.7937V24.6613L51.6733 24.5936ZM79.8954 18.9002C79.8954 19.8689 79.1055 20.6543 78.1313 20.6543C77.157 20.6543 76.3671 19.8689 76.3671 18.9002C76.3671 17.9315 77.157 17.1462 78.1313 17.1462C79.1055 17.1462 79.8954 17.9315 79.8954 18.9002ZM70.0692 10.2734C68.0387 9.67975 66.9044 9.34812 66.9044 8.15614C66.9044 7.16849 67.8074 6.71957 68.8309 6.71957C70.7874 6.71957 72.3224 7.827 74.0985 10.4007H74.5196V5.25306H74.2187L72.8642 6.24072C72.8031 6.21577 72.742 6.19075 72.681 6.16573C71.5696 5.71024 70.454 5.25306 68.7707 5.25306C65.55 5.25306 62.9916 7.22837 62.9916 10.1612C62.9916 12.795 64.2557 14.2912 68.8008 15.4585C70.4863 15.8775 71.6601 16.1767 71.6601 17.4636C71.6601 18.6608 70.4863 19.2293 69.0718 19.2293C66.9044 19.2293 65.3093 17.763 63.2021 14.9797H62.7509L63.0819 20.6661H63.413L64.6169 19.4688C65.5801 19.9477 67.0851 20.6958 69.1019 20.6958C72.9546 20.6958 75.6334 18.571 75.6334 15.5783C75.6334 12.4956 73.7672 11.3584 70.095 10.2809L70.0692 10.2734Z"})}),exports.NumberField=Ni,exports.Pill=({body:e,maxWidth:t,...r})=>L.jsx(zi,{label:e,sx:{...t&&{maxWidth:`${t}px`}},...r}),exports.PlanFeatureTable=({currencySymbol:e,data:r,starterPrice:o,starterRespondentPrice:n,teamPrice:i,teamRespondentPrice:a,plusPrice:s,plusRespondentPrice:l,scalePrice:c,scaleRespondentPrice:u,variation:d="default"})=>{const p=t.useTheme();r||(r=ys);const m=Object.values(r.headings).map((({heading:t,pricing:r})=>({heading:t,pricing:r.replace("{{currencySymbol}}",e).replace("{{starterPrice}}",o).replace("{{teamPrice}}",i).replace("{{plusPrice}}",s).replace("{{scalePrice}}",c)}))),f=t=>t.replace("{{currencySymbol}}",e).replace("{{starterRespondentPrice}}",n||"").replace("{{teamRespondentPrice}}",a||"").replace("{{plusRespondentPrice}}",l||"").replace("{{scaleRespondentPrice}}",u||""),h=[...Object.values(r.rows).map(((e,t)=>({key:`pricing-table-features-${t}`,type:"row",name:{heading:e.heading,description:e.description},starter:f(e.starter),team:f(e.team),plus:f(e.plus),scale:f(e.scale)})))];return L.jsxs(t.Stack,{sx:{backgroundColor:p.custom.palette.surface.default,borderRadius:p.spacing(p.custom.radius.xl),boxShadow:p.custom.elevation.raised,display:"flex",gap:2,pb:{sm:2,lg:4},px:{sm:2,lg:4},minWidth:{sm:680}},children:[L.jsxs(t.Box,{sx:{display:"flex",py:2,px:1,justifyContent:"space-between"},children:[L.jsx(t.Box,{sx:{width:160}}),m.map((({heading:e,pricing:r})=>L.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",justifyContent:"center",width:122},children:[L.jsx(Pe,{variation:"platform"===d?"lg":"xxl",component:"p",weight:"bold",children:e}),L.jsx(Pe,{variation:"platform"===d?"sm":"md",component:"p",sx:{color:p.custom.palette.text.secondary},children:r})]},e)))]}),h.map((e=>L.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",p:1,"&:nth-of-type(odd)":{backgroundColor:p.custom.palette.surface.sunken}},children:[L.jsx(t.Box,{sx:{display:"flex",alignItems:"center",width:160},children:L.jsxs(t.Box,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",flex:1,gap:1},children:[e.name.description&&L.jsx(ns,{message:e.name.description,children:L.jsx(t.Box,{sx:{alignItems:"center",color:p.custom.palette.icon.secondary,display:"flex"},children:L.jsx(Q,{name:"info",size:24})})}),L.jsx(Pe,{variation:"platform"===d?"md":"lg",component:"p",children:e.name.heading})]})}),L.jsx(vs,{text:e.starter}),L.jsx(vs,{text:e.team}),L.jsx(vs,{text:e.plus}),L.jsx(vs,{text:e.scale})]},e.key)))]})},exports.PlanTierCard=({amount:r,billingType:o,body:n,ctaEvent:i=()=>{},ctaLink:a="#",ctaTarget:s="_self",ctaText:l,ctaVariation:c="primary",currencySymbol:u,currentPlan:d,features:p=[],freeTrialLength:m,freeTrialText:f,frequency:h,heading:g,label:x,largestHeaderHeight:b=0,perMonth:y,setLargestHeaderHeight:v=()=>{},variation:C="default"})=>{const w=t.useTheme(),k=di(),{width:j}=Cs(),S=e.useRef(null),[M,E]=e.useState("sm");return e.useEffect((()=>{e.startTransition((()=>{E(k),k!==M&&v(0),S.current&&S.current.offsetHeight>b&&v(S.current.offsetHeight)}))}),[k,M,j]),L.jsxs(t.Stack,{sx:{display:"flex",flex:1,position:"relative"},children:[L.jsx(t.Stack,{sx:{alignItems:"center",backgroundColor:w.custom.palette.icon.primary,borderTopLeftRadius:w.spacing(w.custom.radius.lg),borderTopRightRadius:w.spacing(w.custom.radius.lg),boxShadow:w.custom.elevation.overlay,color:w.custom.palette.text.primaryInverted,justifyContent:"center",p:{sm:1,lg:2},textTransform:"uppercase",opacity:x?1:0,display:{sm:x?"flex":"none",md:"flex"}},children:L.jsx(Pe,{variation:"md",component:"p",weight:"bold",sx:{color:w.custom.palette.white},children:x||" "})}),L.jsxs(t.Stack,{sx:{backgroundColor:w.custom.palette.surface.default,borderBottomLeftRadius:w.spacing(w.custom.radius.lg),borderBottomRightRadius:w.spacing(w.custom.radius.lg),borderTopLeftRadius:x?0:w.spacing(w.custom.radius.lg),borderTopRightRadius:x?0:w.spacing(w.custom.radius.lg),boxShadow:w.custom.elevation.overlay,display:"flex",flex:1},children:[L.jsxs(t.Stack,{sx:{display:"flex",gap:"sm"===k||"md"===k?1:2,textAlign:"center",minHeight:{sm:"none",md:b},px:2,py:{sm:2,lg:4}},ref:S,children:[L.jsx(Pe,{variation:"sm"===k?"xxl":"platform"===C?"md":"lg",component:"h2",weight:"bold",children:g}),L.jsx(Pe,{variation:"sm"===k?"md":"platform"===C?"md"===k?"sm":"md":"md"===k?"md":"lg",component:"p",sx:{color:w.custom.palette.text.secondary},children:n})]}),L.jsxs(t.Stack,{sx:{alignItems:"center",display:"flex",gap:2,minHeight:{sm:"none",md:168,lg:"platform"===C?184:240,xl:"platform"===C?184:226},px:2,py:{sm:2,md:2,lg:"platform"===C?2:6}},children:[L.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex",gap:.5,justifyContent:"center"},children:[L.jsx(Pe,{variation:"md"===k?"sm":"xxl",component:"p",weight:"bold",sx:{lineHeight:1,marginBottom:-.15,marginRight:-.4},children:u}),L.jsx(Pe,{variation:"xxl",component:"p",weight:"bold",sx:{fontSize:{sm:48,md:26,lg:48},lineHeight:.8},children:r}),y&&L.jsx(Pe,{variation:"sm",component:"p",sx:{color:w.custom.palette.text.secondary,lineHeight:1,marginLeft:-.5},children:y})]}),m&&f&&L.jsxs(t.Box,{sx:{alignItems:"center",backgroundColor:w.custom.palette.yellow[300],borderRadius:w.custom.radius.round,boxShadow:w.custom.elevation.raised,display:"flex",gap:{sm:.5,md:1},px:2,py:1},children:[L.jsx(Q,{name:"gift",size:24}),L.jsxs(t.Box,{sx:{display:"flex",flexDirection:{sm:"row",md:"column",lg:"row"},gap:{sm:.5,md:0,lg:.5}},children:[L.jsx(Pe,{variation:"md",component:"p",weight:"bold",sx:{lineHeight:1},children:m}),L.jsx(Pe,{variation:"md",component:"p",sx:{lineHeight:1},children:f})]})]}),o&&L.jsx(Pe,{variation:"sm",component:"p",sx:{color:w.custom.palette.text.placeholder},children:o})]}),L.jsxs(t.Stack,{sx:{display:"flex",flexDirection:{sm:"column-reverse",md:"column"}},children:[L.jsx(t.Box,{sx:{py:{sm:2,md:0},px:{sm:2,lg:4}},children:L.jsx(Pi,{href:a,title:l,target:s,onClick:()=>{g&&i(g)},sx:{"&:hover":{cursor:d?"default":"pointer"}},children:L.jsx(ot,{fullWidth:!0,variation:c,sizing:"lg",disabled:d,children:l})})}),p?.length&&L.jsx(t.Stack,{sx:{alignItems:"center",gap:.5,px:{sm:2,lg:4},py:{sm:2,md:4,lg:"platform"===C?4:6}},children:p.map(((e,r)=>L.jsxs(t.Box,{sx:{alignItems:"center",display:"flex",gap:1,maxWidth:200,width:"100%"},children:[L.jsx(Q,{name:"positive",size:24}),L.jsx(Pe,{variation:"md",component:"p",children:e})]},`${g}-feature-${r}`)))})]})]})]})},exports.PlanTierCardScale=({body:e,ctaEvent:r=()=>{},ctaLink:o="",ctaTarget:n="_blank",ctaText:i,currencySymbol:a,heading:s,postText:l,preText:c,amount:u})=>{const d=t.useTheme();return L.jsxs(t.Box,{sx:{backgroundColor:d.custom.palette.purple[0],borderRadius:d.spacing(d.custom.radius.lg),display:"flex",flexDirection:{sm:"column",md:"row"},textAlign:{sm:"center",md:"left"},boxShadow:d.custom.elevation.overlay,flex:1,gap:{sm:4,md:2},p:{sm:2,lg:4}},children:[L.jsxs(t.Stack,{sx:{flex:1,gap:2,justifyContent:"center"},children:[L.jsx(Pe,{variation:"md",component:"h2",sx:{fontWeight:500},children:s}),L.jsx(Pe,{variation:"md",component:"p",sx:{color:d.custom.palette.text.secondary},children:e})]}),L.jsxs(t.Stack,{sx:{flex:1,gap:{sm:4,md:2},justifyContent:"center",maxWidth:{sm:"none",md:180,lg:320},p:{sm:0,md:2,lg:4}},children:[L.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex",justifyContent:"center"},children:[L.jsx(Pe,{variation:"md",component:"p",sx:{color:d.custom.palette.text.placeholder,pr:.5},children:c}),L.jsxs(t.Box,{sx:{alignItems:"flex-end",display:"flex"},children:[L.jsx(Pe,{variation:"xxl",component:"p",sx:{fontWeight:500,lineHeight:1.2},children:a}),L.jsx(Pe,{variation:"xxl",component:"p",sx:{fontWeight:500,fontSize:{sm:"1.6rem",lg:"2.2rem"},lineHeight:{sm:1.15,lg:1}},children:u})]}),L.jsx(Pe,{variation:"md",component:"p",sx:{color:d.custom.palette.text.placeholder,pl:.1},children:l})]}),L.jsx(Pi,{href:o,title:i,target:n,onClick:()=>{s&&r(s)},children:L.jsx(ot,{fullWidth:!0,variation:"outlined",sizing:"lg",children:i})})]})]})},exports.Portal=t=>{const[r,o]=e.useState(null),n=r?.contentWindow?.document?.body,i=ta({key:"css",container:r?.contentWindow?.document?.head,prepend:!0});return L.jsx(ra,{ref:o,children:n&&l.createPortal(L.jsx(s.CacheProvider,{value:i,children:t.children}),n)})},exports.PoweredByWatermarkLogo=()=>L.jsxs(t.Stack,{gap:.5,flexDirection:"row",children:[L.jsx(t.SvgIcon,{sx:{width:67,height:12},viewBox:"0 0 67 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("path",{d:"M2.09034 4.64868H4.09536C5.65956 4.64868 6.41322 4.00878 6.41322 2.84274C6.41322 1.69092 5.65956 1.05102 4.09536 1.05102H2.09034V4.64868ZM2.09034 5.6583V9H0.86742V0.0413991H4.1238C6.34212 0.0413991 7.6077 1.09368 7.6077 2.84274C7.6077 4.60602 6.34212 5.6583 4.1238 5.6583H2.09034ZM9.27266 5.90004C9.27266 7.27938 9.96944 8.26056 11.2208 8.26056C12.4864 8.26056 13.1974 7.27938 13.1974 5.90004C13.1974 4.50648 12.4864 3.53952 11.2208 3.53952C9.96944 3.53952 9.27266 4.50648 9.27266 5.90004ZM14.4061 5.90004C14.4061 7.83396 13.0552 9.17064 11.2208 9.17064C9.40064 9.17064 8.06396 7.83396 8.06396 5.90004C8.06396 3.96612 9.40064 2.61522 11.2208 2.61522C13.0552 2.61522 14.4061 3.96612 14.4061 5.90004ZM19.9082 2.78586L21.2449 7.49268H21.3018L22.738 2.78586H23.8329L21.8564 9H20.7188L19.3963 4.36428H19.3394L18.0312 9H16.8936L14.9028 2.78586H16.083L17.5477 7.49268H17.6046L18.9128 2.78586H19.9082ZM29.4445 6.78168L30.4257 6.89544C30.1271 8.31744 29.0748 9.17064 27.5248 9.17064C25.6762 9.17064 24.3253 7.91928 24.3253 5.98536C24.3253 4.023 25.6762 2.61522 27.4679 2.61522C29.4445 2.61522 30.4541 4.023 30.4541 5.71518V6.17022H25.5056C25.5624 7.40736 26.4299 8.24634 27.539 8.24634C28.5771 8.24634 29.2028 7.74864 29.4445 6.78168ZM25.534 5.445H29.2454C29.217 4.43538 28.634 3.51108 27.4679 3.51108C26.3445 3.51108 25.662 4.40694 25.534 5.445ZM35.5059 2.89962L35.3921 3.96612C35.0509 3.78126 34.8091 3.71016 34.4252 3.71016C33.5293 3.71016 32.861 4.5207 32.861 5.71518V9H31.6807V2.78586H32.861V4.05144C33.0885 3.34044 33.7284 2.61522 34.6243 2.61522C35.0082 2.61522 35.2926 2.71476 35.5059 2.89962ZM40.9288 6.78168L41.91 6.89544C41.6114 8.31744 40.5591 9.17064 39.0091 9.17064C37.1605 9.17064 35.8096 7.91928 35.8096 5.98536C35.8096 4.023 37.1605 2.61522 38.9522 2.61522C40.9288 2.61522 41.9384 4.023 41.9384 5.71518V6.17022H36.9899C37.0468 7.40736 37.9142 8.24634 39.0233 8.24634C40.0614 8.24634 40.6871 7.74864 40.9288 6.78168ZM37.0183 5.445H40.7297C40.7013 4.43538 40.1183 3.51108 38.9522 3.51108C37.8289 3.51108 37.1463 4.40694 37.0183 5.445ZM47.8993 6.07068V5.71518C47.8993 4.36428 47.0461 3.56796 45.9227 3.56796C44.6998 3.56796 44.0172 4.47804 44.0172 5.90004C44.0172 7.32204 44.6998 8.23212 45.9227 8.23212C47.0461 8.23212 47.8993 7.4358 47.8993 6.07068ZM47.8851 9V7.70598C47.6007 8.47386 46.8186 9.17064 45.6525 9.17064C43.8039 9.17064 42.8085 7.73442 42.8085 5.90004C42.8085 4.06566 43.8039 2.61522 45.6525 2.61522C46.8186 2.61522 47.6007 3.32622 47.8851 4.0941V0.0413991H49.0653V9H47.8851ZM54.3847 5.71518V6.07068C54.3847 7.4358 55.2521 8.23212 56.3755 8.23212C57.5984 8.23212 58.2668 7.32204 58.2668 5.90004C58.2668 4.47804 57.5984 3.56796 56.3755 3.56796C55.2521 3.56796 54.3847 4.36428 54.3847 5.71518ZM54.3847 7.70598L54.1288 9H53.2329V0.0413991H54.4132V4.0941C54.6833 3.32622 55.4797 2.61522 56.6457 2.61522C58.4801 2.61522 59.4897 4.06566 59.4897 5.90004C59.4897 7.73442 58.4801 9.17064 56.6315 9.17064C55.4797 9.17064 54.6691 8.48808 54.3847 7.70598ZM62.6822 11.389H61.5304L62.54 8.98578L59.9235 2.78586H61.1607L63.1372 7.56378H63.1941L65.0996 2.78586H66.2656L62.6822 11.389Z",fill:"#473F5C"})}),L.jsxs(t.SvgIcon,{sx:{width:40,height:12},viewBox:"0 0 40 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[L.jsx("g",{id:"Brand/Wordmark",clipPath:"url(#clip0_900_1816)",children:L.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M4.3189 9.56522C3.67851 9.11556 3.54429 8.98169 3.54429 7.99199V0H0V0.149886L0.00580287 0.153463C0.656931 0.554852 0.953183 0.737477 0.953183 1.72311V7.99199C0.953183 8.98169 0.818964 9.11556 0.17858 9.56522V9.7151H4.3189V9.56522ZM4.51113 6.71053C4.91378 9.01144 6.99646 10.1934 9.18264 9.80664C11.3677 9.41876 12.9226 7.58467 12.5199 5.28947C12.1173 2.99428 10.0346 1.80549 7.84841 2.19336C5.66223 2.58124 4.10847 4.40961 4.51113 6.71053ZM7.2103 6.23112C6.8247 4.01831 6.98053 3.01716 7.96215 2.84325C8.94377 2.66819 9.43515 3.55263 9.82074 5.76545C10.2063 7.97826 10.0516 8.97483 9.06889 9.15332C8.08613 9.33181 7.59589 8.44394 7.2103 6.23112ZM17.7306 9.80664C15.5455 10.1934 13.4629 9.01144 13.0591 6.71053C12.6553 4.40961 14.2102 2.58124 16.3963 2.19336C18.5825 1.80549 20.6641 2.99428 21.0678 5.28947C21.4716 7.58467 19.9156 9.41876 17.7306 9.80664ZM16.5101 2.84325C15.5273 3.01716 15.3726 4.01831 15.7582 6.23112C16.1438 8.44394 16.6341 9.33181 17.6168 9.15675C18.5996 8.98169 18.7543 7.98169 18.3687 5.76888C17.9831 3.55606 17.4928 2.66819 16.5101 2.84325ZM25.5683 11.8168C24.8234 11.3931 24.5553 11.2406 24.5553 10.2769L24.5575 8.4794C24.9443 9.25858 25.7189 9.873 26.9997 9.873C28.9356 9.873 30.47 8.40046 30.47 5.86842C30.47 3.29176 28.9743 2.13844 27.2681 2.13844C25.8679 2.13844 24.8988 2.93249 24.5575 4.02631L24.4973 2.28833H21.0724V2.43135L21.0731 2.43181C21.713 2.85024 21.9653 3.01524 21.9653 4.00458V10.2769C21.9653 11.2654 21.8322 11.4005 21.1907 11.8501V12H25.6267V11.8501L25.5683 11.8168ZM26.1784 8.9611C25.2696 8.9611 24.5553 7.92792 24.5553 6.72998V5.66247C24.5553 4.32952 25.1957 3.32494 26.1784 3.32494C27.2055 3.32494 27.7117 4.27002 27.7117 5.87185C27.7117 7.98741 27.1907 8.9611 26.1784 8.9611ZM38.6585 9.84325C39.1403 9.84325 39.5309 9.45034 39.5309 8.96567C39.5309 8.481 39.1403 8.0881 38.6585 8.0881C38.1767 8.0881 37.7861 8.481 37.7861 8.96567C37.7861 9.45034 38.1767 9.84325 38.6585 9.84325ZM34.6585 4.64621C33.661 4.35019 33.0998 4.18365 33.0998 3.5881C33.0998 3.08924 33.5548 2.86842 34.0552 2.86842C35.0244 2.86842 35.783 3.42334 36.6623 4.71167H36.8704V2.13501H36.7214L36.0515 2.62929C36.0223 2.61721 35.9931 2.6051 35.9639 2.59299C35.4126 2.36413 34.8607 2.13501 34.0257 2.13501C32.4321 2.13501 31.1661 3.12357 31.1661 4.59153C31.1661 5.90961 31.7929 6.65904 34.0416 7.24371C34.8765 7.45309 35.4566 7.60297 35.4566 8.24714C35.4566 8.84668 34.8765 9.13043 34.1758 9.13043C33.0998 9.13043 32.3138 8.39702 31.2799 7.00343H31.0524L31.2094 9.85011H31.3731L31.968 9.25057C32.4446 9.49085 33.1897 9.86499 34.1872 9.86499C36.0936 9.86499 37.4198 8.80091 37.4198 7.3032C37.4198 5.75973 36.4985 5.19107 34.6786 4.65217L34.6585 4.64621Z",fill:"#473F5C"})}),L.jsx("defs",{children:L.jsx("clipPath",{id:"clip0_900_1816",children:L.jsx("rect",{width:"39.5321",height:"12",fill:"white"})})})]})]}),exports.Progress=et,exports.Radio=vt,exports.RadioGroup=oa,exports.Rank=Aa,exports.RichTextField=Pa,exports.Select=wa,exports.Slider=Za,exports.SortableList=La,exports.StarRating=Ga,exports.Surface=Ja,exports.Switch=Qa,exports.TextArea=ts,exports.TextBarDivider=({typographyProps:e,text:r,sx:n})=>{const i=t.useTheme();return L.jsx(t.Box,{sx:o.mergeSx(n,{width:"100%",position:"relative",display:"flex",gap:4,my:i.spacing(i.custom.margin.md),"&:before":{content:'""',width:"100%",background:i.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"},"&:after":{content:'""',width:"100%",background:i.custom.palette.stroke.default,height:"1px",display:"flex",alignSelf:"center"}}),children:L.jsx(Pe,{align:"center",variation:"sm",component:"p",...e,children:r})})},exports.TextField=ct,exports.ThemeProvider=({mode:r="light",screenSize:o="lg",direction:n="ltr",children:i})=>{const a=((r="light",o="lg",n="ltr")=>{const{width:i}=Cs(),[a,s]=e.useState(r),[l,c]=e.useState(o),[u,d]=e.useState(!1),[p,m]=e.useState(ks(a,l,n)),[f,h]=e.useState(ks("light"===a?"dark":"light",l,n)),[g,x]=e.useState("");e.useEffect((()=>{e.startTransition((()=>{c(i&&i<A.lg?"sm":"lg")}))}),[i]),e.useEffect((()=>{e.startTransition((()=>{m(ks(a,l,n)),h(ks("light"===a?"dark":"light",l,n))}))}),[a,l]);const b=t.useMediaQuery(p.breakpoints.only("sm"),{noSsr:!0}),y=t.useMediaQuery(p.breakpoints.only("md"),{noSsr:!0}),v=t.useMediaQuery(p.breakpoints.between("lg","xl"),{noSsr:!0}),C=t.useMediaQuery(p.breakpoints.up("xl"),{noSsr:!0});return e.useEffect((()=>{e.startTransition((()=>{b&&x("sm"),y&&x("md"),v&&x("lg"),C&&x("xl")}))}),[b,y,v,C]),{breakpoint:g,darkTheme:f,gridOverlayVisible:u,mode:a,theme:p,toggleGridOverlay:()=>{e.startTransition((()=>{d((e=>!e))}))},toggleMode:t=>{e.startTransition((()=>{if(t)return s(t);s((e=>"light"===e?"dark":"light"))}))}}})(r,o,n);return e.useEffect((()=>{"rtl"===n&&(document.dir="rtl")}),[]),L.jsx(js.Provider,{value:a,children:L.jsx(s.CacheProvider,{value:"rtl"===n?Ms:Es,children:L.jsxs(ui,{theme:a.theme,children:[L.jsx(t.CssBaseline,{}),L.jsx(Ss,{}),i]})})})},exports.TickGroup=({heading:e,ticks:r})=>(t.useTheme(),L.jsxs(t.Stack,{sx:{display:"flex",gap:{sm:2,lg:4},py:{sm:2,lg:4}},children:[L.jsx(Pe,{variation:"xl",component:"p",sx:{textAlign:"center"},children:e}),L.jsx(t.Box,{sx:{columnGap:4,display:"flex",flex:1,flexWrap:"wrap",justifyContent:"center",rowGap:2},children:r.map(((r,o)=>L.jsxs(t.Box,{sx:{display:"flex",alignItems:"center",gap:1,px:{sm:0,lg:2}},children:[L.jsx(Q,{name:"positive",size:32}),L.jsx(Pe,{variation:"xxl",component:"p",children:r})]},`tick-group-${e}-${o}`)))})]})),exports.Toast=({buttons:e,message:r,status:o="neutral",variation:n="sm"})=>{const i=t.useTheme();return L.jsx(t.Stack,{sx:{backgroundColor:i.custom.palette.surface.overlay,borderRadius:i.spacing(i.custom.radius.lg),boxShadow:i.custom.elevation.overlay,color:i.custom.palette.text.primaryInverted,display:"flex",flex:1,gap:1,p:2},children:L.jsxs(t.Box,{sx:{display:"flex",flex:1,flexDirection:"sm"===n?"row":"column",gap:2},children:[L.jsxs(t.Box,{sx:{display:"flex",flex:1,gap:1},children:["neutral"!==o&&L.jsx(rs,{status:o}),L.jsx(t.Box,{sx:{display:"flex"},children:L.jsx(Pe,{variation:"md",component:"p",sx:{px:1,pt:.5},children:r})})]}),e&&L.jsx(t.Box,{sx:{alignItems:"center",display:"flex",gap:2,justifyContent:"flex-end"},children:e})]})})},exports.Tooltip=ns,exports.Typography=Pe,exports.backgroundCreator=mt,exports.chooseArticle=gs,exports.defaultInputValidation=xs,exports.emailValidation={pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,30}$/i,message:"Please enter a valid email"}},exports.passwordValidation=e=>({minLength:{value:e||8,message:`Password must have at least ${e||8} characters`},equal:{value:"password",message:"You cannot choose 'password' as your password"}}),exports.useDropdownMenu=()=>{const[t,r]=e.useState(null);return{open:Boolean(t),handleClick:e=>{r(e.currentTarget)},handleClose:()=>{r(null)},anchorEl:t}};
|