1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{33:(e,t,i)=>{"use strict";i.d(t,{A:()=>y});var a=i(5162),n=i(3638),r=i(550),o=i(6348),l=i(7392),s=i(9289),d=i(5952),u=i(8835),c=i(4930);let p=(0,u.A)(),m=(0,d.A)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t[`maxWidth${(0,l.A)(String(i.maxWidth))}`],i.fixed&&t.fixed,i.disableGutters&&t.disableGutters]}}),f=e=>(0,s.A)({props:e,name:"MuiContainer",defaultTheme:p});var h=i(8611),g=i(2298),v=i(9644);let y=function(e={}){let{createStyledComponent:t=m,useThemeProps:i=f,componentName:s="MuiContainer"}=e,d=t(({theme:e,ownerState:t})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}}),({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce((t,i)=>{let a=e.breakpoints.values[i];return 0!==a&&(t[e.breakpoints.up(i)]={maxWidth:`${a}${e.breakpoints.unit}`}),t},{}),({theme:e,ownerState:t})=>({..."xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},...t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}}));return a.forwardRef(function(e,t){let a=i(e),{className:u,component:p="div",disableGutters:m=!1,fixed:f=!1,maxWidth:h="lg",classes:g,...v}=a,y={...a,component:p,disableGutters:m,fixed:f,maxWidth:h},b=((e,t)=>{let{classes:i,fixed:a,disableGutters:n,maxWidth:s}=e,d={root:["root",s&&`maxWidth${(0,l.A)(String(s))}`,a&&"fixed",n&&"disableGutters"]};return(0,o.A)(d,e=>(0,r.Ay)(t,e),i)})(y,s);return(0,c.jsx)(d,{as:p,ownerState:y,className:(0,n.A)(b.root,u),ref:t,...v})})}({createStyledComponent:(0,g.Ay)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t["maxWidth".concat((0,h.A)(String(i.maxWidth)))],i.fixed&&t.fixed,i.disableGutters&&t.disableGutters]}}),useThemeProps:e=>(0,v.b)({props:e,name:"MuiContainer"})})},50:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},52:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(5858);let n=function(e,t){return t?(0,a.A)(e,t,{clone:!1}):e}},62:(e,t,i)=>{"use strict";function a(e,t,i){var a="";return i.split(" ").forEach(function(i){void 0!==e[i]?t.push(e[i]+";"):i&&(a+=i+" ")}),a}i.d(t,{Rk:()=>a,SF:()=>n,sk:()=>r});var n=function(e,t,i){var a=e.key+"-"+t.name;!1===i&&void 0===e.registered[a]&&(e.registered[a]=t.styles)},r=function(e,t,i){n(e,t,i);var a=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do e.insert(t===r?"."+a:"",r,e.sheet,!0),r=r.next;while(void 0!==r)}}},66:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=function(e){return"string"==typeof e}},133:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M8.4 18.2c.38.5.6 1.12.6 1.8 0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3c.44 0 .85.09 1.23.26l1.41-1.77c-.92-1.03-1.29-2.39-1.09-3.69l-2.03-.68c-.54.83-1.46 1.38-2.52 1.38-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3c0 .07 0 .14-.01.21l2.03.68c.64-1.21 1.82-2.09 3.22-2.32V5.91C9.96 5.57 9 4.4 9 3c0-1.66 1.34-3 3-3s3 1.34 3 3c0 1.4-.96 2.57-2.25 2.91v2.16c1.4.23 2.58 1.11 3.22 2.32L18 9.71V9.5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3c-1.06 0-1.98-.55-2.52-1.37l-2.03.68c.2 1.29-.16 2.65-1.09 3.69l1.41 1.77Q17.34 17 18 17c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3c0-.68.22-1.3.6-1.8l-1.41-1.77c-1.35.75-3.01.76-4.37 0z"}),"Hub")},181:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"Palette")},292:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var a=i(5162),n=i(6636),r=i(1792),o=i(8702),l=i(3427),s=i(5617),d=i(4930);let u={entering:{opacity:1},entered:{opacity:1}},c=a.forwardRef(function(e,t){let i=(0,o.A)(),c={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:p,appear:m=!0,children:f,easing:h,in:g,onEnter:v,onEntered:y,onEntering:b,onExit:_,onExited:x,onExiting:A,style:I,timeout:w=c,TransitionComponent:k=n.Ay,...S}=e,T=a.useRef(null),C=(0,s.A)(T,(0,r.A)(f),t),E=e=>t=>{if(e){let i=T.current;void 0===t?e(i):e(i,t)}},R=E(b),P=E((e,t)=>{(0,l.q)(e);let a=(0,l.c)({style:I,timeout:w,easing:h},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",a),e.style.transition=i.transitions.create("opacity",a),v&&v(e,t)}),O=E(y),M=E(A),N=E(e=>{let t=(0,l.c)({style:I,timeout:w,easing:h},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),_&&_(e)}
1),j=E(x);return(0,d.jsx)(k,{appear:m,in:g,nodeRef:T,onEnter:P,onEntered:O,onEntering:R,onExit:N,onExited:j,onExiting:M,addEndListener:e=>{p&&p(T.current,e)},timeout:w,...S,children:(e,t)=>{let{ownerState:i,...n}=t;return a.cloneElement(f,{style:{opacity:0,visibility:"exited"!==e||g?void 0:"hidden",...u[e],...I,...f.props.style},ref:C,...n})}})})},299:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(8492).A},453:(e,t,i)=>{"use strict";i.d(t,{A:()=>Z});var a=i(3338),n=i(5858),r=i(2989);let o={black:"#000",white:"#fff"},l={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"},s={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},d={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},u={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},c={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},p={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},m={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function f(){return{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:o.white,default:o.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}}}let h=f();function g(){return{text:{primary:o.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:o.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}}}let v=g();function y(e,t,i,a){let n=a.light||a,o=a.dark||1.5*a;e[t]||(e.hasOwnProperty(i)?e[t]=e[i]:"light"===t?e.light=(0,r.a)(e.main,n):"dark"===t&&(e.dark=(0,r.e$)(e.main,o)))}function b(e,t,i,a,n){let r=n.light||n,o=n.dark||1.5*n;t[i]||(t.hasOwnProperty(a)?t[i]=t[a]:"light"===i?t.light="color-mix(in ".concat(e,", ").concat(t.main,", #fff ").concat((100*r).toFixed(0),"%)"):"dark"===i&&(t.dark="color-mix(in ".concat(e,", ").concat(t.main,", #000 ").concat((100*o).toFixed(0),"%)")))}function _(e){let t,{mode:i="light",contrastThreshold:_=3,tonalOffset:x=.2,colorSpace:A,...I}=e,w=e.primary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:c[200],light:c[50],dark:c[400]}:{main:c[700],light:c[400],dark:c[800]}}(i),k=e.secondary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:s[200],light:s[50],dark:s[400]}:{main:s[500],light:s[300],dark:s[700]}}(i),S=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:d[500],light:d[300],dark:d[700]}:{main:d[700],light:d[400],dark:d[800]}}(i),T=e.info||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:p[400],light:p[300],dark:p[700]}
1:{main:p[700],light:p[500],dark:p[900]}}(i),C=e.success||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:m[800],light:m[500],dark:m[900]}}(i),E=e.warning||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:u[400],light:u[300],dark:u[700]}:{main:"#ed6c02",light:u[500],dark:u[900]}}(i);function R(e){if(A)return"oklch(from ".concat(e," var(--__l) 0 h / var(--__a))");return(0,r.eM)(e,v.text.primary)>=_?v.text.primary:h.text.primary}let P=e=>{let{color:t,name:i,mainShade:n=500,lightShade:r=300,darkShade:o=700}=e;if(!(t={...t}).main&&t[n]&&(t.main=t[n]),!t.hasOwnProperty("main"))throw Error((0,a.A)(11,i?" (".concat(i,")"):"",n));if("string"!=typeof t.main)throw Error((0,a.A)(12,i?" (".concat(i,")"):"",JSON.stringify(t.main)));return A?(b(A,t,"light",r,x),b(A,t,"dark",o,x)):(y(t,"light",r,x),y(t,"dark",o,x)),t.contrastText||(t.contrastText=R(t.main)),t};return"light"===i?t=f():"dark"===i&&(t=g()),(0,n.A)({common:{...o},mode:i,primary:P({color:w,name:"primary"}),secondary:P({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:P({color:S,name:"error"}),warning:P({color:E,name:"warning"}),info:P({color:T,name:"info"}),success:P({color:C,name:"success"}),grey:l,contrastThreshold:_,getContrastText:R,augmentColor:P,tonalOffset:x,...t},I)}var x=i(7036),A=i(9418);let I=(e,t,i,a=[])=>{let n=e;t.forEach((e,r)=>{r===t.length-1?Array.isArray(n)?n[Number(e)]=i:n&&"object"==typeof n&&(n[e]=i):n&&"object"==typeof n&&(n[e]||(n[e]=a.includes(e)?[]:{}),n=n[e])})};function w(e,t){var i,a;let{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},l={},s={};return i=(e,t,i)=>{if(("string"==typeof t||"number"==typeof t)&&(!r||!r(e,t))){var a,d;let r=`--${n?`${n}-`:""}${e.join("-")}`,u=(a=e,"number"==typeof(d=t)?["lineHeight","fontWeight","opacity","zIndex"].some(e=>a.includes(e))||a[a.length-1].toLowerCase().includes("opacity")?d:`${d}px`:d);Object.assign(o,{[r]:u}),I(l,e,`var(${r})`,i),I(s,e,`var(${r}, ${u})`,i)}},a=e=>"vars"===e[0],function e(t,n=[],r=[]){Object.entries(t).forEach(([t,o])=>{a&&(!a||a([...n,t]))||null==o||("object"==typeof o&&Object.keys(o).length>0?e(o,[...n,t],Array.isArray(o)?[...r,t]:r):i([...n,t],o,r))})}(e),{css:o,vars:l,varsWithDefaults:s}}let k=function(e,t={}){let{getSelector:i=function(t,i){let a=r;if("class"===r&&(a=".%s"),"data"===r&&(a="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(a=`[${r}="%s"]`),t){if("media"===a){if(e.defaultColorScheme===t)return":root";let a=l[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${a})`]:{":root":i}}}if(a)return e.defaultColorScheme===t?`:root, ${a.replace("%s",String(t))}`:a.replace("%s",String(t))}return":root"},disableCssColorScheme:a,colorSchemeSelector:r,enableContrastVars:o}=t,{colorSchemes:l={},components:s,defaultColorScheme:d="light",...u}=e,{vars:c,css:p,varsWithDefaults:m}=w(u,t),f=m,h={},{[d]:g,...v}=l;if(Object.entries(v||{}).forEach(([e,i])=>{let{vars:a,css:r,varsWithDefaults:o}=w(i,t);f=(0,n.A)(f,o),h[e]={css:r,vars:a}}),g){let{css:e,vars:i,varsWithDefaults:a}=w(g,t);f=(0,n.A)(f,a),h[d]={css:e,vars:i}}return{vars:f,generateThemeVars:()=>{let e={...c};return Object.entries(h).forEach(([,{vars:t}])=>{e=(0,n.A)(e,t)}),e},generateStyleSheets:()=>{let t=[],n=e.defaultColorScheme||"light";function r(e,i){Object.keys(i).length&&t.push("string"==typeof e?{[e]:{...i}}:e)}r(i(void 0,{...p}),p);let{[n]:s,...d}=h;if(s){let{css:e}=s,t=l[n]?.palette?.mode,o=!a&&t?{colorScheme:t,...e}:{...e};r(i(n,{...o}),o)}return Object.entries(d).forEach(([e,{css:t}])=>{let n=l[e]?.palette?.mode,o=!a&&n?{colorScheme:n,...t}:{...t};r(i(e,{...o}),o)}),o&&t.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),t}}};var S=i(5794),T=i(5044),C=i(8835),E=i(7947);function R(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}let P=["none",R(0,2,1,-1,0,1,1,0,0,1,3,0),R(0,3,1,-2,0,2,2,0,0,1,5,0),R(0,3,3,-2,0,3,4,0,0,1,8,0),R(0,2,4,-1,0,4,5,0,0,1,10,0),R(0,3,5,-1,0,5,8,0,0,1,14,0),R(0,3,5,-1,0,6,10,0,0,1,18,0),R(0,4,5,-2,0,7,10,1,0,2,16,1),R(0,5,5,-3,0,8,10,1,0,3,14,2),R(0,5,6,-3,0,9,12,1,0,3,16,2),R(0,6,6,-3,0,10,14,1,0,4,18,3),R(0,6,7,-4,0,11,15,1,0,4,20,3),R(0,7,8,-4,0,12,17,2,0,5,22,4),R(0,7,8,-4,0,13,19,2,0,5,24,4),R(0,7,9,-4,0,14,21,2,0,5,26,4),R(0,8,9,-5,0,15,22,2,0,6,28,5),R(0,8,10,-5,0,16,24,2,0,6,30,5),R(0,8,11,-5,0,17,26,2,0,6,32,5),R(0,9,11,-5,0,18,28,2,0,7,34,6),R(0,9,12,-6,0,19,29,2,0,7,36,6
1),R(0,10,13,-6,0,20,31,3,0,8,38,7),R(0,10,13,-6,0,21,33,3,0,8,40,7),R(0,10,14,-6,0,22,35,3,0,8,42,7),R(0,11,14,-7,0,23,36,3,0,9,44,8),R(0,11,15,-7,0,24,38,3,0,9,46,8)];var O=i(4526);let M={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={...e};return!function e(t){let i=Object.entries(t);for(let a=0;a<i.length;a++){let[r,o]=i[a];!((0,n.Q)(o)||void 0===o||"string"==typeof o||"boolean"==typeof o||"number"==typeof o||Array.isArray(o))||r.startsWith("unstable_")?delete t[r]:(0,n.Q)(o)&&(t[r]={...o},e(t[r]))}}(t),"import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ".concat(JSON.stringify(t,null,2),";\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;")}function j(e){return"number"==typeof e?"".concat((100*e).toFixed(0),"%"):"calc((".concat(e,") * 100%)")}let D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,i,o=arguments.length,l=Array(o>1?o-1:0),s=1;s<o;s++)l[s-1]=arguments[s];let{breakpoints:d,mixins:u={},spacing:c,palette:p={},transitions:m={},typography:f={},shape:h,colorSpace:g,...v}=e;if(e.vars&&void 0===e.generateThemeVars)throw Error((0,a.A)(20));let y=_({...p,colorSpace:g}),b=(0,C.A)(e),x=(0,n.A)(b,{mixins:(t=b.breakpoints,{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...u}),palette:y,shadows:P.slice(),typography:(0,E.A)(y,f),transitions:(0,O.Ay)(m),zIndex:{...M}});return x=(0,n.A)(x,v),(x=l.reduce((e,t)=>(0,n.A)(e,t),x)).unstable_sxConfig={...S.A,...null==v?void 0:v.unstable_sxConfig},x.unstable_sx=function(e){return(0,T.A)({sx:e,theme:this})},x.toRuntimeSource=N,Object.assign(i=x,{alpha(e,t){let a=this||i;return a.colorSpace?"oklch(from ".concat(e," l c h / ").concat("string"==typeof t?"calc(".concat(t,")"):t,")"):a.vars?"rgba(".concat(e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")," / ").concat("string"==typeof t?"calc(".concat(t,")"):t,")"):(0,r.X4)(e,(e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let i=0;for(let e=0;e<t.length;e+=1)i+=+t[e];return i})(t))},lighten(e,t){let a=this||i;return a.colorSpace?"color-mix(in ".concat(a.colorSpace,", ").concat(e,", #fff ").concat(j(t),")"):(0,r.a)(e,t)},darken(e,t){let a=this||i;return a.colorSpace?"color-mix(in ".concat(a.colorSpace,", ").concat(e,", #000 ").concat(j(t),")"):(0,r.e$)(e,t)}}),x};var F=i(6434);let L=[...Array(25)].map((e,t)=>{if(0===t)return"none";let i=(0,F.A)(t);return"linear-gradient(rgba(255 255 255 / ".concat(i,"), rgba(255 255 255 / ").concat(i,"))")});function B(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function z(e){return"dark"===e?L:[]}function U(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null==(t=e[1])?void 0:t.match(/(mode|contrastThreshold|tonalOffset)/))}function q(e,t,i){!e[t]&&i&&(e[t]=i)}function $(e){return"string"==typeof e&&e.startsWith("hsl")?(0,r.YL)(e):e}function H(e,t){"".concat(t,"Channel")in e||(e["".concat(t,"Channel")]=(0,r.Me)($(e[t]),"MUI: Can't create `palette.".concat(t,"Channel` because `palette.").concat(t,"` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().")+"\n"+"To suppress this warning, you need to explicitly provide the `palette.".concat(t,'Channel` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.')))}let V=e=>{try{return e()}catch(e){}},W=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mui";return function(e=""){return(t,...i)=>`var(--${e?`${e}-`:""}${t}${function t(...i){if(!i.length)return"";let a=i[0];return"string"!=typeof a||a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${a}`:`, var(--${e?`${e}-`:""}${a}
1${t(...i.slice(1))})`}(...i)})`}(e)};function G(e,t,i,a,n){if(!i)return;i=!0===i?{}:i;let r="dark"===n?"dark":"light";if(!a){t[n]=function(e){let{palette:t={mode:"light"},opacity:i,overlays:a,colorSpace:n,...r}=e,o=_({...t,colorSpace:n});return{palette:o,opacity:{...B(o.mode),...i},overlays:a||z(o.mode),...r}}({...i,palette:{mode:r,...null==i?void 0:i.palette},colorSpace:e});return}let{palette:o,...l}=D({...a,palette:{mode:r,...null==i?void 0:i.palette},colorSpace:e});return t[n]={...i,palette:o,opacity:{...B(r),...null==i?void 0:i.opacity},overlays:(null==i?void 0:i.overlays)||z(r)},l}function K(e,t,i){e.colorSchemes&&i&&(e.colorSchemes[t]={...!0!==i&&i,palette:_({...!0===i?{}:i.palette,mode:t})})}function Z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];let{palette:l,cssVariables:s=!1,colorSchemes:d=!l?{light:!0}:void 0,defaultColorScheme:u=null==l?void 0:l.mode,...c}=e,p=u||"light",m=null==d?void 0:d[p],f={...d,...l?{[p]:{..."boolean"!=typeof m&&m,palette:l}}:void 0};if(!1===s){if(!("colorSchemes"in e))return D(e,...i);let t=l;"palette"in e||!f[p]||(!0!==f[p]?t=f[p].palette:"dark"===p&&(t={mode:"dark"}));let a=D({...e,palette:t},...i);return a.defaultColorScheme=p,a.colorSchemes=f,"light"===a.palette.mode&&(a.colorSchemes.light={...!0!==f.light&&f.light,palette:a.palette},K(a,"dark",f.dark)),"dark"===a.palette.mode&&(a.colorSchemes.dark={...!0!==f.dark&&f.dark,palette:a.palette},K(a,"light",f.light)),a}return l||"light"in f||"light"!==p||(f.light=!0),function(){let e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var o,l=arguments.length,s=Array(l>1?l-1:0),d=1;d<l;d++)s[d-1]=arguments[d];let{colorSchemes:u={light:!0},defaultColorScheme:c,disableCssColorScheme:p=!1,cssVarPrefix:m="mui",nativeColor:f=!1,shouldSkipGeneratingVar:g=U,colorSchemeSelector:y=u.light&&u.dark?"media":void 0,rootSelector:b=":root",..._}=i,I=Object.keys(u)[0],w=c||(u.light&&"light"!==I?"light":I),C=W(m),{[w]:E,light:R,dark:P,...O}=u,M={...O},j=E;if(("dark"!==w||"dark"in u)&&("light"!==w||"light"in u)||(j=!0),!j)throw Error((0,a.A)(21,w));f&&(t="oklch");let D=G(t,M,j,_,w);R&&!M.light&&G(t,M,R,void 0,"light"),P&&!M.dark&&G(t,M,P,void 0,"dark");let F={defaultColorScheme:w,...D,cssVarPrefix:m,colorSchemeSelector:y,rootSelector:b,getCssVar:C,colorSchemes:M,font:{...function(e){let t={};return Object.entries(e).forEach(e=>{let[i,a]=e;"object"==typeof a&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}(D.typography),...D.font},spacing:"number"==typeof(o=_.spacing)?"".concat(o,"px"):"string"==typeof o||"function"==typeof o||Array.isArray(o)?o:"8px"};Object.keys(F.colorSchemes).forEach(e=>{let i=F.colorSchemes[e].palette,a=e=>{let t=e.split("-"),a=t[1],n=t[2];return C(e,i[a][n])};function n(e,i,a){if(t){let n;return e===r.Cg&&(n="transparent ".concat(((1-a)*100).toFixed(0),"%")),e===r.Nd&&(n="#000 ".concat((100*a).toFixed(0),"%")),e===r.j4&&(n="#fff ".concat((100*a).toFixed(0),"%")),"color-mix(in ".concat(t,", ").concat(i,", ").concat(n,")")}return e(i,a)}if("light"===i.mode&&(q(i.common,"background","#fff"),q(i.common,"onBackground","#000")),"dark"===i.mode&&(q(i.common,"background","#000"),q(i.common,"onBackground","#fff")),["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{i[e]||(i[e]={})}),"light"===i.mode){q(i.Alert,"errorColor",n(r.Nd,i.error.light,.6)),q(i.Alert,"infoColor",n(r.Nd,i.info.light,.6)),q(i.Alert,"successColor",n(r.Nd,i.success.light,.6)),q(i.Alert,"warningColor",n(r.Nd,i.warning.light,.6)),q(i.Alert,"errorFilledBg",a("palette-error-main")),q(i.Alert,"infoFilledBg",a("palette-info-main")),q(i.Alert,"successFilledBg",a("palette-success-main")),q(i.Alert,"warningFilledBg",a("palette-warning-main")),q(i.Alert,"errorFilledColor",V(()=>i.getContrastText(i.error.main))),q(i.Alert,"infoFilledColor",V(()=>i.getContrastText(i.info.main))),q(i.Alert,"successFilledColor",V(()=>i.getContrastText(i.success.main))),q(i.Alert,"warningFilledColor",V(()=>i.getContrastText(i.warning.main))),q(i.Alert,"errorStandardBg",n(r.j4,i.error.light,.9)),q(i.Alert,"infoStandardBg",n(r.j4,i.info.light,.9)),q(i.Alert,"successStandardBg",n(r.j4,i.success.light,.9)),q(i.Alert,"warningStandardBg",n(r.j4,i.warning.light,.9)),q(i.Alert,"errorIconColor",a("palette-error-main")),q(i.Alert,"infoIconColor",a("palette-info-main")),q(i.Alert,"successIconColor",a("palette-success-main")),q(i.Alert,"warningIconColor",a("palette-warning-main")),q(i.AppBar,"defaultBg",a("palette-grey-100")),q(i.Avatar,"defaultBg",a("palette-grey-400")),q(i.Button,"inheritContainedBg",a("palette-grey-300")),q(i.Button,"inheritContainedHoverBg",a("palette-grey-A100")),q(i.Chip,"defaultBorder",a("palette-grey-400")),q(i.Chip,"defaultAvatarColor",a("palette-grey-700")),q(i.Chip,"defaultIconColor",a("palette-grey-700")),q(i.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(i.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(i.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(i.LinearProgress,"primaryBg",n(r.j4,i.primary.main,.62)),q(i.LinearProgress,"secondaryBg",n(r.j4,i.secondary.main,.62)),q(i.LinearProgress,"errorBg",n(r.j4,i.error.main,.62)),q(i.LinearProgress,"infoBg",n(r.j4,i.info.main,.62)),q(i.LinearProgress,"successBg",n(r.j4,i.success.main,.62)),q(i.LinearProgress,"warningBg",n(r.j4,i.warning.main,.62)),q(i.Skeleton,"bg",t?n(r.Cg,i.text.primary,.11):"rgba(".concat(a("palette-text-primaryChannel")," / 0.11)")),q(i.Slider,"primaryTrack",
1n(r.j4,i.primary.main,.62)),q(i.Slider,"secondaryTrack",n(r.j4,i.secondary.main,.62)),q(i.Slider,"errorTrack",n(r.j4,i.error.main,.62)),q(i.Slider,"infoTrack",n(r.j4,i.info.main,.62)),q(i.Slider,"successTrack",n(r.j4,i.success.main,.62)),q(i.Slider,"warningTrack",n(r.j4,i.warning.main,.62));let e=t?n(r.Nd,i.background.default,.6825):(0,r.Y9)(i.background.default,.8);q(i.SnackbarContent,"bg",e),q(i.SnackbarContent,"color",V(()=>t?v.text.primary:i.getContrastText(e))),q(i.SpeedDialAction,"fabHoverBg",(0,r.Y9)(i.background.paper,.15)),q(i.StepConnector,"border",a("palette-grey-400")),q(i.StepContent,"border",a("palette-grey-400")),q(i.Switch,"defaultColor",a("palette-common-white")),q(i.Switch,"defaultDisabledColor",a("palette-grey-100")),q(i.Switch,"primaryDisabledColor",n(r.j4,i.primary.main,.62)),q(i.Switch,"secondaryDisabledColor",n(r.j4,i.secondary.main,.62)),q(i.Switch,"errorDisabledColor",n(r.j4,i.error.main,.62)),q(i.Switch,"infoDisabledColor",n(r.j4,i.info.main,.62)),q(i.Switch,"successDisabledColor",n(r.j4,i.success.main,.62)),q(i.Switch,"warningDisabledColor",n(r.j4,i.warning.main,.62)),q(i.TableCell,"border",n(r.j4,n(r.Cg,i.divider,1),.88)),q(i.Tooltip,"bg",n(r.Cg,i.grey[700],.92))}if("dark"===i.mode){q(i.Alert,"errorColor",n(r.j4,i.error.light,.6)),q(i.Alert,"infoColor",n(r.j4,i.info.light,.6)),q(i.Alert,"successColor",n(r.j4,i.success.light,.6)),q(i.Alert,"warningColor",n(r.j4,i.warning.light,.6)),q(i.Alert,"errorFilledBg",a("palette-error-dark")),q(i.Alert,"infoFilledBg",a("palette-info-dark")),q(i.Alert,"successFilledBg",a("palette-success-dark")),q(i.Alert,"warningFilledBg",a("palette-warning-dark")),q(i.Alert,"errorFilledColor",V(()=>i.getContrastText(i.error.dark))),q(i.Alert,"infoFilledColor",V(()=>i.getContrastText(i.info.dark))),q(i.Alert,"successFilledColor",V(()=>i.getContrastText(i.success.dark))),q(i.Alert,"warningFilledColor",V(()=>i.getContrastText(i.warning.dark))),q(i.Alert,"errorStandardBg",n(r.Nd,i.error.light,.9)),q(i.Alert,"infoStandardBg",n(r.Nd,i.info.light,.9)),q(i.Alert,"successStandardBg",n(r.Nd,i.success.light,.9)),q(i.Alert,"warningStandardBg",n(r.Nd,i.warning.light,.9)),q(i.Alert,"errorIconColor",a("palette-error-main")),q(i.Alert,"infoIconColor",a("palette-info-main")),q(i.Alert,"successIconColor",a("palette-success-main")),q(i.Alert,"warningIconColor",a("palette-warning-main")),q(i.AppBar,"defaultBg",a("palette-grey-900")),q(i.AppBar,"darkBg",a("palette-background-paper")),q(i.AppBar,"darkColor",a("palette-text-primary")),q(i.Avatar,"defaultBg",a("palette-grey-600")),q(i.Button,"inheritContainedBg",a("palette-grey-800")),q(i.Button,"inheritContainedHoverBg",a("palette-grey-700")),q(i.Chip,"defaultBorder",a("palette-grey-700")),q(i.Chip,"defaultAvatarColor",a("palette-grey-300")),q(i.Chip,"defaultIconColor",a("palette-grey-300")),q(i.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(i.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(i.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(i.LinearProgress,"primaryBg",n(r.Nd,i.primary.main,.5)),q(i.LinearProgress,"secondaryBg",n(r.Nd,i.secondary.main,.5)),q(i.LinearProgress,"errorBg",n(r.Nd,i.error.main,.5)),q(i.LinearProgress,"infoBg",n(r.Nd,i.info.main,.5)),q(i.LinearProgress,"successBg",n(r.Nd,i.success.main,.5)),q(i.LinearProgress,"warningBg",n(r.Nd,i.warning.main,.5)),q(i.Skeleton,"bg",t?n(r.Cg,i.text.primary,.13):"rgba(".concat(a("palette-text-primaryChannel")," / 0.13)")),q(i.Slider,"primaryTrack",n(r.Nd,i.primary.main,.5)),q(i.Slider,"secondaryTrack",n(r.Nd,i.secondary.main,.5)),q(i.Slider,"errorTrack",n(r.Nd,i.error.main,.5)),q(i.Slider,"infoTrack",n(r.Nd,i.info.main,.5)),q(i.Slider,"successTrack",n(r.Nd,i.success.main,.5)),q(i.Slider,"warningTrack",n(r.Nd,i.warning.main,.5));let e=t?n(r.j4,i.background.default,.985):(0,r.Y9)(i.background.default,.98);q(i.SnackbarContent,"bg",e),q(i.SnackbarContent,"color",V(()=>t?h.text.primary:i.getContrastText(e))),q(i.SpeedDialAction,"fabHoverBg",(0,r.Y9)(i.background.paper,.15)),q(i.StepConnector,"border",a("palette-grey-600")),q(i.StepContent,"border",a("palette-grey-600")),q(i.Switch,"defaultColor",a("palette-grey-300")),q(i.Switch,"defaultDisabledColor",a("palette-grey-600")),q(i.Switch,"primaryDisabledColor",n(r.Nd,i.primary.main,.55)),q(i.Switch,"secondary
1DisabledColor",n(r.Nd,i.secondary.main,.55)),q(i.Switch,"errorDisabledColor",n(r.Nd,i.error.main,.55)),q(i.Switch,"infoDisabledColor",n(r.Nd,i.info.main,.55)),q(i.Switch,"successDisabledColor",n(r.Nd,i.success.main,.55)),q(i.Switch,"warningDisabledColor",n(r.Nd,i.warning.main,.55)),q(i.TableCell,"border",n(r.Nd,n(r.Cg,i.divider,1),.68)),q(i.Tooltip,"bg",n(r.Cg,i.grey[700],.92))}H(i.background,"default"),H(i.background,"paper"),H(i.common,"background"),H(i.common,"onBackground"),H(i,"divider"),Object.keys(i).forEach(e=>{let t=i[e];"tonalOffset"!==e&&t&&"object"==typeof t&&(t.main&&q(i[e],"mainChannel",(0,r.Me)($(t.main))),t.light&&q(i[e],"lightChannel",(0,r.Me)($(t.light))),t.dark&&q(i[e],"darkChannel",(0,r.Me)($(t.dark))),t.contrastText&&q(i[e],"contrastTextChannel",(0,r.Me)($(t.contrastText))),"text"===e&&(H(i[e],"primary"),H(i[e],"secondary")),"action"===e&&(t.active&&H(i[e],"active"),t.selected&&H(i[e],"selected")))})});let L={prefix:m,disableCssColorScheme:p,shouldSkipGeneratingVar:g,getSelector:(e=F=s.reduce((e,t)=>(0,n.A)(e,t),F),(t,i)=>{let a=e.rootSelector||":root",n=e.colorSchemeSelector,r=n;if("class"===n&&(r=".%s"),"data"===n&&(r="[data-%s]"),(null==n?void 0:n.startsWith("data-"))&&!n.includes("%s")&&(r="[".concat(n,'="%s"]')),e.defaultColorScheme===t){if("dark"===t){let n,o={};return((n=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>"--".concat(n?"".concat(n,"-"):"","overlays-").concat(t)),"--".concat(n?"".concat(n,"-"):"","palette-AppBar-darkBg"),"--".concat(n?"".concat(n,"-"):"","palette-AppBar-darkColor")]).forEach(e=>{o[e]=i[e],delete i[e]}),"media"===r)?{[a]:i,"@media (prefers-color-scheme: dark)":{[a]:o}}:r?{[r.replace("%s",t)]:o,["".concat(a,", ").concat(r.replace("%s",t))]:i}:{[a]:{...i,...o}}}if(r&&"media"!==r)return"".concat(a,", ").concat(r.replace("%s",String(t)))}else if(t){if("media"===r)return{["@media (prefers-color-scheme: ".concat(String(t),")")]:{[a]:i}};if(r)return r.replace("%s",String(t))}return a}),enableContrastVars:f},{vars:B,generateThemeVars:z,generateStyleSheets:K}=k(F,L);return F.vars=B,Object.entries(F.colorSchemes[F.defaultColorScheme]).forEach(e=>{let[t,i]=e;F[t]=i}),F.generateThemeVars=z,F.generateStyleSheets=K,F.generateSpacing=function(){return(0,x.A)(_.spacing,(0,A.LX)(this))},F.getColorSchemeSelector=function(e){return"media"===y?`@media (prefers-color-scheme: ${e})`:y?y.startsWith("data-")&&!y.includes("%s")?`[${y}="${e}"] &`:"class"===y?`.${e} &`:"data"===y?`[data-${e}] &`:`${y.replace("%s",e)} &`:"&"},F.spacing=F.generateSpacing(),F.shouldSkipGeneratingVar=g,F.unstable_sxConfig={...S.A,...null==_?void 0:_.unstable_sxConfig},F.unstable_sx=function(e){return(0,T.A)({sx:e,theme:this})},F.toRuntimeSource=N,F}({...c,colorSchemes:f,defaultColorScheme:p,..."boolean"!=typeof s&&s},...i)}},544:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=function(e,t=[]){if(void 0===e)return{};let i={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&"function"==typeof e[i]&&!t.includes(i)).forEach(t=>{i[t]=e[t]}),i}},550:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>r});var a=i(4056);let n={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 r(e,t,i="Mui"){let o=n[t];return o?`${i}-${o}`:`${a.A.generate(e)}-${t}`}},564:(e,t,i)=>{"use strict";i.d(t,{Dp:()=>d,Dg:()=>u});var a=i(6640),n=i(6496),r=i(1140),o=i(1965),l=i(4930);let s=function(e){return(0,l.jsx)(n.A,{...e,defaultTheme:r.A,themeId:o.A})};function d(e){return function(t){return(0,l.jsx)(s,{styles:"function"==typeof e?i=>e({theme:i,...t}):e})}}function u(){return a.A}},576:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(5162),n=i(5012);let r=function(e=null){let t=a.useContext(n.T);return t&&0!==Object.keys(t).length?t:e}},584:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)([(0,n.jsx)("path",{d:"M1 11v10h5v-6h4v6h5V11L8 6z"},"0"),(0,n.jsx)("path",{d:"M10 3v1.97l7 5V11h2v2h-2v2h2v2h-2v4h6V3zm9 6h-2V7h2z"},"1")],"HomeWork")},639:(e,t,i)=>{"use strict";i.d(t,{A:()=>b});var a=i(5162),n=i(3638),r=i(6348),o=i(2298),l=i(1894),s=i(9644),d=i(1952),u=i(4930);let c=(0,d.A)((0,u.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var p=i(9562),m=i(550);function f(e){return(0,m.Ay)("MuiAvatar",e)}
1(0,p.A)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var h=i(6536);let g=(0,o.Ay)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t[i.variant],i.colorDefault&&t.colorDefault]}})((0,l.A)(e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}})),v=(0,o.Ay)("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),y=(0,o.Ay)(c,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"}),b=a.forwardRef(function(e,t){let i=(0,s.b)({props:e,name:"MuiAvatar"}),{alt:o,children:l,className:d,component:c="div",slots:p={},slotProps:m={},imgProps:b,sizes:_,src:x,srcSet:A,variant:I="circular",...w}=i,k=null,S={...i,component:c,variant:I},T=function(e){let{crossOrigin:t,referrerPolicy:i,src:n,srcSet:r}=e,[o,l]=a.useState(!1);return a.useEffect(()=>{if(!n&&!r)return;l(!1);let e=!0,a=new Image;return a.onload=()=>{e&&l("loaded")},a.onerror=()=>{e&&l("error")},a.crossOrigin=t,a.referrerPolicy=i,a.src=n,r&&(a.srcset=r),()=>{e=!1}},[t,i,n,r]),o}({...b,..."function"==typeof m.img?m.img(S):m.img,src:x,srcSet:A}),C=x||A,E=C&&"error"!==T;S.colorDefault=!E,delete S.ownerState;let R=(e=>{let{classes:t,variant:i,colorDefault:a}=e;return(0,r.A)({root:["root",i,a&&"colorDefault"],img:["img"],fallback:["fallback"]},f,t)})(S),[P,O]=(0,h.A)("root",{ref:t,className:(0,n.A)(R.root,d),elementType:g,externalForwardedProps:{slots:p,slotProps:m,component:c,...w},ownerState:S}),[M,N]=(0,h.A)("img",{className:R.img,elementType:v,externalForwardedProps:{slots:p,slotProps:{img:{...b,...m.img}}},additionalProps:{alt:o,src:x,srcSet:A,sizes:_},ownerState:S}),[j,D]=(0,h.A)("fallback",{className:R.fallback,elementType:y,externalForwardedProps:{slots:p,slotProps:m},shouldForwardComponentProp:!0,ownerState:S});return k=E?(0,u.jsx)(M,{...N}):l||0===l?l:C&&o?o[0]:(0,u.jsx)(j,{...D}),(0,u.jsx)(P,{...O,children:k})})},740:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome")},796:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(2066).A},853:(e,t,i)=>{e.exports=i(112)},892:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward")},991:(e,t,i)=>{"use strict";i.d(t,{A:()=>E});var a=i(5162),n=i(3638),r=i(4284),o=i(6348),l=i(8689),s=i(2859),d=i(2298),u=i(1894),c=i(9644),p=i(6950),m=i(4374),f=i(8611),h=i(6001),g=i(9562),v=i(550);function y(e){return(0,v.Ay)("MuiButton",e)}let b=(0,g.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),_=a.createContext({}),x=a.createContext(void 0);var A=i(4930);let I=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],w=(0,d.Ay)(p.A,{shouldForwardProp:e=>(0,s.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t[i.variant],t["".concat(i.variant).concat((0,f.A)(i.color))],t["size".concat((0,f.A)(i.size))],t["".concat(i.variant,"Size").concat((0,f.A)(i.size))],"inherit"===i.color&&t.colorInherit,i.disableElevation&&t.disableElevation,i.fullWidth&&t.fullWidth,i.loading&&t.loading]}})((0,u.A)(e=>{let{theme:t}=e,i="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],a="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},["&.".concat(b.disabled)]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},["&.".concat(b.focusVisible)]:{boxShadow:(t.vars||t).shadows[6]},["&.".concat(b.disabled)]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackgroun
1d}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",["&.".concat(b.disabled)]:{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter((0,h.A)()).map(e=>{let[i]=e;return{props:{color:i},style:{"--variant-textColor":(t.vars||t).palette[i].main,"--variant-outlinedColor":(t.vars||t).palette[i].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[i].main,.5),"--variant-containedColor":(t.vars||t).palette[i].contrastText,"--variant-containedBg":(t.vars||t).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[i].dark,"--variant-textBg":t.alpha((t.vars||t).palette[i].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[i].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[i].main,(t.vars||t).palette.action.hoverOpacity)}}}}}),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:i,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:a,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(b.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(b.disabled)]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),["&.".concat(b.loading)]:{color:"transparent"}}}]}})),k=(0,d.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.startIcon,i.loading&&t.startIconLoadingStart,t["iconSize".concat((0,f.A)(i.size))]]}})(e=>{let{theme:t}=e;return{display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...I]}}),S=(0,d.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.endIcon,i.loading&&t.endIconLoadingEnd,t["iconSize".concat((0,f.A)(i.size))]]}})(e=>{let{theme:t}=e;return{display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...I]}}),T=(0,d.Ay)("span",{name:"MuiButton",slot:"LoadingIndicator"})(e=>{let{theme:t}=e;return{display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]}}),C=(0,d.Ay)("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),E=a.forwardRef(function(e,t){let i=a.useContext(_),s=a.useContext(x),d=(0,r.A)(i,e),u=(0,c.b)({props:d,name:"MuiButton"}),{children:p,color:h="primary",component:g="button",className:v,disabled:b=!1,disableElevation:I=!1,disableFocusRipple:E=!1,endIcon:R,focusVisibleClassName:P,fullWidth:O=!1,id:M,loading:N=null,loadingIndicator:j,loadingPosition:D="center",size:F="medium",startIcon:L,type:B,variant:z="text",...U}=u,q=(0,l.A)(M),$=null!=j?j:(0,A.jsx)(m.A,{"aria-labelledby":q,color:"inherit",size:16}),H={...u,color:h,component:g,disabled:b,disableElevation:I,disableFocusRipple:E,fullWidth:O,loading:N,loadingIndicator:$,loadingPosition:D,size:F,type:B,variant:z},V=(e=>{let{color:t,disableElevation:i,fullWidth:a,size:n,variant:r,loading:l,loadingPosition:s,classes:d}=e,u={root:["root",l&&"loading",r,"".concat(r).concat((0,f.A)(t)),"size".concat((0,f.A)(n)),"".concat(r,"Size").concat((0,f.A)(n)),"color".concat((0,f.A)(t)),i&&"disableElevation",a&&"fullWidth",l&&"loadingPosition".concat((0,f.A)(s))],startIcon:["icon","startIcon","iconSize".concat((0,f.A)(n))],endIcon:["icon","endIcon","iconSize".concat((0,f.A)(n))],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},c=(0,o.A)(u,y,d);return{...d,...c}})(H),W=(L||N&&"start"===D)&&(0,A.jsx)(k,{className:V.startIcon,ownerState:H,children:L||(0,A.jsx)(C,{className:V.loadingIconPlaceholder,ownerState:H})}),G=(R||N&&"end"===D)&&(0,A.jsx)(S,{className:V.endIcon,ownerState:H,children:R||(0,A.jsx)(C,{className:V.loadingIconPlaceholder,ownerState:H})}),K="boolean"==typeof N?(0,A.jsx)("span",{className:V.loadingWrapper,style:{display:"contents"},children:N&&(0,A.jsx)(T,{className:V.loadingIndicator,ownerState:H,children:$})}):null;return(0,A.jsxs)(w,{ownerState:H,className:(0,n.A)(i.className,V.root,v,s||""),component:g,disabled:b||N,focusRipple:!E,focusVisibleClassName:(0,n.A)(V.focusVisible,P),ref:t,type:B,id:N?q:M,...U,classes:V,children:[W,"end"!==D&&K,p,"end"===D&&K,G]})})},992:(e,t,i)=>{"use strict";i.d(t,{A:()=>ej});var a,n=i(5162),r=i(3638),o=i(5858),l=i(6348),s=i(1792),d=i(3338),u=i(8682),c=i(9341),p=i(8611),m=i(9695),f=i(5622),h=i(6635),g=i(1816);let v=i(8850).A;var y=i(5617),b=i(8187),_=i(796),x=i(4930);function A(e,t,i){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:i?null:e.firstChild}
1function I(e,t,i){return e===t?i?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:i?null:e.lastChild}function w(e,t){if(void 0===t)return!0;let i=e.innerText;return void 0===i&&(i=e.textContent),0!==(i=i.trim().toLowerCase()).length&&(t.repeating?i[0]===t.keys[0]:i.startsWith(t.keys.join("")))}function k(e,t,i,a,n,r){let o=!1,l=n(e,t,!!t&&i);for(;l;){if(l===e.firstChild){if(o)return!1;o=!0}let t=!a&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&w(l,r)&&!t)return l.focus(),!0;l=n(e,l,i)}return!1}let S=n.forwardRef(function(e,t){let{actions:i,autoFocus:a=!1,autoFocusItem:r=!1,children:o,className:l,disabledItemsFocusable:s=!1,disableListWrap:d=!1,onKeyDown:u,variant:p="selectedMenu",...m}=e,f=n.useRef(null),S=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,b.A)(()=>{a&&f.current.focus()},[a]),n.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:i}=t,a=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&a){let t="".concat(v((0,_.A)(e)),"px");f.current.style["rtl"===i?"paddingLeft":"paddingRight"]=t,f.current.style.width="calc(100% + ".concat(t,")")}return f.current}}),[]);let T=(0,y.A)(f,t),C=-1;n.Children.forEach(o,(e,t)=>{if(!n.isValidElement(e)){C===t&&(C+=1)>=o.length&&(C=-1);return}e.props.disabled||("selectedMenu"===p&&e.props.selected?C=t:-1===C&&(C=t)),C===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(C+=1)>=o.length&&(C=-1)});let E=n.Children.map(o,(e,t)=>{if(t===C){let t={};return r&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===p&&(t.tabIndex=0),n.cloneElement(e,t)}return e});return(0,x.jsx)(h.A,{role:"menu",ref:T,className:l,onKeyDown:e=>{let t=f.current,i=e.key;if(e.ctrlKey||e.metaKey||e.altKey){u&&u(e);return}let a=(0,g.A)((0,c.A)(t));if("ArrowDown"===i)e.preventDefault(),k(t,a,d,s,A);else if("ArrowUp"===i)e.preventDefault(),k(t,a,d,s,I);else if("Home"===i)e.preventDefault(),k(t,null,d,s,A);else if("End"===i)e.preventDefault(),k(t,null,d,s,I);else if(1===i.length){let n=S.current,r=i.toLowerCase(),o=performance.now();n.keys.length>0&&(o-n.lastTime>500?(n.keys=[],n.repeating=!0,n.previousKeyMatched=!0):n.repeating&&r!==n.keys[0]&&(n.repeating=!1)),n.lastTime=o,n.keys.push(r);let l=a&&!n.repeating&&w(a,n);n.previousKeyMatched&&(l||k(t,a,!1,s,A,n))?e.preventDefault():n.previousKeyMatched=!1}u&&u(e)},tabIndex:a?0:-1,...m,children:E})});var T=i(66),C=i(2298),E=i(9644),R=i(2050),P=i(8610),O=i(6636),M=i(8702),N=i(3427);function j(e){return"scale(".concat(e,", ").concat(e**2,")")}let D={entering:{opacity:1,transform:j(1)},entered:{opacity:1,transform:"none"}},F="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),L=n.forwardRef(function(e,t){let{addEndListener:i,appear:a=!0,children:r,easing:o,in:l,onEnter:d,onEntered:u,onEntering:c,onExit:p,onExited:m,onExiting:f,style:h,timeout:g="auto",TransitionComponent:v=O.Ay,...b}=e,_=(0,P.A)(),A=n.useRef(),I=(0,M.A)(),w=n.useRef(null),k=(0,y.A)(w,(0,s.A)(r),t),S=e=>t=>{if(e){let i=w.current;void 0===t?e(i):e(i,t)}},T=S(c),C=S((e,t)=>{let i;(0,N.q)(e);let{duration:a,delay:n,easing:r}=(0,N.c)({style:h,timeout:g,easing:o},{mode:"enter"});"auto"===g?A.current=i=I.transitions.getAutoHeightDuration(e.clientHeight):i=a,e.style.transition=[I.transitions.create("opacity",{duration:i,delay:n}),I.transitions.create("transform",{duration:F?i:.666*i,delay:n,easing:r})].join(","),d&&d(e,t)}),E=S(u),R=S(f),L=S(e=>{let t,{duration:i,delay:a,easing:n}=(0,N.c)({style:h,timeout:g,easing:o},{mode:"exit"});"auto"===g?A.current=t=I.transitions.getAutoHeightDuration(e.clientHeight):t=i,e.style.transition=[I.transitions.create("opacity",{duration:t,delay:a}),I.transitions.create("transform",{duration:F?t:.666*t,delay:F?a:a||.333*t,easing:n})].join(","),e.style.opacity=0,e.style.transform=j(.75),p&&p(e)}),B=S(m);return(0,x.jsx)(v,{appear:a,in:l,nodeRef:w,onEnter:C,onEntered:E,onEntering:T,onExit:L,onExited:B,onExiting:R,addEndListener:e=>{"auto"===g&&_.start(A.current||0,e),i&&i(w.current,e)},timeout:"auto"===g?null:g,...b,children:(e,t)=>{let{ownerState:i,...a}=t;return n.cloneElement(r,{style:{opacity:0,transform:j(.75),visibility:"exited"!==e||l?void 0:"hidden",...D[e],...h,...r.props.style},ref:k,...a})}})});L&&(L.muiSupportAuto=!0);var B=i(3132),z=i(7389),U=i(9562),q=i(550);function $(e){return(0,q.Ay)("MuiPopover",e)}(0,U.A)("MuiPopover",["root","paper"]);var H=i(6536),V=i(8371);function W(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.height/2:"bottom"===t&&(i=e.height),i}function G(e,t){let i=0;return"number"==typeof t?i=t:"center"===t?i=e.width/2:"right"===t&&(i=e.width),i}function K(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?"".concat(e,"px"):e).join(" ")}function Z(e){return"function"==typeof e?e():e}let Y=(0,C.Ay)(B.A,{name:"MuiPopover",slot:"Root"})({}),X=(0,C.Ay)(z.A,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),J=n.forwardRef(function(e,t){let i=(0,E.b)({props:e,name:"MuiPopover"}
1),{action:a,anchorEl:o,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:u="anchorEl",children:p,className:m,container:f,elevation:h=8,marginThreshold:g=16,open:v,PaperProps:y={},slots:b={},slotProps:A={},transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:k="auto",TransitionProps:S={},disableScrollLock:C=!1,...P}=i,O=n.useRef(),M={...i,anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:g,transformOrigin:I,TransitionComponent:w,transitionDuration:k,TransitionProps:S},N=(e=>{let{classes:t}=e;return(0,l.A)({root:["root"],paper:["paper"]},$,t)})(M),j=n.useCallback(()=>{if("anchorPosition"===u)return d;let e=Z(o),t=(e&&1===e.nodeType?e:(0,c.A)(O.current).body).getBoundingClientRect();return{top:t.top+W(t,s.vertical),left:t.left+G(t,s.horizontal)}},[o,s.horizontal,s.vertical,d,u]),D=n.useCallback(e=>({vertical:W(e,I.vertical),horizontal:G(e,I.horizontal)}),[I.horizontal,I.vertical]),F=n.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},i=D(t);if("none"===u)return{top:null,left:null,transformOrigin:K(i)};let a=j(),n=a.top-i.vertical,r=a.left-i.horizontal,l=n+t.height,s=r+t.width,d=(0,_.A)(Z(o)),c=d.innerHeight-g,p=d.innerWidth-g;if(null!==g&&n<g){let e=n-g;n-=e,i.vertical+=e}else if(null!==g&&l>c){let e=l-c;n-=e,i.vertical+=e}if(null!==g&&r<g){let e=r-g;r-=e,i.horizontal+=e}else if(s>p){let e=s-p;r-=e,i.horizontal+=e}return{top:"".concat(Math.round(n),"px"),left:"".concat(Math.round(r),"px"),transformOrigin:K(i)}},[o,u,j,D,g]),[B,z]=n.useState(v),U=n.useCallback(()=>{let e=O.current;if(!e)return;let t=F(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)},[F]);n.useEffect(()=>(C&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[o,C,U]),n.useEffect(()=>{v&&U()}),n.useImperativeHandle(a,()=>v?{updatePosition:()=>{U()}}:null,[v,U]),n.useEffect(()=>{if(!v)return;let e=(0,R.A)(()=>{U()}),t=(0,_.A)(Z(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,v,U]);let q=k,J={slots:{transition:w,...b},slotProps:{transition:S,paper:y,...A}},[Q,ee]=(0,H.A)("transition",{elementType:L,externalForwardedProps:J,ownerState:M,getSlotProps:e=>({...e,onEntering:(t,i)=>{var a;null==(a=e.onEntering)||a.call(e,t,i),U()},onExited:t=>{var i;null==(i=e.onExited)||i.call(e,t),z(!1)}}),additionalProps:{appear:!0,in:v}});"auto"!==k||Q.muiSupportAuto||(q=void 0);let et=f||(o?(0,c.A)(Z(o)).body:void 0),[ei,{slots:ea,slotProps:en,...er}]=(0,H.A)("root",{ref:t,elementType:Y,externalForwardedProps:{...J,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:(0,V.A)("function"==typeof A.backdrop?A.backdrop(M):A.backdrop,{invisible:!0})},container:et,open:v},ownerState:M,className:(0,r.A)(N.root,m)}),[eo,el]=(0,H.A)("paper",{ref:O,className:N.paper,elementType:X,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:B?void 0:{opacity:0}},ownerState:M});return(0,x.jsx)(ei,{...er,...!(0,T.A)(ei)&&{slots:ea,slotProps:en,disableScrollLock:C},children:(0,x.jsx)(Q,{...ee,timeout:q,children:(0,x.jsx)(eo,{...el,children:p})})})});var Q=i(2859);function ee(e){return(0,q.Ay)("MuiMenu",e)}(0,U.A)("MuiMenu",["root","paper","list"]);let et={vertical:"top",horizontal:"right"},ei={vertical:"top",horizontal:"left"},ea=(0,C.Ay)(J,{shouldForwardProp:e=>(0,Q.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root"})({}),en=(0,C.Ay)(X,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),er=(0,C.Ay)(S,{name:"MuiMenu",slot:"List"})({outline:0}),eo=n.forwardRef(function(e,t){let i=(0,E.b)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:o,className:s,disableAutoFocusItem:d=!1,MenuListProps:u={},onClose:c,open:p,PaperProps:h={},PopoverClasses:g,transitionDuration:v="auto",TransitionProps:{onEntering:y,...b}={},variant:_="selectedMenu",slots:A={},slotProps:I={},...w}=i,k=(0,m.I)(),S={...i,autoFocus:a,disableAutoFocusItem:d,MenuListProps:u,onEntering:y,PaperProps:h,transitionDuration:v,TransitionProps:b,variant:_},T=(e=>{let{classes:t}=e;return(0,l.A)({root:["root"],paper:["paper"],list:["list"]},ee,t)}
1)(S),C=a&&!d&&p,R=n.useRef(null),P=-1;n.Children.map(o,(e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===_&&e.props.selected?P=t:-1===P&&(P=t)))});let O={slots:A,slotProps:{list:u,transition:b,paper:h,...I}},M=(0,f.A)({elementType:A.root,externalSlotProps:I.root,ownerState:S,className:[T.root,s]}),[N,j]=(0,H.A)("paper",{className:T.paper,elementType:en,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:S}),[D,F]=(0,H.A)("list",{className:(0,r.A)(T.list,u.className),elementType:er,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:e=>({...e,onKeyDown:t=>{var i;"Tab"===t.key&&(t.preventDefault(),c&&c(t,"tabKeyDown")),null==(i=e.onKeyDown)||i.call(e,t)}}),ownerState:S}),L="function"==typeof O.slotProps.transition?O.slotProps.transition(S):O.slotProps.transition;return(0,x.jsx)(ea,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?et:ei,slots:{root:A.root,paper:N,backdrop:A.backdrop,...A.transition&&{transition:A.transition}},slotProps:{root:M,paper:j,backdrop:"function"==typeof I.backdrop?I.backdrop(S):I.backdrop,transition:{...L,onEntering:function(){for(var e,t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];((e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:k?"rtl":"ltr"}),y&&y(e,t)})(...i),null==L||null==(e=L.onEntering)||e.call(L,...i)}}},open:p,ref:t,transitionDuration:v,ownerState:S,...w,classes:g,children:(0,x.jsx)(D,{actions:R,autoFocus:a&&(-1===P||d),autoFocusItem:C,variant:_,...F,children:o})})});function el(e){return(0,q.Ay)("MuiNativeSelect",e)}let es=(0,U.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ed=(0,C.Ay)("select",{name:"MuiNativeSelect"})(e=>{let{theme:t}=e;return{MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},["&.".concat(es.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:e=>{let{ownerState:t}=e;return"filled"!==t.variant&&"outlined"!==t.variant},style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]}}),eu=(0,C.Ay)(ed,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Q.A,overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.select,t[i.variant],i.error&&t.error,{["&.".concat(es.multiple)]:t.multiple}]}})({}),ec=(0,C.Ay)("svg",{name:"MuiNativeSelect"})(e=>{let{theme:t}=e;return{position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,["&.".concat(es.disabled)]:{color:(t.vars||t).palette.action.disabled},variants:[{props:e=>{let{ownerState:t}=e;return t.open},style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]}}),ep=(0,C.Ay)(ec,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.icon,i.variant&&t["icon".concat((0,p.A)(i.variant))],i.open&&t.iconOpen]}})({}),em=n.forwardRef(function(e,t){let{className:i,disabled:a,error:o,IconComponent:s,inputRef:d,variant:u="standard",...c}=e,m={...e,disabled:a,variant:u,error:o},f=(e=>{let{classes:t,variant:i,disabled:a,multiple:n,open:r,error:o}=e,s={select:["select",i,a&&"disabled",n&&"multiple",o&&"error"],icon:["icon","icon".concat((0,p.A)(i)),r&&"iconOpen",a&&"disabled"]};return(0,l.A)(s,el,t)})(m);return(0,x.jsxs)(n.Fragment,{children:[(0,x.jsx)(eu,{ownerState:m,className:(0,r.A)(f.select,i),disabled:a,ref:d||t,...c}),e.multiple?null:(0,x.jsx)(ep,{as:s,ownerState:m,className:f.icon})]})});var ef=i(7926),eh=i(7391),eg=i(9194);function ev(e){return(0,q.Ay)("MuiSelect",e)}let ey=(0,U.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),eb=(0,C.Ay)(ed,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[{["&.".concat(ey.select)]:t.select},{["&.".concat(ey.select)]:t[i.variant]},{["&.".concat(ey.error)]:t.error},{["&.".concat(ey.multiple)]:t.multiple}]}})({["&.".concat(ey.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),e_=(0,C.Ay)(ec,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.icon,i.variant&&t["icon".concat((0,p.A)(i.variant))],i.open&&t.iconOpen]}})({}),ex=(0,C.Ay)("input",{shouldForwardProp:e=>(0,eh.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function eA(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}let eI=n.forwardRef(function(e,t){var i,o,s,m,f;
1let h,g,{"aria-describedby":v,"aria-label":b,autoFocus:_,autoWidth:A,children:I,className:w,defaultOpen:k,defaultValue:S,disabled:T,displayEmpty:C,error:E=!1,IconComponent:R,inputRef:P,labelId:O,MenuProps:M={},multiple:N,name:j,onBlur:D,onChange:F,onClose:L,onFocus:B,onKeyDown:z,onMouseDown:U,onOpen:q,open:$,readOnly:H,renderValue:V,required:W,SelectDisplayProps:G={},tabIndex:K,type:Z,value:Y,variant:X="standard",...J}=e,[Q,ee]=(0,eg.A)({controlled:Y,default:S,name:"Select"}),[et,ei]=(0,eg.A)({controlled:$,default:k,name:"Select"}),ea=n.useRef(null),en=n.useRef(null),[er,el]=n.useState(null),{current:es}=n.useRef(null!=$),[ed,eu]=n.useState(),ec=(0,y.A)(t,P),ep=n.useCallback(e=>{en.current=e,e&&el(e)},[]),em=null==er?void 0:er.parentNode;n.useImperativeHandle(ec,()=>({focus:()=>{en.current.focus()},node:ea.current,value:Q}),[Q]);let eh=null!==er&&et;n.useEffect(()=>{if(!eh||!em||A||"undefined"==typeof ResizeObserver)return;let e=new ResizeObserver(()=>{eu(em.clientWidth)});return e.observe(em),()=>{e.disconnect()}},[eh,em,A]),n.useEffect(()=>{k&&et&&er&&!es&&(eu(A?null:em.clientWidth),en.current.focus())},[er,A]),n.useEffect(()=>{_&&en.current.focus()},[_]),n.useEffect(()=>{if(!O)return;let e=(0,c.A)(en.current).getElementById(O);if(e){let t=()=>{getSelection().isCollapsed&&en.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[O]);let ey=(e,t)=>{e?q&&q(t):L&&L(t),es||(eu(A?null:em.clientWidth),ei(e))},eI=n.Children.toArray(I);delete J["aria-invalid"];let ew=[],ek=!1;((0,ef.lq)({value:Q})||C)&&(V?h=V(Q):ek=!0);let eS=eI.map(e=>{let t;if(!n.isValidElement(e))return null;if(N){if(!Array.isArray(Q))throw Error((0,d.A)(2));(t=Q.some(t=>eA(t,e.props.value)))&&ek&&ew.push(e.props.children)}else(t=eA(Q,e.props.value))&&ek&&(g=e.props.children);return n.cloneElement(e,{"aria-selected":t?"true":"false",onClick:t=>{let i;if(t.currentTarget.hasAttribute("tabindex")){if(N){i=Array.isArray(Q)?Q.slice():[];let t=Q.indexOf(e.props.value);-1===t?i.push(e.props.value):i.splice(t,1)}else i=e.props.value;if(e.props.onClick&&e.props.onClick(t),Q!==i&&(ee(i),F)){let a=t.nativeEvent||t,n=new a.constructor(a.type,a);Object.defineProperty(n,"target",{writable:!0,value:{value:i,name:j}}),F(n,e)}N||ey(!1,t)}},onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ek&&(h=N?0===ew.length?null:ew.reduce((e,t,i)=>(e.push(t),i<ew.length-1&&e.push(", "),e),[]):g);let eT=ed;!A&&es&&er&&(eT=em.clientWidth);let eC=G.id||(j?"mui-component-select-".concat(j):void 0),eE={...e,variant:X,value:Q,open:eh,error:E},eR=(e=>{let{classes:t,variant:i,disabled:a,multiple:n,open:r,error:o}=e,s={select:["select",i,a&&"disabled",n&&"multiple",o&&"error"],icon:["icon","icon".concat((0,p.A)(i)),r&&"iconOpen",a&&"disabled"],nativeInput:["nativeInput"]};return(0,l.A)(s,ev,t)})(eE),eP={...M.PaperProps,..."function"==typeof(null==(i=M.slotProps)?void 0:i.paper)?M.slotProps.paper(eE):null==(o=M.slotProps)?void 0:o.paper},eO={...M.MenuListProps,..."function"==typeof(null==(s=M.slotProps)?void 0:s.list)?M.slotProps.list(eE):null==(m=M.slotProps)?void 0:m.list},eM=(0,u.A)();return(0,x.jsxs)(n.Fragment,{children:[(0,x.jsx)(eb,{as:"div",ref:ep,tabIndex:void 0!==K?K:T?null:0,role:"combobox","aria-controls":eh?eM:void 0,"aria-disabled":T?"true":void 0,"aria-expanded":eh?"true":"false","aria-haspopup":"listbox","aria-label":b,"aria-labelledby":[O,eC].filter(Boolean).join(" ")||void 0,"aria-describedby":v,"aria-required":W?"true":void 0,"aria-invalid":E?"true":void 0,onKeyDown:e=>{H||([" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),ey(!0,e)),null==z||z(e))},onMouseDown:T||H?null:e=>{null==U||U(e),0===e.button&&(e.preventDefault(),en.current.focus(),ey(!0,e))},onBlur:e=>{!eh&&D&&(Object.defineProperty(e,"target",{writable:!0,value:{value:Q,name:j}}),D(e))},onFocus:B,...G,ownerState:eE,className:(0,r.A)(G.className,eR.select,w),id:eC,children:null!=(f=h)&&("string"!=typeof f||f.trim())?h:a||(a=(0,x.jsx)("span",{className:"notranslate","aria-hidden":!0,
1children:"â"}))}),(0,x.jsx)(ex,{"aria-invalid":E,value:Array.isArray(Q)?Q.join(","):Q,name:j,ref:ea,"aria-hidden":!0,onChange:e=>{let t=eI.find(t=>t.props.value===e.target.value);void 0!==t&&(ee(t.props.value),F&&F(e,t))},tabIndex:-1,disabled:T,className:eR.nativeInput,autoFocus:_,required:W,...J,ownerState:eE}),(0,x.jsx)(e_,{as:R,className:eR.icon,ownerState:eE}),(0,x.jsx)(eo,{id:"menu-".concat(j||""),anchorEl:em,open:eh,onClose:e=>{ey(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...M,slotProps:{...M.slotProps,list:{"aria-labelledby":O,role:"listbox","aria-multiselectable":N?"true":void 0,disableListWrap:!0,id:eM,...eO},paper:{...eP,style:{minWidth:eT,...null!=eP?eP.style:null}}},children:eS})]})});var ew=i(1567),ek=i(9393);let eS=(0,i(1952).A)((0,x.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var eT=i(5130),eC=i(9169),eE=i(7860);let eR={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>(0,Q.A)(e)&&"variant"!==e},eP=(0,C.Ay)(eT.A,eR)(""),eO=(0,C.Ay)(eE.A,eR)(""),eM=(0,C.Ay)(eC.A,eR)(""),eN=n.forwardRef(function(e,t){let i=(0,E.b)({name:"MuiSelect",props:e}),{autoWidth:a=!1,children:d,classes:u={},className:c,defaultOpen:p=!1,displayEmpty:m=!1,IconComponent:f=eS,id:h,input
1:g,inputProps:v,label:b,labelId:_,MenuProps:A,multiple:I=!1,native:w=!1,onClose:k,onOpen:S,open:T,renderValue:C,SelectDisplayProps:R,variant:P="outlined",...O}=i,M=(0,ek.A)(),N=(0,ew.A)({props:i,muiFormControl:M,states:["variant","error"]}),j=N.variant||P,D={...i,variant:j,classes:u},F=(e=>{let{classes:t}=e,i=(0,l.A)({root:["root"]},ev,t);return{...t,...i}})(D),{root:L,...B}=F,z=g||({standard:(0,x.jsx)(eP,{ownerState:D}),outlined:(0,x.jsx)(eO,{label:b,ownerState:D}),filled:(0,x.jsx)(eM,{ownerState:D})})[j],U=(0,y.A)(t,(0,s.A)(z));return(0,x.jsx)(n.Fragment,{children:n.cloneElement(z,{inputComponent:w?em:eI,inputProps:{children:d,error:N.error,IconComponent:f,variant:j,type:void 0,multiple:I,...w?{id:h}:{autoWidth:a,defaultOpen:p,displayEmpty:m,labelId:_,MenuProps:A,onClose:k,onOpen:S,open:T,renderValue:C,SelectDisplayProps:{id:h,...R}},...v,classes:v?(0,o.A)(B,v.classes):B,...g?g.props.inputProps:{}},...(I&&w||m)&&"outlined"===j?{notched:!0}:{},ref:U,className:(0,r.A)(z.props.className,c,F.root),...!g&&{variant:j},...O})})});eN.muiName="Select";let ej=eN},1040:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M18 11v2h4v-2zm-2 6.61c.96.71 2.21 1.65 3.2 2.39.4-.53.8-1.07 1.2-1.6-.99-.74-2.24-1.68-3.2-2.4-.4.54-.8 1.08-1.2 1.61M20.4 5.6c-.4-.53-.8-1.07-1.2-1.6-.99.74-2.24 1.68-3.2 2.4.4.53.8 1.07 1.2 1.6.96-.72 2.21-1.65 3.2-2.4M4 9c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h1v4h2v-4h1l5 3V6L8 9zm11.5 3c0-1.33-.58-2.53-1.5-3.35v6.69c.92-.81 1.5-2.01 1.5-3.34"}),"Campaign")},1062:(e,t,i)=>{"use strict";i.d(t,{ck:()=>N,Sh:()=>M,Ay:()=>D,Oj:()=>O,WC:()=>P});var a,n=i(3338),r=i(5162),o=i(3638),l=i(6348),s=i(66),d=i(7398),u=i(8540),c=i(9254),p=i(8492),m=i(2066),f=i(4930);function h(e){return parseInt(e,10)||0}let g={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function v(e){return function(e){for(let t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}let y=r.forwardRef(function(e,t){let{onChange:i,maxRows:a,minRows:n=1,style:o,value:l,...s}=e,{current:y}=r.useRef(null!=l),b=r.useRef(null),_=(0,u.A)(t,b),x=r.useRef(null),A=r.useRef(null),I=r.useCallback(()=>{let t=b.current,i=A.current;if(!t||!i)return;let r=(0,m.A)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");let o=r.boxSizing,l=h(r.paddingBottom)+h(r.paddingTop),s=h(r.borderBottomWidth)+h(r.borderTopWidth),d=i.scrollHeight;i.value="x";let u=i.scrollHeight,c=d;return n&&(c=Math.max(Number(n)*u,c)),a&&(c=Math.min(Number(a)*u,c)),{outerHeightStyle:(c=Math.max(c,u))+("border-box"===o?l+s:0),overflowing:1>=Math.abs(c-d)}},[a,n,e.placeholder]),w=(0,p.A)(()=>{let e=b.current,t=I();if(!e||!t||v(t))return!1;let i=t.outerHeightStyle;return null!=x.current&&x.current!==i}),k=r.useCallback(()=>{let e=b.current,t=I();if(!e||!t||v(t))return;let i=t.outerHeightStyle;x.current!==i&&(x.current=i,e.style.height="".concat(i,"px")),e.style.overflow=t.overflowing?"hidden":""},[I]),S=r.useRef(-1);return(0,c.A)(()=>{let e,t=(0,d.A)(k),i=null==b?void 0:b.current;if(!i)return;let a=(0,m.A)(i);return a.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(()=>{w()&&(e.unobserve(i),cancelAnimationFrame(S.current),k(),S.current=requestAnimationFrame(()=>{e.observe(i)}))})).observe(i),()=>{t.clear(),cancelAnimationFrame(S.current),a.removeEventListener("resize",t),e&&e.disconnect()}},[I,k,w]),(0,c.A)(()=>{k()}),(0,f.jsxs)(r.Fragment,{children:[(0,f.jsx)("textarea",{value:l,onChange:e=>{y||k();let t=e.target,a=t.value.length,n=t.value.endsWith("\n"),r=t.selectionStart===a;n&&r&&t.setSelectionRange(a,a),i&&i(e)},ref:_,rows:n,style:o,...s}),(0,f.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:A,tabIndex:-1,style:{...g.shadow,...o,paddingTop:0,paddingBottom:0}})]})});var b=i(1567),_=i(1626),x=i(9393),A=i(2298),I=i(564),w=i(1894),k=i(9644),S=i(8611),T=i(5617),C=i(8187),E=i(7926),R=i(3418);let P=(e,t)=>{let{ownerState:i}=e;return[t.root,i.formControl&&t.formControl,i.startAdornment&&t.adornedStart,i.endAdornment&&t.adornedEnd,i.error&&t.error,"small"===i.size&&t.sizeSmall,i.multiline&&t.multiline,i.color&&t["color".concat((0,S.A)(i.color))],i.fullWidth&&t.fullWidth,i.hiddenLabel&&t.hiddenLabel]},O=(e,t)=>{let{ownerState:i}=e;return[t.input,"small"===i.size&&t.inputSizeSmall,i.multiline&&t.inputMultiline,"search"===i.type&&t.inputTypeSearch,i.startAdornment&&t.inputAdornedStart,i.endAdornment&&t.inputAdornedEnd,i.hiddenLabel&&t.inputHiddenLabel]},M=(0,A.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:P})((0,w.A)(e=>{let{theme:t}=e;return{...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",curs
1or:"text",display:"inline-flex",alignItems:"center",["&.".concat(R.A.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"4px 0 5px"}},{props:e=>{let{ownerState:t,size:i}=e;return t.multiline&&"small"===i},style:{paddingTop:1}},{props:e=>{let{ownerState:t}=e;return t.fullWidth},style:{width:"100%"}}]}})),N=(0,A.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:O})((0,w.A)(e=>{let{theme:t}=e,i="light"===t.palette.mode,a={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},r=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(R.A.formControl," &")]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},["&.".concat(R.A.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableInjectingGlobalStyles},style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),j=(0,I.Dp)({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),D=r.forwardRef(function(e,t){var i;let d=(0,k.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:c,autoFocus:p,className:m,color:h,components:g={},componentsProps:v={},defaultValue:A,disabled:I,disableInjectingGlobalStyles:w,endAdornment:P,error:O,fullWidth:D=!1,id:F,inputComponent:L="input",inputProps:B={},inputRef:z,margin:U,maxRows:q,minRows:$,multiline:H=!1,name:V,onBlur:W,onChange:G,onClick:K,onFocus:Z,onKeyDown:Y,onKeyUp:X,placeholder:J,readOnly:Q,renderSuffix:ee,rows:et,size:ei,slotProps:ea={},slots:en={},startAdornment:er,type:eo="text",value:el,...es}=d,ed=null!=B.value?B.value:el,{current:eu}=r.useRef(null!=ed),ec=r.useRef(),ep=r.useCallback(e=>{},[]),em=(0,T.A)(ec,z,B.ref,ep),[ef,eh]=r.useState(!1),eg=(0,x.A)(),ev=(0,b.A)({props:d,muiFormControl:eg,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ev.focused=eg?eg.focused:ef,r.useEffect(()=>{!eg&&I&&ef&&(eh(!1),W&&W())},[eg,I,ef,W]);let ey=eg&&eg.onFilled,eb=eg&&eg.onEmpty,e_=r.useCallback(e=>{(0,E.lq)(e)?ey&&ey():eb&&eb()},[ey,eb]);(0,C.A)(()=>{eu&&e_({value:ed})},[ed,e_,eu]),r.useEffect(()=>{e_(ec.current)},[]);let ex=L,eA=B;H&&"input"===ex&&(eA=et?{type:void 0,minRows:et,maxRows:et,...eA}:{type:void 0,maxRows:q,minRows:$,...eA},ex=y),r.useEffect(()=>{eg&&eg.setAdornedStart(!!er)},[eg,er]);let eI={...d,color:ev.color||"primary",disabled:ev.disabled,endAdornment:P,error:ev.error,focused:ev.focused,formControl:eg,fullWidth:D,hiddenLabel:ev.hiddenLabel,multiline:H,size:ev.size,startAdornment:er,type:eo},ew=(e=>{let{classes:t,color:i,disabled:a,error:n,endAdornment:r,focused:o,formControl:s,fullWidth:d,hiddenLabel:u,multiline:c,readOnly:p,size:m,startAdornment:f,type:h}=e,g={root:["root","color".concat((0,S.A)(i)),a&&"disabled",n&&"error",d&&"fullWidth",o&&"focused",s&&"formControl",m&&"medium"!==m&&"size".concat((0,S.A)(m)),c&&"multiline",f&&"adornedStart",r&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",a&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===m&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",r&&"inputAdornedEnd",p&&"readOnly"]};return(0,l.A)(g,R.g,t)})(eI),ek=en.root||g.Root||M,eS=ea.root||v.root||{},eT=en.input||g.Input||N;return eA={...eA,...null!=(i=ea.input)?i:v.input},(0,f.jsxs)(r.Fragment,{children:[!w&&"function"==typeof j&&(a||(a=(0,f.jsx)(j,{}))),(0,f.jsxs)(ek,{...eS,ref:t,onClick:e=>{ec.current&&e.currentTarget===e.target&&ec.current.focus(),K&&K(e)},...es,...!(0,s.A)(ek)&&{ownerState:{...eI,...eS.ownerState}},className:(0,o.A)(ew.root,eS.className,m,Q&&"MuiInputBase-readOnly"),children:[er,(0,f.jsx)(_.A.Provider,{value:null,children:(0,f.jsx)(eT,{"aria-invalid":ev.error,"aria-describedby":u,autoComplete:c,autoFocus:p,defaultValue:A,disabled:ev.disabled,id:F,onAnimationStart:e=>{e_("mui-auto-fill-cancel"===e.animationName?ec.current:{value:"x"})},name:V,placeholder:J,readOnly:Q,required:ev.required,rows:et,value:ed,onKeyDown:Y,onKeyUp:X,type:eo,...eA,...!(0,s.A)(eT)&&{as:ex,ownerState:{...eI,...eA.ownerState}},ref:em,className:(0,o.A)(ew.input,eA.className,Q&&"MuiInputBase-readOnly"),onBlur:e=>{W&&W(e),B.onBlur&&B.onBlur(e),eg&&eg.onBlur?eg.onBlur(e):eh(!1)},onChange:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];if(!eu){let t=e.target||ec.current;if(null==t)throw Error((0,n.A)(1));e_({value:t.value})}B.onChange&&B.onChange(e,...i),G&&G(e,...i)},onFocus:e=>{Z&&Z(e),B.onFocus&&B.onFocus(e),eg&&eg.onFocus?eg.onFocus(e):eh(!0)}})}),P,ee?ee({...ev,startAdornment:er}):null]})]})})},1077:(e,t,i)=>{"use strict";i.d(t,{A:()=>H});var a=function(){function e(e){var t=this;this._insertTag=function(e){var i;i=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepe
vendor: 10,513 bytes, line 1
1nd?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,i),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(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=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]}(i);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else i.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}(),n=Math.abs,r=String.fromCharCode,o=Object.assign;function l(e,t,i){return e.replace(t,i)}function s(e,t){return e.indexOf(t)}function d(e,t){return 0|e.charCodeAt(t)}function u(e,t,i){return e.slice(t,i)}function c(e){return e.length}function p(e,t){return t.push(e),e}var m=1,f=1,h=0,g=0,v=0,y="";function b(e,t,i,a,n,r,o){return{value:e,root:t,parent:i,type:a,props:n,children:r,line:m,column:f,length:o,return:""}}function _(e,t){return o(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return v=g<h?d(y,g++):0,f++,10===v&&(f=1,m++),v}function A(){return d(y,g)}function I(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function w(e){return m=f=1,h=c(y=e),g=0,[]}function k(e){var t,i;return(t=g-1,i=function e(t){for(;x();)switch(v){case t:return g;case 34:case 39:34!==t&&39!==t&&e(v);break;case 40:41===t&&e(t);break;case 92:x()}return g}(91===e?e+2:40===e?e+1:e),u(y,t,i)).trim()}var S="-ms-",T="-moz-",C="-webkit-",E="comm",R="rule",P="decl",O="@keyframes";function M(e,t){for(var i="",a=e.length,n=0;n<a;n++)i+=t(e[n],n,e,t)||"";return i}function N(e,t,i,a){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case P:return e.return=e.return||e.value;case E:return"";case O:return e.return=e.value+"{"+M(e.children,a)+"}";case R:e.value=e.props.join(",")}return c(i=M(e.children,a))?e.return=e.value+"{"+i+"}":""}function j(e,t,i,a,r,o,s,d,c,p,m){for(var f=r-1,h=0===r?o:[""],g=h.length,v=0,y=0,_=0;v<a;++v)for(var x=0,A=u(e,f+1,f=n(y=s[v])),I=e;x<g;++x)(I=(y>0?h[x]+" "+A:l(A,/&\f/g,h[x])).trim())&&(c[_++]=I);return b(e,t,i,0===r?R:d,c,p,m)}function D(e,t,i,a){return b(e,t,i,P,u(e,0,a),u(e,a+1,-1),a)}var F=function(e,t,i){for(var a=0,n=0;a=n,n=A(),38===a&&12===n&&(t[i]=1),!I(n);)x();return u(y,e,g)},L=function(e,t){var i=-1,a=44;do switch(I(a)){case 0:38===a&&12===A()&&(t[i]=1),e[i]+=F(g-1,t,i);break;case 2:e[i]+=k(a);break;case 4:if(44===a){e[++i]=58===A()?"&\f":"",t[i]=e[i].length;break}default:e[i]+=r(a)}while(a=x());return e},B=function(e,t){var i;return i=L(w(e),t),y="",i},z=new WeakMap,U=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,i=e.parent,a=e.column===i.column&&e.line===i.line;"rule"!==i.type;)if(!(i=i.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(i))&&!a){z.set(e,!0);for(var n=[],r=B(t,n),o=i.props,l=0,s=0;l<r.length;l++)for(var d=0;d<o.length;d++,s++)e.props[s]=n[l]?r[l].replace(/&\f/g,o[d]):o[d]+" "+r[l]}}},q=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},$=[function(e,t,i,a){if(e.length>-1&&!e.return)switch(e.type){case P:e.return=function e(t,i){switch(45^d(t,0)?(((i<<2^d(t,0))<<2^d(t,1))<<2^d(t,2))<<2^d(t,3):0){case 5103:return C+"print-"+t+t;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 C+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return C+t+T+t+S+t+t;case 6828:case 4268:return C+t+S+t+t;case 6165:return C+t+S+"flex-"+t+t;case 5187:return C+t+l(t,/(\w+).+(:[^]+)/,C+"box-$1$2"+S+"flex-$1$2")+t;case 5443:return C+t+S+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return C+t+S+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return C+t+S+l(t,"shrink","negative")+t;case 5292:return C+t+S+l(t,"basis","preferred-size")+t;case 6060:return C+"box-"+l(t,"-grow","")+C+t+S+l(t,"grow","positive")+t;case 4554:return C+l(t,/([^-])(transform)/g,"$1"+C+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,C+"$1$2")+t;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(c(t)-1-i>6)switch(d(t,i+1)){case 109:if(45!==d(t,i+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+T+(108==d(t,i+3)?"$3":"$2-$3"))+t;case 115:return~s(t,"stretch")?e(l(t,"stretch","fill-available"),i)+t:t}break;case 4949:if(115!==d(t,i+1))break;case 6444:switch(d(t,c(t)-3-(~s(t,"!important")&&10))){case 107:return l(t,":",":"+C)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+C+(45===d(t,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+S+"$2box$3")+t}break;case 5936:switch(d(t,i+11)){case 114:return C+t+S+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return C+t+S+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return C+t+S+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return C+t+S+t+t}return t}(e.value,e.length);break;case O:return M([_(e,{value:l(e.value,"@","@"+C)})],a);case R:if(e.length){var n,r;return n=e.props,r=function(t){var i;switch(i=t,(i=/(::plac\w+|:read-\w+)/.exec(i))?i[0]:i){case":read-only":case":read-write":return M([_(e,{props:[l(t,/:(read-\w+)/,":"+T+"$1")]})],a);case"::placeholder":return M([_(e,{props:[l(t,/:(plac\w+)/,":"+C+"input-$1")]}),_(e,{props:[l(t,/:(plac\w+)/,":"+T+"$1")]}),_(e,{props:[l(t,/:(plac\w+)/,S+"input-$1")]})],a)}return""},n.map(r).join("")}}}],H=function(e){var t,i,n,o,h,_=e.key;if("css"===_){var S=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(S,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var T=e.stylisPlugins||$,C={},R=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+_+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),i=1;i<t.length;i++)C[t[i]]=!0;R.push(e)});var P=(i=(t=[U,q].concat(T,[N,(n=function(e){h.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,a,n,r){for(var o="",l=0;l<i;l++)o+=t[l](e,a,n,r)||"";return o}),O=function(e){var t,i;return M((i=function e(t,i,a,n,o,h,_,w,S){for(var T,C=0,R=0,P=_,O=0,M=0,N=0,F=1,L=1,B=1,z=0,U="",q=o,$=h,H=n,V=U;L;)switch(N=z,z=x()){case 40:if(108!=N&&58==d(V,P-1)){-1!=s(V+=l(k(z),"&","&\f"),"&\f")&&(B=-1);break}case 34:case 39:case 91:V+=k(z);break;case 9:case 10:case 13:case 32:V+=function(e){for(;v=A();)if(v<33)x();else break;return I(e)>2||I(v)>3?"":" "}(N);break;case 92:V+=function(e,t){for(var i;--t&&x()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return i=g+(t<6&&32==A()&&32==x()),u(y,e,i)}(g-1,7);continue;case 47:switch(A()){case 42:case 47:p((T=function(e,t){for(;x();)if(e+v===57)break;else if(e+v===84&&47===A())break;return"/*"+u(y,t,g-1)+"*"+r(47===e?e:x())}(x(),g),b(T,i,a,E,r(v),u(T,2,-2),0)),S);break;default:V+="/"}break;case 123*F:w[C++]=c(V)*B;case 125*F:case 59:case 0:switch(z){case 0:case 125:L=0;case 59+R:-1==B&&(V=l(V,/\f/g,"")),M>0&&c(V)-P&&p(M>32?D(V+";",n,a,P-1):D(l(V," ","")+";",n,a,P-2),S);break;case 59:V+=";";default:if(p(H=j(V,i,a,C,R,o,w,U,q=[],$=[],P),h),123===z)if(0===R)e(V,i,H,H,q,h,P,w,$);else switch(99===O&&110===d(V,3)?100:O){case 100:case 108:case 109:case 115:e(t,H,H,n&&p(j(t,H,H,0,0,o,w,U,o,q=[],P),$),o,$,P,w,n?q:$);break;default:e(V,H,H,H,[""],$,0,w,$)}}C=R=M=0,F=B=1,U=V="",P=_;break;case 58:P=1+c(V),M=N;default:if(F<1){if(123==z)--F;else if(125==z&&0==F++&&125==(v=g>0?d(y,--g):0,f--,10===v&&(f=1,m--),v))continue}switch(V+=r(z),z*F){case 38:B=R>0?1:(V+="\f",-1);break;case 44:w[C++]=(c(V)-1)*B,B=1;break;case 64:45===A()&&(V+=k(x())),O=A(),R=P=c(U=V+=function(e){for(;!I(A());)x();return u(y,e,g)}(g)),z++;break;case 45:45===N&&2==c(V)&&(F=0)}}return h}("",null,null,null,[""],t=w(t=e),0,[0],t),y="",i),P)},F={key:_,sheet:new a({key:_,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:C,registered:{},insert:function(e,t,i,a){h=i,O(e?e+"{"+t.styles+"}":t.styles),a&&(F.inserted[t.name]=!0)}};return F.sheet.hydrate(R),F}},1104:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"}),"Business")},1140:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=(0,i(453).A)()},1180:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M7.58 4.08 6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42m12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18q.15-.36.15-.78h-4c.01 1.1.9 2 2.01 2"}),"NotificationsActive")},1195:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M19.97 6.43 12 2 4.03 6.43 9.1 9.24C9.83 8.48 10.86 8 12 8s2.17.48 2.9 1.24zM10 12c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2m1 9.44L3 17V8.14l5.13 2.85c-.09.32-.13.66-.13 1.01 0 1.86 1.27 3.43 3 3.87zm2 0v-5.57c1.73-.44 3-2.01 3-3.87 0-.35-.04-.69-.13
1-1.01L21 8.14V17z"}),"Token")},1287:(e,t,i)=>{"use strict";function a(e,t){if(null==e)return{};var i={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;i[a]=e[a]}return i}i.d(t,{A:()=>a})},1450:(e,t,i)=>{"use strict";i.d(t,{J:()=>f});var a,n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},r=i(9535),o=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},d=function(e){return null!=e&&"boolean"!=typeof e},u=(0,r.A)(function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()}),c=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,function(e,t,i){return a={name:t,styles:i,next:a},t})}return 1===n[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,i){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(typeof i){case"boolean":return"";case"object":if(1===i.anim)return a={name:i.name,styles:i.styles,next:a},i.name;if(void 0!==i.styles){var n=i.next;if(void 0!==n)for(;void 0!==n;)a={name:n.name,styles:n.styles,next:a},n=n.next;return i.styles+";"}return function(e,t,i){var a="";if(Array.isArray(i))for(var n=0;n<i.length;n++)a+=p(e,t,i[n])+";";else for(var r in i){var o=i[r];if("object"!=typeof o)null!=t&&void 0!==t[o]?a+=r+"{"+t[o]+"}":d(o)&&(a+=u(r)+":"+c(r,o)+";");else if(Array.isArray(o)&&"string"==typeof o[0]&&(null==t||void 0===t[o[0]]))for(var l=0;l<o.length;l++)d(o[l])&&(a+=u(r)+":"+c(r,o[l])+";");else{var s=p(e,t,o);switch(r){case"animation":case"animationName":a+=u(r)+":"+s+";";break;default:a+=r+"{"+s+"}"}}}return a}(e,t,i);case"function":if(void 0!==e){var r=a,o=i(e);return a=r,p(e,t,o)}}if(null==t)return i;var l=t[i];return void 0!==l?l:i}var m=/label:\s*([^\s;{]+)\s*(;|$)/g;function f(e,t,i){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n,r=!0,o="";a=void 0;var l=e[0];null==l||void 0===l.raw?(r=!1,o+=p(i,t,l)):o+=l[0];for(var s=1;s<e.length;s++)o+=p(i,t,e[s]),r&&(o+=l[s]);m.lastIndex=0;for(var d="";null!==(n=m.exec(o));)d+="-"+n[1];return{name:function(e){for(var t,i=0,a=0,n=e.length;n>=4;++a,n-=4)t=(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,i=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&i)*0x5bd1e995+((i>>>16)*59797<<16);switch(n){case 3:i^=(255&e.charCodeAt(a+2))<<16;case 2:i^=(255&e.charCodeAt(a+1))<<8;case 1:i^=255&e.charCodeAt(a),i=(65535&i)*0x5bd1e995+((i>>>16)*59797<<16)}return i^=i>>>13,(((i=(65535&i)*0x5bd1e995+((i>>>16)*59797<<16))^i>>>15)>>>0).toString(36)}(o)+d,styles:o,next:a}}},1535:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5z"}),"Shield")},1567:(e,t,i)=>{"use strict";function a(e){let{props:t,states:i,muiFormControl:a}=e;return i.reduce((e,i)=>(e[i]=t[i],a&&void 0===t[i]&&(e[i]=a[i]),e),{})}i.d(t,{A:()=>a})},1626:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(5162).createContext(void 0)},1680:(e,t,i)=>{"use strict";i.d(t,{t:()=>n,x:()=>r});var a=i(3727);let n={platform:a.env.NEXT_PUBLIC_PLATFORM_URL||"https://eslice.ai",homebuyer:a.env.NEXT_PUBLIC_HOMEBUYER_URL||"https://homebuyer.eslice.ai",startups:a.env.NEXT_PUBLIC_STARTUPS_URL||"https://startups.eslice.ai",afh:a.env.NEXT_PUBLIC_AFH_URL||"https://afh.eslice.ai",site:a.env.NEXT_PUBLIC_SITE_URL||"https://eslice.ai",investor:a.env.NEXT_PUBLIC_INVESTOR_URL||"https://investor.eslice.ai",sponsor:a.env.NEXT_PUBLIC_SPONSOR_URL||"https://sponsor.eslice.ai",fea:a.env.NEXT_PUBLIC_FEA_URL||"https://fea.eslice.ai",admin:a.env.NEXT_PUBLIC_ADMIN_URL||"https://admin.eslice.ai"},r=a.env.NEXT_PUBLIC_BASE_DOMAIN||"eslice.ai"},1792:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(5162);function n(e){return parseInt(a.version,10)>=19?e?.props?.ref||null:e?.ref||null}},1816:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}},1894:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(2981);let n={theme:void 0},r=function(e){let t,i;return function(r){let o=t;return(void 0===o||r.theme!==i)&&(n.theme=r.theme,t=o=(0,a.A)(e(n)),i=r.theme),o}}},1932:(e,t,i)=>{"use strict";i.d(t,{EU:()=>d,NI:()=>s,iZ:()=>c,kW:()=>p,vf:()=>u,zu:()=>r});var a=i(5858),n=i(2636);let r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`},l={containerQueries:e=>({up:t=>{let i="number"==typeof t?t:r[t]||t;return"number"==typeof i&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function s(e,t,i){let a=e.theme||{};if(Array.isArray(t)){let e=a.breakpoints||o;return t.reduce((a,n,r)=>(a[e.up(e.keys[r])]=i(t[r]),a),{})}if("object"==typeof t){let e=a.breakpoints||o;return Object.keys(t).reduce((o,s)=>{if((0,n.ob)(e.keys,s)){let e=(0,n.CT)(a.containerQueries?a:l,s);e&&(o[e]=i(t[s],s))}else Object.keys(e.values||r).includes(s)?o[e.up(s)]=i(t[s],s):o[s]=t[s];return o},{})}return i(t)}function d(e={}){return e.keys?.reduce((t,i)=>(t[e.up(i)]={},t),{})||{}}function u(e,t){return e.reduce((e,t)=>
1{let i=e[t];return i&&0!==Object.keys(i).length||delete e[t],e},t)}function c(e,...t){let i=d(e),n=[i,...t].reduce((e,t)=>(0,a.A)(e,t),{});return u(Object.keys(i),n)}function p({values:e,breakpoints:t,base:i}){let a,n=Object.keys(i||function(e,t){if("object"!=typeof e)return{};let i={},a=Object.keys(t);return Array.isArray(e)?a.forEach((t,a)=>{a<e.length&&(i[t]=!0)}):a.forEach(t=>{null!=e[t]&&(i[t]=!0)}),i}(e,t));return 0===n.length?e:n.reduce((t,i,n)=>(Array.isArray(e)?(t[i]=null!=e[n]?e[n]:e[a],a=n):"object"==typeof e?(t[i]=null!=e[i]?e[i]:e[a],a=i):t[i]=e,t),{})}},1952:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(5162),n=i(4305),r=i(4930);function o(e,t){function i(t,i){return(0,r.jsx)(n.A,{"data-testid":void 0,ref:i,...t,children:e})}return i.muiName=n.A.muiName,a.memo(a.forwardRef(i))}},1965:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a="$$material"},2050:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(7398).A},2066:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(7874);function n(e){return(0,a.A)(e).defaultView||window}},2298:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>l});var a=i(4488),n=i(1140),r=i(1965),o=i(2859);let l=(0,a.Ay)({themeId:r.A,defaultTheme:n.A,rootShouldForwardProp:o.A})},2299:(e,t,i)=>{"use strict";i.d(t,{A:()=>x});var a=i(5162),n=i(3638),r=i(6348),o=i(8689),l=i(2298),s=i(1894),d=i(6001),u=i(9644),c=i(6950),p=i(4374),m=i(8611),f=i(9562),h=i(550);function g(e){return(0,h.Ay)("MuiIconButton",e)}let v=(0,f.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var y=i(4930);let b=(0,l.Ay)(c.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.loading&&t.loading,"default"!==i.color&&t["color".concat((0,m.A)(i.color))],i.edge&&t["edge".concat((0,m.A)(i.edge))],t["size".concat((0,m.A)(i.size))]]}})((0,s.A)(e=>{let{theme:t}=e;return{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]}}),(0,s.A)(e=>{let{theme:t}=e;return{variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter((0,d.A)()).map(e=>{let[i]=e;return{props:{color:i},style:{color:(t.vars||t).palette[i].main}}}),...Object.entries(t.palette).filter((0,d.A)()).map(e=>{let[i]=e;return{props:{color:i},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[i].main,(t.vars||t).palette.action.hoverOpacity)}}}),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],["&.".concat(v.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},["&.".concat(v.loading)]:{color:"transparent"}}})),_=(0,l.Ay)("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(e=>{let{theme:t}=e;return{display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]}}),x=a.forwardRef(function(e,t){let i=(0,u.b)({props:e,name:"MuiIconButton"}),{edge:a=!1,children:l,className:s,color:d="default",disabled:c=!1,disableFocusRipple:f=!1,size:h="medium",id:v,loading:x=null,loadingIndicator:A,...I}=i,w=(0,o.A)(v),k=null!=A?A:(0,y.jsx)(p.A,{"aria-labelledby":w,color:"inherit",size:16}),S={...i,edge:a,color:d,disabled:c,disableFocusRipple:f,loading:x,loadingIndicator:k,size:h},T=(e=>{let{classes:t,disabled:i,color:a,edge:n,size:o,loading:l}=e,s={root:["root",l&&"loading",i&&"disabled","default"!==a&&"color".concat((0,m.A)(a)),n&&"edge".concat((0,m.A)(n)),"size".concat((0,m.A)(o))],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,r.A)(s,g,t)})(S);return(0,y.jsxs)(b,{id:x?w:v,className:(0,n.A)(T.root,s),centerRipple:!0,focusRipple:!f,disabled:c||x,ref:t,...I,ownerState:S,children:["boolean"==typeof x&&(0,y.jsx)("span",{className:T.loadingWrapper,style:{display:"contents"},children:(0,y.jsx)(_,{className:T.loadingIndicator,ownerState:S,children:x&&k})}),l]})})},2332:(e,t,i)=>{"use strict";function a(e){try{return e.matches(":focus-visible")}catch(e){}return!1}i.d(t,{A:()=>a})},2390:(e,t,i)=>{"use strict";function a(...e){return e.reduce((e,t)=>
1null==t?e:function(...i){e.apply(this,i),t.apply(this,i)},()=>{})}i.d(t,{A:()=>a})},2636:(e,t,i)=>{"use strict";function a(e,t){if(!e.containerQueries)return t;let i=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{let i=/min-width:\s*([0-9.]+)/;return(e.match(i)?.[1]||0)-(t.match(i)?.[1]||0)});return i.length?i.reduce((e,i)=>{let a=t[i];return delete e[i],e[i]=a,e},{...t}):t}function n(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function r(e,t){let i=t.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;let[,a,n]=i,r=Number.isNaN(+a)?a||0:+a;return e.containerQueries(n).up(r)}function o(e){let t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function i(i,a){i.up=(...i)=>t(e.breakpoints.up(...i),a),i.down=(...i)=>t(e.breakpoints.down(...i),a),i.between=(...i)=>t(e.breakpoints.between(...i),a),i.only=(...i)=>t(e.breakpoints.only(...i),a),i.not=(...i)=>{let n=t(e.breakpoints.not(...i),a);return n.includes("not all and")?n.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):n}}let a={},n=e=>(i(a,e),a);return i(n),{...e,containerQueries:n}}i.d(t,{Ay:()=>o,CT:()=>r,_S:()=>a,ob:()=>n})},2859:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(7391);let n=e=>(0,a.A)(e)&&"classes"!==e},2907:(e,t,i)=>{"use strict";i.d(t,{t:()=>r});var a=i(4246),n=i(5032),r=new class extends a.Q{#e=!0;#t;#i;constructor(){super(),this.#i=e=>{if(!n.S$&&window.addEventListener){let t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#i=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}}},2924:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"}),"Security")},2952:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m18.85 10.39 1.06-1.06c.78-.78.78-2.05 0-2.83L18.5 5.09c-.78-.78-2.05-.78-2.83 0l-1.06 1.06zm-5.66-2.83L4 16.76V21h4.24l9.19-9.19zM19 17.5c0 2.19-2.54 3.5-5 3.5-.55 0-1-.45-1-1s.45-1 1-1c1.54 0 3-.73 3-1.5 0-.47-.48-.87-1.23-1.2l1.48-1.48c1.07.63 1.75 1.47 1.75 2.68M4.58 13.35C3.61 12.79 3 12.06 3 11c0-1.8 1.89-2.63 3.56-3.36C7.59 7.18 9 6.56 9 6c0-.41-.78-1-2-1-1.26 0-1.8.61-1.83.64-.35.41-.98.46-1.4.12-.41-.34-.49-.95-.15-1.38C3.73 4.24 4.76 3 7 3s4 1.32 4 3c0 1.87-1.93 2.72-3.64 3.47C6.42 9.88 5 10.5 5 11c0 .31.43.6 1.07.86z"}),"Draw")},2972:(e,t,i)=>{"use strict";let a;i.d(t,{yP:()=>bi,lI:()=>y2,ZO:()=>kI,O$:()=>kx,rd:()=>y4,WE:()=>yK,Iv:()=>h0,Pn:()=>kv,$O:()=>kS,yF:()=>y5,gs:()=>ba,st:()=>bt,uC:()=>kA,tF:()=>y6,Ku:()=>yZ,eP:()=>h1});var n={};i.r(n),i.d(n,{hasBrowserEnv:()=>vX,hasStandardBrowserEnv:()=>vQ,hasStandardBrowserWebWorkerEnv:()=>v0,navigator:()=>vJ,origin:()=>v1});var r=i(4930),o=i(5162),l=i(853);!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let i of e)t[i]=i;return t},e.getValidEnumValues=t=>{let i=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),a={};for(let e of i)a[e]=t[e];return e.objectValues(a)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},e.find=(e,t)=>{for(let i of e)if(t(i))return i},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(b1||(b1={})),(b2||(b2={})).mergeShapes=(e,t)=>({...e,...t});let s=b1.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),d=e=>{switch(typeof e){case"undefined":return s.undefined;case"string":return s.string;case"number":return Number.isNaN(e)?s.nan:s.number;case"boolean":return s.boolean;case"function":return s.function;case"bigint":return s.bigint;case"symbol":return s.symbol;case"object":if(Array.isArray(e))return s.array;if(null===e)return s.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return s.promise;if("undefined"!=typeof Map&&e instanceof Map)return s.map;if("undefined"!=typeof Set&&e instanceof Set)return s.set;if("undefined"!=typeof Date&&e instanceof Date)return s.date;return s.object;default:return s.unknown}}
1,u=b1.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class c extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},i={_errors:[]},a=e=>{for(let n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(a);else if("invalid_return_type"===n.code)a(n.returnTypeError);else if("invalid_arguments"===n.code)a(n.argumentsError);else if(0===n.path.length)i._errors.push(t(n));else{let e=i,a=0;for(;a<n.path.length;){let i=n.path[a];a===n.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(n))):e[i]=e[i]||{_errors:[]},e=e[i],a++}}};return a(this),i}static assert(e){if(!(e instanceof c))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,b1.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},i=[];for(let a of this.issues)if(a.path.length>0){let i=a.path[0];t[i]=t[i]||[],t[i].push(e(a))}else i.push(e(a));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}c.create=e=>new c(e);let p=(e,t)=>{let i;switch(e.code){case u.invalid_type:i=e.received===s.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case u.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,b1.jsonStringifyReplacer)}`;break;case u.unrecognized_keys:i=`Unrecognized key(s) in object: ${b1.joinValues(e.keys,", ")}`;break;case u.invalid_union:i="Invalid input";break;case u.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${b1.joinValues(e.options)}`;break;case u.invalid_enum_value:i=`Invalid enum value. Expected ${b1.joinValues(e.options)}, received '${e.received}'`;break;case u.invalid_arguments:i="Invalid function arguments";break;case u.invalid_return_type:i="Invalid function return type";break;case u.invalid_date:i="Invalid date";break;case u.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:b1.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case u.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case u.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case u.custom:i="Invalid input";break;
vendor: 7,135 bytes, line 1
1case u.invalid_intersection_types:i="Intersection results could not be merged";break;case u.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case u.not_finite:i="Number must be finite";break;default:i=t.defaultError,b1.assertNever(e)}return{message:i}};!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(b5||(b5={}));let m=e=>{let{data:t,path:i,errorMaps:a,issueData:n}=e,r=[...i,...n.path||[]],o={...n,path:r};if(void 0!==n.message)return{...n,path:r,message:n.message};let l="";for(let e of a.filter(e=>!!e).slice().reverse())l=e(o,{data:t,defaultError:l}).message;return{...n,path:r,message:l}};function f(e,t){let i=m({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,p,void 0].filter(e=>!!e)});e.common.issues.push(i)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let i=[];for(let a of t){if("aborted"===a.status)return g;"dirty"===a.status&&e.dirty(),i.push(a.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){let i=[];for(let e of t){let t=await e.key,a=await e.value;i.push({key:t,value:a})}return h.mergeObjectSync(e,i)}static mergeObjectSync(e,t){let i={};for(let a of t){let{key:t,value:n}=a;if("aborted"===t.status||"aborted"===n.status)return g;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==n.value||a.alwaysSet)&&(i[t.value]=n.value)}return{status:e.value,value:i}}}let g=Object.freeze({status:"aborted"}),v=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),b=e=>"undefined"!=typeof Promise&&e instanceof Promise;class _{constructor(e,t,i,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let x=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new c(e.common.issues);return this._error=t,this._error}}};function A(e){if(!e)return{};let{errorMap:t,invalid_type_error:i,required_error:a,description:n}=e;if(t&&(i||a))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:n}:{errorMap:(t,n)=>{let{message:r}=e;return"invalid_enum_value"===t.code?{message:r??n.defaultError}:void 0===n.data?{message:r??a??n.defaultError}:"invalid_type"!==t.code?{message:n.defaultError}:{message:r??i??n.defaultError}},description:n}}class I{get description(){return this._def.description}_getType(e){return d(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:d(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:d(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(b(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){let i={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:d(e)},a=this._parseSync({data:e,path:i.path,parent:i});return x(i,a)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:d(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:t});return"valid"===i.status?{value:i.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){let i={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:d(e)},a=this._parse({data:e,path:i.path,parent:i});return x(i,await (b(a)?a:Promise.resolve(a)))}refine(e,t){return this._refinement((i,a)=>{let n=e(i),r=()=>a.addIssue({code:u.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(i):t});return"undefined"!=typeof Promise&&n instanceof Promise?n.then(e=>!!e||(r(),!1)):!!n||(r(),!1)})}refinement(e,t){return this._refinement((i,a)=>!!e(i)||(a.addIssue("function"==typeof t?t(i,a):t),!1))}_refinement(e){return new eg({schema:this,typeName:b3.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ev.create(this,this._def)}nullable(){return ey.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Q.create(this)}promise(){return eh.create(this,this._def)}or(e){return et.create([this,e],this._def)}and(e){return en.create(this,e,this._def)}transform(e){return new eg({...A(this._def),schema:this,typeName:b3.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eb({...A(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:b3.ZodDefault})}brand(){return new eA({typeName:b3.ZodBranded,type:this,...A(this._def)})}catch(e){return new e_({...A(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:b3.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eI.create(this,e)}readonly(){return ew.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let w=/^c[^\s-]{8,}
vendor: 25,061 bytes, line 1
1$/i,k=/^[0-9a-z]+$/,S=/^[0-9A-HJKMNP-TV-Z]{26}$/i,T=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,C=/^[a-z0-9_-]{21}$/i,E=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,R=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,P=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,O=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,M=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,N=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,j=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,D=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,F=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,L="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",B=RegExp(`^${L}$`);function z(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let i=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${i}`}class U extends I{_parse(e){var t,i,n,r;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==s.string){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.string,received:t.parsedType}),g}let l=new h;for(let s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(f(o=this._getOrReturnCtx(e,o),{code:u.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),l.dirty());else if("max"===s.kind)e.data.length>s.value&&(f(o=this._getOrReturnCtx(e,o),{code:u.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),l.dirty());else if("length"===s.kind){let t=e.data.length>s.value,i=e.data.length<s.value;(t||i)&&(o=this._getOrReturnCtx(e,o),t?f(o,{code:u.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):i&&f(o,{code:u.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),l.dirty())}else if("email"===s.kind)P.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"email",code:u.invalid_string,message:s.message}),l.dirty());else if("emoji"===s.kind)a||(a=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),a.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:u.invalid_string,message:s.message}),l.dirty());else if("uuid"===s.kind)T.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:u.invalid_string,message:s.message}),l.dirty());else if("nanoid"===s.kind)C.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:u.invalid_string,message:s.message}),l.dirty());else if("cuid"===s.kind)w.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:u.invalid_string,message:s.message}),l.dirty());else if("cuid2"===s.kind)k.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:u.invalid_string,message:s.message}),l.dirty());else if("ulid"===s.kind)S.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:u.invalid_string,message:s.message}),l.dirty());else if("url"===s.kind)try{new URL(e.data)}catch{f(o=this._getOrReturnCtx(e,o),{validation:"url",code:u.invalid_string,message:s.message}),l.dirty()}else"regex"===s.kind?(s.regex.lastIndex=0,s.regex.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"regex",code:u.invalid_string,message:s.message}),l.dirty())):"trim"===s.kind?e.data=e.data.trim():"includes"===s.kind?e.data.includes(s.value,s.position)||(f(o=this._getOrReturnCtx(e,o),{code:u.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),l.dirty()):"toLowerCase"===s.kind?e.data=e.data.toLowerCase():"toUpperCase"===s.kind?e.data=e.data.toUpperCase():"startsWith"===s.kind?e.data.startsWith(s.value)||(f(o=this._getOrReturnCtx(e,o),{code:u.invalid_string,validation:{startsWith:s.value},message:s.message}),l.dirty()):"endsWith"===s.kind?e.data.endsWith(s.value)||(f(o=this._getOrReturnCtx(e,o),{code:u.invalid_string,validation:{endsWith:s.value},message:s.message}),l.dirty()):"datetime"===s.kind?(function(e){let t=`${L}T${z(e)}`,i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${i.join("|")})`,RegExp(`^${t}$`)})(s).test(e.data)||(f(o=this._getOrReturnCtx(e,o),{code:u.invalid_string,validation:"datetime",message:s.message}),l.dirty()):"date"===s.kind?B.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{code:u.invalid_string,validation:"date",message:s.message}),l.dirty()):"time"===s.kind?RegExp(`^${z(s)}$`).test(e.data)||(f(o=this._getOrReturnCtx(e,o),{code:u.invalid_string,validation:"time",message:s.message}),l.dirty()):"duration"===s.kind?R.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"duration",code:u.invalid_string,message:s.message}),l.dirty()):"ip"===s.kind?(t=e.data,!(("v4"===(i=s.version)||!i)&&O.test(t)||("v6"===i||!i)&&N.test(t))&&1&&(f(o=this._getOrReturnCtx(e,o),{validation:"ip",code:u.invalid_string,message:s.message}),l.dirty())):"jwt"===s.kind?!function(e,t){if(!E.test(e))return!1;try{let[i]=e.split(".");if(!i)return!1;let a=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),n=JSON.parse(atob(a));if("object"!=typeof n||null===n||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)return!1;return!0}catch{return!1}}(e.data,s.alg)&&(f(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:u.invalid_string,message:s.message}),l.dirty()):"cidr"===s.kind?(n=e.data,!(("v4"===(r=s.version)||!r)&&M.test(n)||("v6"===r||!r)&&j.test(n))&&1&&(f(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:u.invalid_string,message:s.message}),l.dirty())):"base64"===s.kind?D.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"base64",code:u.invalid_string,message:s.message}),l.dirty()):"base64url"===s.kind?F.test(e.data)||(f(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:u.invalid_string,message:s.message}),l.dirty()):b1.assertNever(s);return{status:l.value,value:e.data}}_regex(e,t,i){return this.refinement(t=>e.test(t),{validation:t,code:u.invalid_string,...b5.errToObj(i)})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...b5.errToObj(e)})}url(e){return this._addCheck({kind:"url",...b5.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...b5.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...b5.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...b5.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...b5.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...b5.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...b5.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...b5.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...b5.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...b5.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...b5.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...b5.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...b5.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...b5.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...b5.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...b5.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...b5.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...b5.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...b5.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...b5.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...b5.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...b5.errToObj(t)})}nonempty(e){return this.min(1,b5.errToObj(e))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}U.create=e=>new U({checks:[],typeName:b3.ZodString,coerce:e?.coerce??!1,...A(e)});class q extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==s.number){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.number,received:t.parsedType}),g}let i=new h;for(let a of this._def.checks)"int"===a.kind?b1.isInteger(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:u.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):"multipleOf"===a.kind?0!==function(e,t){let i=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,n=i>a?i:a;return Number.parseInt(e.toFixed(n).replace(".",""))%Number.parseInt(t.toFixed(n).replace(".",""))/10**n}(e.data,a.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):"finite"===a.kind?Number.isFinite(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:u.not_finite,message:a.message}),i.dirty()):b1.assertNever(a);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,b5.toString(t))}gt(e,t){return this.setLimit("min",e,!1,b5.toString(t))}lte(e,t){return this.setLimit("max",e,!0,b5.toString(t))}lt(e,t){return this.setLimit("max",e,!1,b5.toString(t))}setLimit(e,t,i,a){return new q({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:b5.toString(a)}]})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:b5.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:b5.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:b5.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:b5.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:b5.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:b5.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:b5.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:b5.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:b5.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&b1.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let i of this._def.checks)if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;else"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value);return Number.isFinite(t)&&Number.isFinite(e)}}q.create=e=>new q({checks:[],typeName:b3.ZodNumber,coerce:e?.coerce||!1,...A(e)});class $ extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==s.bigint)return this._getInvalidInput(e);let i=new h;for(let a of this._def.checks)"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(f(t=this._getOrReturnCtx(e,t),{code:u.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):"multipleOf"===a.kind?e.data%a.value!==BigInt(0)&&(f(t=this._getOrReturnCtx(e,t),{code:u.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):b1.assertNever(a);return{status:i.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.bigint,received:t.parsedType}),g}gte(e,t){return this.setLimit("min",e,!0,b5.toString(t))}gt(e,t){return this.setLimit("min",e,!1,b5.toString(t))}lte(e,t){return this.setLimit("max",e,!0,b5.toString(t))}lt(e,t){return this.setLimit("max",e,!1,b5.toString(t))}setLimit(e,t,i,a){return new $({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:b5.toString(a)}]})}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:b5.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:b5.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:b5.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:b5.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:b5.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}$.create=e=>new $({checks:[],typeName:b3.ZodBigInt,coerce:e?.coerce??!1,...A(e)});class H extends I{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==s.boolean){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.boolean,received:t.parsedType}),g}return y(e.data)}}H.create=e=>new H({typeName:b3.ZodBoolean,coerce:e?.coerce||!1,...A(e)});class V extends I{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==s.date){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.date,received:t.parsedType}),g}if(Number.isNaN(e.data.getTime()))return f(this._getOrReturnCtx(e),{code:u.invalid_date}),g;let i=new h;for(let a of this._def.checks)"min"===a.kind?e.data.getTime()<a.value&&(f(t=this._getOrReturnCtx(e,t),{code:u.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),i.dirty()):"max"===a.kind?e.data.getTime()>a.value&&(f(t=this._getOrReturnCtx(e,t),{code:u.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),i.dirty()):b1.assertNever(a);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:b5.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:b5.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}V.create=e=>new V({checks:[],coerce:e?.coerce||!1,typeName:b3.ZodDate,...A(e)});class W extends I{_parse(e){if(this._getType(e)!==s.symbol){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.symbol,received:t.parsedType}),g}return y(e.data)}}W.create=e=>new W({typeName:b3.ZodSymbol,...A(e)});class G extends I{_parse(e){if(this._getType(e)!==s.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.undefined,received:t.parsedType}),g}return y(e.data)}}G.create=e=>new G({typeName:b3.ZodUndefined,...A(e)});class K extends I{_parse(e){if(this._getType(e)!==s.null){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.null,received:t.parsedType}),g}return y(e.data)}}K.create=e=>new K({typeName:b3.ZodNull,...A(e)});class Z extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}Z.create=e=>new Z({typeName:b3.ZodAny,...A(e)});class Y extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}Y.create=e=>new Y({typeName:b3.ZodUnknown,...A(e)});class X extends I{_parse(e){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.never,received:t.parsedType}),g}}X.create=e=>new X({typeName:b3.ZodNever,...A(e)});class J extends I{_parse(e){if(this._getType(e)!==s.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.void,received:t.parsedType}),g}return y(e.data)}}J.create=e=>new J({typeName:b3.ZodVoid,...A(e)});class Q extends I{_parse(e){let{ctx:t,status:i}=this._processInputParams(e),a=this._def;if(t.parsedType!==s.array)return f(t,{code:u.invalid_type,expected:s.array,received:t.parsedType}),g;if(null!==a.exactLength){let e=t.data.length>a.exactLength.value,n=t.data.length<a.exactLength.value;(e||n)&&(f(t,{code:e?u.too_big:u.too_small,minimum:n?a.exactLength.value:void 0,maximum:e?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(null!==a.minLength&&t.data.length<a.minLength.value&&(f(t,{code:u.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),null!==a.maxLength&&t.data.length>a.maxLength.value&&(f(t,{code:u.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((e,i)=>a.type._parseAsync(new _(t,e,t.path,i)))).then(e=>h.mergeArray(i,e));let n=[...t.data].map((e,i)=>a.type._parseSync(new _(t,e,t.path,i)));return h.mergeArray(i,n)}get element(){return this._def.type}min(e,t){return new Q({...this._def,minLength:{value:e,message:b5.toString(t)}})}max(e,t){return new Q({...this._def,maxLength:{value:e,message:b5.toString(t)}})}length(e,t){return new Q({...this._def,exactLength:{value:e,message:b5.toString(t)}})}nonempty(e){return this.min(1,e)}}Q.create=(e,t)=>new Q({type:e,minLength:null,maxLength:null,exactLength:null,typeName:b3.ZodArray,...A(t)});class ee extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=b1.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==s.object){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.object,received:t.parsedType}),g}let{status:t,ctx:i}=this._processInputParams(e),{shape:a,keys:n}=this._getCached(),r=[];if(!(this._def.catchall instanceof X&&"strip"===this._def.unknownKeys))for(let e in i.data)n.includes(e)||r.push(e);let o=[];for(let e of n){let t=a[e],n=i.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new _(i,n,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof X){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of r)o.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)r.length>0&&(f(i,{code:u.unrecognized_keys,keys:r}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of r){let a=i.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new _(i,a,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let i=await t.key,a=await t.value;e.push({key:i,value:a,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(t,e)):h.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return b5.errToObj,new ee({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{let a=this._def.errorMap?.(t,i).message??i.defaultError;return"unrecognized_keys"===t.code?{message:b5.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new ee({...this._def,unknownKeys:"strip"})}passthrough(){return new ee({...this._def,unknownKeys:"passthrough"})}extend(e){return new ee({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ee({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:b3.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ee({...this._def,catchall:e})}pick(e){let t={};for(let i of b1.objectKeys(e))e[i]&&this.shape[i]&&(t[i]=this.shape[i]);return new ee({...this._def,shape:()=>t})}omit(e){let t={};for(let i of b1.objectKeys(this.shape))e[i]||(t[i]=this.shape[i]);return new ee({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ee){let i={};for(let a in t.shape){let n=t.shape[a];i[a]=ev.create(e(n))}return new ee({...t._def,shape:()=>i})}if(t instanceof Q)return new Q({...t._def,type:e(t.element)});if(t instanceof ev)return ev.create(e(t.unwrap()));if(t instanceof ey)return ey.create(e(t.unwrap()));if(t instanceof er)return er.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let i of b1.objectKeys(this.shape)){let a=this.shape[i];e&&!e[i]?t[i]=a:t[i]=a.optional()}return new ee({...this._def,shape:()=>t})}required(e){let t={};for(let i of b1.objectKeys(this.shape))if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof ev;)e=e._def.innerType;t[i]=e}return new ee({...this._def,shape:()=>t})}keyof(){return ep(b1.objectKeys(this.shape))}}ee.create=(e,t)=>
1new ee({shape:()=>e,unknownKeys:"strip",catchall:X.create(),typeName:b3.ZodObject,...A(t)}),ee.strictCreate=(e,t)=>new ee({shape:()=>e,unknownKeys:"strict",catchall:X.create(),typeName:b3.ZodObject,...A(t)}),ee.lazycreate=(e,t)=>new ee({shape:e,unknownKeys:"strip",catchall:X.create(),typeName:b3.ZodObject,...A(t)});class et extends I{_parse(e){let{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map(async e=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;let i=e.map(e=>new c(e.ctx.common.issues));return f(t,{code:u.invalid_union,unionErrors:i}),g});{let e,a=[];for(let n of i){let i={...t,common:{...t.common,issues:[]},parent:null},r=n._parseSync({data:t.data,path:t.path,parent:i});if("valid"===r.status)return r;"dirty"!==r.status||e||(e={result:r,ctx:i}),i.common.issues.length&&a.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let n=a.map(e=>new c(e));return f(t,{code:u.invalid_union,unionErrors:n}),g}}get options(){return this._def.options}}et.create=(e,t)=>new et({options:e,typeName:b3.ZodUnion,...A(t)});let ei=e=>{if(e instanceof eu)return ei(e.schema);if(e instanceof eg)return ei(e.innerType());if(e instanceof ec)return[e.value];if(e instanceof em)return e.options;if(e instanceof ef)return b1.objectValues(e.enum);else if(e instanceof eb)return ei(e._def.innerType);else if(e instanceof G)return[void 0];else if(e instanceof K)return[null];else if(e instanceof ev)return[void 0,...ei(e.unwrap())];else if(e instanceof ey)return[null,...ei(e.unwrap())];else if(e instanceof eA)return ei(e.unwrap());else if(e instanceof ew)return ei(e.unwrap());else if(e instanceof e_)return ei(e._def.innerType);else return[]};class ea extends I{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.object)return f(t,{code:u.invalid_type,expected:s.object,received:t.parsedType}),g;let i=this.discriminator,a=t.data[i],n=this.optionsMap.get(a);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:u.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),g)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){let a=new Map;for(let i of t){let t=ei(i.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(a.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);a.set(n,i)}}return new ea({typeName:b3.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...A(i)})}}class en extends I{_parse(e){let{status:t,ctx:i}=this._processInputParams(e),a=(e,a)=>{if("aborted"===e.status||"aborted"===a.status)return g;let n=function e(t,i){let a=d(t),n=d(i);if(t===i)return{valid:!0,data:t};if(a===s.object&&n===s.object){let a=b1.objectKeys(i),n=b1.objectKeys(t).filter(e=>-1!==a.indexOf(e)),r={...t,...i};for(let a of n){let n=e(t[a],i[a]);if(!n.valid)return{valid:!1};r[a]=n.data}return{valid:!0,data:r}}if(a===s.array&&n===s.array){if(t.length!==i.length)return{valid:!1};let a=[];for(let n=0;n<t.length;n++){let r=e(t[n],i[n]);if(!r.valid)return{valid:!1};a.push(r.data)}return{valid:!0,data:a}}if(a===s.date&&n===s.date&&+t==+i)return{valid:!0,data:t};return{valid:!1}}(e.value,a.value);return n.valid?(("dirty"===e.status||"dirty"===a.status)&&t.dirty(),{status:t.value,value:n.data}):(f(i,{code:u.invalid_intersection_types}),g)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([e,t])=>a(e,t)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}en.create=(e,t,i)=>new en({left:e,right:t,typeName:b3.ZodIntersection,...A(i)});class er extends I{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==s.array)return f(i,{code:u.invalid_type,expected:s.array,received:i.parsedType}),g;if(i.data.length<this._def.items.length)return f(i,{code:u.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),g;!this._def.rest&&i.data.length>this._def.items.length&&(f(i,{code:u.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let a=[...i.data].map((e,t)=>{let a=this._def.items[t]||this._def.rest;return a?a._parse(new _(i,e,i.path,t)):null}).filter(e=>!!e);return i.common.async?Promise.all(a).then(e=>h.mergeArray(t,e)):h.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new er({...this._def,rest:e})}}er.create=(e,t)=>
1{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new er({items:e,typeName:b3.ZodTuple,rest:null,...A(t)})};class eo extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==s.object)return f(i,{code:u.invalid_type,expected:s.object,received:i.parsedType}),g;let a=[],n=this._def.keyType,r=this._def.valueType;for(let e in i.data)a.push({key:n._parse(new _(i,e,i.path,e)),value:r._parse(new _(i,i.data[e],i.path,e)),alwaysSet:e in i.data});return i.common.async?h.mergeObjectAsync(t,a):h.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,i){return new eo(t instanceof I?{keyType:e,valueType:t,typeName:b3.ZodRecord,...A(i)}:{keyType:U.create(),valueType:e,typeName:b3.ZodRecord,...A(t)})}}class el extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==s.map)return f(i,{code:u.invalid_type,expected:s.map,received:i.parsedType}),g;let a=this._def.keyType,n=this._def.valueType,r=[...i.data.entries()].map(([e,t],r)=>({key:a._parse(new _(i,e,i.path,[r,"key"])),value:n._parse(new _(i,t,i.path,[r,"value"]))}));if(i.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let i of r){let a=await i.key,n=await i.value;if("aborted"===a.status||"aborted"===n.status)return g;("dirty"===a.status||"dirty"===n.status)&&t.dirty(),e.set(a.value,n.value)}return{status:t.value,value:e}})}{let e=new Map;for(let i of r){let a=i.key,n=i.value;if("aborted"===a.status||"aborted"===n.status)return g;("dirty"===a.status||"dirty"===n.status)&&t.dirty(),e.set(a.value,n.value)}return{status:t.value,value:e}}}}el.create=(e,t,i)=>new el({valueType:t,keyType:e,typeName:b3.ZodMap,...A(i)});class es extends I{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==s.set)return f(i,{code:u.invalid_type,expected:s.set,received:i.parsedType}),g;let a=this._def;null!==a.minSize&&i.data.size<a.minSize.value&&(f(i,{code:u.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),null!==a.maxSize&&i.data.size>a.maxSize.value&&(f(i,{code:u.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let n=this._def.valueType;function r(e){let i=new Set;for(let a of e){if("aborted"===a.status)return g;"dirty"===a.status&&t.dirty(),i.add(a.value)}return{status:t.value,value:i}}let o=[...i.data.values()].map((e,t)=>n._parse(new _(i,e,i.path,t)));return i.common.async?Promise.all(o).then(e=>r(e)):r(o)}min(e,t){return new es({...this._def,minSize:{value:e,message:b5.toString(t)}})}max(e,t){return new es({...this._def,maxSize:{value:e,message:b5.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}es.create=(e,t)=>new es({valueType:e,minSize:null,maxSize:null,typeName:b3.ZodSet,...A(t)});class ed extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.function)return f(t,{code:u.invalid_type,expected:s.function,received:t.parsedType}),g;function i(e,i){return m({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,p,p].filter(e=>!!e),issueData:{code:u.invalid_arguments,argumentsError:i}})}function a(e,i){return m({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,p,p].filter(e=>!!e),issueData:{code:u.invalid_return_type,returnTypeError:i}})}let n={errorMap:t.common.contextualErrorMap},r=t.data;if(this._def.returns instanceof eh){let e=this;return y(async function(...t){let o=new c([]),l=await e._def.args.parseAsync(t,n).catch(e=>{throw o.addIssue(i(t,e)),o}),s=await Reflect.apply(r,this,l);return await e._def.returns._def.type.parseAsync(s,n).catch(e=>{throw o.addIssue(a(s,e)),o})})}{let e=this;return y(function(...t){let o=e._def.args.safeParse(t,n);if(!o.success)throw new c([i(t,o.error)]);let l=Reflect.apply(r,this,o.data),s=e._def.returns.safeParse(l,n);if(!s.success)throw new c([a(l,s.error)]);return s.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ed({...this._def,args:er.create(e).rest(Y.create())})}returns(e){return new ed({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new ed({args:e||er.create([]).rest(Y.create()),returns:t||Y.create(),typeName:b3.ZodFunction,...A(i)})}}class eu extends I{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eu.create=(e,t)=>
vendor: 4,645 bytes, line 1
1new eu({getter:e,typeName:b3.ZodLazy,...A(t)});class ec extends I{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:u.invalid_literal,expected:this._def.value}),g}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ep(e,t){return new em({values:e,typeName:b3.ZodEnum,...A(t)})}ec.create=(e,t)=>new ec({value:e,typeName:b3.ZodLiteral,...A(t)});class em extends I{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),i=this._def.values;return f(t,{expected:b1.joinValues(i),received:t.parsedType,code:u.invalid_type}),g}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),i=this._def.values;return f(t,{received:t.data,code:u.invalid_enum_value,options:i}),g}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return em.create(e,{...this._def,...t})}exclude(e,t=this._def){return em.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}em.create=ep;class ef extends I{_parse(e){let t=b1.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==s.string&&i.parsedType!==s.number){let e=b1.objectValues(t);return f(i,{expected:b1.joinValues(e),received:i.parsedType,code:u.invalid_type}),g}if(this._cache||(this._cache=new Set(b1.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=b1.objectValues(t);return f(i,{received:i.data,code:u.invalid_enum_value,options:e}),g}return y(e.data)}get enum(){return this._def.values}}ef.create=(e,t)=>new ef({values:e,typeName:b3.ZodNativeEnum,...A(t)});class eh extends I{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==s.promise&&!1===t.common.async?(f(t,{code:u.invalid_type,expected:s.promise,received:t.parsedType}),g):y((t.parsedType===s.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eh.create=(e,t)=>new eh({type:e,typeName:b3.ZodPromise,...A(t)});class eg extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===b3.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:i}=this._processInputParams(e),a=this._def.effect||null,n={addIssue:e=>{f(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===a.type){let e=a.transform(i.data,n);if(i.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return g;let a=await this._def.schema._parseAsync({data:e,path:i.path,parent:i});return"aborted"===a.status?g:"dirty"===a.status||"dirty"===t.value?v(a.value):a});{if("aborted"===t.value)return g;let a=this._def.schema._parseSync({data:e,path:i.path,parent:i});return"aborted"===a.status?g:"dirty"===a.status||"dirty"===t.value?v(a.value):a}}if("refinement"===a.type){let e=e=>{let t=a.refinement(e,n);if(i.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(i=>"aborted"===i.status?g:("dirty"===i.status&&t.dirty(),e(i.value).then(()=>({status:t.value,value:i.value}))));{let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===a.status?g:("dirty"===a.status&&t.dirty(),e(a.value),{status:t.value,value:a.value})}}if("transform"===a.type)if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(e=>"valid"!==e.status?g:Promise.resolve(a.transform(e.value,n)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if("valid"!==e.status)return g;let r=a.transform(e.value,n);if(r instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}b1.assertNever(a)}}eg.create=(e,t,i)=>new eg({schema:e,typeName:b3.ZodEffects,effect:t,...A(i)}),eg.createWithPreprocess=(e,t,i)=>new eg({schema:t,effect:{type:"preprocess",transform:e},typeName:b3.ZodEffects,...A(i)});class ev extends I{_parse(e){return this._getType(e)===s.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>
1new ev({innerType:e,typeName:b3.ZodOptional,...A(t)});class ey extends I{_parse(e){return this._getType(e)===s.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:b3.ZodNullable,...A(t)});class eb extends I{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return t.parsedType===s.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:b3.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...A(t)});class e_ extends I{_parse(e){let{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return b(a)?a.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new c(i.common.issues)},input:i.data})})):{status:"valid",value:"valid"===a.status?a.value:this._def.catchValue({get error(){return new c(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:b3.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...A(t)});class ex extends I{_parse(e){if(this._getType(e)!==s.nan){let t=this._getOrReturnCtx(e);return f(t,{code:u.invalid_type,expected:s.nan,received:t.parsedType}),g}return{status:"valid",value:e.data}}}ex.create=e=>new ex({typeName:b3.ZodNaN,...A(e)}),Symbol("zod_brand");class eA extends I{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class eI extends I{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?g:"dirty"===e.status?(t.dirty(),v(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{let e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?g:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new eI({in:e,out:t,typeName:b3.ZodPipeline})}}class ew extends I{_parse(e){let t=this._def.innerType._parse(e),i=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return b(t)?t.then(e=>i(e)):i(t)}unwrap(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:b3.ZodReadonly,...A(t)}),ee.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(b3||(b3={}));let ek=U.create,eS=q.create;ex.create,$.create;let eT=H.create,eC=V.create;W.create,G.create,K.create,Z.create;let eE=Y.create;X.create,J.create;let eR=Q.create,eP=ee.create;ee.strictCreate;let eO=et.create,eM=ea.create;en.create,er.create;let eN=eo.create;el.create,es.create,ed.create;let ej=eu.create,eD=ec.create,eF=em.create;ef.create,eh.create,eg.create,ev.create,ey.create;let eL=eg.createWithPreprocess;eI.create;let eB={number:e=>q.create({...e,coerce:!0}),boolean:e=>H.create({...e,coerce:!0}),date:e=>V.create({...e,coerce:!0})};var ez=eF(["boldsign","docusign","manual"]),eU=eF(["contract","nda","sow","employment","lease","subscription","operating_agreement","term_sheet","custom"]),eq=eF(["draft","active","deprecated"]),e$=eF(["draft","sent","signed","countersigned","rejected","expired","voided"]),eH=eF(["pending","signed","declined"]),eV=eF(["text","date","number","signature","initials","checkbox"]),eW=eF(["active","inactive"]),eG=eF(["marketplace","sponsor","entity"]);eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),templateCategory:eU,status:eq,version:eS().int(),eSignProvi
1der:ez,providerTemplateId:ek().nullable(),documentUrl:ek().nullable(),mergeFieldsSchema:eN(eE()).nullable(),autoApply:eT(),sfdtStorageKey:ek().nullable().optional(),docxStorageKey:ek().nullable().optional(),sfdtFileSize:eS().int().nullable().optional(),formFieldsSchema:eR(eN(eE())).nullable().optional(),signerRoles:eR(ek()).nullable().optional(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1),description:ek().optional(),templateCategory:eU,eSignProvider:ez.default("boldsign"),providerTemplateId:ek().optional(),documentUrl:ek().optional(),mergeFieldsSchema:eN(eE()).optional(),autoApply:eT().default(!1),metadata:eN(eE()).default({})}).partial();var eK=eP({fieldName:ek().min(1),fieldLabel:ek().min(1),fieldType:eF(["text","date","number","currency","checkbox"]),required:eT().default(!0),defaultValue:ek().optional(),description:ek().optional(),containsPII:eT().default(!1),piiType:eF(["SSN","EMAIL","PHONE","ADDRESS","TAX_ID"]).optional(),category:ek().optional()}),eZ=eP({fieldName:ek().min(1),fieldLabel:ek().min(1),fieldType:eF(["signature","initials","date_signed","text_input","checkbox"]),assignedRole:ek().min(1),required:eT().default(!0),signingOrder:eS().int().positive().optional()});eP({name:ek().min(1),description:ek().optional(),templateCategory:eU,sfdtContent:ek().min(1),mergeFields:eR(eK).default([]),formFields:eR(eZ).default([]),signerRoles:eR(ek().min(1)).default(["investor","sponsor"]),autoApply:eT().default(!1),metadata:eN(eE()).default({})}),eP({eSignProvider:ez.exclude(["manual"])}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),templateCategory:eU.optional(),status:eq.optional()}),eP({id:ek().uuid(),templateId:ek().uuid(),fieldName:ek(),fieldLabel:ek(),fieldType:eV,required:eT(),defaultValue:ek().nullable(),mappingKey:ek().nullable(),sortOrder:eS().int(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({id:ek().uuid(),templateId:ek().uuid(),version:eS().int(),providerTemplateId:ek().nullable(),documentUrl:ek().nullable(),changeNotes:ek().nullable(),createdBy:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({id:ek().uuid(),tenantId:ek().uuid(),subjectType:ek(),subjectId:ek().uuid(),templateId:ek().uuid().nullable(),name:ek(),status:e$,eSignProvider:ez,providerEnvelopeId:ek().nullable(),documentUrl:ek().nullable(),signingUrl:ek().nullable(),requestingService:ek().nullable(),sentAt:ek().datetime().nullable(),signedAt:ek().datetime().nullable(),countersignedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),templateId:ek().uuid().optional(),name:ek().min(1),eSignProvi
1der:ez.default("boldsign"),signatories:eR(eP({email:ek().email(),name:ek().min(1),role:ek().min(1),signingOrder:eS().int().positive().default(1)})).min(1),expiresAt:ek().datetime().optional(),requestingService:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),subjectType:ek().optional(),subjectId:ek().uuid().optional(),status:e$.optional()}),eP({id:ek().uuid(),agreementId:ek().uuid(),email:ek(),name:ek(),role:ek(),status:eH,signingOrder:eS().int(),signedAt:ek().datetime().nullable(),ipAddress:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),provider:ez,providerTeamId:ek().nullable(),name:ek(),entityType:eG,entityId:ek().uuid(),status:eW,metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1),entityType:eG,entityId:ek().uuid(),provider:ez.default("boldsign"),metadata:eN(eE()).default({})}),eP({name:ek().min(1).optional(),status:eW.optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),teamId:ek().uuid(),provider:ez,providerSenderId:ek().nullable(),email:ek().email(),name:ek(),isVerified:eT(),isDefault:eT(),verifiedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({teamId:ek().uuid(),email:ek().email(),name:ek().min(1),isDefault:eT().default(!1),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),provider:ez,providerBrandId:ek().nullable(),name:ek(),brandColor:ek().nullable(),logoUrl:ek().nullable(),redirectUrl:ek().nullable(),isDefault:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1),provider:ez.default("boldsign"),brandColor:ek().optional(),logoUrl:ek().url().optional(),redirectUrl:ek().url().optional(),isDefault:eT().default(!1),metadata:eN(eE()).default({})}).partial(),eP({docusignJsonArray:eR(eN(eE())).min(1),overrides:eN(eE()).default({})}),eP({templateId:ek().uuid(),targetMarketplaceIds:eR(ek().uuid()).min(1),autoUpgradeEnabled:eT().default(!1)}),eP({templateId:ek().uuid(),newVersion:eS().int().positive()}),eP({templateId:ek().uuid(),targetTenantId:ek().uuid(),autoUpgradeEnabled:eT().default(!1)}),eP({workflowId:ek().min(1)});var eY=eF(["draft","active","buyout","dissolved"]),eX=eF(["employed","self_employed","retired","other"]),eJ=eF(["none","pending","approved","denied","expired"]),eQ=eF(["submitted","credit_check","income_verified","consumer_verified","fea_assigned","pre_approved","property_matched","bank_approved","spv_forming","funded","active","buyout","closed","denied","withdrawn"]),e0=eF(["pending","collected","distributed","failed"]),e1=eF(["fixed_30","fixed_15","arm_5_1","arm_7_1","uk_variable","uk_tracker","uk_discount","uk_fixed_2","uk_fixed_5","au_variable","au_fixed","au_split","au_offset","ijara","murabaha","musharaka","in_floating","in_fixed","in_hybrid","eu_fixed","eu_variable","eu_cap","interest_only","other"]),e2=eF(["fico","vantage","experian_uk","equifax_uk","cibil","schufa","cbs","aecb","equifax_au","other"]),e5=eF(["sec_accredited","fca_certified_sophisticated","mas_accredited_investor","sebi_qib","dfsa_professional_client","eu_professional","other"]),e3=eF(["manual","plaid","bank_api"]),e4=eF(["single_family","townhouse","condo","multi_family","other"]),e9=eF(["available","under_contract","matched","closed","withdrawn"]),e6=eF(["plumbing","electrical","hvac","appliance","structural","landscaping","pest_control","other"]),e8=eF(["low","medium","normal","high","urgent","emergency"]),e7=eF(["submitted","assigned","in_progress","completed","closed"]),te=eF(["spv_reserve","homebuyer","shared"]);eF(["passive_investor","homebuyer","tep_renter"]);var tt=eF(["kalidao","otonomos","manual"]),ti=eF(["pending","eligible","ineligible","conditionally_eligible"]),ta=eF(["draft","pending_signature","active","suspended","terminated","completed","forfeited"]),tn=eF(["scheduled","rent_collected","vested","forfeited","skipped"]),tr=eF(["monthly_vesting","buyout_exercise","lease_completion","partial_conversion"]),to=eF(["pending","processing","completed","failed","reversed"]),tl=eF(["full_forfeiture","partial_forfeiture","vested_retained","none"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),country:ek().default("US"),currency:ek().default("USD"),jurisdiction:ek().default("US"),buyerEquityPercent:ek(),investorEquityPercent:ek(),bankLtvPercent:ek(),propertyPurchasePrice:ek(),fmvMonthlyRent:ek(),occupancyFeeFormula:eN(eE()).default({}),termLengthMonths:eS().int(),termEndDate:ek().datetime().nullable().optional(),annualAppreciationEstimate:ek(),escrowTaxAnnual:ek().nullable().optional(),escrowInsuranceAnnual:ek().nullable().optional(),escrowHoaMonthly:ek().nullable().optional(),transactionFeePercent:ek().default("3.00"),transactionFeeSchedule:eF(["upfront","spread"]).default("spread"),aumFeePercent:ek().default("0.50"),exitFeePercent:ek().default("1.00"),exitFeeWaiverMonths:eS().int().default(60),spvStructuringFee:ek().default("1500.00"),closingCostPercent:ek().default("2.50"),status:eY,metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),country:ek().min(2).max(5).optional().default("US"),currency:ek().length(3).optional().default("USD"),jurisdiction:ek().min(2).max(10).optional().default("US"),buyerEquityPercent:ek().optional().default("3.75"),investorEquityPercent:ek().optional().default("11.25"),bankLtvPercent:ek().optional().default("85.00"),propertyPurchasePrice:ek(),fmvMonthlyRent:ek(),occupancyFeeFormula:eN(eE()).default({}),termLengthMonths:eS().int().min(12).max(360).optional().default(60),termEndDate:ek().datetime().optional(),annualAppreciationEstimate:ek().optional().default("3.00"),escrowTaxAnnual:ek().optional(),escrowInsuranceAnnual:ek().optional(),escrowHoaMonthly:ek().optional(),transactionFeePercent:ek().optional().default("3.00"),transactionFeeSchedule:eF(["upfront","spread"]).optional().default("spread"),aumFeePercent:ek().optional().default("0.50"),exitFeePercent:ek().optional().default("1.00"),exitFeeWaiverMonths:eS().int().optional().default(60),spvStructuringFee:ek().optional().default("1500.00"),closingCostPercent:ek().optional().default("2.50"),metadata:eN(eE()).default({})}).omit({offeringId:!0}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:eY.optional(),offeringId:ek().uuid().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),currency:ek().default("USD"),creditScore:eS().int().nullable().optional(),creditScoreType:e2.default("fico"),creditData:eN(eE()).default({}),annualIncome:ek().nullable().optional(),employmentStatus:eX.nullable().optional(),employerName:ek().nullable().optional(),employmentMonths:eS().int().nullable().optional(),monthlyDebtPayments:ek().nullable().optional(),monthlyRentPayment:ek().nullable().optional(),dtiRatio:ek().nullable().optional(),desiredLocation:eL(e=>"string"==typeof e?{location:e}:e,eN(eE())).nullable().optional(),desiredPriceMin:ek().nullable().optional(),desiredPriceMax:ek().nullable().optional(),desiredBedrooms:eS().int().nullable().optional(),desiredBathrooms:eS().int().nullable().optional(),desiredSqftMin:eS().int().nullable().optional(),desiredSqftMax:eS().int().nullable().optional(),desiredPropertyType:eF(["single_family","townhouse","condo","multi_family","any"]).nullable().optional(),downPaymentAmount:ek().nullable().optional(),downPaymentPercent:ek().nullable().optional(),downPaymentSource:eF(["savings","gift","grant","equity","other"]).nullable().optional(),firstTimeHomeBuyer:eT().nullable().optional(),targetMoveInDate:ek().nullable().optional(),preApprovalStatus:eJ.nullable().optional(),preApprovalAmount:ek().nullable().optional(),preApprovalExpiresAt:ek().datetime().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),currency:ek().length(3).optional().default("USD"),creditScore:eS().int().min(0).max(2e3).optional(),creditScoreType:e2.optional().default("fico"),annualIncome:ek().optional(),employmentStatus:eX.optional(),employerName:ek().max(255).optional(),employmentMonths:eS().int().min(0).optional(),monthlyDebtPayments:ek().optional(),monthlyRentPayment:ek().optional(),desiredLocation:eL(e=>"string"==typeof e?{location:e}:e,eN(eE())).optional(),desiredPriceMin:ek().optional(),desiredPriceMax:ek().optional(),desiredBedrooms:eS().int().min(0).optional(),desiredBathrooms:eS().int().min(0).optional(),desiredSqftMin:eS().int().min(0).optional(),desiredSqftMax:eS().int().min(0).optional(),desiredPropertyType:eF(["single_family","townhouse","condo","multi_family","any"]).optional(),downPaymentAmount:ek().optional(),downPaymentPercent:ek().optional(),downPaymentSource:eF(["savings","gift","grant","equity","other"]).optional(),firstTimeHomeBuyer:eT().optional(),targetMoveInDate:ek().optional(),metadata:eN(eE()).default({})}).omit({investorId:!0}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),preApprovalStatus:eJ.optional(),search:ek().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),homebuyerProfileId:ek().uuid(),offeringId:ek().uuid().nullable().optional(),status:eQ,currentStep:eS().int(),stepsCompleted:eN(eE()).default({}),propertyAddress:ek().nullable().optional(),propertyListingId:ek().uuid().nullable().optional(),creditCheckResult:eN(eE()).nullable().optional(),incomeVerificationResult:eN(eE()).nullable().optional(),bankPreApprovalResult:eN(eE()).nullable().optional(),inspectionReportUrl:ek().nullable().optional(),appraisalValue:ek().nullable().optional(),closingDate:ek().nullable().optional(),denialReason:ek().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({homebuyerProfileId:ek().uuid(),offeringId:ek().uuid().optional(),propertyAddress:ek().max(500).optional(),propertyListingId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({status:eQ.optional(),currentStep:eS().int().min(1).optional(),stepsCompleted:eN(eE()).optional(),propertyAddress:ek().max(500).optional(),propertyListingId:ek().uuid().optional(),offeringId:ek().uuid().optional(),creditCheckResult:eN(eE()).optional(),incomeVerificationResult:eN(eE()).optional(),bankPreApprovalResult:eN(eE()).optional(),inspectionReportUrl:ek().url().optional(),appraisalValue:ek().optional(),closingDate:ek().optional(),denialReason:ek().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:eQ.optional(),homebuyerProfileId:ek().uuid().optional(),offeringId:ek().uuid().optional(),assignedAdvisorFirmId:ek().uuid().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),currency:ek().default("USD"),period:ek(),grossAmount:ek(),taxEscrow:ek(),insuranceEscrow:ek(),hoaAmount:ek(),mortgagePayment:ek(),mortgagePrincipal:ek(),mortgageInterest:ek(),netDistributable:ek(),platformFee:ek(),feaFee:ek(),investorDistribution:ek(),waterfallBreakdown:eN(eE()).default({}
1),paymentTxId:ek().nullable().optional(),distributionTxHash:ek().nullable().optional(),merkleRoot:ek().nullable().optional(),status:e0,collectedAt:ek().datetime().nullable().optional(),distributedAt:ek().datetime().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),period:ek().regex(/^\d{4}-\d{2}$/,"Period must be YYYY-MM format"),grossAmount:ek(),taxEscrow:ek().optional().default("0"),insuranceEscrow:ek().optional().default("0"),hoaAmount:ek().optional().default("0"),mortgagePayment:ek(),mortgagePrincipal:ek(),mortgageInterest:ek(),netDistributable:ek(),platformFee:ek().optional().default("0"),feaFee:ek().optional().default("0"),investorDistribution:ek(),metadata:eN(eE()).default({})}),eP({status:e0.optional(),paymentTxId:ek().optional(),distributionTxHash:ek().optional(),merkleRoot:ek().optional(),collectedAt:ek().datetime().optional(),distributedAt:ek().datetime().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),offeringId:ek().uuid().optional(),status:e0.optional(),periodFrom:ek().regex(/^\d{4}-\d{2}$/).optional(),periodTo:ek().regex(/^\d{4}-\d{2}$/).optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),currency:ek().default("USD"),period:ek(),buyerEquityPercent:ek(),investorEquityPercent:ek(),propertyValuation:ek(),mortgageRemaining:ek(),totalPrincipalPaid:ek(),totalAppreciation:ek(),projectedBuyoutPrice:ek(),buyerEquityValue:ek(),investorEquityValue:ek(),metadata:eN(eE()).default({}),createdAt:ek().datetime()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),currency:ek().default("USD"),lenderName:ek(),loanNumber:ek().nullable().optional(),interestRate:ek(),loanType:e1,originalAmount:ek(),currentBalance:ek(),monthlyPayment:ek(),escrowPayment:ek().nullable().optional(),originationDate:ek(),maturityDate:ek(),nextPaymentDate:ek().nullable().optional(),prepaymentPenalty:eT(),prepaymentPenaltyDetails:ek().nullable().optional(),lastSyncedAt:ek().datetime().nullable().optional(),syncProvider:e3.nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),lenderName:ek().min(1).max(255),loanNumber:ek().max(50).optional(),interestRate:ek(),loanType:e1,originalAmount:ek(),currentBalance:ek(),monthlyPayment:ek(),escrowPayment:ek().optional(),originationDate:ek(),maturityDate:ek(),nextPaymentDate:ek().optional(),prepaymentPenalty:eT().optional().default(!1),prepaymentPenaltyDetails:ek().optional(),syncProvider:e3.optional().default("manual"),metadata:eN(eE()).default({})}).omit({offeringId:!0}).partial(),eP({startDate:ek().describe("ISO 8601 date"),endDate:ek().describe("ISO 8601 date")});var ts=eP({month:eS().int().positive(),paymentDate:ek(),principal:eS().nonnegative(),interest:eS().nonnegative(),totalPayment:eS().nonnegative(),remainingBalance:eS().nonnegative(),cumulativeInterest:eS().nonnegative(),cumulativePrincipal:eS().nonnegative()});eP({confirmationId:ek(),loanId:ek(),amount:eS().positive(),paymentDate:ek(),status:eF(["pending","completed","failed","reversed"]),referenceNumber:ek().optional(),principalPortion:eS().nonnegative().optional(),interestPortion:eS().nonnegative().optional(),escrowPortion:eS().nonnegative().optional()}),eP({loanId:ek(),quoteDate:ek(),principalBalance:eS().nonnegative(),accruedInterest:eS().nonnegative(),fees:eS().nonnegative(),totalPayoff:eS().nonnegative(),validUntil:ek()}),eP({loanId:ek(),statementDate:ek(),principalBalance:eS().nonnegative(),interestPaid:eS().nonnegative(),escrowBalance:eS().nonnegative(),nextPaymentDue:ek(),nextPaymentAmount:eS().nonnegative(),entries:eR(ts).optional()}),eP({offeringId:ek().uuid(),annualPropertyTax:eS().nonnegative(),annualInsurance:eS().nonnegative(),monthlyHoa:eS().nonnegative(),monthlyEscrowAmount:eS().nonnegative(),currentBalance:eS().nonnegative(),lastDisbursementDate:ek().optional()}),eP({offeringId:ek().uuid(),amount:eS().positive(),paymentDate:ek().optional(),referenceNumber:ek().optional(),metadata:eN(eE()).default({})}),eP({offeringId:ek().uuid(),annualPropertyTax:eS().nonnegative(),annualInsurance:eS().nonnegative(),monthlyHoa:eS().nonnegative().default(0)}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),country:ek().default("US"),currency:ek().default("USD"),address:ek(),city:ek(),state:ek(),zip:ek(),listingPrice:ek(),bedrooms:eS().int().nullable().optional(),bathrooms:ek().nullable().optional(),sqft:eS().int().nullable().optional(),lotSizeSqft:eS().int().nullable().optional(),yearBuilt:eS().int().nullable().optional(),propertyType:e4.nullable().optional(),listingSource:ek().nullable().optional(),listingUrl:ek().nullable().optional(),photos:eR(ek()).default([]),estimatedFmvRent:ek().nullable().optional(),estimatedPropertyTax:ek().nullable().optional(),estimatedInsurance:ek().nullable().optional(),hoaMonthly:ek().nullable().optional(),status:e9,matchedApplicationId:ek().uuid().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({country:ek().min(2).max(5).optional().default("US"),currency:ek().length(3).optional().default("USD"),address:ek().min(1).max(500),city:ek().min(1).max(100),state:ek().min(1).max(100),zip:ek().min(3).max(10),listingPrice:ek(),bedrooms:eS().int().min(0).optional(),bathrooms:ek().optional(),sqft:eS().int().min(0).optional(),lotSizeSqft:eS().int().min(0).optional(),yearBuilt:eS().int().min(1800).max(2100).optional(),propertyType:e4.optional(),listingSource:ek().max(100).optional(),listingUrl:ek().url().optional(),photos:eR(ek().url()).optional().default([]),estimatedFmvRent:ek().optional(),estimatedPropertyTax:ek().optional(),estimatedInsurance:ek().optional(),hoaMonthly:ek().optional(),metadata:eN(eE()).default({})}).partial().extend({status:e9.optional(),matchedApplicationId:ek().uuid().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:e9.optional(),state:ek().optional(),city:ek().optional(),priceMin:eB.number().optional(),priceMax:eB.number().optional(),bedroomsMin:eB.number().int().optional(),propertyType:e4.optional(),search:ek().optional()}),eP({city:ek().max(100).optional(),state:ek().max(100).optional(),priceMin:eB.number().min(0).optional(),priceMax:eB.number().min(0).optional(),bedroomsMin:eB.number().int().min(0).optional(),bathroomsMin:eB.number().min(0).optional(),propertyType:e4.optional(),limit:eB.number().int().min(1).max(50).default(20),applicationId:ek().uuid().optional()});var td=eP({mlsNumber:ek(),address:ek(),city:ek(),state:ek(),zip:ek(),listingPrice:eS(),bedrooms:eS(),bathrooms:eS(),sqft:eS(),propertyType:ek(),photos:eR(ek()),coordinates:eP({lat:eS().nullable(),lng:eS().nullable()}),daysOnMarket:eS().nullable(),listingSource:ek(),aiMatchScore:eS().min(0).max(100).nullable().optional(),affordabilityWarning:ek().nullable().optional()});eP({applicationId:ek().uuid(),listing:td}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),homebuyerProfileId:ek().uuid(),requestType:e6,priority:e8,title:ek(),description:ek().nullable().optional(),photos:eR(ek()).default([]),status:e7,vendorName:ek().nullable().optional(),vendorContact:ek().nullable().optional(),estimatedCost:ek().nullable().optional(),actualCost:ek().nullable().optional(),payer:te.nullable().optional(),resolutionNotes:ek().nullable().optional(),resolvedAt:ek().datetime().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),homebuyerProfileId:ek().uuid(),requestType:e6,priority:e8.optional().default("normal"),title:ek().min(1).max(500),description:ek().max(5e3).optional(),photos:eR(ek().url()).optional().default([]),metadata:eN(eE()).default({})}),eP({status:e7.optional(),priority:e8.optional(),title:ek().min(1).max(500).optional(),description:ek().max(5e3).optional(),photos:eR(ek().url()).optional(),vendorName:ek().max(255).optional(),vendorContact:ek().max(255).optional(),estimatedCost:ek().optional(),actualCost:ek().optional(),payer:te.optional(),resolutionNotes:ek().max(5e3).optional(),resolvedAt:ek().datetime().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),offeringId:ek().uuid().optional(),homebuyerProfileId:ek().uuid().optional(),status:e7.optional(),priority:e8.optional(),requestType:e6.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),jurisdiction:ek().default("US"),regulationType:ek().default("sec_reg_
1cf"),currency:ek().default("USD"),calendarYear:eS().int(),totalInvested:ek(),annualIncome:ek().nullable().optional(),netWorth:ek().nullable().optional(),calculatedMax:ek().nullable().optional(),isAccredited:eT(),accreditationType:e5.nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),calendarYear:eS().int().min(2020).max(2100),annualIncome:ek().optional(),netWorth:ek().optional(),isAccredited:eT().optional().default(!1),metadata:eN(eE()).default({})}),eP({annualIncome:ek().optional(),netWorth:ek().optional(),isAccredited:eT().optional(),metadata:eN(eE()).optional()});var tu=eF(["form_c","form_c_ar","form_c_u"]),tc=eF(["k_1","1099_misc","1099_b"]);eP({investorId:ek().uuid(),offeringId:ek().uuid(),amount:ek(),investmentDate:ek().datetime()}),eP({investorId:ek().uuid(),calendarYear:eS().int().min(2020).max(2100)}),eP({offeringId:ek().uuid(),proposedAmount:ek(),calendarYear:eS().int().min(2020).max(2100)}),eP({offeringId:ek().uuid(),filingType:tu,filingDate:ek().datetime(),status:ek(),secFileNumber:ek().optional(),metadata:eN(eE()).default({})}),eP({principalName:ek().min(1),principalId:ek().uuid().optional(),entityId:ek().uuid().optional(),checkType:eF(["initial","annual"]).optional().default("initial")}),eP({offeringId:ek().uuid(),channelType:eF(["social_media","email","website","other"]),contentDescription:ek().min(1),metadata:eN(eE()).default({})}),eP({offeringId:ek().uuid(),investorId:ek().uuid(),taxYear:eS().int().min(2020).max(2100),documentType:tc});var tp=eF(["pending","llc_created","safe_deployed","contracts_deployed","tokens_minted","active","failed"]);eP({offeringId:ek().uuid(),provider:tt.optional(),gnosisSafeOwners:eR(ek()).min(1),threshold:eS().int().min(1),jurisdiction:eF(["wyoming","delaware"]).default("wyoming"),metadata:eN(eE()).default({})}),eP({entityId:ek().uuid(),offeringId:ek().uuid(),status:tp,formationProvider:tt.nullable().optional(),formationTxHash:ek().nullable().optional(),safeAddress:ek().nullable().optional(),complianceContractAddress:ek().nullable().optional(),identityRegistryAddress:ek().nullable().optional(),tokensMinted:eS().int().default(0),metadata:eN(eE()).default({})}),eP({offeringId:ek().uuid(),entityId:ek().uuid(),totalTokens:eS().int().positive().optional(),metadata:eN(eE()).default({})}),eP({entityId:ek().uuid(),parentEntityId:ek().uuid(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),annualIncome:ek().nullable().optional(),employmentStatus:eX.nullable().optional(),employerName:ek().nullable().optional(),employmentMonths:eS().int().nullable().optional(),creditScore:eS().int().nullable().optional(),monthlyDebtPayments:ek().nullable().optional(),dtiRatio:ek().nullable().optional(),currentRentMonthly:ek().nullable().optional(),desiredLocation:eN(eE()).nullable().optional(),desiredRentMin:ek().nullable().optional(),desiredRentMax:ek().nullable().optional(),desiredBedrooms:eS().int().nullable().optional(),eligibilityStatus:ti,eligibilityNotes:ek().nullable().optional(),backgroundCheckPassed:eT().nullable().optional(),rentalHistoryVerified:eT().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),annualIncome:ek().optional(),employmentStatus:eX.optional(),employerName:ek().optional(),employmentMonths:eS().int().optional(),creditScore:eS().int().min(300).max(850).optional(),monthlyDebtPayments:ek().optional(),currentRentMonthly:ek().optional(),desiredLocation:eN(eE()).optional(),desiredRentMin:ek().optional(),desiredRentMax:ek().optional(),desiredBedrooms:eS().int().min(0).max(10).optional(),metadata:eN(eE()).default({})}).omit({investorId:!0}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),eligibilityStatus:ti.optional(),investorId:ek().uuid().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),renterProfileId:ek().uuid(),offeringId:ek().uuid(),propertyListingId:ek().uuid().nullable().optional(),monthlyRent:ek(),equityPortionPercent:ek(),equityPortionAmount:ek(),leaseTermMonths:eS().int(),startDate:ek(),endDate:ek(),renewalOption:eT(),buyoutOptionAfterMonths:eS().int().nullable().optional(),earlyTerminationPenalty:tl,forfeitureGracePeriodDays:eS().int().nullable().optional(),securityDeposit:ek().nullable().optional(),totalTokensAllocated:ek(),totalTokensVested:ek(),totalTokensForfeited:ek(),conversionRatePerDollar:ek(),status:ta,suspendedAt:ek().datetime().nullable().optional(),suspensionReason:ek().nullable().optional(),terminatedAt:ek().datetime().nullable().optional(),terminationReason:ek().nullable().optional(),completedAt:ek().datetime().nullable().optional(),agreementDocumentUrl:ek().nullable().optional(),agreementSignedAt:ek().datetime().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({renterProfileId:ek().uuid(),offeringId:ek().uuid(),propertyListingId:ek().uuid().optional(),monthlyRent:ek(),equityPortionPercent:ek().optional().default("15.00"),leaseTermMonths:eS().int().min(12).max(120).optional().default(60),startDate:ek(),renewalOption:eT().optional().default(!0),buyoutOptionAfterMonths:eS().int().optional().default(36),earlyTerminationPenalty:tl.o
1ptional().default("full_forfeiture"),forfeitureGracePeriodDays:eS().int().optional().default(30),securityDeposit:ek().optional(),conversionRatePerDollar:ek().optional().default("1.000000"),metadata:eN(eE()).default({})}).omit({renterProfileId:!0,offeringId:!0}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:ta.optional(),renterProfileId:ek().uuid().optional(),offeringId:ek().uuid().optional()}),eP({reason:ek().min(1)}),eP({reason:ek().min(1)}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),leaseId:ek().uuid(),period:ek(),rentPaid:ek(),equityPortionPaid:ek(),tokensVested:ek(),cumulativeTokensVested:ek(),conversionRate:ek(),vestingTxHash:ek().nullable().optional(),paymentTxId:ek().nullable().optional(),status:tn,vestedAt:ek().datetime().nullable().optional(),forfeitedAt:ek().datetime().nullable().optional(),forfeitureReason:ek().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({leaseId:ek().uuid(),period:ek().regex(/^\d{4}-\d{2}$/,"Must be YYYY-MM format"),rentPaid:ek(),paymentTxId:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),leaseId:ek().uuid().optional(),status:tn.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),leaseId:ek().uuid(),conversionType:tr,tokensConverted:ek(),conversionRate:ek(),dollarValue:ek(),txHash:ek().nullable().optional(),fromPeriod:ek().nullable().optional(),toPeriod:ek().nullable().optional(),status:to,completedAt:ek().datetime().nullable().optional(),failureReason:ek().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({leaseId:ek().uuid(),conversionType:tr,fromPeriod:ek().regex(/^\d{4}-\d{2}$/).optional(),toPeriod:ek().regex(/^\d{4}-\d{2}$/).optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),leaseId:ek().uuid().optional(),conversionType:tr.optional(),status:to.optional()}),eF(["pending","funded","released","returned"]),eF(["deposit","release","return"]),eF(["pending","completed","failed"]),eP({offeringId:ek().uuid(),targetAmount:ek().regex(/^\d+(\.\d{1,2})?$/),deadline:ek().datetime(),metadata:eN(eE()).default({})}),eP({investmentId:ek().uuid(),investorId:ek().uuid().optional(),amount:ek().regex(/^\d+(\.\d{1,2})?$/),metadata:eN(eE()).default({})}),eF(["investor","sponsor","issuer","platform","bd"]),eP({offeringId:ek().uuid(),content:ek().min(1).max(5e3),parentPostId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({content:ek().min(1).max(5e3).optional(),isPinned:eT().optional(),isModerated:eT().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),parentPostId:ek().uuid().optional()});var tm=eF(["straddle","stripe","circle_usdc","razorpay","decentro","adyen","modulr","gocardless","clearbank","dlocal","payoneer","xendit","wise","checkout_com","lean","flutterwave","paystack"]),tf=eF(["charge","payout","reversal","refund","fee","distribution"]),th=eF(["pending","processing","completed","failed","canceled","reversed"]),tg=eF(["asset","liability","equity","revenue","expense","escrow"]),tv=eF(["debit","credit"]),ty=eF(["web","tel","ppd","ccd"]),tb=eF(["pending","authorized","revoked","expired"]);eF(["authorization_created","authorization_revoked","charge_initiated","charge_completed","charge_failed","return_received","noc_received"]);var t_=eF(["donation","purchase","registration","investment","subscription","custom"]),tx=eF(["pending","completed","expired","canceled"]),tA=eF(["ach","wire","check","card","upi","net_banking","virtual_account","sepa","bacs","pix","spei","ideal","bancontact","giropay","sofort","eft_za","mobile_money","qris","fpx"]),tI=eF(["checking","savings"]),tw=eF(["pending","verified","failed","removed"]),tk=eF(["platform","marketplace","tenant"]),tS=eF(["monthly","yearly","one_time"]),tT=eF(["trialing","active","past_due","canceled","expired"]),tC=eF(["draft","open","paid","void","uncollectible"]),tE=eF(["express","standard","custom"]),tR=eF(["pending","in_progress","complete"]);eP({id:ek().uuid(),tenantId:ek().uuid(),provider:tm,isActive:eT(),isDefault:eT(),supportedCurrencies:eR(ek()),supportedMethods:eR(ek()),configuration:eN(eE()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({provider:tm,isDefault:eT().default(!1),supportedCurrencies:eR(ek()).default([]),supportedMethods:eR(ek()).default([]),configuration:eN(eE()).default({}),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),subjectType:ek(),subjectId:ek().uuid(),payerType:ek().nullable(),payerId:ek().uuid().nullable(),fundingSourceId:ek().uuid().nullable(),paymentProviderId:ek().uuid().nullable(),type:tf,status:th,amount:ek(),currency:ek(),providerTransactionId:ek().nullable(),providerStatus:ek().nullable(),providerResponse:eN(eE()).nullable(),description:ek().nullable(),failureReason:ek().nullable(),requestingService:ek().nullable(),processedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),payerType:ek().optional(),payerId:ek().uuid().optional(),fundingSourceId:ek().uuid().optional(),paymentProviderId:ek().uuid().optional(),amount:ek(),currency:ek().default("USD"),description:ek().optional(),requestingService:ek().optional(),metadata:eN(eE()).default({}),applicationFeeAmount:ek().optional(),connectedAccountId:ek().optional(),feeContext:eP({audienceCategory:ek().optional()}).optional()}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),payerType:ek().optional(),payerId:ek().uuid().optional(),fundingSourceId:ek().uuid().optional(),paymentProviderId:ek().uuid().optional(),amount:ek(),currency:ek().default("USD"),description:ek().optional(),requestingService:ek().optional(),metadata:eN(eE()).default({})}),eP({transactionId:ek().uuid(),amount:ek().optional(),reason:ek().optional(),metadata:eN(eE()).default({})}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),name:ek().min(1),currency:ek().default("USD"),items:eR(eP({payerId:ek().uuid(),payerType:ek(),amount:ek(),fundingSourceId:ek().uuid().optional(),description:ek().optional(),metadata:eN(eE()).default({})})).min(1),requestingService:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),type:tf.optional(),status:th.optional(),subjectType:ek().optional(),subjectId:ek().uuid().optional(),payerId:ek().uuid().optional()});var tP=eP({name:ek().min(1),amount:ek(),quantity:eS().int().positive().default(1),currency:ek().default("USD")}
1);eP({id:ek().uuid(),tenantId:ek().uuid(),purposeType:t_,subjectType:ek(),subjectId:ek().uuid(),status:tx,lineItems:eR(tP),totalAmount:ek(),currency:ek(),customerEmail:ek().nullable(),providerSessionId:ek().nullable(),successUrl:ek(),cancelUrl:ek(),requestingService:ek().nullable(),completedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({purposeType:t_,subjectType:ek().min(1),subjectId:ek().uuid(),lineItems:eR(tP).min(1),customerEmail:ek().email().optional(),successUrl:ek().url(),cancelUrl:ek().url(),requestingService:ek().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),subjectType:ek(),subjectId:ek().uuid(),type:tA,bankName:ek().nullable(),accountType:tI.nullable(),lastFour:ek().nullable(),routingNumber:ek().nullable(),status:tw,isDefault:eT(),plaidItemId:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),type:tA,bankName:ek().optional(),accountType:tI.optional(),lastFour:ek().max(4).optional(),routingNumber:ek().optional(),isDefault:eT().default(!1),plaidItemId:ek().optional(),metadata:eN(eE()).default({})}).partial().omit({subjectType:!0,subjectId:!0}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),subjectType:ek().optional(),subjectId:ek().uuid().optional(),status:tw.optional(),type:tA.optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),accountType:tg,referenceType:ek().nullable(),referenceId:ek().uuid().nullable(),balance:ek(),currency:ek(),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),accountType:tg,referenceType:ek().optional(),referenceId:ek().uuid().optional(),currency:ek().default("USD"),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),ledgerAccountId:ek().uuid(),transactionId:ek().uuid().nullable(),entryType:tv,amount:ek(),balanceAfter:ek(),currency:ek(),description:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({ledgerAccountId:ek().uuid(),transactionId:ek().uuid().optional(),entryType:tv,amount:ek(),description:ek().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),subjectType:ek(),subjectId:ek().uuid(),fundingSourceId:ek().uuid(),authorizationType:ty,status:tb,ipAddress:ek().nullable(),userAgent:ek().nullable(),consentText:ek(),consentTimestamp:ek().datetime(),revokedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),fundingSourceId:ek().uuid(),authorizationType:ty,ipAddress:ek().optional(),userAgent:ek().optional(),consentText:ek().min(1),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),key:ek(),name:ek(),description:ek().nullable(),tier:tk,billingInterval:tS,basePrice:ek(),currency:ek(),trialPeriodDays:eS().int(),features:eR(ek()),limits:eN(eS()),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({key:ek().min(1).max(100),name:ek().min(1).max(255),description:ek().optional(),tier:tk,billingInterval:tS,basePrice:ek(),currency:ek().default("USD"),trialPeriodDays:eS().int().min(0).default(0),features:eR(ek()).default([]),limits:eN(eS()).default({}),metadata:eN(eE()).default({})}).partial().omit({key:!0}),eP({id:ek().uuid(),tenantId:ek().uuid(),planId:ek().uuid().nullable(),feeScheduleId:ek().uuid().nullable(),status:tT,currentPeriodStart:ek().datetime(),currentPeriodEnd:ek().datetime(),trialEnd:ek().datetime().nullable(),canceledAt:ek().datetime().nullable(),cancelAtPeriodEnd:eT(),stripeSubscriptionId:ek().nullable(),stripeCustomerId:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({tenantId:ek().uuid(),planKey:ek(),productKeys:eR(ek()).default([]),withTrial:eT().default(!0),customerEmail:ek().email().optional(),paymentMethodId:ek().uuid().optional(),fundingSourceId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),metric:ek().min(1).max(128),amount:eS().int().positive().default(1),idempotencyKey:ek().optional()}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),metric:ek().min(1).max(128),amount:eS().int().positive().default(1)}),eP({allowed:eT(),consumed:eS().optional(),limit:eS().optional(),overageCharged:eS().optional(),reason:eF(["limit_reached","overage_c
1ap_exceeded","no_active_subscription","subscription_canceled"]).optional(),upgradeUrl:ek().optional()}),eP({id:ek().uuid(),subscriptionId:ek().uuid(),tenantId:ek().uuid(),invoiceNumber:ek(),status:tC,subtotal:ek(),tax:ek(),total:ek(),currency:ek(),periodStart:ek().datetime(),periodEnd:ek().datetime(),dueDate:ek().datetime().nullable(),paidAt:ek().datetime().nullable(),stripeInvoiceId:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),tenantId:ek().uuid(),stripeAccountId:ek(),accountType:tE,chargesEnabled:eT(),payoutsEnabled:eT(),onboardingStatus:tR,businessName:ek().nullable(),applicationFeePercent:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({tenantId:ek().uuid(),businessName:ek(),accountType:tE.default("express"),applicationFeePercent:eS().min(0).max(100).default(20),metadata:eN(eE()).default({})});var tO=eF(["deposit","withdraw","pay"]);eP({subjectType:ek().min(1),subjectId:ek().uuid(),operationType:tO,amount:ek(),currency:ek().default("USDC"),walletAddress:ek().optional(),description:ek().optional(),metadata:eN(eE()).default({})});var tM=eF(["active","credited","partially_credited","closed","expired"]),tN=eF(["held","released","refunded"]),tj=eF(["pan","aadhaar","bank_account","gstin"]);eF(["pending","verified","failed"]),eP({id:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),offeringId:ek().uuid(),accountNumber:ek(),ifscCode:ek(),upiId:ek().nullable(),bankName:ek().nullable(),expectedAmount:ek(),receivedAmount:ek(),currency:ek(),providerVaId:ek(),status:tM,tpvBankAccountNumber:ek().nullable(),metadata:eN(eE()),closedAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),offeringId:ek().uuid(),expectedAmount:ek(),currency:ek().default("INR"),tpvBankAccountNumber:ek().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),virtualAccountId:ek().uuid(),offeringId:ek().uuid(),transactionId:ek().uuid().nullable(),amount:ek(),currency:ek(),status:tN,releasedAmount:ek().nullable(),releaseTransactionId:ek().nullable(),metadata:eN(eE()),releasedAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({virtualAccountId:ek().uuid(),offeringId:ek().uuid(),transactionId:ek().uuid().optional(),amount:ek(),currency:ek().default("INR"),metadata:eN(eE()).default({})}),eP({escrowHoldId:ek().uuid(),destinationAccountNumber:ek(),destinationIfsc:ek(),destinationAccountHolderName:ek(),amount:ek(),purpose:ek().optional(),metadata:eN(eE()).default({})}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),verificationType:tj,identifier:ek().min(1),additionalData:eN(ek()).optional(),metadata:eN(eE()).default({})}),eP({accountNumber:ek().min(1),ifscCode:ek().min(1),accountHolderName:ek().optional(),metadata:eN(eE()).default({})});var tD=eF(["offering_investment","subscription","payout","refund"]),tF=eF(["sepa_core","sepa_b2b","bacs","autogiro"]),tL=eF(["pending","active","cancelled","failed"]);eP({id:ek().uuid(),provider:tm,jurisdiction:ek().length(2),transactionType:tD,isAllowed:eT(),allowedPaymentMethods:eR(ek()),maxAmountPerTransaction:ek().nullable(),maxAmountPerYear:ek().nullable(),requiredLicenses:eN(eE()),effectiveFrom:ek().datetime(),effectiveTo:ek().datetime().nullable(),notes:ek().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({provider:tm,jurisdiction:ek().length(2),transactionType:tD,isAllowed:eT(),allowedPaymentMethods:eR(ek()).default([]),maxAmountPerTransaction:ek().optional(),maxAmountPerYear:ek().optional(),requiredLicenses:eN(eE()).default({}),effectiveFrom:ek().datetime().optional(),effectiveTo:ek().datetime().optional(),notes:ek().optional()}),eP({id:ek().uuid(),investorCountry:ek().length(2),offeringCountry:ek().length(2),isAllowed:eT(),requiredInvestorStatus:ek().nullable(),withholdingTaxRate:ek().nullable(),treatyApplies:eT(),conditions:eN(eE()),regulatoryReference:ek().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorCountry:ek().length(2),offeringCountry:ek().length(2),isAllowed:eT(),requiredInvestorStatus:ek().optional(),withholdingTaxRate:ek().optional(),treatyApplies:eT().default(!1),conditions:eN(eE()).default({}),regulatoryReference:ek().optional()}),eP({allowed:eT(),provider:tm.optional(),jurisdiction:ek().optional(),transactionType:tD.optional(),allowedPaymentMethods:eR(ek()).optional(),maxAmountPerTransaction:ek().nullable().optional(),maxAmountPerYear:ek().nullable().optional(),reason:ek().optional()}),eP({allowed:eT(),requiredInvestorStatus:ek().nullable().optional(),withholdingTaxRate:ek().nullable().optional(),treatyApplies:eT().optional(),conditions:eN(eE()).optional(),regulatoryReference:ek().nullable().optional(),reason:ek().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),provider:tm,mandateType:tF,providerMandateId:ek(),status:tL,bankAccountIban:ek().nullable(),bankAccountSortCode:ek().nullable(),bankAccountNumber:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({provider:tm,mandateType:tF,bankAccountIban:ek().optional(),bankAccountSortCode:ek().optional(),bankAccountNumber:ek().optional(),metadata:eN(eE()).default({})});var tB=eF(["active","paused","canceled","completed"]),tz=eF(["auto_charge","checkout_link","manual"]),tU=eF(["pending","processing","succeeded","failed","expired"]);eF(["upcoming_3d","due_today","overdue_3d","overdue_7d","past_due_final"]);var tq=eF(["succeeded","failed","pending","requires_action"]);eP({id:ek().uuid(),tenantId:ek().uuid(),subscriptionId:ek().uuid(),status:tB,billingInterval:eF(["monthly","yearly"]),amount:ek(),currency:ek(),paymentMethodId:ek().uuid().nullable(),fundingSourceId:ek().uuid().nullable(),customerEmail:ek(),provider:ek(),temporalWorkflowId:ek().nullable(),temporalRunId:ek().nullable(),retryCount:eS().int(),maxRetries:eS().int(),gracePeriodDays:eS().int(),nextBillingDate:ek().datetime(),lastBilledAt:ek().datetime().nullable(),lastPaymentStatus:tq.nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subscriptionId:ek().uuid(),customerEmail:ek().email(),paymentMethodId:ek().uuid().optional(),fundingSourceId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({paymentMethodId:ek().uuid().optional(),fundingSourceId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),scheduleId:ek().uuid(),invoiceId:ek().uuid().nullable(),attemptNumber:eS().int(),attemptType:tz,status:tU,transactionId:ek().uuid().nullable(),checkoutSessionId:ek().uuid().nullable(),amount:ek(),currency:ek(),failureReason:ek().nullable(),scheduledAt:ek().datetime().nullable(),executedAt:ek().datetime().nullable(),completedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()});var t$=eF(["homebuyer","sponsor","fea","property_owner","tenant","marketplace","investor","creator","bor","whitelabel_a","whitelabel_b"]),tH=eF(["application","structuring","spv_setup","license","saas","capital_raise","success_override","asset_onboarding","unit_management","liquidity","auto_savings","slice_minting","aum","regi
1onal_license","tech_compliance","transaction_override","aum_share","revenue_share","deployment","secondary_trading","platform_subscription"]),tV=eF(["flat_one_time","subscription","percentage_per_event","metered","aum_periodic","revenue_share","deferred_flat","tiered_percentage"]),tW=eF(["on_charge_completed","on_investment_created","on_trade_executed","on_period_end","on_subscription_renewed","on_onboarding","on_slice_transfer","manual"]),tG=eF(["flat","percentage","tiered_percentage","per_unit","aum_annualized"]),tK=eF(["immediate","monthly","quarterly","annually"]),tZ=eF(["stripe_application_fee","separate_charge","invoice_line_item","checkout","closing_costs","deferred_recoup","recurring_charge"]),tY=eF(["homebuyer","investor","sponsor","fea_operator","property_owner","tenant","bor","whitelabel_operator","platform"]),tX=eF(["platform","marketplace_operator","sponsor","fea_operator","bor"]),tJ=eF(["pending","collecting","collected","failed","waived","credited"]),tQ=eF(["active","paid_in_full","waived"]),t0=eF(["investment","offering","trade","subscription","slice_transfer"]),t1=eP({upTo:eS(),rate:eS()});eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),audienceCategory:t$,feeType:tH,billingModel:tV,triggerEvent:tW,calculationMethod:tG,baseRateOrAmount:ek(),tiers:eR(t1).nullable(),minFee:ek().nullable(),maxFee:ek().nullable(),currency:ek(),billingFrequency:tK,collectionMethod:tZ,payerRole:tY,recipientRole:tX,appliesToSubjectType:t0.nullable(),isActive:eT(),priority:eS().int(),effectiveFrom:ek().datetime().nullable(),effectiveTo:ek().datetime().nullable(),metadata:eN(eE()),planKey:ek().nullable(),trialPeriodDays:eS().int(),features:eR(ek()),limits:eN(eS()),sortOrder:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1),description:ek().optional(),audienceCategory:t$,feeType:tH,billingModel:tV,triggerEvent:tW,calculationMethod:tG,baseRateOrAmount:ek(),tiers:eR(t1).optional(),minFee:ek().optional(),maxFee:ek().optional(),currency:ek().default("USD"),billingFrequency:tK,collectionMethod:tZ,payerRole:tY,recipientRole:tX,appliesToSubjectType:t0.optional(),isActive:eT().default(!0),priority:eS().int().default(0),effectiveFrom:ek().datetime().optional(),effectiveTo:ek().datetime().optional(),metadata:eN(eE()).default({}),planKey:ek().optional(),trialPeriodDays:eS().int().min(0).default(0),features:eR(ek()).default([]),limits:eN(eS()).default({}),sortOrder:eS().int().default(0)}),eP({name:ek().min(1).optional(),description:ek().optional(),baseRateOrAmount:ek().optional(),tiers:eR(t1).optional(),minFee:ek().nullable().optional(),maxFee:ek().nullable().optional(),billingFrequency:tK.optional(),collectionMethod:tZ.optional(),isActive:eT().optional(),priority:eS().int().optional(),effectiveFrom:ek().datetime().nullable().optional(),effectiveTo:ek().datetime().nullable().optional(),metadata:eN(eE()).optional(),planKey:ek().nullable().optional(),trialPeriodDays:eS().int().min(0).optional(),features:eR(ek()).optional(),limits:eN(eS()).optional(),sortOrder:eS().int().optional()}),eP({id:ek().uuid(),feeScheduleId:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),baseRateOrAmount:ek().nullable(),tiers:eR(t1).nullable(),minFee:ek().nullable(),maxFee:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({feeScheduleId:ek().uuid(),baseRateOrAmount:ek().optional(),tiers:eR(t1).optional(),minFee:ek().optional(),maxFee:ek().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),feeScheduleId:ek().uuid(),triggerTransactionId:ek().uuid().nullable(),subjectType:t0,subjectId:ek().uuid(),payerType:tY,payerId:ek().uuid(),recipientType:tX,recipientId:ek().uuid().nullable(),grossAmount:ek(),feeAmount:ek(),currency:ek(),status:tJ,collectionMethod:tZ,collectionTransactionId:ek().uuid().nullable(),periodStart:ek().datetime().nullable(),periodEnd:ek().datetime().nullable(),calculationDetails:eN(eE()).nullable(),waivedReason:ek().nullable(),waivedBy:ek().uuid().nullable(),idempotencyKey:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),audienceCategory:t$.optional(),feeType:tH.optional(),status:tJ.optional(),subjectType:t0.optional(),subjectId:ek().uuid().optional(),payerId:ek().uuid().optional(),periodStart:ek().datetime().optional(),periodEnd:ek().datetime().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),audienceCategory:t$.optional(),feeType:tH.optional(),billingModel:tV.optional(),isActive:eB.boolean().optional(),hasPlanKey:eB.boolean().optional()}),eP({feeScheduleId:ek().uuid().optional(),audienceCategory:t$.optional(),feeType:tH.optional(),grossAmount:ek(),currency:ek().default("USD"),unitCount:eS().int().optional(),periodDays:eS().int().optional(),tenantId:ek().uuid().optional()}),eP({reason:ek().min(1)}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),feeScheduleId:ek().uuid(),originalAmount:ek(),amountRecouped:ek(),amountRemaining:ek(),recoupPercentage:ek(),status:tQ,paidInFullAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({feeAmount:ek(),formula:ek(),details:eN(eE())});var t2=eF(["pending","in_progress","completed","failed"]),t5=eF(["amount_mismatch","status_mismatch","missing_in_ledger","missing_in_provider","duplicate","currency_mismatch"]),t3=eF(["open","investigating","resolved","dismissed"]);eP({periodStart:ek().datetime(),periodEnd:ek().datetime(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:t2.optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(50),discrepancyType:t5.optional(),resolutionStatus:t3.o
1ptional()}),eP({resolutionStatus:eF(["resolved","dismissed"]),resolutionNotes:ek().min(1).max(2e3)});var t4=Object.defineProperty,t9=(e,t)=>t4(e,"name",{value:t,configurable:!0}),t6=eF(["platform","marketplace","tenant"]),t8=eF(["platform","marketplace","tenant","system"]),t7=eF(["sponsor","investor_org","advisor_firm","broker_dealer","agency","property_mgr","homebuyer","fea","platform_operated","general","university","accelerator","bootcamp","nonprofit","social_enterprise","foundation"]),ie=eF(["active","inactive","suspended","provisioning"]),it=eP({primaryColor:ek().optional(),secondaryColor:ek().optional(),accentColor:ek().optional(),backgroundColor:ek().optional(),textColor:ek().optional(),fontFamily:ek().optional(),logoUrl:ek().url().optional(),bannerUrl:ek().url().optional(),faviconUrl:ek().url().optional(),buttonRadius:eS().optional(),customCss:ek().optional()}),ii=eP({street1:ek().optional(),street2:ek().optional(),city:ek().optional(),state:ek().optional(),zip:ek().optional(),country:ek().optional()}),ia=eP({linkedin:ek().url().optional().or(eD("")),twitter:ek().url().optional().or(eD("")),facebook:ek().url().optional().or(eD("")),instagram:ek().url().optional().or(eD(""))}),ir=eF(["llc","corporation","partnership","sole_proprietor","non_profit"]),io=eP({legalName:ek().optional(),tradeName:ek().optional(),taxId:ek().optional(),registrationNumber:ek().optional(),businessType:ir.optional(),email:ek().email().optional().or(eD("")),phone:ek().optional(),website:ek().url().optional().or(eD("")),address:ii.optional(),timezone:ek().optional(),currency:ek().optional(),locale:ek().optional(),social:ia.optional()}),il=eP({enabled:eT(),tenantMode:eF(["multi-tenant","single-tenant"]),tenant:ek().optional(),clientId:ek().optional(),policy:ek().optional(),domain:ek().optional(),scopes:eR(ek()).optional()}),is=eF(["not_connected","onboarding","active","restricted","disabled"]);eP({id:ek().uuid(),parentId:ek().uuid().nullable(),tier:t8,orgType:t7,name:ek().min(1),subdomain:ek().nullable(),customDomain:ek().nullable(),status:ie,brandKit:it.nullable(),companyInfo:io.nullable().optional(),b2cConfig:il.nullable(),metadata:eN(eE()).default({}),stripeAccountId:ek().nullable().optional(),stripeAccountStatus:is.optional(),stripeOnboardingComplete:eT().optional(),platformFeePercent:ek().nullable().optional(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({parentId:ek().uuid().optional(),tier:t6,orgType:t7.optional(),name:ek().min(1).max(255),subdomain:ek().min(2).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/).optional(),brandKit:it.optional(),companyInfo:io.optional(),b2cConfig:il.optional(),metadata:eN(eE()).optional()}),eP({name:ek().min(1).max(255).optional(),subdomain:ek().min(2).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/).optional(),status:ie.optional(),orgType:t7.optional(),brandKit:it.optional(),companyInfo:io.optional(),b2cConfig:il.optional(),metadata:eN(eE()).optional(),stripeAccountId:ek().optional(),stripeAccountStatus:is.optional(),stripeOnboardingComplete:eT().optional(),platformFeePercent:ek().regex(/^\d{1,3}(\.\d{1,2})?$/).optional()}),eP({tier:t6.optional(),status:ie.optional(),parentId:ek().uuid().optional(),search:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)});var id=eF(["pending_onboarding","active_onboarding","active","active_pending_verification","active_pending_approval","suspended","inactive","deactivated"]);eP({id:ek().uuid(),tenantId:ek().uuid(),externalId:ek().nullable(),email:ek().email(),firstName:ek(),lastName:ek(),phone:ek().nullable(),avatarUrl:ek().url().nullable(),status:id,lastLoginAt:ek().datetime().nullable(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({email:ek().email(),firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),phone:ek().optional(),externalId:ek().optional(),roleIds:eR(ek().uuid()).optional(),metadata:eN(eE()).optional()}),eP({firstName:ek().min(1).max(100).optional(),lastName:ek().min(1).max(100).optional(),phone:ek().optional(),avatarUrl:ek().url().optional(),status:id.optional(),metadata:eN(eE()).optional()}),eP({status:id.optional(),search:ek().optional(),roleId:ek().uuid().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)});var iu=eF(["platform_admin","marketplace_admin","support","owner","admin","member","viewer","system"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),isSystem:eT(),systemRole:iu,permissions:eR(ek()).default([]),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(100),description:ek().optional(),systemRole:iu.optional(),permissions:eR(ek()).optional()}),eP({name:ek().min(1).max(100).optional(),description:ek().optional(),systemRole:iu.optional(),permissions:eR(ek()).optional()});var ic=eF(["lead","member"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(100),description:ek().optional(),metadata:eN(eE()).optional()}),eP({name:ek().min(1).max(100).optional(),description:ek().optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),teamId:ek().uuid(),accountId:ek().uuid(),teamRole:ic,createdAt:ek().datetime()}),eP({accountId:ek().uuid(),teamRole:ic.optional()}),eP({teamRole:ic}),eP({roleId:ek().uuid()}),eP({companyName:ek().min(1).max(255),subdomain:ek().min(2).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,{message:"Subdomain must be lowercase alphanumeric with optional hyphens"}
1),adminEmail:ek().email(),adminFirstName:ek().min(1).max(100),adminLastName:ek().min(1).max(100),planKey:ek().optional(),platformOperated:eT().optional().default(!1)}),eP({companyName:ek().min(1).max(255),subdomain:ek().min(2).max(63).regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/,{message:"Subdomain must be lowercase alphanumeric with optional hyphens"}).optional(),marketplaceId:ek().uuid(),adminEmail:ek().email(),adminFirstName:ek().min(1).max(100),adminLastName:ek().min(1).max(100),planKey:ek().optional()}),eP({tenantId:ek().uuid(),accountId:ek().uuid(),token:ek().optional()}),eP({marketplaceId:ek().uuid(),email:ek().email(),firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),role:eF(["investor","sponsor","homebuyer","fea","creator","bd_rep","compliance_officer","advisor","ria","provider","re_agent","mlo","student","fellow","mentor","university_admin","accelerator_admin","nonprofit_admin"]),investorType:ek().optional(),companyName:ek().max(255).optional(),entityType:ek().optional()}),eP({subdomain:ek(),available:eT()});var ip=eF(["authenticator","sms","email","fido2"]),im=eF(["password","magic_link","mfa_totp","mfa_sms","mfa_email","mfa_fido2","b2c_sso","auth0_sso","firebase_sso"]);eF(["pending","used","expired","revoked"]),eF(["enrollment_verify","login_verify","step_up"]),eF(["pending","verified","failed","expired"]);var ih=eF(["success","failed"]);eP({email:ek().email(),appType:eF(["investor","sponsor","admin","creator"]).optional(),redirectUrl:ek().url().optional()}),eP({success:eT(),message:ek()}),eP({token:ek().min(1)}),eP({success:eT(),accessToken:ek().optional(),refreshToken:ek().optional(),mfaRequired:eT().optional(),challengeId:ek().uuid().optional(),mfaMethods:eR(ip).optional(),account:eP({id:ek().uuid(),email:ek().email(),firstName:ek(),lastName:ek()}).optional()}),eP({id:ek().uuid(),method:ip,enabled:eT(),isPreferred:eT(),enrolledAt:ek().datetime().nullable(),lastUsedAt:ek().datetime().nullable()}),eP({method:ip,phoneNumber:ek().optional()}),eP({challengeId:ek().uuid(),method:ip,qrCodeDataUrl:ek().optional(),secretKey:ek().optional(),fido2Options:eN(eE()).optional()}),eP({challengeId:ek().uuid(),code:ek().optional(),credential:eN(eE()).optional()}),eP({success:eT(),accessToken:ek().optional(),recoveryCodes:eR(ek()).optional()}),eP({method:ip}),eP({action:ek().min(1),preferredMethod:ip.optional()}),eP({challengeId:ek().uuid(),method:ip,fido2Options:eN(eE()).optional()}),eP({challengeId:ek().uuid(),code:ek().optional(),credential:eN(eE()).optional()}),eP({sessionToken:ek(),expiresAt:ek().datetime()}),eP({id:ek().uuid(),deviceName:ek().nullable(),browser:ek().nullable(),os:ek().nullable(),ipAddress:ek().nullable(),isCurrent:eT(),lastSeenAt:ek().datetime().nullable(),expiresAt:ek().datetime(),createdAt:ek().datetime()}),eP({id:ek().uuid(),email:ek().email(),ipAddress:ek().nullable(),device:ek().nullable(),browser:ek().nullable(),location:ek().nullable(),method:im,status:ih,failureReason:ek().nullable(),createdAt:ek().datetime()});var ig=eF(["pending","verifying","active","failed","expired"]),iv=eF(["cname","txt"]),iy=eF(["auto","letsencrypt","uploaded"]),ib=eF(["pending","active","error"]),i_=eP({type:eF(["CNAME","TXT"]),name:ek(),value:ek(),purpose:eF(["routing","ownership_verification"])});eP({id:ek().uuid(),tenantId:ek().uuid(),domain:ek().min(1),status:ig,verificationMethod:iv,verificationToken:ek(),cnameTarget:ek().nullable(),txtRecordName:ek().nullable(),txtRecordValue:ek().nullable(),sslMode:iy,sslStatus:ib,sslCertExpiry:ek().datetime().nullable(),cloudflareRecordId:ek().nullable(),verifiedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),dnsRecords:eR(i_).optional(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({domain:ek().min(4).max(253).regex(/^(?!:\/\/)([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/,"Must be a valid domain (e.g., invest.acmecorp.com)")}),eP({certificate:ek().min(1,"Certificate PEM is required"),privateKey:ek().min(1,"Private key PEM is required"),chain:ek().optional()}),eP({status:ig.optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)});var ix=eF(["investor","advisor","creator","fea_agent","homebuyer","bd_rep","promoter","instructor","student","mentor","grant_applicant","impact_lead","nonprofit_staff","rera_broker"]),iA=eF(["marketplace","platform","self_service","sponsor_branded"]);eP({accountId:ek(),activeTenantId:ek(),activeTier:eF(["marketplace","tenant","platform"]),tenantContextKind:iA.optional()});var iI=eF(["kyc","aml","accreditation_reg_cf","accreditation_reg_d","accreditation_506c","suitability_reg_a","real_estate_license","series_65","e_o_insurance","tax_w9","credit_check","income_plaid","background_check","finra_registration","instructor_credential","nonprofit_501c3","rera_license","plaid_assets"]);eF(["self","marketplace","delegated"]);var iw=["platform_admin","super_admin"];t9(function(e){return iw.includes(e)},"isPlatformAdminRole");var ik=eF(["straddle","plaid","onfido","jumio"]),iS=eF(["pending","in_progress","verified","failed","expired"]),iT=eF(["identity","document","address","enhanced"]),iC=eF(["pending","clear","flagged","confirmed_match","false_positive"]),iE=eF(["ofac","pep","sanctions","adverse_media","comprehensive"]),iR=eF(["internal","investready","verify_investor"]),iP=eF(["pending","under_review","approved","rejected","expired"]),iO=eF(["low","medium","high","critical"]),iM=eF(["kyc_refresh","aml_continuous","accreditation_expiry"]),iN=eF(["active","paused","completed","canceled"]);eP({id:ek().uuid(),tenantId:ek().uuid(),subjectType:ek(),subjectId:ek().uuid(),provider:ik,providerVerificationId:ek().nullable(),status:iS,verificationType:iT,verificationData:eN(eE()).nullable(),failureReasons:eR(ek()).nullable(),riskScore:ek().nullable(),riskFactors:eN(eE()).nullable(),requestingService:ek().nullable(),verifiedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),firstName:ek().min(1),lastName:ek().min(1),email:ek().email(),provider:ik.optional(),verificationType:iT,requestingService:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),subjectType:ek().optional(),subjectId:ek().uuid().optional(),status:iS.optional(),provider:ik.optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),subjectType:ek(),subjectId:ek().uuid(),provider:ik,providerScreeningId:ek().nullable(),status:iC,screeningType:iE,matchDetails:eN(eE()).nullable(),riskScore:ek().nullable(),reviewedBy:ek().uuid().nullable(),reviewedAt:ek().datetime().nullable(),requestingService:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),firstName:ek().min(1),lastName:ek().min(1),provider:ik.optional(),screeningType:iE,requestingService:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),subjectType:ek().optional(),subjectId:ek().uuid().optional(),status:iC.optional(),provider:ik.optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),subjectType:ek(),subjectId:ek().uuid(),qualificationType:ek(),status:iP,provider:iR.nullable(),providerVerificationId:ek().nullable(),verificationData:eN(eE()).nullable(),approvedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),rejectionReason:ek().nullable(),reviewedBy:ek().uuid().nullable(),requestingService:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),qualificationType:ek().min(1),provider:iR.optional(),verificationData:eN(eE()).optional(),requestingService:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),subjectType:ek().optional(),subjectId:ek().uuid().optional(),status:iP.optional(),qualificationType:ek().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),subjectType:ek(),subjectId:ek().uuid(),compositeScore:ek(),kycScore:ek().nullable(),amlScore:ek().nullable(),accreditationScore:ek().nullable(),riskLevel:iO,thresholdConfig:eN(eE()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),tenantId:ek().uuid(),subjectType:ek(),subjectId:ek().uuid(),monitoringType:iM,status:iN,intervalDays:eS().int().positive(),lastRunAt:ek().datetime().nullable(),nextRunAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subjectType:ek().min(1),subjectId:ek().uuid(),monitoringType:iM,intervalDays:eS().int().positive().default(90),metadata:eN(eE()).default({})}),eP({statusCode:eS().int(),message:ek(),error:ek().optional(),details:eN(eE()).optional()}),eP({success:eT(),message:ek().optional()}),eP({email:ek().email(),roleId:ek().uuid().optional(),firstName:ek().max(100).optional(),lastName:ek().max(100).optional(),message:ek().max(1e3).optional(),metadata:eN(eE()).default({})}),eP({firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),phone:ek().optional(),externalId:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:eF(["pending","accepted","expired","revoked"]).optional()}),eP({type:ek(),target:eM("scope",[eP({scope:eD("user"),userId:ek().uuid()}),eP({scope:eD("tenant"),tenantId:ek().uuid()}),eP({scope:eD("role"),tenantId:ek().uuid(),role:ek()}),eP({scope:eD("app"),tenantId:ek().uuid(),appType:ek()})]),payload:eN(eE())});var ij=eF(["new","contacted","qualified","unqualified","converted","lost"]);eP({id:ek().uuid(),tenantId:ek().uuid(),ownerId:ek().uuid().nullable(),email:ek().email().nullable(),firstName:ek().nullable(),lastName:ek().nullable(),company:ek().nullable(),phone:ek().nullable(),title:ek().nullable(),source:ek().nullable(),status:ij,score:eS().int().default(0),tags:eR(ek()).default([]),customFields:eN(eE()).default({}),convertedAt:ek().datetime().nullable(),lastContactedAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({email:ek().email().optional(),firstName:ek().min(1).max(100).optional(),lastName:ek().min(1).max(100).optional(),company:ek().max(255).optional(),phone:ek().optional(),title:ek().max(255).optional(),source:ek().optional(),status:ij.optional(),ownerId:ek().uuid().optional(),tags:eR(ek()).optional(),customFields:eN(eE()).optional()}),eP({email:ek().email().optional(),firstName:ek().min(1).max(100).optional(),lastName:ek().min(1).max(100).optional(),company:ek().max(255).optional(),phone:ek().optional(),title:ek().max(255).optional(),source:ek().optional(),status:ij.optional(),ownerId:ek().uuid().optional(),score:eS().int().min(0).max(100).optional(),tags:eR(ek()).optional(),customFields:eN(eE()).optional()}),eP({status:ij.optional(),source:ek().optional(),ownerId:ek().uuid().optional(),search:ek().optional(),tags:eR(ek()).optional(),scoreMin:eB.number().int().optional(),scoreMax:eB.number().int().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),sortBy:eF(["createdAt","updatedAt","score","name"]).default("
1createdAt"),sortOrder:eF(["asc","desc"]).default("desc")});var iD=eF(["platform","marketplace","tenant"]),iF=eF(["monthly","yearly","one_time"]),iL=eF(["base","metered_service","add_on"]),iB=eF(["trialing","active","past_due","canceled","expired"]),iz=eF(["draft","open","paid","void","uncollectible"]),iU=eF(["subscription","metered","one_time"]),iq=eF(["express","standard","custom"]),i$=eF(["pending","in_progress","complete"]),iH=eF(["card","us_bank_account"]),iV=eP({upTo:eS(),unitPrice:eS()}),iW=eP({enabled:eT(),unitPrice:eS(),includedUnits:eS(),tierPricing:eR(iV).optional(),aggregation:eF(["sum","max","last"]).optional()}),iG=eN(ek().optional()),iK=eP({id:ek().uuid(),key:ek(),name:ek(),description:ek().nullable(),tier:iD,billingInterval:iF,basePrice:ek(),currency:ek(),trialPeriodDays:eS().int(),features:eR(ek()),limits:eN(eS()),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()});eP({key:ek().min(1).max(100),name:ek().min(1).max(255),description:ek().optional(),tier:iD,billingInterval:iF,basePrice:ek(),currency:ek().default("USD"),trialPeriodDays:eS().int().min(0).default(0),features:eR(ek()).default([]),limits:eN(eS()).default({}),metadata:eN(eE()).default({})}).partial().omit({key:!0}),eP({basePrice:ek().optional(),trialPeriodDays:eS().int().min(0).optional(),features:eR(ek()).optional(),limits:eN(eS()).optional(),metadata:eN(eE()).optional()}),iK.extend({source:eF(["plan","override"]),overrideTenantId:ek().uuid().nullable()}),eP({id:ek().uuid(),key:ek(),name:ek(),description:ek().nullable(),productType:iL,unitLabel:ek().nullable(),meteredBilling:iW.nullable(),providerIds:iG,isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({key:ek().min(1).max(100),name:ek().min(1).max(255),description:ek().optional(),productType:iL,unitLabel:ek().optional(),meteredBilling:iW.optional(),providerIds:iG.default({}),metadata:eN(eE()).default({})}).partial().omit({key:!0}),eP({id:ek().uuid(),tenantId:ek().uuid(),planId:ek().uuid(),status:iB,currentPeriodStart:ek().datetime(),currentPeriodEnd:ek().datetime(),trialEnd:ek().datetime().nullable(),canceledAt:ek().datetime().nullable(),cancelAtPeriodEnd:eT(),stripeSubscriptionId:ek().nullable(),stripeCustomerId:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({tenantId:ek().uuid(),planKey:ek(),productKeys:eR(ek()).default([]),withTrial:eT().default(!0),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),subscriptionId:ek().uuid(),productId:ek().uuid(),quantity:eS().int(),stripeSubscriptionItemId:ek().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subscriptionItemId:ek().uuid(),tenantId:ek().uuid(),productKey:ek(),quantity:eS().int().positive(),idempotencyKey:ek(),recordedAt:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({productKey:ek(),productName:ek(),totalQuantity:eS().int(),includedUnits:eS().int(),overageUnits:eS().int(),estimatedCost:ek()});var iZ=eP({id:ek().uuid(),subscriptionId:ek().uuid(),tenantId:ek().uuid(),invoiceNumber:ek(),status:iz,subtotal:ek(),tax:ek(),total:ek(),currency:ek(),periodStart:ek().datetime(),periodEnd:ek().datetime(),dueDate:ek().datetime().nullable(),paidAt:ek().datetime().nullable(),stripeInvoiceId:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),iY=eP({id:ek().uuid(),invoiceId:ek().uuid(),productId:ek().uuid().nullable(),description:ek(),quantity:eS().int(),unitPrice:ek(),amount:ek(),type:iU,metadata:eN(eE()),createdAt:ek().datetime()});iZ.extend({lineItems:eR(iY)}),eP({id:ek().uuid(),tenantId:ek().uuid(),stripeAccountId:ek(),accountType:iq,chargesEnabled:eT(),payoutsEnabled:eT(),onboardingStatus:i$,businessName:ek().nullable(),applicationFeePercent:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({tenantId:ek().uuid(),businessName:ek(),accountType:iq.default("express"),applicationFeePercent:eS().min(0).max(100).default(20),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),stripePaymentMethodId:ek().nullable(),type:iH,lastFour:ek().nullable(),brand:ek().nullable(),expMonth:eS().int().nullable(),expYear:eS().int().nullable(),isDefault:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()});var iX=eF(["pending","approved","rejected"]);eP({id:ek().uuid(),tenantId:ek().uuid(),status:iX,orgName:ek().min(1).max(255),orgType:ek().min(1).max(64),irsLetter:ek().url().nullable().optional(),eduDomain:ek().max(255).nullable().optional(),notes:ek().nullable().optional(),reviewedBy:ek().uuid().nullable().optional(),reviewedAt:ek().datetime().nullable().optional(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({orgName:ek().min(1).max(255),orgType:ek().min(1).max(64),irsLetter:ek().url().optional(),eduDomain:ek().max(255).regex(/^[a-zA-Z0-9.-]+\.edu$/,"eduDomain must be a valid .edu hostname").optional()}).refine(e=>!!e.irsLetter||!!e.eduDomain,{message:"Either irsLetter or eduDomain must be supplied as evidence"}),eP({decision:eF(["approved","rejected"]),notes:ek().max(2e3).optional()}),eP({status:iX.optional()});var iJ=eF(["article","page","update","announcement","offering_page"]),iQ=eF(["draft","published","archived"]);eP({id:ek().uuid(),tenantId:ek().uuid(),type:iJ,title:ek(),slug:ek(),body:ek().nullable(),richContent:eN(eE()).nullable(),status:iQ,authorId:ek().uuid().nullable(),tags:eR(ek()),metadata:eN(eE()),publishedAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({type:iJ,title:ek().min(1).max(500),body:ek().optional(),richContent:eN(eE()).optional(),authorId:ek().uuid().optional(),tags:eR(ek()).default([]),metadata:eN(eE()).default({})}),eP({title:ek().min(1).max(500).optional(),body:ek().optional(),richContent:eN(eE()).optional(),tags:eR(ek()).optional(),metadata:eN(eE()).optional()}),eP({type:iJ.optional(),status:iQ.optional(),authorId:ek().uuid().optional(),search:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({id:ek().uuid(),contentItemId:ek().uuid(),versionNumber:eS().int(),title:ek(),body:ek().nullable(),richContent:eN(eE()).nullable(),changedById:ek().uuid().nullable(),changeNote:ek().nullable(),createdAt:ek().datetime()}),eF(["real_estate","venture_capital","co_equity","private_equity","art_collectibles"]);var i0=eP({offeringsLabel:ek(),blogLabel:ek(),ctaLabel:ek(),ctaHref:ek()}),i1=eP({headline:ek(),subheadline:ek(),primaryCta:ek(),secondaryCta:ek(),backgroundStyle:eF(["gradient","image","pattern"])}),i2=eP({icon:ek(),title:ek(),description:ek()}),i5=eP({value:ek(),label:ek()}),i3=eP({featured:ek(),featuredSubtitle:ek(),articles:ek(),articlesSubtitle:ek(),cta:ek(),ctaSubtitle:ek(),ctaButton:ek()}),i4=eP({offerings:eP({title:ek(),description:ek(),noResultsMessage:ek(),emptyMessage:ek()}),blog:eP({title:ek(),description:ek(),emptyMessage:ek()}
1),about:eP({currentOfferingsTitle:ek(),viewAllButton:ek()}),support:eP({title:ek(),description:ek(),searchPlaceholder:ek()}),resources:eP({title:ek(),description:ek()}),contact:eP({subjects:eR(ek())})}),i9=eP({discoveryTitle:ek(),discoveryDescription:ek()}),i6=eP({primaryColor:ek(),secondaryColor:ek(),accentColor:ek()}),i8=eP({id:ek(),displayName:ek(),nav:i0,hero:i1,howItWorks:eR(i2),stats:eR(i5),sectionTitles:i3,pages:i4,seo:i9,brandPreset:i6,layoutTemplate:ek()});eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),verticalKey:ek(),config:i8,isActive:eT(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({verticalKey:ek().min(1).max(100),config:i8,isActive:eT().default(!0)}),eP({id:ek().uuid(),tenantId:ek().uuid(),title:ek(),slug:ek(),body:ek().nullable(),richContent:eN(eE()).nullable(),metadata:eN(eE()),publishedAt:ek().datetime().nullable()});var i7=eF(["investor","sponsor","homebuyer","fea","advisor","contributors","creator"]),ae=eP({label:ek().min(1).max(100),path:ek().min(1),icon:ek().default(""),sortOrder:eS().int().min(0),isVisible:eT().default(!0),isExternal:eT().default(!1),requiredRoles:eR(ek()).default([]),pageId:ek().uuid().optional()});eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),portalType:i7,navItems:eR(ae),isActive:eT(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({tenantId:ek().uuid(),portalType:i7,navItems:eR(ae),isActive:eT().default(!0)}),eP({tenantId:ek().uuid(),portalType:i7,item:ae}),eP({tenantId:ek().uuid(),portalType:i7,path:ek().min(1)}),eP({tenantId:ek().uuid(),portalType:i7,orderedPaths:eR(ek())});var at=eF(["hero","stats","featured_offerings","how_it_works","cta","testimonials","partners","newsletter","custom"]),ai=eP({sectionId:ek().min(1),sectionType:at,isVisible:eT().default(!0),sortOrder:eS().int().min(0),config:eN(eE()).default({})});eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),portalType:i7,pagePath:ek(),sections:eR(ai),isActive:eT(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({tenantId:ek().uuid(),portalType:i7,pagePath:ek().min(1),sections:eR(ai),isActive:eT().default(!0)}),eP({tenantId:ek().uuid(),portalType:i7,pagePath:ek().min(1),orderedSectionIds:eR(ek())}),eP({tenantId:ek().uuid(),portalType:i7,pagePath:ek().min(1),sectionId:ek().min(1),isVisible:eT()}),eP({changedById:ek().uuid().optional(),changeNote:ek().optional()});var aa=eF(["lead","deal","sponsor_onboarding","investor_onboarding","offering_lifecycle","investment_flow","content_approval","capital_call","support","custom"]),an=eF(["platform","marketplace","tenant"]),ar=eF(["active","completed","stalled","removed"]),ao=eF(["low","medium","high","urgent"]);eP({id:ek().uuid(),tenantId:ek().uuid().nullable(),name:ek(),description:ek().nullable(),pipelineType:aa,isTemplate:eT(),templateScope:an.nullable(),sourceTemplateId:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),pipelineType:aa,isTemplate:eT().default(!1),templateScope:an.optional(),metadata:eN(eE()).default({})}),eP({name:ek().min(1).max(255).optional(),description:ek().optional(),metadata:eN(eE()).optional()}),eP({pipelineType:aa.optional(),isTemplate:eB.boolean().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({id:ek().uuid(),pipelineId:ek().uuid(),name:ek(),description:ek().nullable(),sortOrder:eS().int(),color:ek().nullable(),isTerminal:eT(),autoTransitionRules:eN(eE()).nullable(),requiredFields:eR(ek()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),color:ek().optional(),isTerminal:eT().default(!1),autoTransitionRules:eN(eE()).optional(),requiredFields:eR(ek()).default([])}),eP({name:ek().min(1).max(255).optional(),description:ek().optional(),color:ek().optional(),isTerminal:eT().optional(),autoTransitionRules:eN(eE()).optional(),requiredFields:eR(ek()).optional()}),eP({stageIds:eR(ek().uuid())}),eP({id:ek().uuid(),pipelineId:ek().uuid(),stageId:ek().uuid(),tenantId:ek().uuid(),entityType:ek(),entityId:ek().uuid(),title:ek(),assigneeId:ek().uuid().nullable(),status:ar,priority:ao,customFields:eN(eE()),enteredStageAt:ek().datetime(),completedAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({stageId:ek().uuid(),entityType:ek().min(1),entityId:ek().uuid(),title:ek().min(1).max(500),assigneeId:ek().uuid().optional(),priority:ao.default("medium"),customFields:eN(eE()).default({})}),eP({title:ek().min(1).max(500).optional(),priority:ao.optional(),customFields:eN(eE()).optional()}),eP({targetStageId:ek().uuid()}),eP({assigneeId:ek().uuid()}
1),eP({stageId:ek().uuid().optional(),status:ar.optional(),assigneeId:ek().uuid().optional(),entityType:ek().optional(),entityId:ek().uuid().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)});var al=eF(["email","sms","notification","webhook"]),as=eF(["content","engagement","notification","onboarding"]),ad=eF(["private","marketplace","platform"]);eP({id:ek().uuid(),tenantId:ek().uuid().nullable(),name:ek(),description:ek().nullable(),templateType:al,templateGroup:as,subject:ek().nullable(),body:ek().nullable(),htmlBody:ek().nullable(),mergeVariables:eR(ek()),sharedScope:ad,parentTemplateId:ek().uuid().nullable(),isSystem:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),templateType:al,templateGroup:as,subject:ek().optional(),body:ek().optional(),htmlBody:ek().optional(),mergeVariables:eR(ek()).default([]),sharedScope:ad.default("private"),isSystem:eT().default(!1),metadata:eN(eE()).default({})}),eP({name:ek().min(1).max(255).optional(),description:ek().optional(),subject:ek().optional(),body:ek().optional(),htmlBody:ek().optional(),mergeVariables:eR(ek()).optional(),sharedScope:ad.optional(),metadata:eN(eE()).optional()}),eP({templateType:al.optional(),templateGroup:as.optional(),sharedScope:ad.optional(),isSystem:eB.boolean().optional(),search:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({templateType:al,templateGroup:as}),eP({mergeData:eN(ek())});var au=eF(["contact","inquiry","survey","feedback","data_capture"]),ac=eF(["draft","active","archived"]),ap=eF(["text","number","date","boolean","select","multiselect","url","email","phone","textarea"]),am=eF(["recaptcha_v3","hcaptcha"]);eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),formType:au,status:ac,settings:eN(eE()),isPublic:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),formType:au,settings:eN(eE()).default({}),isPublic:eT().default(!1),metadata:eN(eE()).default({})}),eP({name:ek().min(1).max(255).optional(),description:ek().optional(),status:ac.optional(),settings:eN(eE()).optional(),isPublic:eT().optional(),metadata:eN(eE()).optional()}),eP({formType:au.optional(),status:ac.optional(),search:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({id:ek().uuid(),formId:ek().uuid(),fieldName:ek(),displayName:ek(),fieldType:ap,inputType:ek().nullable(),isRequired:eT(),options:eR(ek()).nullable(),validation:eN(eE()).nullable(),sortOrder:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()});var af=eP({fieldName:ek().min(1).max(100),displayName:ek().min(1).max(255),fieldType:ap,inputType:ek().optional(),isRequired:eT().default(!1),options:eR(ek()).optional(),validation:eN(eE()).optional(),sortOrder:eS().int().default(0)});eP({displayName:ek().min(1).max(255).optional(),isRequired:eT().optional(),options:eR(ek()).optional(),validation:eN(eE()).optional(),sortOrder:eS().int().optional()}),eP({fieldIds:eR(ek().uuid())}),eP({id:ek().uuid(),formId:ek().uuid(),tenantId:ek().uuid(),data:eN(eE()),submittedByAccountId:ek().uuid().nullable(),submitterEmail:ek().nullable(),submitterName:ek().nullable(),ipAddress:ek().nullable(),submissionHash:ek().nullable(),spamScore:eS().int().nullable(),ipCountry:ek().nullable(),isSpam:eT(),isFlagged:eT(),createdAt:ek().datetime()}),eP({data:eN(eE()),submitterEmail:ek().email().optional(),submitterName:ek().optional(),captchaToken:ek().optional(),_loadedAt:eS().optional()});var ah=eP({rateLimitPerHour:eS().int().positive().default(100),captchaEnabled:eT().default(!1),captchaProvider:am.optional(),captchaSiteKey:ek().optional(),captchaSecretKey:ek().optional(),captchaThreshold:eS().min(0).max(1).default(.5),honeypotEnabled:eT().default(!0),minSubmissionTime:eS().int().nonnegative().default(2),blockDisposableEmails:eT().default(!0),geoRestriction:eR(ek()).optional()}),ag=eF(["lead","contact","connection"]),av=eP({formFieldName:ek(),crmField:ek(),crmEntityType:ag}
1),ay=eP({notificationEmail:ek().email().optional(),redirectUrl:ek().url().optional(),successMessage:ek().optional(),submitLabel:ek().optional(),enableCaptcha:eT().optional(),enableLeadGeneration:eT().optional(),enableListAdd:eT().optional(),targetListId:ek().uuid().optional(),crmEntityType:ag.optional(),fieldMappings:eR(av).optional(),webhookUrl:ek().url().optional(),autoResponder:eP({enabled:eT(),templateId:ek().uuid().optional()}).optional(),protection:ah.optional()}),ab=eF(["lead_capture","contact","feedback","survey","registration","inquiry"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid().nullable(),tenantId:ek().uuid().nullable(),name:ek(),description:ek().nullable(),category:ab,formType:au,fieldsConfig:eR(af),settings:ay.default({}),fieldMappings:eR(av).default([]),isSystem:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),category:ab,formType:au,fieldsConfig:eR(af),settings:ay.default({}),fieldMappings:eR(av).default([]),metadata:eN(eE()).default({})}),eP({name:ek().min(1).max(255).optional(),description:ek().optional(),settings:ay.optional(),fieldMappings:eR(av).optional(),isPublic:eT().optional()}),eP({category:ab.optional(),isSystem:eB.boolean().optional(),search:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({formSlug:ek().min(1).max(100),data:eN(eE()),submitterEmail:ek().email().optional(),submitterName:ek().optional(),captchaToken:ek().optional(),_loadedAt:eS().optional()}),eP({description:ek().min(1).max(1e3),formType:au.optional(),crmEntityType:ag.optional()});var a_=eF(["lead","contact","deal","offering","sponsor","investor","investment"]),ax=eF(["text","number","date","boolean","select","multiselect","url","email","phone"]);eP({id:ek().uuid(),tenantId:ek().uuid(),entityType:a_,fieldName:ek(),displayName:ek(),fieldType:ax,isRequired:eT(),options:eR(ek()).nullable(),defaultValue:ek().nullable(),sortOrder:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({entityType:a_,fieldName:ek().min(1).max(100).regex(/^[a-zA-Z_][a-zA-Z0-9_]*$/),displayName:ek().min(1).max(255),fieldType:ax,isRequired:eT().default(!1),options:eR(ek()).optional(),defaultValue:ek().optional(),sortOrder:eS().int().default(0)}),eP({displayName:ek().min(1).max(255).optional(),isRequired:eT().optional(),options:eR(ek()).optional(),defaultValue:ek().optional(),sortOrder:eS().int().optional()}),eP({entityType:a_.optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({entityType:a_,data:eN(eE())});var aA=eF(["equity","debt","fund","reit","regulation_a","regulation_d","regulation_cf"]),aI=eF(["real_estate","private_equity","venture_capital","fixed_income","commercial_asset","art_collectibles","infrastructure","natural_resources","other"]),aw=eF(["residential","multi_family","office","retail","industrial","warehouse","godown","land","mixed_use","aircraft","machinery","equipment","vehicle","vessel","fine_art","sculpture","photography","vintage_car","wine","watches","jewelry","trading_cards","memorabilia","energy","telecom","transport","water","minerals","timber","agriculture","other"]),ak=eF(["active","pending_inspection","under_contract","disposed"]),aS=eF(["appraisal","market_analysis","broker_opinion","tax_assessment","internal"]),aT=eF(["draft","pending_review","active","funded","closed","canceled"]),aC=eF(["individual","entity","joint","ira","trust"]),aE=eF(["not_started","pending","verified","expired","rejected"]),aR=eF(["not_started","pending","verified","failed"]),aP=eF(["not_started","pending","clear","flagged"]),aO=eF(["pending","active","suspended","inactive"]),aM=eF(["ach","usdc","wire"]),aN=eF(["pending","interest","soft_committed","committed","agreement_pending","agreement_signed","compliance_pending","compliance_cleared","pending_wire","funded","active","distributed","canceled","defaulted","payment_failed"]),aj=eF(["pledged","soft_committed","committed","partially_called","fully_called","partially_paid","fully_paid","defaulted","canceled"]),aD=eF(["draft","active","closed","canceled"]),aF=eF(["pending","partial","paid","overdue","waived"]),aL=eF(["not_sent","sent","signed","countersigned","rejected"]),aB=eF(["llc","lp","corp","trust","spv","ltd","spc","pty_ltd","gmbh"]),az=eF(["active","inactive","dissolved"]),aU=eF(["ach","wire","check"]),aq=eF(["checking","savings"]),a$=eF(["pending","verified","failed","removed"]),aH=eF(["not_submitted","pending_review","approved","rejected"]),aV=eF(["not_sent","sent","signed","rejected","voided"]),aW=eF(["marketplace","sponsor_portal"]),aG=eF(["reg_d_506b","reg_d_506c","reg_a_tier1","reg_a_tier2","reg_cf","reg_s","eu_prospectus_exempt","eu_eltif","uk_fca_exempt","uk_eis_seis","sg_private_placement","sg_small_offer","sg_institutional","in_sebi_private","in_sebi_ipo","in_aif_c
1at1","in_aif_cat2","in_aif_cat3","in_sm_reit","in_private_placement","ae_dfsa_exempt","ae_adgm_exempt","offshore_exempt","custom","none"]),aK=eF(["direct","spv","syndicated"]),aZ=eF(["re_syndication","pe_fund","vc_round","co_equity","debt_fund","simple_equity"]);eP({offeringId:ek().uuid(),category:aZ,capitalStackPresetId:ek().uuid().optional(),waterfallTemplateId:ek().uuid().optional(),totalCapitalization:ek().regex(/^\d+(\.\d{1,2})?$/).optional(),metadata:eN(eE()).optional().default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),slug:ek(),offeringType:aA,assetType:aI,status:aT,targetAmount:ek(),minimumInvestment:ek(),maximumInvestment:ek().nullable(),raisedAmount:ek(),investorCount:eS().int(),targetIrr:ek().nullable(),targetMultiple:ek().nullable(),currency:ek(),startDate:ek().datetime().nullable(),endDate:ek().datetime().nullable(),metadata:eN(eE()),investmentAgreementTemplateId:ek().uuid().nullable(),ndaTemplateId:ek().uuid().nullable(),loiTemplateId:ek().uuid().nullable(),allowedInvestorCountries:eR(ek()).nullable(),isPrivate:eT(),isEditable:eT(),availableOn:eP({marketplace:eT().optional(),sponsorPortal:eT().optional()}).nullable(),marketplaceApprovalStatus:aH,sponsorPortalApprovalStatus:aH,approvalReviewedBy:ek().uuid().nullable(),approvalReviewedAt:ek().datetime().nullable(),approvalNotes:ek().nullable(),requireNda:eT(),requireLoi:eT(),allowDirectInvestment:eT(),fundingMode:eF(["commitment_based","direct_payment","hybrid"]),loiThreshold:ek().nullable(),autoCapitalCallOnThreshold:eT(),minCommitmentAmount:ek().nullable(),maxCommitmentAmount:ek().nullable(),hardCapAmount:ek().nullable(),totalCommittedAmount:ek(),commitmentCount:eS(),commitmentPeriodDays:eS().nullable(),commitmentDeadline:ek().datetime().nullable(),defaultPeriodDays:eS(),capitalCallSchedule:eR(eP({callNumber:eS(),percentage:eS(),targetDate:ek(),purpose:ek().optional()})).nullable(),loiThresholdMet:eT(),loiThresholdMetAt:ek().datetime().nullable(),investmentObjective:eF(["income","growth","growth_and_income"]).nullable(),dealStructure:ek().nullable(),distributionFrequency:eF(["monthly","quarterly","semi_annually","annually","at_exit"]).nullable(),managementFeeRate:ek().nullable(),preferredReturnRate:ek().nullable(),carriedInterestRate:ek().nullable(),holdPeriodMonths:eS().int().nullable(),targetIncomeStartDate:ek().datetime().nullable(),targetExitDate:ek().datetime().nullable(),previouslyRaisedAmount:ek().nullable(),headerImageUrl:ek().nullable(),headerVideoUrl:ek().nullable(),pitchDeckUrl:ek().nullable(),galleryImages:eR(ek()),capitalStackConfig:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),offeringType:aA,assetType:aI,targetAmount:ek(),minimumInvestment:ek(),maximumInvestment:ek().optional(),targetIrr:ek().optional(),targetMultiple:ek().optional(),currency:ek().default("USD"),startDate:ek().datetime().optional(),endDate:ek().datetime().optional(),metadata:eN(eE()).default({}),investmentAgreementTemplateId:ek().uuid().optional(),ndaTemplateId:ek().uuid().optional(),loiTemplateId:ek().uuid().optional(),isPrivate:eT().default(!1),allowedInvestorCountries:eR(ek()).optional(),jurisdiction:ek().optional(),regulationType:aG.default("none"),availableOn:eP({marketplace:eT().optional(),sponsorPortal:eT().optional()}).default({marketplace:!0,sponsorPortal:!0}),requireNda:eT().default(!1),requireLoi:eT().default(!1),allowDirectInvestment:eT().default(!0),fundingMode:eF(["commitment_based","direct_payment","hybrid"]).default("direct_payment"),loiThreshold:ek().optional(),autoCapitalCallOnThreshold:eT().default(!1),minCommitmentAmount:ek().optional(),maxCommitmentAmount:ek().optional(),hardCapAmount:ek().optional(),commitmentPeriodDays:eS().int().min(1).optional(),commitmentDeadline:ek().datetime().optional(),defaultPeriodDays:eS().int().min(1).default(30),capitalCallSchedule:eR(eP({callNumber:eS().int().min(1),percentage:eS().min(0).max(100),targetDate:ek(),purpose:ek().optional()})).optional(),investmentObjective:eF(["income","growth","growth_and_income"]).optional(),dealStructure:ek().optional(),distributionFrequency:eF(["monthly","quarterly","semi_annually","annually","at_exit"]).optional(),managementFeeRate:ek().optional(),preferredReturnRate:ek().optional(),carriedInterestRate:ek().optional(),holdPeriodMonths:eS().int().min(1).optional(),targetIncomeStartDate:ek().datetime().optional(),targetExitDate:ek().datetime().optional(),previouslyRaisedAmount:ek().optional(),headerImageUrl:ek().url().optional(),headerVideoUrl:ek().url().optional(),pitchDeckUrl:ek().url().optional(),galleryImages:eR(ek()).optional(),capitalStackConfig:eN(eE()).optional()}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:aT.optional(),offeringType:aA.optional(),assetType:aI.optional(),tenantId:ek().uuid().optional(),search:ek().optional(),isPrivate:eB.boolean().optional(),regulationType:aG.optional(),jurisdiction:ek().optional(),investorCountry:ek().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),accountId:ek().uuid().nullable(),firstName:ek(),lastName:ek(),email:ek(),phone:ek().nullable(),investorType:aC,accreditationStatus:aE,kycStatus:aR,amlStatus:aP,status:aO,address:eN(eE()).nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),email:ek().email(),phone:ek().optional(),investorType:aC,accountId:ek().uuid().optional(),address:eN(eE()).optional(),countryOfResidence:ek().optional(),countryOfCitizenship:ek().optional(),metadata:eN(eE()).default({})}).partial().extend({accreditationStatus:aE.optional(),kycStatus:aR.optional(),amlStatus:aP.optional(),status:aO.optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:aO.optional(),investorType:aC.optional(),accreditationStatus:aE.optional(),search:ek().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),offeringId:ek().uuid(),amount:ek(),status:aN,agreementStatus:aL,investedAt:ek().datetime().nullable(),canceledAt:ek().datetime().nullable(),metadata:eN(eE()),channelType:aW.nullable(),channelName:ek().nullable(),subscriptionId:ek().nullable(),loiAgreementStatus:aV.nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),offeringId:ek().uuid(),amount:ek(),fundingSourceId:ek().uuid().optional(),paymentMethod:aM.default("ach"),advisorMandateId:ek().uuid().optional(),investorCountry:ek().optional(),entityId:ek().uuid().optional(),investmentType:aK.default("direct"),channelType:aW.optional(),channelName:ek().optional(),metadata:eN(eE()).default({})}).omit({investorId:!0}),eP({status:aN.optional(),agreementStatus:aL.optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:aN.optional(),investorId:ek().uuid().optional(),offeringId:ek().uuid().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investmentId:ek().uuid(),investorId:ek().uuid(),offeringId:ek().uuid(),commitmentAmount:ek(),paidAmount:ek(),remainingAmou
1nt:ek(),status:aj,commitmentDate:ek().datetime(),expirationDate:ek().datetime().nullable(),notes:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investmentId:ek().uuid(),investorId:ek().uuid(),offeringId:ek().uuid(),commitmentAmount:ek(),expirationDate:ek().datetime().optional(),notes:ek().optional(),metadata:eN(eE()).default({})}),eP({status:aj.optional(),paidAmount:ek().optional(),remainingAmount:ek().optional(),expirationDate:ek().datetime().optional().nullable(),notes:ek().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:aj.optional(),investorId:ek().uuid().optional(),offeringId:ek().uuid().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),callNumber:eS().int(),callAmount:ek(),callPercentage:ek().nullable(),collectedAmount:ek(),status:aD,dueDate:ek().datetime(),issuedAt:ek().datetime().nullable(),closedAt:ek().datetime().nullable(),purpose:ek().nullable(),notes:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),callAmount:ek(),callPercentage:ek().optional(),dueDate:ek().datetime(),purpose:ek().optional(),notes:ek().optional(),metadata:eN(eE()).default({})}),eP({status:aD.optional(),callAmount:ek().optional(),callPercentage:ek().optional(),dueDate:ek().datetime().optional(),collectedAmount:ek().optional(),purpose:ek().optional(),notes:ek().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:aD.optional(),offeringId:ek().uuid().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),capitalCallId:ek().uuid(),investorId:ek().uuid(),commitmentId:ek().uuid(),amountDue:ek(),amountPaid:ek(),remainingAmount:ek(),status:aF,paidAt:ek().datetime().nullable(),transactionId:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({capitalCallId:ek().uuid(),investorId:ek().uuid(),commitmentId:ek().uuid(),amount:ek(),transactionId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:aF.optional(),capitalCallId:ek().uuid().optional(),investorId:ek().uuid().optional(),commitmentId:ek().uuid().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),capitalCallEnabled:eT(),upfrontPaymentPercentage:ek().nullable(),autoTransitionEnabled:eT(),requireAgreementBeforePayment:eT(),requireComplianceBeforePayment:eT(),defaultCallPercentage:ek().nullable(),maxCapitalCalls:eS().int().nullable(),pipelineStages:eR(eN(eE())).nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),capitalCallEnabled:eT().default(!1),upfrontPaymentPercentage:ek().default("100"),autoTransitionEnabled:eT().default(!0),requireAgreementBeforePayment:eT().default(!0),requireComplianceBeforePayment:eT().default(!0),defaultCallPercentage:ek().optional(),maxCapitalCalls:eS().int().optional(),pipelineStages:eR(eN(eE())).optional(),metadata:eN(eE()).default({})}),eP({capitalCallEnabled:eT().optional(),upfrontPaymentPercentage:ek().optional(),autoTransitionEnabled:eT().optional(),requireAgreementBeforePayment:eT().optional(),requireComplianceBeforePayment:eT().optional(),defaultCallPercentage:ek().optional().nullable(),maxCapitalCalls:eS().int().optional().nullable(),pipelineStages:eR(eN(eE())).optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),entityType:aB,ein:ek().nullable(),stateOfFormation:ek().nullable(),formationDate:ek().nullable(),status:az,address:eN(eE()).nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),entityType:aB,ein:ek().optional(),stateOfFormation:ek().optional(),formationDate:ek().optional(),status:az.default("active"),address:eN(eE()).optional(),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),entityType:aB.optional(),status:az.optional(),search:ek().optional()});var aY=eF(["ssn","passport","drivers_license","national_id"]),aX=eF(["active","inactive","pending_verification"]),aJ=eP({street:ek().optional(),city:ek().optional(),state:ek().optional(),zip:ek().optional(),country:ek().optional()});eP({firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),title:ek().max(100).optional(),ownershipPercentage:eB.number().min(0).max(100),isControlPerson:eT().default(!1),dateOfBirth:ek().optional(),ssn:ek().optional(),address:aJ.optional(),identificationType:aY.optional(),identificationNumber:ek().optional(),identificationJurisdiction:ek().optional(),status:aX.default("active"),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:aX.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),type:aU,bankName:ek().nullable(),accountType:aq.nullable(),lastFour:ek().nullable(),routingNumber:ek().nullable(),status:a$,isDefault:eT(),plaidItemId:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()});var aQ=eP({investorId:ek().uuid(),type:aU,bankName:ek().optional(),accountType:aq.optional(),lastFour:ek().max(4).optional(),routingNumber:ek().optional(),isDefault:eT().default(!1),plaidItemId:ek().optional(),metadata:eN(eE()).default({})});aQ.omit({investorId:!0}),aQ.partial().omit({investorId:!0}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),investorId:ek().uuid().optional(),status:a$.optional(),type:aU.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),name:ek(),assetSubtype:aw,status:ak,location:eN(eE()).nullable(),specifications:eN(eE()).nullable(),acquisitionDate:ek().nullable(),acquisitionPrice:ek().nullable(),currentValuation:ek().nullable(),valuationDate:ek().datetime().nullable(),images:eR(eN(eE())).nullable(),documents:eR(eN(eE())).nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),assetSubtype:aw,status:ak.default("active"),location:eN(eE()).optional(),specifications:eN(eE()).optional(),acquisitionDate:ek().optional(),acquisitionPrice:ek().optional(),currentValuation:ek().optional(),valuationDate:ek().datetime().optional(),images:eR(eN(eE())).optional(),documents:eR(eN(eE())).optional(),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),assetSubtype:aw.optional(),status:ak.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),assetDetailId:ek().uuid(),valuationType:aS,amount:ek(),currency:ek(),effectiveDate:ek(),provider:ek().nullable(),notes:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({valuationType:aS,amount:ek().min(1),currency:ek().default("USD"),effectiveDate:ek(),provider:ek().optional(),notes:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20)});var a0=eF(["straddle","stripe","circle_usdc"]),a1=eF(["straddle","plaid","onfido","jumio"]),a2=eF(["charge","payout","reversal","refund","fee","distribution"]),a5=eF(["pending","processing","completed","failed","canceled","reversed"]),a3=eF(["asset","liability","equity","revenue","expense","escrow"]),a4=eF(["offering","investor","marketplace","platform"]),a9=eF(["debit","credit"]),a6=eF(["web","tel","ppd","ccd"]),a8=eF(["pending","authorized","revoked","expired"]);eF(["authorization_created","authorization_revoked","charge_initiated","charge_completed","charge_failed","return_received","noc_received"]);var a7=eF(["pending","in_progress","verified","failed","expired"]),ne=eF(["identity","document","address","enhanced"]),nt=eF(["pending","clear","flagged","confirmed_match","false_positive"]),ni=eF(["ofac","pep","sanctions","adverse_media","comprehensive"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),provider:a0,isActive:eT(),isDefault:eT(),supportedCurrencies:eR(ek()),supportedMethods:eR(ek()),configuration:eN(eE()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({provider:a0,isDefault:eT().default(!1),supportedCurrencies:eR(ek()).default([]),supportedMethods:eR(ek()).default([]),configuration:eN(eE()).default({}),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investmentId:ek().uuid().nullable(),investorId:ek().uuid().nullable(),offeringId:ek().uuid().nullable(),fundingSourceId:ek().uuid().nullable(),paymentProviderId:ek().uuid().nullable(),type:a2,status:a5,amount:ek(),currency:ek(),providerTransactionId:ek().nullable(),providerStatus:ek().nullable(),providerResponse:eN(eE()).nullable(),description:ek().nullable(),failureReason:ek().nullable(),processedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investmentId:ek().uuid().optional(),investorId:ek().uuid(),offeringId:ek().uuid().optional(),fundingSourceId:ek().uuid().optional(),paymentProviderId:ek().uuid().optional(),type:a2,amount:ek(),currency:ek().default("USD"),description:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),type:a2.optional(),status:a5.optional(),investorId:ek().uuid().optional(),offeringId:ek().uuid().optional(),investmentId:ek().uuid().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),accountType:a3,referenceType:a4.nullable(),referenceId:ek().uuid().nullable(),balance:ek(),currency:ek(),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),accountType:a3,referenceType:a4.optional(),referenceId:ek().uuid().optional(),currency:ek().default("USD"),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),ledgerAccountId:ek().uuid(),transactionId:ek().uuid().nullable(),entryType:a9,amount:ek(),balanceAfter:ek(),currency:ek(),description:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({ledgerAccountId:ek().uuid(),transactionId:ek().uuid().optional(),entryType:a9,amount:ek(),description:ek().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),fundingSourceId:ek().uuid(),authorizationType:a6,status:a8,ipAddress:ek().nullable(),userAgent:ek().nullable(),consentText:ek(),consentTimestamp:ek().datetime(),revokedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),fundingSourceId:ek().uuid(),authorizationType:a6,ipAddress:ek().optional(),userAgent:ek().optional(),consentText:ek().min(1),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),provider:a1,providerVerificationId:ek().nullable(),status:a7,verificationType:ne,verificationData:eN(eE()).nullable(),failureReasons:eR(ek()).nullable(),verifiedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),provider:a1.optional(),verificationType:ne,metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),provider:a1,providerScreeningId:ek().nullable(),status:nt,screeningType:ni,matchDetails:eN(eE()).nullable(),reviewedBy:ek().uuid().nullable(),reviewedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),provider:a1.optional(),screeningType:ni,metadata:eN(eE()).default({})});var na=eF(["boldsign","docusign","manual"]),nn=eF(["marketplace_agreement","sponsor_agreement","investor_agreement","nda","loi","operating_agreement","ppm_agreement","term_sheet","custom"]),nr=eF(["draft","active","deprecated"]),no=eF(["draft","sent","signed","countersigned","rejected","expired","voided"]),nl=eF(["investor","sponsor","witness"]);eF(["pending","signed","declined"]);var ns=eF(["marketplace","sponsor_portal"]),nd=eF(["pending","sent","signed","countersigned","rejected","expired"]),nu=eF(["investor_agreement","nda","loi"]),nc=eF(["divi
1dend","return_of_capital","interest","custom"]),np=eF(["draft","pending","processing","completed","failed","cancelled"]);eF(["pending","processing","completed","failed"]),eF(["text","date","number","signature","initials","checkbox"]),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),templateType:nn,status:nr,version:eS().int(),eSignProvider:na,providerTemplateId:ek().nullable(),documentUrl:ek().nullable(),mergeFieldsSchema:eN(eE()).nullable(),autoApply:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1),description:ek().optional(),templateType:nn,eSignProvider:na.default("boldsign"),providerTemplateId:ek().optional(),documentUrl:ek().optional(),mergeFieldsSchema:eN(eE()).optional(),autoApply:eT().default(!1),metadata:eN(eE()).default({})}).partial(),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investmentId:ek().uuid(),offeringId:ek().uuid(),templateId:ek().uuid().nullable(),name:ek(),status:no,eSignProvi
1der:na,providerEnvelopeId:ek().nullable(),documentUrl:ek().nullable(),signingUrl:ek().nullable(),sentAt:ek().datetime().nullable(),signedAt:ek().datetime().nullable(),countersignedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investmentId:ek().uuid(),offeringId:ek().uuid(),templateId:ek().uuid().optional(),name:ek().min(1),eSignProvider:na.default("boldsign"),signatories:eR(eP({email:ek().email(),name:ek().min(1),role:nl,signingOrder:eS().int().positive().default(1)})).min(1),expiresAt:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),investmentId:ek().uuid().optional(),offeringId:ek().uuid().optional(),status:no.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),sponsorTenantId:ek().uuid(),templateId:ek().uuid().nullable(),agreementId:ek().uuid().nullable(),status:nd,sentAt:ek().datetime().nullable(),signedAt:ek().datetime().nullable(),countersignedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({sponsorTenantId:ek().uuid(),templateId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),channel:ns,status:eF(["pending_review","approved","rejected","published"]),assignedFromId:ek().uuid().nullable(),assignedToId:ek().uuid().nullable(),note:ek().nullable(),isPublished:eT(),createdAt:ek().datetime()}),eP({channel:ns}),eP({channel:ns,notes:ek().optional()}),eP({channel:ns,reason:ek().min(1)}),eP({id:ek().uuid(),offeringId:ek().uuid(),templateId:ek().uuid(),templateType:nu,investorType:aC.nullable(),createdAt:ek().datetime()}),eP({templateId:ek().uuid(),templateType:nu,investorType:aC.optional()}),eP({investmentId:ek().uuid()}),eP({investmentId:ek().uuid(),signedAt:ek().datetime().optional()}),eP({investmentId:ek().uuid(),reason:ek().optional()}),eP({offeringId:ek().uuid(),totalCommittedAmount:ek(),commitmentCount:eS(),loiThreshold:ek().nullable(),loiThresholdMet:eT(),loiThresholdMetAt:ek().datetime().nullable(),hardCapAmount:ek().nullable(),hardCapReached:eT(),activeCommitments:eS(),canceledCommitments:eS(),defaultedCommitments:eS(),totalPaidAmount:ek(),totalRemainingAmount:ek()}),eP({offeringId:ek().uuid(),autoIssue:eT().default(!1)}),eP({capitalCallPaymentId:ek().uuid(),reason:ek()});var nm=eF(["FIXED_PRICE","NEGOTIABLE","AUCTION","DUTCH_AUCTION"]),nf=eF(["DRAFT","ACTIVE","PENDING_MATCH","MATCHED","EXPIRED","CANCELLED","COMPLETED","SUSPENDED"]);eF(["PENDING","ACCEPTED","REJECTED","COUNTERED","EXPIRED","WITHDRAWN"]),eF(["MATCHED","PENDING_SIGNATURES","PENDING_SPONSOR","SPONSOR_APPROVED","SPONSOR_REJECTED","FUNDS_CONFIRMED","PENDING_TRANSFER","TRANSFER_COMPLETE","COMPLETED","CANCELLED","DISPUTED","EXPIRED"]);var nh=eF(["ISSUER_FACILITATED","TRANSFER_AGENT","PENDING_REVIEW"]),ng=eF(["DIRECT_WIRE","VIA_SPONSOR","PLATFORM_ESCROW"]);eP({investmentId:ek().uuid(),listingType:nm.optional().default("FIXED_PRICE"),unitsForSale:eS().positive(),askingPrice:eS().positive(),minimumBid:eS().positive().optional(),reservePrice:eS().positive().optional(),auctionEndTime:ek().datetime().optional(),dutchAuctionStartPrice:eS().positive().optional(),dutchAuctionFloorPrice:eS().positive().optional(),dutchAuctionDecrement:eS().positive().optional(),dutchAuctionInterval:eS().positive().optional(),expirationDays:eS().int().min(7).max(90).optional().default(30),sellerNotes:ek().optional(),reasonForSelling:ek().optional(),publishImmediately:eT().optional().default(!1)}),eP({askingPrice:eS().positive().optional(),minimumBid:eS().positive().optional(),sellerNotes:ek().optional(),extendDays:eS().int().min(1).max(90).optional()}),eP({listingId:ek().uuid(),bidAmount:eS().positive(),bidderNotes:ek().optional(),expirationHours:eS().int().min(1).max(168).optional().default(72)}),eP({action:eF(["accept","reject","counter"]),counterOfferAmount:eS().positive().optional(),sellerNotes:ek().optional()}),eP({action:eF(["approve","reject"]),fundingMethod:ng.optional(),fundingInstructions:ek().optional(),rejectionReason:ek().optional(),notes:ek().optional()}),eP({confirmed:eT(),paymentReference:ek().optional(),notes:ek().optional()}),eP({capTableUpdated:eT(),ownershipDocumentUrl:ek().optional(),notes:ek().optional()}),eP({search:ek().optional(),listingType:nm.optional(),status:nf.optional(),offeringId:ek().uuid().optional(),sponsorId:ek().uuid().optional(),minPrice:eS().optional(),maxPrice:eS().optional(),transferRequirement:nh.optional(),page:eS().int().min(1).optional().default(1),limit:eS().int().min(1).max(100).optional().default(20),sortBy:ek().optional().default("
1createdAt"),sortOrder:eF(["asc","desc"]).optional().default("desc")}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),name:ek(),distributionType:nc,status:np,totalAmount:ek(),currency:ek(),recipientCount:eS().int(),processedCount:eS().int(),failedCount:eS().int(),scheduledAt:ek().datetime().nullable(),processedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),name:ek().min(1),distributionType:nc,currency:ek().default("USD"),scheduledAt:ek().datetime().optional(),items:eR(eP({investorId:ek().uuid(),investmentId:ek().uuid(),amount:ek()})).min(1),metadata:eN(eE()).default({})}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),offeringId:ek().uuid().optional(),status:np.optional()});var nv=eF(["income","net_worth","professional","entity","self_certified"]),ny=eF(["pending","under_review","approved","rejected","expired"]),nb=eF(["internal","investready","verify_investor"]),n_=eF(["personal_info","accreditation","kyc","aml","funding_source","agreement","review","custom"]),nx=eF(["not_started","in_progress","completed","skipped"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),accreditationType:nv,status:ny,provider:nb.nullable(),providerVerificationId:ek().nullable(),verificationData:eN(eE()).nullable(),approvedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),rejectionReason:ek().nullable(),reviewedBy:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),accreditationType:nv,provider:nb.optional(),verificationData:eN(eE()).optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),investorId:ek().uuid().optional(),status:ny.optional(),accreditationType:nv.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),investorType:aC.nullable(),isDefault:eT(),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1),description:ek().optional(),investorType:aC.optional(),isDefault:eT().default(!1),isActive:eT().default(!0),steps:eR(eP({name:ek().min(1),description:ek().optional(),stepType:n_,sortOrder:eS().int().min(0).default(0),isRequired:eT().default(!0),config:eN(eE()).default({})})).optional(),metadata:eN(eE()).default({})}),eP({name:ek().min(1).optional(),description:ek().optional(),investorType:aC.optional(),isDefault:eT().optional(),isActive:eT().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),investorType:aC.optional(),isActive:eB.boolean().optional()}),eP({id:ek().uuid(),templateId:ek().uuid(),name:ek(),description:ek().nullable(),stepType:n_,sortOrder:eS().int(),isRequired:eT(),config:eN(eE()),metadata:eN(eE()),createdAt:ek().datetime()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),templateId:ek().uuid(),stepId:ek().uuid(),status:nx,completedAt:ek().datetime().nullable(),data:eN(eE()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({status:nx,data:eN(eE()).optional(),metadata:eN(eE()).optional()}),eP({marketplaceTenantId:ek().uuid(),firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),email:ek().email(),phone:ek().optional(),referralAccountId:ek().uuid().optional(),preferences:eP({propertyType:ek().optional(),preferredLocation:ek().optional(),budgetMin:ek().optional(),budgetMax:ek().optional()}).default({}),investmentGoal:ek().optional(),investmentExperience:ek().optional()}),eP({email:ek().email(),firstName:ek().min(1),lastName:ek().min(1),roleType:eF(["broker_dealer","ria"]),channelId:ek().uuid().optional(),offeringId:ek().uuid().optional(),message:ek().optional()});var nA=eF(["direct","broker_dealer","ria","crowdfunding_portal","custom"]),nI=eF(["active","inactive","pending_approval"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),name:ek(),channelType:nA,status:nI,commissionRate:ek().nullable(),contactEmail:ek().nullable(),contactName:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),name:ek().min(1),channelType:nA,commissionRate:ek().optional(),contactEmail:ek().email().optional(),contactName:ek().optional(),metadata:eN(eE()).default({})}).partial().omit({offeringId:!0}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),offeringId:ek().uuid().optional(),channelType:nA.optional(),status:nI.optional()});var nw=eF(["ria","broker_dealer","dual_registered","family_office","bank","insurance","other"]),nk=eF(["pending","active","suspended","terminated"]),nS=eF(["pending","active","suspended","terminated"]),nT=eF(["sec","state","finra","fca","bafin","amf","mas","sfc","fsa","asic","sebi","osc","fma","cma","sc_my","ojk","
1sec_ph","cnmv","consob","cssf","dnb","sfsa","dfsa","cma_ke","sec_ng","fsca"]);eF(["active","expired","revoked"]);var nC=eF(["discretionary","non_discretionary","advisory_only"]),nE=eF(["full","limited","none"]),nR=eF(["pending_signature","active","suspended","terminated","expired"]),nP=eF(["conservative","moderate","aggressive"]),nO=eF(["short","medium","long"]),nM=eF(["high","medium","low"]),nN=eF(["buy","sell"]),nj=eF(["market","limit","ioc","fok"]),nD=eF(["pending_compliance","pending_approval","approved","open","partially_filled","filled","canceled","rejected","expired"]);eF(["suitability","concentration","trading_limit","accreditation","jurisdiction","aml"]),eF(["passed","failed","warning","override"]),eF(["pass","fail","warning","override"]),eF(["pending_settlement","settled","failed","reversed"]);var nF=eF(["aum_flat","aum_tiered","per_trade","performance","trail","hybrid"]),nL=eF(["aum","commission","performance","trail"]),nB=eF(["pending","collected","waived","reversed"]),nz=eF(["monthly","quarterly","annually"]);eF(["open","halted","closed"]),eF(["fiduciary","suitability","best_interest"]),eF(["advisor","investor","compliance_officer","system"]);var nU=eF(["advisor_firm","advisor_profile","advisory_mandate","trade_order","order_execution","fee_entry","suitability_profile","order_book"]);eP({name:ek().min(1).max(255),firmType:nw,crdNumber:ek().optional(),secNumber:ek().optional(),primaryContact:eN(eE()).optional(),address:eN(eE()).optional(),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),status:nk.optional(),firmType:nw.optional(),search:ek().optional()}),eP({advisorFirmId:ek().uuid(),accountId:ek().uuid().optional(),firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),email:ek().email(),phone:ek().optional(),title:ek().optional(),crdIndividualNumber:ek().optional(),supervisorId:ek().uuid().optional(),maxClients:eS().int().positive().optional(),metadata:eN(eE()).default({})}).partial().omit({advisorFirmId:!0}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),advisorFirmId:ek().uuid().optional(),status:nS.optional(),search:ek().optional()}),eP({advisorFirmId:ek().uuid(),jurisdiction:ek().min(1),registrationType:nT,registrationNumber:ek().optional(),expiresAt:ek().datetime().optional(),metadata:eN(eE()).default({})}).partial().omit({advisorFirmId:!0}),eP({advisorProfileId:ek().uuid(),investorId:ek().uuid(),feeScheduleId:ek().uuid().optional(),mandateType:nC,authorityType:nE,scope:eN(eE()).default({}),investmentLimits:eN(eE()).default({}),endDate:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({feeScheduleId:ek().uuid().optional(),scope:eN(eE()).optional(),investmentLimits:eN(eE()).optional(),endDate:ek().datetime().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),advisorProfileId:ek().uuid().optional(),investorId:ek().uuid().optional(),status:nR.optional(),mandateType:nC.optional()}),eP({investorId:ek().uuid(),mandateId:ek().uuid(),riskTolerance:nP,investmentHorizon:nO,liquidityNeeds:nM,annualIncome:ek().optional(),netWorth:ek().optional(),liquidNetWorth:ek().optional(),concentrationLimitPct:ek().optional(),illiquidAllocationMaxPct:ek().optional(),questionnaire:eN(eE()).default({}),metadata:eN(eE()).default({})}),eP({mandateId:ek().uuid(),offeringId:ek().uuid(),orderType:nN,orderSubtype:nj.default("market"),amount:ek(),limitPrice:ek().optional(),expiresAt:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({amount:ek().optional(),limitPrice:ek().optional(),expiresAt:ek().datetime().optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),mandateId:ek().uuid().optional(),advisorProfileId:ek().uuid().optional(),investorId:ek().uuid().optional(),offeringId:ek().uuid().optional(),status:nD.optional(),orderType:nN.optional()}),eP({advisorFirmId:ek().uuid(),name:ek().min(1).max(255),feeModel:nF,rateOrSchedule:eN(eE()),minFee:ek().optional(),maxFee:ek().optional(),platformSharePct:ek().default("0"),billingFrequency:nz.default("quarterly"),metadata:eN(eE()).default({})}).partial().omit({advisorFirmId:!0}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),advisorFirmId:ek().uuid().optional(),feeModel:nF.optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),advisorFirmId:ek().uuid().optional(),advisorProfileId:ek().uuid().optional(),mandateId:ek().uuid().optional(),feeType:nL.optional(),status:nB.optional()}),eP({reason:ek().min(1)}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),actorId:ek().uuid().optional(),resourceType:nU.optional(),resourceId:ek().uuid().optional(),action:ek().optional()}),eF(["asset","liability","equity","revenue","expense"]);var nq=eF(["monthly","quarterly","annually"]);eF(["open","closing","closed"]);var n$=eF(["draft","posted","reversed"]),nH=eF(["daily","weekly","monthly","quarterly"]),nV=eF(["w9","w8ben","w8ben_e"]),nW=eF(["pending","received","verified","expired","rejected"]),nG=eF(["ssn","ein","itin","foreign_tin"]),nK=eF(["federal_income","state_income","backup","fatca","foreign"]);eF(["primary","secondary","transfer","conversion"]),eF(["short_term","long_term"]);var nZ=eF(["return_of_capital","preferred_return","gp_catch_up","carried_interest","residual_split"]);eF(["pe_standard","re_promote","vc_exit","startup_liquidation","co_equity_buyout","pro_rata"]);var nY=eF(["pre_seed","seed","series_a","series_b","series_c","series_d_plus","growth","pre_ipo"]),nX=eF(["active","marked_up","marked_down","exited","written_off"]),nJ=eF(["ipo","acquisition","secondary_sale","buyback","write_off"]),nQ=eF(["initial_investment","follow_on","valuation_mark","partial_exit","full_exit","write_down"]),n0=eF(["quarterly","annual","tax_year","custom"]),n1=eF(["quickbooks","xero","sage_intacct","netsuite","merge_dev","rutter","zoho"]);eF(["active","expired","revoked"]),eF(["none","w9_required","w9_received","w8_required","w8_received"]);var n2=eF(["pending","accepted","declined","revoked","expired"]),n5=eF(["basic","full","investment"]),n3=eF(["client","employee","family","friend","professional","other"]);eF(["active","suspended","revoked"]),eF(["clear","flagged","pending"]),eF(["invitation_sent","
1invitation_accepted","invitation_declined","invitation_revoked","access_granted","access_tier_upgraded","access_revoked","nda_sent","nda_signed","offering_viewed","document_viewed","document_downloaded","investment_attempted","investment_blocked","compliance_check_failed"]);var n4=eF(["active","archived","deleted"]),n9=eF(["co_sponsor","investment_club","spv_pool"]),n6=eF(["forming","open","fundraising","closed","operating","winding_down","dissolved"]),n8=eF(["lead","co_lead","participant","anchor"]);eF(["invited","accepted","declined","active","removed"]);var n7=eF(["lead","member","manager","observer"]),re=eF(["pending","active","suspended","exited"]),rt=eP({ledgerAccountId:ek().uuid(),debitAmount:ek().default("0"),creditAmount:ek().default("0"),description:ek().optional()});eP({offeringId:ek().uuid().optional(),entryDate:ek(),description:ek().min(1),fiscalPeriodId:ek().uuid().optional(),transactionId:ek().uuid().optional(),lines:eR(rt).min(2),metadata:eN(eE()).default({})}),eP({offeringId:ek().uuid(),periodName:ek().min(1),periodType:nq,startDate:ek(),endDate:ek(),metadata:eN(eE()).default({})}),eP({fiscalPeriodId:ek().uuid()}),eP({offeringId:ek().uuid(),investorId:ek().uuid(),investmentId:ek().uuid().optional(),fiscalPeriodId:ek().uuid(),metadata:eN(eE()).default({})}),eP({offeringId:ek().uuid(),fiscalPeriodId:ek().uuid(),investorId:ek().uuid().optional()}),eP({offeringId:ek().uuid(),calculationDate:ek(),calculationType:nH,metadata:eN(eE()).default({})}),eP({investorId:ek().uuid(),formType:nV,tin:ek().optional(),tinType:nG.optional(),certificationDate:ek().optional(),treatyCountry:ek().optional(),treatyRate:ek().optional(),documentUrl:ek().optional(),documentHash:ek().optional(),metadata:eN(eE()).default({})}),eP({taxFormId:ek().uuid(),verified:eT(),rejectionReason:ek().optional()}),eP({distributionId:ek().uuid(),taxYear:eS().int()}),eP({distributionItemId:ek().uuid()}),eP({offeringId:ek().uuid(),tiers:eR(eP({name:ek().min(1),type:nZ,rate:eS(),hurdleRate:eS().optional(),catchUpRate:eS().optional(),participantShares:eN(eS()).optional()})).min(1),preferredReturnRate:ek().optional(),gpCatchUpRate:ek().optional(),carriedInterestRate:ek().optional(),metadata:eN(eE()).default({})}),eP({offeringId:ek().uuid(),investorId:ek().uuid().optional(),statementType:n0,periodStart:ek(),periodEnd:ek(),metadata:eN(eE()).default({})}),eP({tenantId:ek().uuid(),provider:n1,startDate:ek().optional(),endDate:ek().optional()}),eP({offeringId:ek().uuid(),taxYear:eS().int(),documentType:eF(["1099_div","1099_int","1099_b","k1"]),investorId:ek().uuid().optional()}),eP({offeringId:ek().uuid(),totalAmount:ek(),simulate:eT().default(!1),portfolioCompanyId:ek().uuid().optional()}),eP({offeringId:ek().uuid(),asOfDate:ek().datetime().optional()}),eP({offeringId:ek().uuid(),investorId:ek().uuid(),asOfDate:ek().datetime().optional()}),eP({offeringId:ek().uuid(),snapshotType:eF(["periodic","on_event","manual"]).default("manual")}),eP({offeringId:ek().uuid(),asOfDate:ek(),totalCommitted:ek(),totalCalled:ek(),totalUncalled:ek(),totalDistributed:ek(),nav:ek(),dpi:eS(),tvpi:eS(),rvpi:eS(),moic:eS(),irr:eS().nullable(),netIrr:eS().nullable(),jCurve:eR(eP({date:ek(),cumulativeNetCF:eS()}))}),eP({offeringId:ek().uuid(),companyName:ek().min(1),sector:ek().optional(),stage:nY,initialInvestmentDate:ek().datetime().optional(),totalInvested:ek(),ownershipPct:ek().optional(),sharesHeld:ek().optional(),shareClass:ek().optional(),costBasisPerShare:ek().optional(),websiteUrl:ek().url().optional(),logoUrl:ek().url().optional(),location:ek().optional(),founderNames:eR(ek()).optional(),metadata:eN(eE()).default({})}).partial().omit({offeringId:!0}),eP({exitType:nJ,exitDate:ek().datetime(),exitValuation:ek(),exitProceeds:ek(),notes:ek().optional()}),eP({roundType:nQ,roundName:ek().optional(),date:ek().datetime(),amountInvested:ek().optional(),sharesAcquired:ek().optional(),pricePerShare:ek().optional(),preMoneyValuation:ek().optional(),postMoneyValuation:ek().optional(),valuationAmount:ek().optional(),valuationMethod:ek().optional(),proceedsReceived:ek().optional(),sharesDisposed:ek().optional(),notes:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),offeringId:ek().uuid().optional(),status:nX.optional(),stage:nY.optional(),sector:ek().optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),offeringId:ek().uuid().optional(),fiscalPeriodId:ek().uuid().optional(),status:n$.optional(),startDate:ek().optional(),endDate:ek().optional()}),eP({provider:n1,code:ek().min(1),state:ek().min(1),realmId:ek().optional(),redirectUri:ek().url()}),eP({externalId:ek(),name:ek(),code:ek().optional(),category:eF(["asset","liability","equity","revenue","expense","other"])});var ri=eP({internalAccountId:ek().uuid(),externalAccountId:ek(),externalAccountName:ek().optional()});eP({provider:n1,mappings:eR(ri).min(1)}),eP({synced:eS().int().nonnegative(),failed:eS().int().nonnegative(),errors:eR(ek())}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),investorId:ek().uuid().optional(),formType:nV.optional(),status:nW.optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),distributionId:ek().uuid().optional(),investorId:ek().uuid().optional(),withholdingType:nK.optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),offeringId:ek().uuid().optional(),investorId:ek().uuid().optional(),statementType:n0.optional()}),eP({offeringId:ek().uuid(),invitedEmail:ek().email(),investorId:ek().uuid().optional(),accessTier:n5.default("basic"),preExistingRelationship:eT().default(!1),relationshipType:n3.optional(),relationshipNotes:ek().optional(),expiresInDays:eS().int().positive().default(30),metadata:eN(eE()).default({})}),eP({offeringId:ek().uuid(),invitations:eR(eP({invitedEmail:ek().email(),investorId:ek().uuid().optional(),preExistingRelationship:eT().default(!1),relationshipType:n3.optional(),relationshipNotes:ek().optional()})).min(1).max(100),accessTier:n5.default("basic"),expiresInDays:eS().int().positive().default(30)}),eP({token:ek().min(1),investorId:ek().uuid()}),eP({reason:ek().optional()}),eP({investorId:ek().uuid(),reason:ek().optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),status:n2.optional()}),eP({offeringId:ek().uuid(),jurisdiction:ek().optional(),regulationType:aG.default("none"),regime:ek().optional(),maxNonAccreditedInvestors:eS().int().default(35),maxInvestorsTotal:eS().int().optional(),nonAccreditedInvestmentLimit:ek().optional(),requireVerifiedAccreditation:eT().default(!1),acceptedAccreditationProviders:eR(ek()).default([]),acceptedInvestorCategories:eR(ek()).default([]),maxRaiseAmount:ek().optional(),requirePreExistingRelationship:eT().default(!1),noGeneralSolicitation:eT().default(!1),requireNdaBeforeDetails:eT().default(!1),coolingOffPeriodDays:eS().int().optional(),requireKycBeforeInvestment:eT().default(!0),requireAmlBeforeInvestment:eT().default(!0),requireSuitabilityCheck:eT().default(!1),requireCrossBorderCheck:eT().default(!1),regulatoryFilingRequired:eT().default(!1),regulatoryFilingReference:ek().optional(),requiredDisclosures:eR(ek()).default([]),jurisdictionConfig:eN(eE()).default({}),metadata:eN(eE()).default({})}).partial().omit({offeringId:!0}),eP({offeringId:ek().uuid(),name:ek().min(1).max(200),parentFolderId:ek().uuid().optional(),sortOrder:eS().int().default(0),requiredAccessTier:n5.default("full"),requiredAccreditation:eT().default(!1),metadata:eN(eE()).default({})}).partial().omit({offeringId:!0}),eP({offeringId:ek().uuid(),folderId:ek().uuid().optional(),name:ek().min(1).max(500),description:ek().optional(),fileName:ek().min(1),fileSize:eS().int().optional(),mimeType:ek().min(1),storageKey:ek().min(1),requiredAccessTier:n5.default("full"),isConfidential:eT().default(!1),metadata:eN(eE()).default({})}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),folderId:ek().uuid().optional(),status:n4.optional()}),eP({offeringId:ek().uuid(),entityId:ek().uuid().optional(),name:ek().min(1).max(500),description:ek().optional(),syndicateType:n9,totalAllocation:ek(),leadSponsorAllocation:ek(),leadSponsorCarryRate:ek().optional(),managementFeeRate:ek().optional(),closingDate:ek().optional(),maturityDate:ek().optional(),minParticipantCount:eS().int().default(2),maxParticipantCount:eS().int().optional(),requireUnanimousConsent:eT().default(!1),metadata:eN(eE()).default({})}).partial().omit({offeringId:!0}),eP({syndicateId:ek().uuid(),participantTenantId:ek().uuid(),role:n8.default("participant"),allocationAmount:ek().optional(),allocationPercentage:ek().optional(),trailCommissionRate:ek().optional(),carryRate:ek().optional()}),eP({allocationAmount:ek().optional(),allocationPercentage:ek().optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),status:n6.optional()}),eP({entityId:ek().uuid(),investorId:ek().uuid(),investmentId:ek().uuid().optional(),role:n7.default("member"),committedAmount:ek().optional(),votingWeight:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),role:n7.optional(),status:re.optional()});var ra=eF(["pending","active","paused","revoked","expired"]);eP({id:ek().uuid(),offeringId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),sponsorOptedIn:eT(),sponsorOptedInAt:ek().datetime().nullable(),marketplaceApproved:eT(),marketplaceApprovedBy:ek().uuid().nullable(),marketplaceApprovedAt:ek().datetime().nullable(),platformApproved:eT(),platformApprovedBy:ek().uuid().nullable(),platformApprovedAt:ek().datetime().nullable(),status:ra,featured:eT(),featuredOrder:eS().int().nullable(),platformTags:eR(ek()),marketplaceName:ek(),marketplaceSubdomain:ek(),marketplaceLogoUrl:ek().nullable(),viewCount:eS().int(),clickCount:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),status:ra.optional(),featured:eB.boolean().optional(),marketplaceTenantId:ek().uuid().optional()}),eP({featured:eT(),featuredOrder:eS().int().optional(),platformTags:eR(ek()).optional()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(50).default(12),vertical:aI.optional(),marketplace:ek().optional(),offeringType:aA.optional(),sort:eF(["newest","popular","target_high","target_low","progress"]).default("newest"),search:ek().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),syndicationEnabled:eT(),autoApproveToPlatform:eT(),requireMarketplaceReview:eT(),allowedOfferingTypes:eR(aA).nullable(),allowedAssetTypes:eR(aI).nullable(),minTargetAmount:ek().nullable(),revenueSharePct:ek().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({syndicationEnabled:eT().optional(),autoApproveToPlatform:eT().optional(),requireMarketplaceReview:eT().optional(),allowedOfferingTypes:eR(aA).nullable().optional(),allowedAssetTypes:eR(aI).nullable().optional(),minTargetAmount:ek().optional(),revenueSharePct:ek().optional()});
1var rn=eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),countryCode:ek().min(2).max(2),stateCode:ek().min(2).max(6),stateName:ek(),blueSkyFilingRequired:eT().default(!0),blueSkyExemptions:eR(ek()).default([]),maxInvestorCount:eS().int().positive().nullable().optional(),additionalDisclosures:eR(ek()).default([]),investorNotificationRequired:eT().default(!1),filingFeeAmount:ek().nullable().optional(),filingAgency:ek().nullable().optional(),filingUrl:ek().url().nullable().optional(),regulatoryNotes:ek().nullable().optional(),isEnabled:eT().default(!0),metadata:eN(eE()).default({})});rn.omit({id:!0}).partial({metadata:!0,blueSkyExemptions:!0,additionalDisclosures:!0}),rn.partial().omit({id:!0,marketplaceTenantId:!0});var rr=eF(["form_d_state_notice","blue_sky_registration","blue_sky_exemption_notice","intrastate_notice","reg_a_qualification","reg_cf_form_c","custom"]),ro=eF(["not_required","pending","filed","approved","rejected","expired"]),rl=eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),countryCode:ek().min(2).max(2),stateCode:ek().min(2).max(6),filingType:rr,filingStatus:ro.default("pending"),filingReference:ek().nullable().optional(),filingDate:ek().datetime().nullable().optional(),expirationDate:ek().datetime().nullable().optional(),filingFeeAmount:ek().nullable().optional(),filingAgency:ek().nullable().optional(),notes:ek().nullable().optional(),metadata:eN(eE()).default({})});rl.omit({id:!0}).partial({metadata:!0,filingStatus:!0}),rl.partial().omit({id:!0,marketplaceTenantId:!0,tenantId:!0,offeringId:!0});var rs={US:{accredited_investor:["GB:high_net_worth","GB:certified_sophisticated","SG:accredited_investor","AE:professional_client","EU:professional_client","IN:qualified_institutional_buyer","AU:wholesale_investor","CA:accredited_investor"],qualified_purchaser:["GB:certified_sophisticated","SG:institutional_investor","EU:professional_client","AE:market_counterparty"]},GB:{high_net_worth:["US:accredited_investor","SG:accredited_investor","EU:qualified_investor","AE:professional_client"],certified_sophisticated:["US:accredited_investor","EU:professional_client","SG:accredited_investor"]},SG:{accredited_investor:["US:accredited_investor","GB:high_net_worth","EU:qualified_investor","AE:professional_client"],institutional_investor:["US:qualified_purchaser","GB:certified_sophisticated","EU:professional_client"]},IN:{qualified_institutional_buyer:["US:accredited_investor","GB:high_net_worth","SG:accredited_investor","EU:qualified_investor"],sebi_accredited:["US:accredited_investor","GB:certified_sophisticated"]},EU:{professional_client:["US:accredited_investor","GB:high_net_worth","SG:accredited_investor","AE:professional_client"],qualified_investor:["US:qualified_purchaser","GB:certified_sophisticated","SG:institutional_investor"]},AE:{professional_client:["US:accredited_investor","GB:high_net_worth","SG:accredited_investor","EU:professional_client"],market_counterparty:["US:qualified_purchaser","GB:certified_sophisticated","EU:professional_client"]},AU:{wholesale_investor:["US:accredited_investor","GB:high_net_worth","SG:accredited_investor","EU:professional_client"],sophisticated_investor:["US:accredited_investor","GB:certified_sophisticated"]},CA:{accredited_investor:["US:accredited_investor","GB:high_net_worth","SG:accredited_investor","EU:qualified_investor"],permitted_client:["US:qualified_purchaser","EU:professional_client"]}};t9(function(e,t,i,a){if(e===i)return t===a;let n=rs[e];if(!n)return!1;let r=n[t];return!!r&&r.includes("".concat(i,":").concat(a))},"isAccreditationEquivalent"),eF(["none","in_progress","accepted","rejected","expired"]);var rd=eF(["pending_investor_request","pending_sponsor_response","pending_compliance","pending_legal","counter_offered","accepted","rejected","expired","signed"]),ru=eF(["management_fee","carried_interest","performance_hurdle","origination_fee","exit_fee","distribution_frequency","distribution_preference","waterfall_structure","co_invest_rights","information_rights","transfer_restrictions","mfn_clause","reporting_frequency","audit_rights","tax_reporting_format","esg_reporting","lock_up_period","redemption_notice","key_person_clause","investment_restrictions","side_letter"]),rc=eF(["accepted","counter","rejected"]),rp=eF(["investor","sponsor"]);eP({enabled:eT().default(!1),mode:eF(["always","conditional"]).default("
1conditional"),minInvestmentAmount:eS().positive().optional(),maxNegotiableDiscount:eS().min(0).max(1).optional(),negotiableTerms:eR(ru).default([]),autoApproveThreshold:eS().positive().optional(),requiresComplianceReview:eT().default(!0),requiresLegalReview:eT().default(!0),customTermsTemplate:ek().optional(),maxNegotiationRounds:eS().int().min(1).max(10).default(3),negotiationTimeoutDays:eS().int().min(1).max(90).default(14)});var rm=eP({termType:ru,currentValue:eE(),requestedValue:eE(),justification:ek().optional()});eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),investmentId:ek().uuid(),investorAccountId:ek().uuid(),requestedChanges:eR(rm).min(1),notes:ek().optional()}),eP({negotiationId:ek().uuid(),response:rc,responseTerms:eN(eE()).optional(),responseNotes:ek().optional(),respondedBy:ek().uuid()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),investmentId:ek().uuid(),investorAccountId:ek().uuid(),sponsorAccountId:ek().uuid().nullable().optional(),originalAgreementId:ek().uuid().nullable().optional(),negotiatedAgreementId:ek().uuid().nullable().optional(),status:rd,currentRound:eS().int(),maxRounds:eS().int(),currentTerms:eN(eE()).default({}),standardTerms:eN(eE()).default({}),complianceNotes:ek().nullable().optional(),legalNotes:ek().nullable().optional(),flowInstanceId:ek().uuid().nullable().optional(),expiresAt:ek().datetime().nullable().optional(),createdAt:ek().datetime().optional(),updatedAt:ek().datetime().optional()}),eP({id:ek().uuid(),negotiationId:ek().uuid(),roundNumber:eS().int(),initiatedBy:rp,requestedChanges:eN(eE()).default({}),response:rc.nullable().optional(),responseTerms:eN(eE()).nullable().optional(),responseNotes:ek().nullable().optional(),respondedBy:ek().uuid().nullable().optional(),respondedAt:ek().datetime().nullable().optional(),aiRecommendation:eN(eE()).nullable().optional(),createdAt:ek().datetime().optional()}),eP({recommendation:eF(["accept","counter","reject"]),confidence:eS().min(0).max(1),suggestedCounterTerms:eN(eE()).optional(),complianceImpact:eP({riskLevel:eF(["low","medium","high","critical"]),concerns:eR(ek()).default([]),regulatoryFlags:eR(ek()).default([])}).optional(),marketComparison:eP({percentileRank:eS().min(0).max(100).optional(),comparableDeals:eS().int().optional(),marketMedian:eN(eE()).optional()}).optional(),reasoning:ek()}),eP({investorCountry:ek().length(2).toUpperCase(),offeringCountry:ek().length(2).toUpperCase(),investmentAmount:eB.number().positive().optional(),metadata:eN(eE()).default({})}),eP({eligible:eT(),requiresCrossBorderCheck:eT(),withholdingTaxRate:eS().nullable(),treatyApplies:eT(),requiredInvestorStatus:ek().nullable(),conditions:eN(eE()),regulatoryReference:ek().nullable()}),eP({offeringCountry:ek(),withholdingTaxRate:eS().nullable(),treatyApplies:eT(),requiredInvestorStatus:ek().nullable()}),eP({isCrossBorder:eT(),offeringCountry:ek(),withholdingTaxRate:eS().nullable(),additionalKycRequired:eT(),badge:ek().nullable()});var rf=eF(["email","sms","push","in_app","whatsapp"]),rh=eF(["low","normal","high","urgent"]),rg=eF(["queued","sending","sent","delivered","failed","bounced"]);eP({id:ek().uuid(),tenantId:ek().uuid(),channel:rf,recipientId:ek().uuid().nullable(),recipientEmail:ek().nullable(),recipientPhone:ek().nullable(),subject:ek().nullable(),body:ek(),templateId:ek().uuid().nullable(),status:rg,priority:rh,eventType:ek().nullable(),metadata:eN(eE()),sentAt:ek().datetime().nullable(),deliveredAt:ek().datetime().nullable(),failureReason:ek().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()});var rv=eP({channel:rf,recipientId:ek().uuid().optional(),recipientEmail:ek().email().optional(),recipientPhone:ek().optional(),subject:ek().optional(),body:ek().min(1),templateId:ek().uuid().optional(),priority:rh.default("normal"),eventType:ek().optional(),metadata:eN(eE()).default({})});eP({notifications:eR(rv).min(1).max(1e3)}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),channel:rf.optional(),status:rg.optional(),recipientId:ek().uuid().optional(),eventType:ek().optional()}),eP({id:ek().uuid(),accountId:ek().uuid(),tenantId:ek().uuid(),channel:rf,entityType:ek(),enabled:eT(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({preferences:eR(eP({channel:rf,entityType:ek().min(1),enabled:eT()})).min(1)}),eP({id:ek().uuid(),tenantId:ek().uuid(),eventType:ek(),templateId:ek().uuid(),channel:rf,enabled:eT(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),notificationId:ek().uuid(),provider:ek(),channel:rf,status:eF(["success","failure"]),providerMessageId:ek().nullable(),errorMessage:ek().nullable(),attemptNumber:eS().int(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({id:ek().uuid(),accountId:ek().uuid(),tenantId:ek().uuid(),platform:eF(["ios","android","web"]),token:ek(),isActive:eT(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eF(["created","updated","deleted","published","archived","invested","funded","canceled","approved","rejected","signed","sent","verified","failed","completed","started","paused","resumed","expired","logged_in","logged_out","registered"]);var ry=eF(["account","system","workflow"]);eP({id:ek().uuid(),tenantId:ek().uuid(),actorId:ek().uuid().nullable(),actorType:ry,action:ek(),entityType:ek(),entityId:ek().uuid(),entityName:ek().nullable(),parentEntityType:ek().nullable(),parentEntityId:ek().uuid().nullable(),metadata:eN(eE()),ipAddress:ek().nullable(),createdAt:ek().datetime()});var rb=eP({actorId:ek().uuid().optional(),actorType:ry.default("account"),action:ek().min(1),entityType:ek().min(1),entityId:ek().uuid(),entityName:ek().optional(),parentEntityType:ek().optional(),parentEntityId:ek().uuid().optional(),ipAddress:ek().optional(),metadata:eN(eE()).default({})});eP({entries:eR(rb).min(1).max(500)}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),entityType:ek().optional(),entityId:ek().uuid().optional(),actorId:ek().uuid().optional(),action:ek().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),actorId:ek().uuid().nullable(),action:ek(),resource:ek(),resourceId:ek().uuid(),before:eN(eE()).nullable(),after:eN(eE()).nullable(),ipAddress:ek().nullable(),userAgent:ek().nullable(),createdAt:ek().datetime()}),eP({actorId:ek().uuid().optional(),action:ek().min(1),resource:ek().min(1),resourceId:ek().uuid(),before:eN(eE()).optional(),after:eN(eE()).optional(),ipAddress:ek().optional(),userAgent:ek().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),resource:ek().optional(),resourceId:ek().uuid().optional(),actorId:ek().uuid().optional(),action:ek().optional()});var r_=eF(["user","tenant","role","entity"]),rx=eP({type:ek(),entityType:ek().optional(),entityId:ek().uuid().optional(),data:eN(eE()),timestamp:ek().datetime()});eP({roomType:r_,roomId:ek().min(1)}),eP({roomType:r_,roomId:ek().min(1)}),eP({room:ek().min(1),event:rx}),eP({userId:ek().uuid(),event:rx}),eP({tenantId:ek().uuid(),event:rx});var rA=eF(["active","inactive","archived","blocked"]),rI=eF(["manual","import","form","api","referral","social"]),rw=eF(["static","dynamic"]),rk=eF(["email","phone","name_email","custom"]),rS=eF(["merge","flag","skip"]);eP({id:ek().uuid(),tenantId:ek().uuid(),firstName:ek(),lastName:ek(),email:ek().nullable(),phone:ek().nullable(),company:ek().nullable(),title:ek().nullable(),source:rI,status:rA,ownerId:ek().uuid().nullable(),avatarUrl:ek().nullable(),address:eN(eE()).nullable(),socialProfiles:eN(eE()).nullable(),tags:eR(ek()),customFields:eN(eE()),metadata:eN(eE()),lastActivityAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),email:ek().email().optional(),phone:ek().optional(),company:ek().optional(),title:ek().optional(),source:rI.default("manual"),ownerId:ek().uuid().optional(),avatarUrl:ek().url().optional(),address:eN(eE()).optional(),socialProfiles:eN(eE()).optional(),tags:eR(ek()).default([]),customFields:eN(eE()).default({}),metadata:eN(eE()).default({})}
1).partial().extend({status:rA.optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:rA.optional(),source:rI.optional(),ownerId:ek().uuid().optional(),search:ek().optional(),tag:ek().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),color:ek(),entityType:ek(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(100),color:ek().min(1).max(50),entityType:ek().min(1)}),eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),type:rw,filterCriteria:eN(eE()).nullable(),memberCount:eS().int(),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),type:rw.default("static"),filterCriteria:eN(eE()).optional(),isActive:eT().default(!0),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),type:rw.optional(),isActive:eB.boolean().optional(),search:ek().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),matchStrategy:rk,action:rS,isActive:eT(),matchFields:eR(ek()),config:eN(eE()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),matchStrategy:rk,action:rS.default("flag"),isActive:eT().default(!0),matchFields:eR(ek()).min(1),config:eN(eE()).default({}),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),accountId:ek().uuid(),name:ek(),entityType:ek(),filters:eN(eE()),columns:eR(ek()),sortBy:ek().nullable(),sortOrder:eF(["asc","desc"]).nullable(),isDefault:eT(),isShared:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),entityType:ek().min(1),filters:eN(eE()).default({}),columns:eR(ek()).default([]),sortBy:ek().optional(),sortOrder:eF(["asc","desc"]).optional(),isDefault:eT().default(!1),isShared:eT().default(!1),metadata:eN(eE()).default({})});var rT=eF(["equals","not_equals","contains","not_contains","starts_with","ends_with","gt","gte","lt","lte","in","not_in","is_set","is_not_set"]),rC=eP({field:ek().min(1),operator:rT,value:eE().optional(),logicalOperator:eF(["and","or"]).default("and")}),rE=eF(["static_list","dynamic_filter","lead_score_range","lifecycle_stage","combined"]),rR=eF(["facebook","google_ads","linkedin","tiktok"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable().optional(),type:rE,sourceListId:ek().uuid().nullable().optional(),filters:eR(rC).default([]),scoreRange:eP({min:eS().int().min(0),max:eS().int().max(100)}).nullable().optional(),lifecycleStages:eR(ek()).nullable().optional(),socialPlatform:rR.nullable().optional(),socialAudienceConfig:eN(eE()).default({}),estimatedSize:eS().int().default(0),lastEvaluatedAt:ek().datetime().nullable().optional(),isActive:eT().default(!0),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),type:rE,sourceListId:ek().uuid().optional(),filters:eR(rC).default([]),scoreRange:eP({min:eS().int().min(0),max:eS().int().max(100)}).optional(),lifecycleStages:eR(ek()).optional(),socialPlatform:rR.optional(),socialAudienceConfig:eN(eE()).default({}),isActive:eT().default(!0),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),type:rE.optional(),isActive:eB.boolean().optional(),search:ek().optional()}),eP({segmentId:ek().uuid().optional(),estimatedSize:eS().int(),breakdown:eN(eS()).default({}),evaluatedAt:ek().datetime()}),eP({segmentIds:eR(ek().uuid()).optional(),filters:eR(rC).optional(),listId:ek().uuid().optional(),scoreRange:eP({min:eS().int().min(0),max:eS().int().max(100)}).optional(),lifecycleStages:eR(ek()).optional(),estimatedReach:eS().int().optional()});var rP=eF(["ims","homebuyer","advisor","fea"]);eP({id:ek().uuid(),connectionId:ek().uuid(),vertical:rP,entityType:ek().min(1),entityId:ek().uuid(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({connectionId:ek().uuid(),vertical:rP,entityType:ek().min(1),entityId:ek().uuid(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),leadId:ek().uuid(),vertical:rP,entityType:ek().min(1),entityId:ek().uuid(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}
1),eP({leadId:ek().uuid(),vertical:rP,entityType:ek().min(1),entityId:ek().uuid(),metadata:eN(eE()).default({})});var rO=eF(["email","sms","social","whatsapp","push","dm","multi_channel","event","webinar","drip","ab_test"]),rM=eF(["draft","scheduled","running","paused","completed","canceled","failed"]),rN=eF(["facebook","instagram","twitter","linkedin","youtube","tiktok","discord","slack","reddit","threads","whatsapp"]),rj=eF(["draft","scheduled","publishing","published","failed"]),rD=eF(["draft","sending","sent","failed"]),rF=eF(["sendgrid","smtp","ses"]),rL=eF(["sent","delivered","opened","clicked","bounced","dropped","spam_report","unsubscribe","deferred"]),rB=eF(["pending","running","completed","failed","canceled"]),rz=eF(["all","replies_only","filtered"]),rU=eF(["received","forwarded","failed","discarded"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable().optional(),campaignType:rO,status:rM,listId:ek().uuid().nullable().optional(),templateId:ek().uuid().nullable().optional(),scheduledAt:ek().datetime().nullable().optional(),startedAt:ek().datetime().nullable().optional(),completedAt:ek().datetime().nullable().optional(),sentCount:eS().int().default(0),deliveredCount:eS().int().default(0),openedCount:eS().int().default(0),clickedCount:eS().int().default(0),bouncedCount:eS().int().default(0),failedCount:eS().int().default(0),schedule:eN(eE()).default({}),targetAudience:eN(eE()).default({}),config:eN(eE()).default({}),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),campaignType:rO,listId:ek().uuid().optional(),templateId:ek().uuid().optional(),scheduledAt:ek().datetime().optional(),targetAudience:eN(eE()).default({}),config:eN(eE()).default({}),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:rM.optional(),campaignType:rO.optional(),search:ek().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),campaignId:ek().uuid(),status:rB,totalRecipients:eS().int(),processedCount:eS().int(),successCount:eS().int(),failureCount:eS().int(),startedAt:ek().datetime().nullable(),completedAt:ek().datetime().nullable(),errorMessage:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),tenantId:ek().uuid(),campaignId:ek().uuid().nullable(),subject:ek(),fromName:ek(),fromEmail:ek(),replyTo:ek().nullable(),htmlContent:ek(),textContent:ek().nullable(),templateId:ek().uuid().nullable(),status:rD,metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({subject:ek().min(1).max(500),fromName:ek().min(1),fromEmail:ek().email(),replyTo:ek().email().optional(),htmlContent:ek().min(1),textContent:ek().optional(),campaignId:ek().uuid().optional(),templateId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({to:eR(ek().email()).min(1).optional(),cc:eR(ek().email()).optional(),bcc:eR(ek().email()).optional()}),eP({to:eR(ek().email()).min(1),cc:eR(ek().email()).optional(),bcc:eR(ek().email()).optional(),subject:ek().min(1).max(500),fromName:ek().min(1),fromEmail:ek().email(),replyTo:ek().email().optional(),htmlContent:ek().min(1),textContent:ek().optional(),templateId:ek().uuid().optional(),templateData:eN(eE()).optional(),providerId:ek().uuid().optional(),tags:eR(ek()).optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),provider:rF,isDefault:eT(),isEnabled:eT(),apiKey:ek().nullable().optional(),subaccountUsername:ek().nullable().optional(),subaccountId:ek().nullable().optional(),smtpHost:ek().nullable().optional(),smtpPort:eS().int().nullable().optional(),smtpUsername:ek().nullable().optional(),smtpSecure:eT().nullable().optional(),sesRegion:ek().nullable().optional(),sesConfigurationSet:ek().nullable().optional(),fromEmail:ek().email().nullable().optional(),fromName:ek().nullable().optional(),replyTo:ek().email().nullable().optional(),marketingGroupId:ek().nullable().optional(),serviceGroupId:ek().nullable().optional(),webhookUrl:ek().url().nullable().optional(),config:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({provider:rF,isDefault:eT().default(!1),isEnabled:eT().default(!0),apiKey:ek().optional(),subaccountUsername:ek().optional(),subaccountId:ek().optional(),smtpHost:ek().optional(),smtpPort:eS().int().min(1).max(65535).optional(),smtpUsername:ek().optional(),smtpPassword:ek().optional(),smtpSecure:eT().optional(),sesRegion:ek().optional(),sesAccessKeyId:ek().optional(),sesSecretAccessKey:ek().optional(),sesConfigurationSet:ek().optional(),fromEmail:ek().email().optional(),fromName:ek().optional(),replyTo:ek().email().optional(),marketingGroupId:ek().optional(),serviceGroupId:ek().optional(),webhookUrl:ek().url().optional(),config:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),provider:rF.optional(),isEnabled:eB.boolean().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),providerId:ek().uuid().nullable().optional(),name:ek(),email:ek().email(),replyTo:ek().email().nullable().optional(),company:ek().nullable().optional(),address:ek().nullable().optional(),city:ek().nullable().optional(),state:ek().nullable().optional(),zip:ek().nullable().optional(),country:ek().nullable().optional(),isVerified:eT(),isDefault:eT(),providerSenderId:ek().nullable().optional(),verifiedAt:ek().datetime().nullable().optional(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({providerId:ek().uuid().optional(),name:ek().min(1).max(255),email:ek().email(),replyTo:ek().email().optional(),company:ek().optional(),address:ek().optional(),city:ek().optional(),state:ek().optional(),zip:ek().optional(),country:ek().optional(),isDefault:eT().default(!1),metadata:eN(eE()).default({})}).partial(),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),providerId:ek().uuid().nullable().optional(),domain:ek(),providerDomainId:ek().nullable().optional(),isVerified:eT(),isDefault:eT(),dnsRecords:eR(eP({type:ek(),host:ek(),value:ek(),valid:eT()}
1)),verifiedAt:ek().datetime().nullable().optional(),linkBrandingId:ek().nullable().optional(),linkSubdomain:ek().nullable().optional(),linkBrandingVerified:eT(),linkBrandingDns:eR(eP({type:ek(),host:ek(),value:ek(),valid:eT()})),inboundSubdomain:ek().nullable().optional(),inboundParseEnabled:eT(),inboundParseUrl:ek().nullable().optional(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({providerId:ek().uuid().optional(),domain:ek().min(1).max(255),isDefault:eT().default(!1),linkSubdomain:ek().min(1).max(63).optional(),inboundSubdomain:ek().min(1).max(63).optional(),metadata:eN(eE()).default({})}).partial(),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),emailId:ek().uuid().nullable().optional(),event:rL,recipientEmail:ek().email().nullable().optional(),providerMessageId:ek().nullable().optional(),providerEventId:ek().nullable().optional(),url:ek().nullable().optional(),userAgent:ek().nullable().optional(),ip:ek().nullable().optional(),reason:ek().nullable().optional(),asmGroupId:ek().nullable().optional(),metadata:eN(eE()),timestamp:ek().datetime(),createdAt:ek().datetime()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),emailId:ek().uuid().optional(),event:rL.optional(),recipientEmail:ek().email().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),providerId:ek().uuid(),subUserName:ek(),apiKeyId:ek().nullable().optional(),apiKeyPrefix:ek().nullable().optional(),suppressionGroups:eR(eP({id:eS(),name:ek(),description:ek(),isDefault:eT()})),ips:eR(ek()),webhookUrl:ek().nullable().optional(),isActive:eT(),provisionedAt:ek().datetime().nullable().optional(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({providerId:ek().uuid(),subUserName:ek().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/,"Only alphanumeric, underscore, and hyphen allowed"),webhookUrl:ek().url().optional(),metadata:eN(eE()).default({})}),eP({webhookUrl:ek().url().optional(),isActive:eT().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),providerId:ek().uuid().optional(),isActive:eB.boolean().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),domainId:ek().uuid().nullable().optional(),userId:ek().nullable().optional(),aliasEmail:ek().email(),forwardToEmail:ek().email(),displayName:ek().nullable().optional(),isActive:eT(),isVerified:eT(),verificationSentAt:ek().datetime().nullable().optional(),activatedAt:ek().datetime().nullable().optional(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({domainId:ek().uuid().optional(),userId:ek().optional(),aliasEmail:ek().email().optional(),forwardToEmail:ek().email(),displayName:ek().max(100).optional(),metadata:eN(eE()).default({})}),eP({forwardToEmail:ek().email().optional(),displayName:ek().max(100).optional(),isActive:eT().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),domainId:ek().uuid().optional(),userId:ek().optional(),isActive:eB.boolean().optional(),isVerified:eB.boolean().optional()}),eP({id:ek().uuid(),aliasId:ek().uuid(),forwardType:rz,includeAttachments:eT(),maxSizeBytes:eS().int().nullable().optional(),filterRules:eP({allowedSenders:eR(ek()).optional(),blockedSenders:eR(ek()).optional(),subjectContains:eR(ek()).optional(),subjectNotContains:eR(ek()).optional()}),isActive:eT(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({aliasId:ek().uuid(),forwardType:rz.default("all"),includeAttachments:eT().default(!0),maxSizeBytes:eS().int().min(1024).max(0x1900000).optional(),filterRules:eP({allowedSenders:eR(ek()).optional(),blockedSenders:eR(ek()).optional(),subjectContains:eR(ek()).optional(),subjectNotContains:eR(ek()).optional()}).default({}),isActive:eT().default(!0)}).partial().omit({aliasId:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),al
1iasId:ek().uuid().nullable().optional(),fromEmail:ek().email(),fromName:ek().nullable().optional(),toEmail:ek().email(),subject:ek().nullable().optional(),bodyText:ek().nullable().optional(),bodyHtml:ek().nullable().optional(),attachments:eR(eP({filename:ek(),contentType:ek(),size:eS(),contentId:ek().optional(),url:ek().optional()})),headers:eN(ek()),spamScore:ek().nullable().optional(),forwardedTo:ek().nullable().optional(),forwardedAt:ek().datetime().nullable().optional(),status:rU,failureReason:ek().nullable().optional(),receivedAt:ek().datetime(),createdAt:ek().datetime()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),aliasId:ek().uuid().optional(),status:rU.optional(),fromEmail:ek().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),socialAccountId:ek().uuid(),platform:rN,content:ek(),mediaUrls:eR(ek()),status:rj,scheduledAt:ek().datetime().nullable(),publishedAt:ek().datetime().nullable(),providerPostId:ek().nullable(),engagementData:eN(eE()).nullable(),failureReason:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({socialAccountId:ek().uuid(),platform:rN,content:ek().min(1),mediaUrls:eR(ek()).default([]),scheduledAt:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({content:ek().min(1).optional(),mediaUrls:eR(ek()).optional(),scheduledAt:ek().datetime().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),platform:rN.optional(),status:rj.optional(),socialAccountId:ek().uuid().optional(),search:ek().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),platform:rN,accountName:ek(),accountId:ek(),accessToken:ek().nullable(),refreshToken:ek().nullable(),tokenExpiresAt:ek().datetime().nullable(),isActive:eT(),profileUrl:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({platform:rN,accountName:ek().min(1),accountId:ek().min(1),accessToken:ek().optional(),refreshToken:ek().optional(),tokenExpiresAt:ek().datetime().optional(),profileUrl:ek().url().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),category:ek(),htmlContent:ek(),cssContent:ek().nullable(),thumbnail:ek().nullable(),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),category:ek().min(1),htmlContent:ek().min(1),cssContent:ek().optional(),thumbnail:ek().url().optional(),isActive:eT().default(!0),metadata:eN(eE()).default({})});var rq=eF(["round_robin","weighted","geographic","skill_based","load_balanced"]);eP({id:ek().uuid(),tenantId:ek().uuid(),entityType:ek(),entityId:ek().uuid(),score:eS(),breakdown:eN(eE()),lastCalculatedAt:ek().datetime(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),strategy:rq,priority:eS().int(),isActive:eT(),conditions:eN(eE()),assignees:eR(eP({accountId:ek().uuid(),weight:eS().int().default(1)})),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),strategy:rq,priority:eS().int().default(0),isActive:eT().default(!0),conditions:eN(eE()).default({}),assignees:eR(eP({accountId:ek().uuid(),weight:eS().int().default(1)})).min(1),metadata:eN(eE()).default({})});var r$=eF(["revenue","deals_won","deals_created","conversion_rate","avg_deal_size","activities","pipeline_value","custom"]),rH=eF(["weekly","monthly","quarterly","yearly"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),pipelineId:ek().uuid().nullable(),assigneeId:ek().uuid().nullable(),name:ek(),goalType:r$,targetValue:ek(),currentValue:ek(),period:rH,periodStart:ek().datetime(),periodEnd:ek().datetime(),currency:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({pipelineId:ek().uuid().optional(),assigneeId:ek().uuid().optional(),name:ek().min(1).max(255),goalType:r$,targetValue:ek().min(1),period:rH,periodStart:ek().datetime(),periodEnd:ek().datetime(),currency:ek().default("USD"),metadata:eN(eE()).default({})}).partial().extend({currentValue:ek().optional()}),eP({goalId:ek().uuid(),name:ek(),goalType:r$,targetValue:ek(),currentValue:ek(),progressPercent:eS(),remaining:ek(),isAchieved:eT(),period:rH,periodStart:ek().datetime(),periodEnd:ek().datetime(),daysRemaining:eS()}),eP({assigneeId:ek().uuid(),totalGoals:eS(),achievedGoals:eS(),avgProgressPercent:eS(),rank:eS()});var rV=eF(["email","sms","chat","whatsapp","in_app"]),rW=eF(["draft","queued","sending","sent","delivered","read","failed","bounced"]),rG=eF(["inbound","outbound"]),rK=eF(["scheduled","confirmed","canceled","completed"]),rZ=eF(["low","medium","high","urgent"]),rY=eF(["pending","in_progress","completed","canceled","overdue"]);eP({id:ek().uuid(),tenantId:ek().uuid(),threadId:ek().uuid().nullable(),channel:rV,direction:rG,fromId:ek().uuid().nullable(),fromEmail:ek().nullable(),toId:ek().uuid().nullable(),toEmail:ek().nullable(),subject:ek().nullable(),body:ek(),htmlBody:ek().nullable(),status:rW,readAt:ek().datetime().nullable(),sentAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({channel:rV,threadId:ek().uuid().optional(),toId:ek().uuid().optional(),toEmail:ek().email().optional(),subject:ek().optional(),body:ek().min(1),htmlBody:ek().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),channel:rV.optional(),status:rW.optional(),threadId:ek().uuid().optional(),direction:rG.optional(),search:ek().optional()});var rX=eF(["sponsor","investor","fea_agent","homebuyer","marketplace_admin","platform","system","bd_rep","advisor"]),rJ=eP({accountId:ek().uuid(),type:rX}),rQ=eP({type:eF(["investment","offering_review","application","support","bd_review","agreement","distribution","general"]),id:ek().uuid()});eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),subject:ek().nullable(),participantIds:eR(ek().uuid()),participantTypes:eR(rJ).default([]),entityContext:rQ.nullable().default(null),lastMessageAt:ek().datetime().nullable(),messageCount:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({participantIds:eR(ek().uuid()).min(1),participantTypes:eR(rJ).optional(),entityContext:rQ.nullable().optional(),channel:rV.optional(),subject:ek().optional()}),eP({senderId:ek().uuid(),senderType:rX.optional(),recipientIds:eR(ek().uuid()).optional(),body:ek().min(1),channel:rV,metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),title:ek(),description:ek().nullable(),location:ek().nullable(),startTime:ek().datetime(),endTime:ek().datetime(),isAllDay:eT(),status:rK,organizerId:ek().uuid(),attendeeIds:eR(ek().uuid()),recurrence:eN(eE()).nullable(),reminderMinutes:eS().int().nullable(),externalEventId:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({title:ek().min(1).max(255),description:ek().optional(),location:ek().optional(),startTime:ek().datetime(),endTime:ek().datetime(),isAllDay:eT().default(!1),attendeeIds:eR(ek().uuid()).default([]),recurrence:eN(eE()).optional(),reminderMinutes:eS().int().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),title:ek(),description:ek().nullable(),assigneeId:ek().uuid(),assignerId:ek().uuid().nullable(),status:rY,priority:rZ,dueDate:ek().datetime().nullable(),completedAt:ek().datetime().nullable(),entityType:ek().nullable(),entityId:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({title:ek().min(1).max(255),description:ek().optional(),assigneeId:ek().uuid(),priority:rZ.default("medium"),dueDate:ek().datetime().optional(),entityType:ek().optional(),entityId:ek().uuid().optional(),metadata:eN(eE()).default({})}).partial().extend({status:rY.optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:rY.optional(),priority:rZ.optional(),assigneeId:ek().uuid().optional(),entityType:ek().optional(),entityId:ek().uuid().optional(),search:ek().optional()});var r0=eF(["user","assistant","system"]),r1=eF(["pending","running","completed","failed","canceled","timed_out"]),r2=eF(["copilot","autonomous","workflow","custom"]),r5=eF(["preference","context","fact","instruction"]),r3=eF(["pending","processing","completed","failed"]);eP({id:ek().uuid(),tenantId:ek().uuid(),accountId:ek().uuid(),title:ek().nullable(),agentId:ek().uuid().nullable(),messageCount:eS().int(),lastMessageAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({title:ek().optional(),agentId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),agentId:ek().uuid().optional(),search:ek().optional()}),eP({id:ek().uuid(),conversationId:ek().uuid(),role:r0,content:ek(),tokenCount:eS().int().nullable(),model:ek().nullable(),toolCalls:eR(eN(eE())).nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({conversationId:ek().uuid(),role:r0.default("user"),content:ek().min(1),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),accountId:ek().uuid(),key:ek(),value:ek(),memoryType:r5,confidence:eS().nullable(),source:ek().nullable(),expiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({key:ek().min(1),value:ek().min(1),memoryType:r5.default("fact"),confidence:eS().min(0).max(1).optional(),source:ek().optional(),expiresAt:ek().datetime().optional(),metadata:eN(eE()).default({})});var r4=eF(["short","long"]),r9=eF(["none","redis","temporal"]);eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),agentType:r2,systemPrompt:ek(),model:ek(),temperature:eS(),maxTokens:eS().int(),tools:eR(ek()),isActive:eT(),isPublic:eT(),version:eS().int(),durationClass:r4.default("short"),checkpointing:r9.default("none"),config:eN(eE()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),agentType:r2,systemPrompt:ek().min(1),model:ek().min(1),temperature:eS().min(0).max(2).default(.7),maxTokens:eS().int().min(1).max(128e3).default(4096),tools:eR(ek()).default([]),isActive:eT().default(!0),isPublic:eT().default(!1),durationClass:r4.default("short"),checkpointing:r9.default("none"),config:eN(eE()).default({}),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),agentType:r2.optional(),isActive:eB.boolean().optional(),isPublic:eB.boolean().optional(),search:ek().optional()});var r6=eF(["draft","active","paused","deleted"]),r8=ej(()=>
1eP({action:ek().min(1),tool:ek().optional(),input:eN(eE()).optional(),if:ek().optional(),then:eR(r8).optional(),else:eR(r8).optional()}).strict()),r7=eR(r8).max(200);eP({steps:r7}).strict();var oe=eP({type:eF(["event","schedule","webhook","manual"]),event:ek().optional(),cron:ek().optional(),url:ek().optional()}).strict();eP({name:ek().min(1).max(255).optional(),description:ek().optional(),model:ek().optional(),systemPrompt:ek().optional(),tools:eR(eN(eE())).optional(),triggers:eR(oe).optional(),steps:r7.optional(),status:r6.optional(),allowedTools:eR(ek()).optional(),isPublished:eT().optional(),durationClass:r4.optional(),checkpointing:r9.optional(),maxExecutionsPerDay:eS().int().min(1).optional(),maxTokensPerExecution:eS().int().min(1).optional(),metadata:eN(eE()).optional()}).strict(),eP({id:ek().uuid(),tenantId:ek().uuid(),agentId:ek().uuid(),accountId:ek().uuid(),status:r1,input:eN(eE()),output:eN(eE()).nullable(),tokenUsage:eP({promptTokens:eS().int(),completionTokens:eS().int(),totalTokens:eS().int()}).nullable(),errorMessage:ek().nullable(),durationMs:eS().int().nullable(),startedAt:ek().datetime().nullable(),completedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({runId:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid()}),eP({id:ek().uuid(),tenantId:ek().uuid(),entityType:ek(),entityId:ek().uuid(),content:ek(),chunkIndex:eS().int(),model:ek(),dimensions:eS().int(),status:r3,metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({entityType:ek().min(1),entityId:ek().uuid(),content:ek().min(1),model:ek().default("text-embedding-3-small"),metadata:eN(eE()).default({})}),eP({message:ek().min(1).max(4e3),conversationId:ek().uuid().optional(),app:ek().min(1)}),eP({app:ek().min(1)}),eP({query:ek().min(1),entityType:ek().optional(),app:ek().optional(),topK:eS().int().min(1).max(20).default(5),similarityThreshold:eS().min(0).max(1).default(.7)}),eP({id:ek().uuid(),content:ek(),similarity:eS(),entityType:ek(),entityId:ek().uuid(),metadata:eN(eE()).optional()}),eP({input:eN(eE()).default({}),idempotencyKey:ek().uuid().optional(),correlationId:ek().max(128).optional()}).strict(),eP({runId:ek().uuid(),status:eF(["running","completed","failed","cancelled"]),agentId:ek().uuid()});var ot=eF(["campaign_performance","lead_conversion","engagement_summary","pipeline_velocity","revenue","custom"]),oi=eF(["json","csv","pdf","excel"]),oa=eF(["draft","active","archived"]),on=eF(["pending","running","completed","failed","canceled"]),or=eF(["first_touch","last_touch","linear","time_decay","position_based"]);eP({id:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),reportType:ot,format:oi,status:oa,query:eN(eE()),filters:eN(eE()),schedule:eN(eE()).nullable(),columns:eR(ek()),createdBy:ek().uuid(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),reportType:ot,format:oi.default("json"),query:eN(eE()).default({}),filters:eN(eE()).default({}),schedule:eN(eE()).optional(),columns:eR(ek()).default([]),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),reportId:ek().uuid(),status:on,format:oi,rowCount:eS().int().nullable(),fileUrl:ek().nullable(),fileSize:eS().int().nullable(),errorMessage:ek().nullable(),startedAt:ek().datetime().nullable(),completedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),tenantId:ek().uuid(),eventType:ek(),entityType:ek(),entityId:ek().uuid(),actorId:ek().uuid().nullable(),properties:eN(eE()),sessionId:ek().nullable(),ipAddress:ek().nullable(),userAgent:ek().nullable(),timestamp:ek().datetime(),createdAt:ek().datetime()}),eP({eventType:ek().min(1),entityType:ek().min(1),entityId:ek().uuid(),actorId:ek().uuid().optional(),properties:eN(eE()).default({}),sessionId:ek().optional(),ipAddress:ek().optional(),userAgent:ek().optional(),timestamp:ek().datetime().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),eventType:ek().optional(),entityType:ek().optional(),entityId:ek().uuid().optional(),actorId:ek().uuid().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),model:or,conversionEntityType:ek(),conversionEntityId:ek().uuid(),touchpoints:eR(eP({channel:ek(),source:ek().nullable(),campaign:ek().nullable(),timestamp:ek().datetime(),credit:eS()})),totalValue:ek(),currency:ek(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()});var oo=eF(["leads","campaigns","content","engagement","offerings","investments","transactions","events","reputation"]),ol=eF(["bar","line","pie","area","donut","stacked_bar","scatter"]),os=eF(["metric","chart","table","html","ai_summary"]),od=eF(["platform_operator","marketplace_admin","sponsor","investor","fea_operator"]);eM("sectionType",[eP({sectionType:eD("metric"),dataSource:oo,metricKey:ek(),label:ek().optional(),unit:eF(["count","currency","percent","duration","ratio"]).optional(),showTrend:eT().optional(),showSparkline:eT().optional(),dateRange:ek().optional()}),eP({sectionType:eD("chart"),dataSource:oo,chartType:ol,metrics:eR(ek()).min(1),dateRange:ek().optional(),groupBy:ek().optional()}),eP({sectionType:eD("table"),dataSource:oo,columns:eR(eP({key:ek(),label:ek(),sortable:eT().optional()})).min(1),filters:eN(eE()).optional(),dateRange:ek().optional(),maxRows:eS().int().positive().optional()}),eP({sectionType:eD("html"),content:ek()}),eP({sectionType:eD("ai_summary"),prompt:ek().optional(),tone:eF(["executive","technical","casual"]).optional(),maxLength:eS().int().positive().optional()})]);var ou=eP({position:eS().int().min(0),sectionType:os,title:ek().optional(),config:eN(eE())});eP({sections:eR(ou)}
1),eP({accountId:ek().uuid().optional(),actorType:od.optional(),channel:eF(["email","in_app"]).default("email")}),eP({reportId:ek().uuid()});var oc=eF(["READ","WRITE","DELETE","SHARE"]),op=eF(["PUBLIC","INTERNAL","CONFIDENTIAL","RESTRICTED"]),om=eF(["PUBLIC","AUTHENTICATED","ROLE_BASED","OWNER_ONLY"]),of=eP({userId:ek().uuid(),permission:oc,grantedAt:ek().datetime(),grantedBy:ek().uuid()});eP({accessPolicy:om,securityLevel:op,allowedRoles:eR(ek()),sharedWith:eR(of),ownerId:ek().uuid(),ownerType:ek().optional(),inheritedFromFolder:eT().optional()}),eP({userId:ek().uuid(),permission:oc.default("READ")}),eP({entries:eR(eP({userId:ek().uuid(),permission:oc.default("READ")})).min(1).max(50)}),eP({userId:ek().uuid()}),eP({accessPolicy:om,securityLevel:op.optional(),allowedRoles:eR(ek()).optional()}),eP({accessPolicy:om.optional(),securityLevel:op.optional(),allowedRoles:eR(ek()).optional(),inheritToChildren:eT().default(!1)}),eP({userId:ek().uuid(),permission:oc.default("READ"),applyToChildren:eT().default(!1)}),eP({resourceId:ek().uuid(),resourceType:eF(["document","folder","asset"]),permission:oc.default("READ"),expiresAt:ek().datetime().optional(),password:ek().min(4).max(64).optional().describe("Plaintext password; stored hashed"),maxUses:eS().int().min(1).max(1e4).optional()}),eP({id:ek().uuid(),token:ek().min(32),resourceId:ek().uuid(),resourceType:eF(["document","folder","asset"]),permission:oc,createdBy:ek().uuid(),expiresAt:ek().datetime().nullable(),passwordHash:ek().nullable(),maxUses:eS().int().nullable(),useCount:eS().int(),isRevoked:eT(),createdAt:ek().datetime()}),eP({resourceId:ek().uuid(),resourceType:eF(["document","folder","asset"]),userId:ek().uuid(),permission:oc}),eP({allowed:eT(),reason:ek(),effectivePermission:oc.nullable(),grantedVia:eF(["owner","access_policy","role","direct_share","folder_inherit","share_link"]).optional()});var oh=eF(["uploading","active","archived","deleted"]),og=eF(["image","video","audio","document","spreadsheet","presentation","archive","other"]);eP({id:ek().uuid(),tenantId:ek().uuid(),folderId:ek().uuid().nullable(),name:ek(),originalName:ek(),mimeType:ek(),mimeCategory:og,size:eS().int(),url:ek(),thumbnailUrl:ek().nullable(),status:oh,width:eS().int().nullable(),height:eS().int().nullable(),duration:eS().nullable(),alt:ek().nullable(),tags:eR(ek()),uploadedBy:ek().uuid(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),originalName:ek().min(1),mimeType:ek().min(1),size:eS().int().positive(),folderId:ek().uuid().optional(),alt:ek().optional(),tags:eR(ek()).default([]),metadata:eN(eE()).default({})}),eP({name:ek().min(1).max(255).optional(),folderId:ek().uuid().nullable().optional(),alt:ek().optional(),tags:eR(ek()).optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),folderId:ek().uuid().optional(),mimeCategory:og.optional(),status:oh.optional(),tag:ek().optional(),search:ek().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),parentId:ek().uuid().nullable(),name:ek(),path:ek(),assetCount:eS().int(),accessPolicy:om.default("OWNER_ONLY"),securityLevel:op.default("INTERNAL"),sharedWith:eR(of).default([]),allowedRoles:eR(ek()).default([]),ownerId:ek().uuid().optional(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),parentId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),assetId:ek().uuid(),version:eS().int(),url:ek(),size:eS().int(),mimeType:ek(),uploadedBy:ek().uuid(),changeNote:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eF(["polygon","avalanche","base","ethereum","solana"]),eF(["137","43114","8453","1","101"]);var ov=eF(["pending","deploying","active","paused","liquidating","liquidated"]),oy=eF(["circle_custodial","gnosis_safe","external"]);eF(["mint","burn","transfer","force_transfer"]),eF(["pending","submitted","confirmed","failed","reverted"]);var ob=eF(["USDC","EURC"]);eF(["deposit","withdrawal","investment","distribution","fee"]),eF(["pending","processing","completed","failed","reversed"]);var o_=eF(["active","partially_filled","filled","canceled","expired","suspended"]);eF(["pending","payment_processing","transferring","completed","failed","reversed"]);var ox=eF(["draft","active","closed","approved","rejected","canceled"]),oA
1=eF(["for","against","abstain"]),oI=eF(["death","divorce","bankruptcy","court_order","poa","estate_transfer","hardship_deferral","fea_transfer"]),ow=eF(["pending","in_progress","completed","rejected"]);eF(["grace_period","reserve_drawdown","delinquency","default","bankruptcy","resolved"]),eF(["healthy","warning","critical","depleted"]);var ok=eF(["token","compliance","identity_registry","distributor","safe_module","factory","proxy","custom"]),oS=eF(["scheduled","voting_record_date","distribution_record_date","tax_year_end","regulatory","manual"]),oT=eF(["mint","burn","transfer","force_transfer","secondary_transfer","lifecycle_event","correction","grant","exercise","forfeit","cancel_instrument","conversion"]),oC=eF(["K-1","1099-DIV","1099-INT","1099-B","1099-CORR"]),oE=eF(["pending","generating","generated","delivered","corrected","void"]),oR=eF(["fifo","specific_id","average_cost"]),oP=eF(["not_filed","filed","accepted","rejected"]),oO=eF(["court_order","sec_investigation","irs_levy","bankruptcy_stay","divorce_freeze","aml_investigation"]),oM=eF(["reg_d_506b","reg_d_506c","reg_cf","reg_a","rule_144","state_restriction","custom","eu_prospectus_restriction","uk_fca_restriction","mas_sfa_restriction","sebi_lock_in","asic_restriction","osc_hold_period","jurisdiction_transfer_block"]),oN=eF(["reg_d_506b","reg_d_506c","reg_cf","reg_a","reg_s","eu_prospectus_exempt","eu_crowdfunding_reg","eu_eltif","eu_euveca","uk_s86_exempt","uk_crowdfunding","mas_sfa_275","mas_sfa_305","dfsa_exempt_offer","adgm_exempt","sebi_private_placement","sebi_crowdfunding","asic_s708_exempt","asic_crowdfunding","osc_exempt_distribution","osc_crowdfunding","sfc_prof_investor_exempt","other"]),oj=eF(["not_required","required","filed","updated"]),oD=eF(["csv","pdf","xlsx","json"]),oF=eF(["full","summary","regulatory","tax"]);eF(["income","net_worth","professional","entity"]);var oL=eF(["common_stock","preferred_stock","rsu","phantom_stock","sar","warrant","iso","nso","rsa","emi_option","csop_option","saye_option","sip_share","unapproved_option","bspce","aga","esop_india","sweat_equity","esos_sg","convertible_note","safe","other"]),oB=eF(["employee","advisor","consultant","director","founder"]),oz=eF(["time_based","milestone_based","hybrid"]),oU=eF(["monthly","quarterly","annually","at_milestone"]);eF(["cliff","periodic","milestone","acceleration","forfeiture"]);var oq=eF(["single_trigger","double_trigger","none"]),o$=eF(["active","partially_exercised","fully_exercised","expired","canceled","forfeited"]),oH=eF(["not_required","pending","approved","rejected"]),oV=eF(["pending","completed","failed","reversed"]),oW=eF(["83b","emi_cgt","bspce_flat","esop_perquisite","ess_deferred","none"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),name:ek(),symbol:ek(),chainId:eS().int(),tokenAddress:ek().nullable(),identityRegistryAddress:ek().nullable(),complianceAddress:ek().nullable(),safeAddress:ek().nullable(),distributorAddress:ek().nullable(),totalSupply:ek(),decimals:eS().int(),status:ov,deployedAt:ek().datetime().nullable(),pausedAt:ek().datetime().nullable(),deploymentTxHash:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),name:ek().min(1).max(64),symbol:ek().min(1).max(10).toUpperCase(),chainId:eS().int(),decimals:eS().int().min(0).max(18).default(18),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid().nullable(),spvTokenId:ek().uuid().nullable(),walletType:oy,address:ek(),chainId:eS().int(),providerWalletId:ek().nullable(),label:ek().nullable(),isDefault:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid().optional(),spvTokenId:ek().uuid().optional(),walletType:oy,chainId:eS().int(),label:ek().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),spvTokenId:ek().uuid(),sellerId:ek().uuid(),amount:ek(),pricePerToken:ek(),totalPrice:ek(),currency:ek(),status:o_,filledAmount:ek(),expiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({spvTokenId:ek().uuid(),amount:ek(),pricePerToken:ek(),currency:ek().default("USDC"),expiresAt:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({listingId:ek().uuid(),amount:ek(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),spvTokenId:ek().uuid(),title:ek(),description:ek(),proposerType:eF(["fea","platform","shareholder"]),proposerId:ek().uuid(),status:ox,votingStartsAt:ek().datetime().nullable(),votingEndsAt:ek().datetime().nullable(),quorumPercentage:ek(),approvalPercentage:ek(),totalVotesFor:ek(),totalVotesAgainst:ek(),totalVotesAbstain:ek(),snapshotBlock:eS().int().nullable(),proxyStatementUrl:ek().nullable(),onChainProposalId:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({spvTokenId:ek().uuid(),title:ek().min(1),description:ek().min(1),votingStartsAt:ek().datetime(),votingEndsAt:ek().datetime(),quorumPercentage:ek().default("50"),approvalPercentage:ek().default("50"),metadata:eN(eE()).default({})}),eP({proposalId:ek().uuid(),vote:oA,metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),eventType:oI,status:ow,description:ek().nullable(),documentUrls:eR(ek()),assignedTo:ek().uuid().nullable(),completedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),eventType:oI,description:ek().optional(),documentUrls:eR(ek()).default([]),metadata:eN(eE()).default({})});var oG=eP({investorId:ek().uuid(),walletAddress:ek(),balance:ek(),ownershipPct:ek(),accredited:eT(),jurisdiction:ek().nullable(),lockedUntil:ek().nullable()});eP({id:ek().uuid(),offeringId:ek().uuid(),marketplaceTenantId:ek().uuid(),snapshotType:oS,snapshotDate:ek().datetime(),blockNumber:eS().int().nullable(),totalSupply:ek(),totalHolders:eS().int(),holdersData:eR(oG),merkleRoot:ek().nullable(),certificationHash:ek().nullable(),certifiedBy:ek().uuid().nullable(),certifiedAt:ek().datetime().nullable(),chainAttestationTx:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({offeringId:ek().uuid(),snapshotType:oS,snapshotDate:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),offeringId:ek().uuid(),marketplaceTenantId:ek().uuid(),changeType:oT,fromInvestorId:ek().uuid().nullable(),toInvestorId:ek().uuid().nullable(),amount:ek(),previousBalanceFrom:ek().nullable(),newBalanceFrom:ek().nullable(),previousBalanceTo:ek().nullable(),newBalanceTo:ek().nullable(),previousTotalSupply:ek().nullable(),newTotalSupply:ek().nullable(),transactionId:ek().uuid().nullable(),lifecycleEventId:ek().uuid().nullable(),secondaryTransactionId:ek().uuid().nullable(),reason:ek().nullable(),authorizedBy:ek().uuid(),blockNumber:eS().int().nullable(),txHash:ek().nullable(),previousEntryHash:ek().nullable(),entryHash:ek().nullable(),createdAt:ek().datetime()}),eP({id:ek().uuid(),investorId:ek().uuid(),offeringId:ek().uuid().nullable(),marketplaceTenantId:ek().uuid(),holdType:oO,holdReason:ek(),courtCaseNumber:ek().nullable(),issuingAuthority:ek().nullable(),effectiveDate:ek().datetime(),expiryDate:ek().datetime().nullable(),releasedAt:ek().datetime().nullable(),releasedBy:ek().uuid().nullable(),releaseReason:ek().nullable(),documentUrl:ek().nullable(),preventsTransfer:eT(),preventsDistribution:eT(),preventsVoting:eT(),createdBy:ek().uuid(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),offeringId:ek().uuid().optional(),holdType:oO,holdReason:ek().min(1),courtCaseNumber:ek().optional(),issuingAuthority:ek().optional(),effectiveDate:ek().datetime(),expiryDate:ek().datetime().optional(),documentUrl:ek().optional(),preventsTransfer:eT().default(!0),preventsDistribution:eT().default(!1),preventsVoting:eT().default(!1),metadata:eN(eE()).default({})}),eP({holdId:ek().uuid(),releaseReason:ek().min(1)}),eP({id:ek().uuid(),offeringId:ek().uuid(),investorId:ek().uuid(),marketplaceTenantId:ek().uuid(),taxYear:eS().int(),documentType:oC,status:oE,documentUrl:ek().nullable(),documentHash:ek().nullable(),taxData:eN(eE()),costBasisMethod:oR.nullable(),federalWithholding:ek().nullable(),stateWithholding:ek().nullable(),stateCode:ek().nullable(),electronicConsent:eT(),deliveredAt:ek().datetime().nullable(),correctsDocumentId:ek().uuid().nullable(),irsFilingStatus:oP.nullable(),irsFilingDate:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),investorId:ek().uuid(),taxYear:eS().int(),documentType:oC,taxData:eN(eE()),costBasisMethod:oR.default("fifo"),stateCode:ek().optional(),metadata:eN(eE()).default({})});var oK=eP({name:ek(),dob:ek().optional(),address:ek().optional(),ssnLast4:ek().optional(),idType:ek().optional(),idNumber:ek().optional(),idJurisdiction:ek().optional()});eP({id:ek().uuid(),offeringId:ek().uuid(),investorId:ek().uuid(),marketplaceTenantId:ek().uuid(),ownershipPercentage:ek(),isControlPerson:eT(),isReportingThreshold:eT(),isBoiReportable:eT(),benef
1icialOwners:eR(oK).nullable(),filingStatus:oj,lastFiledAt:ek().datetime().nullable(),fincenBoiId:ek().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),investorId:ek().uuid(),beneficialOwners:eR(oK).optional(),isControlPerson:eT().optional()});var oZ=eP({minimumVestingMonths:eS().int().nullable(),minimumCliffMonths:eS().int().nullable(),postExerciseHoldMonths:eS().int().nullable(),taxFavoredMaxValue:eS().nullable(),taxFavoredMaxValueCurrency:ek().default("USD"),requiresRegulatoryApproval:eT().default(!1),approvalBody:ek().nullable(),laborLawConstraints:eR(ek()).default([])});eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid(),spvTokenId:ek().uuid().nullable(),holderId:ek().uuid(),holderType:oB.nullable(),instrumentType:oL,jurisdiction:ek().min(2).max(2),regulationType:oN.nullable(),grantDate:ek().datetime(),expirationDate:ek().datetime().nullable(),totalShares:ek(),exercisedShares:ek(),canceledShares:ek(),exercisePrice:ek().nullable(),exerciseCurrency:ek().default("USD"),fmvAtGrant:ek().nullable(),vestingScheduleId:ek().uuid().nullable(),status:o$,taxScheme:ek().nullable(),approvalStatus:oH,approvalBody:ek().nullable(),approvalReference:ek().nullable(),jurisdictionVestingRules:oZ.nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),holderId:ek().uuid(),holderType:oB.optional(),instrumentType:oL,jurisdiction:ek().min(2).max(2),regulationType:oN.optional(),grantDate:ek().datetime(),expirationDate:ek().datetime().optional(),totalShares:ek().min(1),exercisePrice:ek().optional(),exerciseCurrency:ek().default("USD"),fmvAtGrant:ek().optional(),taxScheme:ek().optional(),metadata:eN(eE()).default({})}),eP({status:o$.optional(),expirationDate:ek().datetime().optional(),approvalStatus:oH.optional(),approvalBody:ek().optional(),approvalReference:ek().optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),instrumentId:ek().uuid(),vestingType:oz,totalShares:ek(),cliffMonths:eS().int(),cliffShares:ek(),vestingPeriodMonths:eS().int(),vestingFrequency:oU,accelerationOnCoc:eT(),accelerationType:oq,createdAt:ek().datetime()}),eP({instrumentId:ek().uuid(),vestingType:oz,totalShares:ek().min(1),cliffMonths:eS().int().min(0).default(0),cliffShares:ek().default("0"),vestingPeriodMonths:eS().int().min(1),vestingFrequency:oU.default("monthly"),accelerationOnCoc:eT().default(!1),accelerationType:oq.default("none")}),eP({id:ek().uuid(),instrumentId:ek().uuid(),holderId:ek().uuid(),exerciseDate:ek().datetime(),sharesExercised:ek(),exercisePrice:ek(),fmvAtExercise:ek(),totalCost:ek(),taxableSpread:ek().nullable(),withholdingAmount:ek().nullable(),withholdingCurrency:ek().nullable(),taxElection:oW.nullable(),taxElectionDate:ek().datetime().nullable(),tokenHoldingId:ek().uuid().nullable(),paymentReference:ek().nullable(),status:oV,metadata:eN(eE()),createdAt:ek().datetime()}),eP({instrumentId:ek().uuid(),sharesExercised:ek().min(1),fmvAtExercise:ek().min(1),taxElection:oW.optional(),paymentReference:ek().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),offeringId:ek().uuid(),marketplaceTenantId:ek().uuid(),legendType:oM,legendText:ek(),regulation:ek(),restrictionPeriodDays:eS().int().nullable(),restrictionStartDate:ek().datetime().nullable(),restrictionEndDate:ek().datetime().nullable(),removable:eT(),removedAt:ek().datetime().nullable(),removedBy:ek().uuid().nullable(),removalReason:ek().nullable(),createdAt:ek().datetime()}),eP({offeringId:ek().uuid(),legendType:oM,legendText:ek().min(1),regulation:ek().min(1),restrictionPeriodDays:eS().int().optional(),restrictionStartDate:ek().datetime().optional()}),eP({id:ek().uuid(),offeringId:ek().uuid(),marketplaceTenantId:ek().uuid(),exportedBy:ek().uuid(),exportFormat:oD,exportType:oF,snapshotId:ek().uuid().nullable(),asOfDate:ek().datetime(),holderCount:eS().int(),fileUrl:ek().nullable(),fileHash:ek().nullable(),digitalSignature:ek().nullable(),watermark:ek().nullable(),ipAddress:ek().nullable(),userAgent:ek().nullable(),createdAt:ek().datetime()}),eP({offeringId:ek().uuid(),exportFormat:oD,exportType:oF,asOfDate:ek().datetime().optional(),snapshotId:ek().uuid().optional()});var oY=eP({investorId:ek().uuid(),walletAddress:ek(),onChainBalance:ek(),dbBalance:ek(),isReconciled:eT(),ownershipPercentage:ek(),accredited:eT(),jurisdiction:ek().nullable(),holdingPerio
1dStart:ek().datetime().nullable(),restrictionLegend:ek().nullable(),legalHold:eT(),lastTransactionDate:ek().datetime().nullable(),lastTransactionTxHash:ek().nullable()}),oX=eP({investorId:ek().uuid(),walletAddress:ek(),onChainBalance:ek(),dbBalance:ek(),difference:ek(),severity:eF(["critical","warning"]),possibleCause:ek()});eP({offeringId:ek().uuid(),tokenAddress:ek(),chainId:eS().int(),certificationId:ek().uuid(),certifiedAt:ek().datetime(),certifiedBy:ek(),blockNumber:eS().int(),blockTimestamp:ek().datetime(),chainStateHash:ek(),totalSupply:ek(),holders:eR(oY),totalHolders:eS().int(),dataHash:ek(),merkleRoot:ek(),attestationTxHash:ek().nullable(),dbStateHash:ek(),isReconciled:eT(),divergences:eR(oX),signature:ek(),signerPublicKey:ek()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid().nullable(),name:ek(),version:ek(),contractType:ok,chainId:eS().int(),address:ek(),implementationAddress:ek().nullable(),bytecodeHash:ek().nullable(),deploymentTxHash:ek().nullable(),deployedBy:ek().nullable(),isVerified:eT(),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1),version:ek().min(1),contractType:ok,chainId:eS().int(),address:ek().min(1),implementationAddress:ek().optional(),abi:eR(eE()).optional(),bytecodeHash:ek().optional(),deploymentTxHash:ek().optional(),metadata:eN(eE()).default({})}),eP({walletId:ek().uuid(),amount:ek(),currency:ob,sourcePaymentMethodId:ek().optional(),idempotencyKey:ek(),metadata:eN(eE()).default({})}),eP({walletId:ek().uuid(),amount:ek(),currency:ob,destinationId:ek(),destinationType:eF(["bank_account","blockchain_address"]),idempotencyKey:ek(),metadata:eN(eE()).default({})}),eP({investorId:ek().uuid(),investmentId:ek().uuid(),offeringId:ek().uuid(),fromWalletId:ek().uuid(),toWalletId:ek().uuid(),amount:ek(),currency:ob,idempotencyKey:ek(),metadata:eN(eE()).default({})}),eP({walletId:ek().uuid()}),eP({walletId:ek().uuid(),limit:eB.number().int().min(1).max(100).default(20),offset:eB.number().int().min(0).default(0),fromDate:ek().datetime().optional(),toDate:ek().datetime().optional()});var oJ=eF(["FREE","CREATOR","COLLECTIVE","AGENCY"]),oQ=eF(["PENDING","ACTIVE","SUSPENDED","TERMINATED"]),o0=eF(["PENDING","ACTIVE","SUSPENDED","INACTIVE"]),o1=eF(["EQUAL","WEIGHTED","PERFORMANCE_BASED","OWNER_FIRST"]),o2=eF(["OWNER","ADMIN","MEMBER"]),o5=eF(["INVITED","ACTIVE","SUSPENDED","LEFT"]),o3=eF(["DRAFT","PENDING_APPROVAL","APPROVED","ACTIVE","PAUSED","COMPLETED","CANCELLED"]),o4=eF(["NOT_REQUIRED","PENDING","APPROVED","REJECTED","CHANGES_REQUESTED"]),o9=eF(["PENDING","APPROVED","PAID","CANCELLED","DISPUTED"]),o6=eF(["PERCENTAGE","FIXED_PER_SALE","FIXED_PER_LEAD","TIERED"]),o8=eF(["PERCENTAGE","FIXED","TIERED"]),o7=eF(["PLATFORM","MARKETPLACE","ORGANIZATION","CAMPAIGN","PROMOTER"]),le=eF(["PENDING","PROCESSING","COMPLETED","FAILED"]),lt=eF(["ACTIVE","CANCELLED","EXPIRED","PAST_DUE"]),li=eF(["INVITED","ACTIVE","INACTIVE","REMOVED"]),la=eF(["IMAGE","VIDEO","DOCUMENT","LINK"]),ln=eF(["PERFORMANCE_ONLY","RETAINER","RETAINER_PLUS_PERFORMANCE","FLAT_FEE"]),lr=eF(["MONTHLY","BIWEEKLY","WEEKLY","ON_COMPLETION","MILESTONE"]),lo=eF(["SCHEDULED","PROCESSING","COMPLETED","FAILED","CANCELLED"]),ll=eF(["COMMISSION","RETAINER","BONUS","FLAT_FEE"]),ls=eP({totalBrands:eS(),totalReferrals:eS(),totalEarnings:eS(),last30DaysEarnings:eS(),conversionRate:eS(),activeCollectives:eS(),activeCampaigns:eS()}),ld=eP({id:ek(),tenantId:ek(),tier:oJ,status:lt,billingCycle:eF(["MONTHLY","ANNUAL"]),monthlyPrice:eS(),currentPeriodStart:ek(),currentPeriodEnd:ek(),inTrial:eT(),trialEnd:ek().nullable(),maxBrandAffiliations:eS(),maxCollectives:eS(),maxMembersPerCollective:eS(),customLinksEnabled:eT(),qrCodesEnabled:eT(),advancedAnalytics:eT(),apiAccess:eT(),whiteLabel:eT(),subAffiliatesEnabled:eT(),currentBrandAffiliations:eS(),currentCollectives:eS(),createdAt:ek(),updatedAt:ek()});eP({id:ek(),tenantId:ek(),masterAffiliateId:ek(),displayName:ek(),email:ek().email(),avatarUrl:ek().nullable(),bio:ek().nullable(),websiteUrl:ek().nullable(),socialLinks:eN(ek()).default({}),categories:eR(ek()).default([]),regions:eR(ek()).default([]),verified:eT(),subscription:ld.nullable(),stats:ls.nullable(),createdAt:ek(),updatedAt:ek()});var lu=eP({totalClicks:eS(),totalReferrals:eS(),totalConversions:eS(),totalRevenue:eS(),totalEarnings:eS(),conversionRate:e
1S(),last30DaysEarnings:eS()});eP({id:ek(),promoterCustomerId:ek(),brandCustomerId:ek(),brandName:ek(),brandLogoUrl:ek().nullable(),masterAffiliateId:ek(),referralCode:ek(),referralLink:ek(),status:oQ,commissionRate:eS(),customTerms:ek().nullable(),allowedEventTypes:eR(ek()).default([]),stats:lu.nullable(),marketplaceCustomerId:ek(),createdAt:ek(),updatedAt:ek()});var lc=eP({totalReferrals:eS(),totalEarnings:eS(),contributionPercent:eS(),lastActivityAt:ek().nullable()}),lp=eP({tenantId:ek(),displayName:ek(),avatarUrl:ek().nullable(),role:o2,revenueSharePercent:eS(),status:o5,stats:lc.nullable(),joinedAt:ek()}),lm=eP({totalMembers:eS(),activeCampaigns:eS(),totalCampaigns:eS(),totalBrands:eS(),totalEarnings:eS(),last30DaysEarnings:eS(),totalReferrals:eS(),last30DaysReferrals:eS(),averageConversionRate:eS()});eP({id:ek(),name:ek(),slug:ek(),description:ek().nullable(),avatarUrl:ek().nullable(),ownerCustomerId:ek(),marketplaceCustomerId:ek(),members:eR(lp).default([]),maxMembers:eS(),openForApplications:eT(),revenueModel:o1,platformFeePercent:eS(),ownerCutPercent:eS(),status:o0,featured:eT(),verified:eT(),subscriptionTier:oJ,stats:lm.nullable(),createdAt:ek(),updatedAt:ek()});var lf=eP({id:ek(),label:ek(),metricType:eF(["CONVERSIONS","REVENUE","REFERRALS","CLICKS"]),threshold:eS(),bonusAmount:eS(),period:eF(["CAMPAIGN","MONTHLY","WEEKLY"]),achieved:eT(),achievedAt:ek().nullable()}),lh=eP({compensationType:ln,paymentSchedule:lr,retainerAmount:eS().nullable(),retainerCurrency:ek().default("USD"),flatFeeAmount:eS().nullable(),flatFeeMilestones:eR(eP({id:ek(),label:ek(),amount:eS(),completed:eT(),completedAt:ek().nullable()})).default([]),commissionRate:eS().nullable(),commissionType:o6.nullable(),performanceBonuses:eR(lf).default([]),totalBudget:eS().nullable(),budgetSpent:eS().default(0),budgetRemaining:eS().nullable()}),lg=eP({clicks:eS(),referrals:eS(),conversions:eS(),revenue:eS(),earnings:eS(),conversionRate:eS()}),lv=eP({compensationType:ln,retainerAmount:eS().nullable(),commissionRate:eS().nullable(),performanceBonuses:eR(lf).default([]),totalPaid:eS().default(0),nextPaymentDate:ek().nullable(),nextPaymentAmount:eS().nullable()}),ly=eP({tenantId:ek(),displayName:ek(),referralCode:ek(),referralLink:ek(),revenueSharePercent:eS(),status:li,compensation:lv.nullable(),stats:lg.nullable(),joinedAt:ek()}),lb=eP({id:ek(),name:ek(),type:la,url:ek(),thumbnailUrl:ek().nullable(),description:ek().nullable()});eP({id:ek(),name:ek(),slug:ek(),description:ek().nullable(),collectiveId:ek(),collectiveName:ek(),brandCustomerId:ek(),brandName:ek(),brandLogoUrl:ek().nullable(),marketplaceCustomerId:ek(),commissionRate:eS(),commissionType:o6,revenueModel:o1,platformFeePercent:eS(),compensation:lh.nullable(),participants:eR(ly).default([]),assets:eR(lb).default([]),status:o3,brandApprovalStatus:o4,startDate:ek().nullable(),endDate:ek().nullable(),createdAt:ek(),updatedAt:ek()});var l_=eP({id:ek(),affiliateRelationshipId:ek(),promoterCustomerId:ek(),brandCustomerId:ek(),brandName:ek(),transactionId:ek(),transactionAmount:eS(),commissionAmount:eS(),commissionRate:eS(),status:o9,earningType:ll.default("COMMISSION"),payoutId:ek().nullable(),isRecurring:eT(),recurringNumber:eS().nullable(),campaignId:ek().nullable(),collectiveId:ek().nullable(),createdAt:ek(),updatedAt:ek()});eP({id:ek(),scope:o7,tenantId:ek().nullable(),organizationId:ek().nullable(),promoterId:ek().nullable(),campaignId:ek().nullable(),eventTypePattern:ek(),calculationType:o8,commissionRate:eS().nullable(),fixedAmount:eS().nullable(),minCommission:eS().nullable(),maxCommission:eS().nullable(),tiers:eR(eP({minAmount:eS(),maxAmount:eS().nullable(),rate:eS()})).default([]),recurringEnabled:eT(),recurringDurationMonths:eS().nullable(),recurringRate:eS().nullable(),minTransactionAmount:eS().nullable(),maxTransactionAmount:eS().nullable(),priority:eS(),active:eT(),createdAt:ek(),updatedAt:ek()}),eP({id:ek(),tenantId:ek(),amount:eS(),currency:ek(),status:le,commissionIds:eR(ek()).default([]),stripeTransferId:ek().nullable(),bankAccountLast4:ek().nullable(),failureReason:ek().nullable(),createdAt:ek(),updatedAt:ek()}),eP({id:ek(),campaignId:ek(),campaignName:ek(),participantCustomerId:ek(),participantDisplayName:ek(),brandCustomerId:ek(),brandName:ek(),earningType:ll,amount:eS(),currency:ek().default("USD"),scheduledDate:ek(),status:lo,processedAt:ek().nullable(),failureReason:ek().nullable(),milestoneId:ek().nullable(),bonusId:ek().nullable(),payoutId:ek().nullable(),createdAt:ek(),updatedAt:ek()}),eP({earnings:eP({total:eS(),last30Days:eS(),pending:eS(),lastPayout:eS()}
1),referrals:eP({total:eS(),last30Days:eS(),conversionRate:eS()}),brands:eP({total:eS(),active:eS(),pending:eS()}),collectives:eP({owned:eS(),member:eS(),activeCampaigns:eS()}),recentCommissions:eR(l_),earningsChart:eR(eP({date:ek(),earnings:eS(),referrals:eS()})),topBrands:eR(eP({brandCustomerId:ek(),brandName:ek(),brandLogoUrl:ek().nullable(),totalEarnings:eS(),totalReferrals:eS(),conversionRate:eS()}))}),eP({id:ek(),affiliateProfileId:ek(),offeringId:ek().nullable(),campaignId:ek().nullable(),referralCode:ek(),shortCode:ek(),targetUrl:ek(),clicks:eS(),conversions:eS(),metadata:eN(eE()).default({}),marketplaceTenantId:ek(),tenantId:ek(),createdAt:ek(),updatedAt:ek()}),eP({affiliateProfileId:ek(),offeringId:ek().optional(),campaignId:ek().optional(),targetUrl:ek().url(),metadata:eN(eE()).optional()}),eP({id:ek(),referralLinkId:ek(),ipAddress:ek().nullable(),userAgent:ek().nullable(),referrer:ek().nullable(),convertedToInvestorId:ek().nullable(),convertedAt:ek().nullable(),createdAt:ek()}),eP({id:ek(),marketplaceTenantId:ek(),tenantId:ek(),assetId:ek().nullable(),kitType:eF(["logo","banner","social","email","document","video","other"]),displayName:ek(),description:ek().nullable(),isPublic:eT(),sortOrder:eS(),createdAt:ek(),updatedAt:ek()}),eP({assetId:ek().optional(),kitType:eF(["logo","banner","social","email","document","video","other"]),displayName:ek().min(1),description:ek().optional(),isPublic:eT().default(!0),sortOrder:eS().int().default(0)}),eP({brandCustomerId:ek(),marketplaceCustomerId:ek(),message:ek().optional()}),eP({name:ek().min(1),description:ek().optional(),marketplaceCustomerId:ek(),revenueModel:o1,openForApplications:eT().default(!0),maxMembers:eS().min(2).default(10),ownerCutPercent:eS().min(0).max(100).default(0)}),eP({displayName:ek().optional(),bio:ek().optional(),websiteUrl:ek().optional(),avatarUrl:ek().optional(),socialLinks:eN(ek()).optional(),categories:eR(ek()).optional(),regions:eR(ek()).optional()}),eP({amount:eS().positive(),currency:ek().default("USD")});var lx=eF(["public","members","private"]),lA=eF(["draft","review","approved","changes_requested","published","scheduled","archived"]),lI=eF(["editorial","reminder","approval","general"]),lw=eF(["pending","approved","spam","deleted"]),lk=eF(["pending","syndicating","syndicated","failed","deleted"]),lS=eF(["wordpress","linkedin"]),lT=eF(["active","expired","revoked"]);eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid().nullable(),type:eD("article"),title:ek(),slug:ek(),body:ek().nullable(),richContent:eN(eE()).nullable(),status:lA,authorId:ek().uuid().nullable(),tags:eR(ek()),visibility:lx,excerpt:ek().nullable(),featuredImage:ek().nullable(),category:ek().nullable(),seoTitle:ek().nullable(),seoDescription:ek().nullable(),readingTimeMinutes:eS().int().nullable(),viewCount:eS().int(),likeCount:eS().int(),commentCount:eS().int(),allowComments:eT(),reviewerId:ek().uuid().nullable(),reviewedAt:ek().datetime().nullable(),reviewNote:ek().nullable(),customSlug:ek().nullable(),canonicalUrl:ek().nullable(),scheduledPublishAt:ek().datetime().nullable(),featuredImageAssetId:ek().uuid().nullable(),publishedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({title:ek().min(1).max(500),body:ek().optional(),richContent:eN(eE()).optional(),excerpt:ek().max(500).optional(),featuredImage:ek().url().optional(),visibility:lx.default("public"),tags:eR(ek()).default([]),category:ek().optional(),seoTitle:ek().max(70).optional(),seoDescription:ek().max(160).optional(),allowComments:eT().default(!0),customSlug:ek().max(200).optional(),canonicalUrl:ek().url().optional(),scheduledPublishAt:ek().datetime().optional(),featuredImageAssetId:ek().uuid().optional(),syndicateTo:eR(ek().uuid()).default([]),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:lA.optional(),visibility:lx.optional(),category:ek().optional(),tag:ek().optional(),authorId:ek().uuid().optional(),search:ek().optional()}),eP({id:ek().uuid(),contentItemId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),parentCommentId:ek().uuid().nullable(),authorId:ek().uuid().nullable(),authorName:ek(),authorEmail:ek().nullable(),body:ek(),status:lw,createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({contentItemId:ek().uuid(),parentCommentId:ek().uuid().optional(),authorName:ek().min(1).max(255),authorEmail:ek().email().optional(),body:ek().min(1).max(5e3)}),eP({id:ek().uuid(),contentItemId:ek().uuid(),blogConnectionId:ek().uuid(),platform:lS,status:lk,externalId:ek().nullable(),externalUrl:ek().nullable(),lastSyncedAt:ek().datetime().nullable(),failureReason:ek().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),platform:lS,name:ek(),siteUrl:ek().nullable(),apiUrl:ek().nullable(),status:lT,expiresAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({platform:lS,name:ek().min(1).max(255),siteUrl:ek().url().optional(),apiUrl:ek().url().optional(),accessToken:ek().min(1),refreshToken:ek().optional()}),eP({id:ek().uuid(),contentItemId:ek().uuid(),tenantId:ek().uuid(),authorId:ek().uuid(),authorName:ek(),body:ek(),noteType:lI,createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({contentItemId:ek().uuid(),body:ek().min(1).max(5e3),noteType:lI.default("editorial")}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),name:ek(),slug:ek(),description:ek().nullable(),color:ek().nullable(),sortOrder:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(100),description:ek().max(500).optional(),color:ek().max(20).optional(),sortOrder:eS().int().default(0)}).partial();var lC=eP({id:ek().uuid(),name:ek(),sortOrder:eS().int(),color:ek().nullable(),isTerminal:eT(),isCurrent:eT
1()});eP({pipelineId:ek().uuid(),pipelineName:ek(),itemId:ek().uuid(),stageName:ek(),stageColor:ek().nullable(),stages:eR(lC),assigneeId:ek().uuid().nullable(),priority:ek(),enteredStageAt:ek().datetime()}),eP({reviewerId:ek().uuid().optional(),note:ek().max(2e3).optional()}),eP({action:eF(["approve","request_changes","reject"]),note:ek().max(2e3).optional()}),eP({id:ek().uuid(),name:ek(),description:ek().nullable(),category:eF(["blog","social","engagement","notification"]),icon:ek().nullable(),triggerType:ek(),triggerConfig:eN(eE()),steps:eR(eN(eE())),defaultConfig:eN(eE()),isSystem:eT(),version:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),templateId:ek().uuid().nullable(),name:ek(),triggerType:ek(),triggerConfig:eN(eE()),conditions:eR(eN(eE())),steps:eR(eN(eE())),channelIds:eR(ek()),enabled:eT(),lastTriggeredAt:ek().datetime().nullable(),runCount:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({templateId:ek().uuid(),name:ek().min(1).max(255),channelIds:eR(ek()).default([]),triggerConfig:eN(eE()).default({}),conditions:eR(eN(eE())).default([])}),eP({name:ek().min(1).max(255).optional(),channelIds:eR(ek()).optional(),triggerConfig:eN(eE()).optional(),conditions:eR(eN(eE())).optional(),enabled:eT().optional()}),eP({id:ek().uuid(),instanceId:ek().uuid(),triggerEventId:ek().nullable(),triggerPayload:eN(eE()),status:eF(["pending","running","completed","failed"]),stepsCompleted:eS().int(),stepsTotal:eS().int(),error:ek().nullable(),startedAt:ek().datetime().nullable(),completedAt:ek().datetime().nullable(),createdAt:ek().datetime()});var lE=eF(["facebook","instagram","twitter","linkedin","youtube","tiktok","discord","slack","reddit","threads","whatsapp"]);eP({postId:ek().uuid(),socialAccountId:ek().uuid(),platform:lE,content:ek().min(1),mediaUrls:eR(ek()).default([]),metadata:eN(eE()).default({}),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid()}),eP({platform:lE,accessToken:ek().min(1)}),eP({postId:ek().uuid(),externalPostId:ek().min(1),platform:lE,socialAccountId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),platform:lE,apiKey:ek().nullable(),apiSecret:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({platform:lE,apiKey:ek().min(1),apiSecret:ek().min(1),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),socialPostId:ek().uuid().nullable(),platform:ek(),status:eF(["success","failed"]),attempt:eS().int(),externalPostId:ek().nullable(),publishedUrl:ek().nullable(),errorMessage:ek().nullable(),durationMs:eS().int().nullable(),metadata:eN(eE()),createdAt:ek().datetime()});var lR=eF(["public","members","private"]),lP=eF(["discussion","question","announcement","poll"]),lO=eF(["draft","pending_review","published","rejected","archived"]),lM=eF(["owner","moderator","member"]),lN=eF(["pending","approved","spam","deleted"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),slug:ek(),description:ek().nullable(),visibility:lR,postCount:eS().int(),memberCount:eS().int(),createdBy:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().max(2e3).optional(),visibility:lR.default("public"),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),visibility:lR.optional(),search:ek().optional()}),eP({id:ek().uuid(),groupId:ek().uuid(),name:ek(),slug:ek(),description:ek().nullable(),color:ek().nullable(),sortOrder:eS().int(),postCount:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(100),description:ek().max(500).optional(),color:ek().max(20).optional(),sortOrder:eS().int().default(0)}).partial(),eP({id:ek().uuid(),groupId:ek().uuid(),topicId:ek().uuid().nullable(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),authorId:ek().uuid().nullable(),authorName:ek(),title:ek(),body:ek(),richContent:eN(eE()).nullable(),postType:lP,status:lO,pinned:eT(),allowReplies:eT(),replyCount:eS().int(),likeCount:eS().int(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({title:ek().min(1).max(500),body:ek().min(1),richContent:eN(eE()).optional(),topicId:ek().uuid().optional(),postType:lP.default("discussion"),allowReplies:eT().default(!0),metadata:eN(eE()).default({})}),eP({title:ek().min(1).max(500).optional(),body:ek().min(1).optional(),richContent:eN(eE()).optional(),topicId:ek().uuid().nullable().optional(),postType:lP.optional(),allowReplies:eT().optional(),status:lO.optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),topicId:ek().uuid().optional(),status:lO.optional(),postType:lP.optional(),search:ek().optional()}),eP({id:ek().uuid(),postId:ek().uuid(),parentReplyId:ek().uuid().nullable(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),authorId:ek().uuid().nullable(),authorName:ek(),body:ek(),status:lN,likeCount:eS().int(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({parentReplyId:ek().uuid().optional(),body:ek().min(1).max(1e4)}),eP({id:ek().uuid(),groupId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),userId:ek().uuid(),role:lM,muteNotifications:eT(),joinedAt:ek().datetime(),createdAt:ek().datetime(),updatedAt:ek().datetime()});var lj=eF(["company","location","product","service"]),lD=eF(["google","yelp","facebook","trustpilot","g2","capterra","internal"]),lF=eF(["positive","neutral","negative"]);eP({id:ek().uuid(),tenantId:ek().uuid(),entityType:lj,entityId:ek().uuid(),overallScore:ek().nullable(),reviewCount:eS().int(),platformScores:eN(eE()),lastSyncedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({entityType:lj,entityId:ek().uuid(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),reputationProfileId:ek().uuid(),platform:lD,rating:ek(),title:ek().nullable(),body:ek().nullable(),authorName:ek().nullable(),authorExternalId:ek().nullable(),sentiment:lF.nullable(),externalId:ek().nullable(),publishedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),platform:lD.optional(),sentiment:lF.optional(),reputationProfileId:ek().uuid().optional()}),eP({reviewId:ek().uuid(),body:ek().min(1)});var lL=eF(["import","export","update","delete"]),lB=eF(["connection","lead","company","deal"]),lz=eF(["pending","processing","completed","failed","canceled"]);
1eF(["pending","success","failed","skipped"]),eP({id:ek().uuid(),tenantId:ek().uuid(),type:lL,entityType:lB,status:lz,totalRecords:eS().int(),processedRecords:eS().int(),failedRecords:eS().int(),fileUrl:ek().nullable(),resultUrl:ek().nullable(),mapping:eN(eE()),errors:eR(eN(eE())),startedAt:ek().datetime().nullable(),completedAt:ek().datetime().nullable(),createdById:ek().uuid(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({entityType:lB,fileUrl:ek().url(),mapping:eN(eE()).default({}),metadata:eN(eE()).default({})}),eP({entityType:lB,filters:eN(eE()).default({}),columns:eR(ek()).default([]),format:eF(["csv","json","xlsx"]).default("csv"),metadata:eN(eE()).default({})}),eP({entityType:lB,updates:eR(eP({id:ek().uuid(),fields:eN(eE())})).min(1),metadata:eN(eE()).default({})});var lU=eF(["communication","marketing","transactional"]),lq=eF(["email","sms","push","phone","postal"]),l$=eF(["immediate","daily_digest","weekly_digest","monthly"]);eP({id:ek().uuid(),tenantId:ek().uuid(),connectionId:ek().uuid(),preferenceType:lU,channel:lq,enabled:eT(),frequency:l$.nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({preferences:eR(eP({preferenceType:lU,channel:lq,enabled:eT(),frequency:l$.optional()})).min(1)}),eP({id:ek().uuid(),tenantId:ek().uuid(),accountId:ek().uuid(),entityType:ek(),gridColumns:eR(ek()),sortBy:ek().nullable(),sortOrder:eF(["asc","desc"]).nullable(),filters:eN(eE()),pageSize:eS().int(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({entityType:ek().min(1),gridColumns:eR(ek()).optional(),sortBy:ek().optional(),sortOrder:eF(["asc","desc"]).optional(),filters:eN(eE()).optional(),pageSize:eS().int().min(5).max(100).optional(),metadata:eN(eE()).default({})});var lH=eF(["general","contract","proposal","invoice","report","presentation","template","legal","marketing","other"]),lV=eF(["lead","connection","company","deal","campaign","task"]),lW=eF(["uploading","active","archived","deleted"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek().min(1),originalName:ek().nullable().optional(),mimeType:ek(),size:eS().int().positive(),extension:ek().nullable().optional(),assetId:ek().uuid().nullable().optional(),storageKey:ek().nullable().optional(),url:ek().nullable().optional(),thumbnailUrl:ek().nullable().optional(),folderId:ek().uuid().nullable().optional(),category:lH.default("general"),tags:eR(ek()).default([]),description:ek().nullable().optional(),entityType:lV.nullable().optional(),entityId:ek().uuid().nullable().optional(),status:lW,uploadedById:ek().uuid().nullable().optional(),isShared:eT().default(!1),accessPolicy:om.default("OWNER_ONLY"),securityLevel:op.default("INTERNAL"),sharedWith:eR(of).default([]),allowedRoles:eR(ek()).default([]),ownerId:ek().uuid().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime(),archivedAt:ek().datetime().nullable().optional()}),eP({name:ek().min(1),mimeType:ek(),size:eS().int().positive(),extension:ek().optional(),folderId:ek().uuid().optional(),category:lH.optional(),tags:eR(ek()).optional(),description:ek().optional(),entityType:lV.optional(),entityId:ek().uuid().optional(),accessPolicy:om.optional(),securityLevel:op.optional(),allowedRoles:eR(ek()).optional()}),eP({name:ek().min(1).optional(),folderId:ek().uuid().nullable().optional(),category:lH.optional(),tags:eR(ek()).optional(),description:ek().optional(),entityType:lV.nullable().optional(),entityId:ek().uuid().nullable().optional(),accessPolicy:om.optional(),securityLevel:op.optional(),allowedRoles:eR(ek()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),category:lH.optional(),folderId:ek().uuid().optional(),entityType:lV.optional(),entityId:ek().uuid().optional(),status:lW.optional(),sortBy:eF(["name","size","createdAt","updatedAt"]).default("createdAt"),sortOrder:eF(["asc","desc"]).default("desc")}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),parentId:ek().uuid().nullable().optional(),name:ek().min(1),path:ek().nullable().optional(),icon:ek().nullable().optional(),color:ek().nullable().optional(),isSystem:eT(),sortOrder:eS().int(),accessPolicy:om.default("OWNER_ONLY"),securityLevel:op.default("INTERNAL"),sharedWith:eR(of).default([]),allowedRoles:eR(ek()).default([]),ownerId:ek().uuid().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1),parentId:ek().uuid().optional(),icon:ek().optional(),color:ek().optional(),sortOrder:eS().int().optional(),accessPolicy:om.optional(),securityLevel:op.optional(),allowedRoles:eR(ek()).optional()}),eP({name:ek().min(1).optional(),parentId:ek().uuid().nullable().optional(),icon:ek().optional(),color:ek().optional(),sortOrder:eS().int().optional(),accessPolicy:om.optional(),securityLevel:op.optional(),allowedRoles:eR(ek()).optional()}),eP({documentIds:eR(ek().uuid()).min(1),folderId:ek().uuid().nullable()}),eP({documentIds:eR(ek().uuid()).min(1)});var lG=eF(["onedrive","google_drive","dropbox","box"]),lK=eF(["pending","connected","expired","revoked","error"]),lZ=eF(["file","folder","shortcut"]);eP({id:ek(),tenantId:ek(),marketplaceTenantId:ek().optional(),provider:lG,status:lK,accountEmail:ek().email().optional(),accountName:ek().optional(),providerAccountId:ek().optional(),rootFolderId:ek().optional(),scopes:eR(ek()).default([]),lastSyncedAt:ek().datetime().nullable().optional(),expiresAt:ek().datetime().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()});var lY=eP({id:ek(),name:ek(),mimeType:ek(),size:eS().optional(),extension:ek().optional(),fileType:lZ,parentId:ek().nullable().optional(),path:ek().optional(),thumbnailUrl:ek().url().optional(),webViewUrl:ek().url().optional(),downloadUrl:ek().url().optional(),iconUrl:ek().url().optional(),isShared:eT().default(!1),lastModifiedAt:ek().datetime().optional(),lastModifiedBy:ek().optional(),createdAt:ek().datetime().optional(),provider:lG,connectionId:ek()});eP({provider:lG,redirectUri:ek().url(),scopes:eR(ek()).optional()}),eP({provider:lG,code:ek(),redirectUri:ek().url(),state:ek().optional()}),eP({authUrl:ek().url(),state:ek()}),eP({connectionId:ek(),folderId:ek().optional(),pageToken:ek().optional(),pageSize:eB.number().int().min(1).max(100).default(50),query:ek().optional(),mimeTypeFilter:eR(ek()).optional(),sortBy:eF(["name","modifiedTime","size"]).default("name"),sortOrder:eF(["asc","desc"]).default("asc")}),eP({files:eR(lY),nextPageToken:ek().nullable().optional(),currentFolder:lY.nullable().optional(),breadcrumb:eR(eP({id:ek(),name:ek()})).default([])}),eP({connectionId:ek(),query:ek().min(1),mimeTypeFilter:eR(ek()).optional(),pageToken:ek().optional(),pageSize:eB.number().int().min(1).max(100).default(50)}),eP({connectionId:ek(),fileId:ek(),name:ek().optional(),folderId:ek().uuid().optional(),entityType:ek().optional(),entityId:ek().uuid().optional(),category:ek().optional(),tags:eR(ek()).optional(),description:ek().optional()}),eP({assetId:ek(),name:ek(),provider:lG,externalFileId:ek(),webViewUrl:ek().url().optional(),thumbnailUrl:ek().url().optional(),mimeType:ek(),size:eS().optional()}),eP({connectionId:ek(),files:eR(eP({fileId:ek(),name:ek().optional(),folderId:ek().uuid().optional(),category:ek().optional(),tags:eR(ek()).optional()})).min(1).max(50),entityType:ek().optional(),entityId:ek().uuid().optional()}),eP({provider:lG.optional(),status:lK.optional()});var lX=eF(["email","sms","push","phone","postal"]),lJ=eF(["granted","revoked","pending"]),lQ=eF(["form","import","api","manual","double_opt_in"]),l0=eF(["content_moderation","gdpr_check","can_spam","ccpa"]),l1=eF(["pending","approved","rejected","needs_revision"]),l2=eF(["user","system","api"]);eP({id:ek().uuid(),tenantId:ek().uuid(),connectionId:ek().uuid(),channel:lX,consentStatus:lJ,consentSource:lQ,consentDate:ek().datetime(),revokeDate:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({connectionId:ek().uuid(),channel:lX,consentSource:lQ,metadata:eN(eE()).default({})}),eP({connectionId:ek().uuid(),channel:lX}),eP({connectionId:ek().uuid(),channel:lX.optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),action:ek(),entityType:ek(),entityId:ek().uuid(),actorId:ek().uuid().nullable(),actorType:l2.nullable(),previousState:eN(eE()).nullable(),newState:eN(eE()).nullable(),ipAddress:ek().nullable(),userAgent:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),entityType:ek().optional(),entityId:ek().uuid().optional(),actorId:ek().uuid().optional(),action:ek().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),entityType:ek(),entityId:ek().uuid(),reviewType:l0,status:l1,findings:eN(eE()),reviewedById:ek().uuid().nullable(),reviewedAt:ek().datetime().nullable(),createdAt:ek().datetime()}),eP({entityType:ek().min(1),entityId:ek().uuid(),reviewType:l0,metadata:eN(eE()).default({})}),eP({passed:eT(),checks:eR(eP({name:ek(),passed:eT(),message:ek().optional()}))});
1var l5=eF(["access","deletion","portability","rectification","restriction","opt_out"]),l3=eF(["pending","processing","completed","denied"]),l4=eF(["gdpr","uk_gdpr","ccpa","pdpa","dpdpa","difc","rbi"]),l9=eF(["adequacy_decision","standard_contractual_clauses","binding_corporate_rules","consent","derogation"]),l6=eF(["sub_processor","controller","joint_controller"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),requestType:l5,subjectEmail:ek(),subjectEmailBlindIndex:ek().nullable().optional(),subjectAccountId:ek().uuid().nullable().optional(),status:l3,regulation:l4,responseDeadline:ek().datetime(),completedAt:ek().datetime().nullable().optional(),exportUrl:ek().nullable().optional(),denialReason:ek().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime()}),eP({requestType:l5,subjectEmail:ek().email(),subjectAccountId:ek().uuid().optional(),regulation:l4,metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:l3.optional(),requestType:l5.optional(),regulation:l4.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),sourceZone:ek(),destinationZone:ek(),legalBasis:l9,dataCategories:eR(ek()).default([]),transferPurpose:ek(),approvedAt:ek().datetime().nullable().optional(),expiresAt:ek().datetime().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime()}),eP({sourceZone:ek().min(1),destinationZone:ek().min(1),legalBasis:l9,dataCategories:eR(ek()).min(1),transferPurpose:ek().min(1),expiresAt:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),processorName:ek(),processorType:l6,dataCategories:eR(ek()).default([]),processingPurposes:eR(ek()).default([]),retentionPeriod:ek().nullable().optional(),technicalMeasures:eR(ek()).default([]),signedAt:ek().datetime().nullable().optional(),expiresAt:ek().datetime().nullable().optional(),documentUrl:ek().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({processorName:ek().min(1),processorType:l6,dataCategories:eR(ek()).min(1),processingPurposes:eR(ek()).min(1),retentionPeriod:ek().optional(),technicalMeasures:eR(ek()).default([]),expiresAt:ek().datetime().optional(),documentUrl:ek().optional(),metadata:eN(eE()).default({})});var l8=eF(["azure_b2c","auth0","firebase","entra_external"]),l7=eP({tenantId:ek().min(1),clientId:ek().min(1),clientSecret:ek().min(1),b2cTenantName:ek().min(1),policyName:ek().default("B2C_1_susi"),domain:ek().optional()}),se=eP({domain:ek().min(1),clientId:ek().min(1),clientSecret:ek().min(1),audience:ek().optional(),connection:ek().default("email")}),st=eP({projectId:ek().min(1),apiKey:ek().min(1),serviceAccountJson:ek().min(1)}),si=eP({tenantId:ek().min(1),clientId:ek().min(1),clientSecret:ek().min(1),ciamTenantName:ek().min(1),customDomain:ek().optional(),scopes:eR(ek()).optional()});eM("providerType",[eP({providerType:eD("azure_b2c"),config:l7}),eP({providerType:eD("auth0"),config:se}),eP({providerType:eD("firebase"),config:st}),eP({providerType:eD("entra_external"),config:si})]),eP({externalUserId:ek(),email:ek().email(),firstName:ek().nullable(),lastName:ek().nullable(),metadata:eN(eE()).default({})}),eP({email:ek().email(),firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),password:ek().min(8).optional(),roleIds:eR(ek().uuid()).optional(),metadata:eN(eE()).optional()}),eP({firstName:ek().min(1).max(100).optional(),lastName:ek().min(1).max(100).optional(),email:ek().email().optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),email:ek().email(),firstName:ek(),lastName:ek(),status:ek(),externalId:ek().nullable(),providerType:l8.nullable(),lastSyncedAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({search:ek().optional(),status:eF(["active","inactive","suspended"]).optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({accountId:ek().uuid()});var sa=eF(["pending","active","suspended","terminated"]),sn=eF(["sec_regulated","fca_regulated","mas_regulated","dfsa_regulated","sebi_regulated","eu_mifid","eu_mica","offshore_light","offshore_exempt","other"]),sr=eF(["pass","fail","review_required"]),so=eF(["pass","fail","warning"]),sl=eS().int().min(1).max(5);eF(["US","GB","SG","AE_DIFC","AE_ADGM","IN","EU_DE","EU_FR","EU_NL","EU_IE","EU_LU","HK","JE","GG","IM","MT","CH","MU","VG","KY","BM","PA","BZ","KN"]),eF(["us","eu","uk","apac","india","me","latam"]);var ss=eP({displayName:ek(),localTitle:ek(),licensingBody:ek(),requiredLicenses:eR(ek())}),sd=eP({accreditationRequired:eT(),maxNonAccreditedInvestment:eS().nullable(),coolingOffPeriodDays:eS(),investorCategories:eR(ek())}),su=eP({spvType:ek(),defaultJurisdiction:ek(),registrationAuthority:ek(),requiredDocuments:eR(ek())}),sc=eP({platformFeePercent:eS(),operatorFeePercent:eS(),managementFeePercent:eS(),performanceFeePercent:eS(),currency:ek()}),sp=eP({kycProvider:ek(),amlProvider:ek(),accreditationProvider:ek(),reportingFrequency:ek(),regulatoryBody:ek(),requiredDisclosures:eR(ek())}),sm=eP({taxTreatyNetwork:eR(ek()),withholdingRate:eS(),reportingStandard:ek(),fiscalYearEnd:ek()});eF(["self_service","sponsor_invited","investor_invited"]),eP({marketplaceTenantId:ek().uuid(),firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),email:ek().email(),phone:ek().optional(),firmName:ek().min(1).max(200),roleType:eF(["broker_dealer","ria"]),credentials:eP({licenseType:ek().optional(),licenseNumber:ek().optional(),jurisdiction:ek().optional(),firmCrdNumber:ek().optional()}).default({}),referralAccountId:ek().uuid().optional(),referralInvestorId:ek().uuid().optional()}),eP({reason:ek().min(1).max(500)}),eP({id:ek().uuid(),operatorAccountId:ek().uuid(),marketplaceTenantId:ek().uuid(),status:sa,credentials:eN(eE()).default({}),feeScheduleOverride:eN(eE()).nullable().optional(),activatedAt:ek().nullable().optional(),terminatedAt:ek().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({operatorAccountId:ek().uuid(),marketplaceTenantId:ek().uuid(),credentials:eN(eE()).optional().default({}),feeScheduleOverride:eN(eE()).optional(),metadata:eN(eE()).optional().default({})}),eP({status:sa.optional(),credentials:eN(eE()).optional(),feeScheduleOverride:eN(eE()).nullable().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().optional(),limit:eB.number().optional(),operatorAccountId:ek().uuid().optional(),status:sa.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),jurisdiction:ek(),regime:sn,operatorRole:ss,investorRules:sd,entityTemplates:su,feeSchedule:sc,compliance:sp,taxReporting:sm,metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()});var sf=eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),operatorAccountId:ek().uuid(),snapshotDate:ek(),totalAum:ek(),propertyCount:eS(),investorCount:eS(),managementFeeAccrued:ek(),metadata:eN(eE()).default({}),createdAt:ek()});eP({currentAum:ek(),propertyCount:eS(),investorCount:eS(),managementFeeYtd:ek(),snapshots:eR(sf)});var sh=eP({checkType:ek(),result:so,detail:ek()});eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),investorId:ek().uuid(),offeringId:ek().uuid(),offeringJurisdiction:ek(),investorJurisdiction:ek(),overallResult:sr,checks:eR(sh),metadata:eN(eE()).default({}),createdAt:ek()}),eP({investorId:ek().uuid(),offeringId:ek().uuid(),investorJurisdiction:ek(),offeringJurisdiction:ek()}),eP({page:eB.number().optional(),limit:eB.number().optional(),investorId:ek().uuid().optional(),offeringId:ek().uuid().optional(),overallResult:sr.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),parentOperatorId:ek().uuid(),childOperatorId:ek().uuid(),tier:eS().int().min(1).max(5),overrideRate:ek().nullable(),isActive:eT(),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({parentOperatorId:ek().uuid(),childOperatorId:ek().uuid(),tier:sl,overrideRate:ek().optional(),metadata:eN(eE()).optional().default({})});var sg=eF(["trail","upfront","override"]),sv=eF(["pending","collected","paid","waived","reversed"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),operatorAccountId:ek().uuid(),affiliationId:ek().uuid(),investmentId:ek().uuid().nullable(),distributionId:ek().nullable(),offeringId:ek().nullable(),investorId:ek().nullable(),feeType:sg,grossAmount:ek(),platformShare:ek(),netAmount:ek(),currency:ek(),commissionRate:ek(),investmentAmount:ek().nullable(),status:sv,paidAt:ek().nullable(),periodStart:ek().nullable(),periodEnd:ek().nullable(),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),operatorAccountId:ek().uuid().optional(),affiliationId:ek().uuid().optional(),offeringId:ek().uuid().optional(),feeType:sg.optional(),status:sv.optional()}),eP({totalEarned:ek(),totalPending:ek(),totalPaid:ek(),commissionRate:ek(),entryCount:eS(),currency:ek()});var sy=eF(["sponsor","investor","fea_agent","ria","broker_dealer"]),sb=eF(["public","members","private"]),s_=eF(["draft","published","archived"]),sx=eF(["platform","external"]),sA=eF(["real_estate","private_equity","venture_capital","fixed_income","public_equity","crypto","fund","reit","art_collectibles","infrastru
1cture","natural_resources","other"]),sI=eF(["active","exited","pending","written_off"]),sw=eF(["license","certification","registration","designation","award","membership"]);eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid().nullable(),accountId:ek().uuid(),actorType:sy,displayName:ek(),headline:ek().nullable(),bio:ek().nullable(),slug:ek(),avatarUrl:ek().nullable(),coverImageUrl:ek().nullable(),visibility:sb,status:s_,totalHoldings:eS().int(),totalValue:ek().nullable(),currency:ek(),specializations:eR(ek()),geographies:eR(ek()),verticals:eR(ek()),contactEmail:ek().nullable(),website:ek().nullable(),socialLinks:eN(ek()),contentPageId:ek().uuid().nullable(),metadata:eN(eE()),publishedAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({actorType:sy,displayName:ek().min(1).max(200),headline:ek().max(500).optional(),bio:ek().max(5e3).optional(),avatarUrl:ek().url().optional(),coverImageUrl:ek().url().optional(),visibility:sb.default("private"),specializations:eR(ek()).default([]),geographies:eR(ek()).default([]),verticals:eR(ek()).default([]),contactEmail:ek().email().optional(),website:ek().url().optional(),socialLinks:eN(ek()).default({}),metadata:eN(eE()).default({})}),eP({displayName:ek().min(1).max(200).optional(),headline:ek().max(500).optional(),bio:ek().max(5e3).optional(),avatarUrl:ek().url().nullable().optional(),coverImageUrl:ek().url().nullable().optional(),visibility:sb.optional(),specializations:eR(ek()).optional(),geographies:eR(ek()).optional(),verticals:eR(ek()).optional(),contactEmail:ek().email().nullable().optional(),website:ek().url().nullable().optional(),socialLinks:eN(ek()).optional(),metadata:eN(eE()).optional()}),eP({actorType:sy.optional(),visibility:sb.optional(),status:s_.optional(),search:ek().optional(),vertical:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({id:ek().uuid(),portfolioId:ek().uuid(),tenantId:ek().uuid(),source:sx,platformEntityType:ek().nullable(),platformEntityId:ek().uuid().nullable(),name:ek(),description:ek().nullable(),category:sA,subcategory:ek().nullable(),investedAmount:ek().nullable(),currentValue:ek().nullable(),currency:ek(),irr:ek().nullable(),multiple:ek().nullable(),distributionsReceived:ek().nullable(),holdingStatus:sI,acquisitionDate:ek().nullable(),exitDate:ek().nullable(),imageUrl:ek().nullable(),location:ek().nullable(),externalUrl:ek().nullable(),displayOrder:eS().int(),featured:eT(),metadata:eN(eE()),isPublic:eT(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({source:sx.default("external"),platformEntityType:ek().optional(),platformEntityId:ek().uuid().optional(),name:ek().min(1).max(300),description:ek().max(5e3).optional(),category:sA,subcategory:ek().max(100).optional(),investedAmount:ek().optional(),currentValue:ek().optional(),currency:ek().default("USD"),irr:ek().optional(),multiple:ek().optional(),distributionsReceived:ek().optional(),holdingStatus:sI.default("active"),acquisitionDate:ek().optional(),exitDate:ek().optional(),imageUrl:ek().url().optional(),location:ek().max(200).optional(),externalUrl:ek().url().optional(),displayOrder:eS().int().default(0),featured:eT().default(!1),metadata:eN(eE()).default({}),isPublic:eT().default(!0)}),eP({name:ek().min(1).max(300).optional(),description:ek().max(5e3).nullable().optional(),category:sA.optional(),subcategory:ek().max(100).nullable().optional(),investedAmount:ek().nullable().optional(),currentValue:ek().nullable().optional(),currency:ek().optional(),irr:ek().nullable().optional(),multiple:ek().nullable().optional(),distributionsReceived:ek().nullable().optional(),holdingStatus:sI.optional(),acquisitionDate:ek().nullable().optional(),exitDate:ek().nullable().optional(),imageUrl:ek().url().nullable().optional(),location:ek().max(200).nullable().optional(),externalUrl:ek().url().nullable().optional(),displayOrder:eS().int().optional(),featured:eT().optional(),metadata:eN(eE()).optional(),isPublic:eT().optional()}),eP({source:sx.optional(),category:sA.optional(),holdingStatus:sI.optional(),featured:eB.boolean().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({id:ek().uuid(),portfolioId:ek().uuid(),tenantId:ek().uuid(),credentialType:sw,name:ek(),issuingOrganization:ek().nullable(),credentialNumber:ek().nullable(),issueDate:ek().nullable(),expirationDate:ek().nullable(),verificationUrl:ek().nullable(),isVerified:eT(),displayOrder:eS().int(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({credentialType:sw,name:ek().min(1).max(300),issuingOrganization:ek().max(300).optional(),credentialNumber:ek().max(100).optional(),issueDate:ek().optional(),expirationDate:ek().optional(),verificationUrl:ek().url().optional(),displayOrder:eS().int().default(0),metadata:eN(eE()).default({})}),eP({credentialType:sw.optional(),name:ek().min(1).max(300).optional(),issuingOrganization:ek().max(300).nullable().optional(),credentialNumber:ek().max(100).nullable().optional(),issueDate:ek().nullable().optional(),expirationDate:ek().nullable().optional(),verificationUrl:ek().url().nullable().optional(),displayOrder:eS().int().optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),portfolioId:ek().uuid(),tenantId:ek().uuid(),snapshotDate:ek(),totalNav:ek().nullable(),totalInvested:ek().nullable(),totalDistributions:ek().nullable(),netIrr:ek().nullable(),grossIrr:ek().nullable(),totalMultiple:ek().nullable(),holdingCount:eS().int().nullable(),activeHoldingCount:eS().int().nullable(),categoryBreakdown:eN(eS()),geographyBreakdown:eN(eS()),statusBreakdown:eN(eS()),metadata:eN(eE()),createdAt:ek().datetime()});var sk=eF(["structuring","rapid_movement","unusual_pattern","high_risk_jurisdiction","velocity","amount_threshold","dormant_reactivation","round_tripping","layering","smurfing","insider_trading","wash_trading","sanctions_evasion","custom"]),sS=eF(["structuring","large_transaction","rapid_movement","unusual_pattern","high_risk_jurisdiction","velocity_breach","dormant_reactivation","round_tripping","layering","sanctions_hit","pep_transaction","adverse_media","ai_anomaly","manual"]),sT=eF(["low","medium","high","critical"]),sC=eF(["new","under_review","escalated","dismissed","closed"]),sE=eF(["investor","sponsor","entity","account"]),sR=eF(["investor","sponsor","entity","counterparty"]),sP=eF(["open","investigation","narrative_draft","review","approved","filed","acknowledged","closed_no_file","continuing"]),sO=eF(["structuring","terrorist_financing","fraud","money_laundering","bribery_gratuity","check_fraud","check_kiting","commercial_loan_fraud","computer_intrusion","consumer_loan_fraud","counterfeit_check","debit_card_fraud","embezzlement","identity_theft","insider_trading","market_mani
1pulation","misuse_of_position","mortgage_fraud","wire_fraud","other"]),sM=eF(["low","medium","high","critical"]),sN=eF(["transaction_record","account_statement","kyc_document","communication_log","screenshot","aml_screening_result","sanctions_hit","risk_assessment","investigation_report","third_party_report","law_enforcement_request","other"]),sj=eF(["investigation","escalation","disposition","review","law_enforcement","ai_recommendation","status_change"]),sD=eF(["investor","sponsor","entity","other"]),sF=eF(["ssn","ein","passport","drivers_license","other"]),sL=eF(["pending","filed","acknowledged","amended","rejected"]),sB=eF(["investment","distribution","withdrawal","deposit","transfer"]),sz=eF(["transaction","periodic","list_update","manual","onboarding"]),sU=eF(["ofac","dow_jones","refinitiv","complyadvantage","internal"]),sq=eF(["clear","potential_match","confirmed_match","false_positive","error"]),s$=eF(["pending","cleared","blocked","escalated"]),sH=eF(["investor","sponsor","entity","offering","marketplace"]),sV=eF(["initial","periodic","event_driven","ai_triggered","manual"]),sW=eF(["low","medium","high","critical","prohibited"]),sG=eF(["sar","ctr","fbar","8300","cmir","sec_d_filing","blue_sky","form_adv","annual_aml_report","independent_audit","custom"]),sK=eF(["fincen","sec","finra","
1state","irs","other"]),sZ=eF(["draft","pending_review","approved","filed","acknowledged","amended","rejected"]),sY=eF(["platform","marketplace","sponsor","fea"]),sX=eF(["daily","weekly","monthly","quarterly"]),sJ=eF(["eq","neq","gt","gte","lt","lte","in","not_in","between","regex","contains"]),sQ=eF(["AND","OR"]),s0=eF(["count","sum","avg","max","min"]),s1=eP({field:ek(),operator:sJ,value:eE(),window:ek().optional(),aggregate:s0.optional()}),s2=eP({conditions:eR(s1).min(1),logic:sQ,aiConfidenceThreshold:eS().min(0).max(100).optional()});eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),name:ek(),description:ek().nullable(),category:sk,ruleDefinition:s2,severity:sT,priority:eS().int(),isActive:eT(),autoEscalate:eT(),autoFileCtr:eT(),ownerRole:sY,metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),category:sk,ruleDefinition:s2,severity:sT.default("medium"),priority:eS().int().min(1).max(1e4).default(100),isActive:eT().default(!0),autoEscalate:eT().default(!1),autoFileCtr:eT().default(!1),ownerRole:sY.default("marketplace"),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),category:sk.optional(),severity:sT.optional(),isActive:eB.boolean().optional(),ownerRole:sY.optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),alertNumber:ek(),monitoringRuleId:ek().uuid().nullable(),subjectType:sE,subjectId:ek().uuid(),subjectName:ek().nullable(),transactionIds:eR(ek()).default([]),offeringId:ek().uuid().nullable(),alertType:sS,severity:sT,status:sC,aiRiskScore:eS().nullable(),aiModelVersion:ek().nullable(),aiExplanation:ek().nullable(),description:ek(),alertData:eN(eE()),totalAmount:eS().nullable(),currency:ek().nullable(),transactionCount:eS().int().nullable(),timeWindowDays:eS().int().nullable(),assignedTo:ek().uuid().nullable(),reviewedBy:ek().uuid().nullable(),reviewedAt:ek().datetime().nullable(),dispositionReason:ek().nullable(),sarCaseId:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({monitoringRuleId:ek().uuid().optional(),subjectType:sE,subjectId:ek().uuid(),subjectName:ek().optional(),transactionIds:eR(ek()).default([]),offeringId:ek().uuid().optional(),alertType:sS,severity:sT,description:ek().min(1),alertData:eN(eE()).default({}),totalAmount:eS().positive().optional(),currency:ek().default("USD"),transactionCount:eS().int().min(1).optional(),timeWindowDays:eS().int().min(1).optional(),metadata:eN(eE()).default({})}),eP({status:sC.optional(),assignedTo:ek().uuid().optional(),dispositionReason:ek().optional(),sarCaseId:ek().uuid().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:sC.optional(),severity:sT.optional(),alertType:sS.optional(),subjectType:sE.optional(),subjectId:ek().uuid().optional(),assignedTo:ek().uuid().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()});var s5=eP({subjectType:ek(),subjectId:ek().uuid(),subjectName:ek(),role:ek()});eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),caseNumber:ek(),primarySubjectType:sE,primarySubjectId:ek().uuid(),primarySubjectName:ek().nullable(),additionalSubjects:eR(s5).default([]),status:sP,sarType:sO,priority:sM,activityStartDate:ek().datetime(),activityEndDate:ek().datetime().nullable(),totalAmountInvolved:eS().nullable(),currency:ek().nullable(),narrative:ek().nullable(),aiDraftNarrative:ek().nullable(),aiModelVersion:ek().nullable(),filingDeadline:ek().datetime().nullable(),filedAt:ek().datetime().nullable(),fincenBsaId:ek().nullable(),fincenTrackingNumber:ek().nullable(),fincenAcknowledgedAt:ek().datetime().nullable(),isContinuing:eT(),priorSarCaseId:ek().uuid().nullable(),priorFincenBsaId:ek().nullable(),investigatorId:ek().uuid().nullable(),reviewerId:ek().uuid().nullable(),approverId:ek().uuid().nullable(),lawEnforcementContact:eT(),lawEnforcementAgency:ek().nullable(),lawEnforcementCaseNumber:ek().nullable(),riskScore:eS().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({primarySubjectType:sE,primarySubjectId:ek().uuid(),primarySubjectName:ek().optional(),additionalSubjects:eR(s5).default([]),sarType:sO,priority:sM.default("high"),activityStartDate:ek().datetime(),activityEndDate:ek().datetime().optional(),totalAmountInvolved:eS().positive().optional(),currency:ek().default("USD"),alertIds:eR(ek().uuid()).default([]),isContinuing:eT().default(!1),priorSarCaseId:ek().uuid().optional(),priorFincenBsaId:ek().optional(),metadata:eN(eE()).default({})}),eP({status:sP.optional(),priority:sM.optional(),narrative:ek().optional(),investigatorId:ek().uuid().optional(),reviewerId:ek().uuid().optional(),approverId:ek().uuid().optional(),activityEndDate:ek().datetime().optional(),totalAmountInvolved:eS().positive().optional(),lawEnforcementContact:eT().optional(),lawEnforcementAgency:ek().optional(),lawEnforcementCaseNumber:ek().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:sP.optional(),sarType:sO.optional(),priority:sM.optional(),primarySubjectType:sE.optional(),primarySubjectId:ek().uuid().optional(),investigatorId:ek().uuid().optional(),isContinuing:eB.boolean().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional(),overdue:eB.boolean().optional()}),eP({sarCaseId:ek().uuid(),forceRegenerate:eT().default(!1),additionalContext:ek().optional()}),eP({sarCaseId:ek().uuid(),narrative:ek(),aiModelVersion:ek(),sections:eP({who:ek(),what:ek(),when:ek(),where:ek(),why:ek(),how:ek()})}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),sarCaseId:ek().uuid(),evidenceType:sN,title:ek(),description:ek().nullable(),storageKey:ek().nullable(),inlineData:eN(eE()).nullable(),collectedBy:ek().uuid().nullable(),collectedAt:ek().datetime(),retentionExpiresAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({sarCaseId:ek().uuid(),evidenceType:sN,title:ek().min(1),description:ek().optional(),storageKey:ek().optional(),inlineData:eN(eE()).optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),alertId:ek().uuid().nullable(),sarCaseId:ek().uuid().nullable(),authorId:ek().uuid(),noteType:sj,content:ek(),aiGenerated:eT(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({alertId:ek().uuid().optional(),sarCaseId:ek().uuid().optional(),noteType:sj,content:ek().min(1),aiGenerated:eT().default(!1),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),ctrNumber:ek(),transactionDate:ek().datetime(),filingDeadline:ek().datetime(),conductorType:sD,conductorId:ek().uuid().nullable(),conductorName:ek(),conductorIdType:sF.nullable(),conductorIdNumber:ek().nullable(),transactionIds:eR(ek()).default([]),totalAmount:eS(),currency:ek(),transactionType:sB,structuringSuspected:eT(),isAggregated:eT(),aggregatedTransactionCount:eS().int().nullable(),status:sL,filedAt:ek().datetime().nullable(),fincenBsaId:ek().nullable(),fincenTrackingNumber:ek().nullable(),fincenAcknowledgedAt:ek().datetime().nullable(),filedBy:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({transactionDate:ek().datetime(),conductorType:sD,conductorId:ek().uuid().optional(),conductorName:ek().min(1),conductorIdType:sF.optional(),conductorIdNumber:ek().optional(),transactionIds:eR(ek()).default([]),totalAmount:eS().min(1e4),currency:ek().default("USD"),transactionType:sB,structuringSuspected:eT().default(!1),isAggregated:eT().default(!1),aggregatedTransactionCount:eS().int().min(1).optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:sL.optional(),conductorType:sD.optional(),transactionType:sB.optional(),structuringSuspected:eB.boolean().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional(),overdue:eB.boolean().optional()});var s3=eP({listName:ek(),matchedName:ek(),matchScore:eS(),listEntryId:ek(),sdnType:ek().optional(),programs:eR(ek()).optional()});eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),triggerType:sz,triggerEntityType:ek(),triggerEntityId:ek().uuid(),screenedEntityType:sR,screenedEntityId:ek().uuid(),screenedName:ek(),listsChecked:eR(ek()).default([]),provider:sU.nullable(),result:sq,matchScore:eS().nullable(),matchDetails:eR(s3).default([]),reviewedBy:ek().uuid().nullable(),reviewedAt:ek().datetime().nullable(),disposition:s$.nullable(),transactionBlocked:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({triggerType:sz,triggerEntityType:ek().min(1),triggerEntityId:ek().uuid(),screenedEntityType:sR,screenedEntityId:ek().uuid(),screenedName:ek().min(1),provider:sU.optional(),metadata:eN(eE()).default({})}),eP({screeningId:ek().uuid(),disposition:s$,notes:ek().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),result:sq.optional(),disposition:s$.optional(),triggerType:sz.optional(),screenedEntityType:sR.optional(),screenedEntityId:ek().uuid().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()});var s4=eP({factor:ek(),weight:eS(),score:eS(),description:ek(),source:eF(["rule","ai","manual"])}),s9=eP({action:ek(),priority:ek(),reason:ek()});eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),entityType:sH,entityId:ek().uuid(),entityName:ek().nullable(),assessmentType:sV,overallScore:eS(),transactionRiskScore:eS().nullable(),behavioralRiskScore:eS().nullable(),jurisdictionRiskScore:eS().nullable(),kycAmlRiskScore:eS().nullable(),networkRiskScore:eS().nullable(),riskLevel:sW,previousRiskLevel:sW.nullable(),riskFactors:eR(s4).default([]),aiModelVersion:ek().nullable(),aiConfidence:eS().nullable(),aiExplanation:ek().nullable(),recommendedActions:eR(s9).default([]),eddRequired:eT(),restrictionsApplied:eR(ek()).default([]),assessedBy:ek().uuid().nullable(),approvedBy:ek().uuid().nullable(),nextAssessmentDate:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({entityType:sH,entityId:ek().uuid(),entityName:ek().optional(),assessmentType:sV,metadata:eN(eE()).default({})}),eP({riskLevel:sW.optional(),eddRequired:eT().optional(),restrictionsApplied:eR(ek()).optional(),approvedBy:ek().uuid().optional(),nextAssessmentDate:ek().datetime().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),entityType:sH.optional(),entityId:ek().uuid().optional(),riskLevel:sW.optional(),assessmentType:sV.optional(),eddRequired:eB.boolean().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),reportType:sG,periodStart:ek().datetime().nullable(),periodEnd:ek().datetime().nullable(),status:sZ,filedAt:ek().datetime().nullable(),regulatoryBody:sK.nullable(),filingReference:ek().nullable(),acknowledgedAt:ek().datetime().nullable(),reportData:eN(eE()),documentStorageKey:ek().nullable(),sourceEntityType:ek().nullable(),sourceEntityId:ek().uuid().nullable(),preparedBy:ek().uuid().nullable(),reviewedBy:ek().uuid().nullable(),approvedBy:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({reportType:sG,periodStart:ek().datetime().optional(),periodEnd:ek().datetime().optional(),regulatoryBody:sK.optional(),reportData:eN(eE()).default({}),sourceEntityType:ek().optional(),sourceEntityId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),reportType:sG.optional(),status:sZ.optional(),regulatoryBody:sK.optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),snapshotDate:ek().datetime(),periodType:sX,totalAlerts:eS().int(),newAlerts:eS().int(),escalatedAlerts:eS().int(),dismissedAlerts:eS().int(),avgAlertResolutionH
1ours:eS().nullable(),openSarCases:eS().int(),sarsFiled:eS().int(),sarsOverdue:eS().int(),ctrsGenerated:eS().int(),ctrsFiled:eS().int(),ctrsOverdue:eS().int(),totalScreenings:eS().int(),potentialMatches:eS().int(),confirmedMatches:eS().int(),transactionsBlocked:eS().int(),highRiskEntities:eS().int(),criticalRiskEntities:eS().int(),eddPending:eS().int(),totalVolumeMonitored:eS().nullable(),suspiciousVolume:eS().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({periodType:sX.optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()});var s6=eF(["fatca_8966","crs","form_1099_div","form_1099_int","form_1099_b","form_1042s","tds_26as","tds_26qb","form_16a","gst_tds","dac7","uk_sa108","custom"]),s8=eF(["pending","data_collection","generated","review","filed","acknowledged","rejected"]);eF(["irs","hmrc","income_tax_india","sebi","mas","bundeszentralamt","ato","cra","custom"]),eP({investorId:ek(),investorCountry:ek().length(2),offeringId:ek(),offeringCountry:ek().length(2),investmentAmount:eS().positive()}),eP({status:s8,filingReference:ek().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:s8.optional(),obligationType:s6.optional(),investorId:ek().optional(),offeringId:ek().optional()}),eP({investorCountry:ek().length(2),offeringCountry:ek().length(2),amount:eB.number().positive()}),eP({withholdingRate:eS(),treatyRate:eS().nullable(),treatyApplies:eT(),withholdingAmount:eS()}),eP({amount:eS(),currency:ek(),regulatoryBody:ek()});var s7=eF(["investment","withdrawal","profile_change","annual_reverification","custom"]),de=eF(["pending","issued","revoked","expired"]),dt=eF(["pending","completed","failed","expired"]);eP({investorId:ek().uuid(),purpose:s7,matchConfidenceThreshold:eS().min(0).max(100).default(70),callbackUrl:ek().url().optional(),metadata:eN(eE()).default({})});var di=eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),investorId:ek().uuid(),requestId:ek(),purpose:s7,matchConfidence:ek().nullable(),passed:eT(),credentialType:ek(),verifiedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime()});eP({requestId:ek(),status:dt,result:di.nullable()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),accountId:ek().uuid().nullable(),investorId:ek().uuid().nullable(),credentialType:ek(),issuanceRequestId:ek().nullable(),status:de,issuedAt:ek().datetime().nullable(),expiresAt:ek().datetime().nullable(),revokedAt:ek().datetime().nullable(),credentialMetadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({investorId:ek().uuid(),credentialType:ek().default("VerifiedInvestor"),claims:eP({givenName:ek().min(1),familyName:ek().min(1),email:ek().email(),accreditationStatus:ek().optional(),photo:ek().optional()}),expiresInDays:eS().int().positive().default(365),metadata:eN(eE()).default({})}),eP({data:eP({"@odata.type":ek(),tenantId:ek(),authenticationEventListenerId:ek(),customAuthenticationExtensionId:ek(),authenticationContext:eP({correlationId:ek(),client:eP({ip:ek(),locale:ek().optional(),market:ek().optional()}),protocol:ek(),clientServicePrincipal:eP({id:ek(),appId:ek(),displayName:ek().optional()}),resourceServicePrincipal:eP({id:ek(),appId:ek(),displayName:ek().optional()}),user:eP({id:ek(),mail:ek().optional(),displayName:ek().optional(),givenName:ek().optional(),surname:ek().optional()})})})}),eP({data:eP({"@odata.type":ek(),tenantId:ek(),authenticationEventListenerId:ek(),customAuthenticationExtensionId:ek(),authenticationContext:eP({correlationId:ek(),user:eP({id:ek().optional(),mail:ek().optional(),displayName:ek().optional()})}),userSignUpInfo:eP({attributes:eN(eP({value:eE(),attributeType:ek().optional()}))})})}),eP({idToken:ek().min(1),subdomain:ek().min(1),accessToken:ek().optional()});var da=eF(["success","failure","pending","delayed_success"]),dn=eF(["success","failure","pending","manual_review"]),dr=eF(["clear","flagged","pending"]),dl=eF(["approved","rejected","pending"]),ds=eF(["signed","declined","expired","pending"]),dd=eF(["delivered","bounced","failed"]),du=eF(["success","failure"]),dc=eF(["success","failure","pending","delayed_success"]),dp=eF(["good_credit","borderline","poor_credit","no_history","bureau_error"]),dm=eF(["success","low_income","pending","consent_rejected","bank_error"]),df=eF(["show","hide"]),dh=eF(["valid","invali
1d","suspended"]),dg=eF(["pass","fail","review_required"]),dv=eF(["wise","static","unsupported"]);eF(["happy_path","kyc_failure","payment_decline","compliance_rejection","full_rejection","slow_processing"]),eP({id:ek().uuid().optional(),tenantId:ek().uuid(),isActive:eT().default(!0),paymentOutcome:da.default("success"),paymentDelayMs:eS().int().min(0).max(6e4).default(3e3),kycOutcome:dn.default("success"),kycDelayMs:eS().int().min(0).max(6e4).default(2e3),amlOutcome:dr.default("clear"),amlDelayMs:eS().int().min(0).max(6e4).default(1500),accreditationOutcome:dl.default("approved"),accreditationDelayMs:eS().int().min(0).max(6e4).default(2e3),esignOutcome:ds.default("signed"),esignDelayMs:eS().int().min(0).max(6e4).default(5e3),notificationOutcome:dd.default("delivered"),storageOutcome:du.default("success"),stablecoinOutcome:dc.default("success"),stablecoinDelayMs:eS().int().min(0).max(6e4).default(3e3),cibilOutcome:dp.default("good_credit"),perfiosOutcome:dm.default("success"),stampDutyHint:df.default("show"),gstValidation:dh.default("valid"),crossBorderResult:dg.default("pass"),fxProvider:dv.default("wise"),substanceScore:eS().int().min(0).max(100).default(80),activeScenario:ek().nullable().default(null),metadata:eN(eE()).default({})}),eP({isActive:eT().optional(),paymentOutcome:da.optional(),paymentDelayMs:eS().int().min(0).max(6e4).optional(),kycOutcome:dn.optional(),kycDelayMs:eS().int().min(0).max(6e4).optional(),amlOutcome:dr.optional(),amlDelayMs:eS().int().min(0).max(6e4).optional(),accreditationOutcome:dl.optional(),accreditationDelayMs:eS().int().min(0).max(6e4).optional(),esignOutcome:ds.optional(),esignDelayMs:eS().int().min(0).max(6e4).optional(),notificationOutcome:dd.optional(),storageOutcome:du.optional(),stablecoinOutcome:dc.optional(),stablecoinDelayMs:eS().int().min(0).max(6e4).optional(),cibilOutcome:dp.optional(),perfiosOutcome:dm.optional(),stampDutyHint:df.optional(),gstValidation:dh.optional(),crossBorderResult:dg.optional(),fxProvider:dv.optional(),substanceScore:eS().int().min(0).max(100).optional(),activeScenario:ek().nullable().optional(),metadata:eN(eE()).optional()});var dy={happy_path:{name:"happy_path",label:"Happy Path",description:"All providers succeed â full successful user journey for training demos.",config:{isActive:!0,paymentOutcome:"success",paymentDelayMs:3e3,kycOutcome:"success",kycDelayMs:2e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"approved",accreditationDelayMs:2e3,esignOutcome:"signed",esignDelayMs:5e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"success",stablecoinDelayMs:3e3,activeScenario:"happy_path",metadata:{}}},kyc_failure:{name:"kyc_failure",label:"KYC Failure",description:"KYC verification fails â demonstrates rejection handling and retry flow.",config:{isActive:!0,paymentOutcome:"success",paymentDelayMs:3e3,kycOutcome:"failure",kycDelayMs:4e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"pending",accreditationDelayMs:2e3,esignOutcome:"signed",esignDelayMs:5e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"success",stablecoinDelayMs:3e3,activeScenario:"kyc_failure",metadata:{kycFailureReason:"Document verification failed - photo mismatch detected between ID and selfie.",kycRiskScore:"0.85",kycRiskFactors:{documentQuality:"poor",facialMatchScore:"0.32",livenessCheck:"failed"}}}},payment_decline:{name:"payment_decline",label:"Payment Decline",description:"Payment processing fails â demonstrates decline handling and retry options.",config:{isActive:!0,paymentOutcome:"failure",paymentDelayMs:5e3,kycOutcome:"success",kycDelayMs:2e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"approved",accreditationDelayMs:2e3,esignOutcome:"signed",esignDelayMs:5e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"failure",stablecoinDelayMs:5e3,activeScenario:"payment_decline",metadata:{paymentDeclineReason:"Insufficient funds in linked bank account.",paymentDeclineCode:"insufficient_funds",paymentRetryable:!0}}},compliance_rejection:{name:"compliance_rejection",label:"Compliance Rejection",description:"AML flagged + accreditation rejected â demonstrates compliance gate handling.",config:{isActive:!0,paymentOutcome:"pending",paymentDelayMs:3e3,kycOutcome:"success",kycDelayMs:2e3,amlOutcome:"flagged",amlDelayMs:3e3,accreditationOutcome:"rejected",accreditationDelayMs:4e3,esignOutcome:"pending",esignDelayMs:5e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"pending",stablecoinDelayMs:3e3,activeScenario:"compliance_rejection",metadata:{amlFlagReason:"Potential PEP match detected â subject shares name with a politically exposed person.",amlMatchDetails:{matchType:"pep",matchScore:"0.78",matchedEntity:"Redacted Name (PEP Database)",listSource:"consolidated_sanctions_list"},accreditationRejectionReason:"Income verification documents are expired (older than 90 days)."}}},full_rejection:{name:"full_rejection",label:"Full Rejection",description:"All providers fail â stress test for error handling across the platform.",config:{isActive:!0,paymentOutcome:"failure",paymentDelayMs:2e3,kycOutcome:"failure",kycDelayMs:1e3,amlOutcome:"flagged",amlDelayMs:1e3,accreditationOutcome:"rejected",accreditationDelayMs:1e3,esignOutcome:"declined",esignDelayMs:2e3,notificationOutcome:"failed",storageOutcome:"failure",stablecoinOutcome:"failure",stablecoinDelayMs:2e3,activeScenario:"full_rejection",metadata:{kycFailureReason:"Identity document appears to be fraudulent.",amlFlagReason:"Subject appears on OFAC SDN list.",accreditationRejectionReason:"Net worth verification failed â declared assets could not be confirmed.",paymentDeclineReason:"Transaction blocked by fraud detection system.",esignDeclineReason:"Signatory declined to sign the document.",notificationFailureReason:"Email address bounced â mailbox does not exist.",storageFailureReason:"Storage quota exceeded for tenant.",stablecoinFailureReason:"Wallet creation rejected â compliance hold on wallet set."}}},slow_processing:{name:"slow_processing",label:"Slow Processing",description:"Extended processing times â demonstrates async/pending state handling in the UI.",config:{isActive:!0,paymentOutcome:"delayed_success",paymentDelayMs:15e3,kycOutcome:"pending",kycDelayMs:2e4,amlOutcome:"pending",amlDelayMs:15e3,accreditationOutcome:"pending",accreditationDelayMs:2e4,esignOutcome:"pending",esignDelayMs:25e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"delayed_success",stablecoinDelayMs:15e3,activeScenario:"slow_processing",metadata:{slowProcessingNote:"Extended delays simulate real-world async processing. KYC and accreditation remain in pending state until manually resolved or scenario is changed."}}},india_happy_path:{name:"india_happy_path",label:"India â Happy Path",description:"All India providers succeed â Perfios income verified, CIBIL 742, Aadhaar eSign signed.",config:{isActive:!0,paymentOutcome:"success",paymentDelayMs:3e3,kycOutcome:"success",kycDelayMs:2e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"approved",accreditationDelayMs:2e3,esignOutcome:"signed",esignDelayMs:5e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"success",stablecoinDelayMs:3e3,activeScenario:"india_happy_path",metadata:{demoOutcome:"good_credit",cibilScore:742,monthlyIncome:85e3}}},india_low_cibil:{name:"india_low_cibil",label:"India â Low CIBIL Score",description:"KYC succeeds but credit bureau returns a low CIBIL score (520) â tests suitability gate.",config:{isActive:!0,paymentOutcome:"success",paymentDelayMs:3e3,kycOutcome:"success",kycDelayMs:2e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"approved",accreditationDelayMs:2e3,esignOutcome:"signed",esignDelayMs:5e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"success",stablecoinDelayMs:3e3,activeScenario:"india_low_cibil",metadata:{demoOutcome:"poor_credit",cibilScore:520}}},india_consent_rejected:{name:"india_consent_rejected",label:"India â AA Consent Rejected",description:"User rejects the Account Aggregator consent on their banking app â income verification fails.",config:{isActive:!0,paymentOutcome:"success",paymentDelayMs:3e3,kycOutcome:"failure",kycDelayMs:3e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"pending",accreditationDelayMs:2e3,esignOutcome:"pending",esignDelayMs:5e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"pending",stablecoinDelayMs:3e3,activeScenario:"india_consent_rejected",metadata:{demoOutcome:"consent_rejected",kycFailureReason:"User rejected consent on banking app â income verification could not be completed."}}},india_aadhaar_esign_failed:{name:"india_aadhaar_esign_failed",label:"India â Aadhaar eSign Failed",description:"KYC passes but Aadhaar OTP verification fails during eSign â demonstrates eSign error handling.",config:{isActive:!0,paymentOutcome:"success",paymentDelayMs:3e3,kycOutcome:"success",kycDelayMs:2e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"approved",accreditationDelayMs:2e3,esignOutcome:"declined",esignDelayMs:4e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"pending",stablecoinDelayMs:3e3,activeScenario:"india_aadhaar_esign_failed",metadata:{demoOutcome:"aadhaar_failed",esignDeclineReason:"Aadhaar OTP verification failed â the OTP entered was incorrect or expired."}}},india_full_rejection:{name:"india_full_rejection",label:"India â Full Rejection",description:"All India providers fail â bureau error, consent rejected, eSign failed. Stress test for error handling.",config:{isActive:!0,paymentOutcome:"failure",paymentDelayMs:2e3,kycOutcome:"failure",kycDelayMs:1500,amlOutcome:"flagged",amlDelayMs:1e3,accreditationOutcome:"rejected",accreditationDelayMs:1e3,esignOutcome:"declined",esignDelayMs:2e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"failure",stablecoinDelayMs:2e3,activeScenario:"india_full_rejection",metadata:{demoOutcome:"bureau_error",kycFailureReason:"Credit bureau lookup failed â could not retrieve bureau report.",amlFlagReason:"Subject name matched a wat
1ch-list entry â manual review required.",accreditationRejectionReason:"Income verification failed due to bureau error.",paymentDeclineReason:"Transaction blocked â UPI mandate setup failed.",esignDeclineReason:"Aadhaar OTP verification failed."}}},cross_border_india_to_us:{name:"cross_border_india_to_us",label:"Cross-Border â India â US",description:"Indian investor in a US offering â US-India DTAA applies, W-8BEN required, 15% withholding on distributions.",config:{isActive:!0,paymentOutcome:"success",paymentDelayMs:3e3,kycOutcome:"success",kycDelayMs:2e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"approved",accreditationDelayMs:2e3,esignOutcome:"signed",esignDelayMs:5e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"success",stablecoinDelayMs:3e3,activeScenario:"cross_border_india_to_us",metadata:{investorCountry:"IN",offeringCountry:"US",crossBorderResult:"pass",withholdingRate:15,treatyApplied:!0,fxRate:.0119,additionalKyc:["w8ben_form"],notes:"US-India DTAA 1989 (amended 2006). W-8BEN required to claim reduced 15% withholding rate."}}},cross_border_us_to_india:{name:"cross_border_us_to_india",label:"Cross-Border â US â India",description:"US investor in an Indian offering â FEMA Automatic Route, PAN + FEMA declaration required, 15% withholding.",config:{isActive:!0,paymentOutcome:"success",paymentDelayMs:3e3,kycOutcome:"success",kycDelayMs:2e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"approved",accreditationDelayMs:2e3,esignOutcome:"signed",esignDelayMs:5e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"success",stablecoinDelayMs:3e3,activeScenario:"cross_border_us_to_india",metadata:{investorCountry:"US",offeringCountry:"IN",crossBorderResult:"pass",withholdingRate:15,treatyApplied:!0,additionalKyc:["pan_verification","fema_declaration"],femaRoute:"automatic",notes:"FEMA Automatic Route + US-India DTAA. PAN and FEMA declaration required for inbound FDI."}}},cross_border_blocked:{name:"cross_border_blocked",label:"Cross-Border â Blocked (Unknown Country Pair)",description:"Investor from an unwhitelisted country â conservative block. Demonstrates cross-border eligibility gate.",config:{isActive:!0,paymentOutcome:"pending",paymentDelayMs:0,kycOutcome:"failure",kycDelayMs:1e3,amlOutcome:"flagged",amlDelayMs:1e3,accreditationOutcome:"rejected",accreditationDelayMs:1e3,esignOutcome:"pending",esignDelayMs:0,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"pending",stablecoinDelayMs:0,activeScenario:"cross_border_blocked",metadata:{investorCountry:"XX",offeringCountry:"IN",crossBorderResult:"fail",blockReason:"Country pair not whitelisted â no cross-border investment rule found for XXâIN.",notes:"Platform applies a conservative default: unknown country pairs are blocked until explicitly added to the allowlist."}}},all_providers_test:{name:"all_providers_test",label:"All Providers â Full Exercise",description:"Every provider in success state â exercises the complete provider matrix including India + cross-border for QA sign-off.",config:{isActive:!0,paymentOutcome:"success",paymentDelayMs:2e3,kycOutcome:"success",kycDelayMs:2e3,amlOutcome:"clear",amlDelayMs:1500,accreditationOutcome:"approved",accreditationDelayMs:2e3,esignOutcome:"signed",esignDelayMs:3e3,notificationOutcome:"delivered",storageOutcome:"success",stablecoinOutcome:"success",stablecoinDelayMs:2e3,activeScenario:"all_providers_test",metadata:{demoOutcome:"good_credit",perfiosOutcome:"success",cibilScore:742,monthlyIncome:85e3,stampDutyHint:"show",gstValidation:"valid",crossBorderResult:"pass",fxProvider:"wise",substanceScore:80,investorCountry:"IN",offeringCountry:"US",withholdingRate:15,treatyApplied:!0}}}};t9(function(){return Object.values(dy)},"listScenarioPacks"),t9(function(e){var t;return null!=(t=dy[e])?t:null},"getScenarioPack");var db=eF(["manual","automated","hybrid"]),d_=eF(["credit_bureau","consumer_report","fea_assignment","income_verification","mortgage_lender","license_verification","property_mls","home_inspection","appraiser","title_company","spv_formation","payment","kyc","aml","accreditation","esign","notification","storage","stablecoin"]),dx=eF(["pending","in_progress","awaiting_review","completed","failed"]);eP({creditScore:eS().int().min(300).max(850),reportDate:ek(),bureau:eF(["equifax","experian","transunion"]).default("equifax"),delinquencies:eS().int().min(0).default(0),totalDebt:eS().min(0).default(0),creditUtilization:eS().min(0).max(100).default(0),accountsOpen:eS().int().min(0).default(0),hardInquiries:eS().int().min(0).default(0)}),eP({annualIncome:eS().min(0),employerName:ek(),employmentStatus:eF(["employed","self_employed","retired","other"]),monthsEmployed:eS().int().min(0),verificationMethod:eF(["paystub","tax_return","bank_statement","employer_letter"]).default("paystub"),dtiRatio:eS().min(0).max(100).optional()}),eP({preApprovalAmount:eS().min(0),interestRate:eS().min(0).max(100),loanType:eF(["fixed_30","fixed_15","arm_5_1","arm_7_1","other"]),lenderName:ek(),expiresAt:ek(),conditions:eR(ek()).default([])}),eP({propertyAddress:ek(),city:ek(),state:ek(),zipCode:ek(),listingPrice:eS().min(0),bedrooms:eS().int().min(0),bathrooms:eS().min(0),sqft:eS().int().min(0),yearBuilt:eS().int(),propertyType:eF(["single_family","townhouse","condo","multi_family","other"]),mlsNumber:ek(),photos:eR(ek()).default([])}),eP({appraisalValue:eS().min(0),appraisalDate:ek(),appraiserName:ek(),appraiserLicense:ek(),condition:eF(["excellent","good","fair","poor"]).default("good"),comparables:eS().int().min(0).default(3)}),eP({titleClear:eT(),titleCompanyName:ek(),titleInsuranceAmount:eS().min(0),lienCount:eS().int().min(0).default(0),encumbrances:eR(ek()).default([]),closingDate:ek().optional()}),eP({spvName:ek(),spvEntityType:eF(["llc","lp","corp"]).default("llc"),stateOfFormation:ek(),ein:ek().optional(),operatingAgreementUrl:ek().optional(),formationDate:ek(),registeredAgent:ek().optional()}),eP({baseReportId:ek(),reportGeneratedDate:ek(),accountsCount:eS().int().min(0),totalCurrentBalance:eS().min(0),annualIncome:eS().min(0),incomeSourcesCount:eS().int().min(0),incomeStreams:eR(eP({name:ek(),monthlyIncome:eS(),confidence:eF(["high","medium","low"])})).default([]),averageMonthlyInflow:eS().min(0).default(0),averageMonthlyOutflow:eS().min(0).default(0),netMonthlyCashFlow:eS().default(0),lendScore:eS().int().min(1).max(99).optional(),lendScoreRiskFactors:eR(ek()).default([]),isGseCompliant:eT().default(!1),source:ek().default("
1consumer_report")}),eP({advisorFirmId:ek().uuid(),firmName:ek(),firmType:ek(),matchScore:eS().min(0).max(100),matchReasons:eR(ek()).default([]),contactName:ek().optional(),contactEmail:ek().email().optional(),assignmentMethod:eF(["auto","homebuyer_selected","manual"]).default("auto")}),eP({pipeline:eR(d_).min(1),stepRequirements:eN(eR(ek())).optional()}),eP({chargeId:ek(),amount:eS().min(0),currency:ek().default("USD"),status:eF(["succeeded","failed","pending"]),provider:eF(["stripe","straddle","circle","demo"]).default("demo"),last4:ek().max(4).optional(),failureReason:ek().optional(),receiptUrl:ek().optional()}),eP({verificationId:ek(),status:eF(["verified","failed","pending","manual_review"]),riskScore:eS().min(0).max(1).default(.1),documentType:eF(["passport","drivers_license","national_id"]).default("drivers_license"),documentMatch:eT().default(!0),facialMatch:eS().min(0).max(100).default(95),livenessCheck:eT().default(!0),riskFactors:eR(ek()).default([])}),eP({screeningId:ek(),status:eF(["clear","flagged","pending"]),riskScore:eS().min(0).max(1).default(.05),matchType:eF(["none","pep","sanctions","adverse_media"]).default("none"),matchScore:eS().min(0).max(100).default(0),matchedEntity:ek().optional(),listSource:ek().optional()}),eP({verificationId:ek(),status:eF(["approved","rejected","pending"]),method:eF(["income","net_worth","professional","entity"]).default("income"),expiresAt:ek().optional(),annualIncome:eS().min(0).optional(),netWorth:eS().min(0).optional(),rejectionReason:ek().optional()}),eP({envelopeId:ek(),status:eF(["signed","declined","expired","pending","sent"]),provider:eF(["boldsign","docusign","demo"]).default("demo"),documentName:ek(),signedAt:ek().optional(),signatoryCount:eS().int().min(1).default(2),signedCount:eS().int().min(0).default(0),signingUrl:ek().optional()}),eP({messageId:ek(),channel:eF(["email","push","sms","in_app"]).default("email"),status:eF(["delivered","bounced","failed"]),recipient:ek(),subject:ek().optional(),provider:eF(["ses","sendgrid","smtp4dev","demo"]).default("demo"),bounceReason:ek().optional()}),eP({fileId:ek(),fileName:ek(),fileSize:eS().int().min(0),contentType:ek().default("application/pdf"),status:eF(["success","failure"]),storageUrl:ek().optional(),provider:eF(["azure_blob","s3","r2","demo"]).default("demo"),failureReason:ek().optional()}),eP({transactionId:ek(),walletAddress:ek(),amount:eS().min(0),currency:ek().default("USDC"),status:eF(["success","failure","pending"]),chainId:eS().int().default(1),txHash:ek().optional(),blockNumber:eS().int().optional(),failureReason:ek().optional()}),eP({responseData:eN(eE()),notes:ek().optional()}),eP({failureReason:ek(),notes:ek().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:dx.optional(),providerType:d_.optional(),applicationId:ek().uuid().optional(),category:eF(["homebuyer","ims"]).optional()}),eP({providerType:d_,executionMode:db,providerImplementation:ek().nullable().optional(),credentialRef:ek().nullable().optional(),isActive:eT().default(!0),billingProductKey:ek().nullable().optional(),unitPriceOverride:eS().min(0).nullable().optional(),isBillable:eT().default(!0),allowedRoles:eR(ek()).default(["closing_agent","marketplace_admin"]),providerConfig:eN(eE()).default({})}).partial().required({providerType:!0}),eP({approved:eT(),responseDataOverride:eN(eE()).optional(),reviewNotes:ek().optional()}),eP({providerType:d_,executionMode:db,totalActions:eS().int(),totalCost:eS(),billingProductKey:ek().nullable()}),eP({periodStart:ek().datetime().optional(),periodEnd:ek().datetime().optional()});var dA=eF(["draft","published","archived"]),dI=eF(["markdown","html"]);eP({id:ek().uuid(),parentId:ek().uuid().nullable(),slug:ek(),name:ek(),description:ek().nullable(),icon:ek().nullable(),apps:eR(ek()).default([]),roles:eR(ek()).default([]),sortOrder:eS().int().default(0),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({parentId:ek().uuid().optional(),slug:ek().min(1).max(200),name:ek().min(1).max(200),description:ek().optional(),icon:ek().optional(),apps:eR(ek()).default([]),roles:eR(ek()).default([]),sortOrder:eS().int().default(0)}).partial(),eP({id:ek().uuid(),categoryId:ek().uuid(),slug:ek(),title:ek(),summary:ek().nullable(),content:ek(),contentFormat:dI.default("markdown"),status:dA.default("draft"),apps:eR(ek()).default([]),roles:eR(ek()).default([]),featureFlags:eR(ek()).default([]),contextRoutes:eR(ek()).default([]),tags:eR(ek()).default([]),version:eS().int().default(1),sourceFile:ek().nullable(),sortOrder:eS().int().default(0),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({categoryId:ek().uuid(),slug:ek().min(1).max(300),title:ek().min(1).max(300),summary:ek().optional(),content:ek().min(1),contentFormat:dI.default("markdown"),status:dA.default("draft"),apps:eR(ek()).default([]),roles:eR(ek()).default([]),featureFlags:eR(ek()).default([]),contextRoutes:eR(ek()).default([]),tags:eR(ek()).default([]),sortOrder:eS().int().default(0),sourceFile:ek().optional(),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),app:ek().optional(),role:ek().optional(),categorySlug:ek().optional(),search:ek().optional(),tag:ek().optional(),contextRoute:ek().optional(),status:dA.optional(),bookmarked:eB.boolean().optional()}),eP({accountId:ek().uuid(),tenantId:ek().uuid().optional(),marketplaceTenantId:ek().uuid().optional(),roles:eR(ek()),apps:eR(ek()),enabledFeatures:eR(ek())}),eP({articleId:ek().uuid(),helpful:eT(),comment:ek().max(2e3).optional()}),eP({articleId:ek().uuid()}),eP({articleId:ek().uuid()}),eP({articleId:ek().uuid(),helpful:eS().int(),notHelpful:eS().int(),total:eS().int()});var dw=eF(["sponsor","investor"]),dk=eF(["individual","business","joint","ira","retirement"]),dS=eF(["profile","identity_verification","entity_setup","accreditation","agreement","review"]),dT=eF(["n
1ot_started","in_progress","completed","skipped","failed"]),dC=eF(["not_started","in_progress","pending_review","approved","rejected"]),dE=eF(["created","onboarding","active","rejected","inactive"]),dR=eF(["pending","review","verified","inactive","rejected"]),dP=eF(["accept","reject","review"]),dO=eF(["low_confidence","potential_match","likely_match","high_confidence"]);eP({role:dw,accountType:dk.default("individual"),firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),email:ek().email(),phone:ek().regex(/^\+[1-9]\d{1,14}$/,"Phone must be E.164 format"),address:eP({line1:ek().min(1).max(100),line2:ek().max(100).optional(),city:ek().min(1).max(100),state:ek().regex(/^[A-Z]{2}$/,"Two-letter state code"),postalCode:ek().regex(/^[0-9]{5}(-[0-9]{4})?$/,"Valid US ZIP"),country:ek().length(2).default("US")}),businessName:ek().min(1).max(200).optional(),website:ek().url().optional(),businessDescription:ek().max(5e3).optional(),yearsInBusiness:eS().int().min(0).optional(),businessTrackRecord:ek().max(5e3).optional(),subdomain:ek().min(3).max(50).optional(),citizenshipStatus:ek().optional(),metadata:eN(eE()).default({})}),eP({onboardingId:ek().uuid(),role:dw,accountType:dk,ssn:ek().regex(/^[0-9]{3}-[0-9]{2}-[0-9]{4}$/).optional(),dob:ek().regex(/^\d{4}-\d{2}-\d{2}$/).optional(),taxId:ek().regex(/^[0-9]{9}$/).optional(),legalBusinessName:ek().optional(),representative:eP({firstName:ek().min(1),lastName:ek().min(1),email:ek().email(),mobileNumber:ek().regex(/^\+[1-9]\d{1,14}$/),dob:ek().regex(/^\d{4}-\d{2}-\d{2}$/),ssnLast4:ek().regex(/^[0-9]{4}$/),relationship:eP({primary:eT().default(!0),control:eT().default(!0),owner:eT().default(!0),percentOwnership:eS().min(0).max(100).optional(),title:ek().optional()})}).optional(),ipAddress:ek().ip({version:"v4"}).default("0.0.0.0")}),eP({onboardingId:ek().uuid(),role:dw,accountType:dk,authorizedRep:eP({firstName:ek().min(1),lastName:ek().min(1),email:ek().email(),phone:ek(),title:ek().optional()}).optional(),businessClassification:ek().optional(),industryClassification:ek().optional(),businessAddress:eP({line1:ek().min(1).max(100),line2:ek().max(100).optional(),city:ek().min(1).max(100),state:ek().regex(/^[A-Z]{2}$/),postalCode:ek().regex(/^[0-9]{5}(-[0-9]{4})?$/),country:ek().length(2).default("US")}).optional(),hasBeneficialOwner:eT().default(!1),jointOwnerName:ek().optional(),jointOwnershipType:eF(["jtwros","tenants_in_common","community_property"]).optional(),entityName:ek().optional(),entityType:eF(["llc","lp","corp","trust","spv"]).optional(),stateOfFormation:ek().regex(/^[A-Z]{2}$/).optional(),custodianName:ek().optional(),custodianAccountNumber:ek().optional(),iraType:eF(["traditional","roth","sep","solo_401k"]).optional(),metadata:eN(eE()).default({})});var dM=eF(["self_certification","document_upload","third_party"]),dN=eF(["income","net_worth","professional_certification","entity"]);eP({onboardingId:ek().uuid(),method:dM,basis:dN.optional(),annualIncomeRange:ek().optional(),netWorthRange:ek().optional(),investmentExperienceYears:eS().int().min(0).optional(),priorAlternativeInvestments:eT().optional(),verifierName:ek().optional(),verifierTitle:ek().optional(),verifierEmail:ek().email().optional(),verifierPhone:ek().optional(),documentId:ek().uuid().optional(),provider:ek().optional(),providerVerificationId:ek().optional(),certificationAccepted:eT().default(!1),metadata:eN(eE()).default({})}),eP({onboardingId:ek().uuid(),agreementId:ek().uuid().optional(),agreementType:ek(),signedAt:ek().datetime().optional(),envelopeId:ek().optional(),metadata:eN(eE()).default({})}),eP({onboardingId:ek().uuid(),termsAccepted:eT(),electronicConsentAccepted:eT(),contingentLiabilities:ek().max(5e3).optional(),outstandingLitigation:ek().max(5e3).optional(),otherInformation:ek().max(5e3).optional()}),eP({straddleCustomerId:ek().uuid().optional(),straddleAccountId:ek().uuid().optional(),straddleRepresentativeId:ek().uuid().optional(),customerStatus:dR.optional(),accountStatus:dE.optional(),identityDecision:dP.optional(),kycValidations:eP({firstName:eT().optional(),lastName:eT().optional(),address:eT().optional(),city:eT().optional(),state:eT().optional(),zip:eT().optional(),phone:eT().optional(),dob:eT().optional(),ssn:eT().optional(),email:eT().optional()}).optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),accountId:ek().uuid(),role:dw,accountType:dk,status:dC,currentStep:dS,steps:eN(dS,dT),straddleCustomerId:ek().uuid().nullable(),straddleAccountId:ek().uuid().nullable(),straddleRepresentativeId:ek().uuid().nullable(),verificationStatus:ek().nullable(),profileData:eN(eE()).nullable(),entityData:eN(eE()).nullable(),accreditationData:eN(eE()).nullable(),completedAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({organization_id:ek().uuid(),account_type:eD("business"),access_level:eF(["standard","managed"]).default("standard"),business_profile:eP({name:ek(),website:ek().url(),legal_name:ek().optional(),description:ek().optional(),use_case:ek().optional(),tax_id:ek().regex(/^[0-9]{9}$/).optional(),phone:ek().regex(/^\+[1-9]\d{1,14}$/).optional(),address:eP({line1:ek(),line2:ek().optional(),city:ek(),state:ek().regex(/^[A-Z]{2}$/),postal_code:ek().regex(/^[0-9]{5}(-[0-9]{4})?$/),country:ek().optional()}).optional(),industry:eP({mcc:ek().optional(),sector:ek().optional(),category:ek().optional()}).optional(),support_channels:eP({email:ek().email().optional(),phone:ek().optional(),url:ek().url().optional()}).optional()}),external_id:ek().optional(),metadata:eN(ek()).optional()}),eP({account_id:ek().uuid(),first_name:ek(),last_name:ek(),dob:ek(),ssn_last4:ek().regex(/^[0-9]{4}$/),email:ek().email(),mobile_number:ek().regex(/^\+[1-9]\d{1,14}$/),relationship:eP({primary:eT(),control:eT(),owner:eT(),percent_ownership:eS().optional(),title:ek().optional()}),external_id:ek().optional(),metadata:eN(ek()).optional()}),eP({name:ek(),type:eF(["individual","business"]),email:ek().email(),phone:ek().regex(/^\+[1-9]\d{1,14}$/),device:eP({ip_address:ek()}),address:eP({address1:ek().max(100),address2:ek().max(100).optional(),city:ek().max(100),state:ek().regex(/^[A-Z]{2}$/),zip:ek().regex(/^[0-9]{5}(-[0-9]{4})?$/)}).optional(),compliance_profile:eO([eP({ssn:ek().regex(/^[0-9]{3}-[0-9]{2}-[0-9]{4}$/),dob:ek()}),eP({ein:ek().regex(/^[0-9]{2}-[0-9]{7}$/),legal_business_name:ek(),website:ek().url().optional(),representatives:eR(eP({name:ek(),email:ek().email().optional(),phone:ek().optional()})).optional()})]).optional(),external_id:ek().optional(),metadata:eN(ek()).optional(),config:eP({sandbox_outcome:eF(["standard","verified","rejected","review"]).optional(),processing_method:eF(["inline","background","skip"]).optional()}).optional()}),eP({terms_of_service:eP({accepted_date:ek(),agreement_type:eF(["embedded","direct"]).default("embedded"),agreement_url:ek().url(),accepted_ip:ek().optional(),accepted_user_agent:ek().optional()})}),eP({status:eF(["verified","rejected"])}),eP({id:ek().uuid(),organization_id:ek().uuid(),type:eD("business"),status:dE,status_detail:eP({reason:ek().optional(),source:ek().optional(),code:ek().optional(),message:ek().optional()}).optional(),external_id:ek().nullable().optional(),created_at:ek().optional(),updated_at:ek().optional()}),eP({id:ek().uuid(),account_id:ek().uuid(),status:eF(["created","onboarding","active","rejected","inactive"]),name:ek().optional(),external_id:ek().nullable().optional(),created_at:ek().optional(),updated_at:ek().optional()});
1var dj=eP({id:ek().uuid(),name:ek(),type:eF(["individual","business"]),email:ek(),phone:ek(),status:dR,external_id:ek().nullable().optional(),created_at:ek().optional(),updated_at:ek().optional()}),dD=eP({decision:dP.optional(),codes:eR(ek()).optional(),risk_score:eS().optional(),correlation_score:eS().optional(),correlation:dO.optional()});eP({customer_details:dj,identity_details:eP({review_id:ek().uuid(),decision:dP,breakdown:eP({address:dD.optional(),email:dD.optional(),fraud:dD.optional(),phone:dD.optional(),synthetic:dD.optional(),business_identification:dD.optional(),business_validation:dD.optional(),business_evaluation:dD.optional()}).optional(),network_alerts:eP({decision:dP.optional(),codes:eR(ek()).optional(),alerts:eR(ek()).optional()}).optional(),watch_list:eP({decision:dP.optional(),codes:eR(ek()).optional(),matched:eR(ek()).optional(),matches:eR(eP({list_name:ek(),urls:eR(ek()),match_fields:eR(ek()),correlation:dO})).optional()}).optional(),kyc:eP({decision:dP.optional(),codes:eR(ek()).optional(),validations:eP({first_name:eT().optional(),last_name:eT().optional(),address:eT().optional(),city:eT().optional(),state:eT().optional(),zip:eT().optional(),phone:eT().optional(),dob:eT().optional(),ssn:eT().optional(),email:eT().optional()}).optional()}).optional(),created_at:ek().optional(),updated_at:ek().optional()}).optional()}),eP({event_type:ek(),data:eP({id:ek().uuid(),status:ek(),external_id:ek().nullable().optional(),status_details:eP({reason:ek().optional(),message:ek().optional(),code:ek().optional()}).optional(),metadata:eN(ek()).optional()}),meta:eP({request_id:ek().optional(),api_request_timestamp:ek().optional()}).optional()}),id.options,eP({vertical:eF(["homebuyer","investor","sponsor","fea_agent"]),tosVersion:ek().min(1),tosAccepted:eD(!0)}),eP({token:ek().min(1).optional(),code:ek().length(12).optional(),tosVersion:ek().min(1),tosAccepted:eD(!0)}).refine(e=>!!e.token!=!!e.code,{message:"Exactly one of token or code must be provided"}),eP({tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),orgType:ek(),status:id,redirectTo:ek().startsWith("/"),approvalQueueId:ek().uuid().optional()}),eP({decision:eF(["approve","reject"]),notes:ek().max(2e3).optional()});var dF=eF(["info","warning","critical"]),dL=eF(["account","system","service"]),dB=eF(["all","mutations","pii_access","security"]);eP({page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20),search:ek().optional(),action:ek().optional(),resourceType:ek().optional(),severity:dF.optional(),actorType:dL.optional(),category:dB.optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),actorId:ek().uuid().nullable(),actorType:dL,actorName:ek().nullable(),action:ek(),resourceType:ek(),resourceId:ek().nullable(),previousState:eN(eE()).nullable(),newState:eN(eE()).nullable(),ipAddress:ek().nullable(),userAgent:ek().nullable(),requestId:ek().nullable(),severity:dF,createdAt:ek()});var dz=eF(["bronze","silver","gold","platinum","diamond"]),dU=eF(["credit","debit"]),dq=eF(["pending","confirmed","minted","spent"]),d$=eF(["social_share","email_campaign","referral_link","content_creation","community_post","brand_promotion"]);eF(["pending","submitting","confirmed","failed"]),eF(["active","completed","forfeited"]);var dH=eF(["fee_discount","premium_feature","governance_vote","marketplace_credit","custom"]);eF(["active","used","expired","revoked"]);var dV=eF(["investor","sponsor","affiliate","marketplace","all"]),dW=eP({streakBonuses:eR(eP({minDays:eS().int().min(1),multiplier:eS().min(1)})).optional(),tierMultipliers:eR(eP({tier:dz,multiplier:eS().min(1)})).optional(),seasonalCampaigns:eR(eP({name:ek().min(1),multiplier:eS().min(1),startsAt:ek().datetime(),expiresAt:ek().datetime()})).optional(),channelMultipliers:eR(eP({channel:ek().min(1),multiplier:eS().min(1)})).optional()}).default({}),dG=eP({cliffDays:eS().int().min(0),vestingDays:eS().int().min(1)}).nullable().optional();eP({id:ek().uuid(),accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),walletAddress:ek().nullable().optional(),pendingPoints:eS().int().default(0),mintedPoints:eS().int().default(0),redeemedPoints:eS().int().default(0),lifetimePoints:eS().int().default(0),tier:dz,tierUpd
1atedAt:ek().datetime().nullable().optional(),streakDays:eS().int().default(0),lastActivityAt:ek().datetime().nullable().optional(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),rewardAccountId:ek().uuid(),accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),ruleId:ek().uuid().nullable().optional(),direction:dU,points:eS().int().min(1),balanceAfter:eS().int(),actionKey:ek(),sourceEntityType:ek().nullable().optional(),sourceEntityId:ek().uuid().nullable().optional(),channel:d$.nullable().optional(),txHash:ek().nullable().optional(),status:dq,metadata:eN(eE()).default({}),expiresAt:ek().datetime().nullable().optional(),createdAt:ek().datetime()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),actionKey:ek(),actorRole:dV,basePoints:eS().int().min(1),maxPerDay:eS().int().min(1).nullable().optional(),maxPerUser:eS().int().min(1).nullable().optional(),cooldownSeconds:eS().int().min(0).nullable().optional(),multiplierConfig:dW,vestingSchedule:dG,isActive:eT().default(!0),startsAt:ek().datetime().nullable().optional(),expiresAt:ek().datetime().nullable().optional(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({marketplaceTenantId:ek().uuid(),actionKey:ek().min(1),actorRole:dV,basePoints:eS().int().min(1),maxPerDay:eS().int().min(1).nullable().optional(),maxPerUser:eS().int().min(1).nullable().optional(),cooldownSeconds:eS().int().min(0).nullable().optional(),multiplierConfig:dW.optional(),vestingSchedule:dG,isActive:eT().default(!0),startsAt:ek().datetime().nullable().optional(),expiresAt:ek().datetime().nullable().optional()}),eP({actionKey:ek().min(1).optional(),actorRole:dV.optional(),basePoints:eS().int().min(1).optional(),maxPerDay:eS().int().min(1).nullable().optional(),maxPerUser:eS().int().min(1).nullable().optional(),cooldownSeconds:eS().int().min(0).nullable().optional(),multiplierConfig:dW.optional(),vestingSchedule:dG,isActive:eT().optional(),startsAt:ek().datetime().nullable().optional(),expiresAt:ek().datetime().nullable().optional()}),eP({accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),actionKey:ek().min(1),sourceEntityType:ek().nullable().optional(),sourceEntityId:ek().uuid().nullable().optional(),channel:d$.nullable().optional(),metadata:eN(eE()).optional()}),eP({rewardAccountId:ek().uuid(),accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),rewardType:dH,pointsCost:eS().int().min(1),benefitDetails:eN(eE()).default({}),expiresAt:ek().datetime().nullable().optional()}),eP({rank:eS().int().min(1),accountId:ek().uuid(),displayName:ek(),avatarUrl:ek().nullable().optional(),lifetimePoints:eS().int(),tier:dz,streakDays:eS().int()});var dK=eF(["fee_discount","premium_feature","marketplace_credit","governance_vote","subscription_upgrade","custom","investment_discount","early_access","saas_product","professional_service","event_ticket"]),dZ=eF(["auto","manual","external"]),dY=eF(["pending","processing","fulfilled","failed","revoked"]),dX=eF(["platform","sponsor","partner"]),dJ=eF(["pending","active","suspended"]),dQ=eP({silver:eS().min(0).max(1).optional(),gold:eS().min(0).max(1).optional(),platinum:eS().min(0).max(1).optional(),diamond:eS().min(0).max(1).optional()});eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek().min(1),description:ek().nullable().optional(),category:dK,baseCost:eS().int().min(1),tierDiscounts:dQ.nullable().optional(),maxRedemptionsPerUser:eS().int().min(1).nullable().optional(),totalInventory:eS().int().min(1).nullable().optional(),remainingInventory:eS().int().min(0).nullable().optional(),fulfillmentType:dZ,fulfillmentConfig:eN(eE()).default({}),iconUrl:ek().url().nullable().optional(),isActive:eT().default(!0),validFrom:ek().datetime().nullable().optional(),validUntil:ek().datetime().nullable().optional(),providerType:dX.default("platform"),providerTenantId:ek().uuid().nullable().optional(),offeringId:ek().uuid().nullable().optional(),providerName:ek().nullable().optional(),providerLogoUrl:ek().url().nullable().optional(),externalValue:ek().nullable().optional(),externalRedemptionUrl:ek().url().nullable().optional(),redemptionCode:ek().nullable().optional(),approvalRequired:eT().default(!1),approved:eT().default(!0),approvedAt:ek().datetime().nullable().optional(),approvedByAccountId:ek().uuid().nullable().optional(),featured:eT().default(!1),redeemCount:eS().int().min(0).default(0),minTier:ek().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({id:ek().uuid(),redemptionId:ek().uuid(),benefitCatalogId:ek().uuid(),status:dY,fulfillmentDetails:eN(eE()).default({}),processedAt:ek().datetime().nullable().optional(),failedReason:ek().nullable().optional(),externalReferenceId:ek().nullable().optional(),createdAt:ek().datetime()}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek().min(1).max(200),description:ek().max(2e3).optional(),category:dK,baseCost:eS().int().min(1),tierDiscounts:dQ.optional(),maxRedemptionsPerUser:eS().int().min(1).nullable().optional(),totalInventory:eS().int().min(1).nullable().optional(),fulfillmentType:dZ.default("auto"),fulfillmentConfig:eN(eE()).default({}),iconUrl:ek().url().nullable().optional(),isActive:eT().default(!0),validFrom:ek().datetime().nullable().optional(),validUntil:ek().datetime().nullable().optional(),providerType:dX.default("platform"),providerTenantId:ek().uuid().nullable().optional(),offeringId:ek().uuid().nullable().optional(),providerName:ek().max(200).nullable().optional(),providerLogoUrl:ek().url().nullable().optional(),externalValue:ek().max(500).nullable().optional(),externalRedemptionUrl:ek().url().nullable().optional(),redemptionCode:ek().max(200).nullable().optional(),approvalRequired:eT().default(!1),featured:eT().default(!1),minTier:ek().nullable().optional(),metadata:eN(eE()).default({})}),eP({approved:eT()}),eP({name:ek().min(1).max(200).optional(),description:ek().max(2e3).nullable().optional(),category:dK.optional(),baseCost:eS().int().min(1).optional(),tierDiscounts:dQ.nullable().optional(),maxRedemptionsPerUser:eS().int().min(1).nullable().optional(),totalInventory:eS().int().min(1).nullable().optional(),remainingInventory:eS().int().min(0).nullable().optional(),fulfillmentType:dZ.optional(),fulfillmentConfig:eN(eE()).optional(),iconUrl:ek().url().nullable().optional(),isActive:eT().optional(),validFrom:ek().datetime().nullable().optional(),validUntil:ek().datetime().nullable().optional(),metadata:eN(eE()).optional()}),eP({accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),benefitId:ek().uuid(),message:ek().max(500).optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),category:dK.optional(),isActive:eB.boolean().optional(),providerType:dX.optional(),featured:eB.boolean().optional(),approved:eB.boolean().optional(),minTier:ek().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),accountId:ek().uuid(),providerType:eF(["sponsor","partner"]),companyName:ek().min(1),description:ek().nullable().optional(),logoUrl:ek().url().nullable().optional(),websiteUrl:ek().url().nullable().optional(),contactEmail:ek().email().nullable().optional(),isVerified:eT().default(!1),totalRewardsListed:eS().int().min(0).default(0),totalRedemptions:eS().int().min(0).default(0),status:dJ,metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),accountId:ek().uuid(),providerType:eF(["sponsor","partner"]),companyName:ek().min(1).max(200),description:ek().max(2e3).optional(),logoUrl:ek().url().nullable().optional(),websiteUrl:ek().url().nullable().optional(),contactEmail:ek().email().nullable().optional(),metadata:eN(eE()).default({})}).omit({marketplaceTenantId:!0,tenantId:!0,accountId:!0,providerType:!0}).partial();var d0=eF(["cofounder","advisor","fractional_cto","fractional_cfo","fractional_cmo","board_member","employee","contractor","mentor"]),d1=eF(["full_time","part_time","advisory","project_based"]),d2=eF(["equity_only","salary_plus_equity","salary_only","advisory_shares"]),d5=eF(["draft","active","filled","closed"]),d3=eF(["applied","reviewing","shortlisted","interview","offered","accepted","rejected","withdrawn"]),d4=eF(["introduction","interview","offer","hire"]),d9=eF(["pending","accepted","declined"]);eF(["fintech","real_estate","healthcare","saas","ai_ml","blockchain","ecommerce","edtech","cleantech","biotech","media","logistics","cybersecurity","insurtech","agritech","other"]);var d6=eP({id:ek().uuid(),accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),headline:ek(),bio:ek().nullable(),skills:eR(ek()),experienceYears:eS().int(),roleTypes:eR(d0),industries:eR(ek()),availability:d1,compensationPreference:d2,linkedinUrl:ek().nullable(),portfolioUrl:ek().nullable(),resumeAssetId:ek().uuid().nullable(),isPublic:eT(),isVerified:eT(),aiMatchScore:ek().nullable(),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()});eP({headline:ek().min(1).max(200),bio:ek().max(5e3).optional(),skills:eR(ek().min(1).max(50)).min(1).max(30),experienceYears:eS().int().min(0).max(50),roleTypes:eR(d0).min(1),industries:eR(ek().min(1).max(50)).min(1).max(10),availability:d1,compensationPreference:d2,linkedinUrl:ek().url().optional(),portfolioUrl:ek().url().optional(),resumeAssetId:ek().uuid().optional(),isPublic:eT().optional().default(!0),metadata:eN(eE()).optional().default({})}),eP({headline:ek().min(1).max(200).optional(),bio:ek().max(5e3).nullable().optional(),skills:eR(ek().min(1).max(50)).min(1).max(30).optional(),experienceYears:eS().int().min(0).max(50).optional(),roleTypes:eR(d0).min(1).optional(),industries:eR(ek().min(1).max(50)).min(1).max(10).optional(),availability:d1.optional(),compensationPreference:d2.optional(),linkedinUrl:ek().url().nullable().optional(),portfolioUrl:ek().url().nullable().optional(),resumeAssetId:ek().uuid().nullable().optional(),isPublic:eT().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).optional().default(1),limit:eB.number().int().min(1).max(100).optional().default(20),roleType:d0.optional(),availability:d1.optional(),industry:ek().optional(),skills:ek().optional(),experienceMin:eB.number().int().min(0).optional(),experienceMa
1x:eB.number().int().max(50).optional(),search:ek().optional(),isPublic:eB.boolean().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),createdByAccountId:ek().uuid(),offeringId:ek().uuid().nullable(),entityId:ek().uuid().nullable(),title:ek(),description:ek().nullable(),roleType:d0,industry:ek(),requiredSkills:eR(ek()),preferredSkills:eR(ek()),experienceMin:eS().int(),experienceMax:eS().int().nullable(),compensation:ek(),equity:ek().nullable(),location:ek(),status:d5,applicantCount:eS().int(),aiMatchingEnabled:eT(),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({title:ek().min(1).max(200),description:ek().max(5e3).optional(),roleType:d0,industry:ek().min(1).max(50),requiredSkills:eR(ek().min(1).max(50)).min(1).max(20),preferredSkills:eR(ek().min(1).max(50)).max(20).optional().default([]),experienceMin:eS().int().min(0).optional().default(0),experienceMax:eS().int().max(50).nullable().optional(),compensation:ek().min(1).max(100),equity:ek().max(100).nullable().optional(),location:ek().min(1).max(100).optional().default("remote"),offeringId:ek().uuid().optional(),entityId:ek().uuid().optional(),aiMatchingEnabled:eT().optional().default(!0),metadata:eN(eE()).optional().default({})}),eP({title:ek().min(1).max(200).optional(),description:ek().max(5e3).nullable().optional(),roleType:d0.optional(),industry:ek().min(1).max(50).optional(),requiredSkills:eR(ek().min(1).max(50)).min(1).max(20).optional(),preferredSkills:eR(ek().min(1).max(50)).max(20).optional(),experienceMin:eS().int().min(0).optional(),experienceMax:eS().int().max(50).nullable().optional(),compensation:ek().min(1).max(100).optional(),equity:ek().max(100).nullable().optional(),location:ek().min(1).max(100).optional(),offeringId:ek().uuid().nullable().optional(),entityId:ek().uuid().nullable().optional(),status:d5.optional(),aiMatchingEnabled:eT().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).optional().default(1),limit:eB.number().int().min(1).max(100).optional().default(20),roleType:d0.optional(),industry:ek().optional(),status:d5.optional(),offeringId:ek().uuid().optional(),entityId:ek().uuid().optional(),createdByAccountId:ek().uuid().optional(),search:ek().optional()}),eP({id:ek().uuid(),listingId:ek().uuid(),applicantAccountId:ek().uuid(),talentProfileId:ek().uuid(),coverLetter:ek().nullable(),status:d3,matchScore:ek().nullable(),reviewerNotes:ek().nullable(),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({talentProfileId:ek().uuid(),coverLetter:ek().max(5e3).optional(),metadata:eN(eE()).optional().default({})}),eP({status:d3,reviewerNotes:ek().max(2e3).nullable().optional()}),eP({page:eB.number().int().min(1).optional().default(1),limit:eB.number().int().min(1).max(100).optional().default(20),status:d3.optional()}),eP({id:ek().uuid(),listingId:ek().uuid().nullable(),requesterAccountId:ek().uuid(),talentAccountId:ek().uuid(),marketplaceTenantId:ek().uuid(),connectionType:d4,status:d9,message:ek().nullable(),metadata:eN(eE()).default({}),createdAt:ek()}),eP({talentAccountId:ek().uuid(),listingId:ek().uuid().optional(),connectionType:d4.optional().default("introduction"),message:ek().max(2e3).optional(),metadata:eN(eE()).optional().default({})}),eP({status:d9}),eP({query:ek().min(1).max(500),roleTypes:eR(d0).optional(),industries:eR(ek()).optional(),skills:eR(ek()).optional(),availability:d1.optional(),experienceMin:eS().int().min(0).optional(),experienceMax:eS().int().max(50).optional(),limit:eS().int().min(1).max(50).optional().default(20)}),eP({profile:d6,overallScore:eS().min(0).max(100),breakdown:eP({skillsMatch:eS().min(0).max(100),industryMatch:eS().min(0).max(100),experienceFit:eS().min(0).max(100),availabilityFit:eS().min(0).max(100),compensationFit:eS().min(0).max(100)})});var d8=eF(["beginner","intermediate","advanced","expert"]),d7=eF(["draft","review","published","archived"]),ue=eF(["free","paid"]),ut=eF(["video","text","quiz","livestream","assignment","download"]),ui=eF(["enrolled","in_progress","completed","dropped","expired"]),ua=eF(["not_started","in_progress","completed"]),un=eF(["scheduled","live","ended","canceled"]),ur=eF(["draft","published","live","completed","canceled"]),uo=eF(["keynote","
1workshop","panel","fireside_chat","networking","breakout"]),ul=eF(["registered","attended","no_show","canceled"]),us=eF(["multiple_choice","true_false","short_answer"]);eP({id:ek().uuid(),accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),displayName:ek(),bio:ek().nullable(),headline:ek().nullable(),expertise:eR(ek()),industries:eR(ek()),avatarUrl:ek().nullable(),bannerUrl:ek().nullable(),websiteUrl:ek().nullable(),linkedinUrl:ek().nullable(),studentCount:eS().int(),courseCount:eS().int(),avgRating:ek().nullable(),isVerified:eT(),isFeatured:eT(),aiAssistEnabled:eT(),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({displayName:ek().min(1).max(200),bio:ek().max(5e3).optional(),headline:ek().max(300).optional(),expertise:eR(ek().min(1).max(100)).max(20).optional().default([]),industries:eR(ek().min(1).max(100)).max(10).optional().default([]),avatarUrl:ek().url().optional(),bannerUrl:ek().url().optional(),websiteUrl:ek().url().optional(),linkedinUrl:ek().url().optional(),aiAssistEnabled:eT().optional().default(!0),metadata:eN(eE()).optional().default({})}),eP({displayName:ek().min(1).max(200).optional(),bio:ek().max(5e3).nullable().optional(),headline:ek().max(300).nullable().optional(),expertise:eR(ek().min(1).max(100)).max(20).optional(),industries:eR(ek().min(1).max(100)).max(10).optional(),avatarUrl:ek().url().nullable().optional(),bannerUrl:ek().url().nullable().optional(),websiteUrl:ek().url().nullable().optional(),linkedinUrl:ek().url().nullable().optional(),aiAssistEnabled:eT().optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),instructorId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),title:ek(),slug:ek(),description:ek().nullable(),shortDescription:ek().nullable(),coverImageUrl:ek().nullable(),previewVideoUrl:ek().nullable(),category:ek().nullable(),tags:eR(ek()),difficulty:d8,language:ek(),status:d7,pricing:ue,price:ek().nullable(),currency:ek(),estimatedDurationMinutes:eS().int().nullable(),moduleCount:eS().int(),lessonCount:eS().int(),enrollmentCount:eS().int(),completionCount:eS().int(),avgRating:ek().nullable(),certificateEnabled:eT(),certificateTemplateId:ek().uuid().nullable(),aiGeneratedOutline:eN(eE()).nullable(),metadata:eN(eE()).default({}),publishedAt:ek().nullable(),createdAt:ek(),updatedAt:ek()}),eP({title:ek().min(1).max(300),description:ek().max(1e4).optional(),shortDescription:ek().max(500).optional(),coverImageUrl:ek().url().optional(),previewVideoUrl:ek().url().optional(),category:ek().max(100).optional(),tags:eR(ek().min(1).max(50)).max(20).optional().default([]),difficulty:d8.optional().default("beginner"),language:ek().max(10).optional().default("en"),pricing:ue.optional().default("free"),price:eS().min(0).max(99999).optional(),currency:ek().max(3).optional().default("USD"),estimatedDurationMinutes:eS().int().min(1).optional(),certificateEnabled:eT().optional().default(!0),certificateTemplateId:ek().uuid().optional(),metadata:eN(eE()).optional().default({})}),eP({title:ek().min(1).max(300).optional(),description:ek().max(1e4).nullable().optional(),shortDescription:ek().max(500).nullable().optional(),coverImageUrl:ek().url().nullable().optional(),previewVideoUrl:ek().url().nullable().optional(),category:ek().max(100).nullable().optional(),tags:eR(ek().min(1).max(50)).max(20).optional(),difficulty:d8.optional(),language:ek().max(10).optional(),pricing:ue.optional(),price:eS().min(0).max(99999).nullable().optional(),currency:ek().max(3).optional(),estimatedDurationMinutes:eS().int().min(1).nullable().optional(),certificateEnabled:eT().optional(),certificateTemplateId:ek().uuid().nullable().optional(),status:d7.optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).optional().default(1),limit:eB.number().int().min(1).max(100).optional().default(20),status:d7.optional(),category:ek().optional(),difficulty:d8.optional(),pricing:ue.optional(),instructorId:ek().uuid().optional(),search:ek().optional(),language:ek().optional()}),eP({id:ek().uuid(),courseId:ek().uuid(),title:ek(),description:ek().nullable(),sortOrder:eS().int(),estimatedMinutes:eS().int().nullable(),createdAt:ek(),updatedAt:ek()}),eP({title:ek().min(1).max(300),description:ek().max(2e3).optional(),sortOrder:eS().int().min(0).optional().default(0),estimatedMinutes:eS().int().min(1).optional()}),eP({title:ek().min(1).max(300).optional(),description:ek().max(2e3).nullable().optional(),sortOrder:eS().int().min(0).optional(),estimatedMinutes:eS().int().min(1).nullable().optional()}),eP({id:ek().uuid(),moduleId:ek().uuid(),courseId:ek().uuid(),title:ek(),description:ek().nullable(),lessonType:ut,contentUrl:ek().nullable(),contentHtml:ek().nullable(),durationMinutes:eS().int().nullable(),sortOrder:eS().int(),isFree:eT(),aiGeneratedContent:eN(eE()).nullable(),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({title:ek().min(1).max(300),description:ek().max(2e3).optional(),lessonType:ut,contentUrl:ek().optional(),contentHtml:ek().optional(),durationMinutes:eS().int().min(1).optional(),sortOrder:eS().int().min(0).optional().default(0),isFree:eT().optional().default(!1),metadata:eN(eE()).optional().default({})}),eP({title:ek().min(1).max(300).optional(),description:ek().max(2e3).nullable().optional(),lessonType:ut.optional(),contentUrl:ek().nullable().optional(),contentHtml:ek().nullable().optional(),durationMinutes:eS().int().min(1).nullable().optional(),sortOrder:eS().int().min(0).optional(),isFree:eT().optional(),metadata:eN(eE()).optional()});var ud=eP({question:ek().min(1),type:us,options:eR(ek()).optional(),correctAnswer:ek(),explanation:ek().optional(),points:eS().int().min(1).default(1)});eP({id:ek().uuid(),lessonId:ek().uuid(),courseId:ek().uuid(),title:ek(),passingScore:eS().int(),timeLimit:eS().int().nullable(),shuffleQuestions:eT(),questions:eR(ud),aiGenerated:eT(),createdAt:ek(),updatedAt:ek()}),eP({title:ek().min(1).max(300),passingScore:eS().int().min(0).max(100).optional().default(70),timeLimit:eS().int().min(1).optional(),shuffleQuestions:eT().optional().default(!0),questions:eR(ud).min(1),aiGenerated:eT().optional().default(!1)}),eP({title:ek().min(1).max(300).optional(),passingScore:eS().int().min(0).max(100).optional(),timeLimit:eS().int().min(1).nullable().optional(),shuffleQuestions:eT().optional(),questions:eR(ud).min(1).optional()}),eP({id:ek().uuid(),courseId:ek().uuid(),accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),status:ui,progress:ek(),completedLessons:eS().int(),totalLessons:eS().int(),quizAvgScore:ek().nullable(),enrolledAt:ek(),startedAt:ek().nullable(),completedAt:ek().nullable(),lastAccessedAt:ek().nullable(),certificateId:ek().uuid().nullable(),metadata:eN(eE()).default({})}),eP({courseId:ek().uuid(),metadata:eN(eE()).optional().default({})}),eP({status:ui.optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).optional().default(1),limit:eB.number().int().min(1).max(100).optional().default(20),courseId:ek().uuid().optional(),accountId:ek().uuid().optional(),status:ui.optional()}),eP({id:ek().uuid(),enrollmentId:ek().uuid(),lessonId:ek().uuid(),accountId:ek().uuid(),status:ua,progressPercent:ek(),timeSpentSeconds:eS().int(),quizScore:ek().nullable(),quizAttempts:eS().int(),completedAt:ek().nullable(),lastAccessedAt:ek().nullable()}),eP({status:ua.optional(),progressPercent:eS().min(0).max(100).optional(),timeSpentSeconds:eS().int().min(0).optional(),quizScore:eS().min(0).max(100).optional()}),eP({id:ek().uuid(),enrollmentId:ek().uuid(),courseId:ek().uuid(),accountId:ek().uuid(),instructorId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),certificateNumber:ek(),studentName:ek(),courseName:ek(),instructorName:ek(),completionDate:ek(),grade:ek().nullable(),pdfUrl:ek().nullable(),txHash:ek().nullable(),tokenId:ek().nullable(),verificationUrl:ek().nullable(),metadata:eN(eE()).default({}),createdAt:ek()}),eP({enrollmentId:ek().uuid(),studentName:ek().min(1).max(200),grade:ek().max(50).optional(),mintOnChain:eT().optional().default(!1),metadata:eN(eE()).optional().default({})}),eP({id:ek().uuid(),courseId:ek().uuid().nullable(),instructorId:ek().uuid(),marketplaceTenantId:ek().uuid(),title:ek(),description:ek().nullable(),scheduledAt:ek(),startedAt:ek().nullable(),endedAt:ek().nullable(),duration:eS().int().nullable(),streamUrl:ek().nullable(),recordingUrl:ek().nullable(),status:un,maxAttendees:eS().int().nullable(),attendeeCount:eS().int(),chatEnabled:eT(),qaEnabled:eT(),metadata:eN(eE()).default({}),createdAt:ek()}),eP({courseId:ek().uuid().optional(),title:ek().min(1).max(300),description:ek().max(5e3).optional(),scheduledAt:ek().datetime(),duration:eS().int().min(1).optional(),maxAttendees:eS().int().min(1).optional(),chatEnabled:eT().optional().default(!0),qaEnabled:eT().optional().default(!0),metadata:eN(eE()).optional().default({})}),eP({title:ek().min(1).max(300).optional(),description:ek().max(5e3).nullable().optional(),scheduledAt:ek().datetime().optional(),duration:eS().int().min(1).nullable().optional(),streamUrl:ek().nullable().optional(),recordingUrl:ek().url().nullable().optional(),status:un.optional(),maxAttendees:eS().int().min(1).nullable().optional(),chatEnabled:eT().optional(),qaEnabled:eT().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).optional().default(1),limit:eB.number().int().min(1).max(100).optional().default(20),courseId:ek().uuid().optional(),instructorId:ek().uuid().optional(),status:un.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),createdByAccountId:ek().uuid(),title:ek(),slug:ek(),description:ek().nullable(),coverImageUrl:ek().nullable(),startDate:ek(),endDate:ek(),timezone:ek(),status:ur,registrationCount:eS().int(),attendeeCount:eS().int(),isPublic:eT(),registrationPrice:ek().nullable(),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({title:ek().min(1).max(300),description:ek().max(1e4).optional(),coverImageUrl:ek().url().optional(),startDate:ek().datetime(),endDate:ek().datetime(),timezone:ek().max(50).optional().default("America/Ne
1w_York"),isPublic:eT().optional().default(!0),registrationPrice:eS().min(0).optional(),metadata:eN(eE()).optional().default({})}),eP({title:ek().min(1).max(300).optional(),description:ek().max(1e4).nullable().optional(),coverImageUrl:ek().url().nullable().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional(),timezone:ek().max(50).optional(),status:ur.optional(),isPublic:eT().optional(),registrationPrice:eS().min(0).nullable().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).optional().default(1),limit:eB.number().int().min(1).max(100).optional().default(20),status:ur.optional(),search:ek().optional(),isPublic:eB.boolean().optional()}),eP({id:ek().uuid(),summitId:ek().uuid(),title:ek(),description:ek().nullable(),sortOrder:eS().int(),color:ek().nullable()}),eP({title:ek().min(1).max(200),description:ek().max(2e3).optional(),sortOrder:eS().int().min(0).optional().default(0),color:ek().max(20).optional()}),eP({title:ek().min(1).max(200).optional(),description:ek().max(2e3).nullable().optional(),sortOrder:eS().int().min(0).optional(),color:ek().max(20).nullable().optional()}),eP({id:ek().uuid(),summitId:ek().uuid(),trackId:ek().uuid(),instructorId:ek().uuid().nullable(),speakerName:ek().nullable(),title:ek(),description:ek().nullable(),sessionType:uo,startTime:ek(),endTime:ek(),streamUrl:ek().nullable(),recordingUrl:ek().nullable(),maxAttendees:eS().int().nullable(),sortOrder:eS().int(),metadata:eN(eE()).default({})}),eP({trackId:ek().uuid(),instructorId:ek().uuid().optional(),speakerName:ek().max(200).optional(),title:ek().min(1).max(300),description:ek().max(5e3).optional(),sessionType:uo,startTime:ek().datetime(),endTime:ek().datetime(),maxAttendees:eS().int().min(1).optional(),sortOrder:eS().int().min(0).optional().default(0),metadata:eN(eE()).optional().default({})}),eP({trackId:ek().uuid().optional(),instructorId:ek().uuid().nullable().optional(),speakerName:ek().max(200).nullable().optional(),title:ek().min(1).max(300).optional(),description:ek().max(5e3).nullable().optional(),sessionType:uo.optional(),startTime:ek().datetime().optional(),endTime:ek().datetime().optional(),streamUrl:ek().nullable().optional(),recordingUrl:ek().url().nullable().optional(),maxAttendees:eS().int().min(1).nullable().optional(),sortOrder:eS().int().min(0).optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),summitId:ek().uuid(),accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),status:ul,registeredAt:ek(),attendedAt:ek().nullable(),sessionsAttended:eR(ek())}),eP({summitId:ek().uuid()}),eP({id:ek().uuid(),courseId:ek().uuid(),accountId:ek().uuid(),rating:eS().int().min(1).max(5),review:ek().nullable(),isVerified:eT(),createdAt:ek(),updatedAt:ek()}),eP({courseId:ek().uuid(),rating:eS().int().min(1).max(5),review:ek().max(5e3).optional()}),eP({rating:eS().int().min(1).max(5).optional(),review:ek().max(5e3).nullable().optional()}),eP({page:eB.number().int().min(1).optional().default(1),limit:eB.number().int().min(1).max(100).optional().default(20),rating:eB.number().int().min(1).max(5).optional()}),eP({topic:ek().min(1).max(500),difficulty:d8.optional().default("intermediate"),targetAudience:ek().max(500).optional(),moduleCount:eS().int().min(1).max(20).optional().default(5),lessonsPerModule:eS().int().min(1).max(10).optional().default(4),language:ek().max(10).optional().default("en")}),eP({lessonContent:ek().min(1).max(5e4),questionCount:eS().int().min(1).max(50).optional().default(5),difficulty:d8.optional().default("intermediate"),questionTypes:eR(us).optional()}),eP({title:ek().min(1).max(300),courseTitle:ek().max(300).optional(),moduleTitle:ek().max(300).optional(),outline:ek().max(5e3).optional(),difficulty:d8.optional().default("intermediate"),targetLength:eF(["short","medium","long"]).optional().default("medium")}),eP({courseId:ek().uuid()}),eP({title:ek(),description:ek(),modules:eR(eP({title:ek(),description:ek(),estimatedMinutes:eS().int(),lessons:eR(eP({title:ek(),description:ek(),lessonType:ut,durationMinutes:eS().int()}))}))}),eP({questions:eR(ud)}),eP({contentHtml:ek(),summary:ek(),keyTakeaways:eR(ek())}),eP({overallScore:eS().int().min(0).max(100),suggestions:eR(eP({area:ek(),severity:eF(["low","medium","high"]),suggestion:ek(),details:ek().optional()}))});var uu=eF(["founder","cofounder","employee","board_member","advisor","partner","consultant","friend","family","investor","mentor","legal_counsel","accountant","other"]),uc=eF(["board_member","strategic_advisor","legal_advisor","financial_advisor","technical_advisor","industry_expert","fundraising_advisor","founder","cofounder","employee","partner","consultant","friend","family","investor","mentor","legal_counsel","accountant","other"]),up=eF(["invited","active","paused","completed","terminated"]),um=eF(["equity","retainer","success_fee","advisory_shares","pro_bono"]),uf=eF(["investor_introduction","meeting_attended","document_reviewed","strategy_session","fundraising_c
1all","media_introduction","talent_referral","deal_facilitation","compliance_review","other"]),uh=eF(["logged","verified","disputed"]),ug=eF(["investor","partner","vendor","media","legal","talent"]),uv=eF(["made","meeting_scheduled","meeting_completed","converted","cold"]),uy=eF(["invested","partnered","hired","other"]),ub=eF(["fundraising","introductions","meetings","document_review","talent","media"]),u_=eF(["active","achieved","missed","extended"]),ux=eF(["dollars","count","hours","percent"]),uA=eF(["board_meeting","advisory_call","strategy_session","investor_meeting","review_session"]),uI=eF(["scheduled","completed","canceled","no_show"]),uw=eF(["pending","accepted","expired","revoked"]),uk=eP({equityPercent:eS().optional(),retainerAmount:eS().optional(),retainerCurrency:ek().optional(),retainerFrequency:eF(["monthly","quarterly","annual"]).optional(),successFeePercent:eS().optional(),advisorySharesCount:eS().optional(),advisorySharesVestingMonths:eS().optional()}).default({}),uS=eP({description:ek(),targetMetric:ek(),targetValue:eS(),currentValue:eS(),deadline:ek()}),uT=eP({accountId:ek().uuid().optional(),name:ek(),role:ek()}),uC=eP({description:ek(),assignee:ek().optional(),dueDate:ek().optional(),completed:eT().optional()});eP({advisorAccountId:ek().uuid(),sponsorTenantId:ek().uuid(),offeringId:ek().uuid().optional(),entityId:ek().uuid().optional(),role:uc,compensationType:um,compensationDetails:uk.optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional(),goals:eR(uS).optional(),contributorType:uu.optional(),metadata:eN(eE()).optional()}),eP({role:uc.optional(),status:up.optional(),compensationType:um.optional(),compensationDetails:uk.optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional(),goals:eR(uS).optional(),contributorType:uu.optional(),metadata:eN(eE()).optional()}),eP({advisorAccountId:ek().uuid().optional(),sponsorTenantId:ek().uuid().optional(),offeringId:ek().uuid().optional(),entityId:ek().uuid().optional(),role:uc.optional(),status:up.optional(),contributorType:uu.optional(),page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20)}),eP({engagementId:ek().uuid(),activityType:uf,title:ek().min(1).max(255),description:ek().optional(),relatedEntityType:eF(["investor","offering","entity","agreement"]).optional(),relatedEntityId:ek().uuid().optional(),outcome:ek().optional(),impactScore:eS().int().min(1).max(10).optional(),hoursSpent:eS().min(0).max(999).optional(),metadata:eN(eE()).optional()}),eP({title:ek().min(1).max(255).optional(),description:ek().optional(),outcome:ek().optional(),impactScore:eS().int().min(1).max(10).optional(),sponsorRating:eS().int().min(1).max(5).optional(),hoursSpent:eS().min(0).max(999).optional(),status:uh.optional(),metadata:eN(eE()).optional()}),eP({engagementId:ek().uuid().optional(),advisorAccountId:ek().uuid().optional(),activityType:uf.optional(),status:uh.optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional(),page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20)}),eP({engagementId:ek().uuid(),introducedContactName:ek().min(1).max(255),introducedContactEmail:ek().email(),introducedContactRole:ug,offeringId:ek().uuid().optional(),notes:ek().optional(),followUpDate:ek().datetime().optional(),metadata:eN(eE()).optional()}),eP({status:uv.optional(),conversionType:uy.optional(),conversionValue:eS().min(0).optional(),introducedToAccountId:ek().uuid().optional(),followUpDate:ek().datetime().optional(),notes:ek().optional(),metadata:eN(eE()).optional()}),eP({advisorAccountId:ek().uuid().optional(),engagementId:ek().uuid().optional(),offeringId:ek().uuid().optional(),status:uv.optional(),contactRole:ug.optional(),page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20)}),eP({engagementId:ek().uuid(),title:ek().min(1).max(255),description:ek().optional(),goalType:ub,targetValue:eS().min(0),unit:ux,deadline:ek().datetime()}),eP({title:ek().min(1).max(255).optional(),description:ek().optional(),goalType:ub.optional(),targetValue:eS().min(0).optional(),currentValue:eS().min(0).optional(),unit:ux.optional(),deadline:ek().datetime().optional(),status:u_.optional()}),eP({engagementId:ek().uuid().optional(),advisorAccountId:ek().uuid().optional(),goalType:ub.optional(),status:u_.optional(),page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20)}),eP({engagementId:ek().uuid(),title:ek().min(1).max(255),description:ek().optional(),meetingType:uA,scheduledAt:ek().datetime(),duration:eS().int().min(5).max(480),attendees:eR(uT).optional(),agenda:ek().optional(),metadata:eN(eE()).optional()}),eP({title:ek().min(1).max(255).optional(),description:ek().optional(),meetingType:uA.optional(),scheduledAt:ek().datetime().optional(),duration:eS().int().min(5).max(480).optional(),attendees:eR(uT).optional(),agenda:ek().optional(),notes:ek().optional(),actionItems:eR(uC).optional(),recordingUrl:ek().url().optional(),status:uI.optional()}),eP({engagementId:ek().uuid().optional(),advisorAccountId:ek().uuid().optional(),meetingType:uA.optional(),status:uI.optional(),from:ek().datetime().optional(),to:ek().datetime().optional(),page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20)}),eP({email:ek().email(),firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),contributorType:uu,offeringId:ek().uuid().optional(),entityId:ek().uuid().optional(),message:ek().max(2e3).optional(),metadata:eN(eE()).optional()}),eP({firstName:ek().min(1).max(100).optional(),lastName:ek().min(1).max(100).optional(),metadata:eN(eE()).optional()}),eP({status:uw.optional(),contributorType:uu.optional(),offeringId:ek().uuid().optional(),page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20)});var uE=eF(["openai","anthropic","google","mistral","ollama","azure-openai","groq","xai","together","huggingface","bedrock","vertex"]),uR=eF(["copilot","mcp","template-gen","scoring"]);eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),provider:uE,model:ek(),maskedApiKey:ek(),baseUrl:ek().nullable(),isActive:eT(),usageScope:eR(uR),maxTokensPerRequest:eS().int(),rateLimitRpm:eS().int(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({provider:uE,model:ek().min(1),apiKey:ek().min(1),baseUrl:ek().url().optional(),isActive:eT().default(!0),usageScope:eR(uR).min(1),maxTokensPerRequest:eS().int().min(256).max(128e3).default(4096),rateLimitRpm:eS().int().min(1).max(1e4).default(60),metadata:eN(eE()).default({})}),eP({provider:uE.optional(),model:ek().min(1).optional(),apiKey:ek().min(1).optional(),baseUrl:ek().url().nullable().optional(),isActive:eT().optional(),usageScope:eR(uR).min(1).optional(),maxTokensPerRequest:eS().int().min(256).max(128e3).optional(),rateLimitRpm:eS().int().min(1).max(1e4).optional(),metadata:eN(eE()).optional()}),eP({configId:ek().uuid().optional(),provider:uE.optional(),model:ek().optional(),apiKey:ek().optional(),baseUrl:ek().url().optional(),prompt:ek().default("Hello, respond with a single sentence to confirm this connection works.")}),eP({success:eT(),provider:uE,model:ek(),responseText:ek().optional(),latencyMs:eS().int(),error:ek().optional()});var uP={regulation_d:365,reg_d:365,reg_d_506b:365,reg_d_506c:365,reg_d_504:365,regulation_s:180,reg_s:180,regulation_a:0,reg_a:0,reg_a_tier1:0,reg_a_tier2:0,regulation_cf:365,reg_cf:365,uk_eis:90,uk_seis:90,india_aif:365,india_aif_cat1:365,india_aif_cat2:365,india_aif_cat3:365,eu_eltif:365,eu_euveca:365,sg_cis:180,ae_adgm:180,co_equity:180},uO=[];t9(function(e){var t;
1return e&&null!=(t=uP[e.toLowerCase().replace(/[\s-]+/g,"_")])?t:0},"getHoldingPeriodDays"),t9(function(e){if(!e)return!1;let t=e.toLowerCase().replace(/[\s-]+/g,"_");return uO.includes(t)},"isRegulationBlocked");var uM=["regulation_cf","reg_cf","regulation_d","reg_d","reg_d_506b","reg_d_506c","reg_d_504","regulation_s","reg_s","india_aif","india_aif_cat1","india_aif_cat2","india_aif_cat3"],uN=["regulation_a","reg_a","reg_a_tier1","reg_a_tier2","uk_eis","uk_seis","eu_eltif","eu_euveca","sg_cis","ae_adgm","co_equity"];t9(function(e){if(!e)return!1;let t=e.toLowerCase().replace(/[\s-]+/g,"_");return uM.includes(t)},"isBdReviewRequired"),t9(function(e){if(!e)return!0;let t=e.toLowerCase().replace(/[\s-]+/g,"_");return uN.includes(t)},"isBdReviewOptional");var uj=eF(["form","poll","survey","event","review","offer","newsletter_signup","feedback","contact_us","landing_page"]),uD=eF(["draft","active","archived","scheduled"]),uF=eF(["inline","modal","slider","notification_bar","page_takeover"]),uL=eF(["percentage","fixed_amount","free_shipping","buy_one_get_one","free_trial"]),uB=eF(["pending","approved","rejected","spam"]),uz=eF(["active","unsubscribed","bounced","complained"]),uU=eP({id:ek().uuid(),engagementPageId:ek().uuid(),tenantId:ek().uuid(),offerType:uL,value:eS(),promoCode:ek().nullable().optional(),minPurchase:eS().nullable().optional(),maxRedemptions:eS().int().nullable().optional(),redemptionCount:eS().int().default(0),isActive:eT().default(!0),validFrom:ek().datetime().nullable().optional(),validTo:ek().datetime().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()});eP({engagementPageId:ek().uuid(),offerType:uL,value:eS().min(0),promoCode:ek().max(50).optional(),minPurchase:eS().min(0).optional(),maxRedemptions:eS().int().min(1).optional(),isActive:eT().default(!0),validFrom:ek().datetime().optional(),validTo:ek().datetime().optional(),metadata:eN(eE()).default({})}).partial().omit({engagementPageId:!0}),eP({id:ek().uuid(),engagementPageId:ek().uuid(),tenantId:ek().uuid(),styleType:uF,position:ek().nullable().optional(),trigger:eN(eE()).default({}),dimensions:eP({width:ek().nullable().optional(),height:ek().nullable().optional(),maxWidth:ek().nullable().optional(),maxHeight:ek().nullable().optional()}).default({}),customCss:ek().nullable().optional(),autoShow:eT().default(!1),showDelay:eS().int().nullable().optional(),dismissable:eT().default(!0),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({engagementPageId:ek().uuid(),styleType:uF,position:ek().optional(),trigger:eN(eE()).default({}),dimensions:eP({width:ek().optional(),height:ek().optional(),maxWidth:ek().optional(),maxHeight:ek().optional()}).default({}),customCss:ek().optional(),autoShow:eT().default(!1),showDelay:eS().int().min(0).optional(),dismissable:eT().default(!0),metadata:eN(eE()).default({})}).partial().omit({engagementPageId:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),type:uj,status:uD,slug:ek().nullable().optional(),title:ek(),description:ek().nullable().optional(),config:eN(eE()).default({}),fields:eR(eN(eE())).default([]),design:eN(eE()).default({}),settings:eN(eE()).default({}),seo:eP({title:ek().nullable().optional(),description:ek().nullable().optional(),ogImage:ek().nullable().optional()}).default({}),publishedAt:ek().datetime().nullable().optional(),scheduledAt:ek().datetime().nullable().optional(),validFrom:ek().datetime().nullable().optional(),validTo:ek().datetime().nullable().optional(),submissionCount:eS().int().default(0),viewCount:eS().int().default(0),metadata:eN(eE()).default({}),createdBy:ek().uuid().nullable().optional(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({type:uj,title:ek().min(1).max(255),slug:ek().max(255).optional(),description:ek().optional(),config:eN(eE()).default({}),fields:eR(eN(eE())).default([]),design:eN(eE()).default({}),settings:eN(eE()).default({}),seo:eP({title:ek().optional(),description:ek().optional(),ogImage:ek().url().optional()}).default({}),scheduledAt:ek().datetime().optional(),validFrom:ek().datetime().optional(),validTo:ek().datetime().optional(),metadata:eN(eE()).default({})}).partial(),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),type:uj.optional(),status:uD.optional(),search:ek().optional()}),eP({id:ek().uuid(),engagementPageId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),data:eN(eE()).default({}),contactEmail:ek().email().nullable().optional(),contactName:ek().nullable().optional(),moderationStatus:uB.default("pending"),moderatedBy:ek().uuid().nullable().optional(),moderatedAt:ek().datetime().nullable().optional(),ip:ek().nullable().optional(),userAgent:ek().nullable().optional(),referrer:ek().nullable().optional(),metadata:eN(eE()).default({}),createdAt:ek().datetime()}),eP({engagementPageId:ek().uuid(),data:eN(eE()).default({}),contactEmail:ek().email().optional(),contactName:ek().max(255).optional(),metadata:eN(eE()).default({})}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),engagementPageId:ek().uuid().optional(),moderationStatus:uB.optional(),contactEmail:ek().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional()}),eP({moderationStatus:eF(["approved","rejected","spam"])}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),listId:ek().uuid().nullable().optional(),email:ek().email(),name:ek().nullable().optional(),status:uz,subscribedAt:ek().datetime(),unsubscribedAt:ek().datetime().nullable().optional(),source:ek().nullable().optional(),tags:eR(ek()).default([]),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({email:ek().email(),name:ek().max(255).optional(),listId:ek().uuid().optional(),source:ek().max(100).optional(),tags:eR(ek()).default([]),metadata:eN(eE()).default({})}),eP({email:ek().email(),listId:ek().uuid().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),listId:ek().uuid().optional(),status:uz.optional(),search:ek().optional()}),eP({id:ek().uuid(),type:uj,tenantId:ek().uuid(),slug:ek().nullable(),title:ek(),description:ek().nullable(),config:eN(eE()),fields:eR(eN(eE())).default([]),design:eN(eE()),settings:eN(eE()),offer:uU.nullable().optional(),seo:eP({title:ek().nullable(),description:ek().nullable(),ogImage:ek().nullable()}
1).optional(),publishedAt:ek().datetime().nullable(),validFrom:ek().datetime().nullable(),validTo:ek().datetime().nullable(),submissionCount:eS().default(0)}),eP({engagementPageId:ek().uuid(),totalSubmissions:eS().int(),pendingCount:eS().int(),approvedCount:eS().int(),rejectedCount:eS().int(),spamCount:eS().int(),uniqueEmails:eS().int(),last24Hours:eS().int(),last7Days:eS().int(),last30Days:eS().int()}),eP({id:ek().uuid(),contentItemId:ek().uuid(),variantName:ek(),title:ek().nullable().optional(),body:ek().nullable().optional(),sections:eR(eN(eE())).nullable().optional(),weight:eS().int().min(0).max(100).default(50),isControl:eT().default(!1),isWinner:eT().default(!1),impressionCount:eS().default(0),conversionCount:eS().default(0),metadata:eN(eE()).default({}),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({variantName:ek().min(1).max(100),title:ek().optional(),body:ek().optional(),sections:eR(eN(eE())).optional(),weight:eS().int().min(0).max(100).default(50),isControl:eT().default(!1)}).partial(),eP({npsScore:eS(),promoterCount:eS().int(),passiveCount:eS().int(),detractorCount:eS().int(),promoterPct:eS(),passivePct:eS(),detractorPct:eS(),totalResponses:eS().int()}),eP({distribution:eR(eP({stars:eS().int(),count:eS().int(),pct:eS()})),averageRating:eS(),totalRatings:eS().int()}),eP({timeline:eR(eP({date:ek(),totalVotes:eS().int(),byOption:eN(eS().int())})),totalVotes:eS().int()}),eP({fields:eR(eP({fieldName:ek(),fieldType:ek(),displayName:ek(),totalResponses:eS().int(),skipRate:eS(),stats:eN(eE())}))}),eP({started:eS().int(),completed:eS().int(),completionRate:eS(),avgCompletionTimeSeconds:eS().nullable(),medianCompletionTimeSeconds:eS().nullable()}),eP({totalPages:eS().int(),totalViews:eS().int(),totalSubmissions:eS().int(),overallConversionRate:eS(),byType:eN(eP({count:eS().int(),views:eS().int(),submissions:eS().int()})),topPages:eR(eP({id:ek().uuid(),title:ek(),type:ek(),views:eS().int(),submissions:eS().int(),conversionRate:eS()})),dailyTrend:eR(eP({date:ek(),views:eS().int(),submissions:eS().int()}))}),eP({averageRating:eS(),totalReviews:eS().int(),ratingDistribution:eR(eP({stars:eS().int(),count:eS().int(),pct:eS()})),sentimentBreakdown:eP({positive:eS().int(),neutral:eS().int(),negative:eS().int()}),responseRate:eS(),avgResponseTimeMinutes:eS().nullable(),ratingTrend:eR(eP({date:ek(),avgRating:eS(),count:eS().int()}))}),eP({deviceBreakdown:eR(eP({device:ek(),count:eS().int(),pct:eS()})),countryBreakdown:eR(eP({country:ek(),count:eS().int(),pct:eS()})),sourceBreakdown:eR(eP({source:ek(),count:eS().int(),pct:eS()}))}),eP({contentItemId:ek().uuid(),ticketTypeId:ek().uuid().optional(),attendeeName:ek().min(1),attendeeEmail:ek().email(),formData:eN(eE()).default({})}),eP({registrationId:ek().uuid().optional(),qrCode:ek().optional()}),eP({fieldName:ek(),operator:eF(["equals","not_equals","contains","is_empty","is_not_empty","greater_than","less_than"]),value:eO([ek(),eS(),eT()]),action:eF(["show","hide","skip_to_section"]),targetFieldName:ek().optional(),targetSectionId:ek().optional()});var uq=eF(["new","open","pending","on_hold","resolved","closed"]),u$=eF(["question","problem","feature_request","billing","compliance","investment"]),uH=eF(["low","medium","high","urgent"]),uV=eF(["web_form","email","copilot_escalation","api","portal"]),uW=eF(["public_reply","internal_note"]),uG=eF(["merged_into","related","duplicate"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),ticketNumber:ek(),subject:ek(),description:ek(),status:uq.default("new"),type:u$.default("question"),priority:uH.default("medium"),source:uV.default("web_form"),reporterId:ek().uuid().nullable(),reporterEmail:ek().email(),reporterName:ek().nullable(),assignedAgentId:ek().uuid().nullable(),assignedGroupId:ek().uuid().nullable(),crmContactId:ek().uuid().nullable(),linkedTicketId:ek().uuid().nullable(),linkedTicketRelation:uG.nullable(),firstResponseAt:ek().or(eC()).nullable(),resolvedAt:ek().or(eC()).nullable(),closedAt:ek().or(eC()).nullable(),slaBreachedFirstResponse:eT().default(!1),slaBreachedResolution:eT().default(!1),csatScore:eS().int().min(1).max(5).nullable(),csatC
1omment:ek().nullable(),csatSentAt:ek().or(eC()).nullable(),aiCategory:ek().nullable(),aiPriority:ek().nullable(),aiSentiment:ek().nullable(),tags:eR(ek()).default([]),customFields:eN(eE()).default({}),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({subject:ek().min(1).max(500),description:ek().min(1).max(1e4),type:u$.default("question"),priority:uH.default("medium"),source:uV.default("web_form"),reporterEmail:ek().email(),reporterName:ek().max(200).optional(),reporterId:ek().uuid().optional(),assignedAgentId:ek().uuid().optional(),assignedGroupId:ek().uuid().optional(),crmContactId:ek().uuid().optional(),tags:eR(ek()).default([]),customFields:eN(eE()).default({}),metadata:eN(eE()).default({})}),eP({subject:ek().min(1).max(500).optional(),description:ek().min(1).max(1e4).optional(),status:uq.optional(),type:u$.optional(),priority:uH.optional(),assignedAgentId:ek().uuid().nullable().optional(),assignedGroupId:ek().uuid().nullable().optional(),crmContactId:ek().uuid().nullable().optional(),tags:eR(ek()).optional(),customFields:eN(eE()).optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:uq.optional(),type:u$.optional(),priority:uH.optional(),assignedAgentId:ek().uuid().optional(),assignedGroupId:ek().uuid().optional(),reporterEmail:ek().optional(),search:ek().optional(),sortBy:eF(["createdAt","updatedAt","priority","status"]).default("createdAt"),sortOrder:eF(["asc","desc"]).default("desc")}),eP({id:ek().uuid(),ticketId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),type:uW.default("public_reply"),authorId:ek().uuid().nullable(),authorEmail:ek().nullable(),authorName:ek().nullable(),content:ek(),isEdited:eT().default(!1),editedAt:ek().or(eC()).nullable(),attachments:eR(eP({assetId:ek(),fileName:ek(),mimeType:ek().optional()})).default([]),metadata:eN(eE()).default({}),createdAt:ek().or(eC())}),eP({ticketId:ek().uuid(),type:uW.default("public_reply"),content:ek().min(1).max(1e4),authorId:ek().uuid().optional(),authorEmail:ek().email().optional(),authorName:ek().max(200).optional(),attachments:eR(eP({assetId:ek(),fileName:ek(),mimeType:ek().optional()})).default([]),metadata:eN(eE()).default({})}),eP({content:ek().min(1).max(1e4)}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),priority:uH,firstResponseMinutes:eS().int().min(1),resolutionMinutes:eS().int().min(1),businessHoursOnly:eT().default(!0),businessHoursStart:eS().int().min(0).max(23).default(9),businessHoursEnd:eS().int().min(0).max(23).default(17),businessDays:eR(eS().int().min(0).max(6)).default([1,2,3,4,5]),isDefault:eT().default(!1),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({name:ek().min(1).max(200),priority:uH,firstResponseMinutes:eS().int().min(1),resolutionMinutes:eS().int().min(1),businessHoursOnly:eT().default(!0),businessHoursStart:eS().int().min(0).max(23).default(9),businessHoursEnd:eS().int().min(0).max(23).default(17),businessDays:eR(eS().int().min(0).max(6)).default([1,2,3,4,5]),isDefault:eT().default(!1)}).partial(),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),routingStrategy:eF(["round_robin","load_based","skill_based"]).default("round_robin"),skills:eR(ek()).default([]),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({name:ek().min(1).max(200),description:ek().max(1e3).optional(),routingStrategy:eF(["round_robin","load_based","skill_based"]).default("round_robin"),skills:eR(ek()).default([]),metadata:eN(eE()).default({})}).partial(),eP({sourceTicketId:ek().uuid(),targetTicketId:ek().uuid()}),eP({ticketIds:eR(ek().uuid()).min(1).max(100),status:uq.optional(),priority:uH.optional(),assignedAgentId:ek().uuid().nullable().optional(),assignedGroupId:ek().uuid().nullable().optional(),tags:eR(ek()).optional()}),eP({score:eS().int().min(1).max(5),comment:ek().max(2e3).optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),content:ek(),tags:eR(ek()).default([]),usageCount:eS().int().default(0),createdById:ek().uuid().nullable(),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({name:ek().min(1).max(200),content:ek().min(1).max(1e4),tags:eR(ek()).default([])}).partial();var uK=eF(["investment","offering_lifecycle","investor_onboarding","sponsor_onboarding","lead","deal","content_approval","support","capital_call","negotiation","amendment","artifact","custom"]),uZ=eF(["active","completed","failed","canceled","paused"]),uY=eF(["action","gate","approval_gate","parallel","conditional","agent","webhook","mcp_action","delay","end"]),uX=eF(["pending","running","completed","failed","
1skipped","waiting_approval","waiting_connector","superseded"]),uJ=eF(["nats_event","http_webhook","ai_agent","nats_request","builtin"]),uQ=eF(["pre","post"]),u0=eF(["sync_decision","sync_enrichment","async_enrichment","async_notification"]),u1=eF(["skip","manual_review","fail_flow"]),u2=eF(["pending","approved","rejected","escalated","expired","resolved"]),u5=eF(["eq","neq","in","not_in","exists","not_exists","gt","lt","gte","lte"]),u3=eP({path:ek(),op:u5,value:eE()}),u4=eP({hookName:ek(),mode:eF(["sync","async"]),timeoutOverride:eS().optional()}),u9=eP({agentId:ek().uuid(),timeoutMs:eS().int().positive().max(6e5).optional()}),u6=eP({url:ek().url().regex(/^https?:\/\//,"Only http(s) URLs are allowed"),method:eF(["GET","POST","PUT","PATCH","DELETE"]),headers:eN(ek()).optional(),includeContext:eT().optional(),timeoutMs:eS().int().positive().max(6e4).optional()}),u8=eF(["human","ai_suggested"]),u7=eP({installId:ek().uuid(),connectorKey:ek().uuid(),tool:ek().min(1),specVersion:ek().min(1),inputMapping:eN(ek()),idempotencyKeyTemplate:ek().optional(),timeoutMs:eS().int().positive().max(6e4).optional(),bindingProvenance:u8.optional(),inputMappingProvenance:eN(u8).optional()});eP({templateId:ek().uuid(),stepKey:ek().min(1),stepLabel:ek().min(1)}),eP({connectorKey:ek(),installId:ek(),tool:ek(),specVersion:ek(),confidence:eS().min(0).max(1),reasons:eR(ek())}),eP({templateId:ek().uuid(),stepKey:ek().min(1),connectorKey:ek().min(1),tool:ek().min(1),specVersion:ek().min(1)}),eP({field:ek(),required:eT(),expression:ek().nullable(),confidence:eS().min(0).max(1).nullable(),reason:ek()}),eP({stepKey:ek(),kind:eF(["duration_outlier","failure_cluster"]),severity:eF(["warn","danger"]),message:ek(),evidence:eN(eE())});var ce=eF(["deterministic","human_actor","model_output","time_sensitive"]),ct=eP({delayMs:eS().int().positive().max(2592e6)}),ci=eP({outcome:eF(["success","failure"]),message:ek().max(2e3).optional()}),ca=ej(()=>eP({key:ek(),label:ek(),type:uY,handler:ek().default(""),required:eT().default(!0),timeout:ek().optional(),retries:eS().default(0),preHooks:eR(u4).default([]),postHooks:eR(u4).default([]),condition:u3.optional(),branches:eR(eP({when:u3,steps:eR(ca)})).optional(),parallelSteps:eR(ca).optional(),approval:eP({role:ek(),timeout:ek().optional(),autoApproveCondition:u3.optional()}).optional(),agent:u9.optional(),webhook:u6.optional(),mcp:u7.optional(),delay:ct.optional(),end:ci.optional(),next:ek().optional(),onFailure:eF(["abort","skip","compensate"]).default("abort"),compensationHandler:ek().optional(),varianceClass:ce.optional()}).superRefine((e,t)=>{var i;for(let[i,a,n,r]of[["agent",e.agent,"Steps of type 'agent' require an agent config with agentId"],["webhook",e.webhook,"Steps of type 'webhook' require a webhook config with url and method"],["mcp_action",e.mcp,"Steps of type 'mcp_action' require an mcp config with installId, connectorKey, tool, specVersion","mcp"],["delay",e.delay,"Steps of type 'delay' require a delay config with delayMs"],["end",e.end,"Steps of type 'end' require an end config with outcome"]])e.type!==i||a||t.addIssue({code:u.custom,path:[null!=r?r:i],message:n});let a=["approval_gate","end"],n=t9((e,i)=>
1{(null!=e?e:[]).forEach((e,r)=>{var o;(null==e?void 0:e.type)&&a.includes(e.type)&&t.addIssue({code:u.custom,path:[...i,r,"type"],message:"Steps of type '".concat(e.type,"' are not allowed inside a fan-out â they require durable execution")}),n(null==e?void 0:e.parallelSteps,[...i,r,"parallelSteps"]),(null!=(o=null==e?void 0:e.branches)?o:[]).forEach((e,t)=>n(null==e?void 0:e.steps,[...i,r,"branches",t,"steps"]))})},"checkChildren");n(e.parallelSteps,["parallelSteps"]),(null!=(i=e.branches)?i:[]).forEach((e,t)=>n(null==e?void 0:e.steps,["branches",t,"steps"]))})),cn=eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek().min(1),flowType:uK,jurisdiction:ek().nullable().optional(),vertical:ek().nullable().optional(),regulationType:ek().nullable().optional(),isBuiltin:eT().default(!1),isActive:eT().default(!0),version:eS().int().default(1),parentTemplateId:ek().uuid().nullable().optional(),steps:eR(ca),contextSchema:eN(eE()).optional(),tags:eR(ek()).default([]),metadata:eN(eE()).default({})});cn.omit({id:!0}).partial({isBuiltin:!0,isActive:!0,version:!0,tags:!0,metadata:!0}),cn.partial().omit({id:!0,marketplaceTenantId:!0,tenantId:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),templateId:ek().uuid(),flowType:uK,subjectType:eF(["investment","offering","investor","sponsor","lead","deal","contact","content","ticket","pipeline_item","negotiation","amendment","artifact"]),subjectId:ek().uuid(),temporalWorkflowId:ek().nullable().optional(),status:uZ,currentStepKey:ek().nullable().optional(),completedSteps:eR(ek()).default([]),skippedSteps:eR(ek()).default([]),context:eN(eE()).default({}),error:ek().nullable().optional(),startedAt:ek().datetime().optional(),completedAt:ek().datetime().nullable().optional()}),eP({flowType:uK,subjectType:eF(["investment","offering","investor","sponsor","lead","deal","contact","content","ticket","pipeline_item","negotiation","amendment","artifact"]),subjectId:ek().uuid(),context:eN(eE()).default({}),jurisdiction:ek().optional(),regulationType:ek().optional(),vertical:ek().optional(),templateId:ek().uuid().optional()}),eP({id:ek().uuid(),instanceId:ek().uuid(),stepKey:ek(),stepType:uY,status:uX,attempt:eS().int().default(1),input:eN(eE()).default({}),output:eN(eE()).nullable().optional(),error:ek().nullable().optional(),startedAt:ek().datetime().optional(),completedAt:ek().datetime().nullable().optional(),durationMs:eS().int().nullable().optional(),hookPhase:uQ.nullable().optional(),agentRunId:ek().uuid().nullable().optional()});var cr=eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek().min(1),handlerType:uJ,handlerConfig:eN(eE()),isBuiltin:eT().default(!1),timeoutMs:eS().int().default(5e3),retryAttempts:eS().int().default(2),isActive:eT().default(!0),metadata:eN(eE()).default({})});cr.omit({id:!0}).partial({isBuiltin:!0,timeoutMs:!0,retryAttempts:!0,isActive:!0,metadata:!0}),cr.partial().omit({id:!0,marketplaceTenantId:!0,tenantId:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),templateId:ek().uuid(),stepKey:ek(),hookPhase:uQ,agentId:ek().uuid(),executionMode:u0,priority:eS().int().default(0),fallbackOnFailure:u1,conditions:u3.nullable().optional(),outputSchema:eN(eE()).nullable().optional(),isActive:eT().default(!0),metadata:eN(eE()).default({})}).omit({id:!0}).partial({priority:!0,isActive:!0,metadata:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),instanceId:ek().uuid(),stepKey:ek(),type:eF(["approval","connector_paused"]).default("approval"),reviewerRole:ek().nullable().optional(),assignedTo:ek().uuid().nullable().optional(),status:u2,reviewData:eN(eE()).default({}),decision:ek().nullable().optional(),decisionNotes:ek().nullable().optional(),decidedBy:ek().uuid().nullable().optional(),decidedAt:ek().datetime().nullable().optional(),dueAt:ek().datetime().nullable().optional()}),eP({decision:eF(["approved","rejected","escalated"]),notes:ek().optional()}),eP({action:eF(["retry","skip","abort"]),applyToSiblings:eT().optional(),notes:ek().max(2e3).optional()}),eP({flowType:uK,jurisdiction:ek().optional(),regulationType:ek().optional(),vertical:ek().optional()}),eP({tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),installId:ek().uuid(),appSlug:ek().min(1).max(128),name:ek().min(1).max(256),steps:eR(ca).min(1),artifactDid:ek().regex(/^did:(web|key):/).optional(),deploymentDid:ek().regex(/^did:(web|key):/).optional()}),eP({tenantId:ek().uuid(),installId:ek().uuid()});var co=eF(["planning","pre_construction","in_progress","on_hold","completed","closed","canceled"]),cl=eF(["real_estate_development","renovation","infrastru
1cture","venture_capital","private_equity","fund","other"]),cs=eF(["not_started","in_progress","completed","on_hold","canceled"]),cd=eF(["land_acquisition","hard_cost","soft_cost","financing","contingency","overhead","labor","materials","equipment","subcontractor","permits_fees","professional_services","marketing","other"]),cu=eF(["start","phase_gate","approval","inspection","funding","delivery","completion","regulatory","custom"]),cc=eF(["pending","in_progress","completed","approved","overdue","skipped"]),cp=eF(["capital_call","distribution","draw_request","notification","none"]),cm=eF(["pending","approved","paid","rejected","voided"]),cf=eF(["draft","submitted","under_review","approved","rejected","voided"]),ch=eF(["scope_change","design_change","unforeseen_conditions","regulatory","owner_request","value_engineering","other"]),cg=eF(["draft","submitted","under_review","inspection_scheduled","inspection_complete","approved","funded","rejected","voided"]),cv=eF(["scheduled","in_progress","completed","failed","canceled"]),cy=eF(["approve","approve_with_conditions","reject","pending"]),cb=eF(["conditional_progress","unconditional_progress","conditional_final","unconditional_final"]),c_=eF(["very_low","low","medium","high","very_high"]),cx=eF(["very_low","low","medium","high","very_high"]),cA=eF(["identified","assessed","mitigating","accepted","resolved","closed"]),cI=eF(["financial","schedule","scope","technical","regulatory","environmental","safety","market","operational","reputational","other"]),cw=eF(["low","medium","high","critical"]),ck=eF(["open","in_progress","resolved","closed","escalated"]),cS=eF(["construction","design","permitting","financial","vendor","safety","quality","environmental","other"]),cT=eF(["higher_is_better","lower_is_better","target_range"]),cC=eF(["financial","operational","growth","quality","customer","esg","custom"]),cE=eF(["daily","weekly","monthly","quarterly","annually"]),cR=eF(["monthly","quarterly","annual","ad_hoc","final"]),cP=eF(["draft","review","approved","published"]),cO=eF(["asset","liability","equity","revenue","expense"]),cM=eF(["cost_entry_approved","draw_request_funded","change_order_approved","milestone_completed","distribution_processed"]),cN=eF(["pending","reconciled","unreconciled","adjusted"]);eF(["milestone_completion","revenue_threshold","date_based","occupancy_threshold","exit_event","manual"]),eF(["pro_rata","super_pro_rata","pre_emptive","first_refusal","co_invest"]),eF(["active","exercised","expired","waived"]);var cj=eF(["cost_basis","appraised_value","discounted_cash_flow","comparable_sales","income_approach","hybrid","mark_to_market"]),cD=eF(["monthly","quarterly","semi_annually","annually"]),cF=eF(["project_manager","sponsor","general_contractor","architect","engineer","inspector","lender_rep","legal","accountant","investor_rep","consultant","team_member"]);eF(["status_change","milestone_completed","draw_funded","cost_entry","change_order","risk_identified","issue_opened","inspection","general","photo_update"]),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),offeringId:ek().uuid().nullable(),name:ek(),code:ek(),description:ek().nullable(),status:co,projectType:cl,originalBudget:ek(),revisedBudget:ek(),actualCost:ek(),contingencyBudget:ek(),contingencyUsed:ek(),currency:ek(),plannedStartDate:ek().nullable(),plannedEndDate:ek().nullable(),actualStartDate:ek().nullable(),actualEndDate:ek().nullable(),address:eN(eE()).nullable(),latitude:ek().nullable(),longitude:ek().nullable(),projectManagerId:ek().uuid().nullable(),evmEnabled:eT(),drawRequestEnabled:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),code:ek().min(1).max(20),description:ek().optional(),projectType:cl,offeringId:ek().uuid().optional(),originalBudget:ek().default("0"),contingencyBudget:ek().default("0"),currency:ek().default("USD"),plannedStartDate:ek().optional(),plannedEndDate:ek().optional(),address:eN(eE()).optional(),latitude:ek().optional(),longitude:ek().optional(),projectManagerId:ek().uuid().optional(),evmEnabled:eT().default(!0),drawRequestEnabled:eT().default(!0),metadata:eN(eE()).default({})}).partial().extend({status:co.optional(),revisedBudget:ek().optional(),actualStartDate:ek().optional(),actualEndDate:ek().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:co.optional(),projectType:cl.optional(),offeringId:ek().uuid().optional(),search:ek().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),parentId:ek().uuid().nullable(),wbsCode:ek(),name:ek(),description:ek().nullable(),sortOrder:eS(),level:eS(),budgetedCost:ek(),actualCost:ek(),plannedStartDate:ek().nullable(),plannedEndDate:ek().nullable(),actualStartDate:ek().nullable(),actualEndDate:ek().nullable(),percentComplete:ek(),status:cs,assigneeId:ek().uuid().nullable(),costCategory:cd.nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),parentId:ek().uuid().optional(),wbsCode:ek().min(1),name:ek().min(1).max(255),description:ek().optional(),sortOrder:eS().int().default(0),level:eS().int().default(0),budgetedCost:ek().default("0"),plannedStartDate:ek().optional(),plannedEndDate:ek().optional(),assigneeId:ek().uuid().optional(),costCategory:cd.optional(),metadata:eN(eE()).default({})}).partial().extend({status:cs.optional(),percentComplete:ek().optional(),actualCost:ek().optional(),actualStartDate:ek().optional(),actualEndDate:ek().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),wbsItemId:ek().uuid().nullable(),name:ek(),description:ek().nullable(),milestoneType:cu,status:cc,plannedDate:ek(),actualDate:ek().nullable(),predecessorIds:eR(ek().uuid()),requiresApproval:eT(),approvedBy:ek().uuid().nullable(),approvedAt:ek().datetime().nullable(),triggerAction:cp.nullable(),triggerConfig:eN(eE()).nullable(),isCriticalPath:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),wbsItemId:ek().uuid().optional(),name:ek().min(1).max(255),description:ek().optional(),milestoneType:cu,plannedDate:ek(),predecessorIds:eR(ek().uuid()).default([]),requiresApproval:eT().default(!1),triggerAction:cp.optional(),triggerConfig:eN(eE()).optional(),isCriticalPath:eT().default(!1),metadata:eN(eE()).default({})}).partial().extend({status:cc.optional(),actualDate:ek().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),wbsItemId:ek().uuid().nullable(),description:ek(),category:cd,vendor:ek().nullable(),invoiceNumber:ek().nullable(),amount:ek(),budgetedAmount:ek().nullable(),variance:ek().nullable(),entryDate:ek(),paidDate:ek().nullable(),status:cm,approvedBy:ek().uuid().nullable(),drawRequestId:ek().uuid().nullable(),attachmentUrls:eR(ek()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),wbsItemId:ek().uuid().optional(),description:ek().min(1),category:cd,vendor:ek().optional(),invoiceNumber:ek().optional(),amount:ek(),budgetedAmount:ek().optional(),entryDate:ek(),attachmentUrls:eR(ek()).default([]),metadata:eN(eE()).default({})}).partial().extend({status:cm.optional(),paidDate:ek().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),projectId:ek().uuid().optional(),category:cd.optional(),status:cm.optional(),wbsItemId:ek().uuid().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),changeOrderNumber:ek(),title:ek(),description:ek().nullable(),reason:ch,status:cf,amountChange:ek(),scheduleImpactDays:eS().nullable(),affectedWbsIds:eR(ek().uuid()),requestedBy:ek().uuid().nullable(),approvedBy:ek().uuid().nullable(),approvedAt:ek().datetime().nullable(),attachmentUrls:eR(ek()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),changeOrderNumber:ek().min(1),title:ek().min(1).max(255),description:ek().optional(),reason:ch,amountChange:ek(),scheduleImpactDays:eS().int().optional(),affectedWbsIds:eR(ek().uuid()).default([]),attachmentUrls:eR(ek()).default([]),metadata:eN(eE()).default({})}).partial().extend({status:cf.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),drawNumber:eS(),title:ek(),description:ek().nullable(),status:cg,totalContractAmou
1nt:ek(),totalCompletedToDate:ek(),retainagePercent:ek(),retainageAmount:ek(),previousPayments:ek(),currentPaymentDue:ek(),periodFrom:ek(),periodTo:ek(),submittedAt:ek().datetime().nullable(),approvedAt:ek().datetime().nullable(),fundedAt:ek().datetime().nullable(),submittedBy:ek().uuid().nullable(),approvedBy:ek().uuid().nullable(),attachmentUrls:eR(ek()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),title:ek().min(1).max(255),description:ek().optional(),totalContractAmount:ek(),retainagePercent:ek().default("10"),periodFrom:ek(),periodTo:ek(),attachmentUrls:eR(ek()).default([]),metadata:eN(eE()).default({})}).partial().extend({status:cg.optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),projectId:ek().uuid().optional(),status:cg.optional()}),eP({id:ek().uuid(),drawRequestId:ek().uuid(),wbsItemId:ek().uuid().nullable(),itemNumber:eS(),description:ek(),scheduledValue:ek(),previousApplications:ek(),workCompletedThisPeriod:ek(),materialsStoredThisPeriod:ek(),totalCompletedAndStored:ek(),percentComplete:ek(),balanceToFinish:ek(),retainage:ek(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({drawRequestId:ek().uuid(),wbsItemId:ek().uuid().optional(),itemNumber:eS().int(),description:ek().min(1),scheduledValue:ek(),previousApplications:ek().default("0"),workCompletedThisPeriod:ek().default("0"),materialsStoredThisPeriod:ek().default("0"),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),drawRequestId:ek().uuid(),inspectorId:ek().uuid().nullable(),inspectorName:ek().nullable(),inspectorCompany:ek().nullable(),scheduledDate:ek(),completedDate:ek().nullable(),status:cv,overallPercentVerified:ek().nullable(),findings:ek().nullable(),recommendation:cy.nullable(),conditions:ek().nullable(),photoUrls:eR(ek()),reportUrl:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({drawRequestId:ek().uuid(),inspectorId:ek().uuid().optional(),inspectorName:ek().optional(),inspectorCompany:ek().optional(),scheduledDate:ek(),metadata:eN(eE()).default({})}),eP({status:cv.optional(),completedDate:ek().optional(),overallPercentVerified:ek().optional(),findings:ek().optional(),recommendation:cy.optional(),conditions:ek().optional(),photoUrls:eR(ek()).optional(),reportUrl:ek().optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),drawRequestId:ek().uuid(),waiverType:cb,vendor:ek(),amount:ek(),throughDate:ek(),received:eT(),receivedDate:ek().nullable(),documentUrl:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({drawRequestId:ek().uuid(),waiverType:cb,vendor:ek().min(1),amount:ek(),throughDate:ek(),documentUrl:ek().optional(),metadata:eN(eE()).default({})}),eP({received:eT().optional(),receivedDate:ek().optional(),documentUrl:ek().optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),projectId:ek().uuid(),snapshotDate:ek(),bac:ek(),pv:ek(),ev:ek(),ac:ek(),sv:ek(),cv:ek(),spi:ek(),cpi:ek(),eac:ek(),etc:ek(),vac:ek(),tcpi:ek(),percentScheduled:ek(),percentComplete:ek(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),name:ek(),description:ek().nullable(),unit:ek(),targetValue:ek().nullable(),currentValue:ek().nullable(),direction:cT,category:cC.nullable(),frequency:cE,isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),name:ek().min(1).max(255),description:ek().optional(),unit:ek().min(1),targetValue:ek().optional(),direction:cT.default("higher_is_better"),category:cC.optional(),frequency:cE.default("monthly"),metadata:eN(eE()).default({})}).partial().extend({currentValue:ek().optional(),isActive:eT().optional()}),eP({id:ek().uuid(),kpiId:ek().uuid(),measurementDate:ek(),value:ek(),notes:ek().nullable(),recordedBy:ek().uuid().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({kpiId:ek().uuid(),measurementDate:ek(),value:ek(),notes:ek().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),reportNumber:eS(),title:ek(),reportType:cR,periodFrom:ek(),periodTo:ek(),status:cP,executiveSummary:ek().nullable(),financialSummary:eN(eE()).nullable(),scheduleUpdate:eN(eE()).nullable(),riskSummary:eN(eE()).nullable(),kpiSummary:eN(eE()).nullable(),nextPeriodOutlook:ek().nullable(),evmSnapshotId:ek().uuid().nullable(),preparedBy:ek().uuid().nullable(),approvedBy:ek().uuid().nullable(),approvedAt:ek().datetime().nullable(),publishedAt:ek().datetime().nullable(),attachmentUrls:eR(ek()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),title:ek().min(1).max(255),reportType:cR,periodFrom:ek(),periodTo:ek(),executiveSummary:ek().optional(),nextPeriodOutlook:ek().optional(),metadata:eN(eE()).default({})}).partial().extend({status:cP.optional(),financialSummary:eN(eE()).optional(),scheduleUpdate:eN(eE()).optional(),riskSummary:eN(eE()).optional(),kpiSummary:eN(eE()).optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),riskCode:ek(),title:ek(),description:ek().nullable(),category:cI,probability:c_,impact:cx,riskScore:eS(),status:cA,mitigationStrategy:ek().nullable(),contingencyPlan:ek().nullable(),costImpact:ek().nullable(),scheduleImpactDays:eS().nullable(),ownerId:ek().uuid().nullable(),dueDate:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),riskCode:ek().min(1),title:ek().min(1).max(255),description:ek().optional(),category:cI,probability:c_,impact:cx,mitigationStrategy:ek().optional(),contingencyPlan:ek().optional(),costImpact:ek().optional(),scheduleImpactDays:eS().int().optional(),ownerId:ek().uuid().optional(),dueDate:ek().optional(),metadata:eN(eE()).default({})}).partial().extend({status:cA.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),issueC
1ode:ek(),title:ek(),description:ek().nullable(),priority:cw,status:ck,category:cS.nullable(),resolution:ek().nullable(),assigneeId:ek().uuid().nullable(),reportedBy:ek().uuid().nullable(),relatedRiskId:ek().uuid().nullable(),dueDate:ek().nullable(),resolvedDate:ek().nullable(),costImpact:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),issueCode:ek().min(1),title:ek().min(1).max(255),description:ek().optional(),priority:cw,category:cS.optional(),assigneeId:ek().uuid().optional(),relatedRiskId:ek().uuid().optional(),dueDate:ek().optional(),costImpact:ek().optional(),metadata:eN(eE()).default({})}).partial().extend({status:ck.optional(),resolution:ek().optional(),resolvedDate:ek().optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),costCategory:ek(),glAccountCode:ek(),glAccountName:ek(),accountType:cO,isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),costCategory:ek().min(1),glAccountCode:ek().min(1),glAccountName:ek().min(1),accountType:cO,metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),name:ek(),description:ek().nullable(),triggerEvent:cM,debitAccountCode:ek(),creditAccountCode:ek(),amountFormula:ek(),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),name:ek().min(1).max(255),description:ek().optional(),triggerEvent:cM,debitAccountCode:ek().min(1),creditAccountCode:ek().min(1),amountFormula:ek().min(1),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),reconciliationDate:ek(),bankStatementBalance:ek(),bookBalance:ek(),difference:ek(),status:cN,adjustments:eR(eP({description:ek(),amount:ek(),type:eF(["debit","credit"])})),notes:ek().nullable(),reconciledBy:ek().uuid().nullable(),reconciledAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),reconciliationDate:ek(),bankStatementBalance:ek(),bookBalance:ek(),adjustments:eR(eP({description:ek(),amount:ek(),type:eF(["debit","credit"])})).default([]),notes:ek().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),projectId:ek().uuid(),methodology:cj,valuationFrequency:cD,discountRate:ek().nullable(),capRate:ek().nullable(),lastValuationDate:ek().nullable(),lastValuationAmount:ek().nullable(),nextValuationDate:ek().nullable(),isActive:eT(),valuationParameters:eN(eE()),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({projectId:ek().uuid(),methodology:cj,valuationFrequency:cD.default("quarterly"),discountRate:ek().optional(),capRate:ek().optional(),valuationParameters:eN(eE()).default({}),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),projectId:ek().uuid(),accountId:ek().uuid(),role:cF,permissions:eN(eE()),isActive:eT(),joinedAt:ek().datetime(),leftAt:ek().datetime().nullable(),metadata:eN(eE()),createdAt:ek().datetime()}),eP({projectId:ek().uuid(),accountId:ek().uuid(),role:cF,permissions:eP({canApproveDraws:eT().optional(),canApproveCosts:eT().optional(),canApproveChanges:eT().optional(),canViewFinancials:eT().optional(),canEditWbs:eT().optional(),canManageTeam:eT().optional()}).default({}),metadata:eN(eE()).default({})});var cL=eF(["google_ads","facebook","linkedin","tiktok","reddit","twitter"]),cB=eF(["active","expired","revoked","error"]),cz=eF(["active","paused","deleted","archived","draft"]),cU=eF(["gclid","fbclid","li_fat_id","ttclid","rdt_cid","twclid"]);eF(["pending","processing","submitted","failed","skipped"]),eF(["accepted","rejected","partial"]);var cq=eF(["first_touch","last_touch","linear","time_decay","position_based","ai_data_driven"]),c$=eF(["lookalike","interest_expansion","exclusion","retargeting"]);eF(["draft","generating","ready","deployed","archived"]);var cH=eF(["daily","lifetime"]);eP({platform:cL,platformAccountId:ek().min(1),platformAccountName:ek().optional(),accessToken:ek().min(1),refreshToken:ek().optional(),tokenExpiresAt:ek().datetime().optional(),scopes:eR(ek()).optional().default([]),config:eN(eE()).optional().default({})}),eP({platformAccountName:ek().optional(),accessToken:ek().optional(),refreshToken:ek().optional(),tokenExpiresAt:ek().datetime().optional(),scopes:eR(ek()).optional(),config:eN(eE()).optional(),status:cB.optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),platform:cL,platformAccountId:ek(),platformAccountName:ek().nullable(),status:cB,scopes:eR(ek()),lastSyncAt:ek().datetime().nullable(),lastError:ek().nullable(),connectedById:ek().uuid().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({platform:cL,redirectUri:ek().url(),state:ek().optional(),scopes:eR(ek()).optional()}),eP({platform:cL,code:ek().min(1),state:ek().optional(),redirectUri:ek().url()}),eP({adAccountConnectionId:ek().uuid(),platform:cL,name:ek().min(1),objective:ek().optional(),budget:ek().optional(),budgetType:cH.optional(),currency:ek().default("USD"),startDate:ek().optional(),endDate:ek().optional(),offeringId:ek().uuid().optional(),targeting:eN(eE()).optional().default({}),metadata:eN(eE()).optional().default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),adAccountConnectionId:ek().uuid(),platform:cL,externalCampaignId:ek(),name:ek(),status:cz,objective:ek().nullable(),budget:ek().nullable(),budgetType:ek().nullable(),currency:ek().nullable(),startDate:ek().nullable(),endDate:ek().nullable(),offeringId:ek().uuid().nullable(),targeting:eN(eE()),lastSyncAt:ek().datetime().nullable(),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({platform:cL.optional(),adCampaignId:ek().uuid().optional(),startDate:ek(),endDate:ek(),groupBy:eF(["day","campaign","platform","ad_group"]).optional().default("day"),page:e
1S().int().positive().optional().default(1),limit:eS().int().positive().max(100).optional().default(20)}),eP({totalSpend:ek(),totalImpressions:eS(),totalClicks:eS(),totalConversions:eS(),avgCpc:ek(),avgCpm:ek(),avgCtr:ek(),currency:ek()}),eP({conversionEvent:ek(),eventTimestamp:ek().datetime(),sourceEntityType:ek(),sourceEntityId:ek().uuid(),email:ek().email().optional(),phone:ek().optional(),clickId:ek().optional(),clickIdType:cU.optional(),conversionValue:ek().optional(),currency:ek().default("USD"),metadata:eN(eE()).optional().default({})}),eP({adAccountConnectionId:ek().uuid(),platform:eF(["facebook","linkedin","tiktok"]),externalFormId:ek().min(1),formName:ek().optional(),webhookSecret:ek().optional(),leadSource:ek().default("ad_lead_form"),leadOwnerId:ek().uuid().optional(),fieldMapping:eN(ek()).optional().default({})}),eP({visitorId:ek().optional(),accountId:ek().uuid().optional(),email:ek().email().optional(),channel:ek(),source:ek().optional(),medium:ek().optional(),campaign:ek().optional(),content:ek().optional(),term:ek().optional(),clickId:ek().optional(),clickIdType:cU.optional(),adPlatform:cL.optional(),externalCampaignId:ek().optional(),externalAdGroupId:ek().optional(),externalAdId:ek().optional(),landingPage:ek().optional(),referrer:ek().optional()}),eP({model:cq.default("last_touch"),startDate:ek(),endDate:ek(),conversionType:ek().optional(),platform:cL.optional(),offeringId:ek().uuid().optional()}),eP({channel:ek(),source:ek().nullable(),platform:cL.nullable(),campaignId:ek().nullable(),touchpoints:eS(),conversions:eS(),conversionValue:ek(),attributedValue:ek(),attributionWeight:eS()}),eP({name:ek().min(1),type:c$,sourceConfig:eN(eE()).optional().default({}),targetPlatforms:eR(cL).optional().default([])}),eP({offeringId:ek().uuid().optional(),offeringName:ek().optional(),offeringDescription:ek().optional(),targetPlatforms:eR(cL),tone:eF(["professional","casual","urgent","educational"]).default("professional"),variantCount:eS().int().min(1).max(10).default(3)}),eP({platform:cL,headline:ek(),description:ek(),callToAction:ek(),characterCounts:eP({headline:eS(),description:eS()})}),eP({platform:cL,budget:ek(),budgetType:cH,objective:ek(),offeringId:ek().uuid().optional(),targeting:eN(eE()).optional().default({}),durationDays:eS().int().positive().default(30)}),eP({predictedSpend:ek(),predictedImpressions:eS(),predictedClicks:eS(),predictedConversions:eS(),predictedCpl:ek(),predictedCpi:ek(),predictedRoas:ek(),confidence:eS(),recommendations:eR(ek())}),eP({platform:cL,suggestedDailyBudget:ek(),suggestedBidAmount:ek(),bidStrategy:ek(),rationale:ek(),expectedCpl:ek(),confidenceScore:eS()}),eP({id:ek().uuid(),type:eF(["cpc_spike","spend_anomaly","ctr_drop","bot_traffic","budget_exhaustion"]),severity:eF(["low","medium","high","critical"]),platform:cL,campaignId:ek().uuid().nullable(),description:ek(),metric:ek(),expectedValue:ek(),actualValue:ek(),detectedAt:ek().datetime(),acknowledged:eT().default(!1)}),eP({leadId:ek().uuid(),includeSignals:eT().default(!0)}),eP({leadId:ek().uuid(),score:eS().int().min(0).max(100),grade:eF(["A","B","C","D","F"]),signals:eR(eP({name:ek(),value:ek(),weight:eS(),impact:eF(["positive","negative","neutral"])})),adPlatformSignals:eP({sourceQuality:eS(),engagementDepth:eS(),timeToConvert:eS().nullable()}),recommendation:ek()}),eP({utmSource:ek().optional(),utmMedium:ek().optional(),utmCampaign:ek().optional(),utmContent:ek().optional(),utmTerm:ek().optional(),clickId:ek().optional(),clickIdType:cU.optional(),adPlatform:cL.optional(),adCampaignId:ek().optional(),adGroupId:ek().optional(),adId:ek().optional()}),eP({startDate:ek(),endDate:ek(),platforms:eR(cL).optional(),offeringId:ek().uuid().optional(),groupBy:eF(["platform","campaign","day","week","month"]).default("platform")}),eP({campaignId:ek().uuid(),campaignName:ek(),platform:cL,totalSpend:ek(),totalLeads:eS(),totalInvestments:eS(),totalInvestmentValue:ek(),cpl:ek(),cpi:ek(),roas:ek(),currency:ek()}),eF(["free","starter","growth","business","enterprise","nonprofit"]);var cV={core:["help_portal","profile_portal","directory_portal","app_store_portal","activity_portal"],starter:["crm_portal","pipeline_portal","subscription_portal"],growth:["analytics_portal","campaigns_portal","content_portal","templates_portal","asset_portal","shortener_portal"],business:["builder_portal","contracts_portal","workflows_portal","project_portal","compliance_portal","admin_portal"],enterprise:["config_portal","provider_console"]},cW={sponsor:["sponsor_portal","contracts_portal","compliance_portal","investor_portal","equity_portal"],fea:["fea_portal","homebuyer_portal","pipeline_portal","contracts_portal"],broker_dealer:["bd_portal","compliance_portal","contracts_portal","workflows_portal"],investor_org:["investor_portal","portfolio_portal","sponsor_portal","contracts_portal","community_portal"],advisor_firm:["advisor_portal","investor_portal","portfolio_portal"],agency:["creator_portal","contributors_portal","crm_portal"],property_mgr:["creator_portal","contributors_portal","crm_portal"],homebuyer:["homebuyer_portal"],university:["institution_portal"],accelerator:["institution_portal"],bootcamp:["institution_portal"],nonprofit:["institution_portal"],social_enterprise:["institution_portal"],foundation:["institution_portal"],general:["admin_portal"],platform_operated:["admin_portal","provider_console","config_portal"]};function cG(e,t){var i;let a=[...cV.core,...null!=(i=cW[e])?i:[]];return"free"===t?cK(a):"starter"===t?cK([...a,...cV.starter]):"growth"===t?cK([...a,...cV.starter,...cV.growth]):"business"===t||"nonprofit"===t?cK([...a,...cV.starter,...cV.growth,...cV.business]):"enterprise"===t?cK([...a,...cV.starter,...cV.growth,...cV.business,...cV.enterprise]):cK(a)}function cK(e){return Array.from(new Set(e))}t9(cG,"computePlanFeatures"),t9(cK,"dedupe"),eF(["vertical","operational","admin","universal"]);var cZ=eP({path:ek().min(1).max(256),label:ek().min(1).max(128),icon:ek().min(1).max(64),section:ek().min(1).max(64).optional()});eN(ek().min(1).max(64),eR(cZ).max(32)).refine(e=>Object.keys(e).length<=64,{message:"portalNavOverrides may not contain more than 64 appId entries"}),t9(function(e,t,i){if(e.user.roles.some(e=>iw.includes(e)))return{allowed:!0};if("system"===e.tenant.tier||t.allowedTiers.length>0&&!t.allowedTiers.includes(e.tenant.tier))return{allowed:!1,reason:"tier"};if(t.allowedOrgTypes.length>0&&!t.allowedOrgTypes.includes(e.tenant.orgType))return{allowed:!1,reason:"orgType"};let a=t.allowedRoles;if(t.allowedRoles.length>0&&!e.user.roles.some(e=>a.includes(e)))return{allowed:!1,reason:"role"};if(t.allowedActorType&&(!i||i.actorType!==t.allowedActorType||!i.relationshipExists))return{allowed:!1,reason:"missing_actor_relationship"};if(t.requiredFeatures.length>0){if(!e.subscription)return{allowed:!1,reason:"feature"};let i=cG(e.tenant.orgType,e.subscription.planTier);if(!t.requiredFeatures.every(e=>i.includes(e)))return{allowed:!1,reason:"feature"}}return{allowed:!0}},"canAccessApp");var cY={seats:3,offerings:3,contacts:100,sub_marketplaces:1,storage_gb:2,api_calls:5e3,custom_workflows:0,campaign_sends:0,esignatures:5,custom_roles:0,"artifact.run":10},cX={seats:10,offerings:10,contacts:1e3,sub_marketplaces:1,storage_gb:20,api_calls:5e4,custom_workflows:0,campaign_sends:0,esignatures:50,custom_roles:2,"artifact.run":100},cJ={seats:50,offerings:50,contacts:1e4,sub_marketplaces:3,storage_gb:200,api_calls:5e5,custom_workflows:5,campaign_sends:1e4,esignatures:250,custom_roles:10,"artifact.run":1e3}
1,cQ={seats:200,offerings:250,contacts:5e4,sub_marketplaces:10,storage_gb:2e3,api_calls:5e6,custom_workflows:50,campaign_sends:1e5,esignatures:1500,custom_roles:50,"artifact.run":1e4},c0={seats:-1,offerings:-1,contacts:-1,sub_marketplaces:-1,storage_gb:-1,api_calls:-1,custom_workflows:-1,campaign_sends:-1,esignatures:-1,custom_roles:-1,"artifact.run":-1};function c1(e){switch(e){case"free":return{...cY};case"starter":return{...cX};case"growth":return{...cJ};case"business":case"nonprofit":return{...cQ};case"enterprise":return{...c0}}}t9(c1,"limitsFor");var c2={api_calls:{per:1e3,priceCents:50},campaign_sends:{per:1e3,priceCents:1e3},esignatures:{per:1,priceCents:300},storage_gb:{per:1,priceCents:10},sms_notifications:{per:1e3,priceCents:1500},document_generations:{per:1,priceCents:25},ai_calls:{per:1,priceCents:2}},c5={},c3={fea:{starter:19900,growth:49900,business:129900,enterpriseFrom:349900},agency:{starter:14900,growth:39900,business:99900,enterpriseFrom:249900},property_mgr:{starter:14900,growth:39900,business:99900,enterpriseFrom:249900},advisor_firm:{starter:29900,growth:79900,business:249900,enterpriseFrom:599900},investor_org:{starter:49900,growth:149900,business:399900,enterpriseFrom:999900},sponsor:{starter:49900,growth:149900,business:399900,enterpriseFrom:999900},broker_dealer:{starter:99900,growth:249900,business:599900,enterpriseFrom:1499900}},c4={fea:5e5};function c9(e){return Math.round(12*e*.85)}function c6(e){return e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function c8(e){return{key:"".concat(e,"_free"),actorType:e,planTier:"free",displayName:"".concat(c6(e)," Free"),description:"Free tier for ".concat(c6(e)," â core functionality, limited volume."),priceMonthlyCents:0,priceAnnualCents:0,setupFeeCents:0,features:cG(e,"free"),limits:c1("free"),overageRates:c5}}function c7(e,t){var i;let a=c3[e];if(!a)throw Error("No price matrix for actor ".concat(e));let n="enterprise"===t?a.enterpriseFrom:a[t];return{key:"".concat(e,"_").concat(t),actorType:e,planTier:t,displayName:"".concat(c6(e)," ").concat(c6(t)),description:"".concat(c6(t)," tier for ").concat(c6(e)," tenants."),priceMonthlyCents:n,priceAnnualCents:c9(n),setupFeeCents:"enterprise"===t?0:null!=(i=c4[e])?i:0,features:cG(e,t),limits:c1(t),overageRates:c2}}function pe(){return{key:"nonprofit_permanent",actorType:null,planTier:"nonprofit",displayName:"Nonprofit (Free Forever)",description:"Permanent free plan for verified education and nonprofit tenants. Business-tier equivalent limits.",priceMonthlyCents:0,priceAnnualCents:0,setupFeeCents:0,features:cG("nonprofit","nonprofit"),limits:c1("nonprofit"),overageRates:c5}}t9(c9,"annualize"),t9(c6,"titleCase"),t9(c8,"buildFreePlan"),t9(c7,"buildPaidPlan"),t9(pe,"buildNonprofitPlan"),[...["fea","agency","property_mgr","advisor_firm","investor_org","sponsor","broker_dealer"].flatMap(e=>[c8(e),c7(e,"starter"),c7(e,"growth"),c7(e,"business"),c7(e,"enterprise")]),pe()];var pt=eF(["native","embedded","api_connector","ai_agent","webhook","widget","composite","artifact_agent","artifact_workflow","artifact_app","artifact_widget"]),pi=eF(["headless_cms","ecommerce","baas","headless_lms","payments","kyc_aml","accounting","communication","analytics","compliance","ai_ml","data_integration","project_management","other"]),pa=eF(["draft","submitted","in_review","approved","published","suspended","deprecated"]);eF(["pending","configuring","active","paused","failed","uninstalled"]);var pn=eF(["draft","active","paused","error","disabled"]),pr=eF(["pending","running","success","partial_success","failed","timeout","canceled"]);eF(["draft","submitted","approved","published","deprecated"]);var po=eF(["free","freemium","paid","usage_based","contact"]),pl=eF(["api_key","oauth_access_token","oauth_refresh_token","webhook_secret","custom"]),ps=eF(["openapi_3","openapi_2","graphql","grpc"]);eF(["similar_app","complementary","trending","usage_based","ai_suggested"]),eF(["pending","active","suspended","deactivated"]),eF(["provisioning","active","expired","terminated"]);var pd=eP({authorizationUrl:ek().url(),tokenUrl:ek().url(),scopes:eR(ek()),pkceRequired:eT().optional()}),pu=eP({inboundUrl:ek().url().optional(),outboundEvents:eR(ek()).optional(),signingSecret:ek().optional()}),pc=eP({name:ek(),description:ek(),inputSchema:eN(eE())}),pp=eP({uri:ek(),name:ek(),description:ek(),mimeType:ek().optional()}),pm=eP({serverUrl:ek().url().optional(),tools:eR(pc).optional(),resources:eR(pp).optional()}),pf=eP({agentCardUrl:ek().url().optional(),capabilities:eR(ek()).optional()}),ph=eP({durationClass:eF(["short","long"]),checkpointing:eF(["none","redis","temporal"])}).superRefine((e,t)=>
1{"long"===e.durationClass&&"temporal"!==e.checkpointing&&t.addIssue({code:"custom",message:"durationClass=long requires checkpointing=temporal"})}),pg=eP({alg:eD("EdDSA"),signature:ek().regex(/^[A-Za-z0-9+/]+={0,2}$/,"signature must be standard base64").length(88,"Ed25519 signature must be 88 base64 chars (64 bytes padded)"),issuerDid:ek().regex(/^did:(web|key):/)}),pv=eP({a2aSkills:eR(ek()).default([]),mcpTools:eR(ek()).default([]),platformApis:eR(ek()).default([]),eventsSubscribed:eR(ek()).default([]),eventsPublished:eR(ek()).default([])}),py=eP({kind:eD("workflow"),steps:eR(ca).min(1),digest:ek().optional()}),pb=eP({name:ek(),version:ek(),description:ek(),author:ek(),homepage:ek().url().optional(),repository:ek().url().optional(),license:ek().optional(),entrypoint:ek().url().optional(),apiBaseUrl:ek().url().optional(),oauthConfig:pd.optional(),webhookConfig:pu.optional(),mcpConfig:pm.optional(),a2aConfig:pf.optional(),requiredPermissions:eR(ek()).optional(),configSchema:eN(eE()).optional(),settingsSchema:eN(eE()).optional(),execution:ph.optional(),signing:pg.optional(),capabilities:pv.optional(),artifact:py.optional()}).superRefine((e,t)=>{void 0!==e.signing&&void 0===e.execution&&t.addIssue({code:"custom",path:["execution"],message:"execution is required when signing is present"}),void 0!==e.artifact&&void 0===e.execution&&t.addIssue({code:"custom",path:["execution"],message:"execution is required when artifact is present"})}),p_=eP({type:eF(["event","schedule","webhook","manual"]),eventPattern:ek().optional(),schedule:ek().optional(),webhookPath:ek().optional()}),px=eP({maxRetries:eS().int().min(0).max(10),backoffMs:eS().int().min(100)}),pA=eP({id:ek(),appId:ek().uuid(),endpoint:ek(),method:ek(),fieldMapping:eN(ek()),headers:eN(ek()).optional(),retryPolicy:px.optional(),toolName:ek().optional()}),pI=eP({field:ek(),operator:eF(["eq","neq","contains","gt","lt","in","regex"]),value:eE()}),pw=eP({onFailure:eF(["stop","skip","retry","notify"]),notifyEmail:ek().email().optional(),maxRetries:eS().int().optional()}),pk=eP({trigger:p_,actions:eR(pA).min(1),filters:eR(pI).optional(),errorHandling:pw.optional()});eP({id:ek().uuid(),developerId:ek().uuid().nullable(),name:ek(),slug:ek(),shortDescription:ek(),longDescription:ek().nullable(),appType:pt,category:pi,subcategory:ek().nullable(),iconUrl:ek().nullable(),bannerUrl:ek().nullable(),screenshots:eR(ek()),tags:eR(ek()),status:pa,isVerified:eT(),isFeatured:eT(),pricingModel:po,priceMonthly:ek().nullable(),priceYearly:ek().nullable(),trialDays:eS().nullable(),latestVersion:ek().nullable(),totalInstalls:eS(),averageRating:ek().nullable(),totalReviews:eS(),supportUrl:ek().nullable(),privacyPolicyUrl:ek().nullable(),termsOfServiceUrl:ek().nullable(),documentationUrl:ek().nullable(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),shortDescription:ek().min(1).max(500),longDescription:ek().optional(),appType:pt,category:pi,subcategory:ek().optional(),iconUrl:ek().url().optional(),bannerUrl:ek().url().optional(),screenshots:eR(ek()).optional(),tags:eR(ek()).optional(),pricingModel:po.default("free"),priceMonthly:ek().optional(),priceYearly:ek().optional(),trialDays:eS().int().min(0).optional(),supportUrl:ek().url().optional(),privacyPolicyUrl:ek().url().optional(),termsOfServiceUrl:ek().url().optional(),documentationUrl:ek().url().optional(),metadata:eN(eE()).default({})}).partial(),eP({version:ek().min(1),manifest:pb,changelog:ek().optional(),minPlatformVersion:ek().optional()}),eP({appId:ek().uuid(),appVersionId:ek().uuid().optional(),config:eN(eE()).default({}),grantedPermissions:eR(ek()).default([]),autoUpdate:eT().default(!0)}),eP({config:eN(eE()).optional(),settings:eN(eE()).optional(),autoUpdate:eT().optional()}),eP({installId:ek().uuid(),name:ek().min(1).max(255),description:ek().optional(),connectorSpec:pk,metadata:eN(eE()).default({})}),eP({name:ek().min(1).max(255).optional(),description:ek().optional(),connectorSpec:pk.optional(),status:pn.optional(),metadata:eN(eE()).optional()}),eP({appId:ek().uuid(),rating:eS().int().min(1).max(5),title:ek().max(255).optional(),body:ek().max(2e3).optional()}),eP({companyName:ek().min(1).max(255),companyWebsite:ek().url().optional(),contactEmail:ek().email()}),eP({appId:ek().uuid(),specType:ps,specUrl:ek().url().optional(),rawSpec:eN(eE()).optional()}),eP({installId:ek().uuid(),credentialKey:ek().min(1),credentialValue:ek().min(1),credentialType:pl,expiresAt:ek().datetime().optional()}),eP({installId:ek().uuid(),prompt:ek().min(1).max(2e3),context:eN(eE()).optional()}),eP({appId:ek().uuid(),appVersionId:ek().uuid().optional(),sandboxConfig:eN(eE()).default({}),ttlHours:eS().int().min(1).max(72).default(4)}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),category:pi.optional(),appType:pt.optional(),pricingModel:po.optional(),status:pa.optional(),isFeatured:eB.boolean().optional(),isVerified:eB.boolean().optional(),tags:ek().optional(),sortBy:eF(["name","totalInstalls","averageRating","createdAt"]).default("
1createdAt"),sortOrder:eF(["asc","desc"]).default("desc")}),eP({tenantId:ek().uuid(),installId:ek().uuid(),connectorKey:ek().uuid(),tool:ek().min(1),specVersion:ek().min(1),input:eN(eE()),idempotencyKey:ek().min(1),timeoutMs:eS().int().positive().max(6e4).optional()}),eP({status:eF(["success","failed","connector_paused"]),runId:ek().uuid(),output:eE().nullable(),responseCode:eS().int().optional(),durationMs:eS().int().optional(),errorMessage:ek().optional(),outputHash:ek().optional(),connectorHealth:eP({consecutiveFailures:eS().int(),maxConsecutiveFailures:eS().int(),status:pn}).optional()}),eP({connectorId:ek().uuid(),installId:ek().uuid(),specVersion:ek().min(1),tool:ek().min(1).optional()}),eP({ok:eT(),responseCode:eS().int().optional(),durationMs:eS().int().optional(),scopesVerified:eR(ek()).optional(),errorMessage:ek().optional()}).extend({activated:eT()}),eP({installId:ek().uuid(),tools:eR(ek())}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),status:pr.optional(),connectorId:ek().uuid().optional()}),eP({fieldPath:ek().min(1),value:eE()}),eP({actorType:eF(["investor","sponsor","marketplace_operator","fea_operator","platform_operator","creator"]),goalCategory:eF(["investment","fundraising","onboarding","content","revenue","compliance","custom"]),goalType:ek(),targetValue:ek(),currency:ek().optional(),period:eF(["weekly","monthly","quarterly","yearly"]).optional(),periodStart:ek().datetime().optional(),periodEnd:ek().datetime().optional(),linkedEntityType:ek().optional(),linkedEntityId:ek().uuid().optional(),metadata:eN(eE()).optional()}),eP({goalId:ek().uuid(),previousValue:ek(),newValue:ek(),deltaValue:ek(),source:ek()}),eP({funnelName:ek(),stepKey:ek(),baselineRate:ek(),currentRate:ek(),deltaPercent:ek(),severity:eF(["warning","critical"])});var pS=eP({priority:eS().int().min(1).max(3),category:ek(),title:ek(),description:ek(),cta:ek(),estimatedImpact:ek(),reasoning:ek()});eP({actorType:ek(),actorId:ek().uuid(),recommendations:eR(pS),computedAt:ek().datetime(),expiresAt:ek().datetime()});var pT=eF(["ocr","embedding","validation","doc_classification","analytics_rollup","a2a_skill_execution"]),pC=eO([eD(0),eD(1),eD(2)]);eF(["queued","claimed","completed","failed","verification_pending","expired"]),eF(["unverified","passed","failed"]),eF(["pending","posted","capped","voided"]);var pE=eF(["ios","android","macos","windows","linux","web"]);eP({deviceId:ek(),platform:pE,platformVersion:ek().optional(),appVersion:ek().optional(),capabilities:eR(pT),publicKey:ek().optional()}),eP({deviceId:ek(),tenantId:ek().uuid(),capabilities:eR(pT),tier:pC,appVersion:ek().optional(),publicKey:ek().optional()}),eP({taskType:pT,payload:eN(eE()),priority:eS().int().min(0).max(10).default(0),maxRetries:eS().int().min(0).max(5).default(3),expiresInSeconds:eS().int().min(60).max(3600).default(300)}),eP({taskId:ek().uuid(),deviceId:ek(),resultPayload:eN(eE()),deviceSignature:ek().optional(),cpuMs:eS().int().min(0),wallMs:eS().int().min(0),bytesProcessed:eS().int().min(0),timestamp:eS().int()}),eP({deviceId:ek(),capabilities:eR(pT),tier:pC.optional()}),eP({deviceId:ek(),reason:ek(),durationMinutes:eS().int().min(1).max(10080)});var pR=eF(["builtin_skill","workflow_hook","app_store","device_agent"]),pP=eF(["bearer","service_token","none"]),pO=eF(["submitted","working","input-required","completed","failed","canceled"]);eP({tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),sourceType:pR,name:ek().min(1),description:ek().optional(),agentCardUrl:ek().url().optional(),a2aEndpointUrl:ek().url().optional(),skills:eR(eP({id:ek(),name:ek(),tags:eR(ek()).default([])})).default([]),capabilities:eR(ek()).default([]),authScheme:pP.default("bearer"),agentId:ek().uuid().optional(),installId:ek().uuid().optional(),metadata:eN(eE()).optional()}),eP({taskId:ek().uuid(),tenantId:ek().uuid(),skillId:ek(),registrationId:ek().uuid(),inputMessage:eN(eE()),priority:eS().int().min(0).max(10).default(5),expiresAt:ek().datetime().optional()}),eP({taskId:ek().uuid(),state:pO,outputMessage:eN(eE()).optional(),artifacts:eR(eN(eE())).optional(),errorMessage:ek().optional(),durationMs:eS().int().optional()}),eP({registrationId:ek().uuid(),tenantId:ek().uuid(),isHealthy:eT(),latencyMs:eS().int().optional(),lastCheckedAt:ek().datetime()}),eP({tenantId:ek().uuid(),skillId:ek().optional(),capability:ek().optional(),sourceType:pR.optional(),isActive:eT().optional()}),eP({artifactDid:ek().regex(/^did:(web|key):/),issuerDid:ek().regex(/^did:(web|key):/),target:ek().min(1).max(64),agentCardUrl:ek().url().optional(),metadata:eN(ek(),eE()).optional()}),eP({deploymentDid:ek().regex(/^did:(web|key):/),tenantId:ek().uuid(),reason:ek().optional()}),eP({deploymentDid:ek(),deploymentDidDocument:eE(),deploymentCredential:eE(),artifactDid:ek(),status:eF(["active","revoked"])});var pM=eF(["html_email","html_page","rich_text","structured_form","social_post","sms","push_notification","in_a
1pp_message","whatsapp_dm"]),pN=eF(["grapesjs_mjml","grapesjs_css","tiptap_blog","form_builder","tiptap_social","sms_composer","push_composer","in_app_composer","whatsapp_composer"]),pj=eF(["desktop","mobile","tablet","dark_mode","plain_text","inbox"]),pD=eF(["email","web","sms","push","in_app","social","whatsapp"]),pF=eP({id:ek(),label:ek(),description:ek(),required:eT()});eP({id:pM,label:ek(),editorType:pN,blockCategories:eR(ek()),outputCompiler:ek(),mergeFieldSupport:eT(),previewModes:eR(pj),complianceRules:eR(pF),maxWidth:eS().nullable(),deliveryChannels:eR(pD),maxOutputSize:eS().nullable(),conditionalBlockSupport:eT()});var pL={html_email:{id:"html_email",label:"Email (HTML)",editorType:"grapesjs_mjml",blockCategories:["Layout","Content","Interactive","Social","Compliance","Platform"],outputCompiler:"mjml_to_html",mergeFieldSupport:!0,previewModes:["desktop","mobile","dark_mode","plain_text","inbox"],complianceRules:[{id:"can_spam_footer",label:"CAN-SPAM Footer",description:"Physical mailing address required",required:!0},{id:"unsubscribe_link",label:"Unsubscribe Link",description:"One-click unsubscribe link required",required:!0},{id:"sender_identity",label:"Sender Identity",description:"Valid from name and email required",required:!0}],maxWidth:600,deliveryChannels:["email"],maxOutputSize:102400,conditionalBlockSupport:!0},html_page:{id:"html_page",label:"Web Page (HTML/CSS)",editorType:"grapesjs_css",blockCategories:["Layout","Content","Interactive","Social","Navigation","Engagement","Commerce","Portfolio","Platform"],outputCompiler:"css_html_passthrough",mergeFieldSupport:!0,previewModes:["desktop","tablet","mobile"],complianceRules:[{id:"fintech_disclaimer",label:"Fintech Disclaimer",description:"Investment risk disclaimer required for offering pages",required:!1},{id:"accessibility",label:"Accessibility",description:"WCAG 2.1 AA compliance",required:!0}],maxWidth:null,deliveryChannels:["web"],maxOutputSize:null,conditionalBlockSupport:!0},rich_text:{id:"rich_text",label:"Rich Text (Article)",editorType:"tiptap_blog",blockCategories:["Content"],outputCompiler:"tiptap_html_export",mergeFieldSupport:!0,previewModes:["desktop","mobile"],complianceRules:[],maxWidth:null,deliveryChannels:["web","email"],maxOutputSize:51200,conditionalBlockSupport:!1},structured_form:{id:"structured_form",label:"Form (Structured)",editorType:"form_builder",blockCategories:["Interactive"],outputCompiler:"json_schema",mergeFieldSupport:!1,previewModes:["desktop","mobile"],complianceRules:[{id:"gdpr_consent",label:"GDPR Consent",description:"Data processing consent checkbox required",required:!1}],maxWidth:null,deliveryChannels:["web"],maxOutputSize:null,conditionalBlockSupport:!1},social_post:{id:"social_post",label:"Social Post",editorType:"tiptap_social",blockCategories:["Content","Social"],outputCompiler:"plain_text_media",mergeFieldSupport:!0,previewModes:["desktop","mobile"],complianceRules:[{id:"fintech_social",label:"Investment Disclaimers",description:"SEC/FINRA social media advertising rules",required:!1}],maxWidth:null,deliveryChannels:["social"],maxOutputSize:null,conditionalBlockSupport:!1},sms:{id:"sms",label:"SMS",editorType:"sms_composer",blockCategories:["Content"],outputCompiler:"plain_text_gsm7",mergeFieldSupport:!0,previewModes:["mobile"],complianceRules:[{id:"opt_out",label:"Opt-Out Message",description:"Reply STOP to unsubscribe text required",required:!0},{id:"tcpa",label:"TCPA Compliance",description:"Prior express consent required",required:!0}],maxWidth:null,deliveryChannels:["sms"],maxOutputSize:1600,conditionalBlockSupport:!1},push_notification:{id:"push_notification",label:"Push Notification",editorType:"push_composer",blockCategories:["Content"],outputCompiler:"push_json_payload",mergeFieldSupport:!0,previewModes:["mobile"],complianceRules:[],maxWidth:null,deliveryChannels:["push"],maxOutputSize:4096,conditionalBlockSupport:!1},in_app_message:{id:"in_app_message",label:"In-App Message",editorType:"in_app_composer",blockCategories:["Content","Interactive"],outputCompiler:"styled_html_fragment",mergeFieldSupport:!0,previewModes:["desktop","mobile"],complianceRules:[],maxWidth:null,deliveryChannels:["in_app"],maxOutputSize:10240,conditionalBlockSupport:!0},whatsapp_dm:{id:"whatsapp_dm",label:"WhatsApp Message",editorType:"whatsapp_composer",blockCategories:["Content","Interactive"],outputCompiler:"whatsapp_template_json",mergeFieldSupport:!0,previewModes:["mobile"],complianceRules:[{id:"whatsapp_template",label:"Template Approval",description:"WhatsApp Business template must be pre-approved",required:!0}],maxWidth:null,deliveryChannels:["whatsapp"],maxOutputSize:4096,conditionalBlockSupport:!1}},pB={article:"rich_text",blog_post:"rich_text",page:"html_page",landing_page:"html_page",newsletter:"html_email",email_campaign:"html_email",email_template:"html_email",form:"structured_form",poll:"html_page",survey:"html_page",event:"html_page",review:"html_page",offer:"html_page",newsletter_signup:"html_page",feedback:"structured_form",contact_us:"structured_form",social_post:"social_post",sms_template:"sms",push_template:"push_notification",in_a
1pp_template:"in_app_message",whatsapp_template:"whatsapp_dm"};t9(function(e){return pL[e]},"getFormatDefinition"),t9(function(e){return Object.values(pL).filter(t=>t.deliveryChannels.includes(e))},"getFormatsForChannel"),t9(function(){return Object.values(pL).filter(e=>e.mergeFieldSupport)},"getFormatsWithMergeFields"),t9(function(e){return pB[e]},"getFormatForContentType"),t9(function(){return Object.keys(pL)},"getAllContentFormats");var pz=eF(["offering","event","contact","campaign","investor","tenant","distribution","custom"]),pU=eF(["string","number","date","boolean","url","currency","image","email"]),pq=ej(()=>eP({key:ek(),label:ek(),type:pU,category:ek().optional(),format:ek().optional(),description:ek().optional()}));eP({id:pz,label:ek(),description:ek(),fields:eR(pq),natsPattern:ek(),cacheTtl:eS().int().nonnegative(),batchPattern:ek().optional(),batchSize:eS().int().positive().optional()});var p$={offering:{id:"offering",label:"Investment Offering",description:"Investment offering data including financial terms, status, and sponsor details",fields:[{key:"name",label:"Offering Name",type:"string",category:"Basic"},{key:"description",label:"Description",type:"string",category:"Basic"},{key:"type",label:"Offering Type",type:"string",category:"Basic",description:"e.g., equity, debt, fund, reit"},{key:"slug",label:"Slug",type:"string",category:"Basic"},{key:"status",label:"Status",type:"string",category:"Basic",description:"draft, active, closed, paused"},{key:"targetAmount",label:"Target Amount",type:"currency",category:"Financial",format:"currency_usd"},{key:"raisedAmount",label:"Amount Raised",type:"currency",category:"Financial",format:"currency_usd"},{key:"minInvestment",label:"Minimum Investment",type:"currency",category:"Financial",format:"currency_usd"},{key:"maxInvestment",label:"Maximum Investment",type:"currency",category:"Financial",format:"currency_usd"},{key:"targetIrr",label:"Target IRR",type:"number",category:"Financial",format:"percent"},{key:"holdPeriod",label:"Hold Period",type:"string",category:"Financial",description:"e.g., 3-5 years"},{key:"featuredImage",label:"Featured Image",type:"image",category:"Media"},{key:"url",label:"Offering URL",type:"url",category:"Links"},{key:"sponsor.name",label:"Sponsor Name",type:"string",category:"Sponsor"},{key:"sponsor.logo",label:"Sponsor Logo",type:"image",category:"Sponsor"}],natsPattern:"ims.offerings.findById",cacheTtl:300,batchPattern:"ims.offerings.findByIds",batchSize:50},event:{id:"event",label:"Event",description:"Event details including schedule, venue, and attendance",fields:[{key:"title",label:"Event Title",type:"string",category:"Basic"},{key:"description",label:"Description",type:"string",category:"Basic"},{key:"date",label:"Start Date",type:"date",category:"Schedule",format:"date_long"},{key:"endDate",label:"End Date",type:"date",category:"Schedule",format:"date_long"},{key:"location",label:"Location",type:"string",category:"Venue"},{key:"type",label:"Event Type",type:"string",category:"Basic",description:"webinar, in_person, hybrid"},{key:"rsvpCount",label:"RSVP Count",type:"number",category:"Attendance"},{key:"maxAttendees",label:"Max Attendees",type:"number",category:"Attendance"},{key:"featuredImage",label:"Featured Image",type:"image",category:"Media"},{key:"url",label:"Event URL",type:"url",category:"Links"}],natsPattern:"content.events.findById",cacheTtl:600,batchPattern:"content.events.findByIds",batchSize:100},contact:{id:"contact",label:"Contact / Recipient",description:"CRM contact information for personalization and delivery",fields:[{key:"firstName",label:"First Name",type:"string",category:"Name"},{key:"lastName",label:"Last Name",type:"string",category:"Name"},{key:"email",label:"Email",type:"email",category:"Contact Info"},{key:"phone",label:"Phone",type:"string",category:"Contact Info"},{key:"company",label:"Company",type:"string",category:"Organization"},{key:"title",label:"Job Title",type:"string",category:"Organization"},{key:"address",label:"Address",type:"string",category:"Location"},{key:"city",label:"City",type:"string",category:"Location"},{key:"state",label:"State",type:"string",category:"Location"},{key:"country",label:"Country",type:"string",category:"Location"}],natsPattern:"crm.contacts.findById",cacheTtl:300,batchPattern:"crm.contacts.findByIds",batchSize:500},campaign:{id:"campaign",label:"Campaign",description:"Marketing campaign metadata for tracking and attribution",fields:[{key:"name",label:"Campaign Name",type:"string",category:"Basic"},{key:"subject",label:"Subject Line",type:"string",category:"Basic"},{key:"type",label:"Campaign Type",type:"string",category:"Basic",description:"email, sms, push, social"},{key:"status",label:"Status",type:"string",category:"Basic",description:"draft, scheduled, sending, sent"},{key:"sendDate",label:"Send Date",type:"date",category:"Schedule",format:"date_long"},{key:"recipientCount",label:"Recipient Count",type:"number",category:"Audience"}
1],natsPattern:"content.campaigns.findById",cacheTtl:600},investor:{id:"investor",label:"Investor",description:"Investor profile including compliance status and portfolio data",fields:[{key:"name",label:"Investor Name",type:"string",category:"Basic"},{key:"email",label:"Email",type:"email",category:"Contact Info"},{key:"accreditationStatus",label:"Accreditation Status",type:"string",category:"Compliance",description:"pending, verified, expired"},{key:"kycStatus",label:"KYC Status",type:"string",category:"Compliance",description:"not_started, pending, approved, rejected"},{key:"investmentTotal",label:"Total Invested",type:"currency",category:"Financial",format:"currency_usd"},{key:"portfolioValue",label:"Portfolio Value",type:"currency",category:"Financial",format:"currency_usd"}],natsPattern:"ims.investors.findById",cacheTtl:300,batchPattern:"ims.investors.findByIds",batchSize:200},tenant:{id:"tenant",label:"Marketplace / Tenant",description:"Marketplace branding, identity, and configuration",fields:[{key:"name",label:"Company Name",type:"string",category:"Basic"},{key:"subdomain",label:"Subdomain",type:"string",category:"Basic"},{key:"brandName",label:"Brand Name",type:"string",category:"Branding"},{key:"logo",label:"Logo",type:"image",category:"Branding"},{key:"primaryColor",label:"Primary Color",type:"string",category:"Branding"},{key:"tagline",label:"Tagline",type:"string",category:"Branding"}],natsPattern:"platform.tenants.findById",cacheTtl:600},distribution:{id:"distribution",label:"Distribution",description:"Investment distribution details including amounts and dates",fields:[{key:"amount",label:"Distribution Amount",type:"currency",category:"Financial",format:"currency_usd"},{key:"date",label:"Distribution Date",type:"date",category:"Schedule",format:"date_long"},{key:"type",label:"Distribution Type",type:"string",category:"Basic",description:"dividend, return_of_capital, interest"},{key:"offeringName",label:"Offering Name",type:"string",category:"Reference"},{key:"investorName",label:"Investor Name",type:"string",category:"Reference"},{key:"status",label:"Status",type:"string",category:"Basic",description:"pending, processing, completed, failed"}],natsPattern:"ims.distributions.findById",cacheTtl:300,batchPattern:"ims.distributions.findByIds",batchSize:100},custom:{id:"custom",label:"Custom Data",description:"User-defined data source with custom fields configured at runtime",fields:[],natsPattern:"",cacheTtl:0}};t9(function(){return Object.values(p$)},"getAllDataSources"),t9(function(e){return p$[e]},"getDataSource"),t9(function(e){let t=p$[e];return t?t.fields.map(i=>({key:"".concat(e,".").concat(i.key),label:"".concat(t.label,": ").concat(i.label),type:i.type})):[]},"getPrefixedFields"),t9(function(){let e=[];for(let t of Object.values(p$))for(let i of t.fields)e.push({key:"".concat(t.id,".").concat(i.key),label:"".concat(t.label,": ").concat(i.label),type:i.type,source:t.id});return e},"getAllPrefixedFields"),t9(function(e){let t=e.indexOf(".");if(-1===t)return;let i=e.slice(0,t),a=e.slice(t+1),n=p$[i];if(!n)return;let r=n.fields.find(e=>e.key===a);if(r)return{source:n,field:r}},"resolveFieldDefinition");var pH=eF(["lead","deal","content","offering","ticket","investment","distribution","quote","custom"]),pV=eF(["first_match","round_robin","weighted","load_balanced"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),entityType:pH,pipelineId:ek().uuid().nullable(),criteria:eN(eE()),assigneeId:ek().uuid().nullable(),assigneeRole:ek().nullable(),assigneeTeamId:ek().uuid().nullable(),distributionStrategy:pV,priority:eS().int(),isActive:eT(),metadata:eN(eE()),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({name:ek().min(1).max(255),description:ek().optional(),entityType:pH.default("lead"),pipelineId:ek().uuid().optional(),criteria:eN(eE()).default({}),assigneeId:ek().uuid().optional(),assigneeRole:ek().optional(),assigneeTeamId:ek().uuid().optional(),distributionStrategy:pV.default("first_match"),priority:eS().int().default(0),isActive:eT().default(!0),metadata:eN(eE()).default({})}).partial(),eP({entityType:pH,entityData:eN(eE()),pipelineId:ek().uuid().optional()}),eP({matched:eT(),ruleId:ek().uuid().nullable(),ruleName:ek().nullable(),assigneeId:ek().uuid().nullable(),assigneeRole:ek().nullable(),assigneeTeamId:ek().uuid().nullable(),distributionStrategy:pV.nullable()});var pW=eF(["standard","enterprise","custom","partner"]),pG=eF(["per_seat","flat","usage","tiered","volume","hybrid"]),pK=eF(["monthly","quarterly","annual"]),pZ=eF(["seats","arr","commitment_months","units"]),pY=eF(["percentage","fixed_amount"]),pX=eF(["draft","pending_approval","approved","sent","viewed","accepted","rejected","expired","withdrawn"]),pJ=eF(["pricing","scope","terms","initial"]),pQ=eF(["pending","approved","rejected","delegated"]),p0=eF(["sales_manager","legal","finance","executive"]),p1=eF(["msa","sow","nda","amendment","addendum","renewal","subscription","enterprise"]),p2=eF(["draft","pending_internal_approval","pending_external_signature","active","suspended","terminated","expired","renewed"]);eF(["pricing","scope","sla","term","amendment","initial"]);var p5=eF(["signer","approver","cc","legal_contact","billing_contact"]),p3=eF(["net_30","net_60","net_90","upon_receipt","custom"]),p4=eF(["bronze","silver","gold","platinum","custom"]),p9=eF(["availability","performance","support","security","custom"]),p6=eF(["uptime_pct","response_time_p1_hrs","resolution_time_p1_hrs","mttr_hrs","rto_hrs","rpo_hrs","throughput_rps","error_rate_pct"]),p8=eF(["percent","hours","minutes","rps","ms"]),p7=eF(["monthly","weekly","daily","rolling_30d"]),me=eF(["credit_pct_of_monthly","flat_credit","none"]),mt=eF(["platform_metrics","manual","external_api","analytics_event"]);eF(["active","suspended","breached","terminated"]);var mi=eF(["warning","minor","major","critical"]),ma=eF(["accepted","modified","rejected","no_feedback"]),mn=eF(["accurate","false_positive","missed","pending"]),mr=eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek().min(1),type:pW,currency:ek().default("USD"),isDefault:eT().default(!1),validFrom:ek().datetime().nullable().optional(),validTo:ek().datetime().nullable().optional(),description:ek().nullable().optional(),metadata:eN(eE()).default({})});mr.omit({id:!0}).partial({currency:!0,isDefault:!0,validFrom:!0,validTo:!0,description:!0,metadata:!0}),mr.partial().omit({id:!0,marketplaceTenantId:!0,tenantId:!0});var mo=eP({upTo:eS(),price:eS()});eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),priceBookId:ek().uuid(),productKey:ek().min(1),productName:ek().min(1),unitPrice:ek(),currency:ek().default("USD"),billingModel:pG,includedUnits:eS().int().default(0),overagePrice:ek().nullable().optional(),tierConfig:eR(mo).nullable().optional(),minQuantity:eS().int().nullable().optional(),maxQuantity:eS().int().nullable().optional(),setupFee:ek().nullable().optional(),isActive:eT().default(!0),metadata:eN(eE()).default({})}).omit({id:!0}).partial({currency:!0,includedUnits:!0,overagePrice:!0,tierConfig:!0,minQuantity:!0,maxQuantity:!0,setupFee:!0,isActive:!0,metadata:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),priceBookId:ek().uuid(),thresholdType:pZ,thresholdMin:ek(),thresholdMax:ek().nullable().optional(),discountPct:ek(),discountType:pY,appliesTo:eR(ek()).nullable().optional(),isStackable:eT().default(!1),metadata:eN(eE()).default({})}).omit({id:!0}).partial({thresholdMax:!0,appliesTo:!0,isStackable:!0,metadata:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),quoteNumber:ek(),dealId:ek().uuid().nullable().optional(),companyId:ek().uuid().nullable().optional(),priceBookId:ek().uuid().nullable().optional(),ownerId:ek().uuid(),status:pX,currentVersion:eS().int().default(1),title:ek().nullable().optional(),notes:ek().nullable().optional(),termsAndConditions:ek().nullable().optional(),currency:ek().default("USD"),subtotal:ek().default("0"),discountTotal:ek().default("0"),taxTotal:ek().default("0"),total:ek().default("0"),billingStartDate:ek().nullable().optional(),contractTermMonths:eS().int().nullable().optional(),paymentTerms:p3.nullable().optional(),annualEscalationPct:ek().nullable().optional(),validUntil:ek().datetime().nullable().optional(),sentAt:ek().datetime().nullable().optional(),viewedAt:ek().datetime().nullable().optional(),acceptedAt:ek().datetime().nullable().optional(),rejectedAt:ek().datetime().nullable().optional(),rejectionReason:ek().nullable().optional(),approvalFlowInstanceId:ek().uuid().nullable().optional(),aiGenerated:eT().default(!1),aiConfidenceScore:ek().nullable().optional(),metadata:eN(eE()).default({})}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),dealId:ek().uuid().optional(),companyId:ek().uuid().optional(),priceBookId:ek().uuid().optional(),ownerId:ek().uuid(),title:ek().optional(),notes:ek().optional(),termsAndConditions:ek().optional(),currency:ek().default("USD"),billingStartDate:ek().optional(),contractTermMonths:eS().int().optional(),paymentTerms:p3.optional(),annualEscalationPct:ek().optional(),validUntil:ek().datetime().optional(),metadata:eN(eE()).default({})}).partial().omit({marketplaceTenantId:!0,tenantId:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),quoteId:ek().uuid(),priceBookEntryId:ek().uuid().nullable().optional(),productKey:ek().nullable().optional(),productName:ek(),description:ek().nullable().optional(),quantity:ek().default("1"),unitPrice:ek(),listPrice:ek().nullable().optional(),discountPct:ek().default("0"),discountAmount:ek().default("0"),setupFee:ek().default("0"),lineTotal:ek().default("0"),billingModel:pG.nullable().optional(),sortOrder:eS().int().default(0),isRecurring:eT().default(!0),billingFrequency:pK.nullable().optional(),metadata:eN(eE()).default({})}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),quoteId:ek().uuid(),priceBookEntryId:ek().uuid().optional(),productKey:ek().optional(),productName:ek(),description:ek().optional(),quantity:ek().default("1"),unitPrice:ek(),listPrice:ek().optional(),discountPct:ek().default("0"),setupFee:ek().default("0"),billingModel:pG.optional(),sortOrder:eS().int().default(0),isRecurring:eT().default(!0),billingFrequency:pK.optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),quoteId:ek().uuid(),version:eS().int(),snapshot:eN(eE()),changeSummary:ek().nullable().optional(),changeType:pJ,createdBy:ek().uuid().nullable().optional(),sentAt:ek().datetime().nullable().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),quoteId:ek().uuid(),flowInstanceId:ek().uuid().nullable().optional(),stepKey:ek().nullable().optional(),approverId:ek().uuid().nullable().optional(),approverRole:p0.nullable().optional(),status:pQ,decisionNotes:ek().nullable().optional(),decidedAt:ek().datetime().nullable().optional(),delegatedTo:ek().uuid().nullable().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),contractNumber:ek(),quoteId:ek().uuid().nullable().optional(),dealId:ek().uuid().nullable().optional(),companyId:ek().uuid().nullable().optional(),title:ek().min(1),type:p1,status:p2,parentContractId:ek().uuid().nullable().optional(),templateId:ek().uuid().nullable().optional(),agreementId:ek().uuid().nullable().optional(),ownerId:ek().uuid(),currentVersion:eS().int().default(1),currency:ek().default("USD"),totalContractValue:ek().default("0"),annualRecurringRevenue:ek().default("0"),oneTimeFees:ek().default("0"),contractTermMonths:eS().int().nullable().optional(),billingStartDate:ek().nullable().optional(),billingEndDate:ek().nullable().optional(),annualEscalationPct:ek().nullable().optional(),paymentTerms:p3.nullable().optional(),autoRenew:eT().default(!0),renewalNoticeDays:eS().int().default(90),renewalTermMonths:eS().int().nullable().optional(),earlyTerminationFeePct:ek().nullable().optional(),signedAt:ek().datetime().nullable().optional(),activatedAt:ek().datetime().nullable().optional(),expiresAt:ek().datetime().nullable().optional(),terminatedAt:ek().datetime().nullable().optional(),terminationReason:ek().nullable().optional(),approvalFlowInstanceId:ek().uuid().nullable().optional(),subscriptionId:ek().uuid().nullable().optional(),aiGenerated:eT().default(!1),metadata:eN(eE()).default({})}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),quoteId:ek().uuid().optional(),dealId:ek().uuid().optional(),companyId:ek().uuid().optional(),title:ek().min(1),type:p1,templateId:ek().uuid().optional(),ownerId:ek().uuid(),currency:ek().default("USD"),totalContractValue:ek().default("0"),annualRecurringRevenue:ek().default("0"),oneTimeFees:ek().default("0"),contractTermMonths:eS().int().optional(),billingStartDate:ek().optional(),billingEndDate:ek().optional(),annualEscalationPct:ek().optional(),paymentTerms:p3.optional(),autoRenew:eT().default(!0),renewalNoticeDays:eS().int().default(90),renewalTermMonths:eS().int().optional(),earlyTerminationFeePct:ek().optional(),metadata:eN(eE()).default({})}).partial().omit({marketplaceTenantId:!0,tenantId:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),contractId:ek().uuid(),quoteLineItemId:ek().uuid().nullable().optional(),productKey:ek().nullable().optional(),productName:ek(),description:ek().nullable().optional(),quantity:ek().default("1"),unitPrice:ek(),lineTotal:ek().default("0"),billingModel:pG.nullable().optional(),billingFrequency:pK.nullable().optional(),isRecurring:eT().default(!0),sortOrder:eS().int().default(0),metadata:eN(eE()).default({})}),eP({contractId:ek().uuid(),connectionId:ek().uuid(),role:p5,isPrimary:eT().default(!1)}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek().min(1),description:ek().nullable().optional(),tier:p4,isDefault:eT().default(!1),metadata:eN(eE()).default({})}).omit({id:!0}).partial({description:!0,isDefault:!0,metadata:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),slaDefinitionId:ek().uuid(),metricName:ek().min(1),metricKey:p6,metricType:p9,targetValue:ek(),targetUnit:p8,measurementWindow:p7,breachThresholdPct:ek().nullable().optional(),warningThresholdPct:ek().nullable().optional(),penaltyFormula:me.nullable().optional(),penaltyValue:ek().nullable().optional(),maxPenaltyPct:ek().nullable().optional(),collectionSource:mt.nullable().optional(),collectionConfig:eN(eE()).nullable().optional(),sortOrder:eS().int().default(0),metadata:eN(eE()).default({})}).omit({id:!0}).partial({breachThresholdPct:!0,warningThresholdPct:!0,penaltyFormula:!0,penaltyValue:!0,maxPenaltyPct:!0,collectionSource:!0,collectionConfig:!0,sortOrder:!0,metadata:!0}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),contractSlaId:ek().uuid(),metricId:ek().uuid(),breachStart:ek().datetime(),breachEnd:ek().datetime().nullable().optional(),severity:mi,measuredValue:ek(),targetValue:ek(),deviationPct:ek().nullable().optional(),penaltyAmount:ek().nullable().optional(),penaltyApplied:eT().default(!1),creditIssuedAt:ek().datetime().nullable().optional(),resolutionNotes:ek().nullable().optional(),resolvedBy:ek().uuid().nullable().optional(),escalationCount:eS().int().default(0),aiPredicted:eT().default(!1),aiPredictedAt:ek().datetime().nullable().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),contractSlaId:ek().uuid(),metricId:ek().uuid(),measuredAt:ek().datetime(),measuredValue:ek(),targetValue:ek(),compliancePct:ek().nullable().optional(),isBreached:eT().default(!1),collectionSource:mt.nullable().optional(),rawData:eN(eE()).nullable().optional()}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),contractSlaId:ek().uuid(),metricId:ek().uuid(),measuredAt:ek().datetime(),measuredValue:ek(),collectionSource:mt.optional(),rawData:eN(eE()).optional()}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),slaDefinitionId:ek().uuid(),metricId:ek().uuid().nullable().optional(),breachSeverity:mi,delayMinutes:eS().int().default(0),escalationLevel:eS().int().default(1),notifyRoles:eR(ek()).default([]),notifyAccounts:eR(ek()).default([]),notificationChannels:eR(ek
1()).default([]),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),requestedBy:ek().uuid(),prompt:ek().min(1),context:eN(eE()).default({}),result:eN(eE()).nullable().optional(),quoteId:ek().uuid().nullable().optional(),confidenceScore:ek().nullable().optional(),modelUsed:ek().nullable().optional(),tokensUsed:eS().int().nullable().optional(),latencyMs:eS().int().nullable().optional(),feedback:ma.nullable().optional(),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),contractSlaId:ek().uuid(),metricId:ek().uuid(),predictedAt:ek().datetime(),predictedBreachAt:ek().datetime().nullable().optional(),predictedValue:ek().nullable().optional(),confidenceScore:ek().nullable().optional(),modelFeatures:eN(eE()).nullable().optional(),outcome:mn,actualBreachId:ek().uuid().nullable().optional(),metadata:eN(eE()).default({})});var ml=eF(["full_service","limited","introducing","clearing","funding_portal"]),ms=eF(["pending","active","suspended","terminated"]),md=eF(["active","suspended","terminated"]),mu=eF(["principal","registered_rep","compliance_officer","operations"]),mc=eF(["active","inactive","suspended","terminated"]),mp=eF(["pending","in_review","info_requested","approved","rejected","withdrawn"]),mm=eF(["initial","amendment","re_review"]),mf=eF(["form_c","form_c_u","form_c_ar","form_c_tr","form_1_a","form_1_a_pq","form_1_k","form_1_sa"]),mh=eF(["draft","pending_review","ready_to_file","filed","accepted","rejected","amendment_required"]),mg=eF(["review","transaction","annual","escrow","filing","custom"]),mv=eF(["pending","invoiced","paid","waived","disputed"]);eF(["not_required","pending","in_review","approved","rejected","info_requested"]);var my=eF(["dalmore","north_capital","manual","custom"]),mb=eF(["active","expired","suspended"]),m_=eP({street1:ek(),street2:ek().optional(),city:ek(),state:ek(),zip:ek(),country:ek()}),mx=eP({supportedRegulations:eR(ek()).default([]),supportsEscrow:eT().default(!1),supportsFormCFiling:eT().default(!1),supportsForm1AFiling:eT().default(!1),maxOfferingsPerYear:eS().int().positive().optional(),maxOfferingSize:eS().positive().optional()}),mA=eP({providerType:my.default("manual"),baseUrl:ek().url().optional(),apiKey:ek().optional(),apiSecret:ek().optional(),webhookSecret:ek().optional(),webhookUrl:ek().url().optional(),sandboxMode:eT().optional(),customHeaders:eN(ek()).optional()}),mI=eP({reviewFeeFlat:eS().min(0).optional(),reviewFeePercent:eS().min(0).max(100).optional(),transactionFeePercent:eS().min(0).max(100).optional(),annualFeeFlat:eS().min(0).optional(),escrowFeePercent:eS().min(0).max(100).optional(),formFilingFee:eS().min(0).optional(),minimumFeePerOffering:eS().min(0).optional(),maximumFeePerOffering:eS().min(0).optional()}),mw=eP({type:ek(),number:ek().optional(),expirationDate:ek().optional(),status:mb}),mk=eP({item:ek(),category:ek(),isRequired:eT(),isCompleted:eT(),completedAt:ek().optional(),completedBy:ek().uuid().optional(),notes:ek().optional()}),mS=eP({method:eF(["flat","percentage"]),rate:eS().min(0).max(100).optional(),baseAmount:eS().min(0).optional(),description:ek().optional()});eP({firmName:ek().min(1).max(500),crdNumber:ek().min(1).max(20),finraMemberId:ek().max(20).optional(),secRegistrationNumber:ek().max(30).optional(),bdType:ml,primaryContactName:ek().min(1).max(200),primaryContactEmail:ek().email(),primaryContactPhone:ek().max(30).optional(),complianceOfficerName:ek().max(200).optional(),complianceOfficerEmail:ek().email().optional(),address:m_.optional(),capabilities:mx.optional(),apiConfig:mA.optional(),feeSchedule:mI.optional(),reviewSlaHours:eS().int().positive().optional(),metadata:eN(eE()).optional()}).partial().extend({status:ms.optional()}),eP({status:ms.optional(),bdType:ml.optional(),search:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({bdRegistrationId:ek().uuid(),marketplaceTenantId:ek().uuid(),regulationTypes:eR(ek()).min(1),feeScheduleOverride:mI.optional(),effectiveDate:ek().datetime().optional(),metadata:eN(eE()).optional()}),eP({regulationTypes:eR(ek()).min(1).optional(),status:md.optional(),feeScheduleOverride:mI.optional(),terminationDate:ek().datetime().optional(),terminationReason:ek().optional(),metadata:eN(eE()).optional()}),eP({bdRegistrationId:ek().uuid().optional(),marketplaceTenantId:ek().uuid().optional(),status:md.optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({bdRegistrationId:ek().uuid(),accountId:ek().uuid().optional(),firstName:ek().min(1).max(100),lastName:ek().min(1).max(100),email:ek().email(),phone:ek().max(30).optional(),crdNumber:ek().max(20).optional(),licenses:eR(mw).optional(),role:mu.default("registered_rep"),metadata:eN(eE()).optional()}).partial().omit({bdRegistrationId:!0}).extend({status:mc.optional()}),eP({bdRegistrationId:ek().uuid().optional(),status:mc.optional(),role:mu.optional(),search:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({offeringId:ek().uuid(),reviewType:mm.default("initial")}),eP({decision:eF(["approved","rejected","info_requested"]),reviewNotes:ek().optional(),rejectionReason:ek().optional(),infoRequestDetails:ek().optional(),conditionsForApproval:eR(ek()).optional(),complianceChecklist:eR(mk).optional()}),eP({bdRegistrationId:ek().uuid().optional(),offeringId:ek().uuid().optional(),status:mp.optional(),regulationType:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({offeringId:ek().uuid(),bdReviewId:ek().uuid().optional(),formType:mf,filingData:eN(eE()).optional()}
1),eP({status:mh.optional(),edgarAccessionNumber:ek().optional(),edgarFilingDate:ek().datetime().optional(),edgarAcceptanceDate:ek().datetime().optional(),filingData:eN(eE()).optional(),filingDocumentUrl:ek().url().optional(),edgarSubmissionUrl:ek().url().optional(),rejectionReason:ek().optional()}),eP({offeringId:ek().uuid().optional(),bdRegistrationId:ek().uuid().optional(),formType:mf.optional(),status:mh.optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({offeringId:ek().uuid(),investmentId:ek().uuid().optional(),feeType:mg,amount:ek().regex(/^\d+(\.\d{1,2})?$/),currency:ek().default("USD"),calculationBasis:mS.optional(),dueDate:ek().datetime().optional(),notes:ek().optional(),metadata:eN(eE()).optional()}),eP({status:mv.optional(),invoiceReference:ek().optional(),paidAt:ek().datetime().optional(),notes:ek().optional()}),eP({offeringId:ek().uuid().optional(),bdRegistrationId:ek().uuid().optional(),feeType:mg.optional(),status:mv.optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),campaignId:ek().uuid(),cursor:ek().optional(),batchSize:eS().int().positive().max(1e4).optional().default(1e4)});var mT=eP({email:ek().email(),connectionId:ek().uuid(),firstName:ek().optional(),lastName:ek().optional()});eP({recipients:eR(mT),nextCursor:ek().optional(),totalCount:eS().int()}),eP({marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),campaignId:ek().uuid()}),eP({count:eS().int()});var mC=eP({email:ek().email(),name:ek().optional(),connectionId:ek().uuid().optional(),firstName:ek().optional(),lastName:ek().optional()});eP({executionId:ek().uuid(),campaignId:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),channel:ek(),subject:ek().optional(),body:ek().optional(),templateId:ek().uuid().optional(),recipients:eR(mC)}),eP({campaignId:ek().uuid(),executionId:ek().uuid().optional(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),eventType:eF(["delivered","opened","clicked","bounced","unsubscribed","failed"]),recipientEmail:ek().optional(),providerMessageId:ek().optional()}),eP({executionId:ek().uuid(),campaignId:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),sentCount:eS().int().min(0),failedCount:eS().int().min(0),totalRecipients:eS().int().min(0)}),eP({displayName:ek().optional(),bio:ek().optional(),website:ek().optional(),socialLinks:eN(ek()).optional(),payoutMethod:ek().optional(),payoutDetails:eN(eE()).optional(),avatarUrl:ek().optional()}),eP({brandCustomerId:ek(),campaignId:ek().optional()}),eP({brandTenantId:ek(),message:ek().optional(),website:ek().optional(),socialLinks:eN(ek()).optional()}),eP({name:ek().min(1),description:ek().optional(),category:ek().optional(),isPublic:eT().optional()}),eP({tier:ek()});var mE=eF(["standard","smart","vanity","temporary"]);eF(["desktop","mobile","tablet","bot","unknown"]);var mR=eF(["pending","active","failed","expired"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),key:ek(),longUrl:ek().url(),finalUrl:ek().nullable(),title:ek().nullable(),description:ek().nullable(),tags:eR(ek()).default([]),urlType:mE.default("standard"),isActive:eT().default(!0),expiresAt:ek().or(eC()).nullable(),passwordHash:ek().nullable(),customDomain:ek().nullable(),utmSource:ek().nullable(),utmMedium:ek().nullable(),utmCampaign:ek().nullable(),utmContent:ek().nullable(),utmTerm:ek().nullable(),utmTemplateId:ek().uuid().nullable(),linkGroupId:ek().uuid().nullable(),ogTitle:ek().nullable(),ogDescription:ek().nullable(),ogImageUrl:ek().nullable(),isBannerCta:eT().default(!1),bannerCtaLabel:ek().nullable(),bannerCtaUrl:ek().nullable(),isSmartUrl:eT().default(!1),totalClicks:eS().int().default(0),createdBy:ek().uuid().nullable(),createdAt:ek().or(eC()),updatedAt:ek().or(eC())});var mP=eP({longUrl:ek().url(),key:ek().min(1).max(32).optional(),title:ek().max(200).optional(),description:ek().max(2e3).optional(),tags:eR(ek()).default([]),urlType:mE.default("standard"),expiresAt:ek().optional(),password:ek().optional(),customDomain:ek().optional(),utmSource:ek().optional(),utmMedium:ek().optional(),utmCampaign:ek().optional(),utmContent:ek().optional(),utmTerm:ek().optional(),utmTemplateId:ek().uuid().optional(),linkGroupId:ek().uuid().optional(),ogTitle:ek().max(200).optional(),ogDescription:ek().max(500).optional(),ogImageUrl:ek().url().optional(),isBannerCta:eT().default(!1),bannerCtaLabel:ek().max(100).optional(),bannerCtaUrl:ek().url().optional(),isSmartUrl:eT().default(!1)});mP.partial(),eP({links:eR(mP).min(1).max(100)}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),tag:ek().optional(),urlType:mE.optional(),isActive:eB.boolean().optional(),linkGroupId:ek().uuid().optional(),sortBy:eF(["createdAt","totalClicks","title"]).default("
1createdAt"),sortOrder:eF(["asc","desc"]).default("desc")}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),description:ek().nullable(),campaignId:ek().uuid().nullable(),color:ek().nullable(),icon:ek().nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({name:ek().min(1).max(200),description:ek().max(2e3).optional(),campaignId:ek().uuid().optional(),color:ek().max(7).optional(),icon:ek().optional(),metadata:eN(eE()).default({})}).partial(),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),name:ek(),utmSource:ek().nullable(),utmMedium:ek().nullable(),utmCampaign:ek().nullable(),utmContent:ek().nullable(),utmTerm:ek().nullable(),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({name:ek().min(1).max(200),utmSource:ek().optional(),utmMedium:ek().optional(),utmCampaign:ek().optional(),utmContent:ek().optional(),utmTerm:ek().optional()}).partial(),eP({linkId:ek().uuid(),shortKey:ek(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),ipAddress:ek().optional(),userAgent:ek().optional(),referrer:ek().optional(),utmSource:ek().optional()}),eP({period:eF(["1d","7d","30d","90d","365d"]).default("7d"),granularity:eF(["hourly","daily","weekly","monthly"]).default("daily")}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),domain:ek(),isVerified:eT().default(!1),verificationToken:ek().nullable(),sslStatus:mR.default("pending"),createdAt:ek().or(eC())});var mO=eF(["senior_debt","mezzanine_debt","subordinate_debt","preferred_equity","common_equity","jv_equity","ground_lease"]),mM=eF(["committed","funded","partially_drawn","matured","refinanced","defaulted"]),mN=eF(["interest_only","amortizing","balloon"]),mj=eF(["sofr","prime","libor","fixed","other"]),mD=eF(["bank","life_company","debt_fund","agency","private_lender","equity_partner","sponsor","other"]),mF=eF(["multifamily","office","retail","industrial","construction","bridge","vc_equity","pe_fund","custom"]),mL=ek().regex(/^\d+(\.\d+)?$/,"Must be a decimal string");eP({offeringId:ek().uuid(),layerType:mO,layerName:ek().min(1).max(200),seniority:eS().int().min(1),amount:mL,fundedAmount:mL.optional().default("0"),interestRate:mL.optional(),spreadOverIndex:mL.optional(),indexType:mj.optional(),maturityDate:ek().datetime().optional(),amortizationType:mN.optional(),ltvRatio:mL.optional(),dscrRequirement:mL.optional(),providerName:ek().max(500).optional(),providerType:mD.optional(),covenants:eN(eE()).optional().default({}),securityType:ek().max(200).optional(),subordinationTerms:ek().optional(),status:mM.optional().default("committed"),metadata:eN(eE()).optional().default({})}).partial().omit({offeringId:!0});var mB=eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),offeringId:ek().uuid(),layerType:mO,layerName:ek(),seniority:eS().int(),amount:ek(),fundedAmount:ek(),interestRate:ek().nullable(),spreadOverIndex:ek().nullable(),indexType:mj.nullable(),maturityDate:ek().datetime().nullable(),amortizationType:mN.nullable(),ltvRatio:ek().nullable(),dscrRequirement:ek().nullable(),providerName:ek().nullable(),providerType:mD.nullable(),covenants:eN(eE()),securityType:ek().nullable(),subordinationTerms:ek().nullable(),status:mM,metadata:eN(eE()).optional(),createdAt:ek().datetime(),updatedAt:ek().datetime()});eP({totalCapitalization:ek(),totalDebt:ek(),totalEquity:ek(),ltvRatio:ek(),debtServiceCoverageRatio:ek().nullable(),equityMultiple:ek(),debtYield:ek().nullable(),weightedAverageCostOfDebt:ek().nullable(),layers:eR(mB)});var mz=eP({layerType:mO,layerName:ek(),seniority:eS().int(),typicalPercentage:eS(),typicalInterestRate:eS().optional(),amortizationType:mN.optional(),providerType:mD.optional()});eP({id:ek().uuid(),tenantId:ek().uuid().nullable(),marketplaceTenantId:ek().uuid().nullable(),presetName:ek(),presetType:mF,description:ek().nullable(),isBuiltin:eT(),layers:eR(mz),createdAt:ek().datetime(),updatedAt:ek().datetime()}),eP({offeringId:ek().uuid(),presetId:ek().uuid(),totalAmount:mL});var mU=eF(["liquidation","distribution","refinance","sale"]),mq=eF(["pe_vc","real_estate","hybrid"]),m$=eF(["return_of_capital","preferred_return","gp_catchup","carried_interest","residual_split","debt_service"]),mH=eF(["lp","gp","class_a","class_b","debt_holder","all_equity"]),mV=eF(["operating","refinance","sale","return_of_capital","dividend"]),mW=eF(["draft","calculated","approved","distributed","reversed"]),mG=eF(["simple","compound","none"]),mK=ek().regex(/^\d+(\.\d+)?$/,"Must be a decimal string"),mZ=eP({priority:eS().int().min(1),tierName:ek().min(1),tierType:m$,participantType:mH,returnRate:eS().optional(),returnCap:eS().optional(),splitPercentage:eS().min(0).max(100).optional(),catchupTarget:eS().min(0).max(100).optional(),compounding:mG.default("none"),hurdleRate:eS().optional(),lookbackPeriod:eS().optional()});eP({templateName:ek().min(1).max(200),waterfallType:mU,verticalType:mq,tiers:eR(mZ).min(1),offeringId:ek().uuid().optional(),metadata:eN(eE()).optional().default({})}).partial(),eP({offeringId:ek().uuid(),templateId:ek().uuid(),amount:mK,expenses:mK.optional().default("0")}),eP({offeringId:ek().uuid(),templateId:ek().uuid(),grossAmount:mK,expensesDeducted:mK.optional().default("0"),distributionType:mV,distributionDate:ek().datetime(),metadata:eN(eE()).optional().default({})}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),templateName:ek(),waterfallType:mU,verticalType:mq,offeringId:ek().uuid().nullable(),tiers:eR(mZ),version:eS().int(),isBuiltin:eT(),metadata:eN(eE()).optional(),createdAt:ek().datetime(),updatedAt:ek().datetime()});var mY=eP({tierId:ek().uuid(),tierName:ek(),tierType:m$,amount:ek(),percentage:ek()}),mX=eP({investorId:ek().uuid(),investorName:ek(),totalAmount:ek(),returnOfCapital:ek(),preferredReturn:ek(),residual:ek(),carriedInterest:ek(),withholdingTax:ek()}),mJ=eP({tiers:eR(mY),investorAllocations:eR(mX),summary:eP({grossAmount:ek(),netAmount:ek(),totalAllocated:ek(),unallocated:ek()})});eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),offeringId:ek().uuid(),templateId:ek().uuid(),distributionType:mV,status:mW,grossAmount:ek(),expensesDeducted:ek(),netAmount:ek(),distributionDate:ek().datetime(),approvedAt:ek().datetime().nullable(),approvedBy:ek().uuid().nullable(),distributedAt:ek().datetime().nullable(),reversedAt:ek().datetime().nullable(),reversalReason:ek().nullable(),calculation:mJ.nullable(),metadata:eN(eE()).optional(),createdAt:ek().datetime(),updatedAt:ek().datetime()});var mQ=eF(["stock_split","reverse_split","reclassification","merger","spinoff","dividend_in_kind","re
1capitalization","tender_offer"]),m0=eF(["draft","approved","executing","completed","canceled","failed"]);eF(["manual","round_close","grant","exercise","corporate_action","conversion","distribution"]),eP({offeringId:ek().uuid(),actionType:mQ,description:ek().optional(),ratioNumerator:eS().int().min(1),ratioDenominator:eS().int().min(1),effectiveDate:ek().datetime(),recordDate:ek().datetime().optional(),affectedShareClasses:eR(ek()).optional(),metadata:eN(eE()).optional().default({})}).partial(),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),offeringId:ek().uuid(),actionType:mQ,description:ek().nullable(),ratioNumerator:eS().int(),ratioDenominator:eS().int(),effectiveDate:ek().datetime(),recordDate:ek().datetime().nullable(),paymentDate:ek().datetime().nullable(),status:m0,preActionSnapshotId:ek().uuid().nullable(),postActionSnapshotId:ek().uuid().nullable(),affectedShareClasses:eR(ek()),affectedHolderCount:eS().int(),approvedBy:ek().uuid().nullable(),approvalDate:ek().datetime().nullable(),regulatoryFilingRef:ek().nullable(),executionLog:eR(eN(eE())),createdAt:ek().datetime(),updatedAt:ek().datetime()}).extend({impactSummary:eP({holdersAffected:eS(),sharesBeforeTotal:ek(),sharesAfterTotal:ek(),changesPreview:eR(eP({holderId:ek().uuid(),holderName:ek(),sharesBefore:ek(),sharesAfter:ek(),changeAmount:ek()}))})});var m1=eF(["safe","convertible_note"]),m2=eF(["qualified_financing","maturity","change_of_control","voluntary"]),m5=eF(["pending","previewed","executed","reversed"]);eP({offeringId:ek().uuid(),roundId:ek().uuid(),instrumentIds:eR(ek().uuid()).min(1),valuationCap:ek().optional(),discountRate:ek().optional()}),eP({offeringId:ek().uuid(),roundId:ek().uuid(),instrumentIds:eR(ek().uuid()).min(1)}),eR(eP({instrumentId:ek().uuid(),instrumentType:m1,principalAmount:ek(),accruedInterest:ek(),conversionPrice:ek(),sharesIssued:ek(),dilutionPercentage:ek()})),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),offeringId:ek().uuid(),roundId:ek().uuid().nullable(),instrumentId:ek().uuid(),instrumentType:m1,conversionTrigger:m2,principalAmount:ek(),accruedInterest:ek(),valuationCap:ek().nullable(),discountRate:ek().nullable(),mfnApplied:eT(),conversionPrice:ek(),sharesIssued:ek(),shareClassId:ek().uuid().nullable(),preConversionCapTable:eN(eE()),postConversionCapTable:eN(eE()),status:m5,executedAt:ek().nullable(),executedBy:ek().uuid().nullable(),createdAt:ek(),updatedAt:ek()});var m3=eF(["conservative","moderate","aggressive","speculative"]),m4=eF(["n
1one","limited","moderate","extensive"]),m9=eF(["short_term","medium_term","long_term"]),m6=eF(["reg_cf","reg_a_tier1","reg_a_tier2","reg_d_506b","reg_d_506c"]);eP({investorId:ek().uuid(),riskTolerance:m3,investmentExperience:m4,annualIncome:ek().optional(),netWorth:ek().optional(),liquidNetWorth:ek().optional(),investmentObjectives:eR(ek()),investmentHorizon:m9,concentrationLimit:ek().optional(),metadata:eN(eE()).default({})}).omit({investorId:!0}).partial(),eP({investorId:ek().uuid(),offeringId:ek().uuid(),amount:ek()}),eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),investorId:ek().uuid(),riskTolerance:m3,investmentExperience:m4,annualIncome:ek().nullable(),netWorth:ek().nullable(),liquidNetWorth:ek().nullable(),investmentObjectives:eR(ek()),investmentHorizon:m9,concentrationLimit:ek().nullable(),completedAt:ek().nullable(),expiresAt:ek().nullable(),createdAt:ek(),updatedAt:ek()}),eP({allowed:eT(),violations:eR(ek()),warnings:eR(ek()),checks:eP({regCfLimit:eP({passed:eT(),aggregate:ek(),limit:ek()}),accreditation:eP({passed:eT(),status:ek()}),suitability:eP({passed:eT(),score:eS(),recommendation:ek()}),coolingOff:eP({passed:eT(),hoursRemaining:eS()})})}),eP({regulationType:m6,aggregateInvested:ek(),maxAllowed:ek(),remainingCapacity:ek(),periodStart:ek(),periodEnd:ek(),offeringCount:eS()});var m8=eF(["member_investor","analyst","founder_rep","expert_moderator","sponsor_educator","compliance_ops","trust_safety","admin"]),m7=eF(["pending","active","suspended","banned"]),fe=eF(["draft","active","archived","closed"]),ft=eF(["public","members_only","invite_only"]),fi=eF(["open","closed","pinned","archived"]),fa=eF(["visible","hidden","removed","flagged"]),fn=eF(["draft","in_review","published","archived"]),fr=eF(["todo","in_progress","done","blocked"]),fo=eF(["flag","warn","hide","remove","ban","escalate","dismiss"]),fl=eF(["investment_advice","unauthorized_promotion","anti_touting_violation","impersonation","harassment","spam","misleading","off_topic","other"]),fs=eF(["issuer_affiliation","compensation","material_interest","sponsored_content"]),fd=eF(["new","basic","member","regular","leader"]);eP({id:ek().uuid(),accountId:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),role:m8,status:m7,displayName:ek(),bio:ek().nullable(),avatarUrl:ek().nullable(),linkedinUrl:ek().nullable(),verifiedIdentity:eT(),verifiedAccredited:eT(),reputationScore:eS().int(),trustLevel:fd,badges:eR(ek()).default([]),expertise:eR(ek()).default([]),postCount:eS().int(),memoCount:eS().int(),helpfulVotes:eS().int(),lastActiveAt:ek().or(eC()).nullable(),joinedAt:ek().or(eC()),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),createdByMemberId:ek().uuid(),slug:ek(),title:ek(),description:ek().nullable(),coverImageUrl:ek().nullable(),offeringId:ek().uuid().nullable(),companyName:ek().nullable(),status:fe,access:ft,tags:eR(ek()).default([]),memberCount:eS().int(),threadCount:eS().int(),documentCount:eS().int(),isPinned:eT(),rules:ek().nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),roomId:ek().uuid(),authorMemberId:ek().uuid(),title:ek(),status:fi,isPinned:eT(),isLocked:eT(),tags:eR(ek()).default([]),postCount:eS().int(),lastPostAt:ek().or(eC()).nullable(),viewCount:eS().int(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),threadId:ek().uuid(),authorMemberId:ek().uuid(),parentPostId:ek().uuid().nullable(),content:ek(),contentHtml:ek().nullable(),status:fa,reactions:eN(eS()).default({}),mentions:eR(ek()).default([]),attachments:eR(eP({name:ek(),url:ek(),type:ek()})).default([]),editedAt:ek().or(eC()).nullable(),aiModeratedAt:ek().or(eC()).nullable(),aiModerationResult:eP({safe:eT(),flags:eR(ek()),confidence:eS()}).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),roomId:ek().uuid(),authorMemberId:ek().uuid(),title:ek(),summary:ek().nullable(),content:ek(),contentHtml:ek().nullable(),framework:ek().nullable(),status:fn,tags:eR(ek()).default([]),riskFactors:eR(ek()).default([]),openQuestions:eR(ek()).default([]),sources:eR(eP({title:ek(),url:ek().optional(),type:ek()})).default([]),aiAssisted:eT(),version:eS().int(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),roomId:ek().uuid(),memoId:ek().uuid().nullable(),assigneeMemberId:ek().uuid().nullable(),createdByMemberId:ek().uuid(),title:ek(),description:ek().nullable(),status:fr,priority:ek(),dueDate:ek().or(eC()).nullable(),completedAt:ek().or(eC()).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),roomId:ek().uuid(),uploadedByMemberId:ek().uuid(),title:ek(),description:ek().nullable(),fileName:ek(),fileUrl:ek(),fileSize:eS().int().nullable(),mimeType:ek().nullable(),sourceAttribution:ek().nullable(),sourceUrl:ek().nullable(),category:ek().nullable(),tags:eR(ek()).default([]),downloadCount:eS().int(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),term:ek(),slug:ek(),definition:ek(),explanation:ek(),exampleContext:ek().nullable(),relatedCourseId:ek().uuid().nullable(),relatedTerms:eR(ek()).default([]),category:ek(),difficulty:ek(),viewCount:eS().int(),helpfulCount:eS().int(),aiGenerated:eT(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({displayName:ek().min(1).max(200),bio:ek().max(2e3).optional(),avatarUrl:ek().url().optional(),linkedinUrl:ek().url().optional(),expertise:eR(ek().min(1).max(100)).max(20).default([]),role:m8.optional().default("member_investor"),metadata:eN(eE()).default({})}),eP({displayName:ek().min(1).max(200).optional(),bio:ek().max(2e3).nullable().optional(),avatarUrl:ek().url().nullable().optional(),linkedinUrl:ek().url().nullable().optional(),expertise:eR(ek().min(1).max(100)).max(20).optional(),role:m8.optional(),status:m7.optional(),metadata:eN(eE()).optional()}),eP({slug:ek().min(1).max(200).regex(/^[a-z0-9-]+$/),title:ek().min(1).max(300),description:ek().max(5e3).optional(),coverImageUrl:ek().url().optional(),offeringId:ek().uuid().optional(),companyName:ek().max(200).optional(),access:ft.default("members_only"),tags:eR(ek().min(1).max(100)).max(20).default([]),rules:ek().max(5e3).optional(),metadata:eN(eE()).default({})}),eP({title:ek().min(1).max(300).optional(),description:ek().max(5e3).nullable().optional(),coverImageUrl:ek().url().nullable().optional(),companyName:ek().max(200).nullable().optional(),status:fe.optional(),access:ft.optional(),tags:eR(ek().min(1).max(100)).max(20).optional(),rules:ek().max(5e3).nullable().optional(),isPinned:eT().optional(),metadata:eN(eE()).optional()}),eP({roomId:ek().uuid(),title:ek().min(1).max(500),tags:eR(ek().min(1).max(100)).max(10).default([]),metadata:eN(eE()).default({})}),eP({threadId:ek().uuid(),parentPostId:ek().uuid().optional(),content:ek().min(1).max(1e4),mentions:eR(ek().uuid()).default([]),attachments:eR(eP({name:ek().min(1).max(200),url:ek().url(),type:ek().min(1).max(100)})).max(10).default([]),metadata:eN(eE()).default({})}),eP({content:ek().min(1).max(1e4).optional(),status:fa.optional(),metadata:eN(eE()).optional()}),eP({roomId:ek().uuid(),title:ek().min(1).max(500),summary:ek().max(2e3).optional(),content:ek().min(1),framework:ek().max(200).optional(),tags:eR(ek().min(1).max(100)).max(20).default([]),riskFactors:eR(ek().min(1).max(500)).max(50).default([]),openQuestions:eR(ek().min(1).max(500)).max(50).default([]),sources:eR(eP({title:ek().min(1).max(300),url:ek().url().optional(),type:ek().min(1).max(100)})).max(50).default([]),aiAssisted:eT().default(!1),metadata:eN(eE()).default({})}),eP({title:ek().min(1).max(500).optional(),summary:ek().max(2e3).nullable().optional(),content:ek().min(1).optional(),framework:ek().max(200).nullable().optional(),status:fn.optional(),tags:eR(ek().min(1).max(100)).max(20).optional(),riskFactors:eR(ek().min(1).max(500)).max(50).optional(),openQuestions:eR(ek().min(1).max(500)).max(50).optional(),sources:eR(eP({title:ek().min(1).max(300),url:ek().url().optional(),type:ek().min(1).max(100)})).max(50).optional(),metadata:eN(eE()).optional()}),eP({roomId:ek().uuid(),memoId:ek().uuid().optional(),assigneeMemberId:ek().uuid().optional(),title:ek().min(1).max(500),description:ek().max(2e3).optional(),priority:eF(["low","medium","high","urgent"]).default("medium"),dueDate:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({assigneeMemberId:ek().uuid().nullable().optional(),title:ek().min(1).max(500).optional(),description:ek().max(2e3).nullable().optional(),status:fr.optional(),priority:eF(["low","medium","high","urgent"]).optional(),dueDate:ek().datetime().nullable().optional(),metadata:eN(eE()).optional()}),eP({roomId:ek().uuid(),title:ek().min(1).max(300),description:ek().max(2e3).optional(),fileName:ek().min(1).max(500),fileUrl:ek().url(),fileSize:eS().int().positive().optional(),mimeType:ek().max(200).optional(),sourceAttribution:ek().max(300).optional(),sourceUrl:ek().url().optional(),category:ek().max(100).optional(),tags:eR(ek().min(1).max(100)).max(20).default([]),metadata:eN(eE()).default({})}),eP({memberId:ek().uuid(),roomId:ek().uuid().optional(),disclosureType:fs,entityName:ek().min(1).max(300),relationship:ek().min(1).max(500),compensationDetail
1s:ek().max(1e3).optional(),expiresAt:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({postId:ek().uuid().optional(),threadId:ek().uuid().optional(),memoId:ek().uuid().optional(),reason:fl,details:ek().max(2e3).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),role:m8.optional(),status:m7.optional(),trustLevel:fd.optional(),verifiedAccredited:eB.boolean().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),status:fe.optional(),access:ft.optional(),offeringId:ek().uuid().optional(),tag:ek().optional(),isPinned:eB.boolean().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),roomId:ek().uuid().optional(),search:ek().optional(),status:fi.optional(),isPinned:eB.boolean().optional(),tag:ek().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(50),threadId:ek().uuid().optional(),authorMemberId:ek().uuid().optional(),status:fa.optional(),parentPostId:ek().uuid().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),action:fo.optional(),flagReason:fl.optional(),resolved:eB.boolean().optional(),aiTriggered:eB.boolean().optional(),targetMemberId:ek().uuid().optional(),since:ek().datetime().optional()}),eP({safe:eT(),flags:eR(ek()),confidence:eS().min(0).max(1),violationTypes:eR(ek()).default([]),suggestedAction:fo.optional(),explanation:ek().optional()}),eP({term:ek().min(1).max(200),context:ek().max(1e3).optional(),audienceType:ek().optional()}),eP({term:ek(),definition:ek(),explanation:ek(),exampleContext:ek().nullable(),relatedTerms:eR(ek()),difficulty:ek(),aiGenerated:eT()}),eP({memoId:ek().uuid().optional(),roomId:ek().uuid(),prompt:ek().min(1).max(5e3),framework:ek().optional(),existingContent:ek().max(5e4).optional()}),eP({suggestions:ek(),riskFactors:eR(ek()),openQuestions:eR(ek()),summary:ek().optional(),confidence:eS().min(0).max(1).optional()}),eP({riskLevel:eF(["low","medium","high","critical"]),highlights:eR(eP({category:ek(),description:ek(),severity:eF(["low","medium","high"])})),overallSummary:ek(),confidence:eS().min(0).max(1)});var fu=eF(["draft","published","archived"]);eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),tenantId:ek().uuid(),title:ek(),slug:ek(),description:ek().nullable(),actorTypes:eR(ek()),difficulty:ek(),estimatedHours:eS().int().nullable(),coverImageUrl:ek().nullable(),status:fu,sortOrder:eS().int(),enrollmentCount:eS().int(),completionCount:eS().int(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({title:ek().min(1).max(300),slug:ek().min(1).max(200).regex(/^[a-z0-9-]+$/),description:ek().max(5e3).optional(),actorTypes:eR(ek().min(1).max(100)).min(1),difficulty:eF(["beginner","intermediate","advanced","expert"]).default("beginner"),estimatedHours:eS().int().positive().optional(),coverImageUrl:ek().url().optional(),status:fu.default("draft"),sortOrder:eS().int().min(0).default(0),metadata:eN(eE()).default({})}),eP({title:ek().min(1).max(300).optional(),description:ek().max(5e3).nullable().optional(),actorTypes:eR(ek().min(1).max(100)).min(1).optional(),difficulty:eF(["beginner","intermediate","advanced","expert"]).optional(),estimatedHours:eS().int().positive().nullable().optional(),coverImageUrl:ek().url().nullable().optional(),status:fu.optional(),sortOrder:eS().int().min(0).optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),status:fu.optional(),actorType:ek().optional(),difficulty:eF(["beginner","intermediate","advanced","expert"]).optional()}),eP({learningPathId:ek().uuid(),courseId:ek().uuid(),sortOrder:eS().int().min(0).default(0),isRequired:eT().default(!0),metadata:eN(eE()).default({})}),eP({id:ek().uuid(),learningPathId:ek().uuid(),courseId:ek().uuid(),sortOrder:eS().int(),isRequired:eT(),metadata:eN(eE()).default({}),createdAt:ek().or(eC())}),eP({id:ek().uuid(),marketplaceTenantId:ek().uuid(),name:ek(),slug:ek(),description:ek().nullable(),category:ek(),actorTypes:eR(ek()).default([]),maxLevel:eS().int(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({name:ek().min(1).max(200),slug:ek().min(1).max(200).regex(/^[a-z0-9-]+$/),description:ek().max(2e3).optional(),category:ek().min(1).max(100),actorTypes:eR(ek().min(1).max(100)).default([]),maxLevel:eS().int().min(1).max(10).default(5),metadata:eN(eE()).default({})}),eP({name:ek().min(1).max(200).optional(),description:ek().max(2e3).nullable().optional(),category:ek().min(1).max(100).optional(),actorTypes:eR(ek().min(1).max(100)).optional(),maxLevel:eS().int().min(1).max(10).optional(),metadata:eN(eE()).optional()}),eP({id:ek().uuid(),accountId:ek().uuid(),competencyId:ek().uuid(),currentLevel:eS().int(),points:eS().int(),evidenceSources:eR(eP({type:ek(),id:ek(),date:ek()})).default([]),lastAssessedAt:ek().or(eC()).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({accountId:ek().uuid(),competencyId:ek().uuid(),points:eS().int().positive(),evidenceType:ek().min(1).max(100),evidenceId:ek().min(1).max(200)}),eP({id:ek().uuid(),courseId:ek().uuid(),prerequisiteCourseId:ek().uuid(),minCompletionPercent:eS().int().min(0).max(100),minQuizScore:eS().int().min(0).max(100).nullable(),createdAt:ek().or(eC())}),eP({courseId:ek().uuid(),prerequisiteCourseId:ek().uuid(),minCompletionPercent:eS().int().min(0).max(100).default(100),minQuizScore:eS().int().min(0).max(100).optional()}),eP({courseId:ek().uuid(),accountId:ek().uuid()}),eP({courseId:ek().uuid(),accountId:ek().uuid(),eligible:eT(),unmetPrerequisites:eR(eP({prerequisiteCourseId:ek().uuid(),prerequisiteCourseTitle:ek(),minCompletionPercent:eS().int(),currentCompletionPercent:eS().int(),minQuizScore:eS().int().nullable(),currentBestScore:eS().int().nullable()}))}),eP({id:ek().uuid(),accountId:ek().uuid(),courseId:ek().uuid(),enrollmentId:ek().uuid().nullable(),messages:eR(eP({role:eF(["user","assistant","system"]),content:ek(),timestamp:ek()})).default([]),messageCount:eS().int(),topicsDiscussed:eR(ek()).default([]),durationSeconds:eS().int(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({sessionId:ek().uuid().optional(),courseId:ek().uuid(),enrollmentId:ek().uuid().optional(),message:ek().min(1).max(5e3),lessonContext:ek().max(1e4).optional()}),eP({sessionId:ek().uuid(),reply:ek(),topicsIdentified:eR(ek()).default([]),relatedLessonIds:eR(ek().uuid()).default([]),followUpSuggestions:eR(ek()).default([])}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),courseId:ek().uuid().optional(),enrollmentId:ek().uuid().optional()}),eP({accountId:ek().uuid(),actorType:ek().min(1).max(100),marketplaceTenantId:ek().uuid()}),eP({accountId:ek().uuid(),actorType:ek(),recommendedPaths:eR(eP({learningPathId:ek().uuid(),title:ek(),estimatedHours:eS().int().nullable(),reason:ek()})),recommendedCourses:eR(eP({courseId:ek().uuid(),title:ek(),reason:ek()}))});var fc=eF(["university","accelerator","bootcamp","nonprofit","foundation","social_enterprise"]),fp=eF(["pending","active","suspended","archived"]),fm=eF(["draft","enrollment_open","in_progress","completed","archived"]),ff=eF(["degree","certificate","accelerator_cohort","fellowship","bootcamp","workshop","open_enrollment"]),fh=eF(["applied","accepted","enrolled","in_progress","completed","withdrawn","deferred"]),fg=eF(["pending","active","paused","completed","cancelled"]),fv=eF(["proposed","active","reporting","completed","cancelled"]),fy=eF(["draft","open","closed","awarded"]),fb=eF(["submitted","under_review","approved","rejected","waitlisted"]);eP({id:ek().uuid(),tenantId:ek().uuid(),marketplaceTenantId:ek().uuid(),adminAccountId:ek().uuid(),type:fc,status:fp,name:ek(),slug:ek(),description:ek().nullable(),mission:ek().nullable(),logoUrl:ek().nullable(),websiteUrl:ek().nullable(),accreditationBody:ek().nullable(),accreditationStatus:ek().nullable(),sdgGoals:eR(eS().int()).default([]),focusAreas:eR(ek()).default([]),location:ek().nullable(),country:ek().nullable(),studentCount:eS().int(),programCount:eS().int(),placementRate:eS().nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),institutionId:ek().uuid(),title:ek(),slug:ek(),description:ek().nullable(),type:ff,status:fm,durationWeeks:eS().int().nullable(),maxEnrollment:eS().int().nullable(),currentEnrollment:eS().int(),tuitionAmount:eS().int().nullable(),currency:ek().nullable(),scholarshipsAvailable:eT(),courseIds:eR(ek()).default([]),competencyIds:eR(ek()).default([]),sdgGoals:eR(eS().int()).default([]),applicationDeadline:ek().or(eC()).nullable(),startDate:ek().or(eC()).nullable(),endDate:ek().or(eC()).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),programId:ek().uuid(),name:ek(),slug:ek(),startDate:ek().or(eC()),endDate:ek().or(eC()).nullable(),maxSize:eS().int().nullable(),currentSize:eS().int(),status:fm,demoDayDate:ek().or(eC()).nullable(),demoDaySummitId:ek().uuid().nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),programId:ek().uuid(),cohortId:ek().uuid().nullable(),accountId:ek().uuid(),status:fh,role:ek(),applicationNotes:ek().nullable(),grantId:ek().uuid().nullable(),completionPercent:eS().int(),graduatedAt:ek().or(eC()).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),mentorAccountId:ek().uuid(),menteeAccountId:ek().uuid(),institutionId:ek().uuid().nullable(),programId:ek().uuid().nullable(),status:fg,goals:eR(ek()).default([]),focusAreas:eR(ek()).default([]),totalSessions:eS().int(),totalHours:eS(),mentorRating:eS().nullable(),menteeRating:eS().nullable(),startedAt:ek().or(eC()).nullable(),completedAt:ek().or(eC()).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),relationshipId:ek().uuid(),scheduledAt:ek().or(eC()),durationMinutes:eS().int(),topics:eR(ek()).default([]),notes:ek().nullable(),mentorFeedback:ek().nullable(),menteeFeedback:ek().nullable(),outcome:ek().nullable(),completed:eT(),completedAt:ek().or(eC()).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC())}),eP({id:ek().uuid(),institutionId:ek().uuid(),createdByAccountId:ek().uuid(),title:ek(),slug:ek(),description:ek().nullable(),status:fv,sdgGoals:eR(eS().int()).default([]),targetBeneficiaries:eS().int().nullable(),actualBeneficiaries:eS().int(),targetFunding:eS().int().nullable(),currentFunding:eS().int(),currency:ek().nullable(),offeringId:ek().uuid().nullable(),communityRoomId:ek().uuid().nullable(),location:ek().nullable(),country:ek().nullable(),startDate:ek().or(eC()).nullable(),endDate:ek().or(eC()).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),projectId:ek().uuid(),metricName:ek(),metricType:ek(),targetValue:eS().nullable(),currentValue:eS(),unit:ek(),sdgGoal:eS().int().nullable(),reportingPeriod:ek().nullable(),verifiedByAccountId:ek().uuid().nullable(),verifiedAt:ek().or(eC()).nullable(),evidence:eR(eP({type:ek(),url:ek(),description:ek()})).default([]),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),institutionId:ek().uuid(),title:ek(),description:ek().nullable(),amount:eS().int(),currency:ek().nullable(),status:fy,eligibilityCriteria:eR(ek()).default([]),requiredDocuments:eR(ek()).default([]),maxRecipients:eS().int(),awardedCount:eS().int(),applicationDeadline:ek().or(eC()).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),grantId:ek().uuid(),applicantAccountId:ek().uuid(),status:fb,essayResponse:ek().nullable(),documents:eR(eP({name:ek(),url:ek()})).default([]),reviewerAccountId:ek().uuid().nullable(),reviewerNotes:ek().nullable(),reviewedAt:ek().or(eC()).nullable(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({id:ek().uuid(),accountId:ek().uuid(),headline:ek().nullable(),bio:ek().nullable(),skills:eR(ek()).default([]),completedCourseIds:eR(ek()).default([]),certificateIds:eR(ek()).default([]),competencyLevels:eR(eP({competencyId:ek(),level:eS().int()})).default([]),projects:eR(eP({title:ek(),description:ek(),url:ek().optional(),tags:eR(ek())})).default([]),programIds:eR(ek()).default([]),talentProfileSynced:eT(),lastSyncedAt:ek().or(eC()).nullable(),isPublic:eT(),metadata:eN(eE()).default({}),createdAt:ek().or(eC()),updatedAt:ek().or(eC())}),eP({type:fc,name:ek().min(1).max(300),slug:ek().min(1).max(200).regex(/^[a-z0-9-]+$/),description:ek().max(5e3).optional(),mission:ek().max(2e3).optional(),logoUrl:ek().url().optional(),websiteUrl:ek().url().optional(),accreditationBody:ek().max(200).optional(),accreditationStatus:ek().max(100).optional(),sdgGoals:eR(eS().int().min(1).max(17)).max(17).default([]),focusAreas:eR(ek().min(1).max(100)).max(20).default([]),location:ek().max(300).optional(),country:ek().max(100).optional(),metadata:eN(eE()).default({})}),eP({name:ek().min(1).max(300).optional(),description:ek().max(5e3).nullable().optional(),mission:ek().max(2e3).nullable().optional(),logoUrl:ek().url().nullable().optional(),websiteUrl:ek().url().nullable().optional(),accreditationBody:ek().max(200).nullable().optional(),accreditationStatus:ek().max(100).nullable().optional(),sdgGoals:eR(eS().int().min(1).max(17)).max(17).optional(),focusAreas:eR(ek().min(1).max(100)).max(20).optional(),location:ek().max(300).nullable().optional(),country:ek().max(100).nullable().optional(),metadata:eN(eE()).optional()}),eP({institutionId:ek().uuid(),title:ek().min(1).max(300),slug:ek().min(1).max(200).regex(/^[a-z0-9-]+$/),description:ek().max(5e3).optional(),type:ff,durationWeeks:eS().int().positive().optional(),maxEnrollment:eS().int().positive().optional(),tuitionAmount:eS().int().min(0).optional(),currency:ek().max(10).default("USD"),scholarshipsAvailable:eT().default(!1),courseIds:eR(ek().uuid()).max(200).default([]),competencyIds:eR(ek().uuid()).max(50).default([]),sdgGoals:eR(eS().int().min(1).max(17)).max(17).default([]),applicationDeadline:ek().datetime().optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({title:ek().min(1).max(300).optional(),description:ek().max(5e3).nullable().optional(),durationWeeks:eS().int().positive().nullable().optional(),maxEnrollment:eS().int().positive().nullable().optional(),tuitionAmount:eS().int().min(0).nullable().optional(),currency:ek().max(10).optional(),scholarshipsAvailable:eT().optional(),courseIds:eR(ek().uuid()).max(200).optional(),competencyIds:eR(ek().uuid()).max(50).optional(),sdgGoals:eR(eS().int().min(1).max(17)).max(17).optional(),applicationDeadline:ek().datetime().nullable().optional(),startDate:ek().datetime().nullable().optional(),endDate:ek().datetime().nullable().optional(),status:fm.optional(),metadata:eN(eE()).optional()}),eP({programId:ek().uuid(),name:ek().min(1).max(300),slug:ek().min(1).max(200).regex(/^[a-z0-9-]+$/),startDate:ek().datetime(),endDate:ek().datetime().optional(),maxSize:eS().int().positive().optional(),demoDayDate:ek().datetime().optional(),demoDaySummitId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({name:ek().min(1).max(300).optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().nullable().optional(),maxSize:eS().int().positive().nullable().optional(),status:fm.optional(),demoDayDate:ek().datetime().nullable().optional(),demoDaySummitId:ek().uuid().nullable().optional(),metadata:eN(eE()).optional()}),eP({programId:ek().uuid(),cohortId:ek().uuid().optional(),accountId:ek().uuid(),role:ek().max(100).default("student"),applicationNotes:ek().max(5e3).optional(),grantId:ek().uuid().optional(),metadata:eN(eE()).default({})}),eP({cohortId:ek().uuid().nullable().optional(),status:fh.optional(),role:ek().max(100).optional(),applicationNotes:ek().max(5e3).nullable().optional(),grantId:ek().uuid().nullable().optional(),completionPercent:eS().int().min
1(0).max(100).optional(),metadata:eN(eE()).optional()}),eP({mentorAccountId:ek().uuid(),menteeAccountId:ek().uuid(),institutionId:ek().uuid().optional(),programId:ek().uuid().optional(),goals:eR(ek().min(1).max(500)).max(20).default([]),focusAreas:eR(ek().min(1).max(100)).max(20).default([]),metadata:eN(eE()).default({})}),eP({status:fg.optional(),goals:eR(ek().min(1).max(500)).max(20).optional(),focusAreas:eR(ek().min(1).max(100)).max(20).optional(),mentorRating:eS().min(1).max(5).nullable().optional(),menteeRating:eS().min(1).max(5).nullable().optional(),metadata:eN(eE()).optional()}),eP({relationshipId:ek().uuid(),scheduledAt:ek().datetime(),durationMinutes:eS().int().min(15).max(480).default(30),topics:eR(ek().min(1).max(200)).max(20).default([]),notes:ek().max(5e3).optional(),metadata:eN(eE()).default({})}),eP({scheduledAt:ek().datetime().optional(),durationMinutes:eS().int().min(15).max(480).optional(),topics:eR(ek().min(1).max(200)).max(20).optional(),notes:ek().max(5e3).nullable().optional(),mentorFeedback:ek().max(5e3).nullable().optional(),menteeFeedback:ek().max(5e3).nullable().optional(),outcome:ek().max(2e3).nullable().optional(),completed:eT().optional(),metadata:eN(eE()).optional()}),eP({institutionId:ek().uuid(),title:ek().min(1).max(300),slug:ek().min(1).max(200).regex(/^[a-z0-9-]+$/),description:ek().max(1e4).optional(),sdgGoals:eR(eS().int().min(1).max(17)).max(17).default([]),targetBeneficiaries:eS().int().positive().optional(),targetFunding:eS().int().min(0).optional(),currency:ek().max(10).default("USD"),offeringId:ek().uuid().optional(),communityRoomId:ek().uuid().optional(),location:ek().max(300).optional(),country:ek().max(100).optional(),startDate:ek().datetime().optional(),endDate:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({title:ek().min(1).max(300).optional(),description:ek().max(1e4).nullable().optional(),status:fv.optional(),sdgGoals:eR(eS().int().min(1).max(17)).max(17).optional(),targetBeneficiaries:eS().int().positive().nullable().optional(),actualBeneficiaries:eS().int().min(0).optional(),targetFunding:eS().int().min(0).nullable().optional(),currentFunding:eS().int().min(0).optional(),currency:ek().max(10).optional(),offeringId:ek().uuid().nullable().optional(),communityRoomId:ek().uuid().nullable().optional(),location:ek().max(300).nullable().optional(),country:ek().max(100).nullable().optional(),startDate:ek().datetime().nullable().optional(),endDate:ek().datetime().nullable().optional(),metadata:eN(eE()).optional()}),eP({projectId:ek().uuid(),metricName:ek().min(1).max(300),metricType:ek().min(1).max(100),targetValue:eS().optional(),unit:ek().min(1).max(100),sdgGoal:eS().int().min(1).max(17).optional(),reportingPeriod:ek().max(100).optional(),evidence:eR(eP({type:ek().min(1).max(100),url:ek().url(),description:ek().max(1e3)})).max(20).default([]),metadata:eN(eE()).default({})}),eP({metricName:ek().min(1).max(300).optional(),metricType:ek().min(1).max(100).optional(),targetValue:eS().nullable().optional(),currentValue:eS().optional(),unit:ek().min(1).max(100).optional(),sdgGoal:eS().int().min(1).max(17).nullable().optional(),reportingPeriod:ek().max(100).nullable().optional(),verifiedByAccountId:ek().uuid().nullable().optional(),evidence:eR(eP({type:ek().min(1).max(100),url:ek().url(),description:ek().max(1e3)})).max(20).optional(),metadata:eN(eE()).optional()}),eP({institutionId:ek().uuid(),title:ek().min(1).max(300),description:ek().max(5e3).optional(),amount:eS().int().positive(),currency:ek().max(10).default("USD"),eligibilityCriteria:eR(ek().min(1).max(500)).max(50).default([]),requiredDocuments:eR(ek().min(1).max(300)).max(20).default([]),maxRecipients:eS().int().positive().default(1),applicationDeadline:ek().datetime().optional(),metadata:eN(eE()).default({})}),eP({title:ek().min(1).max(300).optional(),description:ek().max(5e3).nullable().optional(),amount:eS().int().positive().optional(),currency:ek().max(10).optional(),status:fy.optional(),eligibilityCriteria:eR(ek().min(1).max(500)).max(50).optional(),requiredDocuments:eR(ek().min(1).max(300)).max(20).optional(),maxRecipients:eS().int().positive().optional(),applicationDeadline:ek().datetime().nullable().optional(),metadata:eN(eE()).optional()}),eP({grantId:ek().uuid(),essayResponse:ek().max(1e4).optional(),documents:eR(eP({name:ek().min(1).max(300),url:ek().url()})).max(20).default([]),metadata:eN(eE()).default({})}),eP({status:fb.optional(),essayResponse:ek().max(1e4).nullable().optional(),documents:eR(eP({name:ek().min(1).max(300),url:ek().url()})).max(20).optional(),reviewerAccountId:ek().uuid().nullable().optional(),reviewerNotes:ek().max(5e3).nullable().optional(),metadata:eN(eE()).optional()}),eP({headline:ek().max(300).nullable().optional(),bio:ek().max(5e3).nullable().optional(),skills:eR(ek().min(1).max(100)).max(100).optional(),projects:eR(eP({title:ek().min(1).max(300),description:ek().max(2e3),url:ek().url().optional(),tags:eR(ek().min(1).max(100)).max(20)})).max(50).optional(),isPublic:eT().optional(),metadata:eN(eE()).optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),type:fc.optional(),status:fp.optional(),country:ek().optional(),sdgGoal:eB.number().int().min(1).max(17).optional(),marketplaceTenantId:ek().uuid().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),institutionId:ek().uuid().optional(),type:ff.optional(),status:fm.optional(),sdgGoal:eB.number().int().min(1).max(17).optional(),scholarshipsAvailable:eB.boolean().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),institutionId:ek().uuid().optional(),programId:ek().uuid().optional(),mentorAccountId:ek().uuid().optional(),menteeAccountId:ek().uuid().optional(),status:fg.optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),institutionId:ek().uuid().optional(),status:fv.optional(),sdgGoal:eB.number().int().min(1).max(17).optional(),country:ek().optional(),offeringId:ek().uuid().optional()}),eP({page:eB.number().int().min(1).default(1),limit:eB.number().int().min(1).max(100).default(20),search:ek().optional(),institutionId:ek().uuid().optional(),status:fy.optional()});var f_=eF(["employee","fan","friend","community","open"]),fx=eF(["draft","active","paused","closed"]),fA=eF(["invite_only","apply","open_link"]),fI=eF(["employee","fan","friend","investor","community_member"]),fw=eF(["invited","pending","active","suspended","churned"]),fk=eF(["twitter","linkedin","whatsapp","email","sms","facebook","instagram","telegram","copy_link","qr_code","other"]),fS=eF(["shares","clicks","conversions","earnings","streak","rank"]),fT=eP({minAge:eS().int().min(0).optional(),geoRestrictions:eR(ek()).optional()}),fC=eP({text:ek(),hashtags:eR(ek()).optional()}),fE=eP({totalShares:eS().int().default(0),totalClicks:eS().int().default(0),totalConversions:eS().int().default(0),totalEarnings:eS().default(0)});eP({id:ek(),marketplaceTenantId:ek(),tenantId:ek(),offeringId:ek().nullable(),name:ek(),description:ek().nullable(),programType:f_,status:fx,joinMethod:fA,invite
1Code:ek().nullable(),defaultCommissionRate:eS().nullable(),rewardMultiplier:eS().default(1),maxAmbassadors:eS().nullable(),requirements:fT.default({}),mediaKitAssetIds:eR(ek()).default([]),socialShareTemplates:eN(fC).default({}),metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({id:ek(),programId:ek(),accountId:ek(),tenantId:ek(),marketplaceTenantId:ek(),ambassadorType:fI,status:fw,referralCode:ek(),affiliateProfileId:ek().nullable(),invitedByAccountId:ek().nullable(),invitedAt:ek().nullable(),approvedAt:ek().nullable(),rewardMultiplier:eS().default(1),stats:fE,metadata:eN(eE()).default({}),createdAt:ek(),updatedAt:ek()}),eP({id:ek(),enrollmentId:ek(),accountId:ek(),marketplaceTenantId:ek(),tenantId:ek(),offeringId:ek().nullable(),channel:fk,shortLinkId:ek().nullable(),shareMessage:ek(),metadata:eN(eE()).default({}),sharedAt:ek(),createdAt:ek()}),eP({id:ek(),enrollmentId:ek(),milestoneType:fS,milestoneValue:eS().int(),milestoneLabel:ek(),badgeIconUrl:ek().nullable(),rewardPoints:eS().int().default(0),achievedAt:ek(),createdAt:ek()}),eP({offeringId:ek().uuid().optional(),name:ek().min(1).max(200),description:ek().optional(),programType:f_,status:fx.optional().default("draft"),joinMethod:fA.optional().default("invite_only"),defaultCommissionRate:eS().min(0).max(1).optional(),rewardMultiplier:eS().min(0).optional().default(1),maxAmbassadors:eS().int().positive().optional(),requirements:fT.optional(),mediaKitAssetIds:eR(ek()).optional().default([]),socialShareTemplates:eN(fC).optional().default({}),metadata:eN(eE()).optional().default({})}),eP({name:ek().min(1).max(200).optional(),description:ek().optional(),programType:f_.optional(),status:fx.optional(),joinMethod:fA.optional(),defaultCommissionRate:eS().min(0).max(1).optional(),rewardMultiplier:eS().min(0).optional(),maxAmbassadors:eS().int().positive().nullable().optional(),requirements:fT.optional(),mediaKitAssetIds:eR(ek()).optional(),socialShareTemplates:eN(fC).optional(),metadata:eN(eE()).optional()}),eP({programId:ek().uuid(),accountId:ek().uuid(),ambassadorType:fI,affiliateProfileId:ek().uuid().optional(),invitedByAccountId:ek().uuid().optional(),rewardMultiplier:eS().min(0).optional().default(1),metadata:eN(eE()).optional().default({})}),eP({programId:ek().uuid(),invites:eR(eP({accountId:ek().uuid(),ambassadorType:fI,rewardMultiplier:eS().min(0).optional()})).min(1).max(500),invitedByAccountId:ek().uuid().optional()}),eP({enrollmentId:ek().uuid(),offeringId:ek().uuid().optional(),channel:fk,shortLinkId:ek().uuid().optional(),shareMessage:ek().default(""),metadata:eN(eE()).optional().default({})}),eP({tenantId:ek().optional(),marketplaceTenantId:ek().optional(),offeringId:ek().optional(),status:fx.optional(),programType:f_.optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({programId:ek().optional(),accountId:ek().optional(),tenantId:ek().optional(),marketplaceTenantId:ek().optional(),status:fw.optional(),ambassadorType:fI.optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(20)}),eP({enrollmentId:ek().optional(),accountId:ek().optional(),offeringId:ek().optional(),channel:fk.optional(),tenantId:ek().optional(),marketplaceTenantId:ek().optional(),fromDate:ek().optional(),toDate:ek().optional(),page:eB.number().int().positive().default(1),limit:eB.number().int().positive().max(100).default(50)});var fR=eF(["platform_issuer","tenant_issuer","agent_artifact","deployment","collaborator"]);eP({method:eF(["web","key"]),purpose:fR,tenantId:ek().uuid().optional(),controller:ek().optional()}),eP({did:ek().regex(/^did:(web|key):/)}),eP({"@context":eR(ek()),id:ek(),verificationMethod:eR(eP({id:ek(),type:ek(),controller:ek(),publicKeyMultibase:ek()})),authentication:eR(ek()),assertionMethod:eR(ek()).optional(),service:eR(eP({id:ek(),type:ek(),serviceEndpoint:ek()})).optional()}),eP({friendlyName:ek().max(128).optional()}),eP({response:eN(ek(),eE()),friendlyName:ek().max(128).optional()}),eP({response:eN(ek(),eE())}),eP({verified:eT(),credentialId:ek().optional()});var fP=eF(["session","a2a","mcp"]);eP({did:ek().regex(/^did:(web|key):/),purpose:fP.optional().default("session")}),eP({sessionToken:ek(),tokenType:eD("DPoP"),expiresIn:eS().int().positive()}),eP({sub:ek(),tenantId:ek().uuid().nullable(),purpose:fP,cnf:eP({jkt:ek()}),tokenUse:eD("session"),iss:ek(),iat:eS().int(),exp:eS().int()});var fO=eP({type:eD("Ed25519Signature2020"),created:ek(),verificationMethod:ek(),proofPurpose:eD("assertionMethod"),proofValue:ek()}),fM=eP({"@context":eR(ek()),id:ek(),type:eR(ek()),issuer:ek(),issuanceDate:ek(),expirationDate:ek().optional(),credentialSubject:eN(ek(),eE()),credentialStatus:eP({id:ek(),type:eD("RevocationList2020Status"),statusListIndex:eS().int().optional()}).optional(),proof:fO.optional()});eP({issuerDid:ek().regex(/^did:(web|key):/),subjectDid:ek().regex(/^did:(web|key):/),credentialType:ek().min(1).max(128),claims:eN(ek(),eE()).default({}),tenantId:ek().uuid().optional(),expiresInDays:eS().int().positive().optional()}),eP({credential:fM}),eP({valid:eT(),reason:ek().optional()}),eP({vcId:ek(),reason:ek().optional()});var fN=eF(["agent","deployment","tenant"]),fj=eF(["agent","capability","tenant"]);function fD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(null===e)return"null";if("number"==typeof e){if(!Number.isFinite(e))throw Error("Non-finite numbers are not allowed in JCS");return JSON.stringify(e)}if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return JSON.stringify(e);if(Array.isArray(e)){if(t.has(e))throw Error("Circular reference detected");t.add(e);let i=e.map(e=>void 0===e||"symbol"==typeof e?"null":fD(e,t));return t.delete(e),"[".concat(i.join(","),"]")}if("object"==typeof e){if(t.has(e))throw Error("Circular reference detected");t.add(e);let i=Object.keys(e).sort().filter(t=>void 0!==e[t]&&"symbol"!=typeof e[t]).map(i=>"".concat(JSON.stringify(i),":").concat(fD(e[i],t)));return t.delete(e),"{".concat(i.join(","),"}")}return"null"}function fF(e){return new TextEncoder().encode(fD(e))}function fL(e){let t=[0];for(let i of e){let e=i;for(let i=t.length-1;i>=0;i--)e+=t[i]<<8,t[i]=e%58,e=Math.floor(e/58);for(;e>0;)t.unshift(e%58),e=Math.floor(e/58)}let i="";for(let t of e){if(0!==t)break;
1i+="1"}return i+t.map(e=>"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"[e]).join("")}eF(["pending","approved","denied","revoked"]),eF(["allowed","denied","consent_required"]),eP({requesterId:ek(),resourceId:ek(),action:ek()}),eP({requesterType:fN,requesterId:ek(),requesterTenantId:ek().uuid().optional(),resourceType:fj,resourceId:ek(),action:ek(),grantingTenantId:ek().uuid(),scope:eN(ek(),eE()).optional(),expiresInDays:eS().int().positive().optional()}),eP({consentId:ek().uuid(),approve:eT(),decidedBy:ek()}),eP({consentId:ek().uuid(),reason:ek().optional()}),eP({tenantId:ek().uuid(),marketplaceTenantId:ek().uuid().optional(),appId:ek().min(1).max(128),displayName:ek().min(1).max(256),path:ek().min(1).max(1024),icon:ek().max(128).optional(),description:ek().max(2e3).optional(),appType:eF(["native","embedded","api_connector","ai_agent","webhook","widget","composite","artifact_agent","artifact_workflow","artifact_app","artifact_widget"]),sourceType:eF(["builtin","app_store"]),entrypointUrl:ek().url().max(2048).optional(),installId:ek().uuid().optional(),appSwitcherOrder:eS().int().min(0).max(999).default(99),showInAppSwitcher:eT().default(!0),allowedRoles:eR(ek()).optional(),allowedTiers:eR(ek()).optional(),allowedOrgTypes:eR(ek()).optional()}),eP({tenantId:ek().uuid(),appId:ek().min(1).max(128),installId:ek().uuid().optional()}),t9(fD,"jcs"),t9(fF,"canonicalManifestBytes"),t9(fL,"encodeBase58btc"),t9(function(e){let t=new Uint8Array(2+e.length);return t.set([237,1],0),t.set(e,2),"z"+fL(t)},"encodePublicKeyMultibase"),t9(function(e,t){let{signing:i,...a}=e;return fz(t(fF(a)))},"signManifestPayload");var fB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function fz(e){let t="";for(let i=0;i<e.length;i+=3){let a=e[i],n=i+1<e.length?e[i+1]:void 0,r=i+2<e.length?e[i+2]:void 0;t+=fB[a>>2],t+=fB[(3&a)<<4|(null!=n?n:0)>>4],t+=void 0===n?"=":fB[(15&n)<<2|(null!=r?r:0)>>6],t+=void 0===r?"=":fB[63&r]}return t}t9(fz,"encodeBase64");var fU=eF(["platform","marketplace","tenant"]),fq=eP({kind:eD("user"),token:ek().min(1)}).strict(),f$=eP({kind:eD("service"),serviceId:ek().min(1),tenantId:ek().uuid(),tier:fU,marketplaceTenantId:ek().uuid().optional(),signature:ek().min(1)}).strict(),fH=eM("kind",[fq,f$]),fV=eP({scope:eD("tenant"),principal:fH,tenantId:ek().uuid(),tier:fU,marketplaceTenantId:ek().uuid().optional(),correlationId:ek().min(1)}).strict(),fW=["config.flags.resolvePlatform"],fG=ek().refine(e=>fW.includes(e),{message:"globalOperation must be one of the committed GLOBAL_NATS_OPERATIONS enumeration (currently empty â see nats-envelope.ts)"});eM("scope",[fV,eP({scope:eD("global"),principal:f$,globalOperation:fG,correlationId:ek().min(1)}).strict()]);var fK=Object.defineProperty,fZ=(e,t)=>fK(e,"name",{value:t,configurable:!0}),fY=eP({key:ek().min(1),displayName:ek().min(1),requiredFields:eR(ek()),blocksProgression:eT()});eP({key:ix,displayName:ek().min(1),nats:eP({existsPattern:ek().regex(/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)*$/),existsQueueGroup:ek().optional()}),baseOnboarding:eP({entryPath:ek().startsWith("/"),steps:eR(fY),requiredVerifications:eR(iI)}),defaultRoles:eR(iu),defaultActivationStatus:id,metadata:eN(eE()).optional()});var fX=eP({fromActor:ix,toActor:ix,hookPoint:ek().min(1),description:ek()});eP({key:ek().regex(/^[a-z_]+_pack$/),displayName:ek().min(1),description:ek(),actors:eR(ix),interActorWiring:eR(fX).optional(),metadata:eN(eE()).optional()});var fJ=eF(["fundraising","real_estate","retail","reputation","art","other"]),fQ=eF(["all_must_pass","first_wins","aggregate","first_non_null"]),f0=eP({allowedTiers:eR(eF(["platform","marketplace","tenant"])),allowedOrgTypes:eR(ek()),allowedRoles:eR(ek()),requiredFeatures:eR(ek())}),f1=eP({id:ek().min(1),jurisdiction:ek().min(1),citation:ek().optional()}),f2=eP({policyKey:ek().optional(),inherit:eD(!0).optional()});eP({key:ek().regex(/^[a-z][a-z0-9_]+$/),displayName:ek().min(1),description:ek(),category:fJ,primaryActors:eR(ix),actorPacks:eR(ek()),platformApps:eR(ek()),verticalApps:eR(ek()),defaultApps:eR(ek()),recommendedApps:eR(ek()),accessPolicy:f0,regulatory:eR(f1),provisioningPolicy:f2,hooks:eN(fQ).default({}),schemaNamespace:ek().min(1),metadata:eN(eE()).optional()});var f5=eF(["actor","pack","marketplace"]),f3=eF(["platform","marketplace","tenant"]),f4=eF(["merge","jsonpatch"]);eP({id:ek().uuid(),templateKind:f5,templateKey:ek().min(1),scopeTier:f3,scopeTenantId:ek().uuid().nullable(),patch:eN(eE()),patchFormat:f4,priority:eS().int(),effectiveFrom:eB.date(),effectiveTo:eB.date().nullable(),version:eS().int().positive(),createdBy:ek().uuid().nullable(),createdAt:eB.date(),updatedAt:eB.date()}),eP({id:ek().uuid(),marketplaceTemplateKey:ek().min(1),marketplaceTenantId:ek().uuid(),enabled:eT(),enabledAt:eB.date(),enabledBy:ek().uuid().nullable(),notes:ek().nullable()}),fZ(function(e){let t={};for(let[i,a]of Object.entries(e))t[i]=a.nats.existsPattern;return t},"generateActorNatsPatterns");var f9={homebuyer:"homebuyer_portal",investor:"investor_portal",fea_agent:"fea_portal",advisor:"advisor_portal",bd_rep:"bd_portal"};function f6(e){let t={};for(let[i,a]of Object.entries(f9)){let n=e[i];n&&(t[a]=n.baseOnboarding.entryPath)}return t}function f8(e){return{appId:"eslice/actor-existence/".concat(e.actorKey),displayName:"".concat(e.displayName," Existence Check"),description:"Resolves whether the active account has a ".concat(e.displayName.toLowerCase()," relationship in this marketplace tenant. Wired to the existing @MessagePattern handler that owns the ").concat(e.actorKey," actor table."),iconName:"CheckCircle",url:"",allowedTiers:["marketplace","tenant"],allowedOrgTypes:[],allowedRoles:[],allowedActorType:e.actorKey,requiredFeatures:[],appSwitcherOrder:990,category:"operational",appKind:"integration",supportedVerticals:["*"],uninstallBehavior:"disconnect",supportedHookPoints:[{hookPoint:"access.policy_resolver",mode:"async",priority:100,failurePolicy:"log_and_continue",natsPattern:e.natsPattern,config:{actorKey:e.actorKey}}]}}fZ(f6,"generateActorOnboardingPaths"),fZ(function(e,t){let i=new Set(t.map(e=>e.appId)),a=new Set;for(let t of Object.values(e))for(let e of[...t.verticalApps,...t.platformApps,...t.defaultApps,...t.recommendedApps])a.add(e);let n=[...a].filter(e=>!i.has(e));if(n.length>0)throw Error("app_ids_referenced_but_missing_from_canonical: ".concat(n.sort().join(", ")));return[...t]},"generateAppRegistryDefaults"),fZ(function(e,t,i){var a;if(!e.portalNav)return;let n=null==i?void 0:i[e.appId],r=null==t||null==(a=t.portalNavOverrides)?void 0:a[e.appId],o=null!=n?n:r;return o?{...e.portalNav,navItems:o}:e.portalNav},"resolvePortalNav"),fZ(f8,"buildActorExistenceApp");var f7={investor:"Investor",advisor:"Advisor",creator:"Creator",fea_agent:"FEA Agent",homebuyer:"Homebuyer",bd_rep:"BD Representative",promoter:"Promoter",instructor:"Instructor",student:"Student",mentor:"Mentor",grant_applicant:"Grant Applicant",impact_lead:"Impact Lead",nonprofit_staff:"Nonprofit Staff",rera_broker:"RERA Broker"};[...Object.entries({investor:"ims.actor.exists.investor",advisor:"ims.actor.exists.advisor",creator:"ims.actor.exists.creator",fea_agent:"ims.actor.exists.fea_agent",homebuyer:"ims.actor.exists.homebuyer",bd_rep:"ims.actor.exists.bd_rep",promoter:"ims.actor.exists.promoter",instructor:"ims.actor.exists.instructor",student:"ims.actor.exists.student",mentor:"ims.actor.exists.mentor",grant_applicant:"ims.actor.exists.grant_applicant",impact_lead:"ims.actor.exists.impact_lead",nonprofit_staff:"ims.actor.exists.nonprofit_staff",rera_broker:"ims.actor.exists.rera_broker"}).map(e=>{let[t,i]=e;return f8({actorKey:t,displayName:f7[t],natsPattern:i})})];var he={roles:iw};fZ(function(){return he.roles},"getPlatformAdminRoles");var ht={displayName:ek().trim().min(1).max(120),recommendedApps:eR(ek().trim().min(1)).max(50)};fZ(function(e,t){let i=ht[e];if(!i)throw Error("Unknown field for editability matrix: ".concat(e));return i.parse(t)},"validateFieldValue");var hi=Object.defineProperty,ha=(e,t)=>hi(e,"name",{value:t,configurable:!0}),hn={investor:{key:"investor",displayName:"Investor",nats:{existsPattern:"ims.actor.exists.investor"},baseOnboarding:{entryPath:"/app/investor/onboarding",steps:[{key:"profile",displayName:"Investor Profile",requiredFields:["firstName","lastName","phone"],blocksProgression:!0},{key:"accreditation",displayName:"Accreditation",requiredFields:["accreditationStatus"],blocksProgression:!0}
1,{key:"funding_source",displayName:"Funding Source",requiredFields:["plaidAccountId"],blocksProgression:!1}],requiredVerifications:["kyc","accreditation_reg_cf"]},defaultRoles:["owner"],defaultActivationStatus:"active"},advisor:{key:"advisor",displayName:"Financial Advisor",nats:{existsPattern:"ims.actor.exists.advisor"},baseOnboarding:{entryPath:"/app/advisor/onboarding",steps:[{key:"profile",displayName:"Advisor Profile",requiredFields:["firstName","lastName","phone","firmName"],blocksProgression:!0},{key:"credentials",displayName:"Credentials",requiredFields:["finraRegistration","seriesRegistrations"],blocksProgression:!0}],requiredVerifications:["finra_registration","background_check"]},defaultRoles:["owner"],defaultActivationStatus:"active_pending_approval"},creator:{key:"creator",displayName:"Creator",nats:{existsPattern:"ims.actor.exists.creator"},baseOnboarding:{entryPath:"/app/creator/onboarding",steps:[{key:"profile",displayName:"Creator Profile",requiredFields:["displayName","handle","bio"],blocksProgression:!0},{key:"payout",displayName:"Payout Method",requiredFields:["payoutProvider","payoutAccountId"],blocksProgression:!1}],requiredVerifications:["kyc"]},defaultRoles:["owner"],defaultActivationStatus:"active"},fea_agent:{key:"fea_agent",displayName:"FEA Agent",nats:{existsPattern:"ims.actor.exists.fea_agent"},baseOnboarding:{entryPath:"/app/fea/onboarding",steps:[{key:"profile",displayName:"FEA Profile",requiredFields:["firstName","lastName","phone","firmName"],blocksProgression:!0},{key:"license_verification",displayName:"License Verification",requiredFields:["licenseNumber","licenseState"],blocksProgression:!0},{key:"insurance",displayName:"E&O Insurance",requiredFields:["policyNumber","carrier","expirationDate"],blocksProgression:!0}],requiredVerifications:["real_estate_license","e_o_insurance"]},defaultRoles:["owner"],defaultActivationStatus:"active_pending_verification"},homebuyer:{key:"homebuyer",displayName:"Homebuyer",nats:{existsPattern:"ims.actor.exists.homebuyer"},baseOnboarding:{entryPath:"/app/homebuyer/onboarding",steps:[{key:"application_form",displayName:"Application Form",requiredFields:["firstName","lastName","phone","dateOfBirth","ssn"],blocksProgression:!0},{key:"credit_income_verification",displayName:"Credit & Income Verification",requiredFields:["plaidLinkToken","creditAuthSignedAt"],blocksProgression:!0},{key:"program_acceptance",displayName:"Program Acceptance",requiredFields:["signedAgreement"],blocksProgression:!0}],requiredVerifications:["kyc","income_plaid","credit_check"]},defaultRoles:["owner"],defaultActivationStatus:"active"},bd_rep:{key:"bd_rep",displayName:"Broker-Dealer Rep",nats:{existsPattern:"ims.actor.exists.bd_rep"},baseOnboarding:{entryPath:"/app/bd-portal/onboarding",steps:[{key:"profile",displayName:"BD Profile",requiredFields:["firstName","lastName","phone","firmName"],blocksProgression:!0},{key:"credentials",displayName:"BD Credentials",requiredFields:["finraCrd","seriesRegistrations"],blocksProgression:!0},{key:"aml",displayName:"AML Training",requiredFields:["amlCertificate","trainingCompletedAt"],blocksProgression:!0}],requiredVerifications:["finra_registration","aml","background_check"]},defaultRoles:["owner"],defaultActivationStatus:"active_pending_approval"},promoter:{key:"promoter",displayName:"Promoter",nats:{existsPattern:"ims.actor.exists.promoter"},baseOnboarding:{entryPath:"/app/contributors/onboarding",steps:[{key:"profile",displayName:"Promoter Profile",requiredFields:["displayName","phone"],blocksProgression:!0},{key:"payout",displayName:"Commission Payout Method",requiredFields:["payoutProvider","payoutAccountId"],blocksProgression:!1}],requiredVerifications:["kyc"]},defaultRoles:["owner"],defaultActivationStatus:"active"},instructor:{key:"instructor",displayName:"Instructor",nats:{existsPattern:"ims.actor.exists.instructor"},baseOnboarding:{entryPath:"/app/institution/onboarding",steps:[{key:"profile",displayName:"Instructor Profile",requiredFields:["firstName","lastName","institution","subjectArea"],blocksProgression:!0},{key:"credentials",displayName:"Credentials",requiredFields:["credentialDocumentUrl"],blocksProgression:!0}],requiredVerifications:["instructor_credential","background_check"]},defaultRoles:["owner"],defaultActivationStatus:"active_pending_approval"},student:{key:"student",displayName:"Student",nats:{existsPattern:"ims.actor.exists.student"},baseOnboarding:{entryPath:"/app/institution/onboarding",steps:[{key:"profile",displayName:"Student Profile",requiredFields:["firstName","lastName","
1institution","programOfStudy"],blocksProgression:!0}],requiredVerifications:[]},defaultRoles:["owner"],defaultActivationStatus:"active"},mentor:{key:"mentor",displayName:"Mentor",nats:{existsPattern:"ims.actor.exists.mentor"},baseOnboarding:{entryPath:"/app/contributors/onboarding",steps:[{key:"profile",displayName:"Mentor Profile",requiredFields:["firstName","lastName","expertiseAreas","bio"],blocksProgression:!0},{key:"background_check",displayName:"Background Check",requiredFields:["backgroundCheckConsent"],blocksProgression:!0}],requiredVerifications:["background_check"]},defaultRoles:["owner"],defaultActivationStatus:"active_pending_verification"},grant_applicant:{key:"grant_applicant",displayName:"Grant Applicant",nats:{existsPattern:"ims.actor.exists.grant_applicant"},baseOnboarding:{entryPath:"/app/institution/onboarding",steps:[{key:"profile",displayName:"Applicant Profile",requiredFields:["firstName","lastName","organizationName","missionStatement"],blocksProgression:!0}],requiredVerifications:[]},defaultRoles:["owner"],defaultActivationStatus:"active"},impact_lead:{key:"impact_lead",displayName:"Impact Lead",nats:{existsPattern:"ims.actor.exists.impact_lead"},baseOnboarding:{entryPath:"/app/institution/onboarding",steps:[{key:"profile",displayName:"Impact Lead Profile",requiredFields:["firstName","lastName","organizationName","impactAreas"],blocksProgression:!0}],requiredVerifications:[]},defaultRoles:["owner"],defaultActivationStatus:"active"},nonprofit_staff:{key:"nonprofit_staff",displayName:"Nonprofit Staff",nats:{existsPattern:"ims.actor.exists.nonprofit_staff"},baseOnboarding:{entryPath:"/app/institution/onboarding",steps:[{key:"profile",displayName:"Staff Profile",requiredFields:["firstName","lastName","organizationName","role"],blocksProgression:!0},{key:"nonprofit_verification",displayName:"Nonprofit Verification",requiredFields:["ein","501c3DocumentUrl"],blocksProgression:!0}],requiredVerifications:["nonprofit_501c3"]},defaultRoles:["owner"],defaultActivationStatus:"active_pending_verification"},rera_broker:{key:"rera_broker",displayName:"RERA Broker",nats:{existsPattern:"ims.actor.exists.rera_broker"},baseOnboarding:{entryPath:"/app/rera-broker/onboarding",steps:[{key:"profile",displayName:"RERA Broker Profile",requiredFields:["firstName","lastName","phone","firmName"],blocksProgression:!0},{key:"rera_license",displayName:"RERA License",requiredFields:["reraRegistrationNumber","state"],blocksProgression:!0}],requiredVerifications:["rera_license"]},defaultRoles:["owner"],defaultActivationStatus:"active_pending_verification"}};ha(function(e){let t=hn[e];if(!t)throw Error("actor_template_not_registered: ".concat(e));return t},"getActorTemplate"),ha(function(){return Object.values(hn)},"listActorTemplates"),i(3727);let hr=(0,o.createContext)(null);f6(hn);var ho=i(5698),hl=Object.defineProperty,hs=(e,t)=>hl(e,"name",{value:t,configurable:!0});function hd(e){if(e.response){let t=e.response.data;return{statusCode:e.response.status,message:(null==t?void 0:t.message)||e.message,error:(null==t?void 0:t.error)||e.response.statusText,details:t,isNetworkError:!1}}return{statusCode:0,message:e.message||"Network error",error:"NETWORK_ERROR",isNetworkError:!0}}hs(function(e){let{baseURL:t,getToken:i,tenantId:a,getTenantId:n,timeout:r=3e4,maxRetries:o=2}=e,l=ho.A.create({baseURL:t,timeout:r,headers:{"Content-Type":"application/json"}});return i&&l.interceptors.request.use(async e=>{let t=await i();return t&&(e.headers.Authorization="Bearer ".concat(t)),e}),(n||a)&&l.interceptors.request.use(e=>{let t=n?n():a;return t&&(e.headers["X-Tenant-Id"]=t),e}),l.interceptors.response.use(e=>e,async e=>{var t;let i=e.config;if(!i)return Promise.reject(hd(e));let a=i._retryCount||0,n=null==(t=e.response)?void 0:t.status;if((!n||n>=500&&n<600)&&a<o){i._retryCount=a+1;let e=500*Math.pow(2,a);return await new Promise(t=>setTimeout(t,e)),l(i)}return Promise.reject(hd(e))}),l},"createApiClient"),hs(hd,"normalizeError");let hu=o.createContext(null);function hc(){return o.useContext(hu)}let hp="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",hm=function(e){let{children:t,theme:i}=e,a=hc(),n=o.useMemo(()=>{var e,t;let n=null===a?{...i}:(e=a,"function"==typeof(t=i)?t(e):{...e,...t});return null!=n&&(n[hp]=null!==a),n},[i,a]);return(0,r.jsx)(hu.Provider,{value:n,children:t})};var hf=i(5012),hh=i(576),hg=i(9695),hv=i(3890),hy=i(9254),hb=i(8682),h_=i(6496);let hx={};function hA(e,t,i,a=!1){return o.useMemo(()=>{let n=e&&t[e]||t;if("function"==typeof i){let r=i(n),o=e?{...t,[e]:r}:r;return a?()=>o:o}return e?{...t,[e]:i}:{...t,...i}},[e,t,i,a])}let hI=function(e){let{children:t,theme:i,themeId:a}=e,n=(0,hh.A)(hx),o=hc()||hx,l=hA(a,n,i),s=hA(a,o,i,!0),d="rtl"===(a?l[a]:l).direction,u=function(e){let t=(0,hh.A)(),i=(0,hb.A)()||"",{modularCssLayers:a}=e,n="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return(n=a&&null===t?"string"==typeof a?a.replace(/mui(?!\.)/g,n):`@layer ${n};`:"",(0,hy.A)(()=>{let e=document.querySelector("head");if(!e)return;let t=e.firstChild;if(n){if(t&&t.hasAttribute?.("data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===i)return;let a=document.createElement("style");a.setAttribute("data-mui-layer-order",i),a.textContent=n,e.prepend(a)}else e.querySelector(`style[data-mui-layer-order="${i}"]`)?.remove()},[n,i]),n)?(0,r.jsx)(h_.A,{styles:n}):null}(l);return(0,r.jsx)(hm,{theme:s,children:(0,r.jsx)(hf.T.Provider,{value:l,children:(0,r.jsx)(hg.A,{value:d,children:(0,r.jsxs)(hv.A,{value:a?l[a].components:l.components,children:[u,t]}
1)})})})};var hw=i(1965);function hk(e){let{theme:t,...i}=e,a=hw.A in t?t[hw.A]:void 0;return(0,r.jsx)(hI,{...i,themeId:a?hw.A:void 0,theme:a||t})}var hS=i(5044),hT=i(9680);let hC="mode",hE="color-scheme";function hR(){}let hP=({key:e,storageWindow:t})=>(t||"undefined"==typeof window||(t=window),{get(i){let a;if("undefined"!=typeof window){if(!t)return i;try{a=t.localStorage.getItem(e)}catch{}return a||i}},set:i=>{if(t)try{t.localStorage.setItem(e,i)}catch{}},subscribe:i=>{if(!t)return hR;let a=t=>{let a=t.newValue;t.key===e&&i(a)};return t.addEventListener("storage",a),()=>{t.removeEventListener("storage",a)}}});function hO(){}function hM(e){if("undefined"!=typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function hN(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}var hj=i(453),hD=i(7947);let hF={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:hL,useColorScheme:hB,getInitColorSchemeScript:hz}=function(e){let{themeId:t,theme:i={},modeStorageKey:a=hC,colorSchemeStorageKey:n=hE,disableTransitionOnChange:l=!1,defaultColorScheme:s,resolveTheme:d}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=o.createContext(void 0),p={},m={},f="string"==typeof s?s:s.light,h="string"==typeof s?s:s.dark;return{CssVarsProvider:function(e){let{children:u,theme:f,modeStorageKey:h=a,colorSchemeStorageKey:g=n,disableTransitionOnChange:v=l,storageManager:y,storageWindow:b="undefined"==typeof window?void 0:window,documentNode:_="undefined"==typeof document?void 0:document,colorSchemeNode:x="undefined"==typeof document?void 0:document.documentElement,disableNestedContext:A=!1,disableStyleSheetGeneration:I=!1,defaultMode:w="system",forceThemeRerender:k=!1,noSsr:S}=e,T=o.useRef(!1),C=hc(),E=o.useContext(c),R=!!E&&!A,P=o.useMemo(()=>f||("function"==typeof i?i():i),[f]),O=P[t],M=O||P,{colorSchemes:N=p,components:j=m,cssVarPrefix:D}=M,F=Object.keys(N).filter(e=>!!N[e]).join(","),L=o.useMemo(()=>F.split(","),[F]),B="string"==typeof s?s:s.light,z="string"==typeof s?s:s.dark,U=N[B]&&N[z]?w:N[M.defaultColorScheme]?.palette?.mode||M.palette?.mode,{mode:q,setMode:$,systemMode:H,lightColorScheme:V,darkColorScheme:W,colorScheme:G,setColorScheme:K}=function(e){let{defaultMode:t="light",defaultLightColorScheme:i,defaultDarkColorScheme:a,supportedColorSchemes:n=[],modeStorageKey:r=hC,colorSchemeStorageKey:l=hE,storageWindow:s="undefined"==typeof window?void 0:window,storageManager:d=hP,noSsr:u=!1}=e,c=n.join(","),p=n.length>1,m=o.useMemo(()=>d?.({key:r,storageWindow:s}),[d,r,s]),f=o.useMemo(()=>d?.({key:`${l}-light`,storageWindow:s}),[d,l,s]),h=o.useMemo(()=>d?.({key:`${l}-dark`,storageWindow:s}),[d,l,s]),[g,v]=o.useState(()=>{let e=m?.get(t)||t,n=f?.get(i)||i,r=h?.get(a)||a;return{mode:e,systemMode:hM(e),lightColorScheme:n,darkColorScheme:r}}),[y,b]=o.useState(u||!p);o.useEffect(()=>{b(!0)},[]);let _=hN(g,e=>"light"===e?g.lightColorScheme:"dark"===e?g.darkColorScheme:void 0),x=o.useCallback(e=>{v(i=>{if(e===i.mode)return i;let a=e??t;return m?.set(a),{...i,mode:a,systemMode:hM(a)}})},[m,t]),A=o.useCallback(e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):v(t=>{let i={...t};return hN(t,t=>{"light"===t&&(f?.set(e),i.lightColorScheme=e),"dark"===t&&(h?.set(e),i.darkColorScheme=e)}),i}):v(t=>{let n={...t},r=null===e.light?i:e.light,o=null===e.dark?a:e.dark;return r&&(c.includes(r)?(n.lightColorScheme=r,f?.set(r)):console.error(`\`${r}\` does not exist in \`theme.colorSchemes\`.`)),o&&(c.includes(o)?(n.darkColorScheme=o,h?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),n}):v(e=>(f?.set(i),h?.set(a),{...e,lightColorScheme:i,darkColorScheme:a}))},[c,f,h,i,a]),I=o.useCallback(e=>{"system"===g.mode&&v(t=>
1{let i=e?.matches?"dark":"light";return t.systemMode===i?t:{...t,systemMode:i}})},[g.mode]),w=o.useRef(I);return w.current=I,o.useEffect(()=>{if("function"!=typeof window.matchMedia||!p)return;let e=(...e)=>w.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[p]),o.useEffect(()=>{if(p){let e=m?.subscribe(e=>{(!e||["light","dark","system"].includes(e))&&x(e||t)})||hO,i=f?.subscribe(e=>{(!e||c.match(e))&&A({light:e})})||hO,a=h?.subscribe(e=>{(!e||c.match(e))&&A({dark:e})})||hO;return()=>{e(),i(),a()}}},[A,x,c,t,s,p,m,f,h]),{...g,mode:y?g.mode:void 0,systemMode:y?g.systemMode:void 0,colorScheme:y?_:void 0,setMode:x,setColorScheme:A}}({supportedColorSchemes:L,defaultLightColorScheme:B,defaultDarkColorScheme:z,modeStorageKey:h,colorSchemeStorageKey:g,defaultMode:U,storageManager:y,storageWindow:b,noSsr:S}),Z=q,Y=G;R&&(Z=E.mode,Y=E.colorScheme);let X=Y||M.defaultColorScheme;M.vars&&!k&&(X=M.defaultColorScheme);let J=o.useMemo(()=>{let e=M.generateThemeVars?.()||M.vars,t={...M,components:j,colorSchemes:N,cssVarPrefix:D,vars:e};if("function"==typeof t.generateSpacing&&(t.spacing=t.generateSpacing()),X){let e=N[X];e&&"object"==typeof e&&Object.keys(e).forEach(i=>{e[i]&&"object"==typeof e[i]?t[i]={...t[i],...e[i]}:t[i]=e[i]})}return d?d(t):t},[M,X,j,N,D]),Q=M.colorSchemeSelector;(0,hy.A)(()=>{if(Y&&x&&Q&&"media"!==Q){let e=Q;if("class"===Q&&(e=".%s"),"data"===Q&&(e="[data-%s]"),Q?.startsWith("data-")&&!Q.includes("%s")&&(e=`[${Q}="%s"]`),e.startsWith("."))x.classList.remove(...L.map(t=>e.substring(1).replace("%s",t))),x.classList.add(e.substring(1).replace("%s",Y));else{let t=e.replace("%s",Y).match(/\[([^\]]+)\]/);if(t){let[e,i]=t[1].split("=");i||L.forEach(t=>{x.removeAttribute(e.replace(Y,t))}),x.setAttribute(e,i?i.replace(/"|'/g,""):"")}else x.setAttribute(e,Y)}}},[Y,Q,x,L]),o.useEffect(()=>{let e;if(v&&T.current&&_){let t=_.createElement("style");t.appendChild(_.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),_.head.appendChild(t),window.getComputedStyle(_.body),e=setTimeout(()=>{_.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[Y,v,_]),o.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let ee=o.useMemo(()=>({allColorSchemes:L,colorScheme:Y,darkColorScheme:W,lightColorScheme:V,mode:Z,setColorScheme:K,setMode:$,systemMode:H}),[L,Y,W,V,Z,K,$,H,J.colorSchemeSelector]),et=!0;(I||!1===M.cssVariables||R&&C?.cssVarPrefix===D)&&(et=!1);let ei=(0,r.jsxs)(o.Fragment,{children:[(0,r.jsx)(hI,{themeId:O?t:void 0,theme:J,children:u}),et&&(0,r.jsx)(hT.A,{styles:J.generateStyleSheets?.()||[]})]});return R?ei:(0,r.jsx)(c.Provider,{value:ee,children:ei})},useColorScheme:()=>o.useContext(c)||u,getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="system",defaultLightColorScheme:i="light",defaultDarkColorScheme:a="dark",modeStorageKey:n=hC,colorSchemeStorageKey:o=hE,attribute:l="data-color-scheme",colorSchemeNode:s="document.documentElement",nonce:d}=e||{},u="",c=l;if("class"===l&&(c=".%s"),"data"===l&&(c="[data-%s]"),c.startsWith(".")){let e=c.substring(1);u+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark)); 2 ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let p=c.match(/\[([^[\]]+)\]/);if(p){let[e,t]=p[1].split("=");t||(u+=`${s}.removeAttribute('${e}'.replace('%s', light)); 3 ${s}.removeAttribute('${e}'.replace('%s', dark));`),u+=` 4 ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:'""'});`}else".%s"!==c&&(u+=`${s}.setAttribute('${c}', colorScheme);`);return(0,r.jsx)("script",{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:`(function() { 5try { 6 let colorScheme = ''; 7 const mode = localStorage.getItem('${n}') || '${t}'; 8 const dark = localStorage.getItem('${o}-dark') || '${a}'; 9 const light = localStorage.getItem('${o}-light') || '${i}'; 10 if (mode === 'system') { 11 // handle system mode 12 const mql = window.matchMedia('(prefers-color-scheme: dark)'); 13 if (mql.matches) { 14 colorScheme = dark 15 } else { 16 colorScheme = light 17 } 18 } 19 if (mode === 'light') { 20 colorScheme = light; 21 } 22 if (mode === 'dark') { 23 colorScheme = dark; 24 } 25 if (colorScheme) { 26 ${u} 27 } 28} catch(e){}})();`}},"mui-color-scheme-init")}
28)({colorSchemeStorageKey:n,defaultLightColorScheme:f,defaultDarkColorScheme:h,modeStorageKey:a,...e})}}({themeId:hw.A,theme:()=>(0,hj.A)({cssVariables:!0}),colorSchemeStorageKey:hF.colorSchemeStorageKey,modeStorageKey:hF.modeStorageKey,defaultColorScheme:{light:hF.defaultLightColorScheme,dark:hF.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:(0,hD.A)(e.palette,e.typography)};return t.unstable_sx=function(e){return(0,hS.A)({sx:e,theme:this})},t}});function hU(e){let{theme:t,...i}=e,a=o.useMemo(()=>{if("function"==typeof t)return t;let e=hw.A in t?t[hw.A]:t;return"colorSchemes"in e?null:"vars"in e?t:{...t,vars:null}},[t]);return a?(0,r.jsx)(hk,{theme:a,...i}):(0,r.jsx)(hL,{theme:t,...i})}var hq=i(564),h$=i(9644);let hH="function"==typeof(0,hq.Dp)({}),hV=function(e){var t,i;let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};a&&e.colorSchemes&&"function"==typeof e.getColorSchemeSelector&&Object.entries(e.colorSchemes).forEach(t=>{var i,a;let[r,o]=t,l=e.getColorSchemeSelector(r);l.startsWith("@")?n[l]={":root":{colorScheme:null==(i=o.palette)?void 0:i.mode}}:n[l.replace(/\s*&/,"")]={colorScheme:null==(a=o.palette)?void 0:a.mode}});let r={html:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...a&&!e.vars&&{colorScheme:e.palette.mode}},"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...{color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}},"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},o=null==(i=e.components)||null==(t=i.MuiCssBaseline)?void 0:t.styleOverrides;return o&&(r=[r,o]),r},hW="mui-ecs",hG=(0,hq.Dp)(hH?e=>{let{theme:t,enableColorScheme:i}=e;return hV(t,i)}:e=>{let{theme:t}=e;return(e=>{let t=hV(e,!1),i=Array.isArray(t)?t[0]:t;return!e.vars&&i&&(i.html[":root:has(".concat(hW,")")]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(t=>{var a,n;let[r,o]=t,l=e.getColorSchemeSelector(r);l.startsWith("@")?i[l]={[":root:not(:has(.".concat(hW,"))")]:{colorScheme:null==(a=o.palette)?void 0:a.mode}}:i[l.replace(/\s*&/,"")]={["&:not(:has(.".concat(hW,"))")]:{colorScheme:null==(n=o.palette)?void 0:n.mode}}}),t})(t)}),hK=function(e){let{children:t,enableColorScheme:i=!1}=(0,h$.b)({props:e,name:"MuiCssBaseline"});return(0,r.jsxs)(o.Fragment,{children:[hH&&(0,r.jsx)(hG,{enableColorScheme:i}),!hH&&!i&&(0,r.jsx)("span",{className:hW,style:{display:"none"}}),t]})},hZ={color:{teal:{50:"#f0faf8",100:"#d1f2ec",200:"#a3e5d9",300:"#6dd4c4",400:"#3bbfab",500:"#2A9D8F",600:"#228076",700:"#1a635c",800:"#134a44",900:"#0d332f",950:"#092420"},navy:{800:"#1D3344",900:"#264653",950:"#1A2F3D"},orange:{400:"#F4A261",500:"#E76F51",600:"#C45B3F"},gray:{0:"#ffffff",50:"#fafafa",100:"#f5f5f5",150:"#eeeeee",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",850:"#1e1e1e",900:"#171717",950:"#0a0a0a"},blue:{500:"#0065ff",600:"#0052d6"},green:{500:"#36b37e",600:"#2d9a6b"},amber:{500:"#fa4700",600:"#d63d00"},rose:{500:"#ff5630",600:"#e04527"}},radius:{none:"0px",xs:"2px",sm:"4px",md:"8px",lg:"12px",xl:"16px","2xl":"24px",full:"9999px"},shadow:{none:"none",xs:"0 1px 2px rgba(0,0,0,0.05)",sm:"0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06)",md:"0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06)",lg:"0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05)",xl:"0 20px 25px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.04)","2xl":"0 25px 50px rgba(0,0,0,0.25)"},shadowDark:{none:"none",xs:"0 1px 2px rgba(0,0,0,0.3)",sm:"0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3)",md:"0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3)",lg:"0 10px 15px rgba(0,0,0,0.5), 0 4px 6px rgba(0,0,0,0.3)",xl:"0 20px 25px rgba(0,0,0,0.5), 0 8px 10px rgba(0,0,0,0.3)","2xl":"0 25px 50px rgba(0,0,0,0.6)"},fontWeight:{light:300,regular:400,medium:500,semibold:600,bold:700},lineHeight:{tight:1.2,snug:1.35,normal:1.5,relaxed:1.625,loose:1.8},fontFamily:{sans:'"Lato", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif',mono:'"JetBrains Mono", "Fira Code", "SF Mono", monospace'},easing:{default:"cubic-bezier(0.4, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",easeOut:"cubic-bezier(0, 0, 0.2, 1)",spring:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"},zIndex:{base:0,dropdown:1e3,sticky:1100,overlay:1300,modal:1400,popover:1500,toast:1600,tooltip:1700}},hY={light:{surface:{primary:hZ.color.gray[0],secondary:hZ.color.gray[50],tertiary:hZ.color.gray[100],elevated:hZ.color.gray[0],inverse:hZ.color.gray[900],brand:hZ.color.navy[800]},onSurface:{primary:hZ.color.gray[900],secondary:hZ.color.gray[600],tertiary:hZ.color.gray[500],disabled:hZ.color.gray[400],inverse:hZ.color.gray[0],brand:hZ.color.gray[0]},primary:{default:hZ.color.teal[500],hover:hZ.color.teal[600],active:hZ.color.teal[700],disabled:hZ.color.teal[200],onPrimary:hZ.color.gray[0]},secondary:{default:hZ.color.gray[100],hover:hZ.color.gray[200],active:hZ.color.gray[300],disabled:hZ.color.gray[100],onSecondary:"#4A4C54"},border:{default:hZ.color.gray[200],strong:hZ.color.gray[300],focus:hZ.c
28olor.teal[500],error:hZ.color.rose[500]},status:{info:hZ.color.blue[500],success:hZ.color.green[500],warning:hZ.color.amber[500],error:hZ.color.rose[500],onInfo:hZ.color.gray[0],onSuccess:hZ.color.gray[0],onWarning:hZ.color.gray[0],onError:hZ.color.gray[0],infoBg:"#e6f0ff",successBg:"#e6f7ef",warningBg:"#fff3e0",errorBg:"#ffeae6"}},dark:{surface:{primary:hZ.color.gray[950],secondary:hZ.color.gray[900],tertiary:hZ.color.gray[850],elevated:hZ.color.gray[800],inverse:hZ.color.gray[100],brand:hZ.color.navy[950]},onSurface:{primary:hZ.color.gray[50],secondary:hZ.color.gray[300],tertiary:hZ.color.gray[500],disabled:hZ.color.gray[600],inverse:hZ.color.gray[900],brand:hZ.color.gray[50]},primary:{default:hZ.color.teal[400],hover:hZ.color.teal[300],active:hZ.color.teal[500],disabled:hZ.color.teal[800],onPrimary:hZ.color.gray[0]},secondary:{default:hZ.color.gray[800],hover:hZ.color.gray[700],active:hZ.color.gray[600],disabled:hZ.color.gray[850],onSecondary:hZ.color.gray[200]},border:{default:hZ.color.gray[700],strong:hZ.color.gray[600],focus:hZ.color.teal[400],error:hZ.color.rose[500]},status:{info:hZ.color.blue[500],success:hZ.color.green[500],warning:hZ.color.amber[500],error:hZ.color.rose[500],onInfo:hZ.color.gray[0],onSuccess:hZ.color.gray[0],onWarning:hZ.color.gray[0],onError:hZ.color.gray[0],infoBg:"#0a1a33",successBg:"#0a2619",warningBg:"#261a00",errorBg:"#260a06"}}};function hX(e){var t,i,a,n,r,o,l,s,d;let u,c="light";e&&"mode"in e?(u=e.brandKit,c=null!=(t=e.mode)?t:"light"):u=e;let p="dark"===c,m=p?hY.dark:hY.light,f=p?hZ.shadowDark:hZ.shadow,h=null!=(i=null==u?void 0:u.primaryColor)?i:m.primary.default,g=(null==u?void 0:u.primaryColor)?function(e,t){let i=parseInt(e.replace("#",""),16),a=Math.min(255,Math.max(0,(i>>16&255)+Math.round(255*t))),n=Math.min(255,Math.max(0,(i>>8&255)+Math.round(255*t))),r=Math.min(255,Math.max(0,(255&i)+Math.round(255*t)));return"#".concat((0x1000000+(a<<16)+(n<<8)+r).toString(16).slice(1))}(u.primaryColor,p?.15:-.1):m.primary.hover,v=null!=(a=null==u?void 0:u.secondaryColor)?a:m.secondary.onSecondary,y=null!=(n=null==u?void 0:u.fontFamily)?n:hZ.fontFamily.sans,b=null!=(r=null==u?void 0:u.borderRadius)?r:8,_=p?m.surface.tertiary:null!=(o=null==u?void 0:u.surfaceColor)?o:m.surface.tertiary,x=p?m.onSurface.primary:null!=(l=null==u?void 0:u.textColor)?l:m.onSurface.primary;null!=(null==u?void 0:u.headerBackground)||m.surface.brand;let A=null!=(s=null==u?void 0:u.successColor)?s:m.status.success,I=null!=(d=null==u?void 0:u.errorColor)?d:m.status.error,w={breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},palette:{mode:c,primary:{main:h,light:p?m.primary.hover:m.primary.disabled,dark:p?m.primary.active:g,contrastText:m.primary.onPrimary},secondary:{main:v,contrastText:m.secondary.onSecondary},background:{default:p?m.surface.primary:_,paper:m.surface.elevated},text:{primary:x,secondary:m.onSurface.secondary,disabled:m.onSurface.disabled},error:{main:I},warning:{main:m.status.warning},info:{main:m.status.info},success:{main:A},divider:m.border.default}
28,typography:{fontFamily:y,fontSize:16,fontWeightLight:hZ.fontWeight.light,fontWeightRegular:hZ.fontWeight.regular,fontWeightMedium:hZ.fontWeight.medium,fontWeightBold:hZ.fontWeight.bold,h1:{fontWeight:hZ.fontWeight.bold,lineHeight:hZ.lineHeight.tight,fontSize:"clamp(2rem, 4.5vw, 5rem)"},h2:{fontWeight:hZ.fontWeight.bold,lineHeight:hZ.lineHeight.tight,fontSize:"clamp(1.625rem, 3.5vw, 3.75rem)"},h3:{fontWeight:hZ.fontWeight.semibold,lineHeight:hZ.lineHeight.snug,fontSize:"clamp(1.375rem, 2.75vw, 3rem)"},h4:{fontWeight:hZ.fontWeight.semibold,lineHeight:hZ.lineHeight.snug,fontSize:"clamp(1.125rem, 2.25vw, 2.25rem)"},h5:{fontWeight:hZ.fontWeight.semibold,lineHeight:hZ.lineHeight.normal,fontSize:"clamp(1rem, 1.75vw, 1.75rem)"},h6:{fontWeight:hZ.fontWeight.semibold,lineHeight:hZ.lineHeight.normal,fontSize:"clamp(0.9375rem, 1.5vw, 1.5rem)"},body1:{lineHeight:hZ.lineHeight.normal,fontSize:"clamp(1rem, 1.1vw, 1.25rem)"},body2:{lineHeight:hZ.lineHeight.normal,fontSize:"clamp(0.9375rem, 1vw, 1.125rem)"},subtitle1:{fontSize:"clamp(1.0625rem, 1.15vw, 1.3125rem)",lineHeight:hZ.lineHeight.normal},subtitle2:{fontSize:"clamp(0.9375rem, 1vw, 1.125rem)",lineHeight:hZ.lineHeight.normal},caption:{fontSize:"clamp(0.75rem, 0.85vw, 0.9375rem)"},overline:{fontSize:"clamp(0.75rem, 0.85vw, 0.9375rem)"}},shape:{borderRadius:b},shadows:[f.none,f.xs,f.sm,f.sm,f.md,f.md,f.md,f.lg,f.lg,f.lg,f.lg,f.lg,f.xl,f.xl,f.xl,f.xl,f.xl,f["2xl"],f["2xl"],f["2xl"],f["2xl"],f["2xl"],f["2xl"],f["2xl"],f["2xl"]],transitions:{duration:{shortest:100,shorter:200,short:300,standard:300,complex:500,enteringScreen:300,leavingScreen:200},easing:{easeInOut:hZ.easing.default,easeOut:hZ.easing.easeOut,easeIn:hZ.easing.easeIn,sharp:hZ.easing.default}},zIndex:{mobileStepper:hZ.zIndex.base,fab:hZ.zIndex.dropdown,speedDial:hZ.zIndex.dropdown,appBar:hZ.zIndex.sticky,drawer:hZ.zIndex.overlay,modal:hZ.zIndex.modal,snackbar:hZ.zIndex.toast,tooltip:hZ.zIndex.tooltip},components:{MuiButton:{defaultProps:{size:"large"},styleOverrides:{root:{textTransform:"none",fontWeight:hZ.fontWeight.semibold,borderRadius:hZ.radius.md,fontSize:"1rem",letterSpacing:"0.01em"},sizeLarge:{padding:"12px 28px",fontSize:"1.0625rem"},sizeMedium:{padding:"10px 24px",fontSize:"1rem"},sizeSmall:{padding:"7px 16px",fontSize:"0.9375rem"},contained:{boxShadow:f.sm,"&:hover":{boxShadow:f.md,backgroundColor:g}},outlined:{borderColor:m.border.default,"&:hover":{borderColor:h,backgroundColor:p?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.04)"}}}},MuiCard:{styleOverrides:{root:{boxShadow:f.sm,borderRadius:hZ.radius.lg,backgroundColor:m.surface.elevated}}},MuiTextField:{styleOverrides:{root:{"& .MuiOutlinedInput-root":{borderRadius:hZ.radius.md,"& fieldset":{borderColor:m.border.default},"&:hover fieldset":{borderColor:m.border.strong},"&.Mui-focused fieldset":{borderColor:m.border.focus},"&.Mui-error fieldset":{borderColor:m.border.error}}}}},MuiAppBar:{defaultProps:{color:"inherit",elevation:0},styleOverrides:{root:{borderBottom:"1px solid ".concat("dark"===c?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)")}}},MuiChip:{styleOverrides:{root:{borderRadius:hZ.radius.full}}}
28,MuiBottomNavigation:{styleOverrides:{root:{backgroundColor:m.surface.primary,borderTop:"1px solid ".concat(m.border.default)}}},MuiDrawer:{styleOverrides:{paper:{backgroundColor:m.surface.secondary}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:m.surface.inverse,color:m.onSurface.inverse}}},MuiAlert:{styleOverrides:{standardInfo:{backgroundColor:m.status.infoBg,color:p?m.onSurface.primary:m.status.info},standardSuccess:{backgroundColor:m.status.successBg,color:p?m.onSurface.primary:m.status.success},standardWarning:{backgroundColor:m.status.warningBg,color:p?m.onSurface.primary:m.status.warning},standardError:{backgroundColor:m.status.errorBg,color:p?m.onSurface.primary:m.status.error}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiTableContainer:{styleOverrides:{root:{overflowX:"auto",WebkitOverflowScrolling:"touch"}}},MuiTableCell:{styleOverrides:{root:{whiteSpace:"nowrap","@media (max-width:600px)":{padding:"6px 8px",fontSize:"0.75rem"}},head:{fontWeight:600}}},MuiTablePagination:{styleOverrides:{root:{"@media (max-width:600px)":{"& .MuiTablePagination-toolbar":{flexWrap:"wrap",justifyContent:"center",paddingLeft:8,paddingRight:8,minHeight:48},"& .MuiTablePagination-selectLabel":{display:"none"},"& .MuiTablePagination-input":{display:"none"}}}}},MuiCssBaseline:{styleOverrides:{html:{fontSize:"16px","@media (min-width: 2560px)":{fontSize:"18px"},"@media (min-width: 3840px)":{fontSize:"22px"}},body:{scrollbarColor:p?"".concat(m.border.default," ").concat(m.surface.primary):void 0}}}}};return(0,hj.A)(w)}hZ.fontFamily.sans,hX();let hJ=(0,o.createContext)(void 0),hQ="eb-theme-mode";function h0(e){let{brandKit:t,defaultMode:i="system",children:a}=e,[n,l]=(0,o.useState)("light");(0,o.useLayoutEffect)(()=>{let e=function(e){let t=localStorage.getItem(hQ);return"light"===t||"dark"===t?t:"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}(i);e!==n&&l(e)},[i]);let s=(0,o.useCallback)(e=>{l(e);try{localStorage.setItem(hQ,e)}catch(e){}},[]),d=(0,o.useCallback)(()=>{s("light"===n?"dark":"light")},[n,s]);(0,o.useEffect)(()=>{let e=localStorage.getItem(hQ);("light"===e||"dark"===e)&&e!==n&&l(e)},[]),(0,o.useEffect)(()=>{if(localStorage.getItem(hQ))return;let e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{l(e.matches?"dark":"light")};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let u=(0,o.useMemo)(()=>hX({brandKit:t,mode:n}),[t,n]),c=(0,o.useMemo)(()=>({mode:n,setMode:s,toggleMode:d}),[n,s,d]);return(0,r.jsx)(hJ.Provider,{value:c,children:(0,r.jsxs)(hU,{theme:u,children:[(0,r.jsx)(hK,{}),a]})})}function h1(){let e=(0,o.useContext)(hJ);if(!e)throw Error("useThemeMode must be used within a ThemeModeProvider");return e}function h2(e){let t=new Date;return t.setDate(t.getDate()-e),t.toISOString()}function h5(e){let t=new Date;return t.setDate(t.getDate()+e),t.toISOString()}h2(365),h2(180),h2(90),h2(60),h2(7),h2(0),h2(365),h2(1),h2(180),h2(2),h2(90),h2(0),h2(45),h2(3),h2(30),h2(1),h2(120),h2(30),h2(45),h2(15),h2(30),h2(5),h2(60),h2(90),h2(45),h2(30),h2(14),h2(3),h2(60),h2(28),h2(25),h2(10),h2(2),h2(1),h2(90),h2(60),h2(45),h2(28),h2(25),h2(10),h2(5),h2(2),h2(27),h2(24),h2(9),h2(44),h2(120),h2(90),h2(60),h2(5),h2(7),h2(30),h2(32),h2(44),h2(40),h2(7),h2(5),h2(1),h2(14),h2(21),h2(90),h2(60),h2(45),h2(90),h2(60),h2(45),h5(30),h2(21),h5(60),h2(14),h5(90),h2(7),h5(2),h2(3),h5(5),h2(1),h2(2),h2(1),h2(10),h2(2),h2(5),h2(15),h5(25),h2(10),h2(2),h2(90),h2(7),h2(60),h2(180),h2(60),h2(30),h2(45),h2(15),h5(15),h2(30),h2(35),h2(14),h2(20),h2(3),h2(180),h2(-185),h2(180),h2(90),h2(90),h2(28),h2(10),h2(45),h2(0),h2(30),h2(28),h2(5),h2(30),h2(28),h2(3),h5(7),h2(5),h2(180),h2(7),h2(60),h2(90),h2(14),h2(7),h2(120),h2(90);var h3=i(5011),h4=i(5778),h9=i(7225),h6=i(1952);(0,h6.A)((0,r.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),(0,h6.A)([(0,r.jsx)("path",{d:"M15 17h2v-3h1v-2l-1-5H2l-1 5v2h1v6h9v-6h4zm-6 1H4v-4h5zM2 4h15v2H2z"},"0"),(0,r.jsx)("path",{d:"M20 18v-3h-2v3h-3v2h3v3h2v-3h3v-2z"},"1")],"AddBusiness"),(0,h6.A)([(0,r.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6"},"0"),(0,r.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17"},"1")],"AdminPanelSettings"),(0,h6.A)((0,r.jsx)("path",{d:"M10 4h4v4h-4zM4 16h4v4H4zm0-6h4v4H4zm0-6h4v4H4zm10 8.42V10h-4v4h2.42zm6.88-1.13-1.17-1.17c-.16-.16-.42-.16-.58 0l-.88.88L20 12.75l.88-.88c.16-.16.16-.42 0-.58M11 18.25V20h1.75l6.67-6.67-1.75-1.75zM16 4h4v4h-4z"}),"AppRegistration"),(0,h6.A)((0,r.jsx)("path",{d:"M4 8h4V4H4zm6 12h4v-4h-4zm-6 0h4v-4H4zm0-6h4v-4H4zm6 0h4v-4h-4zm6-10v4h4V4zm-6 4h4V4h-4zm6 6h4v-4h-4zm0 6h4v-4h-4z"}),"Apps"),(0,h6.A)((0,r.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Article"),(0,h6.A)((0,r.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}),"Assessment"),(0,h6.A)((0,r.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Assignment"),(0,h6.A)((0,r.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m-2 14-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"}),"AssignmentTurnedIn");var h8=i(7045),h7=i(740);(0,h6.A)((0,r.jsx)("path",{d:"M7.5 5.6 10 7 8.6 4.5 10 2 7.5 3.4 5 2l1.4 2.5L5 7zm12 9.8L17 14l1.4 2.5L17 19l2.5-1.4L22 19l-1.4-2.5L22 14zM22 2l-2.5 1.4L17 2l1.4 2.5L17 7l2.5-1.4L22 7l-1.4-2.5zm-7.63 5.29a.996.996 0 0 0-1.41 0L1.29 18.96c-.39.39-.39 1.02 0 1.41l2.34 2.34c.39.39 1.02.39 1.41 0L16.7 11.05c.39-.39.39-1.02 0-1.41zm-1.03 5.49-2.12-2.12 2.44-2.44 2.12 2.12z"}),"AutoFixHigh"),(0,h6.A)((0,r.jsx)("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"}),"BarChart"),(0,h6.A)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block"),(0,h6.A)((0,r.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2"}),"Bookmark"),(0,h6.A)((0,r.jsx)("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4
281.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4"}),"Build");var ge=i(1104),gt=i(3234),gi=i(9410);(0,h6.A)((0,r.jsx)("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday");var ga=i(1040);(0,h6.A)((0,r.jsx)("path",{d:"M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1M9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m11 15H4v-2h16zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20z"}),"CardGiftcard"),(0,h6.A)([(0,r.jsx)("path",{d:"m12 2-5.5 9h11z"},"0"),(0,r.jsx)("circle",{cx:"17.5",cy:"17.5",r:"4.5"},"1"),(0,r.jsx)("path",{d:"M3 13.5h8v8H3z"},"2")],"Category");var gn=i(4074);(0,h6.A)((0,r.jsx)("path",{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"}),"Checklist");var gr=i(6283);(0,h6.A)((0,r.jsx)("path",{d:"M9.01 14H2v2h7.01v3L13 15l-3.99-4zm5.98-1v-3H22V8h-7.01V5L11 9z"}),"CompareArrows"),(0,h6.A)((0,r.jsx)("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"}),"ConfirmationNumber"),(0,h6.A)((0,r.jsx)("path",{d:"M11 14H9c0-4.97 4.03-9 9-9v2c-3.87 0-7 3.13-7 7m7-3V9c-2.76 0-5 2.24-5 5h2c0-1.66 1.34-3 3-3M7 4c0-1.11-.89-2-2-2s-2 .89-2 2 .89 2 2 2 2-.89 2-2m4.45.5h-2C9.21 5.92 7.99 7 6.5 7h-3C2.67 7 2 7.67 2 8.5V11h6V8.74c1.86-.59 3.25-2.23 3.45-4.24M19 17c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2m1.5 1h-3c-1.49 0-2.71-1.08-2.95-2.5h-2c.2 2.01 1.59 3.65 3.45 4.24V22h6v-2.5c0-.83-.67-1.5-1.5-1.5"}),"ConnectWithoutContact");var go=i(6435);(0,h6.A)((0,r.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),(0,h6.A)((0,r.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Create");var gl=i(6613);(0,h6.A)((0,r.jsx)("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h5v-2H4v-6h18V6c0-1.11-.89-2-2-2m0 4H4V6h16zm-5.07 11.17-2.83-2.83-1.41 1.41L14.93 22 22 14.93l-1.41-1.41z"}),"CreditScore");var gs=i(7826);(0,h6.A)((0,r.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),(0,h6.A)((0,r.jsx)("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"}),"Devices"),(0,h6.A)([(0,r.jsx)("path",{d:"M6.32 13.01c.96.02 1.85.5 2.45 1.34C9.5 15.38 10.71 16 12 16s2.5-.62 3.23-1.66c.6-.84 1.49-1.32 2.45-1.34-.72-1.22-3.6-2-5.68-2-2.07 0-4.96.78-5.68 2.01M4 13c1.66 0 3-1.34 3-3S5.66 7 4 7s-3 1.34-3 3 1.34 3 3 3m16 0c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3m-8-3c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3"},"0"),(0,r.jsx)("path",{d:"M21 14h-3.27c-.77 0-1.35.45-1.68.92-.04.06-1.36 2.08-4.05 2.08-1.43 0-3.03-.64-4.05-2.08-.39-.55-1-.92-1.68-.92H3c-1.1 0-2 .9-2 2v4h7v-2.26c1.15.8 2.54 1.26 4 1.26s2.85-.46 4-1.26V20h7v-4c0-1.1-.9-2-2-2"},"1")],"Diversity3"),(0,h6.A)((0,r.jsx)("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"}),"Domain");var gd=i(2952);(0,h6.A)([(0,r.jsx)("path",{d:"M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z"},"0"),(0,r.jsx)("path",{d:"M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z"},"1")],"DynamicFeed"),(0,h6.A)((0,r.jsx)("path",{d:"M17 20v-9h-2V4h7l-2 5h2zm-2-7v7H4c-1.1 0-2-.9-2-2v-3c0-1.1.9-2 2-2zm-8.75 2.75h-1.5v1.5h1.5zM13 4v7H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2zM6.25 6.75h-1.5v1.5h1.5z"}),"DynamicForm");var gu=i(4886),gc=i(6641);(0,h6.A)((0,r.jsx)("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}
28),"Event"),(0,h6.A)((0,r.jsx)("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"}),"Explore"),(0,h6.A)((0,r.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension"),(0,h6.A)((0,r.jsx)("path",{fillRule:"evenodd",d:"M20 3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M10 17H5v-2h5zm0-4H5v-2h5zm0-4H5V7h5zm4.82 6L12 12.16l1.41-1.41 1.41 1.42L17.99 9l1.42 1.42z"}),"FactCheck");var gp=i(4036);(0,h6.A)((0,r.jsx)("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"}),"Flag");var gm=i(3625);(0,h6.A)((0,r.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),(0,h6.A)((0,r.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"}),"FolderOpen"),(0,h6.A)((0,r.jsx)("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"}),"FormatListBulleted"),(0,h6.A)((0,r.jsx)("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1"}),"Forum");var gf=i(4557);(0,h6.A)((0,r.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var gh=i(9796),gg=i(5742),gv=i(6439);(0,h6.A)((0,r.jsx)("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutline"),(0,h6.A)((0,r.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");var gy=i(7213),gb=i(584);(0,h6.A)((0,r.jsx)("path",{d:"M19 9.3V4h-3v2.6L12 3 2 12h3v8h5v-6h4v6h5v-8h3zm-9 .7c0-1.1.9-2 2-2s2 .9 2 2z"}),"House");var g_=i(133);(0,h6.A)((0,r.jsx)("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox"),(0,h6.A)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),(0,h6.A)([(0,r.jsx)("path",{d:"M21 8c-1.45 0-2.26 1.44-1.93 2.51l-3.55 3.56c-.3-.09-.74-.09-1.04 0l-2.55-2.55C12.27 10.45 11.46 9 10 9c-1.45 0-2.27 1.44-1.93 2.52l-4.56 4.55C2.44 15.74 1 16.55 1 18c0 1.1.9 2 2 2 1.45 0 2.26-1.44 1.93-2.51l4.55-4.56c.3.09.74.09 1.04 0l2.55 2.55C12.73 16.55 13.54 18 15 18c1.45 0 2.27-1.44 1.93-2.52l3.56-3.55c1.07.33 2.51-.48 2.51-1.93 0-1.1-.9-2-2-2"},"0"),(0,r.jsx)("path",{d:"m15 9 .94-2.07L18 6l-2.06-.93L15 3l-.92 2.07L12 6l2.08.93zM3.5 11 4 9l2-.5L4 8l-.5-2L3 8l-2 .5L3 9z"},"1")],"Insights"),(0,h6.A)((0,r.jsx)("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4l16-.02z"}),"Inventory"),(0,h6.A)((0,r.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"}),"Key"),(0,h6.A)((0,r.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var gx=i(8133);(0,h6.A)((0,r.jsx)("path",{d:"M14 6v15H3v-2h2V3h9v1h5v15h2v2h-4V6zm-4 5v2h2v-2z"}),"MeetingRoom");var gA=i(8840);(0,h6.A)([(0,r.jsx)("path",{d:"M15.11 12.45 14 10.24l-3.11 6.21c-.16.34-.51.55-.89.55s-.73-.21-.89-.55L7.38 13H2v5c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-5h-6c-.38 0-.73-.21-.89-.55"}
28,"0"),(0,r.jsx)("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v5h6c.38 0 .73.21.89.55L10 13.76l3.11-6.21c.34-.68 1.45-.68 1.79 0L16.62 11H22V6c0-1.1-.9-2-2-2"},"1")],"MonitorHeart");var gI=i(5897);(0,h6.A)((0,r.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"}),"Notifications");var gw=i(1180),gk=i(181);(0,h6.A)((0,r.jsx)("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2m0 14H4v-6h16zm0-10H4V6h16z"}),"Payment");var gS=i(4221),gT=i(5001),gC=i(5467);(0,h6.A)((0,r.jsx)("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"PersonAdd"),(0,h6.A)([(0,r.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,r.jsx)("path",{d:"M10.35 14.01C7.62 13.91 2 15.27 2 18v2h9.54c-2.47-2.76-1.23-5.89-1.19-5.99m9.08 4.01c.36-.59.57-1.28.57-2.02 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.74 0 1.43-.22 2.02-.57L20.59 22 22 20.59zM16 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"PersonSearch");var gE=i(3124);(0,h6.A)((0,r.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),(0,h6.A)((0,r.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}),"Poll");var gR=i(8323),gP=i(9559);(0,h6.A)((0,r.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14zm12 0h-7.5l2-2H18z"}),"RateReview"),(0,h6.A)((0,r.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt"),(0,h6.A)([(0,r.jsx)("path",{d:"M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2zM19 19c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11z"},"0"),(0,r.jsx)("path",{d:"M9 7h6v2H9zm7 0h2v2h-2zm-7 3h6v2H9zm7 0h2v2h-2z"},"1")],"ReceiptLong"),(0,h6.A)((0,r.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),(0,h6.A)((0,r.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),(0,h6.A)((0,r.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"ReportProblem");var gO=i(8942),gM=i(4697);(0,h6.A)((0,r.jsx)("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18c-1.16.41-2 1.51-2 2.82 0 1.66 1.34 3 3 3s3-1.34 3-3c0-1.3-.84-2.4-2-2.82"}),"Route"),(0,h6.A)((0,r.jsx)("path",{d:"M16.54 11 13 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zM11 7H2v2h9zm10 6.41L19.59 12 17 14.59 14.41 12 13 13.41 15.59 16 13 18.59 14.41 20 17 17.41 19.59 20 21 18.59 18.41 16zM11 15H2v2h9z"}),"Rule"),(0,h6.A)([(0,r.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,r.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"Schedule"),(0,h6.A)((0,r.jsx)("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School");var gN=i(7962),gj=i(2924),gD=i(6471),gF=i(8627);(0,h6.A)((0,r.jsx)("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"}),"SettingsInputComponent"),(0,h6.A)((0,r.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3
28-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"}),"Share");var gL=i(1535),gB=i(8097);(0,h6.A)((0,r.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M9 11H7V9h2zm4 0h-2V9h2zm4 0h-2V9h2z"}),"Sms");var gz=i(8881);(0,h6.A)((0,r.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),(0,h6.A)((0,r.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var gU=i(5399),gq=i(4746);(0,h6.A)((0,r.jsx)("path",{d:"M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5M9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5 6 6.34 6 8s1.34 3 3 3m7.5 3c-1.83 0-5.5.92-5.5 2.75V19h11v-2.25c0-1.83-3.67-2.75-5.5-2.75M9 13c-2.33 0-7 1.17-7 3.5V19h7v-2.25c0-.85.33-2.34 2.37-3.47C10.5 13.1 9.66 13 9 13"}),"SupervisorAccount"),(0,h6.A)((0,r.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"}),"Sync");var g$=i(9802);(0,h6.A)((0,r.jsx)("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}),"ThumbUp"),(0,h6.A)((0,r.jsx)("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2"}),"Timeline"),(0,h6.A)((0,r.jsx)("path",{d:"M17 7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h10c2.76 0 5-2.24 5-5s-2.24-5-5-5m0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3"}),"ToggleOn");var gH=i(1195);(0,h6.A)((0,r.jsx)("path",{d:"m19.07 4.93-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07"}),"TrackChanges");var gV=i(9138);(0,h6.A)((0,r.jsx)("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune");var gW=i(5805),gG=i(5834);(0,h6.A)((0,r.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),(0,h6.A)((0,r.jsx)("path",{d:"M17 4c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2zM2 20c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2zm19-2c.83 0 1.5-.67 1.5-1.5v-9c0-.83-.67-1.5-1.5-1.5z"}),"WebStories"),(0,h6.A)((0,r.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"}),"Work"),(0,h6.A)((0,r.jsx)("path",{fillRule:"evenodd",d:"M14 6V4h-4v2zM4 8v11h16V8zm16-2c1.11 0 2 .89 2 2v11c0 1.11-.89 2-2 2H4c-1.11 0-2-.89-2-2l.01-11c0-1.11.88-2 1.99-2h4V4c0-1.11.89-2 2-2h4c1.11 0 2 .89 2 2v2z"}),"WorkOutline"),h3.A,h4.A,h9.A,h8.A,h7.A,ge.A,gt.A,gi.A,ga.A,gn.A,gr.A,go.A,gl.A,gs.A,gd.A,gu.A,gc.A,gp.A,gm.A,gf.A,gh.A,gg.A,gv.A,gy.A,gb.A,g_.A,gx.A,gA.A,gI.A,gw.A,gk.A,gS.A,gT.A,gC.A,gE.A,gR.A,gP.A,gO.A,gM.A,gN.A,gj.A,gD.A,gF.A,gL.A,gB.A,gz.A,gU.A,gq.A,g$.A,gH.A,gV.A,gW.A,gG.A;var gK=i(2298),gZ=i(2989),gY=i(2299),gX=i(7389),gJ=i(8978),gQ=i(7238);(0,gK.Ay)(gY.A)(e=>{let{theme:t}=e;return{color:t.palette.text.primary,padding:t.spacing(1),marginRight:t.spacing(1),"&:hover":{backgroundColor:(0,gZ.X4)(t.palette.primary.main,.1)}}}),(0,gK.Ay)(gX.A)(e=>{let{theme:t}=e;return{padding:t.spacing(2),width:420,maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 100px)",overflowY:"auto",borderRadius:t.spacing(1.5),boxShadow:t.shadows[8],[t.breakpoints.down("sm")]:{width:"calc(100vw - 32px)"}}}),(0,gK.Ay)(gJ.A)(e=>{let{theme:t}=e;return{marginBottom:t.spacing(2),fontWeight:600,color:t.palette.text.primary,fontSize:"0.875rem"}}),(0,gK.Ay)(gQ.A)(e=>{let{theme:t}=e;return{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:t.spacing(1),[t.breakpoints.down("sm")]:{gridTemplateColumns:"repeat(3, 1fr)"}}}),(0,gK.Ay)(gQ.A,{shouldForwardProp:e=>"isCurrent"!==e})(e=>{let{theme:t,isCurrent:i}=e;return{display:"flex",flexDirection:"column",alignItems:"center",padding:t.spacing(1.5),borderRadius:t.spacing(1),cursor:"pointer",transition:"background-color 0.2s ease",backgroundColor:i?(0,gZ.X4)(t.palette.primary.main,.1):"transparent",border:i?"2px solid ".concat(t.palette.primary.main):"2px solid transparent","&:hover":{backgroundColor:(0,gZ.X4)(t.palette.action.hover,.8)}}}),(0,gK.Ay)(gQ.A)(e=>{let{theme:t}=e;return{width:48,height:48,borderRadius:t.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:(0,gZ.X4)(t.palette.primary.main,.1),marginBottom:t.spacing(.5),"& svg":{fontSize:28,color:t.palette.primary.main}}}),(0,gK.Ay)(gJ.A)(e=>{let{theme:t}=e;return{fontSize:"0.7rem",fontWeight:500,textAlign:"center",color:t.palette.text.primary,lineHeight:1.2,maxHeight:"2.4em",overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",width:"100%",wordBreak:"break-word"}}),"8888"===window.location.port||[".eslice.ai",".eslice.net",".eslice.co",".esdevlab.com"].some(e=>window.location.hostname.endsWith(e))||"localhost"===window.location.hostname||window.location.hostname.endsWith(".localhost")||/^(\d{1,3}\.){3}\d{1,3}$/.test(window.location.hostname);var g0=i(9742);function g1(e){try{if(window.parent&&window.parent!==window){let t="*";try{document.referrer&&(t=new URL(document.referrer).origin)}catch(e){}window.parent.postMessage(e,t)}}catch(e){}}(0,gK.Ay)(gY.A)(e=>{let{theme:t}=e;return{color:t.palette.text.primary,padding:t.spacing(1),"&:hover":{backgroundColor:(0,gZ.X4)(t.palette.primary.main,.1)}}}),(0,gK.Ay)(gX.A)(e=>{let{theme:t}=e;return{width:300,maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 100px)",overflowY:"auto",overflowX:"hidden",borderRadius:t.spacing(1.5),boxShadow:t.shadows[8]}}),(0,gK.Ay)(gQ.A)(e=>{let{theme:t}=e;return{padding:t.spacing(1.5,2,.5),display:"flex",alignItems:"center",justifyContent:"space-between"}}),(0,gK.Ay)(gJ.A)(e=>{let{theme:t}=e;return{fontWeight:600,fontSize:"0.8rem",color:t.palette.text.secondary,textTransform:"uppercase",letterSpacing:"0.05em"}}),(0,gK.Ay)(g0.A)(e=>{let{theme:t}=e;return{margin:t.spacing(.5,1.5,.5),"& .MuiOutlinedInput-root":{borderRadius:t.spacing(1),fontSize:"0.85rem","& fieldset":{borderColor:t.palette.divider}},"& .MuiOutlinedInput-input":{padding:t.spacing(.75,1)}}}),(0,gK.Ay)(gQ.A)(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",gap:t.spacing(1),padding:t.spacing(.75,1.5),cursor:"pointer",overflow:"hidden",transition:"background-color 0.15s ease","&:hover":{backgroundColor:(0,gZ.X4)(t.palette.action.hover,.8)},"&:focus-visible":{backgroundColor:(0,gZ.X4)(t.palette.primary.main,.08),outline:"2px s
28olid ".concat(t.palette.primary.main),outlineOffset:-2}}}),(0,gK.Ay)(gQ.A)(e=>{let{theme:t}=e;return{width:32,height:32,borderRadius:t.spacing(.75),display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:(0,gZ.X4)(t.palette.primary.main,.08),flexShrink:0,"& svg":{fontSize:18,color:t.palette.primary.main}}}),(0,gK.Ay)(gJ.A)(e=>{let{theme:t}=e;return{fontSize:"0.85rem",fontWeight:500,color:t.palette.text.primary,flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),(0,gK.Ay)(gJ.A)(e=>{let{theme:t}=e;return{fontSize:"0.7rem",fontWeight:500,color:t.palette.text.disabled,flexShrink:0,fontFamily:"monospace",backgroundColor:(0,gZ.X4)(t.palette.action.selected,.5),padding:t.spacing(.125,.5),borderRadius:t.spacing(.5),border:"1px solid ".concat(t.palette.divider)}}),(0,gK.Ay)(gJ.A)(e=>{let{theme:t}=e;return{fontSize:"0.7rem",fontWeight:600,color:t.palette.text.disabled,textTransform:"uppercase",letterSpacing:"0.05em",padding:t.spacing(1,2,.25)}}),(0,gK.Ay)(gJ.A)(e=>{let{theme:t}=e;return{fontSize:"0.825rem",color:t.palette.text.secondary,textAlign:"center",padding:t.spacing(2)}});let g2={isInPortalIframe(){try{return window.parent!==window}catch(e){return!0}},navigate(e){g2.isInPortalIframe()?g1({type:"zone:navigate",path:e}):window.location.href=e},notify(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";g1({type:"zone:notify",message:e,variant:t})},setTitle(e){g2.isInPortalIframe()?g1({type:"zone:setTitle",value:e}):"undefined"!=typeof document&&(document.title=e)},signalLogout(){g1({type:"zone:auth:logout"})},syncRoute(e){g1({type:"zone:routeChange",path:e})}};function g5(e,t){return function(){return e.apply(t,arguments)}}var g3=i(3727);let{toString:g4}=Object.prototype,{getPrototypeOf:g9}=Object,{iterator:g6,toStringTag:g8}=Symbol,g7=(e=>t=>{let i=g4.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),ve=e=>(e=e.toLowerCase(),t=>g7(t)===e),vt=e=>t=>typeof t===e,{isArray:vi}=Array,va=vt("undefined");function vn(e){return null!==e&&!va(e)&&null!==e.constructor&&!va(e.constructor)&&vl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let vr=ve("ArrayBuffer"),vo=vt("string"),vl=vt("function"),vs=vt("number"),vd=e=>null!==e&&"object"==typeof e,vu=e=>{if("object"!==g7(e))return!1;let t=g9(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(g8 in e)&&!(g6 in e)},vc=ve("Date"),vp=ve("File"),vm=ve("Blob"),vf=ve("FileList"),vh=ve("URLSearchParams"),[vg,vv,vy,vb]=["ReadableStream","Request","Response","Headers"].map(ve);function v_(e,t,{allOwnKeys:i=!1}={}){let a,n;if(null!=e)if("object"!=typeof e&&(e=[e]),vi(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{let n;if(vn(e))return;let r=i?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;for(a=0;a<o;a++)n=r[a],t.call(null,e[n],n,e)}}function vx(e,t){let i;if(vn(e))return null;t=t.toLowerCase();let a=Object.keys(e),n=a.length;for(;n-- >0;)if(t===(i=a[n]).toLowerCase())return i;return null}let vA="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,vI=e=>!va(e)&&e!==vA,vw=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&g9(Uint8Array)),vk=ve("HTMLFormElement"),vS=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),vT=ve("RegExp"),vC=(e,t)=>{let i=Object.getOwnPropertyDescriptors(e),a={};v_(i,(i,n)=>{let r;!1!==(r=t(i,n,e))&&(a[n]=r||i)}),Object.defineProperties(e,a)},vE=ve("AsyncFunction"),vR=(bQ="function"==typeof setImmediate,b0=vl(vA.postMessage),bQ?setImmediate:b0?((e,t)=>(vA.addEventListener("message",({source:i,data:a})=>{i===vA&&a===e&&t.length&&t.shift()()},!1),i=>{t.push(i),vA.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),vP="undefined"!=typeof queueMicrotask?queueMicrotask.bind(vA):void 0!==g3&&g3.nextTick||vR,vO={isArray:vi,isArrayBuffer:vr,isBuffer:vn,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||vl(e.append)&&("formdata"===(t=g7(e))||"object"===t&&vl(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&vr(e.buffer)},isString:vo,isNumber:vs,isBoolean:e=>!0===e||!1===e,isObject:vd,isPlainObject:vu,isEmptyObject:e=>{if(!vd(e)||vn(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:vg,isRequest:vv,isResponse:vy,isHeaders:vb,isUndefined:va,isDate:vc,isFile:vp,isBlob:vm,isRegExp:vT,isFunction:vl,isStream:e=>vd(e)&&vl(e.pipe),isURLSearchParams:vh,isTypedArray:vw,isFileList:vf,forEach:v_,merge:function e(){let{caseless:t,skipUndefined:i}=vI(this)&&this||{},a={},n=(n,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let o=t&&vx(a,r)||r;vu(a[o])&&vu(n)?a[o]=e(a[o],n):vu(n)?a[o]=e({},n):vi(n)?a[o]=n.slice():i&&va(n)||(a[o]=n)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&v_(arguments[e],n);return a},extend:(e,t,i,{allOwnKeys:a}={})=>(v_(t,(t,a)=>{i&&vl(t)?Object.defineProperty(e,a,{value:g5(t,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,i,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,
28configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject:(e,t,i,a)=>{let n,r,o,l={};if(t=t||{},null==e)return t;do{for(r=(n=Object.getOwnPropertyNames(e)).length;r-- >0;)o=n[r],(!a||a(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=!1!==i&&g9(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:g7,kindOfTest:ve,endsWith:(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;let a=e.indexOf(t,i);return -1!==a&&a===i},toArray:e=>{if(!e)return null;if(vi(e))return e;let t=e.length;if(!vs(t))return null;let i=Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{let i,a=(e&&e[g6]).call(e);for(;(i=a.next())&&!i.done;){let a=i.value;t.call(e,a[0],a[1])}},matchAll:(e,t)=>{let i,a=[];for(;null!==(i=e.exec(t));)a.push(i);return a},isHTMLForm:vk,hasOwnProperty:vS,hasOwnProp:vS,reduceDescriptors:vC,freezeMethods:e=>{vC(e,(t,i)=>{if(vl(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;if(vl(e[i])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(e,t)=>{let i={};return(vi(e)?e:String(e).split(t)).forEach(e=>{i[e]=!0}),i},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,i){return t.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:vx,global:vA,isContextDefined:vI,isSpecCompliantForm:function(e){return!!(e&&vl(e.append)&&"FormData"===e[g8]&&e[g6])},toJSONObject:e=>{let t=Array(10),i=(e,a)=>{if(vd(e)){if(t.indexOf(e)>=0)return;if(vn(e))return e;if(!("toJSON"in e)){t[a]=e;let n=vi(e)?[]:{};return v_(e,(e,t)=>{let r=i(e,a+1);va(r)||(n[t]=r)}),t[a]=void 0,n}}return e};return i(e,0)},isAsyncFn:vE,isThenable:e=>e&&(vd(e)||vl(e))&&vl(e.then)&&vl(e.catch),setImmediate:vR,asap:vP,isIterable:e=>null!=e&&vl(e[g6])};class vM extends Error{static from(e,t,i,a,n,r){let o=new vM(e.message,t||e.code,i,a,n);return o.cause=e,o.name=e.name,r&&Object.assign(o,r),o}constructor(e,t,i,a,n){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),i&&(this.config=i),a&&(this.request=a),n&&(this.response=n,this.status=n.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vO.toJSONObject(this.config),code:this.code,status:this.status}}}vM.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",vM.ERR_BAD_OPTION="ERR_BAD_OPTION",vM.ECONNABORTED="ECONNABORTED",vM.ETIMEDOUT="ETIMEDOUT",vM.ERR_NETWORK="ERR_NETWORK",vM.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",vM.ERR_DEPRECATED="ERR_DEPRECATED",vM.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",vM.ERR_BAD_REQUEST="ERR_BAD_REQUEST",vM.ERR_CANCELED="ERR_CANCELED",vM.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",vM.ERR_INVALID_URL="ERR_INVALID_URL";let vN=vM;var vj=i(8357).hp;function vD(e){return vO.isPlainObject(e)||vO.isArray(e)}function vF(e){return vO.endsWith(e,"[]")?e.slice(0,-2):e}function vL(e,t,i){return e?e.concat(t).map(function(e,t){return e=vF(e),!i&&t?"["+e+"]":e}).join(i?".":""):t}let vB=vO.toFlatObject(vO,{},null,function(e){return/^is[A-Z]/.test(e)}),vz=function(e,t,i){if(!vO.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let a=(i=vO.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!vO.isUndefined(t[e])})).metaTokens,n=i.visitor||d,r=i.dots,o=i.indexes,l=(i.Blob||"undefined"!=typeof Blob&&Blob)&&vO.isSpecCompliantForm(t);if(!vO.isFunction(n))throw TypeError("visitor must be a function");function s(e){if(null===e)return"";if(vO.isDate(e))return e.toISOString();if(vO.isBoolean(e))return e.toString();if(!l&&vO.isBlob(e))throw new vN("Blob is not supported. Use a Buffer instead.");return vO.isArrayBuffer(e)||vO.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):vj.from(e):e}function d(e,i,n){let l=e;if(e&&!n&&"object"==typeof e)if(vO.endsWith(i,"{}"))i=a?i:i.slice(0,-2),e=JSON.stringify(e);else{var d;if(vO.isArray(e)&&(d=e,vO.isArray(d)&&!d.some(vD))||(vO.isFileList(e)||vO.endsWith(i,"[]"))&&(l=vO.toArray(e)))return i=vF(i),l.forEach(function(e,a){vO.isUndefined(e)||null===e||t.append(!0===o?vL([i],a,r):null===o?i:i+"[]",s(e))}),!1}return!!vD(e)||(t.append(vL(n,i,r),s(e)),!1)}let u=[],c=Object.assign(vB,{defaultVisitor:d,convertValue:s,isVisitable:vD});if(!vO.isObject(e))throw TypeError("data must be an object");return!function e(i,a){if(!vO.isUndefined(i)){if(-1!==u.indexOf(i))throw Error("Circular reference detected in "+a.join("."));u.push(i),vO.forEach(i,function(i,r){!0===(!(vO.isUndefined(i)||null===i)&&n.call(t,i,vO.isString(r)?r.trim():r,a,c))&&e(i,a?a.concat(r):[r])}),u.pop()}}(e),t};
28function vU(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function vq(e,t){this._pairs=[],e&&vz(e,this,t)}let v$=vq.prototype;function vH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function vV(e,t,i){let a;if(!t)return e;let n=i&&i.encode||vH,r=vO.isFunction(i)?{serialize:i}:i,o=r&&r.serialize;if(a=o?o(t,r):vO.isURLSearchParams(t)?t.toString():new vq(t,r).toString(n)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}v$.append=function(e,t){this._pairs.push([e,t])},v$.toString=function(e){let t=e?function(t){return e.call(this,t,vU)}:vU;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class vW{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){vO.forEach(this.handlers,function(t){null!==t&&e(t)})}}let vG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},vK="undefined"!=typeof URLSearchParams?URLSearchParams:vq,vZ="undefined"!=typeof FormData?FormData:null,vY="undefined"!=typeof Blob?Blob:null,vX="undefined"!=typeof window&&"undefined"!=typeof document,vJ="object"==typeof navigator&&navigator||void 0,vQ=vX&&(!vJ||0>["ReactNative","NativeScript","NS"].indexOf(vJ.product)),v0="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,v1=vX&&window.location.href||"http://localhost",v2={...n,isBrowser:!0,classes:{URLSearchParams:vK,FormData:vZ,Blob:vY},protocols:["http","https","file","blob","url","data"]},v5=function(e){if(vO.isFormData(e)&&vO.isFunction(e.entries)){let t={};return vO.forEachEntry(e,(e,i)=>{!function e(t,i,a,n){let r=t[n++];if("__proto__"===r)return!0;let o=Number.isFinite(+r),l=n>=t.length;return(r=!r&&vO.isArray(a)?a.length:r,l)?vO.hasOwnProp(a,r)?a[r]=[a[r],i]:a[r]=i:(a[r]&&vO.isObject(a[r])||(a[r]=[]),e(t,i,a[r],n)&&vO.isArray(a[r])&&(a[r]=function(e){let t,i,a={},n=Object.keys(e),r=n.length;for(t=0;t<r;t++)a[i=n[t]]=e[i];return a}(a[r]))),!o}(vO.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),i,t,0)}),t}return null},v3={transitional:vG,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let i,a=t.getContentType()||"",n=a.indexOf("application/json")>-1,r=vO.isObject(e);if(r&&vO.isHTMLForm(e)&&(e=new FormData(e)),vO.isFormData(e))return n?JSON.stringify(v5(e)):e;if(vO.isArrayBuffer(e)||vO.isBuffer(e)||vO.isStream(e)||vO.isFile(e)||vO.isBlob(e)||vO.isReadableStream(e))return e;if(vO.isArrayBufferView(e))return e.buffer;if(vO.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){if(a.indexOf("application/x-www-form-urlencoded")>-1){var o,l;return(o=e,l=this.formSerializer,vz(o,new v2.classes.URLSearchParams,{visitor:function(e,t,i,a){return v2.isNode&&vO.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...l})).toString()}if((i=vO.isFileList(e))||a.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return vz(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(r||n){t.setContentType("application/json",!1);var s=e;if(vO.isString(s))try{return(0,JSON.parse)(s),vO.trim(s)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(s)}return e}],transformResponse:[function(e){let t=this.transitional||v3.transitional,i=t&&t.forcedJSONParsing,a="json"===this.responseType;if(vO.isResponse(e)||vO.isReadableStream(e))return e;if(e&&vO.isString(e)&&(i&&!this.responseType||a)){let i=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!i&&a){if("SyntaxError"===e.name)throw vN.from(e,vN.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v2.classes.FormData,Blob:v2.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vO.forEach(["delete","get","head","post","put","patch"],e=>{v3.headers[e]={}});let v4=vO.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),v9=Symbol("internals");function v6(e){return e&&String(e).trim().toLowerCase()}function v8(e){return!1===e||null==e?e:vO.isArray(e)?e.map(v8):String(e)}
28function v7(e,t,i,a,n){if(vO.isFunction(a))return a.call(this,t,i);if(n&&(t=i),vO.isString(t)){if(vO.isString(a))return -1!==t.indexOf(a);if(vO.isRegExp(a))return a.test(t)}}class ye{constructor(e){e&&this.set(e)}set(e,t,i){let a=this;function n(e,t,i){let n=v6(t);if(!n)throw Error("header name must be a non-empty string");let r=vO.findKey(a,n);r&&void 0!==a[r]&&!0!==i&&(void 0!==i||!1===a[r])||(a[r||t]=v8(e))}let r=(e,t)=>vO.forEach(e,(e,i)=>n(e,i,t));if(vO.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let a;if(vO.isString(e)&&(e=e.trim())&&(a=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim())))r((e=>{let t,i,a,n={};return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),t=e.substring(0,a).trim().toLowerCase(),i=e.substring(a+1).trim(),!t||n[t]&&v4[t]||("set-cookie"===t?n[t]?n[t].push(i):n[t]=[i]:n[t]=n[t]?n[t]+", "+i:i)}),n})(e),t);else if(vO.isObject(e)&&vO.isIterable(e)){let i={},a,n;for(let t of e){if(!vO.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[n=t[0]]=(a=i[n])?vO.isArray(a)?[...a,t[1]]:[a,t[1]]:t[1]}r(i,t)}else null!=e&&n(t,e,i)}return this}get(e,t){if(e=v6(e)){let i=vO.findKey(this,e);if(i){let e=this[i];if(!t)return e;if(!0===t){let t,i=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
28for(;t=a.exec(e);)i[t[1]]=t[2];return i}if(vO.isFunction(t))return t.call(this,e,i);if(vO.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=v6(e)){let i=vO.findKey(this,e);return!!(i&&void 0!==this[i]&&(!t||v7(this,this[i],i,t)))}return!1}delete(e,t){let i=this,a=!1;function n(e){if(e=v6(e)){let n=vO.findKey(i,e);n&&(!t||v7(i,i[n],n,t))&&(delete i[n],a=!0)}}return vO.isArray(e)?e.forEach(n):n(e),a}clear(e){let t=Object.keys(this),i=t.length,a=!1;for(;i--;){let n=t[i];(!e||v7(this,this[n],n,e,!0))&&(delete this[n],a=!0)}return a}normalize(e){let t=this,i={};return vO.forEach(this,(a,n)=>{let r=vO.findKey(i,n);if(r){t[r]=v8(a),delete t[n];return}let o=e?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i):String(n).trim();o!==n&&delete t[n],t[o]=v8(a),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return vO.forEach(this,(i,a)=>{null!=i&&!1!==i&&(t[a]=e&&vO.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let i=new this(e);return t.forEach(e=>i.set(e)),i}static accessor(e){let t=(this[v9]=this[v9]={accessors:{}}).accessors,i=this.prototype;function a(e){let a=v6(e);if(!t[a]){let n=vO.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(i,t+n,{value:function(i,a,n){return this[t].call(this,e,i,a,n)},configurable:!0})}),t[a]=!0}}return vO.isArray(e)?e.forEach(a):a(e),this}}function yt(e,t){let i=this||v3,a=t||i,n=ye.from(a.headers),r=a.data;return vO.forEach(e,function(e){r=e.call(i,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function yi(e){return!!(e&&e.__CANCEL__)}ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vO.reduceDescriptors(ye.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[i]=e}}}),vO.freezeMethods(ye);class ya extends vN{constructor(e,t,i){super(null==e?"canceled":e,vN.ERR_CANCELED,t,i),this.name="CanceledError",this.__CANCEL__=!0}}function yn(e,t,i){let a=i.config.validateStatus;!i.status||!a||a(i.status)?e(i):t(new vN("Request failed with status code "+i.status,[vN.ERR_BAD_REQUEST,vN.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}let yr=function(e,t){let i,a=Array(e=e||10),n=Array(e),r=0,o=0;return t=void 0!==t?t:1e3,function(l){let s=Date.now(),d=n[o];i||(i=s),a[r]=l,n[r]=s;let u=o,c=0;for(;u!==r;)c+=a[u++],u%=e;if((r=(r+1)%e)===o&&(o=(o+1)%e),s-i<t)return;let p=d&&s-d;return p?Math.round(1e3*c/p):void 0}},yo=function(e,t){let i,a,n=0,r=1e3/t,o=(t,r=Date.now())=>{n=r,i=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{let t=Date.now(),l=t-n;l>=r?o(e,t):(i=e,a||(a=setTimeout(()=>{a=null,o(i)},r-l)))},()=>i&&o(i)]},yl=(e,t,i=3)=>{let a=0,n=yr(50,250);return yo(i=>{let r=i.loaded,o=i.lengthComputable?i.total:void 0,l=r-a,s=n(l);a=r,e({loaded:r,total:o,progress:o?r/o:void 0,bytes:l,rate:s||void 0,estimated:s&&o&&r<=o?(o-r)/s:void 0,event:i,lengthComputable:null!=o,[t?"download":"upload"]:!0})},i)},ys=(e,t)=>{let i=null!=e;return[a=>t[0]({lengthComputable:i,total:e,loaded:a}),t[1]]},yd=e=>(...t)=>vO.asap(()=>e(...t)),yu=v2.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,v2.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(v2.origin),v2.navigator&&/(msie|trident)/i.test(v2.navigator.userAgent)):()=>!0,yc=v2.hasStandardBrowserEnv?{write(e,t,i,a,n,r,o){if("undefined"==typeof document)return;let l=[`${e}=${encodeURIComponent(t)}`];vO.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),vO.isString(a)&&l.push(`path=${a}`),vO.isString(n)&&l.push(`domain=${n}`),!0===r&&l.push("secure"),vO.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function yp(e,t,i){let a=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(a||!1==i)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let ym=e=>e instanceof ye?{...e}:e;function yf(e,t){t=t||{};let i={};function a(e,t,i,a){return vO.isPlainObject(e)&&vO.isPlainObject(t)?vO.merge.call({caseless:a},e,t):vO.isPlainObject(t)?vO.merge({},t):vO.isArray(t)?t.slice():t}function n(e,t,i,n){return vO.isUndefined(t)?vO.isUndefined(e)?void 0:a(void 0,e,i,n):a(e,t,i,n)}function r(e,t){if(!vO.isUndefined(t))return a(void 0,t)}function o(e,t){return vO.isUndefined(t)?vO.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function l(i,n,r){return r in t?a(i,n):r in e?a(void 0,i):void 0}let s={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
28dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(e,t,i)=>n(ym(e),ym(t),i,!0)};return vO.forEach(Object.keys({...e,...t}),function(a){if("__proto__"===a||"constructor"===a||"prototype"===a)return;let r=vO.hasOwnProp(s,a)?s[a]:n,o=r(e[a],t[a],a);vO.isUndefined(o)&&r!==l||(i[a]=o)}),i}let yh=e=>{let t=yf({},e),{data:i,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:r,headers:o,auth:l}=t;if(t.headers=o=ye.from(o),t.url=vV(yp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),vO.isFormData(i)){if(v2.hasStandardBrowserEnv||v2.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(vO.isFunction(i.getHeaders)){let e=i.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,i])=>{t.includes(e.toLowerCase())&&o.set(e,i)})}}if(v2.hasStandardBrowserEnv&&(a&&vO.isFunction(a)&&(a=a(t)),a||!1!==a&&yu(t.url))){let e=n&&r&&yc.read(r);e&&o.set(n,e)}return t},yg="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,i){let a,n,r,o,l,s=yh(e),d=s.data,u=ye.from(s.headers).normalize(),{responseType:c,onUploadProgress:p,onDownloadProgress:m}=s;function f(){o&&o(),l&&l(),s.cancelToken&&s.cancelToken.unsubscribe(a),s.signal&&s.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;let a=ye.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());yn(function(e){t(e),f()},function(e){i(e),f()},{data:c&&"text"!==c&&"json"!==c?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h}),h=null}h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(i(new vN("Request aborted",vN.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){let a=new vN(t&&t.message?t.message:"Network Error",vN.ERR_NETWORK,e,h);a.event=t||null,i(a),h=null},h.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",a=s.transitional||vG;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),i(new vN(t,a.clarifyTimeoutError?vN.ETIMEDOUT:vN.ECONNABORTED,e,h)),h=null},void 0===d&&u.setContentType(null),"setRequestHeader"in h&&vO.forEach(u.toJSON(),function(e,t){h.setRequestHeader(t,e)}),vO.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&"json"!==c&&(h.responseType=s.responseType),m&&([r,l]=yl(m,!0),h.addEventListener("progress",r)),p&&h.upload&&([n,o]=yl(p),h.upload.addEventListener("progress",n),h.upload.addEventListener("loadend",o)),(s.cancelToken||s.signal)&&(a=t=>{h&&(i(!t||t.type?new ya(null,e,h):t),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(a),s.signal&&(s.signal.aborted?a():s.signal.addEventListener("abort",a)));let v=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);if(v&&-1===v2.protocols.indexOf(v))return void i(new vN("Unsupported protocol "+v+":",vN.ERR_BAD_REQUEST,e));h.send(d||null)})},yv=function*(e,t){let i,a=e.byteLength;if(!t||a<t)return void(yield e);let n=0;for(;n<a;)i=n+t,yield e.slice(n,i),n=i},yy=async function*(e,t){for await(let i of yb(e))yield*yv(i,t)},yb=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},y_=(e,t,i,a)=>{let n,r=yy(e,t),o=0,l=e=>{!n&&(n=!0,a&&a(e))};return new ReadableStream({async pull(e){try{let{done:t,value:a}=await r.next();if(t){l(),e.close();return}let n=a.byteLength;if(i){let e=o+=n;i(e)}e.enqueue(new Uint8Array(a))}catch(e){throw l(e),e}},cancel:e=>(l(e),r.return())},{highWaterMark:2})},{isFunction:yx}=vO,yA=(({Request:e,Response:t})=>({Request:e,Response:t}))(vO.global),{ReadableStream:yI,TextEncoder:yw}=vO.global,yk=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},yS=e=>{let t,{fetch:i,Request:a,Response:n}=e=vO.merge.call({skipUndefined:!0},yA,e),r=i?yx(i):"function"==typeof fetch,o=yx(a),l=yx(n);if(!r)return!1;let s=r&&yx(yI),d=r&&("function"==typeof yw?(t=new yw,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),u=o&&s&&yk(()=>{let e=!1,t=new a(v2.origin,{body:new yI,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),c=l&&s&&yk(()=>vO.isReadableStream(new n("").body)),p={stream:c&&(e=>e.body)};
28r&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,i)=>{let a=t&&t[e];if(a)return a.call(t);throw new vN(`Response type '${e}' is not supported`,vN.ERR_NOT_SUPPORT,i)})});let m=async e=>{if(null==e)return 0;if(vO.isBlob(e))return e.size;if(vO.isSpecCompliantForm(e)){let t=new a(v2.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return vO.isArrayBufferView(e)||vO.isArrayBuffer(e)?e.byteLength:(vO.isURLSearchParams(e)&&(e+=""),vO.isString(e))?(await d(e)).byteLength:void 0},f=async(e,t)=>{let i=vO.toFiniteNumber(e.getContentLength());return null==i?m(t):i};return async e=>{let t,{url:r,method:l,data:s,signal:d,cancelToken:m,timeout:h,onDownloadProgress:g,onUploadProgress:v,responseType:y,headers:b,withCredentials:_="same-origin",fetchOptions:x}=yh(e),A=i||fetch;y=y?(y+"").toLowerCase():"text";let I=((e,t)=>{let{length:i}=e=e?e.filter(Boolean):[];if(t||i){let i,a=new AbortController,n=function(e){if(!i){i=!0,o();let t=e instanceof Error?e:this.reason;a.abort(t instanceof vN?t:new ya(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,n(new vN(`timeout of ${t}ms exceeded`,vN.ETIMEDOUT))},t),o=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));let{signal:l}=a;return l.unsubscribe=()=>vO.asap(o),l}})([d,m&&m.toAbortSignal()],h),w=null,k=I&&I.unsubscribe&&(()=>{I.unsubscribe()});try{if(v&&u&&"get"!==l&&"head"!==l&&0!==(t=await f(b,s))){let e,i=new a(r,{method:"POST",body:s,duplex:"half"});if(vO.isFormData(s)&&(e=i.headers.get("content-type"))&&b.setContentType(e),i.body){let[e,a]=ys(t,yl(yd(v)));s=y_(i.body,65536,e,a)}}vO.isString(_)||(_=_?"include":"omit");let i=o&&"credentials"in a.prototype,d={...x,signal:I,method:l.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:i?_:void 0};w=o&&new a(r,d);let m=await (o?A(w,x):A(r,d)),h=c&&("stream"===y||"response"===y);if(c&&(g||h&&k)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});let t=vO.toFiniteNumber(m.headers.get("content-length")),[i,a]=g&&ys(t,yl(yd(g),!0))||[];m=new n(y_(m.body,65536,i,()=>{a&&a(),k&&k()}),e)}y=y||"text";let S=await p[vO.findKey(p,y)||"text"](m,e);return!h&&k&&k(),await new Promise((t,i)=>{yn(t,i,{data:S,headers:ye.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:w})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new vN("Network Error",vN.ERR_NETWORK,e,w,t&&t.response),{cause:t.cause||t});throw vN.from(t,t&&t.code,e,w,t&&t.response)}}},yT=new Map,yC=e=>{let t=e&&e.env||{},{fetch:i,Request:a,Response:n}=t,r=[a,n,i],o=r.length,l,s,d=yT;for(;o--;)l=r[o],void 0===(s=d.get(l))&&d.set(l,s=o?new Map:yS(t)),d=s;return s};yC();let yE={http:null,xhr:yg,fetch:{get:yC}};vO.forEach(yE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let yR=e=>`- ${e}`,yP=e=>vO.isFunction(e)||null===e||!1===e,yO={getAdapter:function(e,t){let i,a,{length:n}=e=vO.isArray(e)?e:[e],r={};for(let o=0;o<n;o++){let n;if(a=i=e[o],!yP(i)&&void 0===(a=yE[(n=String(i)).toLowerCase()]))throw new vN(`Unknown adapter '${n}'`);
28if(a&&(vO.isFunction(a)||(a=a.get(t))))break;r[n||"#"+o]=a}if(!a){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new vN("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(yR).join("\n"):" "+yR(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a}};function yM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ya(null,e)}function yN(e){return yM(e),e.headers=ye.from(e.headers),e.data=yt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yO.getAdapter(e.adapter||v3.adapter,e)(e).then(function(t){return yM(e),t.data=yt.call(e,e.transformResponse,t),t.headers=ye.from(t.headers),t},function(t){return!yi(t)&&(yM(e),t&&t.response&&(t.response.data=yt.call(e,e.transformResponse,t.response),t.response.headers=ye.from(t.response.headers))),Promise.reject(t)})}let yj="1.13.5",yD={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yD[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});let yF={};yD.transitional=function(e,t,i){function a(e,t){return"[Axios v"+yj+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return(i,n,r)=>{if(!1===e)throw new vN(a(n," has been removed"+(t?" in "+t:"")),vN.ERR_DEPRECATED);return t&&!yF[n]&&(yF[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,r)}},yD.spelling=function(e){return(t,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};let yL={assertOptions:function(e,t,i){if("object"!=typeof e)throw new vN("options must be an object",vN.ERR_BAD_OPTION_VALUE);let a=Object.keys(e),n=a.length;for(;n-- >0;){let r=a[n],o=t[r];if(o){let t=e[r],i=void 0===t||o(t,r,e);if(!0!==i)throw new vN("option "+r+" must be "+i,vN.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new vN("Unknown option "+r,vN.ERR_BAD_OPTION)}},validators:yD},yB=yL.validators;class yz{constructor(e){this.defaults=e||{},this.interceptors={request:new vW,response:new vW}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let i=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?i&&!String(e.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+i):e.stack=i}catch(e){}}throw e}}_request(e,t){let i,a;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:r,headers:o}=t=yf(this.defaults,t);void 0!==n&&yL.assertOptions(n,{silentJSONParsing:yB.transitional(yB.boolean),forcedJSONParsing:yB.transitional(yB.boolean),clarifyTimeoutError:yB.transitional(yB.boolean),legacyInterceptorReqResOrdering:yB.transitional(yB.boolean)},!1),null!=r&&(vO.isFunction(r)?t.paramsSerializer={serialize:r}:yL.assertOptions(r,{encode:yB.function,serialize:yB.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),yL.assertOptions(t,{baseUrl:yB.spelling("baseURL"),withXsrfToken:yB.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=o&&vO.merge(o.common,o[t.method]);o&&vO.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ye.concat(l,o);let s=[],d=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;d=d&&e.synchronous;let i=t.transitional||vG;i&&i.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let c=0;if(!d){let e=[yN.bind(this),void 0];for(e.unshift(...s),e.push(...u),a=e.length,i=Promise.resolve(t);c<a;)i=i.then(e[c++],e[c++]);return i}a=s.length;let p=t;for(;c<a;){let e=s[c++],t=s[c++];try{p=e(p)}catch(e){t.call(this,e);break}}try{i=yN.call(this,p)}catch(e){return Promise.reject(e)}for(c=0,a=u.length;c<a;)i=i.then(u[c++],u[c++]);return i}getUri(e){return vV(yp((e=yf(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}vO.forEach(["delete","get","head","options"],function(e){yz.prototype[e]=function(t,i){return this.request(yf(i||{},{method:e,url:t,data:(i||{}).data}))}}),vO.forEach(["post","put","patch"],function(e){function t(t){return function(i,a,n){return this.request(yf(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}yz.prototype[e]=t(),yz.prototype[e+"Form"]=t(!0)});class yU{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let i=this;this.promise.then(e=>{if(!i._listeners)return;let t=i._listeners.length;for(;t-- >0;)i._listeners[t](e);i._listeners=null}),this.promise.then=e=>{let t,a=new Promise(e=>{i.subscribe(e),t=e}).then(e);return a.cancel=function(){i.unsubscribe(t)},a},e(function(e,a,n){i.reason||(i.reason=new ya(e,a,n),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
28subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new yU(function(t){e=t}),cancel:e}}}let yq={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yq).forEach(([e,t])=>{yq[t]=e});let y$=function e(t){let i=new yz(t),a=g5(yz.prototype.request,i);return vO.extend(a,yz.prototype,i,{allOwnKeys:!0}),vO.extend(a,i,null,{allOwnKeys:!0}),a.create=function(i){return e(yf(t,i))},a}(v3);y$.Axios=yz,y$.CanceledError=ya,y$.CancelToken=yU,y$.isCancel=yi,y$.VERSION=yj,y$.toFormData=vz,y$.AxiosError=vN,y$.Cancel=y$.CanceledError,y$.all=function(e){return Promise.all(e)},y$.spread=function(e){return function(t){return e.apply(null,t)}},y$.isAxiosError=function(e){return vO.isObject(e)&&!0===e.isAxiosError},y$.mergeConfig=yf,y$.AxiosHeaders=ye,y$.formToJSON=e=>v5(vO.isHTMLForm(e)?new FormData(e):e),y$.getAdapter=yO.getAdapter,y$.HttpStatusCode=yq,y$.default=y$;let yH=(0,o.createContext)({tenant:null,isLoading:!0,error:null,refreshTenant:async()=>{}}),yV=["eslice.ai","eslice.co","eslice.net","esdevlab.com"],yW=new Set(["portal","admin","api","www","auth","status","docs"]);async function yG(e){if(yW.has(e))return{tenantId:e,tenantName:e,tier:"platform",subdomain:e};let t=function(){var e;let t=globalThis.process;return(null==t||null==(e=t.env)?void 0:e.NEXT_PUBLIC_PLATFORM_API_URL)?t.env.NEXT_PUBLIC_PLATFORM_API_URL:"/api/platform"}();try{let{data:i}=await y$.get("".concat(t,"/branding/public/").concat(e)),a=i.brandKit||{};return{tenantId:i.tenantId||i.id,tenantName:i.name||i.tenantName||e,tier:i.tier||"marketplace",subdomain:e,brandName:a.brandName||i.name||i.tenantName,logoUrl:a.logoUrl||null,logoDarkUrl:a.logoDarkUrl||null,faviconUrl:a.faviconUrl||null,bannerUrl:a.bannerUrl||null,primaryColor:a.primaryColor,secondaryColor:a.secondaryColor,accentColor:a.accentColor,backgroundColor:a.backgroundColor,textColor:a.textColor,fontFamily:a.fontFamily,buttonRadius:a.buttonRadius,companyInfo:i.companyInfo||null,siteNavigation:i.siteNavigation||null,sponsorProfile:i.sponsorProfile||null,metadata:i.metadata||{}}}catch(t){return{tenantId:e,tenantName:"platform"===e?"eSlice":e,tier:"platform"===e?"platform":"marketplace",subdomain:e}}}let yK=e=>{let{children:t,subdomainAliases:i}=e,[a,n]=(0,o.useState)(null),[l,s]=(0,o.useState)(!0),[d,u]=(0,o.useState)(null),c=async()=>{s(!0),u(null);try{let e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=e.split(":")[0];if("localhost"===i||"127.0.0.1"===i){{let e=new URLSearchParams(window.location.search).get("tenant");if(e)return e}return"platform"}if(i.endsWith(".localhost")){let e=i.replace(".localhost","");return"app"===e||t.includes(e)?"platform":e}for(let e of yV)if(i.endsWith(e)){let a=i.replace(".".concat(e),"");if("app"===a||t.includes(a))return"platform";return a}return i}(window.location.hostname,i),t=await yG(e);n(t)}catch(e){u(e.message||"Failed to load tenant information")}finally{s(!1)}};return(0,o.useEffect)(()=>{c()},[]),(0,r.jsx)(yH.Provider,{value:{tenant:a,isLoading:l,error:d,refreshTenant:c},children:t})};function yZ(){let e=(0,o.useContext)(yH);if(!e)throw Error("useTenant must be used within a TenantProvider");return e}i(3727),(0,h6.A)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonUnchecked"),(0,h6.A)((0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),(0,h6.A)((0,r.jsx)("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"}),"HourglassEmpty"),(0,h6.A)((0,r.jsx)("path",{d:"m6 18 8.5-6L6 6zM16 6v12h2V6z"}),"SkipNext"),gn.A;var yY=i(33),yX=i(3957),yJ=i(6570);let yQ={real_estate:"Real estate investments are speculative and involve substantial risk. They are not suitable for all investors. Real estate values can decrease and are affected by various market conditions, interest rates, availability of financing, and local and regional economic factors. Investors may experience delays in distributions and may not receive a return of their principal.",startups:"Investments in startups and early-stage companies are speculative and involve a high degree of risk. These investments are illiquid and investors may lose their entire investment. Startup investments should only be made as part of a diversified investment portfolio. Only invest an amount you are prepared to lose entirely.",co_equity:"Co-equity home ownership involves risk. This is not a mortgage or traditional home loan. Property values may decrease. The co-equity arrangement is subject to the terms of the co-equity agreement and applicable state real property laws. This does not constitute an offer of credit or a residential mortgage loan. Consult with a qualified attorney and financial advisor before entering into any co-equity arrangement.",art_collectibles:"Investments in art, collectibles, and alternative assets are speculative and involve substantial risk. These investments are illiquid, and there may be no secondary market. Values are based on appraisals and may not reflect actual sale prices. Storage, insurance, and authentication costs may reduce returns.",generic:"Investments offered through this platform are speculative and involve risk. Investors should carefully review all offering documents before making an investment decision. These offerings are not bank deposits and are not insured by the FDIC or any government agency."},y0={investor_earnings:{label:"Investor Earnings Safe Harbor",text:"Any targeted or projected returns shown in an offering are estimates prepared by the issuer and are not a guarantee of future results. All investments involve risk, including the potential loss of principal. eSlice is a software and listing platform; it is not a registered broker-dealer, investment adviser, or funding portal (a FINRA funding portal application is pending), does not hold investor funds, and does not recommend or endorse any offering. Offer
28ings are conducted by issuers under applicable exemptions with their own counsel. Prospective investors should review all offering documents and risk disclosures before committing capital."},homebuyer_equity:{label:"Homebuyer Equity & Funding",text:"Equity accumulated through the co-equity model is an illustration only and will vary with property location, purchase price, market conditions, and the terms of each co-equity agreement. Participation is contingent upon (i) the homebuyer obtaining mortgage approval for the primary loan where required and (ii) the successful funding of the required co-equity capital by third-party investors through an issuer's offering listed on the eSlice marketplace. eSlice does not guarantee that any property or buyer will be funded."},fea_licensee_income:{label:"FEA Licensee Income Disclosure",text:"Any licensee earnings shown on this site are hypothetical illustrations based on stated assumptions and the current Professional Service Fee schedule; they are not a guarantee, projection, or representation of income. Individual results depend on local market demand, lead conversion, and the Licenseeâs own efforts. Licensees operate under a Platform & Data License agreement; the program is not offered as a franchise."},marketplace_partner_revenue:{label:"Marketplace Partner Revenue",text:"Any marketplace-partner revenue figures shown are hypothetical illustrations. A partnerâs revenue share is a fixed percentage of the software subscription and platform fees generated by its marketplace; it is not tied to the volume of capital raised. eSlice does not guarantee deal flow, subscriber volume, or funding outcomes for any partner or its clients."}},y1={reg_d_506c:"Securities are offered pursuant to an exemption from registration under Rule 506(c) of Regulation D of the Securities Act of 1933, as amended. Only accredited investors who meet the applicable suitability requirements may invest. General solicitation is permitted but all investors must be verified accredited investors.",reg_d_506b:"Securities are offered pursuant to an exemption from registration under Rule 506(b) of Regulation D of the Securities Act of 1933, as amended. These securities have not been registered with the SEC or any state securities commission. No general solicitation or advertising is permitted.",reg_a:"Securities are being offered pursuant to Regulation A under the Securities Act of 1933, as amended. This offering has been qualified by the SEC. However, qualification does not mean that the SEC has approved or disapproved the securities or determined if the offering circular is truthful or complete. Both accredited and non-accredited investors may participate, subject to investment limits for non-accredited investors.",reg_cf:"Securities are being offered pursuant to Regulation Crowdfunding under Section 4(a)(6) of the Securities Act of 1933, as amended. Investment limits apply. During the 12-month period preceding the date of such transaction, the aggregate amount of securities sold to the investor under Regulation Crowdfunding may not exceed applicable limits based on the investor's annual income and net worth.",none:""};function y2(e){let{brandName:t="eSlice",vertical:i="generic",regulation:a="reg_d_506c",brokerDealerName:n,brokerDealerCrd:o,showSafeHarbor:l=!0,showAccreditation:s=!0,businessDisclaimers:d=[],customDisclaimer:u,legalLinks:c={},hideLegalLinks:p=!1}=e,{termsOfService:m="/legal/terms",privacyPolicy:f="/legal/privacy",disclosures:h="/legal/disclosures",regulatoryInfo:g="/legal/regulatory",cookiePolicy:v="/legal/cookies"}=c;return(0,r.jsx)(gQ.A,{component:"section","aria-label":"Legal disclaimers and disclosures",sx:{bgcolor:"grey.900",color:"grey.400",pt:{xs:3,md:4},pb:{xs:2,md:2}},children:(0,r.jsxs)(yY.A,{maxWidth:"lg",children:[(0,r.jsxs)(gJ.A,{variant:"caption",sx:{display:"block",lineHeight:1.8,mb:2,fontSize:"0.7rem"},children:[(0,r.jsx)("strong",{style:{color:"#9e9e9e"},children:"Risk Disclosure:"})," ","All investments involve risk, including the possible loss of principal. Past performance does not guarantee future results. Any historical returns, expected returns, or probability projections may not reflect actual future performance. While the data we use from third parties is believed to be reliable, we cannot ensure the accuracy or c
28ompleteness of data provided by investors or other third parties. Neither the Securities and Exchange Commission nor any federal or state securities commission or regulatory authority has recommended or approved any investment or the accuracy or completeness of any of the information or materials provided by or through this platform."]}),yQ[i]&&(0,r.jsx)(gJ.A,{variant:"caption",sx:{display:"block",lineHeight:1.8,mb:2,fontSize:"0.7rem"},children:yQ[i]}),"none"!==a&&y1[a]&&(0,r.jsxs)(gJ.A,{variant:"caption",sx:{display:"block",lineHeight:1.8,mb:2,fontSize:"0.7rem"},children:[(0,r.jsx)("strong",{style:{color:"#9e9e9e"},children:"Offering Disclaimer:"})," ",y1[a]]}),s&&("reg_d_506c"===a||"reg_d_506b"===a)&&(0,r.jsxs)(gJ.A,{variant:"caption",sx:{display:"block",lineHeight:1.8,mb:2,fontSize:"0.7rem"},children:[(0,r.jsx)("strong",{style:{color:"#9e9e9e"},children:"Accredited Investors Only:"})," ",'Certain securities listed on this platform by issuers are available only to "accredited investors" as defined under Rule 501 of Regulation D promulgated under the Securities Act of 1933, as amended. Verification of accredited investor status is required prior to investment. An accredited investor is generally defined as a natural person with individual net worth, or joint net worth with a spouse, exceeding $1,000,000 (excluding the value of the primary residence), or individual income exceeding $200,000 in each of the two most recent years ($300,000 joint income with a spouse), with a reasonable expectation of the same income level in the current year.']}),d.map(e=>{let t=y0[e];return t?(0,r.jsxs)(gJ.A,{variant:"caption",sx:{display:"block",lineHeight:1.8,mb:2,fontSize:"0.7rem"},children:[(0,r.jsxs)("strong",{style:{color:"#9e9e9e"},children:[t.label,":"]})," ",t.text]},e):null}),l&&(0,r.jsxs)(gJ.A,{variant:"caption",sx:{display:"block",lineHeight:1.8,mb:2,fontSize:"0.7rem"},children:[(0,r.jsx)("strong",{style:{color:"#9e9e9e"},children:"Safe Harbor Statement:"})," ",'This site may contain forward-looking statements within the meaning of the Private Securities Litigation Reform Act of 1995. Forward-looking statements describe future expectations, plans, results, or strategies and are generally preceded by words such as "may," "future," "plan," "planned," "will," "should," "expected," "anticipates," "eventually," "projected," "proposed," "estimated," or similar words. These statements are based on current expectations and projections about future events and involve known and unknown risks, uncertainties, and other factors that may cause actual results, levels of activity, performance, or achievements to differ materially from those expressed or implied by the forward-looking statements.']}),n&&(0,r.jsxs)(gJ.A,{variant:"caption",sx:{display:"block",lineHeight:1.8,mb:2,fontSize:"0.7rem"},children:[(0,r.jsx)("strong",{style:{color:"#9e9e9e"},children:"Broker-Dealer:"})," Securities offered through ",n,o&&" (CRD# ".concat(o,")"),", member"," ",(0,r.jsx)(yX.A,{href:"https://www.finra.org",target:"_blank",rel:"noopener",color:"inherit",underline:"always",children:"FINRA"})," / ",(0,r.jsx)(yX.A,{href:"https://www.sipc.org",target:"_blank",rel:"noopener",color:"inherit",underline:"always",children:"SIPC"}),". Check the background of this firm on"," ",(0,r.jsx)(yX.A,{href:"https://brokercheck.finra.org",target:"_blank",rel:"noopener",color:"inherit",underline:"always",children:"FINRA BrokerCheck"}),"."]}),u&&(0,r.jsx)(gJ.A,{variant:"caption",sx:{display:"block",lineHeight:1.8,mb:2,fontSize:"0.7rem"},children:u}),(0,r.jsx)(yJ.A,{sx:{borderColor:"grey.800",my:2}}),!p&&(0,r.jsxs)(gQ.A,{sx:{display:"flex",flexWrap:"wrap",gap:{xs:1,sm:2},justifyContent:"center",mb:1},children:[(0,r.jsx)(yX.A,{href:m,color:"grey.500",variant:"caption",underline:"hover",children:"Terms of Service"}),(0,r.jsx)(yX.A,{href:f,color:"grey.500",variant:"caption",underline:"hover",children:"Privacy Policy"}),(0,r.jsx)(yX.A,{href:h,color:"grey.500",variant:"caption",underline:"hover",children:"Disclosures"}),(0,r.jsx)(yX.A,{href:g,color:"grey.500",variant:"caption",underline:"hover",children:"Regulatory Information"}),(0,r.jsx)(yX.A,{href:v,color:"grey.500",variant:"caption",underline:"hover",children:"Cookie Policy"})]}
28),(0,r.jsxs)(gJ.A,{variant:"caption",sx:{display:"block",textAlign:"center",fontSize:"0.65rem",mt:+!p},children:["\xa9 ",new Date().getFullYear()," ",t,", Inc. All rights reserved. ",t," and the ",t," logo are registered trademarks."]})]})})}function y5(){let e=(0,l.useRouter)(),t=(0,o.useContext)(hJ),i=(0,o.useContext)(hr),a=null==i?void 0:i.setTokenDirectly;return(0,o.useEffect)(()=>{if(!g2.isInPortalIframe())return;let i=["eslice.ai","eslice.net","eslice.co","esdevlab.com"];function n(n){var r,o,l,s,d;let u=new URL(n.origin).hostname.split(".").slice(-2).join("."),c=u===window.location.hostname.split(".").slice(-2).join("."),p=i.includes(u);if(c||p){if((null==(r=n.data)?void 0:r.type)==="zone:search"){let e=window.__ZONE_SEARCH_HANDLER__;e&&"function"==typeof e&&e(n.data.query)}if((null==(o=n.data)?void 0:o.type)==="zone:executeQuickAction"){let e=window.__ZONE_QUICK_ACTION_HANDLER__;e&&"function"==typeof e&&e(n.data.actionId)}if((null==(l=n.data)?void 0:l.type)==="zone:navigateInIframe"&&n.data.path&&e.asPath.split("?")[0].split("#")[0]!==n.data.path.split("?")[0].split("#")[0]&&e.push(n.data.path),(null==(s=n.data)?void 0:s.type)==="zone:themeChange"&&n.data.mode&&t&&t.setMode(n.data.mode),(null==(d=n.data)?void 0:d.type)==="zone:auth"&&n.data.token){let e=n.data.token;"string"==typeof e&&/^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*$/.test(e)&&(null==a||a(e))}}}return window.addEventListener("message",n),()=>window.removeEventListener("message",n)},[e,t,a]),(0,o.useEffect)(()=>{if(!e.events||!g2.isInPortalIframe())return;let t=e.basePath||"";function i(e){let i=t&&e.startsWith(t)?e.slice(t.length)||"/":e;g2.syncRoute(i)}return e.events.on("routeChangeComplete",i),()=>e.events.off("routeChangeComplete",i)},[e]),null}var y3=i(8382);function y4(){let e=(0,l.useRouter)(),[t,i]=(0,o.useState)(!1),[a,n]=(0,o.useState)(!1),s=(0,o.useRef)(void 0),d=(0,o.useRef)(0);return((0,o.useEffect)(()=>n(!0),[]),(0,o.useEffect)(()=>{if(!a)return;let t=()=>{d.current=Date.now(),i(!0),clearTimeout(s.current)},n=()=>{let e=Math.max(0,500-(Date.now()-d.current));clearTimeout(s.current),s.current=setTimeout(()=>i(!1),e)};return e.events.on("routeChangeStart",t),e.events.on("routeChangeComplete",n),e.events.on("routeChangeError",n),()=>{e.events.off("routeChangeStart",t),e.events.off("routeChangeComplete",n),e.events.off("routeChangeError",n),clearTimeout(s.current)}},[e.events,a]),a&&t)?(0,r.jsx)(y3.A,{sx:{position:"fixed",top:0,left:0,right:0,zIndex:e=>e.zIndex.appBar+1,height:3,backgroundColor:"transparent","& .MuiLinearProgress-bar":{backgroundColor:"primary.main",boxShadow:e=>"0 0 8px ".concat(e.palette.primary.main,", 0 0 4px ").concat(e.palette.primary.main)}}}):null}var y9=i(3727);function y6(){let[e,t]=(0,o.useState)({isLoggedIn:!1,user:null,portalUrl:"/login",initials:""});return(0,o.useEffect)(()=>{let e=function(){try{let e=document.cookie.split(";").find(e=>e.trim().startsWith("platform_auth="));if(!e){let e=localStorage.getItem("platform_token");if(!e)return null;return y8(e)}let t=e.split("=").slice(1).join("=").trim();if(!t)return null;return y8(t)}catch(e){return null}}();if(e){let i=function(e){let t=function(e){try{var t;return void 0!==y9&&(null==(t=y9.env)?void 0:t[e])||""}catch(e){return""}}("NEXT_PUBLIC_PORTAL_URL")||"";return e.includes("platform_admin")||e.includes("admin")?t?"".concat(t,"/app/admin"):"http://localhost:5190":e.includes("sponsor")||e.includes("sponsor_admin")?t?"".concat(t,"/app/sponsor"):"http://localhost:5192":e.includes("investor")?t?"".concat(t,"/app/investor"):"http://localhost:5191":e.includes("fea_operator")||e.includes("operator")?t?"".concat(t,"/app/fea"):"http://localhost:5193":t||"http://localhost:8888"}(e.roles),a=e.name.split(" ").filter(Boolean).slice(0,2).map(e=>e[0].toUpperCase()).join("");t({isLoggedIn:!0,user:e,portalUrl:i,initials:a})}},[]),e}function y8(e){try{let t=e.split(".");if(3!==t.length)return null;let i=JSON.parse(atob(t[1])),a=i.name||[i.firstName,i.lastName].filter(Boolean).join(" ")||i.email||"User";return{id:i.sub||i.id||"",name:a,email:i.email||"",roles:i.roles||[],tenantId:i.tenantId||i.tid||"",tenantName:i.tenantName||"",tenantTier:i.tenantTier||""}}catch(e){return null}}let y7={generate_lead:"Lead",sign_up:"CompleteRegistration",purchase:"Purchase",add_to_cart:"AddToCart",begin_checkout:"InitiateCheckout",contact:"Contact",subscribe:"Subscribe",submit_application:"SubmitApplication",page_view:"PageView",view_content:"ViewContent",search:"Search"},be=(0,o.createContext)({track:()=>{},identify:()=>{},page:()=>{}});function bt(){return(0,o.useContext)(be)}function bi(e){var t,i;let{children:a,endpoint:n="/api/analytics/events",tenantId:s,enabled:d=!0,disableThirdParty:u=!1}=e,c=(0,l.useRouter)(),p=(0,o.useRef)([]),m=(0,o.useRef)({userId:null,traits:{}}),f=(0,o.useRef)(null),h=(0,o.useContext)(hr),g=null!=(t=null==h?void 0:h.user)?t:null,v=null!=(i=null==h?void 0:h.isAuthenticated)&&i,y=(0,o.useCallback)(async()=>
28{if(!d||0===p.current.length)return;let e=p.current.splice(0,20);try{await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({events:e}),keepalive:!0})}catch(t){p.current.length<100&&p.current.unshift(...e)}},[d,n]);(0,o.useEffect)(()=>{if(!d)return;f.current=setInterval(y,5e3);let e=()=>{y()};return window.addEventListener("beforeunload",e),()=>{y(),f.current&&clearInterval(f.current),window.removeEventListener("beforeunload",e)}},[d,y]);let b=(0,o.useCallback)((e,t)=>{d&&(p.current.push({event:e,distinctId:m.current.userId,timestamp:new Date().toISOString(),properties:{...m.current.traits,...t,tenantId:s}}),p.current.length>=20&&y(),u||function(e,t){try{let i=window.gtag;"function"==typeof i&&i("event",e,t)}catch(e){}try{let e=window.gtag;"function"==typeof e&&(null==t?void 0:t.sendTo)&&e("event","conversion",{send_to:t.sendTo})}catch(e){}try{let i=window.fbq;if("function"==typeof i){let a=y7[e];a?i("track",a,t):i("trackCustom",e,t)}}catch(e){}try{let i=window.posthog;(null==i?void 0:i.__loaded)&&"function"==typeof i.capture&&i.capture(e,t)}catch(e){}try{let i=window.lintrk;"function"==typeof i&&i("track",{conversion_id:(null==t?void 0:t.conversionId)||e})}catch(e){}try{let i=window.twq;"function"==typeof i&&i("event",e,t)}catch(e){}}(e,t))},[d,s,u,y]),_=(0,o.useCallback)((e,t)=>{m.current={userId:e,traits:{...m.current.traits,...t}}},[]),x=(0,o.useCallback)((e,t)=>{b("page_view",{url:e||window.location.href,path:window.location.pathname,referrer:"undefined"!=typeof document?document.referrer:"",...t})},[b]);return(0,o.useEffect)(()=>{v&&g?_(g.id,{email:g.email,name:g.name,tenantId:g.tenantId,tenantName:g.tenantName,roles:g.roles}):m.current={userId:null,traits:{}}},[v,g,_]),(0,o.useEffect)(()=>{var e;if(!d)return;let t=e=>{x(e)};return null==(e=c.events)||e.on("routeChangeComplete",t),x(),()=>{var e;null==(e=c.events)||e.off("routeChangeComplete",t)}},[d]),(0,r.jsx)(be.Provider,{value:{track:b,identify:_,page:x},children:a})}function ba(e,t){let i={"Content-Type":"application/json"};return e&&(i["X-Tenant-Id"]=e),t?i["X-Marketplace-Tenant-Id"]=t:e&&(i["X-Marketplace-Tenant-Id"]=e),i}i(3727),i(3727);var bn="undefined"!=typeof window?window:void 0,br="undefined"!=typeof globalThis?globalThis:bn;"undefined"==typeof self&&(br.self=br),"undefined"==typeof File&&(br.File=function(){});var bo=Array.prototype,bl=bo.forEach,bs=bo.indexOf,bd=null==br?void 0:br.navigator,bu=null==br?void 0:br.document,bc=null==br?void 0:br.location,bp=null==br?void 0:br.fetch,bm=null!=br&&br.XMLHttpRequest&&"withCredentials"in new br.XMLHttpRequest?br.XMLHttpRequest:void 0,bf=null==br?void 0:br.AbortController,bh=null==bd?void 0:bd.userAgent,bg=null!=bn?bn:{},bv={DEBUG:!1,LIB_VERSION:"1.350.0"};function by(e,t,i,a,n,r,o){try{var l=e[r](o),s=l.value}catch(e){return void i(e)}l.done?t(s):Promise.resolve(s).then(a,n)}function bb(e){return function(){var t=this,i=arguments;return new Promise(function(a,n){var r=e.apply(t,i);function o(e){by(r,a,n,o,l,"next",e)}function l(e){by(r,a,n,o,l,"throw",e)}o(void 0)})}}function b_(){return(b_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}function bx(e,t){if(null==e)return{};var i={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;i[a]=e[a]}return i}var bA=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"],bI=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],bw=function(e,t){if(void 0===t&&(t=[]),!e)return!1;var i=e.toLowerCase();return bI.concat(t).some(e=>{var t=e.toLowerCase();return -1!==i.indexOf(t)})};function bk(e,t){return -1!==e.indexOf(t)}var bS=function(e){return e.trim()},bT=function(e){return e.replace(/^\$/,"")},bC=Array.isArray,bE=Object.prototype,bR=bE.hasOwnProperty,bP=bE.toString,bO=bC||function(e){return"[object Array]"===bP.call(e)}
28,bM=e=>"function"==typeof e,bN=e=>e===Object(e)&&!bO(e),bj=e=>{if(bN(e)){for(var t in e)if(bR.call(e,t))return!1;return!0}return!1},bD=e=>void 0===e,bF=e=>"[object String]"==bP.call(e),bL=e=>bF(e)&&0===e.trim().length,bB=e=>null===e,bz=e=>bD(e)||bB(e),bU=e=>"[object Number]"==bP.call(e)&&e==e,bq=e=>bU(e)&&e>0,b$=e=>"[object Boolean]"===bP.call(e),bH=e=>bk(bA,e);function bV(e){return null===e||"object"!=typeof e}function bW(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function bG(e){return!bD(Event)&&function(e,t){try{return e instanceof t}catch(e){return!1}}(e,Event)}var bK=[!0,"true",1,"1","yes"],bZ=e=>bk(bK,e),bY=[!1,"false",0,"0","no"];function bX(e,t,i,a,n){return t>i&&(a.warn("min cannot be greater than max."),t=i),bU(e)?e>i?(a.warn(" cannot be greater than max: "+i+". Using max value instead."),i):e<t?(a.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(a.warn(" must be a number. using max or fallback. max: "+i+", fallback: "+n),bX(n||i,t,i,a))}class bJ{constructor(e){this.t={},this.i=e.i,this.o=bX(e.bucketSize,0,100,e.h),this.m=bX(e.refillRate,0,this.o,e.h),this.$=bX(e.refillInterval,0,864e5,e.h)}S(e,t){var i=Math.floor((t-e.lastAccess)/this.$);if(i>0){var a=i*this.m;e.tokens=Math.min(e.tokens+a,this.o),e.lastAccess=e.lastAccess+i*this.$}}consumeRateLimit(e){var t,i=Date.now(),a=String(e),n=this.t[a];return n?this.S(n,i):(n={tokens:this.o,lastAccess:i},this.t[a]=n),0===n.tokens||(n.tokens--,0===n.tokens&&(null==(t=this.i)||t.call(this,e)),0===n.tokens)}stop(){this.t={}}}var bQ,b0,b1,b2,b5,b3,b4,b9,b6,b8="Mobile",b7="Android",_e="Tablet",_t=b7+" "+_e,_i="iPad",_a="Apple",_n=_a+" Watch",_r="Safari",_o="BlackBerry",_l="Samsung",_s=_l+"Browser",_d=_l+" Internet",_u="Chrome",_c=_u+" OS",_p=_u+" iOS",_m="Internet Explorer",_f=_m+" "+b8,_h="Opera",_g=_h+" Mini",_v="Edge",_y="Microsoft "+_v,_b="Firefox",__=_b+" iOS",_x="Nintendo",_A="PlayStation",_I="Xbox",_w=b7+" "+b8,_k=b8+" "+_r,_S="Windows",_T=_S+" Phone",_C="Nokia",_E="Ouya",_R="Generic",_P=_R+" "+b8.toLowerCase(),_O=_R+" "+_e.toLowerCase(),_M="Konqueror",_N="(\\d+(\\.\\d+)?)",_j=RegExp("Version/"+_N),_D=RegExp(_I,"i"),_F=RegExp(_A+" \\w+","i"),_L=RegExp(_x+" \\w+","i"),_B=RegExp(_o+"|PlayBook|BB10","i"),_z={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},_U=function(e,t){let i;return t=t||"",bk(e," OPR/")&&bk(e,"Mini")?_g:bk(e," OPR/")?_h:_B.test(e)?_o:bk(e,"IE"+b8)||bk(e,"WPDesktop")?_f:bk(e,_s)?_d:bk(e,_v)||bk(e,"Edg/")?_y:bk(e,"FBIOS")?"Facebook "+b8:bk(e,"UCWEB")||bk(e,"UCBrowser")?"UC Browser":bk(e,"CriOS")?_p:bk(e,"CrMo")||bk(e,_u)?_u:bk(e,b7)&&bk(e,_r)?_w:bk(e,"FxiOS")?__:bk(e.toLowerCase(),_M.toLowerCase())?_M:(i=t)&&bk(i,_a)||bk(e,_r)&&!bk(e,_u)&&!bk(e,b7)?bk(e,b8)?_k:_r:bk(e,_b)?_b:bk(e,"MSIE")||bk(e,"Trident/")?_m:bk(e,"Gecko")?_b:""},_q={[_f]:[RegExp("rv:"+_N)],[_y]:[RegExp(_v+"?\\/"+_N)],[_u]:[RegExp("("+_u+"|CrMo)\\/"+_N)],[_p]:[RegExp("CriOS\\/"+_N)],"UC Browser":[RegExp("(UCBrowser|UCWEB)\\/"+_N)],[_r]:[_j],[_k]:[_j],[_h]:[RegExp("(Opera|OPR)\\/"+_N)],[_b]:[RegExp(_b+"\\/"+_N)],[__]:[RegExp("FxiOS\\/"+_N)],[_M]:[RegExp("Konqueror[:/]?"+_N,"i")],[_o]:[RegExp(_o+" "+_N),_j],[_w]:[RegExp("android\\s"+_N,"i")],[_d]:[RegExp(_s+"\\/"+_N)],[_m]:[RegExp("(rv:|MSIE )"+_N)],Mozilla:[RegExp("rv:"+_N)]},_$=function(e,t){var i=_q[_U(e,t)];if(bD(i))return null;for(var a=0;a<i.length;a++){var n=i[a],r=e.match(n);if(r)return parseFloat(r[r.length-2])}return null},_H=[[RegExp(_I+"; "+_I+" (.*?)[);]","i"),e=>[_I,e&&e[1]||""]],[RegExp(_x,"i"),[_x,""]],[RegExp(_A,"i"),[_A,""]],[_B,[_o,""]],[RegExp(_S,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[_T,""];if(new RegExp(b8).test(t)&&!/IEMobile\b/.test(t))return[_S+" "+b8,""];var i=/Windows NT ([0-9.]+)/i.exec(t);if(i&&i[1]){var a=_z[i[1]]||"";return/arm/i.test(t)&&(a="RT"),[_S,a]}return[_S,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=bD(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+b7+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+b7+")","i"),e=>e&&e[2]?[b7,[e[2],e[3],e[4]||"0"].join(".")]:[b7,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var i=[e[1],e[2],e[3]||"0"];t[1]=i.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[_c,""]],[/Linux|debian/i,["Linux",""]]],_V=function(e){return _L.test(e)?_x:_F.test(e)?_A:_D.test(e)?_I:RegExp(_E,"i").test(e)?_E:RegExp("("+_T+"|WPDesktop)","i").test(e)?_T:/iPad/.test(e)?_i:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?_n:_B.test(e)?_o:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(_C,"i").test(e)?_C:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(b8).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?b7:_t:RegExp("(pda|"+b8+")","i").test(e)?_P:Reg
28Exp(_e,"i").test(e)&&!RegExp(_e+" pc","i").test(e)?_O:""},_W=e=>e instanceof Error;class _G{constructor(e,t,i){void 0===i&&(i=[]),this.coercers=e,this.stackParser=t,this.modifiers=i}buildFromUnknown(e,t){void 0===t&&(t={});var i=t&&t.mechanism||{handled:!0,type:"generic"},a=this.buildCoercingContext(i,t,0).apply(e),n=this.buildParsingContext(t),r=this.parseStacktrace(a,n);return{$exception_list:this.convertToExceptionList(r,i),$exception_level:"error"}}modifyFrames(e){var t=this;return bb(function*(){for(var i of e)i.stacktrace&&i.stacktrace.frames&&bO(i.stacktrace.frames)&&(i.stacktrace.frames=yield t.applyModifiers(i.stacktrace.frames));return e})()}coerceFallback(e){var t;return{type:"Error",value:"Unknown error",stack:null==(t=e.syntheticException)?void 0:t.stack,synthetic:!0}}parseStacktrace(e,t){var i,a;return null!=e.cause&&(i=this.parseStacktrace(e.cause,t)),""!=e.stack&&null!=e.stack&&(a=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?t.skipFirstLines:0),t.chunkIdMap)),b_({},e,{cause:i,stack:a})}applyChunkIds(e,t){return e.map(e=>(e.filename&&t&&(e.chunk_id=t[e.filename]),e))}applyCoercers(e,t){for(var i of this.coercers)if(i.match(e))return i.coerce(e,t);return this.coerceFallback(t)}applyModifiers(e){var t=this;return bb(function*(){var i=e;for(var a of t.modifiers)i=yield a(i);return i})()}convertToExceptionList(e,t){var i,a,n,r={type:e.type,value:e.value,mechanism:{type:null!=(i=t.type)?i:"generic",handled:null==(a=t.handled)||a,synthetic:null!=(n=e.synthetic)&&n}};e.stack&&(r.stacktrace={type:"raw",frames:e.stack});var o=[r];return null!=e.cause&&o.push(...this.convertToExceptionList(e.cause,b_({},t,{handled:!0}))),o}buildParsingContext(e){var t;return{chunkIdMap:function(e){var t=globalThis._posthogChunkIds;if(t){var i=Object.keys(t);return b6&&i.length===b9||(b9=i.length,b6=i.reduce((i,a)=>{b4||(b4={});var n=b4[a];if(n)i[n[0]]=n[1];else for(var r=e(a),o=r.length-1;o>=0;o--){var l=r[o],s=null==l?void 0:l.filename,d=t[a];if(s&&d){i[s]=d,b4[a]=[s,d];break}}return i},{})),b6}}(this.stackParser),skipFirstLines:null!=(t=e.skipFirstLines)?t:1}}buildCoercingContext(e,t,i){void 0===i&&(i=0);var a=(i,a)=>{if(a<=4){var n=this.buildCoercingContext(e,t,a);return this.applyCoercers(i,n)}};return b_({},t,{syntheticException:0==i?t.syntheticException:void 0,mechanism:e,apply:e=>a(e,i),next:e=>a(e,i+1)})}}function _K(e,t,i,a,n){var r={platform:e,filename:t,function:"<anonymous>"===i?"?":i,in_app:!0};return bD(a)||(r.lineno=a),bD(n)||(r.colno=n),r}var _Z=(e,t)=>{var i=-1!==e.indexOf("safari-extension"),a=-1!==e.indexOf("safari-web-extension");return i||a?[-1!==e.indexOf("@")?e.split("@")[0]:"?",i?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},_Y=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,_X=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_J=/\((\S*)(?::(\d+))(?::(\d+))\)/,_Q=(e,t)=>{var i=_Y.exec(e);if(i){var[,a,n,r]=i;return _K(t,a,"?",+n,+r)}var o=_X.exec(e);if(o){if(o[2]&&0===o[2].indexOf("eval")){var l=_J.exec(o[2]);l&&(o[2]=l[1],o[3]=l[2],o[4]=l[3])}var[s,d]=_Z(o[1]||"?",o[2]);return _K(t,d,s,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},_0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,_1=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,_2=(e,t)=>{var i=_0.exec(e);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var a=_1.exec(i[3]);a&&(i[1]=i[1]||"eval",i[3]=a[1],i[4]=a[2],i[5]="")}var n=i[3],r=i[1]||"?";return[r,n]=_Z(r,n),_K(t,n,r,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}},_5=/\(error: (.*)\)/;class _3{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,t){var i=bF(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:i?e.stack:void 0,cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var t=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?t+": "+e.message:t}isDOMException(e){return bW(e,"DOMException")}isDOMError(e){return bW(e,"DOMError")}}class _4{match(e){return e instanceof Error}coerce(e,t){return{type:this.getType(e),value:this.getMessage(e,t),stack:this.getStack(e),cause:e.cause?t.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,t){var i=e.message;return i.error&&"string"==typeof i.error.message?String(i.error.message):String(i)}getStack(e){return e.stacktrace||e.stack||void 0}}class _9{constructor(){}match(e){return bW(e,"ErrorEvent")&&null!=e.error}coerce(e,t){var i;return t.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}}var _6=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class _8{match(e){return"string"==typeof e}coerce(e,t){var i,[a,n]=this.getInfos(e);return{type:null!=a?a:"Error",value:null!=n?n:e,stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}getInfos(e){var t="Error",i=e,a=e.match(_6);return a&&(t=a[1],i=a[2]),[t,i]}}var _7=["fatal","error","warning","log","info","debug"];function xe(e,t){void 0===t&&(t=40);var i=Object.keys(e);if(i.sort(),!i.length)return"[object has no keys]";for(var a=i.length;a>0;a--){var n=i.slice(0,a).join(", ");
vendor: 7,356 bytes, line 28
28if(!(n.length>t))return a===i.length||n.length<=t?n:n.slice(0,t)+"..."}return""}class xt{match(e){return"object"==typeof e&&null!==e}coerce(e,t){var i,a=this.getErrorPropertyFromObject(e);return a?t.apply(a):{type:this.getType(e),value:this.getValue(e),stack:null==(i=t.syntheticException)?void 0:i.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return bG(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&"string"==typeof e.name){var t="'"+e.name+"' captured as exception";return"message"in e&&"string"==typeof e.message&&(t+=" with message: '"+e.message+"'"),t}if("message"in e&&"string"==typeof e.message)return e.message;var i=this.getObjectClassName(e);return(i&&"Object"!==i?"'"+i+"'":"Object")+" captured as exception with keys: "+xe(e)}isSeverityLevel(e){return bF(e)&&!bL(e)&&_7.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var i=e[t];if(_W(i))return i}}getObjectClassName(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){return}}}class xi{match(e){return bG(e)}coerce(e,t){var i,a=e.constructor.name;return{type:a,value:a+" captured as exception with keys: "+xe(e),stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}}class xa{match(e){return bV(e)}coerce(e,t){var i;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}}}class xn{match(e){return bW(e,"PromiseRejectionEvent")}coerce(e,t){var i,a=this.getUnhandledRejectionReason(e);return bV(a)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(a),stack:null==(i=t.syntheticException)?void 0:i.stack,synthetic:!0}:t.apply(a)}getUnhandledRejectionReason(e){if(bV(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}}var xr=function(e,t){var{debugEnabled:i}=void 0===t?{}:t,a={k:function(t){if(bn&&(bv.DEBUG||bg.POSTHOG_DEBUG||i)&&!bD(bn.console)&&bn.console){for(var a=("__rrweb_original__"in bn.console[t])?bn.console[t].__rrweb_original__:bn.console[t],n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];a(e,...r)}},info:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];a.k("log",...t)},warn:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];a.k("warn",...t)},error:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];a.k("error",...t)},critical:function(){for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];console.error(e,...i)},uninitializedWarning:e=>{a.error("You must initialize PostHog before calling "+e)},createLogger:(t,i)=>xr(e+" "+t,i)};return a},xo=xr("[PostHog.js]"),xl=xo.createLogger,xs=xl("[ExternalScriptsLoader]"),xd=(e,t,i)=>{if(e.config.disable_external_dependency_loading)return xs.warn(t+" was requested but loading of external scripts is disabled."),i("Loading of external scripts is disabled");var a=null==bu?void 0:bu.querySelectorAll("script");if(a){for(var n,r=0;r<a.length;r++)if(n=function(){if(a[r].src===t){var e=a[r];return e.__posthog_loading_callback_fired?{v:i()}:(e.addEventListener("load",t=>{e.__posthog_loading_callback_fired=!0,i(void 0,t)}),e.onerror=e=>i(e),{v:void 0})}}())return n.v}var o=()=>{if(!bu)return i("document not found");var a=bu.createElement("script");if(a.type="text/javascript",a.crossOrigin="anonymous",a.src=t,a.onload=e=>{a.__posthog_loading_callback_fired=!0,i(void 0,e)},a.onerror=e=>i(e),e.config.prepare_external_dependency_script&&(a=e.config.prepare_external_dependency_script(a)),!a)return i("prepare_external_dependency_script returned null");if("head"===e.config.external_scripts_inject_target)bu.head.appendChild(a);else{var n,r=bu.querySelectorAll("body > script");r.length>0?null==(n=r[0].parentNode)||n.insertBefore(a,r[0]):bu.body.appendChild(a)}};null!=bu&&bu.body?o():null==bu||bu.addEventListener("DOMContentLoaded",o)};bg.__PosthogExtensions__=bg.__PosthogExtensions__||{},bg.__PosthogExtensions__.loadExternalDependency=(e,t,i)=>{var a="/static/"+t+".js?v="+e.version;"remote-config"===t&&(a="/array/"+e.config.token+"/config.js"),"toolbar"===t&&(a=a+"&t="+3e5*Math.floor(Date.now()/3e5));var n=e.requestRouter.endpointFor("assets",a);xd(e,n,i)},bg.__PosthogExtensions__.loadSiteApp=(e,t,i)=>{var a=e.requestRouter.endpointFor("api",t);xd(e,a,i)};var xu={};function xc(e,t,i){if(bO(e)){if(bl&&e.forEach===bl)e.forEach(t,i);else if("length"in e&&e.length===+e.length){for(var a=0,n=e.length;a<n;a++)if(a in e&&t.call(i,e[a],a)===xu)return}}}function xp(e,t,i){if(!bz(e)){if(bO(e))return xc(e,t,i);if(e instanceof FormData){for(var a of e.entries())if(t.call(i,a[1],a[0])===xu)return}else for(var n in e)if(bR.call(e,n)&&t.call(i,e[n],n)===xu)return}}var xm=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return xc(i,function(t){for(var i in t)void 0!==t[i]&&(e[i]=t[i])}),e},xf=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return xc(i,function(t){xc(t,function(t){e.push(t)})}),e};function xh(e){for(var t=Object.keys(e),i=t.length,a=Array(i);i--;)a[i]=[t[i],e[t[i]]];return a}var xg=function(e){try{return e()}catch(e){return}},xv=function(e){return function(){try{for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];return e.apply(this,i)}catch(e){xo.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),xo.critical(e)}}},xy=function(e){var t={};return xp(e,function(e,i){(bF(e)&&e.length>0||bU(e))&&(t[i]=e)}),t},xb=["herokuapp.com","vercel.app","netlify.app"];function x_(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return e[i]}function xx(e,t,i,a){var{capture:n=!1,passive:r=!0}=null!=a?a:{};null==e||e.addEventListener(t,i,{capture:n,passive:r})}var xA="$people_distinct_id",xI="__alias",xw="__timers",xk="$autocapture_disabled_server_side",xS="$heatmaps_enabled_server_side",xT="$exception_capture_enabled_server_side",xC="$error_tracking_suppression_rules",xE="$error_tracking_capture_extension_exceptions",xR="$web_vitals_enabled_server_side",xP="$dead_clicks_enabled_server_side",xO="$product_tours_enabled_server_side",xM="$web_vitals_allowed_metrics",xN="$session_recording_remote_config",xj="$sesid",xD="$session_is_sampled",xF="$enabled_feature_flags",xL="$early_access_features",xB="$feature_flag_details",xz="$stored_person_properties",xU="$stored_group_properties",xq="$surveys",x$="$flag_call_reported",xH="$feature_flag_errors",xV="$user_state",xW="$client_session_props",xG="$capture_rate_limit",xK="$initial_campaign_params",xZ="$initial_referrer_info",xY="$initial_person_info",xX="$epp",xJ="__POSTHOG_TOOLBAR__",xQ="$posthog_cookieless",x0=[xA,xI,"__cmpns",xw,"$session_recording_enabled_server_side",xS,xj,xF,xC,xV,xL,xB,xU,xz,xq,x$,xH,xW,xG,xK,xZ,xX,xY,"$conversations_widget_session_id","$conversations_ticket_id","$conversations_widget_state","$conversations_user_traits"];function x1(e){return e instanceof Element&&(e.id===xJ||!(null==e.closest||!e.closest(".toolbar-global-fade-container")))}function x2(e){return!!e&&1===e.nodeType}function x5(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
28function x3(e){return!!e&&3===e.nodeType}function x4(e){return!!e&&11===e.nodeType}function x9(e){return e?bS(e).split(/\s+/):[]}function x6(e){var t=null==bn?void 0:bn.location.href;return!!(t&&e&&e.some(e=>t.match(e)))}function x8(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return x9(t)}function x7(e){return bz(e)?null:bS(e).split(/(\s+)/).filter(e=>Av(e)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Ae(e){var t="";return Ad(e)&&!Au(e)&&e.childNodes&&e.childNodes.length&&xp(e.childNodes,function(e){var i;x3(e)&&e.textContent&&(t+=null!=(i=x7(e.textContent))?i:"")}),bS(t)}function At(e){var t;return bD(e.target)?e.srcElement||null:null!=(t=e.target)&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}var Ai=["a","button","form","input","select","textarea","label"];function Aa(e,t){if(bD(t))return!0;var i,a=function(e){if(t.some(t=>e.matches(t)))return{v:!0}};for(var n of e)if(i=a(n))return i.v;return!1}function An(e){var t=e.parentNode;return!(!t||!x2(t))&&t}var Ar=["next","previous","prev",">","<"],Ao=[".ph-no-rageclick",".ph-no-capture"],Al=e=>!e||x5(e,"html")||!x2(e),As=(e,t)=>{if(!bn||Al(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var i=!1,a=[e],n=e;n.parentNode&&!x5(n,"body");)if(x4(n.parentNode))a.push(n.parentNode.host),n=n.parentNode.host;else{var r=An(n);if(!r)break;if(t||Ai.indexOf(r.tagName.toLowerCase())>-1)i=!0;else{var o=bn.getComputedStyle(r);o&&"pointer"===o.getPropertyValue("cursor")&&(i=!0)}a.push(r),n=r}return{parentIsUsefulElement:i,targetElementList:a}};function Ad(e){for(var t=e;t.parentNode&&!x5(t,"body");t=t.parentNode){var i=x8(t);if(bk(i,"ph-sensitive")||bk(i,"ph-no-capture"))return!1}if(bk(x8(e),"ph-include"))return!0;var a=e.type||"";if(bF(a))switch(a.toLowerCase()){case"hidden":case"password":return!1}var n=e.name||e.id||"";return!(bF(n)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,"")))}function Au(e){return!!(x5(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||x5(e,"select")||x5(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var Ac="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",Ap=RegExp("^(?:"+Ac+")$"),Am=new RegExp(Ac),Af="\\d{3}-?\\d{2}-?\\d{4}",Ah=RegExp("^("+Af+")$"),Ag=RegExp("("+Af+")");function Av(e,t){return void 0===t&&(t=!0),!(bz(e)||bF(e)&&(e=bS(e),(t?Ap:Am).test((e||"").replace(/[- ]/g,""))||(t?Ah:Ag).test(e)))&&!0}function Ay(e){var t=Ae(e);return Av(t=(t+" "+function e(t){var i="";return t&&t.childNodes&&t.childNodes.length&&xp(t.childNodes,function(t){var a;if(t&&"span"===(null==(a=t.tagName)?void 0:a.toLowerCase()))try{var n=Ae(t);i=(i+" "+n).trim(),t.childNodes&&t.childNodes.length&&(i=(i+" "+e(t)).trim())}catch(e){xo.error("[AutoCapture]",e)}}),i}(e)).trim())?t:""}function Ab(e){return e.replace(/"|\\"/g,'\\"')}class A_{constructor(e){this.disabled=!1===e;var t=bN(e)?e:{};this.thresholdPx=t.threshold_px||30,this.timeoutMs=t.timeout_ms||1e3,this.clickCount=t.click_count||3,this.clicks=[]}isRageClick(e,t,i){if(this.disabled)return!1;var a=this.clicks[this.clicks.length-1];if(a&&Math.abs(e-a.x)+Math.abs(t-a.y)<this.thresholdPx&&i-a.timestamp<this.timeoutMs){if(this.clicks.push({x:e,y:t,timestamp:i}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:t,timestamp:i}];return!1}}var Ax=e=>{var t=null==bu?void 0:bu.createElement("a");return bD(t)?null:(t.href=e,t)},AA=function(e,t){void 0===t&&(t="&");var i,a,n=[];return xp(e,function(e,t){bD(e)||bD(t)||"undefined"===t||(i=encodeURIComponent(e instanceof File?e.name:e.toString()),a=encodeURIComponent(t),n[n.length]=a+"="+i)}),n.join(t)},AI=function(e,t){for(var i,a=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;n<a.length;n++){var r=a[n].split("=");if(r[0]===t){i=r;break}}if(!bO(i)||i.length<2)return"";var o=i[1];try{o=decodeURIComponent(o)}catch(e){xo.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},Aw=function(e,t,i){if(!e||!t||!t.length)return e;for(var a=e.split("#"),n=a[0]||"",r=a[1],o=n.split("?"),l=o[1],s=o[0],d=(l||"").split("&"),u=[],c=0;c<d.length;c++){var p=d[c].split("=");
28bO(p)&&(t.includes(p[0])?u.push(p[0]+"="+i):u.push(d[c]))}var m=s;return null!=l&&(m+="?"+u.join("&")),null!=r&&(m+="#"+r),m},Ak=function(e,t){var i=e.match(RegExp(t+"=([^&]*)"));return i?i[1]:null},AS="$copy_autocapture",AT=xl("[AutoCapture]");function AC(e,t){return t.length>e?t.slice(0,e)+"...":t}class AE{constructor(e){this.P=!1,this.T=null,this.I=!1,this.instance=e,this.rageclicks=new A_(e.config.rageclick),this.C=null}get R(){var e,t,i=bN(this.instance.config.autocapture)?this.instance.config.autocapture:{};return i.url_allowlist=null==(e=i.url_allowlist)?void 0:e.map(e=>new RegExp(e)),i.url_ignorelist=null==(t=i.url_ignorelist)?void 0:t.map(e=>new RegExp(e)),i}F(){if(this.isBrowserSupported()){if(bn&&bu){var e=e=>{e=e||(null==bn?void 0:bn.event);try{this.O(e)}catch(e){AT.error("Failed to capture event",e)}};if(xx(bu,"submit",e,{capture:!0}),xx(bu,"change",e,{capture:!0}),xx(bu,"click",e,{capture:!0}),this.R.capture_copied_text){var t=e=>{e=e||(null==bn?void 0:bn.event),this.O(e,AS)};xx(bu,"copy",t,{capture:!0}),xx(bu,"cut",t,{capture:!0})}}}else AT.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.F(),this.P=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.I=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[xk]:!!e.autocapture_opt_out}),this.T=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.C=e}getElementSelectors(e){var t,i=[];return null==(t=this.C)||t.forEach(t=>{var a=null==bu?void 0:bu.querySelectorAll(t);null==a||a.forEach(a=>{e===a&&i.push(t)})}),i}get isEnabled(){var e,t,i=null==(e=this.instance.persistence)?void 0:e.props[xk];if(bB(this.T)&&!b$(i)&&!this.instance.M())return!1;var a=null!=(t=this.T)?t:!!i;return!!this.instance.config.autocapture&&!a}O(e,t){if(void 0===t&&(t="$autocapture"),this.isEnabled){var i,a=At(e);x3(a)&&(a=a.parentNode||null),"$autocapture"===t&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!=(i=this.rageclicks)&&i.isRageClick(e.clientX,e.clientY,e.timeStamp||(new Date).getTime())&&function(e,t){if(!bn||Al(e)||(b$(t)?(i=!!t&&Ao,a=void 0):(i=null!=(n=null==t?void 0:t.css_selector_ignorelist)?n:Ao,a=null==t?void 0:t.content_ignorelist),!1===i))return!1;var i,a,n,{targetElementList:r}=As(e,!1);return!function(e,t){var i;if(!1===e||bD(e))return!1;if(!0===e)i=Ar;else{if(!bO(e))return!1;if(e.length>10)return xo.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;i=e.map(e=>e.toLowerCase())}return t.some(e=>{var{safeText:t,ariaLabel:a}=e;return i.some(e=>t.includes(e)||a.includes(e))})}(a,r.map(e=>{var t;return{safeText:Ae(e).toLowerCase(),ariaLabel:(null==(t=e.getAttribute("aria-label"))?void 0:t.toLowerCase().trim())||""}}))&&!Aa(r,i)}(a,this.instance.config.rageclick)&&this.O(e,"$rageclick");var n=t===AS;if(a&&function(e,t,i,a,n){if(void 0===i&&(i=void 0),!bn||Al(e)||null!=(r=i)&&r.url_allowlist&&!x6(i.url_allowlist)||null!=(o=i)&&o.url_ignorelist&&x6(i.url_ignorelist))return!1;if(null!=(l=i)&&l.dom_event_allowlist){var r,o,l,s,d=i.dom_event_allowlist;if(d&&!d.some(e=>t.type===e))return!1}var{parentIsUsefulElement:u,targetElementList:c}=As(e,a);if(!function(e,t){var i=null==t?void 0:t.element_allowlist;if(bD(i))return!0;var a,n=function(e){if(i.some(t=>e.tagName.toLowerCase()===t))return{v:!0}};for(var r of e)if(a=n(r))return a.v;return!1}(c,i)||!Aa(c,null==(s=i)?void 0:s.css_selector_allowlist))return!1;var p=bn.getComputedStyle(e);if(p&&"pointer"===p.getPropertyValue("cursor")&&"click"===t.type)return!0;var m=e.tagName.toLowerCase();switch(m){case"html":return!1;case"form":return(n||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(n||["change","click"]).indexOf(t.type)>=0;default:return u?(n||["click"]).indexOf(t.type)>=0:(n||["click"]).indexOf(t.type)>=0&&(Ai.indexOf(m)>-1||"true"===e.getAttribute("contenteditable"))}}(a,e,this.R,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:o}=function(e,t){for(var i,a,{e:n,maskAllElementAttributes:r,maskAllText:o,elementAttributeIgnoreList:l,elementsC
28hainAsString:s}=t,d=[e],u=e;u.parentNode&&!x5(u,"body");)x4(u.parentNode)?(d.push(u.parentNode.host),u=u.parentNode.host):(d.push(u.parentNode),u=u.parentNode);var c,p=[],m={},f=!1,h=!1;if(xp(d,e=>{var t=Ad(e);"a"===e.tagName.toLowerCase()&&(f=e.getAttribute("href"),f=t&&f&&Av(f)&&f),bk(x8(e),"ph-no-capture")&&(h=!0),p.push(function(e,t,i,a){var n=e.tagName.toLowerCase(),r={tag_name:n};Ai.indexOf(n)>-1&&!i&&("a"===n.toLowerCase()||"button"===n.toLowerCase()?r.$el_text=AC(1024,Ay(e)):r.$el_text=AC(1024,Ae(e)));var o=x8(e);o.length>0&&(r.classes=o.filter(function(e){return""!==e})),xp(e.attributes,function(i){var n;if((!Au(e)||-1!==["name","id","class","aria-label"].indexOf(i.name))&&(null==a||!a.includes(i.name))&&!t&&Av(i.value)&&(!bF(n=i.name)||"_ngcontent"!==n.substring(0,10)&&"_nghost"!==n.substring(0,7))){var o=i.value;"class"===i.name&&(o=x9(o).join(" ")),r["attr__"+i.name]=AC(1024,o)}});for(var l=1,s=1,d=e;d=function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!x2(t));return t}(d);)l++,d.tagName===e.tagName&&s++;return r.nth_child=l,r.nth_of_type=s,r}(e,r,o,l)),xm(m,function(e){if(!Ad(e))return{};var t={};return xp(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var i=e.name.replace("data-ph-capture-attribute-",""),a=e.value;i&&a&&Av(a)&&(t[i]=a)}}),t}(e))}),h)return{props:{},explicitNoCapture:h};if(o||("a"===e.tagName.toLowerCase()||"button"===e.tagName.toLowerCase()?p[0].$el_text=Ay(e):p[0].$el_text=Ae(e)),f){p[0].attr__href=f;var g,v,y=null==(g=Ax(f))?void 0:g.host,b=null==bn||null==(v=bn.location)?void 0:v.host;y&&b&&y!==b&&(c=f)}return{props:xm({$event_type:n.type,$ce_version:1},s?{}:{$elements:p},{$elements_chain:p.map(e=>{var t,i,a,n={text:null==(i=e.$el_text)?void 0:i.slice(0,400),tag_name:e.tag_name,href:null==(a=e.attr__href)?void 0:a.slice(0,2048),attr_class:(t=e.attr__class)?bO(t)?t:x9(t):void 0,attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return xh(e).filter(e=>{var[t]=e;return 0===t.indexOf("attr__")}).forEach(e=>{var[t,i]=e;return n.attributes[t]=i}),n}).map(e=>{var t,i,a="";if(e.tag_name&&(a+=e.tag_name),e.attr_class)for(var n of(e.attr_class.sort(),e.attr_class))a+="."+n.replace(/"/g,"");var r=b_({},e.text?{text:e.text}:{},{"nth-child":null!=(t=e.nth_child)?t:0,"nth-of-type":null!=(i=e.nth_of_type)?i:0},e.href?{href:e.href}:{},e.attr_id?{attr_id:e.attr_id}:{},e.attributes),o={};return xh(r).sort((e,t)=>{var[i]=e,[a]=t;return i.localeCompare(a)}).forEach(e=>{var[t,i]=e;return o[Ab(t.toString())]=Ab(i.toString())}),a+=":",a+=xh(o).map(e=>{var[t,i]=e;return t+'="'+i+'"'}).join("")}).join(";")},null!=(i=p[0])&&i.$el_text?{$el_text:null==(a=p[0])?void 0:a.$el_text}:{},c&&"click"===n.type?{$external_click_url:c}:{},m)}}(a,{e:e,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.R.element_attribute_ignorelist,elementsChainAsString:this.I});if(o)return!1;var l=this.getElementSelectors(a);if(l&&l.length>0&&(r.$element_selectors=l),t===AS){var s,d=x7(null==bn||null==(s=bn.getSelection())?void 0:s.toString()),u=e.type||"clipboard";if(!d)return!1;r.$selected_content=d,r.$copy_type=u}return this.instance.capture(t,r),!0}}}isBrowserSupported(){return bM(null==bu?void 0:bu.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return bU(e)&&isFinite(e)&&Math.floor(e)===e});var AR="0123456789abcdef";class AP{constructor(e){if(this.bytes=e,16!==e.length)throw TypeError("not 128-bit length")}static fromFieldsV7(e,t,i,a){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(i)||!Number.isInteger(a)||e<0||t<0||i<0||a<0||e>0xffffffffffff||t>4095||i>0x3fffffff||a>0xffffffff)throw RangeError("invalid field value");var n=new Uint8Array(16);return n[0]=e/0x10000000000,n[1]=e/0x100000000,n[2]=e/0x1000000,n[3]=e/65536,n[4]=e/256,n[5]=e,n[6]=112|t>>>8,n[7]=t,n[8]=128|i>>>24,n[9]=i>>>16,n[10]=i>>>8,n[11]=i,n[12]=a>>>24,n[13]=a>>>16,n[14]=a>>>8,n[15]=a,new AP(n)}toString(){for(var e="",t=0;t<this.bytes.length;t++)e=e+AR.charAt(this.bytes[t]>>>4)+AR.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}clone(){return new AP(this.bytes.slice(0))}equals(e){return 0===this.compareTo(e)}compareTo(e){for(var t=0;t<16;t++){var i=this.bytes[t]-e.bytes[t];if(0!==i)return Math.sign(i)}return 0}}class AO{constructor(){this.A=0,this.j=0,this.D=new Aj}generate(){var e=this.generateOrAbort();if(bD(e)){this.A=0;var t=this.generateOrAbort();if(bD(t))throw Error("Could not generate UUID after timestamp reset");return t}return e}generateOrAbort(){var e=Date.now();if(e>this.A)this.A=e,this.L();else{if(!(e+1e4>this.A))return;this.j++,this.j>
vendor: 4,361 bytes, line 28
280x3ffffffffff&&(this.A++,this.L())}return AP.fromFieldsV7(this.A,Math.trunc(this.j/0x40000000),0x3fffffff&this.j,this.D.nextUint32())}L(){this.j=1024*this.D.nextUint32()+(1023&this.D.nextUint32())}}var AM,AN=e=>{if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};bn&&!bD(bn.crypto)&&crypto.getRandomValues&&(AN=e=>crypto.getRandomValues(e));class Aj{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(AN(this.N),this.U=0),this.N[this.U++]}}var AD=()=>AF().toString(),AF=()=>(AM||(AM=new AO)).generate(),AL="",AB=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Az={H:()=>!!bu,B:function(e){xo.error("cookieStore error: "+e)},q:function(e){if(bu){try{for(var t=e+"=",i=bu.cookie.split(";").filter(e=>e.length),a=0;a<i.length;a++){for(var n=i[a];" "==n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return decodeURIComponent(n.substring(t.length,n.length))}}catch(e){}return null}},W:function(e){var t;try{t=JSON.parse(Az.q(e))||{}}catch(e){}return t},G:function(e,t,i,a,n){if(bu)try{var r="",o="",l=function(e,t){if(t){var i=function(e,t){if(void 0===t&&(t=bu),AL)return AL;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var i=e.split("."),a=Math.min(i.length,8),n="dmn_chk_"+AD();!AL&&a--;){var r=i.slice(a).join("."),o=n+"=1;domain=."+r+";path=/";t.cookie=o+";max-age=3",t.cookie.includes(n)&&(t.cookie=o+";max-age=0",AL=r)}return AL}(e);if(!i){var a,n=(a=e.match(AB))?a[0]:"";n!==i&&xo.info("Warning: cookie subdomain discovery mismatch",n,i),i=n}return i?"; domain=."+i:""}return""}(bu.location.hostname,a);if(i){var s=new Date;s.setTime(s.getTime()+24*i*36e5),r="; expires="+s.toUTCString()}n&&(o="; secure");var d=e+"="+encodeURIComponent(JSON.stringify(t))+r+"; SameSite=Lax; path=/"+l+o;return d.length>3686.4&&xo.warn("cookieStore warning: large cookie, len="+d.length),bu.cookie=d,d}catch(e){return}},V:function(e,t){if(null!=bu&&bu.cookie)try{Az.G(e,"",-1,t)}catch(e){return}}},AU=null,Aq={H:function(){if(!bB(AU))return AU;var e=!0;if(bD(bn))e=!1;else try{var t="__mplssupport__";Aq.G(t,"xyz"),'"xyz"'!==Aq.q(t)&&(e=!1),Aq.V(t)}catch(t){e=!1}return e||xo.error("localStorage unsupported; falling back to cookie store"),AU=e,e},B:function(e){xo.error("localStorage error: "+e)},q:function(e){try{return null==bn?void 0:bn.localStorage.getItem(e)}catch(e){Aq.B(e)}return null},W:function(e){try{return JSON.parse(Aq.q(e))||{}}catch(e){}return null},G:function(e,t){try{null==bn||bn.localStorage.setItem(e,JSON.stringify(t))}catch(e){Aq.B(e)}},V:function(e){try{null==bn||bn.localStorage.removeItem(e)}catch(e){Aq.B(e)}}},A$=["$device_id","distinct_id",xj,xD,xX,xY],AH={},AV={H:function(){return!0},B:function(e){xo.error("memoryStorage error: "+e)},q:function(e){return AH[e]||null},W:function(e){return AH[e]||null},G:function(e,t){AH[e]=t},V:function(e){delete AH[e]}},AW=null,AG={H:function(){if(!bB(AW))return AW;if(AW=!0,bD(bn))AW=!1;else try{var e="__support__";AG.G(e,"xyz"),'"xyz"'!==AG.q(e)&&(AW=!1),AG.V(e)}catch(e){AW=!1}return AW},B:function(e){xo.error("sessionStorage error: ",e)},q:function(e){try{return null==bn?void 0:bn.sessionStorage.getItem(e)}catch(e){AG.B(e)}return null},W:function(e){try{return JSON.parse(AG.q(e))||null}catch(e){}return null},G:function(e,t){try{null==bn||bn.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){AG.B(e)}},V:function(e){try{null==bn||bn.sessionStorage.removeItem(e)}catch(e){AG.B(e)}}},AK=function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e}({});class AZ{constructor(e){this._instance=e}get R(){return this._instance.config}get consent(){return this.J()?AK.DENIED:this.K}isOptedOut(){return"always"===this.R.cookieless_mode||this.consent===AK.DENIED||this.consent===AK.PENDING&&(this.R.opt_out_capturing_by_default||"on_reject"===this.R.cookieless_mode)}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===AK.DENIED}optInOut(e){this.Y.G(this.X,+!!e,this.R.cookie_expiration,this.R.cross_subdomain_cookie,this.R.secure_cookie)}reset(){this.Y.V(this.X,this.R.cross_subdomain_cookie)}get X(){var{token:e,opt_out_capturing_cookie_prefix:t,consent_persistence_name:i}=this._instance.config;
28return i||(t?t+e:"__ph_opt_in_out_"+e)}get K(){var e=this.Y.q(this.X);return bZ(e)?AK.GRANTED:bk(bY,e)?AK.DENIED:AK.PENDING}get Y(){if(!this.Z){var e=this.R.opt_out_capturing_persistence_type;this.Z="localStorage"===e?Aq:Az;var t="localStorage"===e?Az:Aq;t.q(this.X)&&(this.Z.q(this.X)||this.optInOut(bZ(t.q(this.X))),t.V(this.X,this.R.cross_subdomain_cookie))}return this.Z}J(){return!!this.R.respect_dnt&&!!x_([null==bd?void 0:bd.doNotTrack,null==bd?void 0:bd.msDoNotTrack,bg.doNotTrack],e=>bZ(e))}}var AY=xl("[Dead Clicks]"),AX=()=>!0,AJ=e=>{var t,i=!(null==(t=e.instance.persistence)||!t.get_property(xP)),a=e.instance.config.capture_dead_clicks;return b$(a)?a:!!bN(a)||i};class AQ{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(e,t,i){this.instance=e,this.isEnabled=t,this.onCapture=i,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[xP]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.it(()=>{this.et()}):this.stop()}it(e){var t,i;null!=(t=bg.__PosthogExtensions__)&&t.initDeadClicksAutocapture&&e(),null==(i=bg.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this.instance,"dead-clicks-autocapture",t=>{t?AY.error("failed to load script",t):e()})}et(){var e;if(bu){if(!this.tt&&null!=(e=bg.__PosthogExtensions__)&&e.initDeadClicksAutocapture){var t=bN(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};t.__onCapture=this.onCapture,this.tt=bg.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,t),this.tt.start(bu),AY.info("starting...")}}else AY.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,AY.info("stopping..."))}}var A0=xl("[ExceptionAutocapture]");class A1{constructor(e){var t,i,a;this.rt=()=>{var e;if(bn&&this.isEnabled&&null!=(e=bg.__PosthogExtensions__)&&e.errorWrappingFunctions){var t=bg.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=bg.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,a=bg.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.R.capture_unhandled_errors&&(this.st=t(this.captureException.bind(this))),!this.nt&&this.R.capture_unhandled_rejections&&(this.nt=i(this.captureException.bind(this))),!this.ot&&this.R.capture_console_errors&&(this.ot=a(this.captureException.bind(this)))}catch(e){A0.error("failed to start",e),this.ut()}}},this._instance=e,this.ht=!(null==(t=this._instance.persistence)||!t.props[xT]),this.dt=new bJ({refillRate:null!=(i=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)?i:1,bucketSize:null!=(a=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)?a:10,refillInterval:1e4,h:A0}),this.R=this.vt(),this.startIfEnabledOrStop()}vt(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return bN(e)?t=b_({},t,e):(bD(e)?this.ht:e)&&(t=b_({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.R.capture_console_errors||this.R.capture_unhandled_errors||this.R.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(A0.info("enabled"),this.ut(),this.it(this.rt)):this.ut()}it(e){var t,i;null!=(t=bg.__PosthogExtensions__)&&t.errorWrappingFunctions&&e(),null==(i=bg.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"exception-autocapture",t=>{if(t)return A0.error("failed to load script",t);e()})}ut(){var e,t,i;null==(e=this.st)||e.call(this),this.st=void 0,null==(t=this.nt)||t.call(this),this.nt=void 0,null==(i=this.ot)||i.call(this),this.ot=void 0}onRemoteConfig(e){if("autocaptureExceptions"in e){var t=e.autocaptureExceptions;this.ht=!!t,this._instance.persistence&&this._instance.persistence.register({[xT]:this.ht}),this.R=this.vt(),this.startIfEnabledOrStop()}}onConfigChange(){this.R=this.vt()}captureException(e){var t,i,a=null!=(t=null==e||null==(i=e.$exception_list)||null==(i=i[0])?void 0:i.type)?t:"Exception";this.dt.consumeRateLimit(a)?A0.info("Skipping exception capture because of client rate limiting.",{exception:a}):this._instance.exceptions.sendExceptionEvent(e)}}function A2(e,t,i){try{if(!(t in e))return()=>{};var a=e[t],n=i(a);return bM(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=n,()=>{e[t]=a}}catch(e){return()=>{}}}class A5{constructor(e){var t;this._instance=e,this.ct=(null==bn||null==(t=bn.location)?void 0:t.pathname)||""}get isEnabled(){return"history_change"===this._instance.config.capture_pageview}startIfEnabled(){this.isEnabled&&(xo.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ft&&this.ft(),this.ft=void 0,xo.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(bn&&bn.history){var i=this;null!=(e=bn.history.pushState)&&e.__posthog_wrapped__||A2(bn.history,"pushState",e=>function(t,a,n){e.call(this,t,a,n),i._t("pushState")}),null!=(t=bn.history.replaceState)&&t.__posthog_wrapped__||A2(bn.history,"replaceState",e=>function(t,a,n){e.call(this,t,a,n),i._t("replaceState")}),this.bt()}}_t(e){try{var t,i=null==bn||null==(t=bn.location)?void 0:t.pathname;if(!i)return;i!==this.ct&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:e}),this.ct=i}catch(t){xo.error("Error capturing "+e+" pageview",t)}}
28bt(){if(!this.ft){var e=()=>{this._t("popstate")};xx(bn,"popstate",e),this.ft=()=>{bn&&bn.removeEventListener("popstate",e)}}}}var A3=xl("[SegmentIntegration]"),A4="posthog-js";function A9(e,t){var{organization:i,projectId:a,prefix:n,severityAllowList:r=["error"],sendExceptionsToPostHog:o=!0}=void 0===t?{}:t;return t=>{if(!("*"===r||r.includes(t.level))||!e.__loaded)return t;t.tags||(t.tags={});var l,s,d,u,c,p=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());t.tags["PostHog Person URL"]=p,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var m=(null==(l=t.exception)?void 0:l.values)||[],f=m.map(e=>b_({},e,{stacktrace:e.stacktrace?b_({},e.stacktrace,{type:"raw",frames:(e.stacktrace.frames||[]).map(e=>b_({},e,{platform:"web:javascript"}))}):void 0})),h={$exception_message:(null==(s=m[0])?void 0:s.value)||t.message,$exception_type:null==(d=m[0])?void 0:d.type,$exception_level:t.level,$exception_list:f,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null==(u=m[0])?void 0:u.value)||t.message,$sentry_exception_type:null==(c=m[0])?void 0:c.type,$sentry_tags:t.tags};return i&&a&&(h.$sentry_url=(n||"https://sentry.io/organizations/")+i+"/issues/?project="+a+"&query="+t.event_id),o&&e.exceptions.sendExceptionEvent(h),t}}class A6{constructor(e,t,i,a,n,r){this.name=A4,this.setupOnce=function(o){o(A9(e,{organization:t,projectId:i,prefix:a,severityAllowList:n,sendExceptionsToPostHog:null==r||r}))}}}var A8=null!=bn&&bn.location?Ak(bn.location.hash,"__posthog")||Ak(location.hash,"state"):null,A7="_postHogToolbarParams",Ie=xl("[Toolbar]"),It=function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e}(It||{});class Ii{constructor(e){this.instance=e}yt(e){bg.ph_toolbar_state=e}wt(){var e;return null!=(e=bg.ph_toolbar_state)?e:It.UNINITIALIZED}maybeLoadToolbar(e,t,i){if(void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===i&&(i=void 0),this.instance.config.name&&"ph_toolbar_internal"===this.instance.config.name||!bn||!bu)return!1;e=null!=e?e:bn.location,i=null!=i?i:bn.history;try{if(!t){try{bn.localStorage.setItem("test","test"),bn.localStorage.removeItem("test")}catch(e){return!1}t=null==bn?void 0:bn.localStorage}var a,n=A8||Ak(e.hash,"__posthog")||Ak(e.hash,"state"),r=n?xg(()=>JSON.parse(atob(decodeURIComponent(n))))||xg(()=>JSON.parse(decodeURIComponent(n))):null;return r&&"ph_authorize"===r.action?((a=r).source="url",a&&Object.keys(a).length>0&&(r.desiredHash?e.hash=r.desiredHash:i?i.replaceState(i.state,"",e.pathname+e.search):e.hash="")):((a=JSON.parse(t.getItem(A7)||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token)&&(this.loadToolbar(a),!0)}catch(e){return!1}}$t(e){var t=bg.ph_load_toolbar||bg.ph_load_editor;!bz(t)&&bM(t)?t(e,this.instance):Ie.warn("No toolbar load function found")}loadToolbar(e){var t,i=!(null==bu||!bu.getElementById(xJ));if(!bn||i)return!1;var a="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,n=b_({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},a?{instrument:!1}:{});return(bn.localStorage.setItem(A7,JSON.stringify(b_({},n,{source:void 0}))),this.wt()===It.LOADED)?this.$t(n):this.wt()===It.UNINITIALIZED&&(this.yt(It.LOADING),null==(t=bg.__PosthogExtensions__)||null==t.loadExternalDependency||t.loadExternalDependency(this.instance,"toolbar",e=>{if(e)return Ie.error("[Toolbar] Failed to load",e),void this.yt(It.UNINITIALIZED);this.yt(It.LOADED),this.$t(n)}),xx(bn,"turbolinks:load",()=>{this.yt(It.UNINITIALIZED),this.loadToolbar(n)})),!0}xt(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,i){return void 0===e&&(e=void 0),void 0===t&&(t=void 0),void 0===i&&(i=void 0),this.maybeLoadToolbar(e,t,i)}}var Ia=xl("[TracingHeaders]");class In{constructor(e){this.Et=void 0,this.St=void 0,this.rt=()=>{var e,t;bD(this.Et)&&(null==(e=bg.__PosthogExtensions__)||null==(e=e.tracingHeadersPatchFns)||e._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),bD(this.St)&&(null==(t=bg.__PosthogExtensions__)||null==(t=t.tracingHeadersPatchFns)||t._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=e}it(e){var t,i;null!=(t=bg.__PosthogExtensions__)&&t.tracingHeadersPatchFns&&e(),null==(i=bg.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"tracing-headers",t=>{if(t)return Ia.error("failed to load script",t);e()})}startIfEnabledOrStop(){var e,t;this._instance.config.__add_tracing_headers?this.it(this.rt):(null==(e=this.Et)||e.call(this),null==(t=this.St)||t.call(this),this.Et=void 0,this.St=void 0)}}var Ir="https?://(.*)",Io=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Il=xf(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],Io),Is="<masked>",Id=["li_fat_id"];function Iu(e,t,i){if(!bu)return{};var a,n=t?xf([],Io,i||[]):[],r=Ic(Aw(bu.URL,n,Is),e);return xm((a={},xp(Id,function(e){var t=Az.q(e);a[e]=t||null}),a),r)}function Ic(e,t){var i=Il.concat(t||[]),a={};return xp(i,function(t){var i=AI(e,t);a[t]=i||null}),a}function Ip(e){var t=e?0===e.search(Ir+"google.([^/?]*)")?"google":0===e.search(Ir+"bing.com")?"bing":0===e.search(Ir+"yaho
28o.com")?"yahoo":0===e.search(Ir+"duckduckgo.com")?"duckduckgo":null:null,i={};if(!bB(t)){i.$search_engine=t;var a=bu?AI(bu.referrer,"yahoo"!=t?"q":"p"):"";a.length&&(i.ph_keyword=a)}return i}function Im(){return navigator.language||navigator.userLanguage}function If(){return(null==bu?void 0:bu.referrer)||"$direct"}function Ih(e,t){var i=e?xf([],Io,t||[]):[],a=null==bc?void 0:bc.href.substring(0,1e3);return{r:If().substring(0,1e3),u:a?Aw(a,i,Is):void 0}}function Ig(e){var t,{r:i,u:a}=e,n={$referrer:i,$referring_domain:null==i?void 0:"$direct"==i?"$direct":null==(t=Ax(i))?void 0:t.host};if(a){n.$current_url=a;var r=Ax(a);n.$host=null==r?void 0:r.host,n.$pathname=null==r?void 0:r.pathname,xm(n,Ic(a))}return i&&xm(n,Ip(i)),n}function Iv(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}var Iy=xl("[Web Vitals]");class Ib{constructor(e){var t;this.kt=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.Pt=()=>{clearTimeout(this.Tt),0!==this.N.metrics.length&&(this._instance.capture("$web_vitals",this.N.metrics.reduce((e,t)=>b_({},e,{["$web_vitals_"+t.name+"_event"]:b_({},t),["$web_vitals_"+t.name+"_value"]:t.value}),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.It=e=>{var t,i=null==(t=this._instance.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0);if(bD(i))Iy.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var a=this.Ct();bD(a)||(bz(null==e?void 0:e.name)||bz(null==e?void 0:e.value)?Iy.error("Invalid metric received",e):this.Rt&&e.value>=this.Rt?Iy.error("Ignoring metric with value >= "+this.Rt,e):(this.N.url!==a&&(this.Pt(),this.Tt=setTimeout(this.Pt,this.flushToCaptureTimeoutMs)),bD(this.N.url)&&(this.N.url=a),this.N.firstMetricTimestamp=bD(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,e.attribution&&e.attribution.interactionTargetElement&&(e.attribution.interactionTargetElement=void 0),this.N.metrics.push(b_({},e,{$current_url:a,$session_id:i.sessionId,$window_id:i.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.Pt()))}},this.rt=()=>{if(!this.P){var e,t,i,a,n=bg.__PosthogExtensions__;bD(n)||bD(n.postHogWebVitalsCallbacks)||({onLCP:e,onCLS:t,onFCP:i,onINP:a}=n.postHogWebVitalsCallbacks),e&&t&&i&&a?(this.allowedMetrics.indexOf("LCP")>-1&&e(this.It.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&t(this.It.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&i(this.It.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&a(this.It.bind(this)),this.P=!0):Iy.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.kt=!(null==(t=this._instance.persistence)||!t.props[xR]),this.startIfEnabled()}get allowedMetrics(){var e,t,i=bN(this._instance.config.capture_performance)?null==(e=this._instance.config.capture_performance)?void 0:e.web_vitals_allowed_metrics:void 0;return bz(i)?(null==(t=this._instance.persistence)?void 0:t.props[xM])||["CLS","FCP","INP","LCP"]:i}get flushToCaptureTimeoutMs(){return(bN(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=bN(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_attribution:void 0;return null!=e&&e}get Rt(){var e=bN(this._instance.config.capture_performance)&&bU(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:9e5;return 0<e&&e<=6e4?9e5:e}get isEnabled(){var e=null==bc?void 0:bc.protocol;if("http:"!==e&&"https:"!==e)return Iy.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=bN(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:b$(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return b$(t)?t:this.kt}startIfEnabled(){this.isEnabled&&!this.P&&(Iy.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(e){if("capturePerformance"in e){var t=bN(e.capturePerformance)&&!!e.capturePerformance.web_vitals,i=bN(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[xR]:t}),this._instance.persistence.register({[xM]:i})),this.kt=t,this.startIfEnabled()}}it(e){var t,i;if(null!=(t=bg.__PosthogExtensions__)&&t.postHogWebVitalsCallbacks)e();else{var a=this.useAttribution?"web-vitals-with-attribution":"web-vitals";null==(i=bg.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,a,t=>{t?Iy.error("failed to load script",t):e()})}}Ct(){var e=bn?bn.location.href:void 0;if(e){var t=this._instance.config.mask_personal_data_properties,i=this._instance.config.custom_personal_data_properties;return Aw(e,t?xf([],Io,i||[]):[],Is)}Iy.error("Could not determine current URL")}}var I_=xl("[Heatmaps]");function Ix(e){return bN(e)&&"clientX"in e&&"clientY"in e&&bU(e.clientX)&&bU(e.clientY)}class IA{constructor(e){var t;this.kt=!1,this.P=!1,this.Ft=null,this.instance=e,this.kt=!(null==(t=this.instance.persistence)||!t.props[xS]),this.rageclicks=new A_(e.config.rageclick)}get flushIntervalMilliseconds(){var e=5e3;return bN(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(e=this.instance.config.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return bz(this.instance.config.capture_heatmaps)?bz(this.instance.config.enable_heatmaps)?this.kt:this.instance.config.enable_heatmaps:!1!==this.instance.config.capture_heatmaps}startIfEnabled(){if(this.isEnabled)this.P||(I_.info("starting..."),this.Ot(),this.Mt());else{var e;clearInterval(null!=(e=this.Ft)?e:void 0),this.At(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[xS]:t}),this.kt=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.N;return this.N=void 0,e}jt(e){this.Dt(e.originalEvent,"deadclick")}Mt(){this.Ft&&clearInterval(this.Ft),this.Ft="visible"===(null==bu?void 0:bu.visibilityState)?setInterval(this.Lt.bind(this),this.flushIntervalMilliseconds):null}Ot(){bn&&bu&&(this.Nt=this.Lt.bind(this),xx(bn,"beforeunload",this.Nt),this.Ut=e=>this.Dt(e||(null==bn?void 0:bn.event)),xx(bu,"click",this.Ut,{capture:!0}),this.zt=e=>this.Ht(e||(null==bn?void 0:bn.event)),xx(bu,"mousemove",this.zt,{capture:!0}),this.Bt=new AQ(this.instance,AX,this.jt.bind(this)),this.Bt.startIfEnabledOrStop(),this.qt=this.Mt.bind(this),xx(bu,"visibilitychange",this.qt),this.P=!0)}At(){var e;bn&&bu&&(this.Nt&&bn.removeEventListener("beforeunload",this.Nt),this.Ut&&bu.removeEventListener("click",this.Ut,{capture:!0}),this.zt&&bu.removeEventListener("mousemove",this.zt,{capture:!0}),this.qt&&bu.removeEventListener("visibilitychange",this.qt),clearTimeout(this.Wt),null==(e=this.Bt)||e.stop(),this.P=!1)}Gt(e,t){var i=this.instance.scrollManager.scrollY(),a=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),r=function(e,t,i){for(var a=e;a&&x2(a)&&!x5(a,"body")&&a!==i;){if(bk(t,null==bn?void 0:bn.getComputedStyle(a).position))return!0;a=An(a)}return!1}(At(e),["fixed","sticky"],n);return{x:e.clientX+(r?0:a),y:e.clientY+(r?0:i),target_fixed:r,type:t}}Dt(e,t){var i;if(void 0===t&&(t="click"),!x1(e.target)&&Ix(e)){var a=this.Gt(e,t);null!=(i=this.rageclicks)&&i.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this.Vt(b_({},a,{type:"rageclick"})),this.Vt(a)}}Ht(e){!x1(e.target)&&Ix(e)&&(clearTimeout(this.Wt),this.Wt=setTimeout(()=>{this.Vt(this.Gt(e,"mousemove"))},500))}Vt(e){if(bn){var t=bn.location.href,i=this.instance.config.mask_personal_data_properties,a=this.instance.config.custom_personal_data_properties,n=Aw(t,i?xf([],Io,a||[]):[],Is);this.N=this.N||{},this.N[n]||(this.N[n]=[]),this.N[n].push(e)}}Lt(){this.N&&!bj(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class II{constructor(e){this.Jt=(e,t,i)=>{i&&(i.noSessionId||i.activityTimeout||i.sessionPastMaximumLength)&&(xo.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:e,changeReason:i}),this.Kt=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.Yt()}Yt(){var e;this.Xt=null==(e=this._instance.sessionManager)?void 0:e.onSessionId(this.Jt)}destroy(){var e;null==(e=this.Xt)||e.call(this),this.Xt=void 0}doPageView(e,t){var i,a=this.Qt(e,t);return this.Kt={pathname:null!=(i=null==bn?void 0:bn.location.pathname)?i:"",pageViewId:t,timestamp:e},this._instance.scrollManager.resetContext(),a}doPageLeave(e){var t;return this.Qt(e,null==(t=this.Kt)?void 0:t.pageViewId)}doEvent(){var e;return{$pageview_id:null==(e=this.Kt)?void 0:e.pageViewId}}Qt(e,t){var i=this.Kt;if(!i)return{$pageview_id:t};var a={$pageview_id:t,$prev_pageview_id:i.pageViewId},n=this._instance.scrollManager.getContext();if(n&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:r,lastScrollY:o,maxScrollY:l,maxContentHeight:s,lastContentY:d,maxContentY:u}=n;if(!(bD(r)||bD(o)||bD(l)||bD(s)||bD(d)||bD(u))){r=Math.ceil(r),o=Math.ceil(o),l=Math.ceil(l),s=Math.ceil(s),d=Math.ceil(d),u=Math.ceil(u);var c=r<=1?1:bX(o/r,0,1,xo),p=r<=1?1:bX(l/r,0,1,xo),m=s<=1?1:bX(d/s,0,1,xo),f=s<=1?1:bX(u/s,0,1,xo);a=xm(a,{$prev_pageview_last_scroll:o,$prev_pageview_last_scroll_percentage:c,$prev_pageview_max_scroll:l,$prev_pageview_max_scroll_percentage:p,$prev_pageview_last_content:d,$prev_pageview_last_content_percentage:m,$prev_pageview_max_content:u,$prev_pageview_max_content_percentage:f})}}return i.pathname&&(a.$prev_pageview_pathname=i.pathname),i.timestamp&&(a.$prev_pageview_duration=(e.getTime()-i.timestamp.getTime())/1e3),a}}var Iw=function(e){return e.GZipJS="gzip-js",e.Base64="base64",e}({}),Ik=Uint8Array,IS=Uint16Array,IT=Uint32Array,IC=new Ik([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),IE=new Ik([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),IR=new Ik([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),IP=function(e,t){for(var i=new IS(31),a=0;a<31;++a)i[a]=t+=1<<e[a-1];var n=new IT(i[30]);for(a=1;a<30;++a)for(var r=i[a];r<i[a+1];++r)n[r]=r-i[a]<<5|a;return[i,n]},IO=IP(IC,2),IM=IO[0],IN=IO[1];IM[28]=258,IN[258]=28;for(var Ij=IP(IE,0)[1],ID=new IS(32768),IF=0;IF<32768;++IF){var IL=(43690&IF)>>>1|(21845&IF)<<1;IL=(61680&(IL=(52428&IL)>>>2|(13107&IL)<<2))>>>4|(3855&IL)<<4,ID[IF]=((65280&IL)>>>8|(255&IL)<<8)>>>1}var IB=function(e,t,i){for(var a=e.length,n=0,r=new IS(t);n<a;++n)++r[e[n]-1];var o,l=new IS(t);for(n=0;n<t;++n)l[n]=l[n-1]+r[n-1]<<1;if(i){o=new IS(1<<t);var s=15-t;for(n=0;n<a;++n)if(e[n])for(var d=n<<4|e[n],u=t-e[n],c=l[e[n]-1]++<<u,p=c|(1<<u)-1;c<=p;++c)o[ID[c]>>>s]=d}else for(o=new IS(a),n=0;n<a;++n)o[n]=ID[l[e[n]-1]++]>>>15-e[n];return o},Iz=new Ik(288);for(IF=0;IF<144;++IF)Iz[IF]=8;for(IF=144;IF<256;++IF)Iz[IF]=9;for(IF=256;IF<280;++IF)Iz[IF]=7;for(IF=280;IF<288;++IF)Iz[IF]=8;var IU=new Ik(32);for(IF=0;IF<32;++IF)IU[IF]=5;var Iq=IB(Iz,9,0),I$=IB(IU,5,0),IH=function(e){return(e/8|0)+(7&e&&1)},IV=function(e,t,i){(null==i||i>e.length)&&(i=e.length);var a=new(e instanceof IS?IS:e instanceof IT?IT:Ik)(i-t);return a.set(e.subarray(t,i)),a},IW=function(e,t,i){i<<=7&t;var a=t/8|0;e[a]|=i,e[a+1]|=i>>>8},IG=function(e,t,i){i<<=7&t;var a=t/8|0;e[a]|=i,e[a+1]|=i>>>8,e[a+2]|=i>>>16},IK=function(e,t){for(var i=[],a=0;a<e.length;++a)e[a]&&i.push({s:a,f:e[a]});var n=i.length,r=i.slice();if(!n)return[new Ik(0),0];if(1==n){var o=new Ik(i[0].s+1);return o[i[0].s]=1,[o,1]}i.sort(function(e,t){return e.f-t.f}),i.push({s:-1,f:25001});var l=i[0],s=i[1],d=0,u=1,c=2;for(i[0]={s:-1,f:l.f+s.f,l:l,r:s};u!=n-1;)l=i[i[d].f<i[c].f?d++:c++],s=i[d!=u&&i[d].f<i[c].f?d++:c++],i[u++]={s:-1,f:l.f+s.f,l:l,r:s};var p=r[0].s;for(a=1;a<n;++a)r[a].s>p&&(p=r[a].s);var m=new IS(p+1),f=IZ(i[u-1],m,0);if(f>t){a=0;var h=0,g=f-t,v=1<<g;for(r.sort(function(e,t){return m[t.s]-m[e.s]||e.f-t.f});a<n;++a){var y=r[a].s;if(!(m[y]>t))break;h+=v-(1<<f-m[y]),m[y]=t}for(h>>>=g;h>0;){var b=r[a].s;m[b]<t?h-=1<<t-m[b]++-1:++a}for(;a>=0&&h;--a){var _=r[a].s;m[_]==t&&(--m[_],++h)}f=t}return[new Ik(m),f]},IZ=function(e,t,i){return -1==e.s?Math.max(IZ(e.l,t,i+1),IZ(e.r,t,i+1)):t[e.s]=i},IY=function(e){for(var t=e.length;t&&!e[--t];);for(var i=new IS(++t),a=0,n=e[0],r=1,o=function(e){i[a++]=e},l=1;l<=t;++l)if(e[l]==n&&l!=t)++r;else{if(!n&&r>2){for(;r>138;r-=138)o(32754);r>2&&(o(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(o(n),--r;r>6;r-=6)o(8304);r>2&&(o(r-3<<5|8208),r=0)}for(;r--;)o(n);r=1,n=e[l]}return[i.subarray(0,a),t]},IX=function(e,t){for(var i=0,a=0;a<t.length;++a)i+=e[a]*t[a];return i},IJ=function(e,t,i){var a=i.length,n=IH(t+2);e[n]=255&a,e[n+1]=a>>>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var r=0;r<a;++r)e[n+r+4]=i[r];return 8*(n+4+a)},IQ=function(e,t,i,a,n,r,o,l,s,d,u){IW(t,u++,i),++n[256];for(var c=IK(n,15),p=c[0],m=c[1],f=IK(r,15),h=f[0],g=f[1],v=IY(p),y=v[0],b=v[1],_=IY(h),x=_[0],A=_[1],I=new IS(19),w=0;w<y.length;++w)I[31&y[w]]++;for(w=0;w<x.length;++w)I[31&x[w]]++;for(var k=IK(I,7),S=k[0],T=k[1],C=19;C>4&&!S[IR[C-1]];--C);var E,R,P,O,M=d+5<<3,N=IX(n,Iz)+IX(r,IU)+o,j=IX(n,p)+IX(r,h)+o+14+3*C+IX(I,S)+(2*I[16]+3*I[17]+7*I[18]);if(M<=N&&M<=j)return IJ(t,u,e.subarray(s,s+d));if(IW(t,u,1+(j<N)),u+=2,j<N){E=IB(p,m,0),R=p,P=IB(h,g,0),O=h;var D=IB(S,T,0);
28for(IW(t,u,b-257),IW(t,u+5,A-1),IW(t,u+10,C-4),u+=14,w=0;w<C;++w)IW(t,u+3*w,S[IR[w]]);u+=3*C;for(var F=[y,x],L=0;L<2;++L){var B=F[L];for(w=0;w<B.length;++w){var z=31&B[w];IW(t,u,D[z]),u+=S[z],z>15&&(IW(t,u,B[w]>>>5&127),u+=B[w]>>>12)}}}else E=Iq,R=Iz,P=I$,O=IU;for(w=0;w<l;++w)if(a[w]>255){IG(t,u,E[(z=a[w]>>>18&31)+257]),u+=R[z+257],z>7&&(IW(t,u,a[w]>>>23&31),u+=IC[z]);var U=31&a[w];IG(t,u,P[U]),u+=O[U],U>3&&(IG(t,u,a[w]>>>5&8191),u+=IE[U])}else IG(t,u,E[a[w]]),u+=R[a[w]];return IG(t,u,E[256]),u+R[256]},I0=new IT([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),I1=function(){for(var e=new IT(256),t=0;t<256;++t){for(var i=t,a=9;--a;)i=(1&i&&0xedb88320)^i>>>1;e[t]=i}return e}(),I2=function(e,t,i){for(;i;++t)e[t]=i,i>>>=8},I5=function(e){var t,i,a,n,r="";for(t=i=0,a=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,n=0;n<a;n++){var o=e.charCodeAt(n),l=null;o<128?i++:l=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),bB(l)||(i>t&&(r+=e.substring(t,i)),r+=l,t=i=n+1)}return i>t&&(r+=e.substring(t,e.length)),r},I3=!!bm||!!bp,I4="text/plain",I9=function(e,t,i){void 0===i&&(i=!0);var a,[n,r]=e.split("?"),o=b_({},t),l=null!=(a=null==r?void 0:r.split("&").map(e=>{var t,[a,n]=e.split("="),r=i&&null!=(t=o[a])?t:n;return delete o[a],a+"="+r}))?a:[],s=AA(o);return s&&l.push(s),n+"?"+l.join("&")},I6=(e,t)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,t),I8=e=>{var{data:t,compression:i}=e;if(t){if(i===Iw.GZipJS){var a=new Blob([function(e,t){void 0===t&&(t={});var i=(n=0xffffffff,{p:function(e){for(var t=n,i=0;i<e.length;++i)t=I1[255&t^e[i]]^t>>>8;n=t},d:function(){return 0xffffffff^n}}),a=e.length;i.p(e);var n,r,o,l,s=(r=t,o=10+((l=t).filename&&l.filename.length+1||0),function(e,t,i,a,n,r){var o=e.length,l=new Ik(a+o+5*(1+Math.floor(o/7e3))+8),s=l.subarray(a,l.length-n),d=0;if(!t||o<8)for(var u=0;u<=o;u+=65535){var c=u+65535;c<o?d=IJ(s,d,e.subarray(u,c)):(s[u]=r,d=IJ(s,d,e.subarray(u,o)))}else{for(var p=I0[t-1],m=p>>>13,f=8191&p,h=(1<<i)-1,g=new IS(32768),v=new IS(h+1),y=Math.ceil(i/3),b=2*y,_=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&h},x=new IT(25e3),A=new IS(288),I=new IS(32),w=0,k=0,S=(u=0,0),T=0,C=0;u<o;++u){var E=_(u),R=32767&u,P=v[E];if(g[R]=P,v[E]=R,T<=u){var O=o-u;if((w>7e3||S>24576)&&O>423){d=IQ(e,s,0,x,A,I,k,S,C,u-C,d),S=w=k=0,C=u;for(var M=0;M<286;++M)A[M]=0;for(M=0;M<30;++M)I[M]=0}var N=2,j=0,D=f,F=R-P&32767;if(O>2&&E==_(u-F))for(var L=Math.min(m,O)-1,B=Math.min(32767,u),z=Math.min(258,O);F<=B&&--D&&R!=P;){if(e[u+N]==e[u+N-F]){for(var U=0;U<z&&e[u+U]==e[u+U-F];++U);if(U>N){if(N=U,j=F,U>L)break;var q=Math.min(F,U-2),$=0;for(M=0;M<q;++M){var H=u-F+M+32768&32767,V=H-g[H]+32768&32767;V>$&&($=V,P=H)}}}F+=(R=P)-(P=g[R])+32768&32767}if(j){x[S++]=0x10000000|IN[N]<<18|Ij[j];var W=31&IN[N],G=31&Ij[j];k+=IC[W]+IE[G],++A[257+W],++I[G],T=u+N,++w}else x[S++]=e[u],++A[e[u]]}}d=IQ(e,s,r,x,A,I,k,S,C,u-C,d)}return IV(l,0,a+IH(d)+n)}(e,null==r.level?6:r.level,null==r.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+r.mem,o,8,!0)),d=s.length;return function(e,t){var i=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&I2(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),i){e[3]=8;for(var a=0;a<=i.length;++a)e[a+10]=i.charCodeAt(a)}}(s,t),I2(s,d-8,i.d()),I2(s,d-4,a),s}(function(e,t){var i=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var a=new Ik(e.length+(e.length>>>1)),n=0,r=function(e){a[n++]=e},o=0;o<i;++o){if(n+5>a.length){var l=new Ik(n+8+(i-o<<1));l.set(a),a=l}var s=e.charCodeAt(o);s<128?r(s):(s<2048?r(192|s>>>6):(s>55295&&s<57344?(r(240|(s=65536+(1047552&s)|1023&e.charCodeAt(++o))>>>18),r(128|s>>>12&63)):r(224|s>>>12),r(128|s>>>6&63)),r(128|63&s))}return IV(a,0,n)}(I6(t)),{mtime:0})],{type:I4});return{contentType:I4,body:a,estimatedSize:a.size}}if(i===Iw.Base64){var n=(e=>"data="+encodeURIComponent("string"==typeof e?e:I6(e)))(function(e){var t,i,a,n,r,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,s=0,d="",u=[];if(!e)return e;e=I5(e);do t=(r=e.charCodeAt(l++)<<16|e.charCodeAt(l++)<<8|e.charCodeAt(l++))>>18&63,i=r>>12&63,a=r>>6&63,n=63&r,u[s++]=o.charAt(t)+o.charAt(i)+o.charAt(a)+o.charAt(n);while(l<e.length);switch(d=u.join(""),e.length%3){case 1:d=d.slice(0,-2)+"==";break;case 2:d=d.slice(0,-1)+"="}return d}(I6(t)));return{contentType:"application/x-www-form-urlencoded",body:n,estimatedSize:new Blob([n]).size}}var r=I6(t);return{contentType:"application/json",body:r,estimatedSize:new Blob([r]).size}}},I7=[];bp&&I7.push({transport:"fetch",method:e=>{var t,i,{contentType:a,body:n,estimatedSize:r}=null!=(t=I8(e))?t:{},o=new Headers;xp(e.headers,function(e,t){o.append(t,e)}),a&&o.append("Content-Type",a);var l=e.url,s=null;if(bf){var d=new bf;s={signal:d.signal,timeout:setTimeout(()=>d.abort(),e.timeout)}}bp(l,b_({method:(null==e?void 0:e.method)||"GET",headers:o,keepalive:"POST"===e.method&&52428.8>(r||0),body:n,signal:null==(i=s)?void 0:i.signal},e.fetchOptions)).then(t=>t.text().then(i=>{var a={statusCode:t.status,text:i};if(200===t.status)try{a.json=JSON.parse(i)}catch(e){xo.error(e)}null==e.callback||e.callback(a)})).catch(t=>{xo.error(t),null==e.callback||e.callback({statusCode:0,error:t})}).finally(()=>s?clearTimeout(s.timeout):null)}}),bm&&I7.push({transport:"XHR",method:e=>{var t,i=new bm;i.open(e.method||"GET",e.url,!0);var{contentType:a,body:n}=null!=(t=I8(e))?t:{};xp(e.headers,function(e,t){i.setRequestHeader(t,e)}),a&&i.setRequestHeader("Content-Type",a),e.timeout&&(i.timeout=e.timeout),e.disableXHRCredentials||(i.withCredentials=!0),i.onreadystatechange=()=>{if(4===i.readyState){var t={statusCode:i.status,text:i.responseText};
28if(200===i.status)try{t.json=JSON.parse(i.responseText)}catch(e){}null==e.callback||e.callback(t)}},i.send(n)}}),null!=bd&&bd.sendBeacon&&I7.push({transport:"sendBeacon",method:e=>{var t=I9(e.url,{beacon:"1"});try{var i,{contentType:a,body:n}=null!=(i=I8(e))?i:{},r="string"==typeof n?new Blob([n],{type:a}):n;bd.sendBeacon(t,r)}catch(e){}}});var we=function(e,t){if(!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(t))return!1;try{return new RegExp(t).test(e)}catch(e){return!1}};function wt(e,t,i){return I6({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:i})}var wi={exact:(e,t)=>t.some(t=>e.some(e=>t===e)),is_not:(e,t)=>t.every(t=>e.every(e=>t!==e)),regex:(e,t)=>t.some(t=>e.some(e=>we(t,e))),not_regex:(e,t)=>t.every(t=>e.every(e=>!we(t,e))),icontains:(e,t)=>t.map(wa).some(t=>e.map(wa).some(e=>t.includes(e))),not_icontains:(e,t)=>t.map(wa).every(t=>e.map(wa).every(e=>!t.includes(e))),gt:(e,t)=>t.some(t=>{var i=parseFloat(t);return!isNaN(i)&&e.some(e=>i>parseFloat(e))}),lt:(e,t)=>t.some(t=>{var i=parseFloat(t);return!isNaN(i)&&e.some(e=>i<parseFloat(e))})},wa=e=>e.toLowerCase();function wn(e,t){return!e||Object.entries(e).every(e=>{var[i,a]=e,n=null==t?void 0:t[i];if(bD(n)||bB(n))return!1;var r=[String(n)],o=wi[a.operator];return!!o&&o(a.values,r)})}var wr=xl("[Error tracking]");class wo{constructor(e){var t,i;this.Zt=[],this.ti=new _G([new _3,new xn,new _9,new _4,new xi,new xt,new _8,new xa],function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];return function(t,a){void 0===a&&(a=0);for(var n=[],r=t.split("\n"),o=a;o<r.length;o++){var l=r[o];if(!(l.length>1024)){var s=_5.test(l)?l.replace(_5,"$1"):l;if(!s.match(/\S*Error: /)){for(var d of i){var u=d(s,e);if(u){n.push(u);break}}if(n.length>=50)break}}}if(!n.length)return[];var c=Array.from(n);return c.reverse(),c.slice(0,50).map(e=>b_({},e,{filename:e.filename||(c[c.length-1]||{}).filename,function:e.function||"?"}))}}("web:javascript",_Q,_2)),this._instance=e,this.Zt=null!=(t=null==(i=this._instance.persistence)?void 0:i.get_property(xC))?t:[]}onRemoteConfig(e){var t,i,a;if("errorTracking"in e){var n=null!=(t=null==(i=e.errorTracking)?void 0:i.suppressionRules)?t:[],r=null==(a=e.errorTracking)?void 0:a.captureExtensionExceptions;this.Zt=n,this._instance.persistence&&this._instance.persistence.register({[xC]:this.Zt,[xE]:r})}}get ii(){var e,t=!!this._instance.get_property(xE),i=this._instance.config.error_tracking.captureExtensionExceptions;return null!=(e=null!=i?i:t)&&e}buildProperties(e,t){return this.ti.buildFromUnknown(e,{syntheticException:null==t?void 0:t.syntheticException,mechanism:{handled:null==t?void 0:t.handled}})}sendExceptionEvent(e){var t=e.$exception_list;if(this.ei(t)){if(this.ri(t))return void wr.info("Skipping exception capture because a suppression rule matched");if(!this.ii&&this.si(t))return void wr.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ni(t))return void wr.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",e,{_noTruncate:!0,_batchKey:"exceptionEvent"})}ri(e){if(0===e.length)return!1;var t=e.reduce((e,t)=>{var{type:i,value:a}=t;return bF(i)&&i.length>0&&e.$exception_types.push(i),bF(a)&&a.length>0&&e.$exception_values.push(a),e},{$exception_types:[],$exception_values:[]});return this.Zt.some(e=>{var i=e.values.map(e=>{var i,a=wi[e.operator],n=bO(e.value)?e.value:[e.value],r=null!=(i=t[e.key])?i:[];return n.length>0&&a(n,r)});return"OR"===e.type?i.some(Boolean):i.every(Boolean)})}si(e){return e.flatMap(e=>{var t,i;return null!=(t=null==(i=e.stacktrace)?void 0:i.frames)?t:[]}).some(e=>e.filename&&e.filename.startsWith("chrome-extension://"))}ni(e){if(e.length>0){var t,i,a,n,r=null!=(t=null==(i=e[0].stacktrace)?void 0:i.frames)?t:[],o=r[r.length-1];return null!=(a=null==o||null==(n=o.filename)?void 0:n.includes("posthog.com/static"))&&a}return!1}ei(e){return!bz(e)&&bO(e)}}var wl=xl("[FeatureFlags]"),ws=xl("[FeatureFlags]",{debugEnabled:!0}),wd="$active_feature_flags",wu="$override_feature_flags",wc="$feature_flag_payloads",wp="$override_feature_flag_payloads",wm="$feature_flag_request_id",wf="$feature_flag_evaluated_at",wh=e=>{var t={};for(var[i,a]of xh(e||{}))a&&(t[i]=a);return t},wg=function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e}({});class wv{constructor(e){this.oi=!1,this.ai=!1,this.li=!1,this.ui=!1,this.hi=!1,this.di=!1,this.vi=!1,this._instance=e,this.featureFlagEventHandlers=[]}ci(){var e,t=null!=(e=this._instance.config.evaluation_contexts)?e:this._instance.config.evaluation_environments;return!this._instance.config.evaluation_environments||this._instance.config.evaluation_contexts||this.vi||(wl.w
28arn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.vi=!0),null!=t&&t.length?t.filter(e=>{var t=e&&"string"==typeof e&&e.trim().length>0;return t||wl.error("Invalid evaluation context found:",e,"Expected non-empty string"),t}):[]}fi(){return this.ci().length>0}get hasLoadedFlags(){return this.ai}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var e=this._instance.get_property(xB),t=this._instance.get_property(wu),i=this._instance.get_property(wp);if(!i&&!t)return e||{};var a=xm({},e||{});for(var n of[...new Set([...Object.keys(i||{}),...Object.keys(t||{})])]){var r,o,l=a[n],s=null==t?void 0:t[n],d=bD(s)?null!=(r=null==l?void 0:l.enabled)&&r:!!s,u=bD(s)?l.variant:"string"==typeof s?s:void 0,c=null==i?void 0:i[n],p=b_({},l,{enabled:d,variant:d?null!=u?u:null==l?void 0:l.variant:void 0});d!==(null==l?void 0:l.enabled)&&(p.original_enabled=null==l?void 0:l.enabled),u!==(null==l?void 0:l.variant)&&(p.original_variant=null==l?void 0:l.variant),c&&(p.metadata=b_({},null==l?void 0:l.metadata,{payload:c,original_payload:null==l||null==(o=l.metadata)?void 0:o.payload})),a[n]=p}return this.oi||(wl.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:i,finalDetails:a}),this.oi=!0),a}getFlagVariants(){var e=this._instance.get_property(xF),t=this._instance.get_property(wu);if(!t)return e||{};for(var i=xm({},e),a=Object.keys(t),n=0;n<a.length;n++)i[a[n]]=t[a[n]];return this.oi||(wl.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:i}),this.oi=!0),i}getFlagPayloads(){var e=this._instance.get_property(wc),t=this._instance.get_property(wp);if(!t)return e||{};for(var i=xm({},e||{}),a=Object.keys(t),n=0;n<a.length;n++)i[a[n]]=t[a[n]];return this.oi||(wl.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,finalPayloads:i}),this.oi=!0),i}reloadFeatureFlags(){this.ui||this._instance.config.advanced_disable_feature_flags||this.pi||(this._instance.gi.emit("featureFlagsReloading",!0),this.pi=setTimeout(()=>{this.mi()},5))}bi(){clearTimeout(this.pi),this.pi=void 0}ensureFlagsLoaded(){this.ai||this.li||this.pi||this.reloadFeatureFlags()}setAnonymousDistinctId(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.ui=e}mi(e){var t;if(this.bi(),!this._instance.M())if(this.li)this.hi=!0;else{var i=this._instance.config.token,a=this._instance.get_property("$device_id"),n={token:i,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:b_({},(null==(t=this._instance.persistence)?void 0:t.get_initial_props())||{},this._instance.get_property(xz)||{}),group_properties:this._instance.get_property(xU),timezone:Iv()};bB(a)||bD(a)||(n.$device_id=a),(null!=e&&e.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.fi()&&(n.evaluation_contexts=this.ci());var r=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",o=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+r);this.li=!0,this._instance._send_request({method:"POST",url:o,data:n,compression:this._instance.config.disable_compression?void 0:Iw.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:e=>{var t,i,a,r=!0;if(200===e.statusCode&&(this.hi||(this.$anon_distinct_id=void 0),r=!1),this.li=!1,!n.disable_flags||this.hi){this.di=!r;var o,l=[];e.error?e.error instanceof Error?l.push("AbortError"===e.error.name?"timeout":"connection_error"):l.push("unknown_error"):200!==e.statusCode&&l.push("api_error_"+e.statusCode),null!=(t=e.json)&&t.errorsWhileComputingFlags&&l.push("errors_while_computing_flags");var s=!(null==(i=e.json)||null==(i=i.quotaLimited)||!i.includes(wg.FeatureFlags));(s&&l.push("quota_limited"),null==(a=this._instance.persistence)||a.register({[xH]:l}),s)?wl.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(n.disable_flags||this.receivedFeatureFlags(null!=(o=e.json)?o:{}
28,r),this.hi&&(this.hi=!1,this.mi()))}}})}}getFeatureFlag(e,t){var i;if(void 0===t&&(t={}),this.ai||this.getFlags()&&this.getFlags().length>0){var a=this.getFeatureFlagResult(e,t);return null!=(i=null==a?void 0:a.variant)?i:null==a?void 0:a.enabled}wl.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return null==t?void 0:t.payload}getFeatureFlagResult(e,t){if(void 0===t&&(t={}),this.ai||this.getFlags()&&this.getFlags().length>0){var i=this.getFlagVariants(),a=e in i,n=i[e],r=this.getFlagPayloads()[e],o=String(n),l=this._instance.get_property(wm)||void 0,s=this._instance.get_property(wf)||void 0,d=this._instance.get_property(x$)||{};if((t.send_event||!("send_event"in t))&&(!(e in d)||!d[e].includes(o))){bO(d[e])?d[e].push(o):d[e]=[o],null==(m=this._instance.persistence)||m.register({[x$]:d});var u=this.getFeatureFlagDetails(e),c=[...null!=(f=this._instance.get_property(xH))?f:[]];bD(n)&&c.push("flag_missing");var p={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:r||null,$feature_flag_request_id:l,$feature_flag_evaluated_at:s,$feature_flag_bootstrapped_response:(null==(h=this._instance.config.bootstrap)||null==(h=h.featureFlags)?void 0:h[e])||null,$feature_flag_bootstrapped_payload:(null==(g=this._instance.config.bootstrap)||null==(g=g.featureFlagPayloads)?void 0:g[e])||null,$used_bootstrap_value:!this.di};bD(null==u||null==(v=u.metadata)?void 0:v.version)||(p.$feature_flag_version=u.metadata.version);var m,f,h,g,v,y,b,_,x,A,I,w=null!=(y=null==u||null==(b=u.reason)?void 0:b.description)?y:null==u||null==(_=u.reason)?void 0:_.code;w&&(p.$feature_flag_reason=w),null!=u&&null!=(x=u.metadata)&&x.id&&(p.$feature_flag_id=u.metadata.id),bD(null==u?void 0:u.original_variant)&&bD(null==u?void 0:u.original_enabled)||(p.$feature_flag_original_response=bD(u.original_variant)?u.original_enabled:u.original_variant),null!=u&&null!=(A=u.metadata)&&A.original_payload&&(p.$feature_flag_original_payload=null==u||null==(I=u.metadata)?void 0:I.original_payload),c.length&&(p.$feature_flag_error=c.join(",")),this._instance.capture("$feature_flag_called",p)}if(a){var k=r;if(!bD(r))try{k=JSON.parse(r)}catch(e){}return{key:e,enabled:!!n,variant:"string"==typeof n?n:void 0,payload:k}}}else wl.warn('getFeatureFlagResult for key "'+e+"\" failed. Feature flags didn't load in time.")}getRemoteConfigPayload(e,t){var i=this._instance.config.token,a={distinct_id:this._instance.get_distinct_id(),token:i};this.fi()&&(a.evaluation_contexts=this.ci()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:a,compression:this._instance.config.disable_compression?void 0:Iw.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:i=>{var a,n=null==(a=i.json)?void 0:a.featureFlagPayloads;t((null==n?void 0:n[e])||void 0)}})}isFeatureEnabled(e,t){if(void 0===t&&(t={}),this.ai||this.getFlags()&&this.getFlags().length>0){var i=this.getFeatureFlag(e,t);return bD(i)?void 0:!!i}wl.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(t=>t!==e)}receivedFeatureFlags(e,t){if(this._instance.persistence){this.ai=!0;var i=this.getFlagVariants(),a=this.getFlagPayloads(),n=this.getFlagsWithDetails();!function(e,t,i,a,n){void 0===i&&(i={}),void 0===a&&(a={}),void 0===n&&(n={});var r,o=((r=e.flags)?(e.featureFlags=Object.fromEntries(Object.keys(r).map(e=>{var t;return[e,null!=(t=r[e].variant)?t:r[e].enabled]})),e.featureFlagPayloads=Object.fromEntries(Object.keys(r).filter(e=>r[e].enabled).filter(e=>{var t;return null==(t=r[e].metadata)?void 0:t.payload}).map(e=>{var t;return[e,null==(t=r[e].metadata)?void 0:t.payload]}))):wl.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e),l=o.flags,s=o.featureFlags,d=o.featureFlagPayloads;if(s){var u=e.requestId,c=e.evaluatedAt;if(bO(s)){wl.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var p={};if(s)for(var m=0;m<s.length;m++)p[s[m]]=!0;t&&t.register({[wd]:s,[xF]:p})}else{var f=s,h=d,g=l;if(e.errorsWhileComputingFlags)if(l){var v=new Set(Object.keys(l).filter(e=>{var t;return!(null!=(t=l[e])&&t.failed)}));f=b_({},i,Object.fromEntries(Object.entries(f).filter(e=>{var[t]=e;return v.has(t)}))),h=b_({},a,Object.fromEntries(Object.entries(h||{}).filter(e=>{var[t]=e;return v.has(t)}))),g=b_({},n,Object.fromEntries(Object.entries(g||{}).filter(e=>{var[t]=e;return v.has(t)})))}else f=b_({},i,f),h=b_({},a,h),g=b_({},n,g);
vendor: 3,103 bytes, line 28
28t&&t.register(b_({[wd]:Object.keys(wh(f)),[xF]:f||{},[wc]:h||{},[xB]:g||{}},u?{[wm]:u}:{},c?{[wf]:c}:{}))}}}(e,this._instance.persistence,i,a,n),this.yi(t)}}override(e,t){void 0===t&&(t=!1),wl.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this._instance.persistence)return wl.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(!1===e)return this._instance.persistence.unregister(wu),this._instance.persistence.unregister(wp),this.yi(),ws.info("All overrides cleared");if(e&&"object"==typeof e&&("flags"in e||"payloads"in e)){var t;if(this.oi=!!(null!=(t=e.suppressWarning)&&t),"flags"in e){if(!1===e.flags)this._instance.persistence.unregister(wu),ws.info("Flag overrides cleared");else if(e.flags){if(bO(e.flags)){for(var i={},a=0;a<e.flags.length;a++)i[e.flags[a]]=!0;this._instance.persistence.register({[wu]:i})}else this._instance.persistence.register({[wu]:e.flags});ws.info("Flag overrides set",{flags:e.flags})}}return"payloads"in e&&(!1===e.payloads?(this._instance.persistence.unregister(wp),ws.info("Payload overrides cleared")):e.payloads&&(this._instance.persistence.register({[wp]:e.payloads}),ws.info("Payload overrides set",{payloads:e.payloads}))),void this.yi()}this.yi()}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.ai){var{flags:t,flagVariants:i}=this.wi();e(t,i)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,i){var a,n=(this._instance.get_property(xL)||[]).find(t=>t.flagKey===e),r={["$feature_enrollment/"+e]:t},o={$feature_flag:e,$feature_enrollment:t,$set:r};n&&(o.$early_access_feature_name=n.name),i&&(o.$feature_enrollment_stage=i),this._instance.capture("$feature_enrollment_update",o),this.setPersonPropertiesForFlags(r,!1);var l=b_({},this.getFlagVariants(),{[e]:t});null==(a=this._instance.persistence)||a.register({[wd]:Object.keys(wh(l)),[xF]:l}),this.yi()}getEarlyAccessFeatures(e,t,i){void 0===t&&(t=!1);var a=this._instance.get_property(xL),n=i?"&"+i.map(e=>"stage="+e).join("&"):"";if(a&&!t)return e(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+n),method:"GET",callback:t=>{var i,a;if(t.json){var n=t.json.earlyAccessFeatures;return null==(i=this._instance.persistence)||i.unregister(xL),null==(a=this._instance.persistence)||a.register({[xL]:n}),e(n)}}})}wi(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(e=>t[e]),flagVariants:Object.keys(t).filter(e=>t[e]).reduce((e,i)=>(e[i]=t[i],e),{})}}yi(e){var{flags:t,flagVariants:i}=this.wi();this.featureFlagEventHandlers.forEach(a=>a(t,i,{errorsLoading:e}))}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0);var i=this._instance.get_property(xz)||{};this._instance.register({[xz]:b_({},i,e)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(xz)}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0);var i=this._instance.get_property(xU)||{};
280!==Object.keys(i).length&&Object.keys(i).forEach(t=>{i[t]=b_({},i[t],e[t]),delete e[t]}),this._instance.register({[xU]:b_({},i,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this._instance.get_property(xU)||{};this._instance.register({[xU]:b_({},t,{[e]:{}})})}else this._instance.unregister(xU)}reset(){this.ai=!1,this.li=!1,this.ui=!1,this.hi=!1,this.di=!1,this.$anon_distinct_id=void 0,this.bi(),this.oi=!1}}var wy=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class wb{constructor(e,t){this.R=e,this.props={},this.$i=!1,this.xi=(e=>{var t="";return e.token&&(t=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),e.persistence_name?"ph_"+e.persistence_name:"ph_"+t+"_posthog"})(e),this.Y=this.Ei(e),this.load(),e.debug&&xo.info("Persistence loaded",e.persistence,b_({},this.props)),this.update_config(e,e,t),this.save()}isDisabled(){return!!this.Si}Ei(e){-1===wy.indexOf(e.persistence.toLowerCase())&&(xo.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t,i,a=(void 0===(t=e.cookie_persisted_properties||[])&&(t=[]),i=[...A$,...t],b_({},Aq,{W:function(e){try{var t={};try{t=Az.W(e)||{}}catch(e){}var i=xm(t,JSON.parse(Aq.q(e)||"{}"));return Aq.G(e,i),i}catch(e){}return null},G:function(e,t,a,n,r,o){try{Aq.G(e,t,void 0,void 0,o);var l={};i.forEach(e=>{t[e]&&(l[e]=t[e])}),Object.keys(l).length&&Az.G(e,l,a,n,r,o)}catch(e){Aq.B(e)}},V:function(e,t){try{null==bn||bn.localStorage.removeItem(e),Az.V(e,t)}catch(e){Aq.B(e)}}})),n=e.persistence.toLowerCase();return"localstorage"===n&&Aq.H()?Aq:"localstorage+cookie"===n&&a.H()?a:"sessionstorage"===n&&AG.H()?AG:"memory"===n?AV:"cookie"===n?Az:a.H()?a:Az}properties(){var e={};return xp(this.props,function(t,i){if(i===xF&&bN(t))for(var a,n=Object.keys(t),r=0;r<n.length;r++)e["$feature/"+n[r]]=t[n[r]];else a=!1,(bB(x0)?a:bs&&x0.indexOf===bs?-1!=x0.indexOf(i):(xp(x0,function(e){if(a||(a=e===i))return xu}),a))||(e[i]=t)}),e}load(){if(!this.Si){var e=this.Y.W(this.xi);e&&(this.props=xm({},e))}}save(){this.Si||this.Y.G(this.xi,this.props,this.ki,this.Pi,this.Ti,this.R.debug)}remove(){this.Y.V(this.xi,!1),this.Y.V(this.xi,!0)}clear(){this.remove(),this.props={}}register_once(e,t,i){if(bN(e)){bD(t)&&(t="None"),this.ki=bD(i)?this.Ii:i;var a=!1;if(xp(e,(e,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==t||(this.props[i]=e,a=!0)}),a)return this.save(),!0}return!1}register(e,t){if(bN(e)){this.ki=bD(t)?this.Ii:t;var i=!1;if(xp(e,(t,a)=>{e.hasOwnProperty(a)&&this.props[a]!==t&&(this.props[a]=t,i=!0)}),i)return this.save(),!0}return!1}unregister(e){e in this.props&&(delete this.props[e],this.save())}update_campaign_params(){if(!this.$i){var e=Iu(this.R.custom_campaign_params,this.R.mask_personal_data_properties,this.R.custom_personal_data_properties);bj(xy(e))||this.register(e),this.$i=!0}}update_search_keyword(){var e;this.register((e=null==bu?void 0:bu.referrer)?Ip(e):{})}update_referrer_info(){var e;this.register_once({$referrer:If(),$referring_domain:null!=bu&&bu.referrer&&(null==(e=Ax(bu.referrer))?void 0:e.host)||"$direct"},void 0)}set_initial_person_info(){this.props[xK]||this.props[xZ]||this.register_once({[xY]:Ih(this.R.mask_personal_data_properties,this.R.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};xp([xZ,xK],t=>{var i=this.props[t];i&&xp(i,function(t,i){e["$initial_"+bT(i)]=t})});var t,i,a=this.props[xY];return a&&xm(e,(t=Ig(a),i={},xp(t,function(e,t){i["$initial_"+bT(t)]=e}),i)),e}safe_merge(e){return xp(this.props,function(t,i){i in e||(e[i]=t)}),e}update_config(e,t,i){if(this.Ii=this.ki=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!i),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence||!((e,t)=>{if(e.length!==t.length)return!1;var i=[...e].sort(),a=[...t].sort();return i.every((e,t)=>e===a[t])})(e.cookie_persisted_properties||[],t.cookie_persisted_properties||[])){var a=this.Ei(e),n=this.props;this.clear(),this.Y=a,this.props=n,this.save()}}set_disabled(e){this.Si=e,this.Si?this.remove():this.save()}set_cross_subdomain(e){e!==this.Pi&&(this.Pi=e,this.remove(),this.save())}set_secure(e){e!==this.Ti&&(this.Ti=e,this.remove(),this.save())}set_event_timer(e,t){var i=this.props[xw]||{};i[e]=t,this.props[xw]=i,this.save()}remove_event_timer(e){var t=(this.props[xw]||{})[e];return bD(t)||(delete this.props[xw][e],this.save()),t}get_property(e){return this.props[e]}set_property(e,t){this.props[e]=t,this.save()}}var w_=xl("[Product Tours]"),wx="ph_product_tours";class wA{constructor(e){this.Ci=null,this.Ri=null,this._instance=e}onRemoteConfig(e){"productTours"in e&&(this._instance.persistence&&this._instance.persistence.register({[xO]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ci||(e=this._instance).config.disable_product_tours||null==(t=e.persistence)||!t.get_property(xO)||this.it(()=>this.Fi())}it(e){var t,i;null!=(t=bg.__PosthogExtensions__)&&t.generateProductTours?e():null==(i=bg.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"product-tours",t=>{t?w_.error("Could not load product tours script",t):e()})}Fi(){var e;!this.Ci&&null!=(e=bg.__PosthogExtensions__)&&e.generateProductTours&&(this.Ci=bg.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(void 0===t&&(t=!1),!bO(this.Ri)||t){var i=this._instance.persistence;if(i){var a=i.props[wx];if(bO(a)&&!t)return this.Ri=a,void e(a,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:t=>{var a=t.statusCode;if(200!==a||!t.json){var n="Product Tours API could not be loaded, status: "+a;return w_.error(n),void e([],{isLoaded:!1,error:n})}
28var r=bO(t.json.product_tours)?t.json.product_tours:[];this.Ri=r,i&&i.register({[wx]:r}),e(r,{isLoaded:!0})}})}else e(this.Ri,{isLoaded:!0})}getActiveProductTours(e){bz(this.Ci)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ci.getActiveProductTours(e)}showProductTour(e){var t;null==(t=this.Ci)||t.showTourById(e)}previewTour(e){this.Ci?this.Ci.previewTour(e):this.it(()=>{var t;this.Fi(),null==(t=this.Ci)||t.previewTour(e)})}dismissProductTour(){var e;null==(e=this.Ci)||e.dismissTour("user_clicked_skip")}nextStep(){var e;null==(e=this.Ci)||e.nextStep()}previousStep(){var e;null==(e=this.Ci)||e.previousStep()}clearCache(){var e;this.Ri=null,null==(e=this._instance.persistence)||e.unregister(wx)}resetTour(e){var t;null==(t=this.Ci)||t.resetTour(e)}resetAllTours(){var e;null==(e=this.Ci)||e.resetAllTours()}cancelPendingTour(e){var t;null==(t=this.Ci)||t.cancelPendingTour(e)}}var wI=function(e){return e.Activation="events",e.Cancellation="cancelEvents",e}({}),ww=(function(e){e.Button="button",e.Tab="tab",e.Selector="selector"}({}),function(e){e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger"}({}),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}({}),function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e}({})),wk=(function(e){e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link"}({}),function(e){e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question"}({}),function(e){e.Once="once",e.Recurring="recurring",e.Always="always"}({}),function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e.ABANDONED="survey abandoned",e}({})),wS=function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e.PRODUCT_TOUR_ID="$product_tour_id",e.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",e}({}),wT=function(e){return e.Popover="popover",e.Inline="inline",e}({}),wC=xl("[Surveys]"),wE="seenSurvey_",wR=e=>((e,t)=>{var i=""+e+t.id;return t.current_iteration&&t.current_iteration>0&&(i=""+e+t.id+"_"+t.current_iteration),i})(wE,e),wP=[ww.Popover,ww.Widget,ww.API],wO={ignoreConditions:!1,ignoreDelay:!1,displayType:wT.Popover};class wM{constructor(){this.Oi={},this.Oi={}}on(e,t){return this.Oi[e]||(this.Oi[e]=[]),this.Oi[e].push(t),()=>{this.Oi[e]=this.Oi[e].filter(e=>e!==t)}}emit(e,t){for(var i of this.Oi[e]||[])i(t);for(var a of this.Oi["*"]||[])a(e,t)}}function wN(e,t,i){if(bz(e))return!1;switch(i){case"exact":return e===t;case"contains":return RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*"),"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch(e){return!1}default:return!1}}class wj{constructor(e){this.Mi=new wM,this.Ai=(e,t)=>this.ji(e,t)&&this.Di(e,t)&&this.Li(e,t)&&this.Ni(e,t),this.ji=(e,t)=>null==t||!t.event||(null==e?void 0:e.event)===(null==t?void 0:t.event),this._instance=e,this.Ui=new Set,this.zi=new Set}init(){var e,t;bD(null==(e=this._instance)?void 0:e._addCaptureHook)||null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.on(e,t)})}register(e){var t,i;if(!bD(null==(t=this._instance)?void 0:t._addCaptureHook)&&(e.forEach(e=>{var t,i;null==(t=this.zi)||t.add(e),null==(i=e.steps)||i.forEach(e=>{var t;null==(t=this.Ui)||t.add((null==e?void 0:e.event)||"")})}),null!=(i=this._instance)&&i.autocapture)){var a,n=new Set;e.forEach(e=>{var t;null==(t=e.steps)||t.forEach(e=>{null!=e&&e.selector&&n.add(null==e?void 0:e.selector)})}),null==(a=this._instance)||a.autocapture.setElementSelectors(n)}}on(e,t){var i;null!=t&&0!=e.length&&(this.Ui.has(e)||this.Ui.has(null==t?void 0:t.event))&&this.zi&&(null==(i=this.zi)?void 0:i.size)>
280&&this.zi.forEach(e=>{this.Hi(t,e)&&this.Mi.emit("actionCaptured",e.name)})}Bi(e){this.onAction("actionCaptured",t=>e(t))}Hi(e,t){if(null==(null==t?void 0:t.steps))return!1;for(var i of t.steps)if(this.Ai(e,i))return!0;return!1}onAction(e,t){return this.Mi.on(e,t)}Di(e,t){if(null!=t&&t.url){var i,a=null==e||null==(i=e.properties)?void 0:i.$current_url;if(!a||"string"!=typeof a||!wN(a,t.url,t.url_matching||"contains"))return!1}return!0}Li(e,t){return!!this.qi(e,t)&&!!this.Wi(e,t)&&!!this.Gi(e,t)}qi(e,t){if(null==t||!t.href)return!0;var i=this.Vi(e);if(i.length>0)return i.some(e=>wN(e.href,t.href,t.href_matching||"exact"));var a,n,r=(null==e||null==(a=e.properties)?void 0:a.$elements_chain)||"";return!!r&&wN((n=r.match(/(?::|")href="(.*?)"/))?n[1]:"",t.href,t.href_matching||"exact")}Wi(e,t){if(null==t||!t.text)return!0;var i=this.Vi(e);if(i.length>0)return i.some(e=>wN(e.text,t.text,t.text_matching||"exact")||wN(e.$el_text,t.text,t.text_matching||"exact"));var a,n,r,o,l=(null==e||null==(a=e.properties)?void 0:a.$elements_chain)||"";return!!l&&(n=function(e){for(var t,i=[],a=/(?::|")text="(.*?)"/g;!bz(t=a.exec(e));)i.includes(t[1])||i.push(t[1]);return i}(l),r=t.text,o=t.text_matching||"exact",n.some(e=>wN(e,r,o)))}Gi(e,t){if(null==t||!t.selector)return!0;var i,a,n=null==e||null==(i=e.properties)?void 0:i.$element_selectors;if(null!=n&&n.includes(t.selector))return!0;var r=(null==e||null==(a=e.properties)?void 0:a.$elements_chain)||"";if(t.selector_regex&&r)try{return new RegExp(t.selector_regex).test(r)}catch(e){}return!1}Vi(e){var t;return null==(null==e||null==(t=e.properties)?void 0:t.$elements)?[]:null==e?void 0:e.properties.$elements}Ni(e,t){return null==t||!t.properties||0===t.properties.length||wn(t.properties.reduce((e,t)=>{var i=bO(t.value)?t.value.map(String):null!=t.value?[String(t.value)]:[];return e[t.key]={values:i,operator:t.operator||"exact"},e},{}),null==e?void 0:e.properties)}}class wD{constructor(e){this._instance=e,this.Ji=new Map,this.Ki=new Map,this.Yi=new Map}Xi(e,t){return!!e&&wn(e.propertyFilters,null==t?void 0:t.properties)}Qi(e,t){var i=new Map;return e.forEach(e=>{var a;null==(a=e.conditions)||null==(a=a[t])||null==(a=a.values)||a.forEach(t=>{if(null!=t&&t.name){var a=i.get(t.name)||[];a.push(e.id),i.set(t.name,a)}})}),i}Zi(e,t,i){var a=(i===wI.Activation?this.Ji:this.Ki).get(e),n=[];return this.te(e=>{n=e.filter(e=>null==a?void 0:a.includes(e.id))}),n.filter(a=>{var n,r=null==(n=a.conditions)||null==(n=n[i])||null==(n=n.values)?void 0:n.find(t=>t.name===e);return this.Xi(r,t)})}register(e){var t;bD(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.ie(e),this.ee(e))}ee(e){var t=e.filter(e=>{var t,i;return(null==(t=e.conditions)?void 0:t.actions)&&(null==(i=e.conditions)||null==(i=i.actions)||null==(i=i.values)?void 0:i.length)>0});0!==t.length&&(null==this.re&&(this.re=new wj(this._instance),this.re.init(),this.re.Bi(e=>{this.onAction(e)})),t.forEach(e=>{var t,i,a,n,r;e.conditions&&null!=(t=e.conditions)&&t.actions&&null!=(i=e.conditions)&&null!=(i=i.actions)&&i.values&&(null==(a=e.conditions)||null==(a=a.actions)||null==(a=a.values)?void 0:a.length)>0&&(null==(n=this.re)||n.register(e.conditions.actions.values),null==(r=e.conditions)||null==(r=r.actions)||null==(r=r.values)||r.forEach(t=>{if(t&&t.name){var i=this.Yi.get(t.name);i&&i.push(e.id),this.Yi.set(t.name,i||[e.id])}}))}))}ie(e){var t,i=e.filter(e=>{var t,i;return(null==(t=e.conditions)?void 0:t.events)&&(null==(i=e.conditions)||null==(i=i.events)||null==(i=i.values)?void 0:i.length)>0}),a=e.filter(e=>{var t,i;return(null==(t=e.conditions)?void 0:t.cancelEvents)&&(null==(i=e.conditions)||null==(i=i.cancelEvents)||null==(i=i.values)?void 0:i.length)>0});(0!==i.length||0!==a.length)&&(null==(t=this._instance)||t._addCaptureHook((e,t)=>{this.onEvent(e,t)}),this.Ji=this.Qi(e,wI.Activation),this.Ki=this.Qi(e,wI.Cancellation))}onEvent(e,t){var i,a=this.se(),n=this.ne(),r=this.oe(),o=(null==(i=this._instance)||null==(i=i.persistence)?void 0:i.props[n])||[];if(r===e&&t&&o.length>0){a.info("event matched, removing item from activated items",{event:e,eventPayload:t,existingActivatedItems:o});var l,s,d=(null==t||null==(l=t.properties)?void 0:l.$survey_id)||(null==t||null==(s=t.properties)?void 0:s.$product_tour_id);if(d){var u=o.indexOf(d);u>=0&&(o.splice(u,1),this.ae(o))}}else{if(this.Ki.has(e)){var c=this.Zi(e,t,wI.Cancellation);c.length>0&&(a.info("cancel event matched, cancelling items",{event:e,itemsToCancel:c.map(e=>e.id)}
28),c.forEach(e=>{var t=o.indexOf(e.id);t>=0&&o.splice(t,1),this.le(e.id)}),this.ae(o))}if(this.Ji.has(e)){a.info("event name matched",{event:e,eventPayload:t,items:this.Ji.get(e)});var p=this.Zi(e,t,wI.Activation);this.ae(o.concat(p.map(e=>e.id)||[]))}}}onAction(e){var t,i=this.ne(),a=(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[i])||[];this.Yi.has(e)&&this.ae(a.concat(this.Yi.get(e)||[]))}ae(e){var t,i=this.se(),a=this.ne(),n=[...new Set(e)].filter(e=>!this.ue(e));i.info("updating activated items",{activatedItems:n}),null==(t=this._instance)||null==(t=t.persistence)||t.register({[a]:n})}getActivatedIds(){var e,t=this.ne();return(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[t])||[]}getEventToItemsMap(){return this.Ji}he(){return this.re}}class wF extends wD{constructor(e){super(e)}ne(){return"$surveys_activated"}oe(){return wk.SHOWN}te(e){var t;null==(t=this._instance)||t.getSurveys(e)}le(e){var t;null==(t=this._instance)||t.cancelPendingSurvey(e)}se(){return wC}ue(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}class wL{constructor(e){this.de=void 0,this._surveyManager=null,this.ve=!1,this.ce=[],this.fe=null,this._instance=e,this._surveyEventReceiver=null}onRemoteConfig(e){if(!this._instance.config.disable_surveys){var t=e.surveys;if(bz(t))return wC.warn("Flags not loaded yet. Not loading surveys.");var i=bO(t);this.de=i?t.length>0:t,wC.info("flags response received, isSurveysEnabled: "+this.de),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var i=localStorage.key(t);(null!=i&&i.startsWith(wE)||null!=i&&i.startsWith("inProgressSurvey_"))&&e.push(i)}e.forEach(e=>localStorage.removeItem(e))}loadIfEnabled(){if(!this._surveyManager)if(this.ve)wC.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)wC.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())wC.info("Not loading surveys in cookieless mode without consent.");else{var e=null==bg?void 0:bg.__PosthogExtensions__;if(e){if(!bD(this.de)||this._instance.config.advanced_enable_surveys){var t=this.de||this._instance.config.advanced_enable_surveys;this.ve=!0;try{var i=e.generateSurveys;if(i)return void this.pe(i,t);var a=e.loadExternalDependency;if(!a)return void this._e("PostHog loadExternalDependency extension not found.");a(this._instance,"surveys",i=>{i||!e.generateSurveys?this._e("Could not load surveys script",i):this.pe(e.generateSurveys,t)})}catch(e){throw this._e("Error initializing surveys",e),e}finally{this.ve=!1}}}else wC.error("PostHog Extensions not found.")}}pe(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new wF(this._instance),wC.info("Surveys loaded successfully"),this.ge({isLoaded:!0})}_e(e,t){wC.error(e,t),this.ge({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.ce.push(e),this._surveyManager&&this.ge({isLoaded:!0}),()=>{this.ce=this.ce.filter(t=>t!==e)}}getSurveys(e,t){if(void 0===t&&(t=!1),this._instance.config.disable_surveys)return wC.info("Disabled. Not loading surveys."),e([]);var i,a=this._instance.get_property(xq);if(a&&!t)return e(a,{isLoaded:!0});"undefined"!=typeof Promise&&this.fe?this.fe.then(t=>{var{surveys:i,context:a}=t;return e(i,a)}):("undefined"!=typeof Promise&&(this.fe=new Promise(e=>{i=e})),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:t=>{this.fe=null;var a=t.statusCode;if(200!==a||!t.json){var n="Surveys API could not be loaded, status: "+a;wC.error(n);var r={isLoaded:!1,error:n};return e([],r),void(null==i||i({surveys:[],context:r}))}var o,l,s=t.json.surveys||[],d=s.filter(e=>{var t,i;return!(!e.start_date||e.end_date)&&(!(null==(t=e.conditions)||null==(t=t.events)||null==(t=t.values)||!t.length)||!(null==(i=e.conditions)||null==(i=i.actions)||null==(i=i.values)||!i.length))});d.length>0&&(null==(l=this._surveyEventReceiver)||l.register(d)),null==(o=this._instance.persistence)||o.register({[xq]:s});var u={isLoaded:!0};e(s,u),null==i||i({surveys:s,context:u})}}))}ge(e){for(var t of this.ce)try{if(!e.isLoaded)return t([],e);
28this.getSurveys(t)}catch(e){wC.error("Error in survey callback",e)}}getActiveMatchingSurveys(e,t){if(void 0===t&&(t=!1),!bz(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);wC.warn("init was not called")}me(e){var t=null;return this.getSurveys(i=>{var a;t=null!=(a=i.find(t=>t.id===e))?a:null}),t}be(e){if(bz(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var t="string"==typeof e?this.me(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(bz(this._surveyManager))return wC.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var t=this.be(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return bz(this._surveyManager)?(wC.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise(i=>{this.getSurveys(t=>{var a,n=null!=(a=t.find(t=>t.id===e))?a:null;if(n){var r=this.be(n);i({visible:r.eligible,disabledReason:r.reason})}else i({visible:!1,disabledReason:"Survey not found"})},t)})}renderSurvey(e,t,i){var a;if(bz(this._surveyManager))wC.warn("init was not called");else{var n="string"==typeof e?this.me(e):e;if(null!=n&&n.id)if(wP.includes(n.type)){var r=null==bu?void 0:bu.querySelector(t);if(r)return null!=(a=n.appearance)&&a.surveyPopupDelaySeconds?(wC.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout(()=>{var e,t;wC.info("Rendering survey "+n.id+" with delay of "+(null==(e=n.appearance)?void 0:e.surveyPopupDelaySeconds)+" seconds"),null==(t=this._surveyManager)||t.renderSurvey(n,r,i),wC.info("Survey "+n.id+" rendered")},1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,i);wC.warn("Survey element not found")}else wC.warn("Surveys of type "+n.type+" cannot be rendered in the app");else wC.warn("Survey not found")}}displaySurvey(e,t){var i;if(bz(this._surveyManager))wC.warn("init was not called");else{var a=this.me(e);if(a){var n=a;if(null!=(i=a.appearance)&&i.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=b_({},a,{appearance:b_({},a.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==wT.Popover&&t.initialResponses&&wC.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),!1===t.ignoreConditions){var r=this.canRenderSurvey(a);if(!r.visible)return void wC.warn("Survey is not eligible to be displayed: ",r.disabledReason)}t.displayType!==wT.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else wC.warn("Survey not found")}}cancelPendingSurvey(e){bz(this._surveyManager)?wC.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;null==(e=this._surveyManager)||e.handlePageUnload()}}var wB=xl("[Conversations]");class wz{constructor(e){this.ye=void 0,this._conversationsManager=null,this.we=!1,this.$e=null,this._instance=e}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;bz(t)||(b$(t)?this.ye=t:(this.ye=t.enabled,this.$e=t),this.loadIfEnabled())}}reset(){var e;null==(e=this._conversationsManager)||e.reset(),this._conversationsManager=null,this.ye=void 0,this.$e=null}loadIfEnabled(){if(!this._conversationsManager&&!this.we&&!(this._instance.config.disable_conversations||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=null==bg?void 0:bg.__PosthogExtensions__;if(e&&!bD(this.ye)&&this.ye)if(this.$e&&this.$e.token){this.we=!0;try{var t=e.initConversations;if(t)return this.xe(t),void(this.we=!1);var i=e.loadExternalDependency;if(!i)return void this.Ee("PostHog loadExternalDependency extension not found.");i(this._instance,"conversations",t=>{t||!e.initConversations?this.Ee("Could not load conversations script",t):this.xe(e.initConversations),this.we=!1})}catch(e){this.Ee("Error initializing conversations",e),this.we=!1}}else wB.error("Conversations enabled but missing token in remote config.")}}xe(e){if(this.$e)try{this._conversationsManager=e(this.$e,this._instance),wB.info("Conversations loaded successfully")}catch(e){this.Ee("Error completing conversations initialization",e)}else wB.error("Cannot complete initialization: remote config is null")}Ee(e,t){wB.error(e,t),this._conversationsManager=null,this.we=!1}show(){this._conversationsManager?this._conversationsManager.show():wB.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return!0===this.ye&&!bB(this._conversationsManager)}isVisible(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.isVisible())&&e}sendMessage(e,t,i){var a=this;return bb(function*(){return a._conversationsManager?a._conversationsManager.sendMessage(e,t,i):(wB.warn("Conversations not available yet."),null)})()}getMessages(e,t){var i=this;return bb(function*(){return i._conversationsManager?i._conversationsManager.getMessages(e,t):(wB.warn("Conversations not available yet."),null)})()}markAsRead(e){var t=this;return bb(function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(wB.warn("Conversations not available yet."),null)})()}getTickets(e){var t=this;return bb(function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(wB.warn("Conversations not available yet."),null)})()}getCurrentTicketId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getCurrentTicketId())?e:null}getWidgetSessionId(){var e,t;return null!=(e=null==(t=this._conversationsManager)?void 0:t.getWidgetSessionId())?e:null}}class wU{constructor(e){var t;this.Se=!1,this.ke=!1,this._instance=e,this._instance&&null!=(t=this._instance.config.logs)&&t.captureConsoleLogs&&(this.Se=!0)}onRemoteConfig(e){var t,i=null==(t=e.logs)?void 0:t.captureConsoleLogs;!bz(i)&&i&&(this.Se=!0,this.loadIfEnabled())}reset(){}loadIfEnabled(){if(this.Se&&!this.ke){var e=xl("[logs]"),t=null==bg?void 0:bg.__PosthogExtensions__;if(t){var i=t.loadExternalDependency;i?i(this._instance,"logs",i=>{var a;i||null==(a=t.logs)||!a.initializeLogs?e.error("Could not load logs script",i):(t.logs.initializeLogs(this._instance),this.ke=!0)}):e.error("PostHog loadExternalDependency extension not found.")}else e.error("PostHog Extensions not found.")}}}var wq=xl("[RateLimiter]");class w${constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=e=>{var t=e.text;
28if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(e=>{wq.info((e||"events")+" is quota limited."),this.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void wq.warn('could not rate limit - continuing. Error: "'+(null==e?void 0:e.message)+'"',{text:t})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return(null==(e=this.instance.config.rate_limiting)?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max((null==(e=this.instance.config.rate_limiting)?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){void 0===e&&(e=!1);var t,i,a,{captureEventsBurstLimit:n,captureEventsPerSecond:r}=this,o=(new Date).getTime(),l=null!=(t=null==(i=this.instance.persistence)?void 0:i.get_property(xG))?t:{tokens:n,last:o};l.tokens+=(o-l.last)/1e3*r,l.last=o,l.tokens>n&&(l.tokens=n);var s=l.tokens<1;return s||e||(l.tokens=Math.max(0,l.tokens-1)),!s||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+r+" events per second and "+n+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=s,null==(a=this.instance.persistence)||a.set_property(xG,l),{isRateLimited:s,remainingTokens:l.tokens}}isServerRateLimited(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}var wH=xl("[RemoteConfig]");class wV{constructor(e){this._instance=e}get remoteConfig(){var e;return null==(e=bg._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.config}Pe(e){var t,i;null!=(t=bg.__PosthogExtensions__)&&t.loadExternalDependency?null==(i=bg.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,"remote-config",()=>e(this.remoteConfig)):e()}Te(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:t=>{e(t.json)}})}load(){try{if(this.remoteConfig)return wH.info("Using preloaded remote config",this.remoteConfig),this.Ie(this.remoteConfig),void this.Ce();if(this._instance.M())return void wH.warn("Remote config is disabled. Falling back to local config.");this.Pe(e=>{if(!e)return wH.info("No config found after loading remote JS config. Falling back to JSON."),void this.Te(e=>{this.Ie(e),this.Ce()});this.Ie(e),this.Ce()})}catch(e){wH.error("Error loading remote config",e)}}stop(){this.Re&&(clearInterval(this.Re),this.Re=void 0)}refresh(){this._instance.M()||"hidden"===(null==bu?void 0:bu.visibilityState)||this._instance.featureFlags.reloadFeatureFlags()}Ce(){this.Re||(this.Re=setInterval(()=>{this.refresh()},3e5))}Ie(e){e||wH.error("Failed to fetch remote config from PostHog."),this._instance.Ie(null!=e?e:{}),!1!==(null==e?void 0:e.hasFeatureFlags)&&(this._instance.config.advanced_disable_feature_flags_on_first_load||this._instance.featureFlags.ensureFlagsLoaded())}}class wW{constructor(e,t){this.Fe=!0,this.Oe=[],this.Me=bX((null==t?void 0:t.flush_interval_ms)||3e3,250,5e3,xo.createLogger("flush interval"),3e3),this.Ae=e}enqueue(e){this.Oe.push(e),this.je||this.De()}unload(){this.Le();var e=Object.values(this.Oe.length>0?this.Ne():{});[...e.filter(e=>0===e.url.indexOf("/e")),...e.filter(e=>0!==e.url.indexOf("/e"))].map(e=>{this.Ae(b_({},e,{transport:"sendBeacon"}))})}enable(){this.Fe=!1,this.De()}De(){var e=this;this.Fe||(this.je=setTimeout(()=>{if(this.Le(),this.Oe.length>0){var t=this.Ne();for(var i in t)!function(){var a=t[i],n=(new Date).getTime();a.data&&bO(a.data)&&xp(a.data,e=>{e.offset=Math.abs(e.timestamp-n),delete e.timestamp}),e.Ae(a)}()}},this.Me))}Le(){clearTimeout(this.je),this.je=void 0}Ne(){var e={};return xp(this.Oe,t=>{var i,a=(t?t.batchKey:null)||t.url;bD(e[a])&&(e[a]=b_({},t,{data:[]})),null==(i=e[a].data)||i.push(t.data)}),this.Oe=[],e}}var wG=["retriesPerformedSoFar"];class wK{constructor(e){this.Ue=!1,this.ze=3e3,this.Oe=[],this._instance=e,this.Oe=[],this.He=!0,!bD(bn)&&"onLine"in bn.navigator&&(this.He=bn.navigator.onLine,this.Be=()=>{this.He=!0,this.Lt()},this.qe=()=>{this.He=!1},xx(bn,"online",this.Be),xx(bn,"offline",this.qe))}get length(){return this.Oe.length}retriableRequest(e){var{retriesPerformedSoFar:t}=e,i=bx(e,wG);bq(t)&&(i.url=I9(i.url,{retry_count:t})),this._instance._send_request(b_({},i,{callback:e=>{200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=t?t:0)<10?this.We(b_({retriesPerformedSoFar:t},i)):null==i.callback||i.callback(e)}}))}We(e){var t,i,a,n=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=n+1;var r=(a=(Math.random()-.5)*((i=Math.min(18e5,t=3e3*Math.pow(2,n)))-t/2),Math.ceil(i+a)),o=Date.now()+r;this.Oe.push({retryAt:o,requestOptions:e});var l="Enqueued failed request for retry in "+r;navigator.onLine||(l+=" (Browser is offline)"),xo.warn(l),this.Ue||(this.Ue=!0,this.Ge())}Ge(){if(this.Ve&&clearTimeout(this.Ve),0===this.Oe.length)return this.Ue=!1,void(this.Ve=void 0);this.Ve=setTimeout(()=>{this.He&&this.Oe.length>0&&this.Lt(),this.Ge()},this.ze)}Lt(){var e=Date.now(),t=[],i=this.Oe.filter(i=>i.retryAt<e||(t.push(i),!1));if(this.Oe=t,i.length>0)for(var{requestOptions:a}of i)this.retriableRequest(a)}unload(){for(var{requestOptions:e}of(this.Ve&&(clearTimeout(this.Ve),this.Ve=void 0),this.Ue=!1,bD(bn)||(this.Be&&(bn.removeEventListener("online",this.Be),this.Be=void 0),this.qe&&(bn.removeEventListener("offline",this.qe),this.qe=void 0)),this.Oe))try{this._instance._send_request(b_({},e,{transport:"sendBeacon"}))}catch(e){xo.error(e)}this.Oe=[]}}class wZ{constructor(e){this.Je=()=>{this.Ke||(this.Ke={});var e,t,i,a,n=this.scrollElement(),r=this.scrollY(),o=n?Math.max(0,n.scrollHeight-n.clientHeight):0,l=r+((null==n?void 0:n.clientHeight)||0),s=(null==n?void 0:n.scrollHeight)||0;this.Ke.lastScrollY=Math.ceil(r),this.Ke.maxScrollY=Math.max(r,null!=(e=this.Ke.maxScrollY)?e:0),this.Ke.maxScrollHeight=Math.max(o,null!=(t=this.Ke.maxScrollHeight)?t:0),this.Ke.lastContentY=l,this.Ke.maxContentY=Math.max(l,null!=(i=this.Ke.maxContentY)?i:0),this.Ke.maxContentHeight=Math.max(s,null!=(a=this.Ke.maxContentHeight)?a:0)},this._instance=e}getContext(){return this.Ke}resetContext(){var e=this.Ke;return setTimeout(this.Je,0),e}
28startMeasuringScrollPosition(){xx(bn,"scroll",this.Je,{capture:!0}),xx(bn,"scrollend",this.Je,{capture:!0}),xx(bn,"resize",this.Je)}scrollElement(){if(!this._instance.config.scroll_root_selector)return null==bn?void 0:bn.document.documentElement;for(var e of bO(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector]){var t=null==bn?void 0:bn.document.querySelector(e);if(t)return t}}scrollY(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return bn&&(bn.scrollY||bn.pageYOffset||bn.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return bn&&(bn.scrollX||bn.pageXOffset||bn.document.documentElement.scrollLeft)||0}}var wY=e=>Ih(null==e?void 0:e.config.mask_personal_data_properties,null==e?void 0:e.config.custom_personal_data_properties);class wX{constructor(e,t,i,a){this.Ye=e=>{var t=this.Xe();if(!t||t.sessionId!==e){var i={sessionId:e,props:this.Qe(this._instance)};this.Ze.register({[xW]:i})}},this._instance=e,this.tr=t,this.Ze=i,this.Qe=a||wY,this.tr.onSessionId(this.Ye)}Xe(){return this.Ze.props[xW]}getSetOnceProps(){var e,t=null==(e=this.Xe())?void 0:e.props;return t?"r"in t?Ig(t):{$referring_domain:t.referringDomain,$pathname:t.initialPathName,utm_source:t.utm_source,utm_campaign:t.utm_campaign,utm_medium:t.utm_medium,utm_content:t.utm_content,utm_term:t.utm_term}:{}}getSessionProps(){var e={};return xp(xy(this.getSetOnceProps()),(t,i)=>{"$current_url"===i&&(i="url"),e["$session_entry_"+bT(i)]=t}),e}}var wJ=xl("[SessionId]");class wQ{on(e,t){return this.ir.on(e,t)}constructor(e,t,i){if(this.er=[],this.rr=void 0,this.ir=new wM,this.sr=(e,t)=>!(!bq(e)||!bq(t))&&Math.abs(e-t)>this.sessionTimeoutMs,!e.persistence)throw Error("SessionIdManager requires a PostHogPersistence instance");if("always"===e.config.cookieless_mode)throw Error('SessionIdManager cannot be used with cookieless_mode="always"');this.R=e.config,this.Ze=e.persistence,this.nr=void 0,this.ar=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.lr=t||AD,this.ur=i||AD;var a,n=this.R.persistence_name||this.R.token,r=this.R.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*bX(r,60,36e3,wJ.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.hr(),this.dr="ph_"+n+"_window_id",this.vr="ph_"+n+"_primary_window_exists",this.cr()){var o=AG.W(this.dr),l=AG.W(this.vr);o&&!l?this.nr=o:AG.V(this.dr),AG.G(this.vr,!0)}if(null!=(a=this.R.bootstrap)&&a.sessionID)try{var s=(e=>{var t=e.replace(/-/g,"");if(32!==t.length)throw Error("Not a valid UUID");if("7"!==t[12])throw Error("Not a UUIDv7");return parseInt(t.substring(0,12),16)})(this.R.bootstrap.sessionID);this.pr(this.R.bootstrap.sessionID,(new Date).getTime(),s)}catch(e){wJ.error("Invalid sessionID in bootstrap",e)}this._r()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return bD(this.er)&&(this.er=[]),this.er.push(e),this.ar&&e(this.ar,this.nr),()=>{this.er=this.er.filter(t=>t!==e)}}cr(){return"memory"!==this.R.persistence&&!this.Ze.Si&&AG.H()}gr(e){e!==this.nr&&(this.nr=e,this.cr()&&AG.G(this.dr,e))}mr(){return this.nr?this.nr:this.cr()?AG.W(this.dr):null}pr(e,t,i){e===this.ar&&t===this._sessionActivityTimestamp&&i===this._sessionStartTimestamp||(this._sessionStartTimestamp=i,this._sessionActivityTimestamp=t,this.ar=e,this.Ze.register({[xj]:[t,e,i]}))}br(){var e=this.Ze.props[xj];return bO(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.pr(null,null,null)}destroy(){clearTimeout(this.yr),this.yr=void 0,this.rr&&bn&&(bn.removeEventListener("beforeunload",this.rr,{capture:!1}),this.rr=void 0),this.er=[]}_r(){this.rr=()=>{this.cr()&&AG.V(this.vr)},xx(bn,"beforeunload",this.rr,{capture:!1})}checkAndGetSessionAndWindowId(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=null),"always"===this.R.cookieless_mode)throw Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var i=t||(new Date).getTime(),[a,n,r]=this.br(),o=this.mr(),l=bq(r)&&Math.abs(i-r)>864e5,s=!1,d=!n,u=!d&&!e&&this.sr(i,a);d||u||l?(n=this.lr(),o=this.ur(),wJ.info("new session ID generated",{sessionId:n,windowId:o,changeReason:{noSessionId:d,activityTimeout:u,sessionPastMaximumLength:l}}),r=i,s=!0):o||(o=this.ur(),s=!0);var c=bq(a)&&e&&!l?a:i,p=bq(r)?r:(new Date).getTime();return this.gr(o),this.pr(n,c,p),e||this.hr(),s&&this.er.forEach(e
vendor: 5,265 bytes, line 28
28=>e(n,o,s?{noSessionId:d,activityTimeout:u,sessionPastMaximumLength:l}:void 0)),{sessionId:n,windowId:o,sessionStartTimestamp:p,changeReason:s?{noSessionId:d,activityTimeout:u,sessionPastMaximumLength:l}:void 0,lastActivityTimestamp:a}}hr(){clearTimeout(this.yr),this.yr=setTimeout(()=>{var[e]=this.br();if(this.sr((new Date).getTime(),e)){var t=this.ar;this.resetSessionId(),this.ir.emit("forcedIdleReset",{idleSessionId:t})}},1.1*this.sessionTimeoutMs)}}var w0=["$set_once","$set"],w1=xl("[SiteApps]");class w2{constructor(e){this._instance=e,this.wr=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}$r(e,t){if(t){var i=this.globalsForEvent(t);this.wr.push(i),this.wr.length>1e3&&(this.wr=this.wr.slice(10))}}get siteAppLoaders(){var e;return null==(e=bg._POSTHOG_REMOTE_CONFIG)||null==(e=e[this._instance.config.token])?void 0:e.siteApps}init(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.$r.bind(this));this.Er=()=>{e(),this.wr=[],this.Er=void 0}}}globalsForEvent(e){if(!e)throw Error("Event payload is required");var t,i,a,n,r,o,l,s={},d=this._instance.get_property("$groups")||[];for(var[u,c]of Object.entries(this._instance.get_property("$stored_group_properties")||{}))s[u]={id:d[u],type:u,properties:c};var{$set_once:p,$set:m}=e;return{event:b_({},bx(e,w0),{properties:b_({},e.properties,m?{$set:b_({},null!=(t=null==(i=e.properties)?void 0:i.$set)?t:{},m)}:{},p?{$set_once:b_({},null!=(a=null==(n=e.properties)?void 0:n.$set_once)?a:{},p)}:{}),elements_chain:null!=(r=null==(o=e.properties)?void 0:o.$elements_chain)?r:"",distinct_id:null==(l=e.properties)?void 0:l.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:s}}setupSiteApp(e){var t=this.apps[e.id],i=()=>{var i;!t.errored&&this.wr.length&&(w1.info("Processing "+this.wr.length+" events for site app with id "+e.id),this.wr.forEach(e=>null==t.processEvent?void 0:t.processEvent(e)),t.processedBuffer=!0),Object.values(this.apps).every(e=>e.processedBuffer||e.errored)&&(null==(i=this.Er)||i.call(this))},a=!1,n=n=>{t.errored=!n,t.loaded=!0,w1.info("Site app with id "+e.id+" "+(n?"loaded":"errored")),a&&i()};try{var{processEvent:r}=e.init({posthog:this._instance,callback:e=>{n(e)}});r&&(t.processEvent=r),a=!0}catch(t){w1.error("Error while initializing PostHog app with config id "+e.id,t),n(!1)}if(a&&t.loaded)try{i()}catch(i){w1.error("Error while processing buffered events PostHog app with config id "+e.id,i),t.errored=!0}}Sr(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var i of e)this.setupSiteApp(i)}kr(e){if(0!==Object.keys(this.apps).length){var t=this.globalsForEvent(e);for(var i of Object.values(this.apps))try{null==i.processEvent||i.processEvent(t)}catch(t){w1.error("Error while processing event "+e.event+" for site app "+i.id,t)}}}onRemoteConfig(e){var t,i,a,n=this;if(null!=(t=this.siteAppLoaders)&&t.length)return this.isEnabled?(this.Sr(),void this._instance.on("eventCaptured",e=>this.kr(e))):void w1.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if(null==(i=this.Er)||i.call(this),null!=(a=e.siteApps)&&a.length)if(this.isEnabled){var r=function(e){var t;bg["__$$ph_site_app_"+e]=n._instance,null==(t=bg.__PosthogExtensions__)||null==t.loadSiteApp||t.loadSiteApp(n._instance,l,t=>{if(t)return w1.error("Error while initializing PostHog app with config id "+e,t)})};for(var{id:o,url:l}of e.siteApps)r(o)}else w1.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var w5=function(e,t){if(!e)return!1;var i=e.userAgent;if(i&&bw(i,t))return!0;try{var a=null==e?void 0:e.userAgentData;if(null!=a&&a.brands&&a.brands.some(e=>bw(null==e?void 0:e.brand,t)))return!0}catch(e){}return!!e.webdriver},w3=function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e}({}),w4="i.posthog.com";class w9{constructor(e){this.Pr={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return"https://app.posthog.com"===e?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,t=null==(e=this.instance.config.ui_host)?void 0:e.replace(/\/$/,"");return t||(t=this.apiHost.replace("."+w4,".posthog.com")),"https://app.posthog.com"===t?"https://us.posthog.com":t}get region(){return this.Pr[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Pr[this.apiHost]=w3.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.Pr[this.apiHost]=w3.EU:this.Pr[this.apiHost]=w3.CUSTOM),this.Pr[this.apiHost]}endpointFor(e,t){if(void 0===t&&(t=""),t&&(t="/"===t[0]?t:"/"+t),"ui"===e)return this.uiHost+t;if("flags"===e)return this.flagsApiHost+t;if(this.region===w3.CUSTOM)return this.apiHost+t;var i=w4+t;switch(e){case"assets":return"https://"+this.region+"-assets."+i;case"api":return"https://"+this.region+"."+i}}}var w6={icontains:(e,t)=>!!bn&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!bn&&-1===t.href.toLowerCase().indexOf(e.toLowerCase()),regex:(e,t)=>!!bn&&we(t.href,e),not_regex:(e,t)=>!!bn&&!we(t.href,e),exact:(e,t)=>
28t.href===e,is_not:(e,t)=>t.href!==e};class w8{constructor(e){var t=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(e){void 0===e&&(e=!1),t.getWebExperiments(e=>{w8.Tr("retrieved web experiments from the server"),t.Ir=new Map,e.forEach(e=>{if(e.feature_flag_key){t.Ir&&(w8.Tr("setting flag key ",e.feature_flag_key," to web experiment ",e),null==(i=t.Ir)||i.set(e.feature_flag_key,e));var i,a=t._instance.getFeatureFlag(e.feature_flag_key);bF(a)&&e.variants[a]&&t.Cr(e.name,a,e.variants[a].transforms)}else if(e.variants)for(var n in e.variants){var r=e.variants[n];w8.Rr(r)&&t.Cr(e.name,n,r.transforms)}})},e)},this._instance=e,this._instance.onFeatureFlags(e=>{this.onFeatureFlags(e)})}onFeatureFlags(e){if(this._is_bot())w8.Tr("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(bz(this.Ir))return this.Ir=new Map,this.loadIfEnabled(),void this.previewWebExperiment();w8.Tr("applying feature flags",e),e.forEach(e=>{var t;if(this.Ir&&null!=(t=this.Ir)&&t.has(e)){var i,a=this._instance.getFeatureFlag(e),n=null==(i=this.Ir)?void 0:i.get(e);a&&null!=n&&n.variants[a]&&this.Cr(n.name,a,n.variants[a].transforms)}})}}previewWebExperiment(){var e=w8.getWindowLocation();if(null!=e&&e.search){var t=AI(null==e?void 0:e.search,"__experiment_id"),i=AI(null==e?void 0:e.search,"__experiment_variant");t&&i&&(w8.Tr("previewing web experiments "+t+" && "+i),this.getWebExperiments(e=>{this.Fr(parseInt(t),i,e)},!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,t,i){if(this._instance.config.disable_web_experiments&&!i)return e([]);var a=this._instance.get_property("$web_experiments");if(a&&!t)return e(a);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:t=>200===t.statusCode&&t.json?e(t.json.experiments||[]):e([])})}Fr(e,t,i){var a=i.filter(t=>t.id===e);a&&a.length>0&&(w8.Tr("Previewing web experiment ["+a[0].name+"] with variant ["+t+"]"),this.Cr(a[0].name,t,a[0].variants[t].transforms))}static Rr(e){return!bz(e.conditions)&&w8.Or(e)&&w8.Mr(e)}static Or(e){if(bz(e.conditions)||bz(null==(t=e.conditions)?void 0:t.url))return!0;var t,i,a,n,r=w8.getWindowLocation();return!!r&&(null==(i=e.conditions)||!i.url||w6[null!=(a=null==(n=e.conditions)?void 0:n.urlMatchType)?a:"icontains"](e.conditions.url,r))}
28static getWindowLocation(){return null==bn?void 0:bn.location}static Mr(e){if(bz(e.conditions)||bz(null==(i=e.conditions)?void 0:i.utm))return!0;var t=Iu();if(t.utm_source){var i,a,n,r,o,l,s,d,u,c=null==(a=e.conditions)||null==(a=a.utm)||!a.utm_campaign||(null==(n=e.conditions)||null==(n=n.utm)?void 0:n.utm_campaign)==t.utm_campaign,p=null==(r=e.conditions)||null==(r=r.utm)||!r.utm_source||(null==(o=e.conditions)||null==(o=o.utm)?void 0:o.utm_source)==t.utm_source,m=null==(l=e.conditions)||null==(l=l.utm)||!l.utm_medium||(null==(s=e.conditions)||null==(s=s.utm)?void 0:s.utm_medium)==t.utm_medium,f=null==(d=e.conditions)||null==(d=d.utm)||!d.utm_term||(null==(u=e.conditions)||null==(u=u.utm)?void 0:u.utm_term)==t.utm_term;return c&&m&&f&&p}return!1}static Tr(e){for(var t=arguments.length,i=Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];xo.info("[WebExperiments] "+e,i)}Cr(e,t,i){this._is_bot()?w8.Tr("Refusing to render web experiment since the viewer is a likely bot"):"control"!==t?i.forEach(i=>{if(i.selector){w8.Tr("applying transform of variant "+t+" for experiment "+e+" ",i);var a,n=null==(a=document)?void 0:a.querySelectorAll(i.selector);null==n||n.forEach(e=>{i.html&&(e.innerHTML=i.html),i.css&&e.setAttribute("style",i.css)})}}):w8.Tr("Control variants leave the page unmodified.")}_is_bot(){return bd&&this._instance?w5(bd,this._instance.config.custom_blocked_useragents):void 0}}var w7=xl("[PostHog ExternalIntegrations]"),ke={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class kt{constructor(e){this._instance=e}it(e,t){var i;null==(i=bg.__PosthogExtensions__)||null==i.loadExternalDependency||i.loadExternalDependency(this._instance,e,e=>{if(e)return w7.error("failed to load script",e);t()})}startIfEnabledOrStop(){var e,t=this,i=function(e){var i,a,r;!n||null!=(i=bg.__PosthogExtensions__)&&null!=(i=i.integrations)&&i[e]||t.it(ke[e],()=>{var i;null==(i=bg.__PosthogExtensions__)||null==(i=i.integrations)||null==(i=i[e])||i.start(t._instance)}),!n&&null!=(a=bg.__PosthogExtensions__)&&null!=(a=a.integrations)&&a[e]&&(null==(r=bg.__PosthogExtensions__)||null==(r=r.integrations)||null==(r=r[e])||r.stop())};for(var[a,n]of Object.entries(null!=(e=this._instance.config.integrations)?e:{}))i(a)}}xl("[SessionRecording]");var ki="[SessionRecording]",ka=xl(ki);class kn{get started(){var e;return!(null==(e=this.Ar)||!e.isStarted)}get status(){return this.Ar?this.Ar.status:this.jr&&!this.Dr?"disabled":"lazy_loading"}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.jr=!1,this.Lr=!1,this.Nr=void 0,this._instance=e,!this._instance.sessionManager)throw ka.error("started without valid sessionManager"),Error(ki+" started without valid sessionManager. This is a bug.");if("always"===this._instance.config.cookieless_mode)throw Error(ki+' cannot be used with cookieless_mode="always"')}get Dr(){var e,t=!(null==(e=this._instance.get_property(xN))||!e.enabled),i=!this._instance.config.disable_session_recording,a=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return bn&&t&&i&&!a}startIfEnabledOrStop(e){var t;if(!this.Dr||null==(t=this.Ar)||!t.isStarted){var i=!bD(Object.assign)&&!bD(Array.from);this.Dr&&i?(this.Ur(e),ka.info("starting")):this.stopRecording()}}Ur(e){var t,i,a;this.Dr&&(null!=bg&&null!=(t=bg.__PosthogExtensions__)&&null!=(t=t.rrweb)&&t.record&&null!=(i=bg.__PosthogExtensions__)&&i.initSessionRecording?this.zr(e):null==(a=bg.__PosthogExtensions__)||null==a.loadExternalDependency||a.loadExternalDependency(this._instance,this.Hr,t=>{if(t)return ka.error("could not load recorder",t);this.zr(e)}))}stopRecording(){var e,t;null==(e=this.Nr)||e.call(this),this.Nr=void 0,null==(t=this.Ar)||t.stop()}Br(){var e;null==(e=this._instance.persistence)||e.unregister(xD)}qr(e){if(this._instance.persistence){var t,i,a=this._instance.persistence,n=()=>{var t=!1===e.sessionRecording?void 0:e.sessionRecording,i=null==t?void 0:t.sampleRate,n=bz(i)?null:parseFloat(i);bz(n)&&this.Br();var r=null==t?void 0:t.minimumDurationMilliseconds;a.register({[xN]:b_({cache_timestamp:Date.now(),enabled:!!t},t,{networkPayloadCapture:b_({capturePerformance:e.capturePerformance},null==t?void 0:t.networkPayloadCapture),canvasRecording:{enabled:null==t?void 0:t.recordCanvas,fps:null==t?void 0:t.canvasFps,quality:null==t?void 0:t.canvasQuality},sampleRate:n,minimumDurationMilliseconds:bD(r)?null:r,endpoint:null==t?void 0:t.endpoint,triggerMatchType:null==t?void 0:t.triggerMatchType,masking:null==t?void 0:t.masking,urlTriggers:null==t?void 0:t.urlTriggers})})};n(),null==(t=this.Nr)||t.call(this),this.Nr=null==(i=this._instance.sessionManager)?void 0:i.onSessionId(n)}}onRemoteConfig(e){"sessionRecording"in e?!1!==e.sessionRecording?(this.Lr=!1,this.qr(e),this.jr=!0,this.startIfEnabledOrStop()):this.jr=!0:ka.info("skipping remote config with no sessionRecording",e)}log(e,t){var i;void 0===t&&(t="log"),null!=(i=this.Ar)&&i.log?this.Ar.log(e,t):ka.warn("log called before recorder was ready")}get Hr(){var e,t,i=null==(e=this._instance)||null==(e=e.persistence)?void 0:e.get_property(xN);return(null==i||null==(t=i.scriptConfig)?void 0:t.script)||"lazy-recorder"}Wr(){var e,t=this._instance.get_property(xN);if(!t)return!1;var i=null!=(e=("object"==typeof t?t:JSON.parse(t)).cache_timestamp)?e:Date.now();return Date.now()-i<=3e5}zr(e){var t,i;if(null==(t=bg.__PosthogExtensions__)||!t.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.Ar||(this.Ar=null==(i=bg.__PosthogExtensions__)?void 0:i.initSessionRecording(this._instance),this.Ar._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.Wr()?this.Ar.start(e):this.Lr||(this.Lr=!0,ka.info("persisted remote config is stale, requesting fresh config before starting"),new wV(this._instance).load())}onRRwebEmit(e){var t;null==(t=this.Ar)||null==t.onRRwebEmit||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.Ar||null==(t=this._instance.persistence)||t.register({$replay_override_linked_flag:!0}),null==(e=this.Ar)||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.Ar||null==(t=this._instance.persistence)||t.register({$replay_override_sampling:!0}),null==(e=this.Ar)||e.overrideSampling()}overrideTrigger(e){var t,i;this.Ar||null==(i=this._instance.persistence)||i.register({["url"===e?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}
28),null==(t=this.Ar)||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return(null==(e=this.Ar)?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var i;return!(null==(i=this.Ar)||!i.tryAddCustomEvent(e,t))}}var kr={},ko=()=>{},kl="posthog",ks=!I3&&-1===(null==bh?void 0:bh.indexOf("MSIE"))&&-1===(null==bh?void 0:bh.indexOf("Mozilla")),kd=e=>{var t;return b_({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:function(e){var t=null==e?void 0:e.hostname;if(!bF(t))return!1;var i=t.split(".").slice(-2).join(".");for(var a of xb)if(i===a)return!1;return!0}(null==bu?void 0:bu.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:ko,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:null!=e?e:"unset",__preview_deferred_init_extensions:!1,debug:bc&&bF(null==bc?void 0:bc.search)&&-1!==bc.search.indexOf("__posthog_debug=true")||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==bn||null==(t=bn.location)?void 0:t.protocol),ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:e=>{var t="Bad HTTP status: "+e.statusCode+" "+e.text;xo.error(t)},get_device_id:e=>e,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:3e3},error_tracking:{},_onCapture:ko,__preview_eager_load_replay:!1},(e=>({rageclick:!(e&&e>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(e&&e>="2025-05-24")||"history_change",session_recording:e&&e>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:e&&e>="2026-01-30"?"head":"body",internal_or_test_user_hostname:e&&e>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(e))},ku=e=>{var t={};bD(e.process_person)||(t.person_profiles=e.process_person),bD(e.xhr_headers)||(t.request_headers=e.xhr_headers),bD(e.cookie_name)||(t.persistence_name=e.cookie_name),bD(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),bD(e.store_google)||(t.save_campaign_params=e.store_google),bD(e.verbose)||(t.debug=e.verbose);var i=xm({},t,e);return bO(e.property_blacklist)&&(bD(e.property_denylist)?i.property_denylist=e.property_blacklist:bO(e.property_denylist)?i.property_denylist=[...e.property_blacklist,...e.property_denylist]:xo.error("Invalid value for property_denylist config: "+e.property_denylist)),i};class kc{constructor(){this.__forceAllowLocalhost=!1}get Gr(){return this.__forceAllowLocalhost}set Gr(e){xo.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class kp{get decideEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}get flagsEndpointWasHit(){var e,t;return null!=(e=null==(t=this.featureFlags)?void 0:t.hasLoadedFlags)&&e}constructor(){this.webPerformance=new kc,this.Vr=!1,this.version=bv.LIB_VERSION,this.gi=new wM,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=kd(),this.SentryIntegration=A6,this.sentryIntegration=e=>(function(e,t){var i=A9(e,t);return{name:A4,processEvent:e=>i(e)}})(this,e),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Jr=!1,this.Kr=null,this.Yr=null,this.Xr=null,this.featureFlags=new wv(this),this.toolbar=ne
vendor: 4,594 bytes, line 28
28w Ii(this),this.scrollManager=new wZ(this),this.pageViewManager=new II(this),this.surveys=new wL(this),this.conversations=new wz(this),this.logs=new wU(this),this.experiments=new w8(this),this.exceptions=new wo(this),this.rateLimiter=new w$(this),this.requestRouter=new w9(this),this.consent=new AZ(this),this.externalIntegrations=new kt(this),this.people={set:(e,t,i)=>{var a=bF(e)?{[e]:t}:e;this.setPersonProperties(a),null==i||i({})},set_once:(e,t,i)=>{var a=bF(e)?{[e]:t}:e;this.setPersonProperties(void 0,a),null==i||i({})}},this.on("eventCaptured",e=>xo.info('send "'+(null==e?void 0:e.event)+'"',e))}init(e,t,i){if(i&&i!==kl){var a,n=null!=(a=kr[i])?a:new kp;return n._init(e,t,i),kr[i]=n,kr[kl][i]=n,n}return this._init(e,t,i)}_init(e,t,i){if(void 0===t&&(t={}),bD(e)||bL(e))return xo.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},t.debug=this.Qr(t.debug),this.Zr=t,this.ts=[],t.person_profiles?this.Yr=t.person_profiles:t.process_person&&(this.Yr=t.process_person),this.set_config(xm({},kd(t.defaults),ku(t),{name:i,token:e})),this.config.on_xhr_error&&xo.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=t.disable_compression?void 0:Iw.GZipJS;var a=this.es();this.persistence=new wb(this.config,a),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new wb(b_({},this.config,{persistence:"sessionStorage"}),a);var n=b_({},this.persistence.props),r=b_({},this.sessionPersistence.props);this.register({$initialization_time:(new Date).toISOString()}),this.rs=new wW(e=>this.ss(e),this.config.request_queue_config),this.ns=new wK(this),this.__request_queue=[];var o="always"===this.config.cookieless_mode||"on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut();if(o||(this.sessionManager=new wQ(this),this.sessionPropsManager=new wX(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(xo.info("Deferring extension initialization to improve startup performance"),setTimeout(()=>{this.os(o)},0)):(xo.info("Initializing extensions synchronously"),this.os(o)),bv.DEBUG=bv.DEBUG||this.config.debug,bv.DEBUG&&xo.info("Starting in debug mode",{this:this,config:t,thisC:b_({},this.config),p:n,s:r}),void 0!==(null==(l=t.bootstrap)?void 0:l.distinctID)){var l,s,d,u=this.config.get_device_id(AD()),c=null!=(s=t.bootstrap)&&s.isIdentifiedID?u:t.bootstrap.distinctID;this.persistence.set_property(xV,null!=(d=t.bootstrap)&&d.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:t.bootstrap.distinctID,$device_id:c})}if(this.ls()){var p,m,f=Object.keys((null==(p=t.bootstrap)?void 0:p.featureFlags)||{}).filter(e=>{var i;return!(null==(i=t.bootstrap)||null==(i=i.featureFlags)||!i[e])}).reduce((e,i)=>{var a;return e[i]=(null==(a=t.bootstrap)||null==(a=a.featureFlags)?void 0:a[i])||!1,e},{}),h=Object.keys((null==(m=t.bootstrap)?void 0:m.featureFlagPayloads)||{}).filter(e=>f[e]).reduce((e,i)=>{var a,n;return null!=(a=t.bootstrap)&&null!=(a=a.featureFlagPayloads)&&a[i]&&(e[i]=null==(n=t.bootstrap)||null==(n=n.featureFlagPayloads)?void 0:n[i]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:f,featureFlagPayloads:h})}if(o)this.register_once({distinct_id:xQ,$device_id:null},"");else if(!this.get_distinct_id()){var g=this.config.get_device_id(AD());this.register_once({distinct_id:g,$device_id:g},""),this.persistence.set_property(xV,"anonymous")}return xx(bn,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),t.segment?function(e,t){var i=e.config.segment;if(!i)return t();!function(e,t){var i=e.config.segment;if(!i)return t();var a=i=>{var a=()=>i.anonymousId()||AD();e.config.get_device_id=a,i.id()&&(e.register({distinct_id:i.id(),$device_id:a()}),e.persistence.set_property(xV,"identified")),t()},n=i.user();"then"in n&&bM(n.then)?n.then(a):a(n)}(e,()=>{var a;i.register((Promise&&Promise.resolve||A3.warn("This browser does not have Promise support, and can not use the segment integration"),a=(t,i)=>{if(!i)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||(A3.info("No userId set, resetting PostHog"),e.reset()),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(A3.info("UserId set, identifying with PostHog"),e.identify(t.event.userId)
28);var a=e.calculateEventProperties(i,t.event.properties);return t.event.properties=Object.assign({},a,t.event.properties),t},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:e=>a(e,e.event.event),page:e=>a(e,"$pageview"),identify:e=>a(e,"$identify"),screen:e=>a(e,"$screen")})).then(()=>{t()})})}(this,()=>this.us()):this.us(),bM(this.config._onCapture)&&this.config._onCapture!==ko&&(xo.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",e=>this.config._onCapture(e.event,e))),this.config.ip&&xo.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}os(e){var t=performance.now();this.historyAutocapture=new A5(this),this.historyAutocapture.startIfEnabled();var i=[];i.push(()=>{new In(this).startIfEnabledOrStop()}),i.push(()=>{var e;this.siteApps=new w2(this),null==(e=this.siteApps)||e.init()}),e||i.push(()=>{this.sessionRecording=new kn(this),this.sessionRecording.startIfEnabledOrStop()}),this.config.disable_scroll_properties||i.push(()=>{this.scrollManager.startMeasuringScrollPosition()}),i.push(()=>{this.autocapture=new AE(this),this.autocapture.startIfEnabled()}),i.push(()=>{this.surveys.loadIfEnabled()}),i.push(()=>{this.logs.loadIfEnabled()}),i.push(()=>{this.conversations.loadIfEnabled()}),i.push(()=>{this.productTours=new wA(this),this.productTours.loadIfEnabled()}),i.push(()=>{this.heatmaps=new IA(this),this.heatmaps.startIfEnabled()}),i.push(()=>{this.webVitalsAutocapture=new Ib(this)}),i.push(()=>{this.exceptionObserver=new A1(this),this.exceptionObserver.startIfEnabledOrStop()}),i.push(()=>{this.deadClicksAutocapture=new AQ(this,AJ),this.deadClicksAutocapture.startIfEnabledOrStop()}),i.push(()=>{if(this.hs){var e=this.hs;this.hs=void 0,this.Ie(e)}}),this.ds(i,t)}ds(e,t){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-t>=30&&e.length>0)return void setTimeout(()=>{this.ds(e,t)},0);var i=e.shift();if(i)try{i()}catch(e){xo.error("Error initializing extension:",e)}}var a=Math.round(performance.now()-t);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:a}),this.config.__preview_deferred_init_extensions&&xo.info("PostHog extensions initialized ("+a+"ms)")}Ie(e){var t,i,a,n,r,o,l,s,d;if(!bu||!bu.body)return xo.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.Ie(e)},500);this.config.__preview_deferred_init_extensions&&(this.hs=e),this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=bk(e.supportedCompression,Iw.GZipJS)?Iw.GZipJS:bk(e.supportedCompression,Iw.Base64)?Iw.Base64:void 0),null!=(t=e.analytics)&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Yr?this.Yr:"identified_only"}),null==(i=this.siteApps)||i.onRemoteConfig(e),null==(a=this.sessionRecording)||a.onRemoteConfig(e),null==(n=this.autocapture)||n.onRemoteConfig(e),null==(r=this.heatmaps)||r.onRemoteConfig(e),this.surveys.onRemoteConfig(e),this.logs.onRemoteConfig(e),this.conversations.onRemoteConfig(e),null==(o=this.productTours)||o.onRemoteConfig(e),null==(l=this.webVitalsAutocapture)||l.onRemoteConfig(e),null==(s=this.exceptionObserver)||s.onRemoteConfig(e),this.exceptions.onRemoteConfig(e),null==(d=this.deadClicksAutocapture)||d.onRemoteConfig(e)}us(){try{this.config.loaded(this)}catch(e){xo.critical("`loaded` function failed",e)}if(this.vs(),this.config.internal_or_test_user_hostname&&null!=bc&&bc.hostname){var e=bc.hostname,t=this.config.internal_or_test_user_hostname;("string"==typeof t?e===t:t.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout(()=>{(this.consent.isOptedIn()||"always"===this.config.cookieless_mode)&&this.cs()},1),this.fs=new wV(this),this.fs.load()}vs(){var e;this.is_capturing()&&this.config.request_batching&&(null==(e=this.rs)||e.enable())}_dom_loaded(){this.is_capturing()&&xc(this.__request_queue,e=>this.ss(e)),this.__request_queue=[],this.vs()}_handle_unload(){var e,t;this.surveys.handlePageUnload(),this.config.request_batching?(this.ps()&&this.capture("$pageleave"),null==(e=this.rs)||e.unload(),null==(t=this.ns)||t.unload()):this.ps()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(ks?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=I9(e.url,{ip:+!!this.config.ip}),e.headers=b_({},this.config.request_headers,e.headers),e.compression="best-available"===e.compression?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,
28(e=>{var t,i,a,n=b_({},e);n.timeout=n.timeout||6e4,n.url=I9(n.url,{_:(new Date).getTime().toString(),ver:bv.LIB_VERSION,compression:n.compression});var r=null!=(t=n.transport)?t:"fetch",o=I7.filter(e=>!n.disableTransport||!e.transport||!n.disableTransport.includes(e.transport)),l=null!=(i=null==(a=x_(o,e=>e.transport===r))?void 0:a.method)?i:o[0].method;if(!l)throw Error("No available transport method");l(n)})(b_({},e,{callback:t=>{var i,a;this.rateLimiter.checkForLimiting(t),t.statusCode>=400&&(null==(i=(a=this.config).on_request_error)||i.call(a,t)),null==e.callback||e.callback(t)}}))))}ss(e){this.ns?this.ns.retriableRequest(e):this._send_request(e)}_execute_array(e){var t,i=[],a=[],n=[];xc(e,e=>{e&&(bO(t=e[0])?n.push(e):bM(e)?e.call(this):bO(e)&&"alias"===t?i.push(e):bO(e)&&-1!==t.indexOf("capture")&&bM(this[t])?n.push(e):a.push(e))});var r=function(e,t){xc(e,function(e){if(bO(e[0])){var i=t;xp(e,function(e){i=i[e[0]].apply(i,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};r(i,this),r(a,this),r(n,this)}ls(){var e,t;return(null==(e=this.config.bootstrap)?void 0:e.featureFlags)&&Object.keys(null==(t=this.config.bootstrap)?void 0:t.featureFlags).length>0||!1}push(e){this._execute_array([e])}capture(e,t,i){var a;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.rs){if(this.is_capturing())if(!bD(e)&&bF(e)){var n=!this.config.opt_out_useragent_filter&&this._is_bot();if(!(n&&!this.config.__preview_capture_bot_pageviews)){var r=null!=i&&i.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==r||!r.isRateLimited){null!=t&&t.$current_url&&!bF(null==t?void 0:t.$current_url)&&(xo.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),null==t||delete t.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var o=new Date,l=(null==i?void 0:i.timestamp)||o,s=AD(),d={uuid:s,event:e,properties:this.calculateEventProperties(e,t||{},l,s)};"$pageview"===e&&this.config.__preview_capture_bot_pageviews&&n&&(d.event="$bot_pageview",d.properties.$browser_type="bot"),r&&(d.properties.$lib_rate_limit_remaining_tokens=r.remainingTokens),(null==i?void 0:i.$set)&&(d.$set=null==i?void 0:i.$set);var u,c="$groupidentify"!==e,p=this._s(null==i?void 0:i.$set_once,c);if(p&&(d.$set_once=p),(m=d,f=null!=i&&i._noTruncate?null:this.config.properties_string_max_length,h=e=>bF(e)&&!bB(f)?e.slice(0,f):e,g=new Set,d=function e(t,i){var a;return t!==Object(t)?h?h(t,i):t:g.has(t)?void 0:(g.add(t),bO(t)?(a=[],xc(t,t=>{a.push(e(t))})):(a={},xp(t,(t,i)=>{g.has(t)||(a[i]=e(t,i))})),a)}(m)).timestamp=l,bD(null==i?void 0:i.timestamp)||(d.properties.$event_time_override_provided=!0,d.properties.$event_time_override_system_time=o),e===wk.DISMISSED||e===wk.SENT){var m,f,h,g,v,y,b,_=null==t?void 0:t[wS.SURVEY_ID],x=null==t?void 0:t[wS.SURVEY_ITERATION];u={id:_,current_iteration:x},localStorage.getItem(wR(u))||localStorage.setItem(wR(u),"true"),d.$set=b_({},d.$set,{[(v={id:_,current_iteration:x},b="$survey_"+(y=e===wk.SENT?"responded":"dismissed")+"/"+v.id,v.current_iteration&&v.current_iteration>0&&(b="$survey_"+y+"/"+v.id+"/"+v.current_iteration),b)]:!0})}else e===wk.SHOWN&&(d.$set=b_({},d.$set,{[wS.SURVEY_LAST_SEEN_DATE]:(new Date).toISOString()}));var A=b_({},d.properties.$set,d.$set);if(bj(A)||this.setPersonPropertiesForFlags(A),!bz(this.config.before_send)){var I=this.gs(d);if(!I)return;d=I}this.gi.emit("eventCaptured",d);var w={method:"POST",url:null!=(a=null==i?void 0:i._url)?a:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:d,compression:"best-available",batchKey:null==i?void 0:i._batchKey};return!this.config.request_batching||i&&(null==i||!i._batchKey)||null!=i&&i.send_instantly?this.ss(w):this.rs.enqueue(w),d}xo.critical("This capture call is ignored due to client rate limiting.")}}else xo.error("No event name provided to posthog.capture")}else xo.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",t=>e(t.event,t))}
28calculateEventProperties(e,t,i,a,n){if(i=i||new Date,!this.persistence||!this.sessionPersistence)return t;var r,o=n?void 0:this.persistence.remove_event_timer(e),l=b_({},t);if(l.token=this.config.token,l.$config_defaults=this.config.defaults,("always"==this.config.cookieless_mode||"on_reject"==this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut())&&(l.$cookieless_mode=!0),"$snapshot"===e){var s=b_({},this.persistence.properties(),this.sessionPersistence.properties());return l.distinct_id=s.distinct_id,(!bF(l.distinct_id)&&!bU(l.distinct_id)||bL(l.distinct_id))&&xo.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),l}var d,u=function(e,t){if(!bh)return{};var i,a,n=e?xf([],Io,t||[]):[],[r,o]=function(e){for(var t=0;t<_H.length;t++){var[i,a]=_H[t],n=i.exec(e),r=n&&(bM(a)?a(n,e):a);if(r)return r}return["",""]}(bh);return xm(xy({$os:r,$os_version:o,$browser:_U(bh,navigator.vendor),$device:_V(bh),$device_type:(a=_V(bh))===_i||a===_t||"Kobo"===a||"Kindle Fire"===a||a===_O?_e:a===_x||a===_I||a===_A||a===_E?"Console":a===_n?"Wearable":a?b8:"Desktop",$timezone:Iv(),$timezone_offset:function(){try{return(new Date).getTimezoneOffset()}catch(e){return}}()}),{$current_url:Aw(null==bc?void 0:bc.href,n,Is),$host:null==bc?void 0:bc.host,$pathname:null==bc?void 0:bc.pathname,$raw_user_agent:bh.length>1e3?bh.substring(0,997)+"...":bh,$browser_version:_$(bh,navigator.vendor),$browser_language:Im(),$browser_language_prefix:"string"==typeof(i=Im())?i.split("-")[0]:void 0,$screen_height:null==bn?void 0:bn.screen.height,$screen_width:null==bn?void 0:bn.screen.width,$viewport_height:null==bn?void 0:bn.innerHeight,$viewport_width:null==bn?void 0:bn.innerWidth,$lib:"web",$lib_version:bv.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:c,windowId:p}=this.sessionManager.checkAndGetSessionAndWindowId(n,i.getTime());l.$session_id=c,l.$window_id=p}this.sessionPropsManager&&xm(l,this.sessionPropsManager.getSessionProps());try{this.sessionRecording&&xm(l,this.sessionRecording.sdkDebugProperties),l.$sdk_debug_retry_queue_size=null==(r=this.ns)?void 0:r.length}catch(e){l.$sdk_debug_error_capturing_properties=String(e)}if(this.requestRouter.region===w3.CUSTOM&&(l.$lib_custom_api_host=this.config.api_host),d="$pageview"!==e||n?"$pageleave"!==e||n?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(i):this.pageViewManager.doPageView(i,a),l=xm(l,d),"$pageview"===e&&bu&&(l.title=bu.title),!bD(o)){var m=i.getTime()-o;l.$duration=parseFloat((m/1e3).toFixed(3))}bh&&this.config.opt_out_useragent_filter&&(l.$browser_type=this._is_bot()?"bot":"browser"),(l=xm({},u,this.persistence.properties(),this.sessionPersistence.properties(),l)).$is_identified=this._isIdentified(),bO(this.config.property_denylist)?xp(this.config.property_denylist,function(e){delete l[e]}):xo.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var f=this.config.sanitize_properties;f&&(xo.error("sanitize_properties is deprecated. Use before_send instead"),l=f(l,e));var h=this.bs();return l.$process_person_profile=h,h&&!n&&this.ys("_calculate_event_properties"),l}_s(e,t){if(void 0===t&&(t=!0),!this.persistence||!this.bs()||this.Vr)return e;var i,a=xm({},this.persistence.get_initial_props(),(null==(i=this.sessionPropsManager)?void 0:i.getSetOnceProps())||{},e||{}),n=this.config.sanitize_properties;return n&&(xo.error("sanitize_properties is deprecated. Use before_send instead"),a=n(a,"$set_once")),t&&(this.Vr=!0),bj(a)?void 0:a}register(e,t){var i;null==(i=this.persistence)||i.register(e,t)}register_once(e,t,i){var a;null==(a=this.persistence)||a.register_once(e,t,i)}register_for_session(e){var t;null==(t=this.sessionPersistence)||t.register(e)}unregister(e){var t;null==(t=this.persistence)||t.unregister(e)}unregister_for_session(e){var t;null==(t=this.sessionPersistence)||t.unregister(e)}ws(e,t){this.register({[e]:t})}getFeatureFlag(e,t){return this.featureFlags.getFeatureFlag(e,t)}getFeatureFlagPayload(e){return this.featureFlags.getFeatureFlagPayload(e)}getFeatureFlagResult(e,t){return this.featureFlags.getFeatureFlagResult(e,t)}isFeatureEnabled(e,t){return this.featureFlags.isFeatureEnabled(e,t)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateFlags(e,t,i){var a=null!=i&&i.merge?this.featureFlags.getFlagVariants():{},n=null!=i&&i.merge?this.featureFlags.getFlagPayloads():{},r=b_({},a,e),o=b_({},n,t),l={};for(var[s,d]of Object.entries(r)){var u="string"==typeof d;l[s]={key:s,enabled:!!u||!!d,variant:u?d:void 0,reason:void 0,metadata:bD(null==o?void 0:o[s])?void 0:{id:0,version:void 0,description:void 0,payload:o[s]}}}this.featureFlags.receivedFeatureFlags({flags:l})}updateEarlyAccessFeatureEnrollment(e,t,i){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t,i)}getEarlyAccessFeatures(e,t,i){return void 0===t&&(t=!1),this.featureFlags.getEarlyAccessFeatures(e,t,i)}on(e,t){return this.gi.on(e,t)}onFeatureFlags(e){return this.featureFlags.onFeatureFlags(e)}onSurveysLoaded(e){return this.surveys.onSurveysLoaded(e)}onSessionId(e){var t,i;return null!=(t=null==(i=this.sessionManager)?void 0:i.onSessionId(e))?t:()=>{}}getSurveys(e,t){void 0===t&&(t=!1),this.surveys.getSurveys(e,t)}getActiveMatchingSurveys(e,t){void 0===t&&(t=!1),this.surveys.getActiveMatchingSurveys(e,t)}renderSurvey(e,t){this.surveys.renderSurvey(e,t)}displaySurvey(e,t){void 0===t&&(t=wO),this.surveys.displaySurvey(e,t)}cancelPendingSurvey(e){this.surveys.cancelPendingSurvey(e)}canRenderSurvey(e){return this.surveys.canRenderSurvey(e)}canRenderSurveyAsync(e,t){return void 0===t&&(t=!1),this.surveys.canRenderSurveyAsync(e,t)}identify(e,t,i){if(!this.__loaded||!this.persistence)return xo.uninitializedWarning("posthog.identify");if(bU(e)&&(e=e.toString(),xo.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))xo.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and n
28ot a hardcoded string.');else if(e!==xQ){if(this.ys("posthog.identify")){var a=this.get_distinct_id();this.register({$user_id:e}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:a},""),e!==a&&e!==this.get_property(xI)&&(this.unregister(xI),this.register({distinct_id:e}));var n="anonymous"===(this.persistence.get_property(xV)||"anonymous");e!==a&&n?(this.persistence.set_property(xV,"identified"),this.setPersonPropertiesForFlags(b_({},i||{},t||{}),!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:a},{$set:t||{},$set_once:i||{}}),this.Xr=wt(e,t,i),this.featureFlags.setAnonymousDistinctId(a)):(t||i)&&this.setPersonProperties(t,i),e!==a&&(this.reloadFeatureFlags(),this.unregister(x$))}}else xo.critical('The string "'+xQ+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else xo.error("Unique user id has not been set in posthog.identify")}setPersonProperties(e,t){if((e||t)&&this.ys("posthog.setPersonProperties")){var i=wt(this.get_distinct_id(),e,t);this.Xr!==i?(this.setPersonPropertiesForFlags(b_({},t||{},e||{})),this.capture("$set",{$set:e||{},$set_once:t||{}}),this.Xr=i):xo.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,t,i){if(e&&t){var a=this.getGroups();a[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:b_({},a,{[e]:t})}),i&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:i}),this.setGroupPropertiesForFlags({[e]:i})),a[e]===t||i||this.reloadFeatureFlags()}else xo.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,t){void 0===t&&(t=!0),this.featureFlags.setPersonPropertiesForFlags(e,t)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,t){void 0===t&&(t=!0),this.ys("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}resetGroupPropertiesForFlags(e){this.featureFlags.resetGroupPropertiesForFlags(e)}reset(e){if(xo.info("reset"),!this.__loaded)return xo.uninitializedWarning("posthog.reset");var t,i,a,n,r,o=this.get_property("$device_id");if(this.consent.reset(),null==(t=this.persistence)||t.clear(),null==(i=this.sessionPersistence)||i.clear(),this.surveys.reset(),null==(a=this.fs)||a.stop(),this.featureFlags.reset(),null==(n=this.persistence)||n.set_property(xV,"anonymous"),null==(r=this.sessionManager)||r.resetSessionId(),this.Xr=null,"always"===this.config.cookieless_mode)this.register_once({distinct_id:xQ,$device_id:null},"");else{var l=this.config.get_device_id(AD());this.register_once({distinct_id:l,$device_id:e?l:o},"")}this.register({$last_posthog_reset:(new Date).toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,t;return null!=(e=null==(t=this.sessionManager)?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:t,sessionStartTimestamp:i}=this.sessionManager.checkAndGetSessionAndWindowId(!0),a=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+t);if(null!=e&&e.withTimestamp&&i){var n,r=null!=(n=e.timestampLookBack)?n:10;if(!i)return a;a+="?t="+Math.max(Math.floor(((new Date).getTime()-i)/1e3)-r,0)}return a}alias(e,t){return e===this.get_property(xA)?(xo.critical("Attempting to create alias for existing People user - aborting."),-2):this.ys("posthog.alias")?(bD(t)&&(t=this.get_distinct_id()),e!==t?(this.ws(xI,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(xo.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var t=b_({},this.config);if(bN(e)){xm(this.config,ku(e));var i,a,n,r,o,l,s,d,u=this.es();null==(i=this.persistence)||i.update_config(this.config,t,u),this.sessionPersistence="sessionStorage"===this.config.persistence||"memory"===this.config.persistence?this.persistence:new wb(b_({},this.config,{persistence:"sessionStorage"}),u);var c=this.Qr(this.config.debug);b$(c)&&(this.config.debug=c),b$(this.config.debug)&&(this.config.debug?(bv.DEBUG=!0,Aq.H()&&Aq.G("ph_debug","true"),xo.info("set_config",{config:e,oldConfig:t,newConfig:b_({},this.config)})):(bv.DEBUG=!1,Aq.H()&&Aq.V("ph_debug"))),null==(a=this.exceptionObserver)||a.onConfigChange(),null==(n=this.sessionRecording)||n.startIfEnabledOrStop(),null==(r=this.autocapture)||r.startIfEnabled(),null==(o=this.heatmaps)||o.startIfEnabled(),null==(l=this.exceptionObserver)||l.startIfEnabledOrStop(),null==(s=this.deadClicksAutocapture)||s.startIfEnabledOrStop(),this.surveys.loadIfEnabled(),this.$s(),null==(d=this.externalIntegrations)||d.startIfEnabledOrStop()}}startSessionRecording(e){var t,i,a,n,r,o=!0===e,l={sampling:o||!(null==e||!e.sampling),linked_flag:o||!(null==e||!e.linked_flag),url_trigger:o||!(null==e||!e.url_trigger),event_trigger:o||!(null==e||!e.event_trigger)};Object.values(l).some(Boolean)&&(null==(t=this.sessionManager)||t.checkAndGetSessionAndWindowId(),l.sampling&&(null==(i=this.sessionRecording)||i.overrideSampling()),l.linked_flag&&(null==(a=this.sessionRecording)||a.overrideLinkedFlag()),l.url_trigger&&(null==(n=this.sessionRecording)||n.overrideTrigger("url")),l.event_trigger&&(null==(r=this.sessionRecording)||r.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!(null==(e=this.sessionRecording)||!e.started)}captureException(e,t){var i=Error("PostHog syntheticException"),a=this.exceptions.buildProperties(e,{handled:!0,syntheticException:i});return this.exceptions.sendExceptionEvent(b_({},a,t))}startExceptionAutocapture(e){this.set_config({capture_exceptions:null==e||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){return this.toolbar.loadToolbar(e)}get_property(e){var t;return null==(t=this.persistence)?void 0:t.props[e]}getSessionProperty(e){var t;return null==(t=this.sessionPersistence)?void 0:t.props[e]}toString(){var e,t=null!=(e=this.config.name)?e:kl;return t!==kl&&(t=kl+"."+t),t}_isIdentified(){var e,t;return"identified"===(null==(e=this.persistence)?void 0:e.get_property(xV))||"identified"===(null==(t=this.sessionPersistence)?void 0:t.get_property(xV))}bs(){var e,t;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&
vendor: 5,061 bytes, line 28
28!this._isIdentified()&&bj(this.getGroups())&&(null==(e=this.persistence)||null==(e=e.props)||!e[xI])&&(null==(t=this.persistence)||null==(t=t.props)||!t[xX]))}ps(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&(!0===this.config.capture_pageview||"history_change"===this.config.capture_pageview)}createPersonProfile(){this.bs()||this.ys("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.ys("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}ys(e){return"never"===this.config.person_profiles?(xo.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.ws(xX,!0),!0)}es(){if("always"===this.config.cookieless_mode)return!0;var e=this.consent.isOptedOut(),t=this.config.opt_out_persistence_by_default||"on_reject"===this.config.cookieless_mode;return this.config.disable_persistence||e&&!!t}$s(){var e,t,i,a,n=this.es();return(null==(e=this.persistence)?void 0:e.Si)!==n&&(null==(i=this.persistence)||i.set_disabled(n)),(null==(t=this.sessionPersistence)?void 0:t.Si)!==n&&(null==(a=this.sessionPersistence)||a.set_disabled(n)),n}opt_in_capturing(e){var t,i,a,n;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),null==(i=this.sessionManager)||i.destroy(),null==(a=this.pageViewManager)||a.destroy(),this.sessionManager=new wQ(this),this.pageViewManager=new II(this),this.persistence&&(this.sessionPropsManager=new wX(this,this.sessionManager,this.persistence)),this.sessionRecording=new kn(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.$s(),this.vs(),null==(t=this.sessionRecording)||t.startIfEnabledOrStop(),"on_reject"==this.config.cookieless_mode&&this.surveys.loadIfEnabled(),(bD(null==e?void 0:e.captureEventName)||null!=e&&e.captureEventName)&&this.capture(null!=(n=null==e?void 0:e.captureEventName)?n:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.cs()):xo.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var e,t,i;"always"!==this.config.cookieless_mode?("on_reject"===this.config.cookieless_mode&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.$s(),"on_reject"===this.config.cookieless_mode&&(this.register({distinct_id:xQ,$device_id:null}),null==(e=this.sessionManager)||e.destroy(),null==(t=this.pageViewManager)||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,null==(i=this.sessionRecording)||i.stopRecording(),this.sessionRecording=void 0,this.cs())):xo.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===AK.GRANTED?"granted":e===AK.DENIED?"denied":"pending"}is_capturing(){return"always"===this.config.cookieless_mode||("on_reject"===this.config.cookieless_mode?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.$s()}_is_bot(){return bd?w5(bd,this.config.custom_blocked_useragents):void 0}cs(){bu&&("visible"===bu.visibilityState?this.Jr||(this.Jr=!0,this.capture("$pageview",{title:bu.title},{send_instantly:!0}),this.Kr&&(bu.removeEventListener("visibilitychange",this.Kr),this.Kr=null)):this.Kr||(this.Kr=this.cs.bind(this),xx(bu,"visibilitychange",this.Kr)))}debug(e){!1===e?(null==bn||bn.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(null==bn||bn.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}M(){var e,t,i,a,n=this.Zr||{};return"advanced_disable_flags"in n?!!n.advanced_disable_flags:!1!==this.config.advanced_disable_flags?!!this.config.advanced_disable_flags:!0===this.config.advanced_disable_decide?(xo.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(t="advanced_disable_decide",i=(e="advanced_disable_flags")in n&&!bz(n[e]),a=t in n&&!bz(n[t]),i?n[e]:!!a&&(xo&&xo.warn("Config field '"+t+"' is deprecated. Please use '"+e+"' instead. The old field will be removed in a future major version."),n[t]))}gs(e){if(bz(this.config.before_send))return e;var t=bO(this.config.before_send)?this.config.before_send:[this.config.before_send],i=e;for(var a of t){if(bz(i=a(i))){var n="Event '"+e.event+"' was rejected in beforeSend function";return bH(e.event)?xo.warn(n+". This can cause unexpected behavior."):xo.info(n),null}i.properties&&!bj(i.properties)||xo.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return i}getPageViewId(){var e;
28return null==(e=this.pageViewManager.Kt)?void 0:e.pageViewId}captureTraceFeedback(e,t){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:t})}captureTraceMetric(e,t,i){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:t,$ai_metric_value:String(i)})}Qr(e){var t=b$(e)&&!e,i=Aq.H()&&"true"===Aq.q("ph_debug");return!t&&(!!i||e)}}!function(e,t){for(var i=0;i<t.length;i++)e.prototype[t[i]]=xv(e.prototype[t[i]])}(kp,["identify"]),function(e){e.SHOWN="product tour shown",e.DISMISSED="product tour dismissed",e.COMPLETED="product tour completed",e.STEP_SHOWN="product tour step shown",e.STEP_COMPLETED="product tour step completed",e.BUTTON_CLICKED="product tour button clicked",e.STEP_SELECTOR_FAILED="product tour step selector failed",e.BANNER_CONTAINER_SELECTOR_FAILED="product tour banner container selector failed"}({}),function(e){e.TOUR_ID="$product_tour_id",e.TOUR_NAME="$product_tour_name",e.TOUR_ITERATION="$product_tour_iteration",e.TOUR_RENDER_REASON="$product_tour_render_reason",e.TOUR_STEP_ID="$product_tour_step_id",e.TOUR_STEP_ORDER="$product_tour_step_order",e.TOUR_STEP_TYPE="$product_tour_step_type",e.TOUR_DISMISS_REASON="$product_tour_dismiss_reason",e.TOUR_BUTTON_TEXT="$product_tour_button_text",e.TOUR_BUTTON_ACTION="$product_tour_button_action",e.TOUR_BUTTON_LINK="$product_tour_button_link",e.TOUR_BUTTON_TOUR_ID="$product_tour_button_tour_id",e.TOUR_STEPS_COUNT="$product_tour_steps_count",e.TOUR_STEP_SELECTOR="$product_tour_step_selector",e.TOUR_STEP_SELECTOR_FOUND="$product_tour_step_selector_found",e.TOUR_STEP_ELEMENT_TAG="$product_tour_step_element_tag",e.TOUR_STEP_ELEMENT_ID="$product_tour_step_element_id",e.TOUR_STEP_ELEMENT_CLASSES="$product_tour_step_element_classes",e.TOUR_STEP_ELEMENT_TEXT="$product_tour_step_element_text",e.TOUR_ERROR="$product_tour_error",e.TOUR_MATCHES_COUNT="$product_tour_matches_count",e.TOUR_FAILURE_PHASE="$product_tour_failure_phase",e.TOUR_WAITED_FOR_ELEMENT="$product_tour_waited_for_element",e.TOUR_WAIT_DURATION_MS="$product_tour_wait_duration_ms",e.TOUR_BANNER_SELECTOR="$product_tour_banner_selector",e.TOUR_LINKED_SURVEY_ID="$product_tour_linked_survey_id",e.USE_MANUAL_SELECTOR="$use_manual_selector",e.INFERENCE_DATA_PRESENT="$inference_data_present"}({}),kr[kl]=new kp,function(){function e(){e.done||(e.done=!0,ks=!1,xp(kr,function(e){e._dom_loaded()}))}null!=bu&&bu.addEventListener?"complete"===bu.readyState?e():xx(bu,"DOMContentLoaded",e,{capture:!1}):bn&&xo.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")}(),i(3727);var km=i(8515),kf=i.n(km);i(3727),i(3727),i(3727);var kh=i(3727);function kg(e){try{var t,i;{let t=null==(i=window.__TRACKING_ENV__)?void 0:i[e];if(t)return t}return void 0!==kh&&(null==(t=kh.env)?void 0:t[e])||void 0}catch(e){return}}function kv(e){let{pixels:t,hasConsent:i=!0}=e,a=(0,o.useMemo)(()=>(function(e,t){if(e&&e.length>0)return e;let i=[],a=kg("NEXT_PUBLIC_GA4_ID");a&&i.push({type:"google_analytics",id:a,enabled:!0});let n=kg("NEXT_PUBLIC_GTM_ID");n&&i.push({type:"google_tag_manager",id:n,enabled:!0});let r=kg("NEXT_PUBLIC_META_PIXEL_ID")||kg("NEXT_PUBLIC_FB_PIXEL_ID");r&&i.push({type:"meta_pixel",id:r,enabled:!0});let o=kg("NEXT_PUBLIC_LINKEDIN_PARTNER_ID");o&&i.push({type:"linkedin_insight",id:o,enabled:!0});let l=kg("NEXT_PUBLIC_TWITTER_PIXEL_ID");return l&&i.push({type:"twitter_pixel",id:l,enabled:!0}),i})(t),[t]),n=(0,o.useMemo)(()=>a.filter(e=>e.enabled&&e.id&&""!==e.id.trim()),[a]);return i&&0!==n.length?(0,r.jsx)(r.Fragment,{children:n.map(e=>(0,r.jsx)(ky,{pixel:e},"".concat(e.type,"-").concat(e.id)))}):null}function ky(e){let{pixel:t}=e,i=t.id.replace(/[^a-zA-Z0-9_-]/g,"");if(!i)return null;switch(t.type){case"google_analytics":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(kf(),{id:"ga4-".concat(i),strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=".concat(i)}),(0,r.jsx)(kf(),{id:"ga4-config-".concat(i),strategy:"afterInteractive",children:"window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','".concat(i,"',{send_page_view:true});")})]});case"google_tag_manager":return(0,r.jsx)(kf(),{id:"gtm-".concat(i),strategy:"afterInteractive",children:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
28j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','".concat(i,"');")});case"meta_pixel":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(kf(),{id:"fbpixel-".concat(i),strategy:"afterInteractive",children:"!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init','".concat(i,"');fbq('track','PageView');")}),(0,r.jsx)("noscript",{children:(0,r.jsx)("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=".concat(i,"&ev=PageView&noscript=1"),alt:""})})]});case"linkedin_insight":return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(kf(),{id:"linkedin-".concat(i),strategy:"afterInteractive",children:"_linkedin_data_partner_ids=_linkedin_data_partner_ids||[];_linkedin_data_partner_ids.push('".concat(i,'\');(function(l){if(!l){window.lintrk=function(a,b){window.lintrk.q.push([a,b])};window.lintrk.q=[]}var s=document.getElementsByTagName("script")[0];var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src="https://snap.licdn.com/li.lms-analytics/insight.min.js";s.parentNode.insertBefore(b,s);})(window.lintrk);')}),(0,r.jsx)("noscript",{children:(0,r.jsx)("img",{height:"1",width:"1",style:{display:"none"},alt:"",src:"https://px.ads.linkedin.com/collect/?pid=".concat(i,"&fmt=gif")})})]});case"twitter_pixel":return(0,r.jsx)(kf(),{id:"twpixel-".concat(i),strategy:"afterInteractive",children:"!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments)},s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='https://static.ads-twitter.com/uwt.js',a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script');twq('config','".concat(i,"');")});default:return null}}let kb="eslice_cookie_consent",k_=(0,o.createContext)(null);function kx(e){let{children:t}=e,[i,a]=(0,o.useState)(!0),[n,l]=(0,o.useState)(!1);(0,o.useEffect)(()=>{try{let e=localStorage.getItem(kb);null!==e?(l("accepted"===e),a(!0)):a(!1)}catch(e){a(!1)}},[]);let s=(0,o.useCallback)(()=>{try{localStorage.setItem(kb,"accepted")}catch(e){}l(!0),a(!0)},[]),d=(0,o.useCallback)(()=>{try{localStorage.setItem(kb,"declined")}catch(e){}l(!1),a(!0)},[]);return(0,r.jsx)(k_.Provider,{value:{hasDecided:i,hasConsent:n,acceptAll:s,declineAll:d},children:t})}function kA(){let e=(0,o.useContext)(k_);if(!e)throw Error("useCookieConsent must be used within a CookieConsentProvider");return e}function kI(){let{hasDecided:e,acceptAll:t,declineAll:i}=kA();if(e)return null;let a={padding:"8px 20px",borderRadius:"6px",fontSize:"14px",fontWeight:600,cursor:"pointer",border:"none",transition:"opacity 0.15s"};return(0,r.jsxs)("div",{style:{position:"fixed",bottom:0,left:0,right:0,backgroundColor:"#1a1a2e",color:"#e0e0e0",padding:"16px 24px",display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"12px",zIndex:9999,fontSize:"14px",fontFamily:"system-ui, -apple-system, sans-serif",boxShadow:"0 -2px 10px rgba(0,0,0,0.3)"},role:"dialog","aria-label":"Cookie consent",children:[(0,r.jsx)("p",{style:{margin:0,flex:1,minWidth:"200px"},children:"We use cookies to improve your experience and for analytics. You can choose to accept or decline non-essential cookies."}),(0,r.jsxs)("div",{style:{display:"flex",gap:"8px",flexShrink:0},children:[(0,r.jsx)("button",{type:"button",onClick:i,style:{...a,backgroundColor:"transparent",border:"1px solid #555",color:"#ccc"},children:"Decline"}),(0,r.jsx)("button",{type:"button",onClick:t,style:{...a,backgroundColor:"#2A9D8F",color:"#fff"},children:"Accept All"})]})]})}var kw=i(3727);let kk="cf-turnstile-script";function kS(e){let{siteKey:t,onVerify:i,onExpire:a,onError:n,theme:l="auto",size:s="normal"}=e,d=(0,o.useRef)(null),u=(0,o.useRef)(null),[c,p]=(0,o.useState)(!1),m=t||(void 0!==kw?kw.env.
28NEXT_PUBLIC_TURNSTILE_SITE_KEY:void 0);(0,o.useEffect)(()=>{if(!m)return;if(window.turnstile)return void p(!0);if(document.getElementById(kk)){let e=setInterval(()=>{window.turnstile&&(p(!0),clearInterval(e))},100);return()=>clearInterval(e)}window.onTurnstileLoad=()=>{p(!0)};let e=document.createElement("script");return e.id=kk,e.src="".concat("https://challenges.cloudflare.com/turnstile/v0/api.js","?onload=onTurnstileLoad&render=explicit"),e.async=!0,e.defer=!0,document.head.appendChild(e),()=>{}},[m]);let f=(0,o.useCallback)(()=>{if(window.turnstile&&d.current&&m&&!u.current)try{u.current=window.turnstile.render(d.current,{sitekey:m,callback:i,"expired-callback":a,"error-callback":n,theme:l,size:s})}catch(e){null==n||n(e)}},[m,i,a,n,l,s]);return((0,o.useEffect)(()=>(c&&f(),()=>{if(u.current&&window.turnstile){try{window.turnstile.remove(u.current)}catch(e){}u.current=null}}),[c,f]),m)?(0,r.jsx)("div",{ref:d}):null}},2981:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(3282);function n(e){let{variants:t,...i}=e,n={variants:t,style:(0,a.tT)(i),isProcessed:!0};return n.style===i||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=(0,a.tT)(e.style))}),n}},2989:(e,t,i)=>{"use strict";i.d(t,{X4:()=>c,e$:()=>m,eM:()=>u,YL:()=>s,a:()=>h,Cg:()=>p,Me:()=>o,Nd:()=>f,Y9:()=>v,j4:()=>g});var a=i(3338);function n(e,t=0,i=1){return function(e,t=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,i))}(e,t,i)}function r(e){let t;if(e.type)return e;if("#"===e.charAt(0))return r(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),i=e.match(t);return i&&1===i[0].length&&(i=i.map(e=>e+e)),i?`rgb${4===i.length?"a":""}(${i.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let i=e.indexOf("("),n=e.substring(0,i);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw Error((0,a.A)(9,e));let o=e.substring(i+1,e.length-1);if("color"===n){if(t=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(t))throw Error((0,a.A)(10,t))}else o=o.split(",");return{type:n,values:o=o.map(e=>parseFloat(e)),colorSpace:t}}let o=(e,t)=>{try{return(e=>{let t=r(e);return t.values.slice(0,3).map((e,i)=>t.type.includes("hsl")&&0!==i?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function l(e){let{type:t,colorSpace:i}=e,{values:a}=e;return t.includes("rgb")?a=a.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),a=t.includes("color")?`${i} ${a.join(" ")}`:`${a.join(", ")}`,`${t}(${a})`}function s(e){let{values:t}=e=r(e),i=t[0],a=t[1]/100,n=t[2]/100,o=a*Math.min(n,1-n),s=(e,t=(e+i/30)%12)=>n-o*Math.max(Math.min(t-3,9-t,1),-1),d="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(d+="a",u.push(t[3])),l({type:d,values:u})}function d(e){let t="hsl"===(e=r(e)).type||"hsla"===e.type?r(s(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){let i=d(e),a=d(t);return(Math.max(i,a)+.05)/(Math.min(i,a)+.05)}function c(e,t){return e=r(e),t=n(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)}function p(e,t,i){try{return c(e,t)}catch(t){return e}}function m(e,t){if(e=r(e),t=n(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]*=1-t;return l(e)}function f(e,t,i){try{return m(e,t)}catch(t){return e}}function h(e,t){if(e=r(e),t=n(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let i=0;i<3;i+=1)e.values[i]+=(255-e.values[i])*t;else if(e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]+=(1-e.values[i])*t;return l(e)}function g(e,t,i){try{return h(e,t)}catch(t){return e}}function v(e,t,i){try{return function(e,t=.15){return d(e)>
28.5?m(e,t):h(e,t)}(e,t)}catch(t){return e}}},3124:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10m2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99m0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99z"}),"PieChart")},3132:(e,t,i)=>{"use strict";i.d(t,{A:()=>U});var a=i(5162),n=i(3638),r=i(6348),o=i(8540),l=i(7874),s=i(1792),d=i(1816),u=i(4930);function c(e){let t=[],i=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,a)=>{let n=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===n||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t)),i=t('[name="'.concat(e.name,'"]:checked'));return i||(i=t('[name="'.concat(e.name,'"]'))),i!==e}(e)||(0===n?t.push(e):i.push({documentOrder:a,tabIndex:n,node:e}))}),i.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function p(){return!0}let m=function(e){let{children:t,disableAutoFocus:i=!1,disableEnforceFocus:n=!1,disableRestoreFocus:r=!1,getTabbable:m=c,isEnabled:f=p,open:h}=e,g=a.useRef(!1),v=a.useRef(null),y=a.useRef(null),b=a.useRef(null),_=a.useRef(null),x=a.useRef(!1),A=a.useRef(null),I=(0,o.A)((0,s.A)(t),A),w=a.useRef(null);a.useEffect(()=>{h&&A.current&&(x.current=!i)},[i,h]),a.useEffect(()=>{if(!h||!A.current)return;let e=(0,l.A)(A.current),t=(0,d.A)(e);return!A.current.contains(t)&&(A.current.hasAttribute("tabIndex")||A.current.setAttribute("tabIndex","-1"),x.current&&A.current.focus()),()=>{r||(b.current&&b.current.focus&&(g.current=!0,b.current.focus()),b.current=null)}},[h]),a.useEffect(()=>{if(!h||!A.current)return;let e=(0,l.A)(A.current),t=t=>{w.current=t,!n&&f()&&"Tab"===t.key&&(0,d.A)(e)===A.current&&t.shiftKey&&(g.current=!0,y.current&&y.current.focus())},i=()=>{let t=A.current;if(null===t)return;let i=(0,d.A)(e);if(!e.hasFocus()||!f()||g.current){g.current=!1;return}if(t.contains(i)||n&&i!==v.current&&i!==y.current)return;if(i!==_.current)_.current=null;else if(null!==_.current)return;if(!x.current)return;let a=[];if((i===v.current||i===y.current)&&(a=m(A.current)),a.length>0){var r,o;let e=!!((null==(r=w.current)?void 0:r.shiftKey)&&(null==(o=w.current)?void 0:o.key)==="Tab"),t=a[0],i=a[a.length-1];"string"!=typeof t&&"string"!=typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",i),e.addEventListener("keydown",t,!0);let a=setInterval(()=>{let t=(0,d.A)(e);t&&"BODY"===t.tagName&&i()},50);return()=>{clearInterval(a),e.removeEventListener("focusin",i),e.removeEventListener("keydown",t,!0)}},[i,n,r,f,h,m]);let k=e=>{null===b.current&&(b.current=e.relatedTarget),x.current=!0};return(0,u.jsxs)(a.Fragment,{children:[(0,u.jsx)("div",{tabIndex:h?0:-1,onFocus:k,ref:v,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:I,onFocus:e=>{null===b.current&&(b.current=e.relatedTarget),x.current=!0,_.current=e.target;let i=t.props.onFocus;i&&i(e)}}),(0,u.jsx)("div",{tabIndex:h?0:-1,onFocus:k,ref:y,"data-testid":"sentinelEnd"})]})};var f=i(1352),h=i(9254);function g(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let v=a.forwardRef(function(e,t){let{children:i,container:n,disablePortal:r=!1}=e,[l,d]=a.useState(null),u=(0,o.A)(a.isValidElement(i)?(0,s.A)(i):null,t);return((0,h.A)(()=>{r||d(("function"==typeof n?n():n)||document.body)},[n,r]),(0,h.A)(()=>{if(l&&!r)return g(t,l),()=>{g(t,null)}},[t,l,r]),r)?a.isValidElement(i)?a.cloneElement(i,{ref:u}):i:l?f.createPortal(i,l):l});var y=i(2298),b=i(1894),_=i(9644),x=i(8559),A=i(8492),I=i(2390),w=i(544),k=i(2066),S=i(8850);function T(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function C(e){return parseFloat((0,k.A)(e).getComputedStyle(e).paddingRight)||0}function E(e,t,i,a,n){let r=[t,i,...a];[].forEach.call(e.children,e=>{let t=!r.includes(e),i=!function(e){let t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||i}(e);t&&i&&T(e,n)})}function R(e,t){let i=-1;return e.some((e,a)=>!!t(e)&&(i=a,!0)),i}class P{add(e,t){let i=this.modals.indexOf(e);if(-1!==i)return i;i=this.modals.length,this.modals.push(e),e.modalRef&&T(e.modalRef,!1);let a=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);E(t,e.mount,e.modalRef,a,!0);let n=R(this.containers,e=>e.container===t);return -1!==n?this.containers[n].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:a}),i}mount(e,t){let i=R(this.containers,t=>t.modals.includes(e)),a=this.containers[i];a.restore||(a.restore=function(e,t){let i=[],a=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,l.A)(e);return t.body===e?(0,k.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(a)){let e=(0,S.A)((0,k.A)(a));i.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight="".concat(C(a)+e,"px");let t=(0,l.A)(a).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{i.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(C(t)+e,"px")})}if(a.parentNode instanceof DocumentFragment)e=(0,l.A)(a).body;else{let t=a.parentElement,i=(0,k.A)(a);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===i.getComputedStyle(t).overflowY?t:a}i.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>
28{i.forEach(e=>{let{value:t,el:i,property:a}=e;t?i.style.setProperty(a,t):i.style.removeProperty(a)})}}(a,t))}remove(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=this.modals.indexOf(e);if(-1===i)return i;let a=R(this.containers,t=>t.modals.includes(e)),n=this.containers[a];if(n.modals.splice(n.modals.indexOf(e),1),this.modals.splice(i,1),0===n.modals.length)n.restore&&n.restore(),e.modalRef&&T(e.modalRef,t),E(n.container,e.mount,e.modalRef,n.hiddenSiblings,!1),this.containers.splice(a,1);else{let e=n.modals[n.modals.length-1];e.modalRef&&T(e.modalRef,!1)}return i}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.modals=[],this.containers=[]}}let O=()=>{},M=new P,N=function(e){let{container:t,disableEscapeKeyDown:i=!1,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:d,children:u,onClose:c,open:p,rootRef:m}=e,f=a.useRef({}),h=a.useRef(null),g=a.useRef(null),v=(0,o.A)(g,m),[y,b]=a.useState(!p),_=!!u&&u.props.hasOwnProperty("in"),x=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(x=!1);let k=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),S=()=>{M.mount(k(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},C=(0,A.A)(()=>{let e=("function"==typeof t?t():t)||(0,l.A)(h.current).body;M.add(k(),e),g.current&&S()}),E=()=>M.isTopModal(k()),R=(0,A.A)(e=>{h.current=e,e&&(p&&E()?S():g.current&&T(g.current,x))}),P=a.useCallback(()=>{M.remove(k(),x)},[x]);return a.useEffect(()=>()=>{P()},[P]),a.useEffect(()=>{p?C():_&&r||P()},[p,P,_,r,C]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(0,w.A)(e);delete a.onTransitionEnter,delete a.onTransitionExited;let n={...a,...t};return{role:"presentation",...n,onKeyDown:e=>{var t;null==(t=n.onKeyDown)||t.call(n,e),"Escape"===e.key&&229!==e.which&&E()&&!i&&(e.stopPropagation(),c&&c(e,"escapeKeyDown"))},ref:v}},getBackdropProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":!0,...e,onClick:t=>{var i;null==(i=e.onClick)||i.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")},open:p}},getTransitionProps:()=>{var e,t;return{onEnter:(0,I.A)(()=>{b(!1),s&&s()},null!=(e=null==u?void 0:u.props.onEnter)?e:O),onExited:(0,I.A)(()=>{b(!0),d&&d(),r&&P()},null!=(t=null==u?void 0:u.props.onExited)?t:O)}},rootRef:v,portalRef:R,isTopModal:E,exited:y,hasTransition:_}};var j=i(9562),D=i(550);function F(e){return(0,D.Ay)("MuiModal",e)}(0,j.A)("MuiModal",["root","hidden","backdrop"]);var L=i(6536);let B=(0,y.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,!i.open&&i.exited&&t.hidden]}})((0,b.A)(e=>{let{theme:t}=e;return{position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:e=>{let{ownerState:t}=e;return!t.open&&t.exited},style:{visibility:"hidden"}}]}})),z=(0,y.Ay)(x.A,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),U=a.forwardRef(function(e,t){let i=(0,_.b)({name:"MuiModal",props:e}),{BackdropComponent:o=z,BackdropProps:l,classes:s,className:d,closeAfterTransition:c=!1,children:p,container:f,component:h,components:g={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:A=!1,disablePortal:I=!1,disableRestoreFocus:w=!1,disableScrollLock:k=!1,hideBackdrop:S=!1,keepMounted:T=!1,onClose:C,onTransitionEnter:E,onTransitionExited:R,open:P,slotProps:O={},slots:M={},theme:j,...D}=i,U={...i,closeAfterTransition:c,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:A,disablePortal:I,disableRestoreFocus:w,disableScrollLock:k,hideBackdrop:S,keepMounted:T},{getRootProps:q,getBackdropProps:$,getTransitionProps:H,portalRef:V,isTopModal:W,exited:G,hasTransition:K}=N({...U,rootRef:t}),Z={...U,exited:G},Y=(e=>{let{open:t,exited:i,classes:a}=e;return(0,r.A)({root:["root",!t&&i&&"hidden"],backdrop:["backdrop"]},F,a)})(Z),X={};if(void 0===p.props.tabIndex&&(X.tabIndex="-1"),K){let{onEnter:e,onExited:t}=H();X.onEnter=e,X.onExited=t}let J={slots:{root:g.Root,backdrop:g.Backdrop,...M},slotProps:{...y,...O}},[Q,ee]=(0,L.A)("root",{ref:t,elementType:B,externalForwardedProps:{...J,...D,component:h},getSlotProps:q,ownerState:Z,className:(0,n.A)(d,null==Y?void 0:Y.root,!Z.open&&Z.exited&&(null==Y?void 0:Y.hidden))}),[et,ei]=(0,L.A)("backdrop",{ref:null==l?void 0:l.ref,elementType:o,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:l,getSlotProps:e=>$({...e,onClick:t=>{(null==e?void 0:e.onClick)&&e.onClick(t)}}),className:(0,n.A)(null==l?void 0:l.className,null==Y?void 0:Y.backdrop),ownerState:Z});
28return T||P||K&&!G?(0,u.jsx)(v,{ref:V,container:f,disablePortal:I,children:(0,u.jsxs)(Q,{...ee,children:[!S&&o?(0,u.jsx)(et,{...ei}):null,(0,u.jsx)(m,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:W,open:P,children:a.cloneElement(p,X)})]})}):null})},3234:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-6 0h-4V5h4z"}),"BusinessCenter")},3282:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>v,HX:()=>y,tT:()=>_});var a=i(6330),n=i(5012),r=i(1450),o=i(6079),l=i(62),s=i(5162),d=i(9535),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,c=(0,d.A)(function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),p=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?c:p},f=function(e,t,i){var a;if(t){var n=t.shouldForwardProp;a=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof a&&i&&(a=e.__emotion_forwardProp),a},h=function(e){var t=e.cache,i=e.serialized,a=e.isStringTag;return(0,l.SF)(t,i,a),(0,o.s)(function(){return(0,l.sk)(t,i,a)}),null},g=(function e(t,i){var o,d,u=t.__emotion_real===t,c=u&&t.__emotion_base||t;void 0!==i&&(o=i.label,d=i.target);var p=f(t,i,u),g=p||m(c),v=!g("as");return function(){var y=arguments,b=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{var _=y[0];b.push(_[0]);for(var x=y.length,A=1;A<x;A++)b.push(y[A],_[A])}var I=(0,n.w)(function(e,t,i){var a=v&&e.as||c,o="",u=[],f=e;if(null==e.theme){for(var y in f={},e)f[y]=e[y];f.theme=s.useContext(n.T)}"string"==typeof e.className?o=(0,l.Rk)(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var _=(0,r.J)(b.concat(u),t.registered,f);o+=t.key+"-"+_.name,void 0!==d&&(o+=" "+d);var x=v&&void 0===p?m(a):g,A={};
28for(var I in e)(!v||"as"!==I)&&x(I)&&(A[I]=e[I]);return A.className=o,i&&(A.ref=i),s.createElement(s.Fragment,null,s.createElement(h,{cache:t,serialized:_,isStringTag:"string"==typeof a}),s.createElement(a,A))});return I.displayName=void 0!==o?o:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",I.defaultProps=t.defaultProps,I.__emotion_real=I,I.__emotion_base=c,I.__emotion_styles=b,I.__emotion_forwardProp=p,Object.defineProperty(I,"toString",{value:function(){return"."+d}}),I.withComponent=function(t,n){return e(t,(0,a.A)({},i,n,{shouldForwardProp:f(I,n,!0)})).apply(void 0,b)},I}}).bind(null);function v(e,t){return g(e,t)}function y(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){g[e]=g(e)});let b=[];function _(e){return b[0]=e,(0,r.J)(b)}},3304:()=>{},3338:(e,t,i)=>{"use strict";function a(e,...t){let i=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>i.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${i} for the full message.`}i.d(t,{A:()=>a})},3418:(e,t,i)=>{"use strict";i.d(t,{A:()=>o,g:()=>r});var a=i(9562),n=i(550);function r(e){return(0,n.Ay)("MuiInputBase",e)}let o=(0,a.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"])},3427:(e,t,i)=>{"use strict";i.d(t,{c:()=>n,q:()=>a});let a=e=>e.scrollTop;function n(e,t){var i,a;let{timeout:n,easing:r,style:o={}}=e;return{duration:null!=(i=o.transitionDuration)?i:"number"==typeof n?n:n[t.mode]||0,easing:null!=(a=o.transitionTimingFunction)?a:"object"==typeof r?r[t.mode]:r,delay:o.transitionDelay}}},3438:(e,t)=>{t.read=function(e,t,i,a,n){var r,o,l=8*n-a-1,s=(1<<l)-1,d=s>>1,u=-7,c=i?n-1:0,p=i?-1:1,m=e[t+c];for(c+=p,r=m&(1<<-u)-1,m>>=-u,u+=l;u>0;r=256*r+e[t+c],c+=p,u-=8);for(o=r&(1<<-u)-1,r>>=-u,u+=a;u>0;o=256*o+e[t+c],c+=p,u-=8);if(0===r)r=1-d;else{if(r===s)return o?NaN:1/0*(m?-1:1);o+=Math.pow(2,a),r-=d}return(m?-1:1)*o*Math.pow(2,r-a)},t.write=function(e,t,i,a,n,r){var o,l,s,d=8*r-n-1,u=(1<<d)-1,c=u>>1,p=5960464477539062e-23*(23===n),m=a?0:r-1,f=a?1:-1,h=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(l=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?t+=p/s:t+=p*Math.pow(2,1-c),t*s>=2&&(o++,s/=2),o+c>=u?(l=0,o=u):o+c>=1?(l=(t*s-1)*Math.pow(2,n),o+=c):(l=t*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[i+m]=255&l,m+=f,l/=256,n-=8);for(o=o<<n|l,d+=n;d>0;e[i+m]=255&o,m+=f,o/=256,d-=8);e[i+m-f]|=128*h}},3511:(e,t,i)=>{"use strict";i.d(t,{A:()=>v});var a=i(5162),n=i(3638),r=i(6348),o=i(2298),l=i(9644),s=i(7926),d=i(8611),u=i(7458),c=i(1626),p=i(9562),m=i(550);function f(e){return(0,m.Ay)("MuiFormControl",e)}(0,p.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var h=i(4930);let g=(0,o.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t["margin".concat((0,d.A)(i.margin))],i.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),v=a.forwardRef(function(e,t){let i,o=(0,l.b)({props:e,name:"MuiFormControl"}),{children:p,className:m,color:v="primary",component:y="div",disabled:b=!1,error:_=!1,focused:x,fullWidth:A=!1,hiddenLabel:I=!1,margin:w="none",required:k=!1,size:S="medium",variant:T="outlined",...C}=o,E={...o,color:v,component:y,disabled:b,error:_,fullWidth:A,hiddenLabel:I,margin:w,required:k,size:S,variant:T},R=(e=>{let{classes:t,margin:i,fullWidth:a}=e,n={root:["root","none"!==i&&"margin".concat((0,d.A)(i)),a&&"fullWidth"]};return(0,r.A)(n,f,t)})(E),[P,O]=a.useState(()=>{let e=!1;
28return p&&a.Children.forEach(p,t=>{if(!(0,u.A)(t,["Input","Select"]))return;let i=(0,u.A)(t,["Select"])?t.props.input:t;i&&(0,s.gr)(i.props)&&(e=!0)}),e}),[M,N]=a.useState(()=>{let e=!1;return p&&a.Children.forEach(p,t=>{(0,u.A)(t,["Input","Select"])&&((0,s.lq)(t.props,!0)||(0,s.lq)(t.props.inputProps,!0))&&(e=!0)}),e}),[j,D]=a.useState(!1);b&&j&&D(!1);let F=void 0===x||b?j:x;a.useRef(!1);let L=a.useCallback(()=>{N(!0)},[]),B=a.useCallback(()=>{N(!1)},[]),z=a.useMemo(()=>({adornedStart:P,setAdornedStart:O,color:v,disabled:b,error:_,filled:M,focused:F,fullWidth:A,hiddenLabel:I,size:S,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:B,onFilled:L,registerEffect:i,required:k,variant:T}),[P,v,b,_,M,F,A,I,i,B,L,k,S,T]);return(0,h.jsx)(c.A.Provider,{value:z,children:(0,h.jsx)(g,{as:y,ownerState:E,className:(0,n.A)(R.root,m),ref:t,...C,children:p})})})},3541:(e,t,i)=>{"use strict";i.d(t,{jG:()=>n});var a=i(7441).Zq,n=function(){let e=[],t=0,i=e=>{e()},n=e=>{e()},r=a,o=a=>{t?e.push(a):r(()=>{i(a)})};return{batch:a=>{let o;t++;try{o=a()}finally{--t||(()=>{let t=e;e=[],t.length&&r(()=>{n(()=>{t.forEach(e=>{i(e)})})})})()}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{r=e}}}()},3566:(e,t,i)=>{"use strict";i.d(t,{Ge:()=>n,XX:()=>r});var a=i(2972);function n(){var e;let{mode:t}=(0,a.eP)();return{pageBg:(e="dark"===t)?"#0B1A26":"#f5f5f5",pageAltBg:e?"#0F2030":"#ffffff",sectionGradient:e?"linear-gradient(160deg, #264653 0%, #1D3344 100%)":"linear-gradient(160deg, #e8f4f8 0%, #dceefb 40%, #e3e8f0 100%)",sectionGradientCta:e?"linear-gradient(160deg, #264653 0%, #0B1A26 100%)":"linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e8eaf6 100%)",heroBg:e?"linear-gradient(160deg, #264653 0%, #1A1A2E 45%, #0d1117 100%)":"linear-gradient(160deg, #f8fffe 0%, #e8f4f8 30%, #dceefb 60%, #e3e8f0 100%)",heroBottomFade:e?"linear-gradient(to bottom, transparent, #0B1A26)":"linear-gradient(to bottom, transparent, #f5f5f5)",missionBg:e?"linear-gradient(180deg, #0B1A26 0%, #0F2030 50%, #0B1A26 100%)":"linear-gradient(180deg, #f5f5f5 0%, #ffffff 50%, #f5f5f5 100%)",textPrimary:e?"#ffffff":"#171717",textSecondary:e?"rgba(255,255,255,0.85)":"#404040",textTertiary:e?"rgba(255,255,255,0.75)":"#37474f",textMuted:e?"rgba(255,255,255,0.65)":"#525252",textSubtle:e?"rgba(255,255,255,0.55)":"#737373",textFaint:e?"rgba(255,255,255,0.4)":"#a3a3a3",cardBg:e?"rgba(255,255,255,0.06)":"#ffffff",cardBgHover:e?"rgba(255,255,255,0.09)":"rgba(0,0,0,0.02)",cardBorder:e?"rgba(255,255,255,0.08)":"#e5e5e5",cardBorderHover:e?"rgba(255,255,255,0.15)":"#d4d4d4",cardShadow:e?"none":"0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06)",cardShadowHover:e?"0 16px 48px rgba(0,0,0,0.3)":"0 8px 32px rgba(0,0,0,0.08)",cardRadius:3,divider:e?"rgba(255,255,255,0.06)":"#e5e5e5",dividerStrong:e?"rgba(255,255,255,0.08)":"#d4d4d4",teal:"#2A9D8F",tealHover:"#228076",tealBg:e?"rgba(42,157,143,0.15)":"rgba(42,157,143,0.08)",tealBorder:e?"rgba(42,157,143,0.3)":"rgba(42,157,143,0.2)",tealLight:e?"#4DB6AC":"#2A9D8F",orange:"#E76F51",orangeHover:"#d4603f",orangeBg:e?"rgba(231,111,81,0.15)":"rgba(231,111,81,0.1)",orangeBorder:e?"rgba(231,111,81,0.3)":"rgba(231,111,81,0.25)",headerBg:"transparent",headerScrolledBg:e?"rgba(11,26,38,0.95)":"rgba(255,255,255,0.95)",headerScrolledShadow:e?"none":"0 1px 3px rgba(0,0,0,0.08)",headerText:e?"#fff":"#171717",headerNavText:e?"rgba(255,255,255,0.85)":"#525252",drawerBg:e?"#0B1A26":"#ffffff",drawerText:e?"#fff":"#171717",drawerDivider:e?"rgba(255,255,255,0.08)":"#e5e5e5",drawerMuted:e?"rgba(255,255,255,0.5)":"#737373",drawerHover:e?"rgba(42,157,143,0.12)":"rgba(42,157,143,0.08)",drawerHoverSubtle:e?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.04)",outlinedBtnBorder:e?"rgba(255,255,255,0.3)":"#d4d4d4",outlinedBtnText:e?"#fff":"#2A9D8F",orbTeal:e?"radial-gradient(circle, rgba(42,157,143,0.12) 0%, transparent 70%)":"radial-gradient(circle, rgba(42,157,143,0.06) 0%, transparent 70%)",orbOrange:e?"radial-gradient(circle, rgba(231,111,81,0.08) 0%, transparent 70%)":"radial-gradient(circle, rgba(231,111,81,0.05) 0%, transparent 70%)",gridPatternOpacity:e?.035:.04,statValue:e?"linear-gradient(135deg, #2A9D8F, #4fd1c5)":"linear-gradient(135deg, #2A9D8F, #228076)",chipBg:e?"rgba(42,157,143,0.12)":"rgba(42,157,143,0.08)",chipBorder:e?"rgba(42,157,143,0.25)":"rgba(42,157,143,0.2)",chipText:e?"#4DB6AC":"#2A9D8F",dialogBg:e?"#1A1A2E":"#ffffff",dialogBorder:e?"rgba(255,255,255,0.08)":"#e5e5e5",dialogText:e?"#fff":"#171717",dialogMuted:e?"rgba(255,255,255,0.5)":"#737373",footerBg:"#2A9D8F"}}let r={contained:{px:{xs:3.5,md:4.5},py:{xs:1.5,md:1.75},fontWeight:600,fontSize:{xs:"1rem",md:"1.0625rem"},borderRadius:2,minHeight:{xs:48,md:48},textTransform:"none"},outlined:{px:{xs:3.5,md:4.5},py:{xs:1.5,md:1.75},fontWeight:600,fontSize:{xs:"1rem",md:"1.0625rem"},borderRadius:2,minHeight:{xs:48,md:48},textTransform:"none"}}},3625:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M7 2v11h3v9l7-12h-4l4-8z"}),"FlashOn")},3638:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=function(){for(var e,t,i=0,a="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=function e(t){var i,a,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var r=t.length;for(i=0;i<r;i++)t[i]&&(a=e(t[i]))&&(n&&(n+=" "),n+=a)}else for(a in t)t[a]&&(n&&(n+=" "),n+=a);return n}(e))&&(a&&(a+=" "),a+=t);return a}},3808:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(5162);let n={};function r(e,t){let i=a.useRef(n);return i.current===n&&(i.current=e(t)),i}},3890:(e,t,i)=>{"use strict";i.d(t,{A:()=>s,b:()=>l});var a=i(5162),n=i(4284),r=i(4930);let o=a.createContext(void 0);function l({props:e,name:t}){let{theme:i,name:r,props:l}={props:e,name:t,theme:{components:a.useContext(o)}};if(!i||!i.components||!i.components[r])return l;let s=i.components[r];return s.defaultProps?(0,n.A)(s.defaultProps,l,i.components.mergeClassNameAndStyle):s.styleOverrides||s.variants?l:(0,n.A)(s,l,i.components.mergeClassNameAndStyle)}let s=function({value:e,children:t}){return(0,r.jsx)(o.Provider,{value:e,children:t})}},3902:(e,t,i)=>{"use strict";i.d(t,{A:()=>
28o});var a=i(3638),n=i(544);let r=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(i=>{t[i]=e[i]}),t},o=function(e){let{getSlotProps:t,additionalProps:i,externalSlotProps:o,externalForwardedProps:l,className:s}=e;if(!t){let e=(0,a.A)(i?.className,s,l?.className,o?.className),t={...i?.style,...l?.style,...o?.style},n={...i,...l,...o};return e.length>0&&(n.className=e),Object.keys(t).length>0&&(n.style=t),{props:n,internalRef:void 0}}let d=(0,n.A)({...l,...o}),u=r(o),c=r(l),p=t(d),m=(0,a.A)(p?.className,i?.className,s,l?.className,o?.className),f={...p?.style,...i?.style,...l?.style,...o?.style},h={...p,...i,...c,...u};return m.length>0&&(h.className=m),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:p.ref}}},3956:(e,t,i)=>{"use strict";i.d(t,{Ht:()=>l,jE:()=>o});var a=i(5162),n=i(4930),r=a.createContext(void 0),o=e=>{let t=a.useContext(r);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t})=>(a.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,n.jsx)(r.Provider,{value:e,children:t}))},3957:(e,t,i)=>{"use strict";i.d(t,{A:()=>I});var a=i(5162),n=i(3638),r=i(6348),o=i(2332),l=i(8611),s=i(2298),d=i(8702),u=i(1894),c=i(6001),p=i(9644),m=i(8978),f=i(9562),h=i(550);function g(e){return(0,h.Ay)("MuiLink",e)}let v=(0,f.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var y=i(7684),b=i(2989),_=i(4930);let x={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},A=(0,s.Ay)(m.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t["underline".concat((0,l.A)(i.underline))],"button"===i.component&&t.button]}})((0,u.A)(e=>{let{theme:t}=e;return{variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:e=>{let{underline:t,ownerState:i}=e;return"always"===t&&"inherit"!==i.color},style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:e=>{let{underline:t,ownerState:i}=e;return"always"===t&&"inherit"===i.color},style:t.colorSpace?{textDecorationColor:t.alpha("currentColor",.4)}:null},...Object.entries(t.palette).filter((0,c.A)()).map(e=>{let[i]=e;return{props:{underline:"always",color:i},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette[i].main,.4)}}}),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(v.focusVisible)]:{outline:"auto"}}}]}})),I=a.forwardRef(function(e,t){let i=(0,p.b)({props:e,name:"MuiLink"}),s=(0,d.A)(),{className:u,color:c="primary",component:m="a",onBlur:f,onFocus:h,TypographyClasses:v,underline:I="always",variant:w="inherit",sx:k,...S}=i,[T,C]=a.useState(!1),E={...i,color:c,component:m,focusVisible:T,underline:I,variant:w},R=(e=>{let{classes:t,component:i,focusVisible:a,underline:n}=e,o={root:["root","underline".concat((0,l.A)(n)),"button"===i&&"button",a&&"focusVisible"]};return(0,r.A)(o,g,t)})(E);return(0,_.jsx)(A,{color:c,className:(0,n.A)(R.root,u),classes:v,component:m,onBlur:e=>{(0,o.A)(e.target)||C(!1),f&&f(e)},onFocus:e=>{(0,o.A)(e.target)&&C(!0),h&&h(e)},ref:t,ownerState:E,variant:w,...S,sx:[...void 0===x[c]?[{color:c}]:[],...Array.isArray(k)?k:[k]],style:{...S.style,..."always"===I&&"inherit"!==c&&!x[c]&&{"--Link-underlineColor":(e=>{let{theme:t,ownerState:i}=e,a=i.color;if("colorSpace"in t&&t.colorSpace){let e=(0,y.Yn)(t,"palette.".concat(a,".main"))||(0,y.Yn)(t,"palette.".concat(a))||i.c
28olor;return t.alpha(e,.4)}let n=(0,y.Yn)(t,"palette.".concat(a,".main"),!1)||(0,y.Yn)(t,"palette.".concat(a),!1)||i.color,r=(0,y.Yn)(t,"palette.".concat(a,".mainChannel"))||(0,y.Yn)(t,"palette.".concat(a,"Channel"));return"vars"in t&&r?"rgba(".concat(r," / 0.4)"):(0,b.X4)(n,.4)})({theme:s,ownerState:E})}}})})},3961:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>E});var a=i(4930),n=i(5162),r=i(5012),o=i(1077),l=i(5032),s=i(6597),d=i(3541),u=i(4246),c=class extends u.Q{constructor(e={}){super(),this.config=e,this.#a=new Map}#a;build(e,t,i){let a=t.queryKey,n=t.queryHash??(0,l.F$)(a,t),r=this.get(n);return r||(r=new s.X({client:e,queryKey:a,queryHash:n,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(r)),r}add(e){this.#a.has(e.queryHash)||(this.#a.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#a.get(e.queryHash);t&&(e.destroy(),t===e&&this.#a.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){d.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#a.get(e)}getAll(){return[...this.#a.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,l.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,l.MK)(e,t)):t}notify(e){d.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){d.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){d.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},p=i(7731),m=i(8636),f=class extends p.k{#n;#r;#o;#l;constructor(e){super(),this.#n=e.client,this.mutationId=e.mutationId,this.#o=e.mutationCache,this.#r=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#o.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||("pending"===this.state.status?this.scheduleGc():this.#o.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#s({type:"continue"})},i={client:this.#n,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=(0,m.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#o.canRun(this)});let a="pending"===this.state.status,n=!this.#l.canStart();try{if(a)t();else{this.#s({type:"pending",variables:e,isPaused:n}),this.#o.config.onMutate&&await this.#o.config.onMutate(e,this,i);let t=await this.options.onMutate?.(e,i);t!==this.state.context&&this.#s({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#l.start();return await this.#o.config.onSuccess?.(r,e,this.state.context,this,i),await this.options.onSuccess?.(r,e,this.state.context,i),await this.#o.config.onSettled?.(r,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(r,null,e,this.state.context,i),this.#s({type:"success",data:r}),r}catch(t){try{await this.#o.config.onError?.(t,e,this.state.context,this,i)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,i)}catch(e){Promise.reject(e)}try{await this.#o.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,i)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,i)}catch(e){Promise.reject(e)}throw this.#s({type:"error",error:t}),t}finally{this.#o.runNext(this)}}#s(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
28case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),d.jG.batch(()=>{this.#r.forEach(t=>{t.onMutationUpdate(e)}),this.#o.notify({mutation:this,type:"updated",action:e})})}},h=class extends u.Q{constructor(e={}){super(),this.config=e,this.#d=new Set,this.#u=new Map,this.#c=0}#d;#u;#c;build(e,t,i){let a=new f({client:e,mutationCache:this,mutationId:++this.#c,options:e.defaultMutationOptions(t),state:i});return this.add(a),a}add(e){this.#d.add(e);let t=g(e);if("string"==typeof t){let i=this.#u.get(t);i?i.push(e):this.#u.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#d.delete(e)){let t=g(e);if("string"==typeof t){let i=this.#u.get(t);if(i)if(i.length>1){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}else i[0]===e&&this.#u.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=g(e);if("string"!=typeof t)return!0;{let i=this.#u.get(t),a=i?.find(e=>"pending"===e.state.status);return!a||a===e}}runNext(e){let t=g(e);if("string"!=typeof t)return Promise.resolve();{let i=this.#u.get(t)?.find(t=>
28t!==e&&t.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){d.jG.batch(()=>{this.#d.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#d.clear(),this.#u.clear()})}getAll(){return Array.from(this.#d)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,l.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,l.nJ)(e,t))}notify(e){d.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return d.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(l.lQ))))}};function g(e){return e.options.scope?.id}var v=i(7172),y=i(2907);function b(e){return{onFetch:(t,i)=>{let a=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,r=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},d=0,u=async()=>{let i=!1,u=(0,l.ZM)(t.options,t.fetchOptions),c=async(e,a,n)=>{if(i)return Promise.reject();if(null==a&&e.pages.length)return Promise.resolve(e);let r=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:a,direction:n?"backward":"forward",meta:t.options.meta};return(0,l.ox)(e,()=>t.signal,()=>i=!0),e})(),o=await u(r),{maxPages:s}=t.options,d=n?l.ZZ:l.y9;return{pages:d(e.pages,o,s),pageParams:d(e.pageParams,a,s)}};if(n&&r.length){let e="backward"===n,t={pages:r,pageParams:o},i=(e?function(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}:_)(a,t);s=await c(t,i,e)}else{let t=e??r.length;do{let e=0===d?o[0]??a.initialPageParam:_(a,s);if(d>0&&null==e)break;s=await c(s,e),d++}while(d<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=u}}}function _(e,{pages:t,pageParams:i}){let a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,i[a],i):void 0}var x=class{#p;#o;#m;#f;#h;#g;#v;#y;constructor(e={}){this.#p=e.queryCache||new c,this.#o=e.mutationCache||new h,this.#m=e.defaultOptions||{},this.#f=new Map,this.#h=new Map,this.#g=0}mount(){this.#g++,1===this.#g&&(this.#v=v.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#p.onFocus())}),this.#y=y.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#p.onOnline())}))}unmount(){this.#g--,0===this.#g&&(this.#v?.(),this.#v=void 0,this.#y?.(),this.#y=void 0)}isFetching(e){return this.#p.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#o.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#p.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),i=this.#p.build(this,t),a=i.state.data;return void 0===a?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime((0,l.d2)(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#p.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,i){let a=this.defaultQueryOptions({queryKey:e}),n=this.#p.get(a.queryHash),r=n?.state.data,o=(0,l.Zw)(t,r);if(void 0!==o)return this.#p.build(this,a).setData(o,{...i,manual:!0})}setQueriesData(e,t,i){return d.jG.batch(()=>this.#p.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,i)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#p.get(t.queryHash)?.state}removeQueries(e){let t=this.#p;d.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let i=this.#p;return d.jG.batch(()=>(i.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let i={revert:!0,...t};return Promise.all(d.jG.batch(()=>this.#p.findAll(e).map(e=>e.cancel(i)))).then(l.lQ).catch(l.lQ)}invalidateQueries(e,t={}){return d.jG.batch(()=>(this.#p.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let i={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(d.jG.batch(()=>this.#p.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,i);return i.throwOnError||(t=t.catch(l.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}
28))).then(l.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#p.build(this,t);return i.isStaleByTime((0,l.d2)(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(l.lQ).catch(l.lQ)}fetchInfiniteQuery(e){return e.behavior=b(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(l.lQ).catch(l.lQ)}ensureInfiniteQueryData(e){return e.behavior=b(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return y.t.isOnline()?this.#o.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#p}getMutationCache(){return this.#o}getDefaultOptions(){return this.#m}setDefaultOptions(e){this.#m=e}setQueryDefaults(e,t){this.#f.set((0,l.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#f.values()],i={};return t.forEach(t=>{(0,l.Cp)(e,t.queryKey)&&Object.assign(i,t.defaultOptions)}),i}setMutationDefaults(e,t){this.#h.set((0,l.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#h.values()],i={};return t.forEach(t=>{(0,l.Cp)(e,t.mutationKey)&&Object.assign(i,t.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#m.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,l.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===l.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#m.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#p.clear(),this.#o.clear()}},A=i(3956),I=i(2972),w=i(9746);i(3304);let k=(0,o.A)({key:"css",prepend:!0}),S=new x({defaultOptions:{queries:{staleTime:6e4,retry:1,refetchOnWindowFocus:!1}}});function T(){var e;let{hasConsent:t}=(0,I.uC)(),{tenant:i}=(0,I.Ku)(),n=null==i||null==(e=i.metadata)?void 0:e.trackingPixels;return(0,a.jsx)(I.Pn,{pixels:n,hasConsent:t})}function C(e){var t;let{Component:i,pageProps:r}=e,{tenant:o}=(0,I.Ku)(),l=(0,n.useMemo)(()=>{if(o)return{primaryColor:o.primaryColor,secondaryColor:o.secondaryColor,accentColor:o.accentColor,fontFamily:o.fontFamily||'"Lato", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif',borderRadius:o.buttonRadius,surfaceColor:o.backgroundColor}},[o]),s=null!=(t=i.getLayout)?t:e=>(0,a.jsx)(w.A,{children:e});return(0,a.jsxs)(I.Iv,{brandKit:l,defaultMode:"system",children:[(0,a.jsx)(I.rd,{}),s((0,a.jsx)(i,{...r})),(0,a.jsx)(I.yF,{})]})}function E(e){let{Component:t,pageProps:i,emotionCache:n=k}=e;return(0,a.jsx)(r.C,{value:n,children:(0,a.jsx)(A.Ht,{client:S,children:(0,a.jsxs)(I.O$,{children:[(0,a.jsx)(I.WE,{subdomainAliases:["hub","www"],children:(0,a.jsxs)(I.yP,{endpoint:"/api/analytics/events",children:[(0,a.jsx)(C,{Component:t,pageProps:i}),(0,a.jsx)(T,{})]})}),(0,a.jsx)(I.ZO,{})]})})})}},4036:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},4056:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let a=e=>e,n=(()=>{let e=a;return{configure(t){e=t},generate:t=>e(t),reset(){e=a}}})()},4074:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},4221:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M19 14V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2m-9-1c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m13-6v11c0 1.1-.9 2-2 2H4v-2h17V7z"}),"Payments")},4246:(e,t,i)=>{"use strict";i.d(t,{Q:()=>a});var a=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}}
28,4284:(e,t,i)=>{"use strict";i.d(t,{A:()=>function e(t,i,n=!1){let r={...i};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o))if("components"===o||"slots"===o)r[o]={...t[o],...r[o]};else if("componentsProps"===o||"slotProps"===o){let a=t[o],l=i[o];if(l)if(a)for(let t in r[o]={...l},a)Object.prototype.hasOwnProperty.call(a,t)&&(r[o][t]=e(a[t],l[t],n));else r[o]=l;else r[o]=a||{}}else"className"===o&&n&&i.className?r.className=(0,a.A)(t?.className,i?.className):"style"===o&&n&&i.style?r.style={...t?.style,...i?.style}:void 0===r[o]&&(r[o]=t[o]);return r}});var a=i(3638)},4305:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var a=i(5162),n=i(3638),r=i(6348),o=i(8611),l=i(2298),s=i(1894),d=i(9644),u=i(9562),c=i(550);function p(e){return(0,c.Ay)("MuiSvgIcon",e)}(0,u.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var m=i(4930);let f=(0,l.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,"inherit"!==i.color&&t["color".concat((0,o.A)(i.color))],t["fontSize".concat((0,o.A)(i.fontSize))]]}})((0,s.A)(e=>{var t,i,a,n,r,o,l,s,d,u,c,p,m,f,h,g,v,y;let{theme:b}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:null==(n=b.transitions)||null==(a=n.create)?void 0:a.call(n,"fill",{duration:null==(i=(null!=(h=b.vars)?h:b).transitions)||null==(t=i.duration)?void 0:t.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:(null==(o=b.typography)||null==(r=o.pxToRem)?void 0:r.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:(null==(s=b.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:(null==(u=b.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((null!=(g=b.vars)?g:b).palette).filter(e=>{let[,t]=e;return t&&t.main}).map(e=>{var t,i,a;let[n]=e;return{props:{color:n},style:{color:null==(i=(null!=(a=b.vars)?a:b).palette)||null==(t=i[n])?void 0:t.main}}}),{props:{color:"action"},style:{color:null==(p=(null!=(v=b.vars)?v:b).palette)||null==(c=p.action)?void 0:c.active}},{props:{color:"disabled"},style:{color:null==(f=(null!=(y=b.vars)?y:b).palette)||null==(m=f.action)?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),h=a.forwardRef(function(e,t){let i=(0,d.b)({props:e,name:"MuiSvgIcon"}),{children:l,className:s,color:u="inherit",component:c="svg",fontSize:h="medium",htmlColor:g,inheritViewBox:v=!1,titleAccess:y,viewBox:b="0 0 24 24",..._}=i,x=a.isValidElement(l)&&"svg"===l.type,A={...i,color:u,component:c,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:v,viewBox:b,hasSvgAsChild:x},I={};v||(I.viewBox=b);let w=(e=>{let{color:t,fontSize:i,classes:a}=e,n={root:["root","inherit"!==t&&"color".concat((0,o.A)(t)),"fontSize".concat((0,o.A)(i))]};return(0,r.A)(n,p,a)})(A);return(0,m.jsxs)(f,{as:c,className:(0,n.A)(w.root,s),focusable:"false",color:g,"aria-hidden":!y||void 0,role:y?"img":void 0,ref:t,...I,..._,...x&&l.props,ownerState:A,children:[x?l.props.children:l,y?(0,m.jsx)("title",{children:y}):null]})});h.muiName="SvgIcon";let g=h},4321:(e,t,i)=>{"use strict";i.d(t,{A:()=>x});var a=i(5162),n=i(3638),r=i(5858),o=i(550),l=i(6348),s=i(5952),d=i(9289),u=i(6640),c=i(8835),p=i(1932),m=i(9418),f=i(4930);let h=(0,c.A)(),g=(0,s.A)("div",{name:"MuiStack",slot:"Root"});function v(e){return(0,d.A)({props:e,name:"MuiStack",defaultTheme:h})}let y=({ownerState:e,theme:t})=>{let i={display:"flex",flexDirection:"column",...(0,p.NI)({theme:t},(0,p.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let a=(0,m.LX)(t),n=Object.keys(t.breakpoints.values).reduce((t,i)=>(("object"==typeof e.spacing&&null!=e.spacing[i]||"object"==typeof e.direction&&null!=e.direction[i])&&(t[i]=!0),t),{}),o=(0,p.kW)({values:e.direction,base:n}),l=(0,p.kW)({values:e.spacing,base:n});
28"object"==typeof o&&Object.keys(o).forEach((e,t,i)=>{if(!o[e]){let a=t>0?o[i[t-1]]:"column";o[e]=a}}),i=(0,r.A)(i,(0,p.NI)({theme:t},l,(t,i)=>e.useFlexGap?{gap:(0,m._W)(a,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[i?o[i]:e.direction]}`]:(0,m._W)(a,t)}}))}return(0,p.iZ)(t.breakpoints,i)};var b=i(2298),_=i(9644);let x=function(e={}){let{createStyledComponent:t=g,useThemeProps:i=v,componentName:r="MuiStack"}=e,s=t(y);return a.forwardRef(function(e,t){let d=i(e),{component:c="div",direction:p="column",spacing:m=0,divider:h,children:g,className:v,useFlexGap:y=!1,...b}=(0,u.A)(d),_=(0,l.A)({root:["root"]},e=>(0,o.Ay)(r,e),{});return(0,f.jsx)(s,{as:c,ownerState:{direction:p,spacing:m,useFlexGap:y},ref:t,className:(0,n.A)(_.root,v),...b,children:h?function(e,t){let i=a.Children.toArray(e).filter(Boolean);return i.reduce((e,n,r)=>(e.push(n),r<i.length-1&&e.push(a.cloneElement(t,{key:`separator-${r}`})),e),[])}(g,h):g})})}({createStyledComponent:(0,b.Ay)("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>(0,_.b)({props:e,name:"MuiStack"})})},4356:(e,t,i)=>{"use strict";i.d(t,{A:()=>O});var a=i(5162),n=i(3638),r=i(6454),o=i(550),l=i(6348),s=i(5952),d=i(9289),u=i(7578),c=i(6640),p=i(8835);let m=(e,t,i)=>{let a=e.keys[0];if(Array.isArray(t))t.forEach((t,a)=>{i((t,i)=>{a<=e.keys.length-1&&(0===a?Object.assign(t,i):t[e.up(e.keys[a])]=i)},t)});else if(t&&"object"==typeof t){let n,r;(Object.keys(t).length>e.keys.length?e.keys:(n=e.keys,r=Object.keys(t),n.filter(e=>r.includes(e)))).forEach(n=>{if(e.keys.includes(n)){let r=t[n];void 0!==r&&i((t,i)=>{a===n?Object.assign(t,i):t[e.up(n)]=i},r)}})}else("number"==typeof t||"string"==typeof t)&&i((e,t)=>{Object.assign(e,t)},t)};function f(e){return`--Grid-${e}Spacing`}function h(e){return`--Grid-parent-${e}Spacing`}let g="--Grid-columns",v="--Grid-parent-columns",y=({theme:e,ownerState:t})=>{let i={};return m(e.breakpoints,t.size,(e,t)=>{let a={};"grow"===t&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / var(${v}) - (var(${v}) - ${t}) * (var(${h("column")}) / var(${v})))`}),e(i,a)}),i},b=({theme:e,ownerState:t})=>{let i={};return m(e.breakpoints,t.offset,(e,t)=>{let a={};"auto"===t&&(a={marginLeft:"auto"}),"number"==typeof t&&(a={marginLeft:0===t?"0px":`calc(100% * ${t} / var(${v}) + var(${h("column")}) * ${t} / var(${v}))`}),e(i,a)}),i},_=({theme:e,ownerState:t})=>{if(!t.container)return{};let i={[g]:12};return m(e.breakpoints,t.columns,(e,t)=>{let a=t??12;e(i,{[g]:a,"> *":{[v]:a}})}),i},x=({theme:e,ownerState:t})=>{if(!t.container)return{};let i={};return m(e.breakpoints,t.rowSpacing,(t,a)=>{let n="string"==typeof a?a:e.spacing?.(a);t(i,{[f("row")]:n,"> *":{[h("row")]:n}})}),i},A=({theme:e,ownerState:t})=>{if(!t.container)return{};let i={};return m(e.breakpoints,t.columnSpacing,(t,a)=>{let n="string"==typeof a?a:e.spacing?.(a);t(i,{[f("column")]:n,"> *":{[h("column")]:n}})}),i},I=({theme:e,ownerState:t})=>{if(!t.container)return{};let i={};return m(e.breakpoints,t.direction,(e,t)=>{e(i,{flexDirection:t})}),i},w=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},gap:`var(${f("row")}) var(${f("column")})`}});var k=i(4930);let S=(0,p.A)(),T=(0,s.A)("div",{name:"MuiGrid",slot:"Root"});function C(e){return(0,d.A)({props:e,name:"MuiGrid",defaultTheme:S})}var E=i(2298),R=i(9644),P=i(8702);let O=function(e={}){let{createStyledComponent:t=T,useThemeProps:i=C,useTheme:s=u.A,componentName:d="MuiGrid"}=e;function p(e,t,i=()=>!0){let a={};return null===e||(Array.isArray(e)?e.forEach((e,n)=>{null!==e&&i(e)&&t.keys[n]&&(a[t.keys[n]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{let n=e[t];null!=n&&i(n)&&(a[t]=n)}):a[t.keys[0]]=e),a}let m=t(_,A,x,y,I,w,b),f=a.forwardRef(function(e,t){let u=s(),f=i(e),h=(0,c.A)(f);var g=u.breakpoints;let v=[];void 0!==h.item&&(delete h.item,v.push("item")),void 0!==h.zeroMinWidth&&(delete h.zeroMinWidth,v.push("zeroMinWidth")),g.keys.forEach(e
28=>{void 0!==h[e]&&(v.push(e),delete h[e])});let{className:y,children:b,columns:_=12,container:x=!1,component:A="div",direction:I="row",wrap:w="wrap",size:S={},offset:T={},spacing:C=0,rowSpacing:E=C,columnSpacing:R=C,unstable_level:P=0,...O}=h,M=p(S,u.breakpoints,e=>!1!==e),N=p(T,u.breakpoints),j=e.columns??(P?void 0:_),D=e.spacing??(P?void 0:C),F=e.rowSpacing??e.spacing??(P?void 0:E),L=e.columnSpacing??e.spacing??(P?void 0:R),B={...h,level:P,columns:j,container:x,direction:I,wrap:w,spacing:D,rowSpacing:F,columnSpacing:L,size:M,offset:N},z=((e,t)=>{let{container:i,direction:a,spacing:n,wrap:r,size:s}=e,u={root:["root",i&&"container","wrap"!==r&&`wrap-xs-${String(r)}`,...void 0===a?[]:"object"==typeof a?Object.entries(a).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(a)}`],...(e=>{let t=[];return Object.entries(e).forEach(([e,i])=>{!1!==i&&void 0!==i&&t.push(`grid-${e}-${String(i)}`)}),t})(s),...i?((e,t="xs")=>{function i(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(i(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,a])=>{i(a)&&t.push(`spacing-${e}-${String(a)}`)}),t}return[]})(n,t.breakpoints.keys[0]):[]]};return(0,l.A)(u,e=>(0,o.Ay)(d,e),{})})(B,u);return(0,k.jsx)(m,{ref:t,as:A,ownerState:B,className:(0,n.A)(z.root,y),...O,children:a.Children.map(b,e=>a.isValidElement(e)&&(0,r.A)(e,["Grid"])&&x&&e.props.container?a.cloneElement(e,{unstable_level:e.props?.unstable_level??P+1}):e)})});return f.muiName="Grid",f}({createStyledComponent:(0,E.Ay)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>(0,R.b)({props:e,name:"MuiGrid"}),useTheme:P.A})},4374:(e,t,i)=>{"use strict";i.d(t,{A:()=>E});var a=i(6739),n=i(5162),r=i(3638),o=i(6348),l=i(8631),s=i(2298),d=i(1894),u=i(9644),c=i(8611),p=i(6001),m=i(9562),f=i(550);function h(e){return(0,f.Ay)("MuiCircularProgress",e)}(0,m.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g=i(4930);function v(){let e=(0,a._)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"]);return v=function(){return e},e}function y(){let e=(0,a._)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: -126px;\n }\n"]);return y=function(){return e},e}function b(){let e=(0,a._)(["\n animation: "," 1.4s linear infinite;\n "]);return b=function(){return e},e}function _(){let e=(0,a._)(["\n animation: "," 1.4s ease-in-out infinite;\n "]);return _=function(){return e},e}let x=(0,l.i7)(v()),A=(0,l.i7)(y()),I="string"!=typeof x?(0,l.AH)(b(),x):null,w="string"!=typeof A?(0,l.AH)(_(),A):null,k=(0,s.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t[i.variant],t["color".concat((0,c.A)(i.color))]]}})((0,d.A)(e=>{let{theme:t}=e;return{display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:I||{animation:"".concat(x," 1.4s linear infinite")}},...Object.entries(t.palette).filter((0,p.A)()).map(e=>{let[i]=e;return{props:{color:i},style:{color:(t.vars||t).palette[i].main}}})]}})),S=(0,s.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),T=(0,s.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.circle,t["circle".concat((0,c.A)(i.variant))],i.disableShrink&&t.circleDisableShrink]}})((0,d.A)(e=>{let{theme:t}=e;return{stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink},style:w||{animation:"".concat(A," 1.4s ease-in-out infinite")}}]}})),C=(0,s.Ay)("circle",{name:"MuiCircularProgress",slot:"Track"})((0,d.A)(e=>{let{theme:t}=e;return{stroke:"currentColor",opacity:(t.vars||t).palette.action.activatedOpacity}})),E=n.forwardRef(function(e,t){let i=(0,u.b)({props:e,name:"MuiCircularProgress"}),{className:a,color:n="primary",disableShrink:l=!1,enableTrackSlot:s=!1,size:d=40,style:p,thickness:m=3.6,value:f=0,variant:v="indeterminate",...y}=i,b={...i,color:n,disableShrink:l,size:d,thickness:m,value:f,variant:v,enableTrackSlot:s},_=(e=>{let{classes:t,variant:i,color:a,disableShrink:n}=e,r={root:["root",i,"color".concat((0,c.A)(a))],svg:["svg"],track:["track"],circle:["cir
28cle","circle".concat((0,c.A)(i)),n&&"circleDisableShrink"]};return(0,o.A)(r,h,t)})(b),x={},A={},I={};if("determinate"===v){let e=2*Math.PI*((44-m)/2);x.strokeDasharray=e.toFixed(3),I["aria-valuenow"]=Math.round(f),x.strokeDashoffset="".concat(((100-f)/100*e).toFixed(3),"px"),A.transform="rotate(-90deg)"}return(0,g.jsx)(k,{className:(0,r.A)(_.root,a),style:{width:d,height:d,...A,...p},ownerState:b,ref:t,role:"progressbar",...I,...y,children:(0,g.jsxs)(S,{className:_.svg,ownerState:b,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:[s?(0,g.jsx)(C,{className:_.track,ownerState:b,cx:44,cy:44,r:(44-m)/2,fill:"none",strokeWidth:m,"aria-hidden":"true"}):null,(0,g.jsx)(T,{className:_.circle,style:x,ownerState:b,cx:44,cy:44,r:(44-m)/2,fill:"none",strokeWidth:m})]})})})},4406:(e,t)=>{"use strict";var i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,n=i?Symbol.for("react.portal"):60106,r=i?Symbol.for("react.fragment"):60107,o=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,s=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,u=i?Symbol.for("react.async_mode"):60111,c=i?Symbol.for("react.concurrent_mode"):60111,p=i?Symbol.for("react.forward_ref"):60112,m=i?Symbol.for("react.suspense"):60113,f=i?Symbol.for("react.suspense_list"):60120,h=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,v=i?Symbol.for("react.block"):60121,y=i?Symbol.for("react.fundamental"):60117,b=i?Symbol.for("react.responder"):60118,_=i?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case c:case r:case l:case o:case m:return e;default:switch(e=e&&e.$$typeof){case d:case p:case g:case h:case s:return e;default:return t}}case n:return t}}}function A(e){return x(e)===c}t.AsyncMode=u,t.ConcurrentMode=c,t.ContextConsumer=d,t.ContextProvider=s,t.Element=a,t.ForwardRef=p,t.Fragment=r,t.Lazy=g,t.Memo=h,t.Portal=n,t.Profiler=l,t.StrictMode=o,t.Suspense=m,t.isAsyncMode=function(e){return A(e)||x(e)===u},t.isConcurrentMode=A,t.isContextConsumer=function(e){return x(e)===d},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===r},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===h},t.isPortal=function(e){return x(e)===n},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===l||e===o||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===d||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=x},4488:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>m});var a=i(3282),n=i(5858),r=i(8835),o=i(5044),l=i(2981);let s=(0,r.A)();function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function u(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function c(e,t,i){let n="function"==typeof t?t(e):t;if(Array.isArray(n))return n.flatMap(t=>c(e,t,i));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=i?u(n.style,i):n.style;else{let{variants:e,...r}=n;t=i?u((0,a.tT)(r),i):r}return p(e,n.variants,[t],i)}return n?.isProcessed?i?u((0,a.tT)(n.style),i):n.style:i?u((0,a.tT)(n),i):n}function p(e,t,i=[],n){let r;e:for(let o=0;o<t.length;o+=1){let l=t[o];if("function"==typeof l.props){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(r))continue}else for(let t in l.props)if(e[t]!==l.props[t]&&e.ownerState?.[t]!==l.props[t])continue e;"function"==typeof l.style?(r??={...e,...e.ownerState,ownerState:e.ownerState},i.push(n?u((0,a.tT)(l.style(r)),n):l.style(r))):i.push(n?u((0,a.tT)(l.style),n):l.style)}return i}function m(e={}){let{themeId:t,defaultTheme:i=s,rootShouldForwardProp:r=d,slotShouldForwardProp:f=d}=e;function h(e){e.theme=!function(e){for(let t in e)return!1;return!0}(e.theme)?e.theme[t]||e.theme:i}return(e,t={})=>{var i,s,m;(0,a.HX)(e,e=>e.filter(e=>e!==o.A));
28let{name:g,slot:v,skipVariantsResolver:y,skipSx:b,overridesResolver:_=!(i=(s=v)?s.charAt(0).toLowerCase()+s.slice(1):s)?null:(e,t)=>t[i],...x}=t,A=g&&g.startsWith("Mui")||v?"components":"custom",I=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,w=b||!1,k=d;"Root"===v||"root"===v?k=r:v?k=f:"string"==typeof(m=e)&&m.charCodeAt(0)>96&&(k=void 0);let S=(0,a.Ay)(e,{shouldForwardProp:k,label:void 0,...x}),T=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return c(t,e,t.theme.modularCssLayers?A:void 0)};if((0,n.Q)(e)){let t=(0,l.A)(e);return function(e){return t.variants?c(e,t,e.theme.modularCssLayers?A:void 0):e.theme.modularCssLayers?u(t.style,A):t.style}}return e},C=(...t)=>{let i=[],a=t.map(T),n=[];if(i.push(h),g&&_&&n.push(function(e){let t=e.theme,i=t.components?.[g]?.styleOverrides;if(!i)return null;let a={};for(let t in i)a[t]=c(e,i[t],e.theme.modularCssLayers?"theme":void 0);return _(e,a)}),g&&!I&&n.push(function(e){let t=e.theme,i=t?.components?.[g]?.variants;return i?p(e,i,[],e.theme.modularCssLayers?"theme":void 0):null}),w||n.push(o.A),Array.isArray(a[0])){let e,t=a.shift(),r=Array(i.length).fill(""),o=Array(n.length).fill("");(e=[...r,...t,...o]).raw=[...r,...t.raw,...o],i.unshift(e)}let r=S(...i,...a,...n);return e.muiName&&(r.muiName=e.muiName),r};return S.withConfig&&(C.withConfig=S.withConfig),C}}},4526:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>l,p0:()=>n});let a={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)"},n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function r(e){return"".concat(Math.round(e),"ms")}function o(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function l(e){let t={...a,...e.easing},i={...n,...e.duration};return{getAutoHeightDuration:o,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:n=i.standard,easing:o=t.easeInOut,delay:l=0,...s}=a;return(Array.isArray(e)?e:[e]).map(e=>"".concat(e," ").concat("string"==typeof n?n:r(n)," ").concat(o," ").concat("string"==typeof l?l:r(l))).join(",")},...e,easing:t,duration:i}}},4557:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m5.2494 8.0688 2.83-2.8269 14.1343 14.15-2.83 2.8269zm4.2363-4.2415 2.828-2.8289 5.6577 5.656-2.828 2.8289zM.9989 12.3147l2.8284-2.8285 5.6569 5.6569-2.8285 2.8284zM1 21h12v2H1z"}),"Gavel")},4697:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"}),"RocketLaunch")},4746:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m21.9 8.89-1.05-4.37c-.22-.9-1-1.52-1.91-1.52H5.05c-.9 0-1.69.63-1.9 1.52L2.1 8.89c-.24 1.02-.02 2.06.62 2.88.08.11.19.19.28.29V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6.94c.09-.09.2-.18.28-.28.64-.82.87-1.87.62-2.89m-2.99-3.9 1.05 4.37c.1.42.01.84-.25 1.17-.14.18-.44.47-.94.47-.61 0-1.14-.49-1.21-1.14L16.98 5zM13 5h1.96l.54 4.52c.05.39-.07.78-.33 1.07-.22.26-.54.41-.95.41-.67 0-1.22-.59-1.22-1.31zM8.49 9.52 9.04 5H11v4.69c0 .72-.55 1.31-1.29 1.31-.34 0-.65-.15-.89-.41-.25-.29-.37-.68-.33-1.07m-4.45-.16L5.05 5h1.97l-.58 4.86c-.08.65-.6 1.14-1.21 1.14-.49 0-.8-.29-.93-.47-.27-.32-.36-.75-.26-1.17M5 19v-6.03c.08.01.15.03.23.03.87 0 1.66-.36 2.24-.95.6.6 1.4.95 2.31.95.87 0 1.65-.36 2.23-.93.59.57 1.39.93 2.29.93.84 0 1.64-.35 2.24-.95.58.59 1.37.95 2.24.95.08 0 .15-.02.23-.03V19z"}),"Storefront")},4886:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email")},4978:(e,t,i)=>{"use strict";i.d(t,{A:()=>
28o,Y:()=>r});var a=i(9562),n=i(550);function r(e){return(0,n.Ay)("MuiListItemButton",e)}let o=(0,a.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"])},5001:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People")},5011:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M4 10h3v7H4zm6.5 0h3v7h-3zM2 19h20v3H2zm15-9h3v7h-3zm-5-9L2 6v2h20V6z"}),"AccountBalance")},5012:(e,t,i)=>{"use strict";i.d(t,{C:()=>d,E:()=>g,T:()=>c,c:()=>f,h:()=>p,w:()=>u});var a=i(5162),n=i(1077),r=i(62),o=i(1450),l=i(6079),s=a.createContext("undefined"!=typeof HTMLElement?(0,n.A)({key:"css"}):null),d=s.Provider,u=function(e){return(0,a.forwardRef)(function(t,i){return e(t,(0,a.useContext)(s),i)})},c=a.createContext({}),p={}.hasOwnProperty,m="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var i={};for(var a in t)p.call(t,a)&&(i[a]=t[a]);return i[m]=e,i},h=function(e){var t=e.cache,i=e.serialized,a=e.isStringTag;return(0,r.SF)(t,i,a),(0,l.s)(function(){return(0,r.sk)(t,i,a)}),null},g=u(function(e,t,i){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var l=e[m],s=[n],d="";"string"==typeof e.className?d=(0,r.Rk)(t.registered,s,e.className):null!=e.className&&(d=e.className+" ");var u=(0,o.J)(s,void 0,a.useContext(c));d+=t.key+"-"+u.name;var f={};for(var g in e)p.call(e,g)&&"css"!==g&&g!==m&&(f[g]=e[g]);return f.className=d,i&&(f.ref=i),a.createElement(a.Fragment,null,a.createElement(h,{cache:t,serialized:u,isStringTag:"string"==typeof l}),a.createElement(l,f))})},5032:(e,t,i)=>{"use strict";i.d(t,{Cp:()=>h,EN:()=>f,Eh:()=>u,F$:()=>m,GU:()=>T,MK:()=>c,S$:()=>n,ZM:()=>S,ZZ:()=>w,Zw:()=>o,d2:()=>d,f8:()=>v,gn:()=>l,hT:()=>k,j3:()=>s,lQ:()=>r,nJ:()=>p,ox:()=>C,pl:()=>A,y9:()=>I,yy:()=>x});var a=i(7441),n="undefined"==typeof window||"Deno"in globalThis;function r(){}function o(e,t){return"function"==typeof e?e(t):e}function l(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function d(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:i="all",exact:a,fetchStatus:n,predicate:r,queryKey:o,stale:l}=e;if(o){if(a){if(t.queryHash!==m(o,t.options))return!1}else if(!h(t.queryKey,o))return!1}if("all"!==i){let e=t.isActive();if("active"===i&&!e||"inactive"===i&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(!n||n===t.state.fetchStatus)&&(!r||!!r(t))}function p(e,t){let{exact:i,status:a,predicate:n,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(i){if(f(t.options.mutationKey)!==f(r))return!1}else if(!h(t.options.mutationKey,r))return!1}return(!a||t.state.status===a)&&(!n||!!n(t))}function m(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,i)=>(e[i]=t[i],e),{}):t)}function h(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(i=>h(e[i],t[i]))}var g=Object.prototype.hasOwnProperty;function v(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(e[i]!==t[i])return!1;return!0}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!_(e))return!1;let t=e.constructor;if(void 0===t)return!0;let i=t.prototype;return!!_(i)&&!!i.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function x(e){return new Promise(t=>{a.zs.setTimeout(t,e)})}function A(e,t,i){return"function"==typeof i.structuralSharing?i.structuralSharing(e,t):!1!==i.structuralSharing?function e(t,i,a=0){if(t===i)return t;if(a>500)return i;let n=y(t)&&y(i);if(!n&&!(b(t)&&b(i)))return i;let r=(n?t:Object.keys(t)).length,o=n?i:Object.keys(i),l=o.length,s=n?Array(l):{},d=0;for(let u=0;u<l;u++){let l=n?u:o[u],c=t[l],p=i[l];if(c===p){s[l]=c,(n?u<r:g.call(t,l))&&d++;continue}if(null===c||null===p||"object"!=typeof c||"object"!=typeof p){s[l]=p;continue}let m=e(c,p,a+1);s[l]=m,m===c&&d++}return r===l&&d===r?t:s}(e,t):t}function I(e,t,i=0){let a=[...e,t];return i&&a.length>i?a.slice(1):a}function w(e,t,i=0){let a=[t,...e];return i&&a.length>i?a.slice(0,-1):a}var k=Symbol();function S(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==k?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function T(e,t){return"function"==typeof e?e(...t):!!e}function C(e,t,i){let a,n=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),n||(n=!0,a.aborted?i():a.addEventListener("abort",i,{once:!0})),a)}),e}},5034:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(3961)}])},5044:(e,t,i)=>{"use strict";i.d(t,{A:()=>u});var a=i(7392),n=i(52),r=i(7684),o=i(1932),l=i(2636),s=i(5794);let d=function(){function e(e,t,i,n){let l={[e]:t,theme:i},s=n[e];if(!s)return{[e]:t};let{cssProperty:d=e,themeKey:u,transform:c,style:p}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let m=(0,r.Yn)(i,u)||{};return p?p(l):(0,o.NI)(l,t,t=>{let i=(0,r.BO)(m,c,t);return(t===i&&"string"==typeof t&&(i=(0,r.BO)(m,c,`${e}${"default"===t?"":(0,a.A)(t)}`,t)),!1===d)?i:{[d]:i}})}return function t(i){let{sx:a,theme:r={},nested:d}=i||{};if(!a)return null;let u=r.unstable_sxConfig??s.A;function c(i){let a=i;if("function"==typeof i)a=i(r);else if("object"!=typeof i)return i;if(!a)return null;let s=(0,o.EU)(r.breakpoints),c=Object.keys(s),p=s;
28return(Object.keys(a).forEach(i=>{var l;let s=(l=a[i],"function"==typeof l?l(r):l);if(null!=s)if("object"==typeof s)if(u[i])p=(0,n.A)(p,e(i,s,r,u));else{let e=(0,o.NI)({theme:r},s,e=>({[i]:e}));!function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)}(e,s)?p=(0,n.A)(p,e):p[i]=t({sx:s,theme:r,nested:!0})}else p=(0,n.A)(p,e(i,s,r,u))}),!d&&r.modularCssLayers)?{"@layer sx":(0,l._S)(r,(0,o.vf)(c,p))}:(0,l._S)(r,(0,o.vf)(c,p))}return Array.isArray(a)?a.map(c):c(a)}}();d.filterProps=["sx"];let u=d},5130:(e,t,i)=>{"use strict";i.d(t,{A:()=>_});var a=i(5162),n=i(6348),r=i(5858),o=i(1062),l=i(2859),s=i(2298),d=i(1894),u=i(6001),c=i(9644),p=i(9562),m=i(550);function f(e){return(0,m.Ay)("MuiInput",e)}let h={...i(3418).A,...(0,p.A)("MuiInput",["root","underline","input"])};var g=i(4930);let v=(0,s.Ay)(o.Sh,{shouldForwardProp:e=>(0,l.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[...(0,o.WC)(e,t),!i.disableUnderline&&t.underline]}})((0,d.A)(e=>{let{theme:t}=e,i="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(i=t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:e=>{let{ownerState:t}=e;return t.formControl},style:{"label + &":{marginTop:16}}},{props:e=>{let{ownerState:t}=e;return!t.disableUnderline},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(h.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(h.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(i),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(h.disabled,", .").concat(h.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(i)}},["&.".concat(h.disabled,":before")]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter((0,u.A)()).map(e=>{let[i]=e;return{props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[i].main)}}}})]}})),y=(0,s.Ay)(o.ck,{name:"MuiInput",slot:"Input",overridesResolver:o.Oj})({}),b=a.forwardRef(function(e,t){var i,a,l,s;let d=(0,c.b)({props:e,name:"MuiInput"}),{disableUnderline:u=!1,components:p={},componentsProps:m,fullWidth:h=!1,inputComponent:b="input",multiline:_=!1,slotProps:x,slots:A={},type:I="text",...w}=d,k=(e=>{let{classes:t,disableUnderline:i}=e,a=(0,n.A)({root:["root",!i&&"underline"],input:["input"]},f,t);return{...t,...a}})(d),S={root:{ownerState:{disableUnderline:u}}},T=(null!=x?x:m)?(0,r.A)(null!=x?x:m,S):S,C=null!=(a=null!=(i=A.root)?i:p.Root)?a:v,E=null!=(s=null!=(l=A.input)?l:p.Input)?s:y;return(0,g.jsx)(o.Ay,{slots:{root:C,input:E},slotProps:T,fullWidth:h,inputComponent:b,multiline:_,ref:t,type:I,...w,classes:k})});b.muiName="Input";let _=b},5399:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M20 4H4v2h16zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6zm-9 4H6v-4h6z"}),"Store")},5467:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person")},5617:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(8540).A},5622:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(8540),n=i(6672),r=i(3902),o=i(9770);let l=function(e){let{elementType:t,externalSlotProps:i,ownerState:l,skipResolvingSlotProps:s=!1,...d}=e,u=s?{}:(0,o.A)(i,l),{props:c,internalRef:p}=(0,r.A)({...d,externalSlotProps:u}),m=(0,a.A)(p,u?.ref,e.additionalProps?.ref);return(0,n.A)(t,{...c,ref:m},l)}},5698:(e,t,i)=>{"use strict";i.d(t,{A:()=>tr});var a,n,r={};function o(e,t){return function(){return e.apply(t,arguments)}}i.r(r),i.d(r,{hasBrowserEnv:()=>ep,hasStandardBrowserEnv:()=>ef,hasStandardBrowserWebWorkerEnv:()=>eh,navigator:()=>em,origin:()=>eg});var l=i(3727);let{toString:s}=Object.prototype,{getPrototypeOf:d}=Object,{iterator:u,toStringTag:c}=Symbol,p=(e=>t=>{let i=s.call(t);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),m=e=>(e=e.toLowerCase(),t=>p(t)===e),f=e=>t=>typeof t===e,{isArray:h}=Array,g=f("undefined");function v(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let y=m("ArrayBuffer"),b=f("string"),_=f("function"),x=f("number"),A=e=>null!==e&&"object"==typeof e,I=e=>{if("object"!==p(e))return!1;let t=d(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(c in e)&&!(u in e)},w=m("Date"),k=m("File"),S=m("Blob"),T=m("FileList"),C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},E=void 0!==C.FormData?C.FormData:void 0,R=m("URLSearchParams"),[P,O,M,N]=["ReadableStream","Request","Response","Headers"].map(m);function j(e,t,{allOwnKeys:i=!1}
28={}){let a,n;if(null!=e)if("object"!=typeof e&&(e=[e]),h(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{let n;if(v(e))return;let r=i?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;for(a=0;a<o;a++)n=r[a],t.call(null,e[n],n,e)}}function D(e,t){let i;if(v(e))return null;t=t.toLowerCase();let a=Object.keys(e),n=a.length;for(;n-- >0;)if(t===(i=a[n]).toLowerCase())return i;return null}let F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,L=e=>!g(e)&&e!==F,B=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&d(Uint8Array)),z=m("HTMLFormElement"),U=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),q=m("RegExp"),$=(e,t)=>{let i=Object.getOwnPropertyDescriptors(e),a={};j(i,(i,n)=>{let r;!1!==(r=t(i,n,e))&&(a[n]=r||i)}),Object.defineProperties(e,a)},H=m("AsyncFunction"),V=(a="function"==typeof setImmediate,n=_(F.postMessage),a?setImmediate:n?((e,t)=>(F.addEventListener("message",({source:i,data:a})=>{i===F&&a===e&&t.length&&t.shift()()},!1),i=>{t.push(i),F.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),W="undefined"!=typeof queueMicrotask?queueMicrotask.bind(F):void 0!==l&&l.nextTick||V,G={isArray:h,isArrayBuffer:y,isBuffer:v,isFormData:e=>{let t;return e&&(E&&e instanceof E||_(e.append)&&("formdata"===(t=p(e))||"object"===t&&_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer)},isString:b,isNumber:x,isBoolean:e=>!0===e||!1===e,isObject:A,isPlainObject:I,isEmptyObject:e=>{if(!A(e)||v(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:P,isRequest:O,isResponse:M,isHeaders:N,isUndefined:g,isDate:w,isFile:k,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:S,isRegExp:q,isFunction:_,isStream:e=>A(e)&&_(e.pipe),isURLSearchParams:R,isTypedArray:B,isFileList:T,forEach:j,merge:function e(){let{caseless:t,skipUndefined:i}=L(this)&&this||{},a={},n=(n,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let o=t&&D(a,r)||r;I(a[o])&&I(n)?a[o]=e(a[o],n):I(n)?a[o]=e({},n):h(n)?a[o]=n.slice():i&&g(n)||(a[o]=n)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&j(arguments[e],n);return a},extend:(e,t,i,{allOwnKeys:a}={})=>(j(t,(t,a)=>{i&&_(t)?Object.defineProperty(e,a,{value:o(t,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,i,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject:(e,t,i,a)=>{let n,r,o,l={};if(t=t||{},null==e)return t;do{for(r=(n=Object.getOwnPropertyNames(e)).length;r-- >0;)o=n[r],(!a||a(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=!1!==i&&d(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:p,kindOfTest:m,endsWith:(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;let a=e.indexOf(t,i);return -1!==a&&a===i},toArray:e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!x(t))return null;let i=Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{let i,a=(e&&e[u]).call(e);for(;(i=a.next())&&!i.done;){let a=i.value;t.call(e,a[0],a[1])}},matchAll:(e,t)=>{let i,a=[];for(;null!==(i=e.exec(t));)a.push(i);return a},isHTMLForm:z,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:$,freezeMethods:e=>{$(e,(t,i)=>{if(_(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;if(_(e[i])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(e,t)=>{let i={};
28return(h(e)?e:String(e).split(t)).forEach(e=>{i[e]=!0}),i},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,i){return t.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:D,global:F,isContextDefined:L,isSpecCompliantForm:function(e){return!!(e&&_(e.append)&&"FormData"===e[c]&&e[u])},toJSONObject:e=>{let t=Array(10),i=(e,a)=>{if(A(e)){if(t.indexOf(e)>=0)return;if(v(e))return e;if(!("toJSON"in e)){t[a]=e;let n=h(e)?[]:{};return j(e,(e,t)=>{let r=i(e,a+1);g(r)||(n[t]=r)}),t[a]=void 0,n}}return e};return i(e,0)},isAsyncFn:H,isThenable:e=>e&&(A(e)||_(e))&&_(e.then)&&_(e.catch),setImmediate:V,asap:W,isIterable:e=>null!=e&&_(e[u])};class K extends Error{static from(e,t,i,a,n,r){let o=new K(e.message,t||e.code,i,a,n);return o.cause=e,o.name=e.name,null!=e.status&&null==o.status&&(o.status=e.status),r&&Object.assign(o,r),o}constructor(e,t,i,a,n){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),i&&(this.config=i),a&&(this.request=a),n&&(this.response=n,this.status=n.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}}K.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",K.ERR_BAD_OPTION="ERR_BAD_OPTION",K.ECONNABORTED="ECONNABORTED",K.ETIMEDOUT="ETIMEDOUT",K.ERR_NETWORK="ERR_NETWORK",K.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",K.ERR_DEPRECATED="ERR_DEPRECATED",K.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",K.ERR_BAD_REQUEST="ERR_BAD_REQUEST",K.ERR_CANCELED="ERR_CANCELED",K.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",K.ERR_INVALID_URL="ERR_INVALID_URL";let Z=K;var Y=i(8357).hp;function X(e){return G.isPlainObject(e)||G.isArray(e)}function J(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,i){return e?e.concat(t).map(function(e,t){return e=J(e),!i&&t?"["+e+"]":e}).join(i?".":""):t}let ee=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)}),et=function(e,t,i){if(!G.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let a=(i=G.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!G.isUndefined(t[e])})).metaTokens,n=i.visitor||d,r=i.dots,o=i.indexes,l=(i.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(n))throw TypeError("visitor must be a function");function s(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(G.isBoolean(e))return e.toString();if(!l&&G.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Y.from(e):e}function d(e,i,n){let l=e;if(G.isReactNative(t)&&G.isReactNativeBlob(e))return t.append(Q(n,i,r),s(e)),!1;if(e&&!n&&"object"==typeof e)if(G.endsWith(i,"{}"))i=a?i:i.slice(0,-2),e=JSON.stringify(e);else{var d;if(G.isArray(e)&&(d=e,G.isArray(d)&&!d.some(X))||(G.isFileList(e)||G.endsWith(i,"[]"))&&(l=G.toArray(e)))return i=J(i),l.forEach(function(e,a){G.isUndefined(e)||null===e||t.append(!0===o?Q([i],a,r):null===o?i:i+"[]",s(e))}),!1}return!!X(e)||(t.append(Q(n,i,r),s(e)),!1)}let u=[],c=Object.assign(ee,{defaultVisitor:d,convertValue:s,isVisitable:X});if(!G.isObject(e))throw TypeError("data must be an object");return!function e(i,a){if(!G.isUndefined(i)){if(-1!==u.indexOf(i))throw Error("Circular reference detected in "+a.join("."));u.push(i),G.forEach(i,function(i,r){!0===(!(G.isUndefined(i)||null===i)&&n.call(t,i,G.isString(r)?r.trim():r,a,c))&&e(i,a?a.concat(r):[r])}),u.pop()}}(e),t};function ei(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ea(e,t){this._pairs=[],e&&et(e,this,t)}let en=ea.prototype;function er(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eo(e,t,i){let a;if(!t)return e;let n=i&&i.encode||er,r=G.isFunction(i)?{serialize:i}:i,o=r&&r.serialize;if(a=o?o(t,r):G.isURLSearchParams(t)?t.toString():new ea(t,r).toString(n)){let t=e.indexOf("#");
28-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}en.append=function(e,t){this._pairs.push([e,t])},en.toString=function(e){let t=e?function(t){return e.call(this,t,ei)}:ei;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class el{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(t){null!==t&&e(t)})}}let es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ed="undefined"!=typeof URLSearchParams?URLSearchParams:ea,eu="undefined"!=typeof FormData?FormData:null,ec="undefined"!=typeof Blob?Blob:null,ep="undefined"!=typeof window&&"undefined"!=typeof document,em="object"==typeof navigator&&navigator||void 0,ef=ep&&(!em||0>["ReactNative","NativeScript","NS"].indexOf(em.product)),eh="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eg=ep&&window.location.href||"http://localhost",ev={...r,isBrowser:!0,classes:{URLSearchParams:ed,FormData:eu,Blob:ec},protocols:["http","https","file","blob","url","data"]},ey=function(e){if(G.isFormData(e)&&G.isFunction(e.entries)){let t={};return G.forEachEntry(e,(e,i)=>{!function e(t,i,a,n){let r=t[n++];if("__proto__"===r)return!0;let o=Number.isFinite(+r),l=n>=t.length;return(r=!r&&G.isArray(a)?a.length:r,l)?G.hasOwnProp(a,r)?a[r]=[a[r],i]:a[r]=i:(a[r]&&G.isObject(a[r])||(a[r]=[]),e(t,i,a[r],n)&&G.isArray(a[r])&&(a[r]=function(e){let t,i,a={},n=Object.keys(e),r=n.length;for(t=0;t<r;t++)a[i=n[t]]=e[i];return a}(a[r]))),!o}(G.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),i,t,0)}),t}return null},eb={transitional:es,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let i,a=t.getContentType()||"",n=a.indexOf("application/json")>-1,r=G.isObject(e);if(r&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return n?JSON.stringify(ey(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){if(a.indexOf("application/x-www-form-urlencoded")>-1){var o,l;return(o=e,l=this.formSerializer,et(o,new ev.classes.URLSearchParams,{visitor:function(e,t,i,a){return ev.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...l})).toString()}if((i=G.isFileList(e))||a.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return et(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(r||n){t.setContentType("application/json",!1);var s=e;if(G.isString(s))try{return(0,JSON.parse)(s),G.trim(s)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(s)}return e}],transformResponse:[function(e){let t=this.transitional||eb.transitional,i=t&&t.forcedJSONParsing,a="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(i&&!this.responseType||a)){let i=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!i&&a){if("SyntaxError"===e.name)throw Z.from(e,Z.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ev.classes.FormData,Blob:ev.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{eb.headers[e]={}});let e_=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ex=Symbol("internals");function eA(e){return e&&String(e).trim().toLowerCase()}function eI(e){return!1===e||null==e?e:G.isArray(e)?e.map(eI):String(e)}
28function ew(e,t,i,a,n){if(G.isFunction(a))return a.call(this,t,i);if(n&&(t=i),G.isString(t)){if(G.isString(a))return -1!==t.indexOf(a);if(G.isRegExp(a))return a.test(t)}}class ek{constructor(e){e&&this.set(e)}set(e,t,i){let a=this;function n(e,t,i){let n=eA(t);if(!n)throw Error("header name must be a non-empty string");let r=G.findKey(a,n);r&&void 0!==a[r]&&!0!==i&&(void 0!==i||!1===a[r])||(a[r||t]=eI(e))}let r=(e,t)=>G.forEach(e,(e,i)=>n(e,i,t));if(G.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let a;if(G.isString(e)&&(e=e.trim())&&(a=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim())))r((e=>{let t,i,a,n={};return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),t=e.substring(0,a).trim().toLowerCase(),i=e.substring(a+1).trim(),!t||n[t]&&e_[t]||("set-cookie"===t?n[t]?n[t].push(i):n[t]=[i]:n[t]=n[t]?n[t]+", "+i:i)}),n})(e),t);else if(G.isObject(e)&&G.isIterable(e)){let i={},a,n;for(let t of e){if(!G.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[n=t[0]]=(a=i[n])?G.isArray(a)?[...a,t[1]]:[a,t[1]]:t[1]}r(i,t)}else null!=e&&n(t,e,i)}return this}get(e,t){if(e=eA(e)){let i=G.findKey(this,e);if(i){let e=this[i];if(!t)return e;if(!0===t){let t,i=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
28for(;t=a.exec(e);)i[t[1]]=t[2];return i}if(G.isFunction(t))return t.call(this,e,i);if(G.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eA(e)){let i=G.findKey(this,e);return!!(i&&void 0!==this[i]&&(!t||ew(this,this[i],i,t)))}return!1}delete(e,t){let i=this,a=!1;function n(e){if(e=eA(e)){let n=G.findKey(i,e);n&&(!t||ew(i,i[n],n,t))&&(delete i[n],a=!0)}}return G.isArray(e)?e.forEach(n):n(e),a}clear(e){let t=Object.keys(this),i=t.length,a=!1;for(;i--;){let n=t[i];(!e||ew(this,this[n],n,e,!0))&&(delete this[n],a=!0)}return a}normalize(e){let t=this,i={};return G.forEach(this,(a,n)=>{let r=G.findKey(i,n);if(r){t[r]=eI(a),delete t[n];return}let o=e?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i):String(n).trim();o!==n&&delete t[n],t[o]=eI(a),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return G.forEach(this,(i,a)=>{null!=i&&!1!==i&&(t[a]=e&&G.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let i=new this(e);return t.forEach(e=>i.set(e)),i}static accessor(e){let t=(this[ex]=this[ex]={accessors:{}}).accessors,i=this.prototype;function a(e){let a=eA(e);if(!t[a]){let n=G.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(i,t+n,{value:function(i,a,n){return this[t].call(this,e,i,a,n)},configurable:!0})}),t[a]=!0}}return G.isArray(e)?e.forEach(a):a(e),this}}function eS(e,t){let i=this||eb,a=t||i,n=ek.from(a.headers),r=a.data;return G.forEach(e,function(e){r=e.call(i,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function eT(e){return!!(e&&e.__CANCEL__)}ek.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(ek.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[i]=e}}}),G.freezeMethods(ek);class eC extends Z{constructor(e,t,i){super(null==e?"canceled":e,Z.ERR_CANCELED,t,i),this.name="CanceledError",this.__CANCEL__=!0}}function eE(e,t,i){let a=i.config.validateStatus;!i.status||!a||a(i.status)?e(i):t(new Z("Request failed with status code "+i.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}let eR=function(e,t){let i,a=Array(e=e||10),n=Array(e),r=0,o=0;return t=void 0!==t?t:1e3,function(l){let s=Date.now(),d=n[o];i||(i=s),a[r]=l,n[r]=s;let u=o,c=0;for(;u!==r;)c+=a[u++],u%=e;if((r=(r+1)%e)===o&&(o=(o+1)%e),s-i<t)return;let p=d&&s-d;return p?Math.round(1e3*c/p):void 0}},eP=function(e,t){let i,a,n=0,r=1e3/t,o=(t,r=Date.now())=>{n=r,i=null,a&&(clearTimeout(a),a=null),e(...t)};return[(...e)=>{let t=Date.now(),l=t-n;l>=r?o(e,t):(i=e,a||(a=setTimeout(()=>{a=null,o(i)},r-l)))},()=>i&&o(i)]},eO=(e,t,i=3)=>{let a=0,n=eR(50,250);return eP(i=>{let r=i.loaded,o=i.lengthComputable?i.total:void 0,l=r-a,s=n(l);a=r,e({loaded:r,total:o,progress:o?r/o:void 0,bytes:l,rate:s||void 0,estimated:s&&o&&r<=o?(o-r)/s:void 0,event:i,lengthComputable:null!=o,[t?"download":"upload"]:!0})},i)},eM=(e,t)=>{let i=null!=e;return[a=>t[0]({lengthComputable:i,total:e,loaded:a}),t[1]]},eN=e=>(...t)=>G.asap(()=>e(...t)),ej=ev.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,ev.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(ev.origin),ev.navigator&&/(msie|trident)/i.test(ev.navigator.userAgent)):()=>!0,eD=ev.hasStandardBrowserEnv?{write(e,t,i,a,n,r,o){if("undefined"==typeof document)return;let l=[`${e}=${encodeURIComponent(t)}`];G.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),G.isString(a)&&l.push(`path=${a}`),G.isString(n)&&l.push(`domain=${n}`),!0===r&&l.push("secure"),G.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function eF(e,t,i){let a=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(a||!1==i)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eL=e=>e instanceof ek?{...e}:e;function eB(e,t){t=t||{};let i={};function a(e,t,i,a){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:a},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function n(e,t,i,n){return G.isUndefined(t)?G.isUndefined(e)?void 0:a(void 0,e,i,n):a(e,t,i,n)}function r(e,t){if(!G.isUndefined(t))return a(void 0,t)}function o(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function l(i,n,r){return r in t?a(i,n):r in e?a(void 0,i):void 0}let s={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
28dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(e,t,i)=>n(eL(e),eL(t),i,!0)};return G.forEach(Object.keys({...e,...t}),function(a){if("__proto__"===a||"constructor"===a||"prototype"===a)return;let r=G.hasOwnProp(s,a)?s[a]:n,o=r(e[a],t[a],a);G.isUndefined(o)&&r!==l||(i[a]=o)}),i}let ez=e=>{let t=eB({},e),{data:i,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:r,headers:o,auth:l}=t;if(t.headers=o=ek.from(o),t.url=eo(eF(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(i)){if(ev.hasStandardBrowserEnv||ev.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(G.isFunction(i.getHeaders)){let e=i.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,i])=>{t.includes(e.toLowerCase())&&o.set(e,i)})}}if(ev.hasStandardBrowserEnv&&(a&&G.isFunction(a)&&(a=a(t)),a||!1!==a&&ej(t.url))){let e=n&&r&&eD.read(r);e&&o.set(n,e)}return t},eU="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,i){let a,n,r,o,l,s=ez(e),d=s.data,u=ek.from(s.headers).normalize(),{responseType:c,onUploadProgress:p,onDownloadProgress:m}=s;function f(){o&&o(),l&&l(),s.cancelToken&&s.cancelToken.unsubscribe(a),s.signal&&s.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;let a=ek.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());eE(function(e){t(e),f()},function(e){i(e),f()},{data:c&&"text"!==c&&"json"!==c?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:a,config:e,request:h}),h=null}h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(i(new Z("Request aborted",Z.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){let a=new Z(t&&t.message?t.message:"Network Error",Z.ERR_NETWORK,e,h);a.event=t||null,i(a),h=null},h.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",a=s.transitional||es;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),i(new Z(t,a.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,h)),h=null},void 0===d&&u.setContentType(null),"setRequestHeader"in h&&G.forEach(u.toJSON(),function(e,t){h.setRequestHeader(t,e)}),G.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&"json"!==c&&(h.responseType=s.responseType),m&&([r,l]=eO(m,!0),h.addEventListener("progress",r)),p&&h.upload&&([n,o]=eO(p),h.upload.addEventListener("progress",n),h.upload.addEventListener("loadend",o)),(s.cancelToken||s.signal)&&(a=t=>{h&&(i(!t||t.type?new eC(null,e,h):t),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(a),s.signal&&(s.signal.aborted?a():s.signal.addEventListener("abort",a)));let v=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);if(v&&-1===ev.protocols.indexOf(v))return void i(new Z("Unsupported protocol "+v+":",Z.ERR_BAD_REQUEST,e));h.send(d||null)})},eq=function*(e,t){let i,a=e.byteLength;if(!t||a<t)return void(yield e);let n=0;for(;n<a;)i=n+t,yield e.slice(n,i),n=i},e$=async function*(e,t){for await(let i of eH(e))yield*eq(i,t)},eH=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},eV=(e,t,i,a)=>{let n,r=e$(e,t),o=0,l=e=>{!n&&(n=!0,a&&a(e))};return new ReadableStream({async pull(e){try{let{done:t,value:a}=await r.next();if(t){l(),e.close();return}let n=a.byteLength;if(i){let e=o+=n;i(e)}e.enqueue(new Uint8Array(a))}catch(e){throw l(e),e}},cancel:e=>(l(e),r.return())},{highWaterMark:2})},{isFunction:eW}=G,eG=(({Request:e,Response:t})=>({Request:e,Response:t}))(G.global),{ReadableStream:eK,TextEncoder:eZ}=G.global,eY=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eX=e=>{let t,{fetch:i,Request:a,Response:n}=e=G.merge.call({skipUndefined:!0},eG,e),r=i?eW(i):"function"==typeof fetch,o=eW(a),l=eW(n);if(!r)return!1;let s=r&&eW(eK),d=r&&("function"==typeof eZ?(t=new eZ,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),u=o&&s&&eY(()=>{let e=!1,t=new a(ev.origin,{body:new eK,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),c=l&&s&&eY(()=>G.isReadableStream(new n("").body)),p={stream:c&&(e=>e.body)};
28r&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,i)=>{let a=t&&t[e];if(a)return a.call(t);throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,i)})});let m=async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){let t=new a(ev.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e))?(await d(e)).byteLength:void 0},f=async(e,t)=>{let i=G.toFiniteNumber(e.getContentLength());return null==i?m(t):i};return async e=>{let t,{url:r,method:l,data:s,signal:d,cancelToken:m,timeout:h,onDownloadProgress:g,onUploadProgress:v,responseType:y,headers:b,withCredentials:_="same-origin",fetchOptions:x}=ez(e),A=i||fetch;y=y?(y+"").toLowerCase():"text";let I=((e,t)=>{let{length:i}=e=e?e.filter(Boolean):[];if(t||i){let i,a=new AbortController,n=function(e){if(!i){i=!0,o();let t=e instanceof Error?e:this.reason;a.abort(t instanceof Z?t:new eC(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,n(new Z(`timeout of ${t}ms exceeded`,Z.ETIMEDOUT))},t),o=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));let{signal:l}=a;return l.unsubscribe=()=>G.asap(o),l}})([d,m&&m.toAbortSignal()],h),w=null,k=I&&I.unsubscribe&&(()=>{I.unsubscribe()});try{if(v&&u&&"get"!==l&&"head"!==l&&0!==(t=await f(b,s))){let e,i=new a(r,{method:"POST",body:s,duplex:"half"});if(G.isFormData(s)&&(e=i.headers.get("content-type"))&&b.setContentType(e),i.body){let[e,a]=eM(t,eO(eN(v)));s=eV(i.body,65536,e,a)}}G.isString(_)||(_=_?"include":"omit");let i=o&&"credentials"in a.prototype,d={...x,signal:I,method:l.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:i?_:void 0};w=o&&new a(r,d);let m=await (o?A(w,x):A(r,d)),h=c&&("stream"===y||"response"===y);if(c&&(g||h&&k)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});let t=G.toFiniteNumber(m.headers.get("content-length")),[i,a]=g&&eM(t,eO(eN(g),!0))||[];m=new n(eV(m.body,65536,i,()=>{a&&a(),k&&k()}),e)}y=y||"text";let S=await p[G.findKey(p,y)||"text"](m,e);return!h&&k&&k(),await new Promise((t,i)=>{eE(t,i,{data:S,headers:ek.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:w})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,w,t&&t.response),{cause:t.cause||t});throw Z.from(t,t&&t.code,e,w,t&&t.response)}}},eJ=new Map,eQ=e=>{let t=e&&e.env||{},{fetch:i,Request:a,Response:n}=t,r=[a,n,i],o=r.length,l,s,d=eJ;for(;o--;)l=r[o],void 0===(s=d.get(l))&&d.set(l,s=o?new Map:eX(t)),d=s;return s};eQ();let e0={http:null,xhr:eU,fetch:{get:eQ}};G.forEach(e0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e1=e=>`- ${e}`,e2=e=>G.isFunction(e)||null===e||!1===e,e5={getAdapter:function(e,t){let i,a,{length:n}=e=G.isArray(e)?e:[e],r={};for(let o=0;o<n;o++){let n;if(a=i=e[o],!e2(i)&&void 0===(a=e0[(n=String(i)).toLowerCase()]))throw new Z(`Unknown adapter '${n}'`);
28if(a&&(G.isFunction(a)||(a=a.get(t))))break;r[n||"#"+o]=a}if(!a){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Z("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(e1).join("\n"):" "+e1(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a}};function e3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eC(null,e)}function e4(e){return e3(e),e.headers=ek.from(e.headers),e.data=eS.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e5.getAdapter(e.adapter||eb.adapter,e)(e).then(function(t){return e3(e),t.data=eS.call(e,e.transformResponse,t),t.headers=ek.from(t.headers),t},function(t){return!eT(t)&&(e3(e),t&&t.response&&(t.response.data=eS.call(e,e.transformResponse,t.response),t.response.headers=ek.from(t.response.headers))),Promise.reject(t)})}let e9="1.13.6",e6={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e6[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});let e8={};e6.transitional=function(e,t,i){function a(e,t){return"[Axios v"+e9+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return(i,n,r)=>{if(!1===e)throw new Z(a(n," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!e8[n]&&(e8[n]=!0,console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,r)}},e6.spelling=function(e){return(t,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};let e7={assertOptions:function(e,t,i){if("object"!=typeof e)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);let a=Object.keys(e),n=a.length;for(;n-- >0;){let r=a[n],o=t[r];if(o){let t=e[r],i=void 0===t||o(t,r,e);if(!0!==i)throw new Z("option "+r+" must be "+i,Z.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new Z("Unknown option "+r,Z.ERR_BAD_OPTION)}},validators:e6},te=e7.validators;class tt{constructor(e){this.defaults=e||{},this.interceptors={request:new el,response:new el}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let i=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?i&&!String(e.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+i):e.stack=i}catch(e){}}throw e}}_request(e,t){let i,a;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:r,headers:o}=t=eB(this.defaults,t);void 0!==n&&e7.assertOptions(n,{silentJSONParsing:te.transitional(te.boolean),forcedJSONParsing:te.transitional(te.boolean),clarifyTimeoutError:te.transitional(te.boolean),legacyInterceptorReqResOrdering:te.transitional(te.boolean)},!1),null!=r&&(G.isFunction(r)?t.paramsSerializer={serialize:r}:e7.assertOptions(r,{encode:te.function,serialize:te.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),e7.assertOptions(t,{baseUrl:te.spelling("baseURL"),withXsrfToken:te.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ek.concat(l,o);let s=[],d=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;d=d&&e.synchronous;let i=t.transitional||es;i&&i.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let c=0;if(!d){let e=[e4.bind(this),void 0];for(e.unshift(...s),e.push(...u),a=e.length,i=Promise.resolve(t);c<a;)i=i.then(e[c++],e[c++]);return i}a=s.length;let p=t;for(;c<a;){let e=s[c++],t=s[c++];try{p=e(p)}catch(e){t.call(this,e);break}}try{i=e4.call(this,p)}catch(e){return Promise.reject(e)}for(c=0,a=u.length;c<a;)i=i.then(u[c++],u[c++]);return i}getUri(e){return eo(eF((e=eB(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(e){tt.prototype[e]=function(t,i){return this.request(eB(i||{},{method:e,url:t,data:(i||{}).data}))}}),G.forEach(["post","put","patch"],function(e){function t(t){return function(i,a,n){return this.request(eB(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}tt.prototype[e]=t(),tt.prototype[e+"Form"]=t(!0)});class ti{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let i=this;this.promise.then(e=>{if(!i._listeners)return;let t=i._listeners.length;for(;t-- >0;)i._listeners[t](e);i._listeners=null}),this.promise.then=e=>{let t,a=new Promise(e=>{i.subscribe(e),t=e}).then(e);return a.cancel=function(){i.unsubscribe(t)},a},e(function(e,a,n){i.reason||(i.reason=new eC(e,a,n),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
28subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ti(function(t){e=t}),cancel:e}}}let ta={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ta).forEach(([e,t])=>{ta[t]=e});let tn=function e(t){let i=new tt(t),a=o(tt.prototype.request,i);return G.extend(a,tt.prototype,i,{allOwnKeys:!0}),G.extend(a,i,null,{allOwnKeys:!0}),a.create=function(i){return e(eB(t,i))},a}(eb);tn.Axios=tt,tn.CanceledError=eC,tn.CancelToken=ti,tn.isCancel=eT,tn.VERSION=e9,tn.toFormData=et,tn.AxiosError=Z,tn.Cancel=tn.CanceledError,tn.all=function(e){return Promise.all(e)},tn.spread=function(e){return function(t){return e.apply(null,t)}},tn.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},tn.mergeConfig=eB,tn.AxiosHeaders=ek,tn.formToJSON=e=>ey(G.isHTMLForm(e)?new FormData(e):e),tn.getAdapter=e5.getAdapter,tn.HttpStatusCode=ta,tn.default=tn;let tr=tn},5718:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(5162).createContext(null)},5742:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3"}),"Groups")},5778:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2zm-9-2h10V8H12zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"AccountBalanceWallet")},5794:(e,t,i)=>{"use strict";i.d(t,{A:()=>q});var a=i(9418),n=i(7684),r=i(52);let o=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(i=>{e[i]=t}),e),{}),i=e=>Object.keys(e).reduce((i,a)=>t[a]?(0,r.A)(i,t[a](e)):i,{});return i.propTypes={},i.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),i};var l=i(1932);function s(e){return"number"!=typeof e?e:`${e}px solid`}function d(e,t){return(0,n.Ay)({prop:e,themeKey:"borders",transform:t})}let u=d("border",s),c=d("borderTop",s),p=d("borderRight",s),m=d("borderBottom",s),f=d("borderLeft",s),h=d("borderColor"),g=d("borderTopColor"),v=d("borderRightColor"),y=d("borderBottomColor"),b=d("borderLeftColor"),_=d("outline",s),x=d("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,a.MA)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.NI)(e,e.borderRadius,e=>({borderRadius:(0,a._W)(t,e)}))}return null};A.propTypes={},A.filterProps=["borderRadius"],o(u,c,p,m,f,h,g,v,y,b,A,_,x);let I=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,a.MA)(e.theme,"spacing",8,"gap");return(0,l.NI)(e,e.gap,e=>({gap:(0,a._W)(t,e)}))}return null};I.propTypes={},I.filterProps=["gap"];let w=e=>
28{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,a.MA)(e.theme,"spacing",8,"columnGap");return(0,l.NI)(e,e.columnGap,e=>({columnGap:(0,a._W)(t,e)}))}return null};w.propTypes={},w.filterProps=["columnGap"];let k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,a.MA)(e.theme,"spacing",8,"rowGap");return(0,l.NI)(e,e.rowGap,e=>({rowGap:(0,a._W)(t,e)}))}return null};k.propTypes={},k.filterProps=["rowGap"];let S=(0,n.Ay)({prop:"gridColumn"}),T=(0,n.Ay)({prop:"gridRow"}),C=(0,n.Ay)({prop:"gridAutoFlow"}),E=(0,n.Ay)({prop:"gridAutoColumns"}),R=(0,n.Ay)({prop:"gridAutoRows"}),P=(0,n.Ay)({prop:"gridTemplateColumns"}),O=(0,n.Ay)({prop:"gridTemplateRows"});function M(e,t){return"grey"===t?t:e}o(I,w,k,S,T,C,E,R,P,O,(0,n.Ay)({prop:"gridTemplateAreas"}),(0,n.Ay)({prop:"gridArea"}));let N=(0,n.Ay)({prop:"color",themeKey:"palette",transform:M});function j(e){return e<=1&&0!==e?`${100*e}%`:e}o(N,(0,n.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:M}),(0,n.Ay)({prop:"backgroundColor",themeKey:"palette",transform:M}));let D=(0,n.Ay)({prop:"width",transform:j}),F=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.NI)(e,e.maxWidth,t=>{let i=e.theme?.breakpoints?.values?.[t]||l.zu[t];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:j(t)}}):null;F.filterProps=["maxWidth"];let L=(0,n.Ay)({prop:"minWidth",transform:j}),B=(0,n.Ay)({prop:"height",transform:j}),z=(0,n.Ay)({prop:"maxHeight",transform:j}),U=(0,n.Ay)({prop:"minHeight",transform:j});(0,n.Ay)({prop:"size",cssProperty:"width",transform:j}),(0,n.Ay)({prop:"size",cssProperty:"height",transform:j}),o(D,F,L,B,z,U,(0,n.Ay)({prop:"boxSizing"}));let q={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:s},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:M},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:M},backgroundColor:{themeKey:"palette",transform:M},p:{style:a.Ms},pt:{style:a.Ms},pr:{style:a.Ms},pb:{style:a.Ms},pl:{style:a.Ms},px:{style:a.Ms},py:{style:a.Ms},padding:{style:a.Ms},paddingTop:{style:a.Ms},paddingRight:{style:a.Ms},paddingBottom:{style:a.Ms},paddingLeft:{style:a.Ms},paddingX:{style:a.Ms},paddingY:{style:a.Ms},paddingInline:{style:a.Ms},paddingInlineStart:{style:a.Ms},paddingInlineEnd:{style:a.Ms},paddingBlock:{style:a.Ms},paddingBlockStart:{style:a.Ms},paddingBlockEnd:{style:a.Ms},m:{style:a.Lc},mt:{style:a.Lc},mr:{style:a.Lc},mb:{style:a.Lc},ml:{style:a.Lc},mx:{style:a.Lc},my:{style:a.Lc},margin:{style:a.Lc},marginTop:{style:a.Lc},marginRight:{style:a.Lc},marginBottom:{style:a.Lc},marginLeft:{style:a.Lc},marginX:{style:a.Lc},marginY:{style:a.Lc},marginInline:{style:a.Lc},marginInlineStart:{style:a.Lc},marginInlineEnd:{style:a.Lc},marginBlock:{style:a.Lc},marginBlockStart:{style:a.Lc},marginBlockEnd:{style:a.Lc},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:I},rowGap:{style:k},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:j},maxWidth:{style:F},minWidth:{transform:j},height:{transform:j},maxHeight:{transform:j},minHeight:{transform:j},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},5805:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.
2816-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"}),"VerifiedUser")},5834:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M1 11h4v11H1zm15-7.75C16.65 2.49 17.66 2 18.7 2 20.55 2 22 3.45 22 5.3c0 2.27-2.91 4.9-6 7.7-3.09-2.81-6-5.44-6-7.7C10 3.45 11.45 2 13.3 2c1.04 0 2.05.49 2.7 1.25M20 17h-7l-2.09-.73.33-.94L13 16h2.82c.65 0 1.18-.53 1.18-1.18 0-.49-.31-.93-.77-1.11L8.97 11H7v9.02L14 22l8.01-3c-.01-1.1-.9-2-2.01-2"}),"VolunteerActivism")},5858:(e,t,i)=>{"use strict";i.d(t,{A:()=>function e(t,i,o={clone:!0}){let l=o.clone?{...t}:t;return r(t)&&r(i)&&Object.keys(i).forEach(s=>{a.isValidElement(i[s])||(0,n.Hy)(i[s])?l[s]=i[s]:r(i[s])&&Object.prototype.hasOwnProperty.call(t,s)&&r(t[s])?l[s]=e(t[s],i[s],o):o.clone?l[s]=r(i[s])?function e(t){if(a.isValidElement(t)||(0,n.Hy)(t)||!r(t))return t;let i={};return Object.keys(t).forEach(a=>{i[a]=e(t[a])}),i}(i[s]):i[s]:l[s]=i[s]}),l},Q:()=>r});var a=i(5162),n=i(7672);function r(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},5897:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m22 3-1.67 1.67L18.67 3 17 4.67 15.33 3l-1.66 1.67L12 3l-1.67 1.67L8.67 3 7 4.67 5.33 3 3.67 4.67 2 3v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zM11 19H4v-6h7zm9 0h-7v-2h7zm0-4h-7v-2h7zm0-4H4V8h16z"}),"Newspaper")},5952:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=(0,i(4488).Ay)()},5975:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),i=t[0],a=t[1];return(i+a)*3/4-a},t.toByteArray=function(e){var t,i,r=s(e),o=r[0],l=r[1],d=new n((o+l)*3/4-l),u=0,c=l>0?o-4:o;for(i=0;i<c;i+=4)t=a[e.charCodeAt(i)]<<18|a[e.charCodeAt(i+1)]<<12|a[e.charCodeAt(i+2)]<<6|a[e.charCodeAt(i+3)],d[u++]=t>>16&255,d[u++]=t>>8&255,d[u++]=255&t;return 2===l&&(t=a[e.charCodeAt(i)]<<2|a[e.charCodeAt(i+1)]>>4,d[u++]=255&t),1===l&&(t=a[e.charCodeAt(i)]<<10|a[e.charCodeAt(i+1)]<<4|a[e.charCodeAt(i+2)]>>2,d[u++]=t>>8&255,d[u++]=255&t),d},t.fromByteArray=function(e){for(var t,a=e.length,n=a%3,r=[],o=0,l=a-n;o<l;o+=16383)r.push(function(e,t,a){for(var n,r=[],o=t;o<a;o+=3)n=(e[o]<<16&0xff0000)+(e[o+1]<<8&65280)+(255&e[o+2]),r.push(i[n>>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return r.join("")}(e,o,o+16383>l?l:o+16383));return 1===n?r.push(i[(t=e[a-1])>>2]+i[t<<4&63]+"=="):2===n&&r.push(i[(t=(e[a-2]<<8)+e[a-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),r.join("")};for(var i=[],a=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=r.length;o<l;++o)i[o]=r[o],a[r.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=t);var a=i===t?0:4-i%4;return[i,a]}a[45]=62,a[95]=63},6001:(e,t,i)=>{"use strict";function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t=>{let[,i]=t;return i&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("string"!=typeof e.main)return!1;for(let i of t)if(!e.hasOwnProperty(i)||"string"!=typeof e[i])return!1;return!0}(i,e)}}i.d(t,{A:()=>a})},6079:(e,t,i)=>{"use strict";i.d(t,{i:()=>l,s:()=>o});var a,n=i(5162),r=!!(a||(a=i.t(n,2))).useInsertionEffect&&(a||(a=i.t(n,2))).useInsertionEffect,o=r||function(e){return e()},l=r||n.useLayoutEffect},6283:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code")},6330:(e,t,i)=>{"use strict";function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}i.d(t,{A:()=>a})},6348:(e,t,i)=>{"use strict";function a(e,t,i){let a={};for(let n in e){let r=e[n],o="",l=!0;for(let e=0;e<r.length;e+=1){let a=r[e];a&&(o+=(!0===l?"":" ")+t(a),l=!1,i&&i[a]&&(o+=" "+i[a]))}a[n]=o}return a}i.d(t,{A:()=>a})},6434:(e,t,i)=>{"use strict";function a(e){return Math.round(10*(e<1?5.11916*e**2:4.5*Math.log(e+1)+2))/1e3}i.d(t,{A:()=>a})},6435:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"}),"Construction")},6439:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M16.48 10.41c-.39.39-1.04.39-1.43 0l-4.47-4.46-7.05 7.04-.66-.63c-1.17-1.17-1.17-3.07 0-4.24l4.24-4.24c1.17-1.17 3.07-1.17 4.24 0L16.48 9c.39.39.39 1.02 0 1.41m.7-2.12c.78.78.78 2.05 0 2.83-1.27 1.27-2.61.22-2.83 0l-3.76-3.76-5.57 5.57c-.39.39-.39 1.02 0 1.41s1.02.39 1.42 0l4.62-4.62.71.71-4.62 4.62c-.39.39-.39 1.02 0 1.41s1.02.39 1.42 0l4.62-4.62.71.71-4.62 4.62c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l4.62-4.62.71.71-4.62 4.62c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l8.32-8.34c1.17-1.17 1.17-3.07 0-4.24l-4.24-4.24c-1.15-1.15-3.01-1.17-4.18-.06z"}),"Handshake")},6454:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(5162);function n(e,t){return a.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)}},6471:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send")},6496:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});
28var a=i(3282),n=i(9680),r=i(7578),o=i(4930);function l(e){let t=(0,a.tT)(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}let s=function({styles:e,themeId:t,defaultTheme:i={}}){let a=(0,r.A)(i),s=t&&a[t]||a,d="function"==typeof e?e(s):e;return s.modularCssLayers&&(d=Array.isArray(d)?d.map(e=>"function"==typeof e?l(e(s)):l(e)):l(d)),(0,o.jsx)(n.A,{styles:d})}},6515:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(5162).createContext({})},6536:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(8540),n=i(6672),r=i(9770),o=i(3902);function l(e,t){let{className:i,elementType:l,ownerState:s,externalForwardedProps:d,internalForwardedProps:u,shouldForwardComponentProp:c=!1,...p}=t,{component:m,slots:f={[e]:void 0},slotProps:h={[e]:void 0},...g}=d,v=f[e]||l,y=(0,r.A)(h[e],s),{props:{component:b,..._},internalRef:x}=(0,o.A)({className:i,...p,externalForwardedProps:"root"===e?g:void 0,externalSlotProps:y}),A=(0,a.A)(x,null==y?void 0:y.ref,t.ref),I="root"===e?b||m:b,w=(0,n.A)(v,{..."root"===e&&!m&&!f[e]&&u,..."root"!==e&&!f[e]&&u,..._,...I&&!c&&{as:I},...I&&c&&{component:I},ref:A},s);return[v,w]}},6570:(e,t,i)=>{"use strict";i.d(t,{A:()=>f});var a=i(5162),n=i(3638),r=i(6348),o=i(2298),l=i(1894),s=i(9644),d=i(8398),u=i(4930);let c=(0,o.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.absolute&&t.absolute,t[i.variant],i.light&&t.light,"vertical"===i.orientation&&t.vertical,i.flexItem&&t.flexItem,i.children&&t.withChildren,i.children&&"vertical"===i.orientation&&t.withChildrenVertical,"right"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignRight,"left"===i.textAlign&&"vertical"!==i.orientation&&t.textAlignLeft]}})((0,l.A)(e=>{let{theme:t}=e;return{margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.alpha((t.vars||t).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:e=>{let{ownerState:t}=e;return!!t.children},style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:e=>{let{ownerState:t}=e;return t.children&&"vertical"!==t.orientation},style:{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"vertical"===t.orientation&&t.children},style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"right"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:e=>{let{ownerState:t}=e;return"left"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}})),p=(0,o.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.wrapper,"vertical"===i.orientation&&t.wrapperVertical]}})((0,l.A)(e=>{let{theme:t}=e;return{display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)"),whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")}}]}})),m=a.forwardRef(function(e,t){let i=(0,s.b)({props:e,name:"MuiDivider"}),{absolute:a=!1,children:o,className:l,orientation:m="horizontal",component:f=o||"vertical"===m?"div":"hr",flexItem:h=!1,light:g=!1,role:v="hr"!==f?"separator":void 0,textAlign:y="center",variant:b="fullWidth",..._}=i,x={...i,absolute:a,component:f,flexItem:h,light:g,orientation:m,role:v,textAlign:y,variant:b},A=(e=>{let{absolute:t,children:i,classes:a,flexItem:n,light:o,orientation:l,textAlign:s,variant:u}=e;return(0,r.A)({root:["root",t&&"absolute",u,o&&"light","vertical"===l&&"vertical",n&&"flexItem",i&&"withChildren",i&&"vertical"===l&&"withChildrenVertical","right"===s&&"vertical"!==l&&"textAlignRight","left"===s&&"vertical"!==l&&"textAlignLeft"],wrapper:["wrapper","vertical"===l&&"wrapperVertical"]},d.K,a)})(x);return(0,u.jsx)(c,{as:f,className:(0,n.A)(A.root,l),role:v,ref:t,ownerState:x,"aria-orientation":"separator"===v&&("hr"!==f||"vertical"===m)?m:void 0,..._,children:o?(0,u.jsx)(p,{className:A.wrapper,ownerState:x,children:o}):null})});m&&(m.muiSkipListHighlight=!0);let f=m},6597:(e,t,i)=>{"use strict";i.d(t,{X:()=>l,k:()=>s});var a=i(5032),n=i(3541),r=i(8636),o=i(7731),l=class extends o.k{#b;#_;#x;#n;#l;#m;#A;constructor(e){super(),this.#A=!1,this.#m=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#x=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#b=u(this.options),this.state=e.state??this.#b,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){if(this.options={...this.#m,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=u(this.options);void 0!==e.data&&(this.setState(d(e.data,e.dataUpdatedAt)),this.#b=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#x.remove(this)}setData(e,t){let i=(0,a.pl)(this.state.data,e,this.options);return this.#s({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e,t){this.#s({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(a.lQ).catch(a.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#b)}isActive(){return this.observers.some(e=>!1!==(0,a.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===a.hT||this.state.dataUpdateCount+this.state.errorUpdate
28Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,a.d2)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,a.j3)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#x.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#l&&(this.#A?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#x.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&this.#l?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#A=!0,i.signal)})},o=()=>{let e=(0,a.ZM)(this.options,t),i=(()=>{let e={client:this.#n,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return(this.#A=!1,this.options.persister)?this.options.persister(e,i,this):e(i)},l=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:o};return n(e),e})();this.options.behavior?.onFetch(l,this),this.#_=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#s({type:"fetch",meta:l.fetchOptions?.meta}),this.#l=(0,r.II)({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:e=>{e instanceof r.cc&&e.revert&&this.setState({...this.#_,fetchStatus:"idle"}),i.abort()},onFail:(e,t)=>{this.#s({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{let e=await this.#l.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#x.config.onSuccess?.(e,this),this.#x.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof r.cc){if(e.silent)return this.#l.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#s({type:"error",error:e}),this.#x.config.onError?.(e,this),this.#x.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#s(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...s(t.data,this.options),fetchMeta:e.meta??null};case"success":let i={...t,...d(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#_=e.manual?i:void 0,i;case"error":let a=e.error;return{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),n.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#x.notify({query:this,type:"updated",action:e})})}};function s(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,r.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function d(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function u(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,i=void 0!==t,a=i?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdate
28Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}},6613:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2m0 14H4v-6h16zm0-10H4V6h16z"}),"CreditCard")},6635:(e,t,i)=>{"use strict";i.d(t,{A:()=>f});var a=i(5162),n=i(3638),r=i(6348),o=i(2298),l=i(9644),s=i(6515),d=i(9562),u=i(550);function c(e){return(0,u.Ay)("MuiList",e)}(0,d.A)("MuiList",["root","padding","dense","subheader"]);var p=i(4930);let m=(0,o.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,!i.disablePadding&&t.padding,i.dense&&t.dense,i.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:e=>{let{ownerState:t}=e;return!t.disablePadding},style:{paddingTop:8,paddingBottom:8}},{props:e=>{let{ownerState:t}=e;return t.subheader},style:{paddingTop:0}}]}),f=a.forwardRef(function(e,t){let i=(0,l.b)({props:e,name:"MuiList"}),{children:o,className:d,component:u="ul",dense:f=!1,disablePadding:h=!1,subheader:g,...v}=i,y=a.useMemo(()=>({dense:f}),[f]),b={...i,component:u,dense:f,disablePadding:h},_=(e=>{let{classes:t,disablePadding:i,dense:a,subheader:n}=e;return(0,r.A)({root:["root",!i&&"padding",a&&"dense",n&&"subheader"]},c,t)})(b);return(0,p.jsx)(s.A.Provider,{value:y,children:(0,p.jsxs)(m,{as:u,className:(0,n.A)(_.root,d),ref:t,ownerState:b,...v,children:[g,o]})})})},6636:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>g});var a=i(1287),n=i(7121),r=i(5162),o=i(1352);let l={disabled:!1};var s=i(5718),d="unmounted",u="exited",c="entering",p="entered",m="exiting",f=function(e){function t(t,i){var a,n=e.call(this,t,i)||this,r=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?r?(a=u,n.appearStatus=c):a=p:a=t.unmountOnExit||t.mountOnEnter?d:u,n.state={status:a},n.nextCallback=null,n}(0,n.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===d?{status:u}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var i=this.state.status;this.props.in?i!==c&&i!==p&&(t=c):(i===c||i===p)&&(t=m)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,i,a=this.props.timeout;return e=t=i=a,null!=a&&"number"!=typeof a&&(e=a.exit,t=a.enter,i=void 0!==a.appear?a.appear:t),{exit:e,enter:t,appear:i}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===c){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);i&&i.scrollTop}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:d})},i.performEnter=function(e){var t=this,i=this.props.enter,a=this.context?this.context.isMounting:e,n=this.props.nodeRef?[a]:[o.findDOMNode(this),a],r=n[0],s=n[1],d=this.getTimeouts(),u=a?d.appear:d.enter;if(!e&&!i||l.disabled)return void this.safeSetState({status:p},function(){t.props.onEntered(r)});this.props.onEnter(r,s),this.safeSetState({status:c},function(){t.props.onEntering(r,s),t.onTransitionEnd(u,function(){t.safeSetState({status:p},function(){t.props.onEntered(r,s)})})})},i.performExit=function(){var e=this,t=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:o.findDOMNode(this);if(!t||l.disabled)return void this.safeSetState({status:u},function(){e.props.onExited(a)});this.props.onExit(a),this.safeSetState({status:m},function(){e.props.onExiting(a),e.onTransitionEnd(i.exit,function(){e.safeSetState({status:u},function(){e.props.onExited(a)})})})},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,i=!0;
28return this.nextCallback=function(a){i&&(i=!1,t.nextCallback=null,e(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var i=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),a=null==e&&!this.props.addEndListener;if(!i||a)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var n=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],r=n[0],l=n[1];this.props.addEndListener(r,l)}null!=e&&setTimeout(this.nextCallback,e)},i.render=function(){var e=this.state.status;if(e===d)return null;var t=this.props,i=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,a.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(s.A.Provider,{value:null},"function"==typeof i?i(e,n):r.cloneElement(r.Children.only(i),n))},t}(r.Component);function h(){}f.contextType=s.A,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED=d,f.EXITED=u,f.ENTERING=c,f.ENTERED=p,f.EXITING=m;let g=f},6640:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(5858),n=i(5794);function r(e){let t,{sx:i,...r}=e,{systemProps:o,otherProps:l}=(e=>{let t={systemProps:{},otherProps:{}},i=e?.theme?.unstable_sxConfig??n.A;return Object.keys(e).forEach(a=>{i[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t})(r);return t=Array.isArray(i)?[o,...i]:"function"==typeof i?(...e)=>{let t=i(...e);return(0,a.Q)(t)?{...o,...t}:o}:{...o,...i},{...l,sx:t}}},6641:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2M5 8V7h2v3.82C5.84 10.4 5 9.3 5 8m14 0c0 1.3-.84 2.4-2 2.82V7h2z"}),"EmojiEvents")},6672:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(66);let n=function(e,t,i){return void 0===e||(0,a.A)(e)?t:{...t,ownerState:{...t.ownerState,...i}}}},6739:(e,t,i)=>{"use strict";function a(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}i.d(t,{_:()=>a})},6876:(e,t,i)=>{"use strict";function a(){let e,t,i=new Promise((i,a)=>{e=i,t=a});function a(e){Object.assign(i,e),delete i.resolve,delete i.reject}return i.status="pending",i.catch(()=>{}),i.resolve=t=>{a({status:"fulfilled",value:t}),e(t)},i.reject=e=>{a({status:"rejected",reason:e}),t(e)},i}i.d(t,{T:()=>a})},6950:(e,t,i)=>{"use strict";i.d(t,{A:()=>q});var a=i(5162),n=i(3638),r=i(6348),o=i(2332),l=i(2298),s=i(9644),d=i(5617),u=i(299),c=i(3808);class p{static create(){return new p}static use(){let e=(0,c.A)(p.create).current,[t,i]=a.useState(!1);return e.shouldMount=t,e.setShouldMount=i,a.useEffect(e.mountEffect,[t]),e}mount(){return this.mounted||(this.mounted=function(){let e,t,i=new Promise((i,a)=>{e=i,t=a});return i.resolve=e,i.reject=t,i}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];this.mount().then(()=>{var e;return null==(e=this.ref.current)?void 0:e.start(...t)})}stop(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];this.mount().then(()=>{var e;return null==(e=this.ref.current)?void 0:e.stop(...t)})}pulsate(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];this.mount().then(()=>{var e;return null==(e=this.ref.current)?void 0:e.pulsate(...t)})}constructor(){this.mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())},this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}}var m=i(6739),f=i(1287),h=i(6330),g=i(7121),v=i(5718);function y(e,t){var i=Object.create(null);return e&&a.Children.map(e,function(e){return e}
28).forEach(function(e){i[e.key]=t&&(0,a.isValidElement)(e)?t(e):e}),i}function b(e,t,i){return null!=i[t]?i[t]:e.props[t]}var _=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},x=function(e){function t(t,i){var a=e.call(this,t,i)||this,n=a.handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(a));return a.state={contextValue:{isMounting:!0},handleExited:n,firstRender:!0},a}(0,g.A)(t,e);var i=t.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var i,n,r=t.children,o=t.handleExited;return{children:t.firstRender?y(e.children,function(t){return(0,a.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:b(t,"appear",e),enter:b(t,"enter",e),exit:b(t,"exit",e)})}):(Object.keys(n=function(e,t){function i(i){return i in t?t[i]:e[i]}e=e||{},t=t||{};var a,n=Object.create(null),r=[];for(var o in e)o in t?r.length&&(n[o]=r,r=[]):r.push(o);var l={};for(var s in t){if(n[s])for(a=0;a<n[s].length;a++){var d=n[s][a];l[n[s][a]]=i(d)}l[s]=i(s)}for(a=0;a<r.length;a++)l[r[a]]=i(r[a]);return l}(r,i=y(e.children))).forEach(function(t){var l=n[t];if((0,a.isValidElement)(l)){var s=t in r,d=t in i,u=r[t],c=(0,a.isValidElement)(u)&&!u.props.in;d&&(!s||c)?n[t]=(0,a.cloneElement)(l,{onExited:o.bind(null,l),in:!0,exit:b(l,"exit",e),enter:b(l,"enter",e)}):d||!s||c?d&&s&&(0,a.isValidElement)(u)&&(n[t]=(0,a.cloneElement)(l,{onExited:o.bind(null,l),in:u.props.in,exit:b(l,"exit",e),enter:b(l,"enter",e)})):n[t]=(0,a.cloneElement)(l,{in:!1})}}),n),firstRender:!1}},i.handleExited=function(e,t){var i=y(this.props.children);e.key in i||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var i=(0,h.A)({},t.children);return delete i[e.key],{children:i}}))},i.render=function(){var e=this.props,t=e.component,i=e.childFactory,n=(0,f.A)(e,["component","childFactory"]),r=this.state.contextValue,o=_(this.state.children).map(i);return(delete n.appear,delete n.enter,delete n.exit,null===t)?a.createElement(v.A.Provider,{value:r},o):a.createElement(v.A.Provider,{value:r},a.createElement(t,n,o))},t}(a.Component);x.propTypes={},x.defaultProps={component:"div",childFactory:function(e){return e}};var A=i(8610),I=i(8631),w=i(4930),k=i(9562);let S=(0,k.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function T(){let e=(0,m._)(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"]);return T=function(){return e},e}function C(){let e=(0,m._)(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"]);return C=function(){return e},e}function E(){let e=(0,m._)(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"]);return E=function(){return e},e}function R(){let e=(0,m._)(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]);return R=function(){return e},e}let P=(0,I.i7)(T()),O=(0,I.i7)(C()),M=(0,I.i7)(E()),N=(0,l.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),j=(0,l.Ay)(function(e){let{className:t,classes:i,pulsate:r=!1,rippleX:o,rippleY:l,rippleSize:s,in:d,onExited:u,timeout:c}=e,[p,m]=a.useState(!1),f=(0,n.A)(t,i.ripple,i.rippleVisible,r&&i.ripplePulsate),h=(0,n.A)(i.child,p&&i.childLeaving,r&&i.childPulsate);return d||p||m(!0),a.useEffect(()=>{if(!d&&null!=u){let e=setTimeout(u,c);return()=>{clearTimeout(e)}}},[u,d,c]),(0,w.jsx)("span",{className:f,style:{width:s,height:s,top:-(s/2)+l,left:-(s/2)+o},children:(0,w.jsx)("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})(R(),S.rippleVisible,P,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},S.ripplePulsate,e=>{let{theme:t}=e;return t.transitions.duration.shorter},S.child,S.childLeaving,O,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},S.childPulsate,M,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),D=a.forwardRef(function(e,t){let{center:i=!1,classes:r={},className:o,...l}=(0,s.b)({props:e,name:"MuiTouchRipple"}),[d,u]=a.useState([]),c=a.useRef(0),p=a.useRef(null);a.useEffect(()=>{p.current&&(p.current(),p.current=null)},[d]);let m=a.useRef(!1),f=(0,A.A)(),h=a.useRef(null),g=a.useRef(null),v=a.useCallback(e=>{let{pulsate:t,rippleX:i,rippleY:a,rippleSize:o,cb:l}=e;u(e=>[...e,(0,w.jsx)(j,{classes:{ripple:(0,n.A)(r.ripple,S.ripple),rippleVisible:(0,n.A)(r.rippleVisible,S.rippleVisible),ripplePulsate:(0,n.A)(r.ripplePulsate,S.ripplePulsate),
28child:(0,n.A)(r.child,S.child),childLeaving:(0,n.A)(r.childLeaving,S.childLeaving),childPulsate:(0,n.A)(r.childPulsate,S.childPulsate)},timeout:550,pulsate:t,rippleX:i,rippleY:a,rippleSize:o},c.current)]),c.current+=1,p.current=l},[r]),y=a.useCallback(function(){let e,t,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:l=!1,center:s=i||r.pulsate,fakeElement:d=!1}=r;if((null==n?void 0:n.type)==="mousedown"&&m.current){m.current=!1;return}(null==n?void 0:n.type)==="touchstart"&&(m.current=!0);let u=d?null:g.current,c=u?u.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!s&&void 0!==n&&(0!==n.clientX||0!==n.clientY)&&(n.clientX||n.touches)){let{clientX:i,clientY:a}=n.touches&&n.touches.length>0?n.touches[0]:n;e=Math.round(i-c.left),t=Math.round(a-c.top)}else e=Math.round(c.width/2),t=Math.round(c.height/2);s?(a=Math.sqrt((2*c.width**2+c.height**2)/3))%2==0&&(a+=1):a=Math.sqrt((2*Math.max(Math.abs((u?u.clientWidth:0)-e),e)+2)**2+(2*Math.max(Math.abs((u?u.clientHeight:0)-t),t)+2)**2),(null==n?void 0:n.touches)?null===h.current&&(h.current=()=>{v({pulsate:l,rippleX:e,rippleY:t,rippleSize:a,cb:o})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):v({pulsate:l,rippleX:e,rippleY:t,rippleSize:a,cb:o})},[i,v,f]),b=a.useCallback(()=>{y({},{pulsate:!0})},[y]),_=a.useCallback((e,t)=>{if(f.clear(),(null==e?void 0:e.type)==="touchend"&&h.current){h.current(),h.current=null,f.start(0,()=>{_(e,t)});return}h.current=null,u(e=>e.length>0?e.slice(1):e),p.current=t},[f]);return a.useImperativeHandle(t,()=>({pulsate:b,start:y,stop:_}),[b,y,_]),(0,w.jsx)(N,{className:(0,n.A)(S.root,r.root,o),ref:g,...l,children:(0,w.jsx)(x,{component:null,exit:!0,children:d})})});var F=i(550);function L(e){return(0,F.Ay)("MuiButtonBase",e)}let B=(0,k.A)("MuiButtonBase",["root","disabled","focusVisible"]),z=(0,l.Ay)("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(B.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});function U(e,t,i){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,u.A)(n=>(i&&i(n),a||e[t](n),!0))}let q=a.forwardRef(function(e,t){let i=(0,s.b)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:c=!1,children:m,className:f,component:h="button",disabled:g=!1,disableRipple:v=!1,disableTouchRipple:y=!1,focusRipple:b=!1,focusVisibleClassName:_,LinkComponent:x="a",onBlur:A,onClick:I,onContextMenu:k,onDragLeave:S,onFocus:T,onFocusVisible:C,onKeyDown:E,onKeyUp:R,onMouseDown:P,onMouseLeave:O,onMouseUp:M,onTouchEnd:N,onTouchMove:j,onTouchStart:F,tabIndex:B=0,TouchRippleProps:q,touchRippleRef:$,type:H,...V}=i,W=a.useRef(null),G=p.use(),K=(0,d.A)(G.ref,$),[Z,Y]=a.useState(!1);g&&Z&&Y(!1),a.useImperativeHandle(l,()=>({focusVisible:()=>{Y(!0),W.current.focus()}}),[]);let X=G.shouldMount&&!v&&!g;a.useEffect(()=>{Z&&b&&!v&&G.pulsate()},[v,b,Z,G]);let J=U(G,"start",P,y),Q=U(G,"stop",k,y),ee=U(G,"stop",S,y),et=U(G,"stop",M,y),ei=U(G,"stop",e=>{Z&&e.preventDefault(),O&&O(e)},y),ea=U(G,"start",F,y),en=U(G,"stop",N,y),er=U(G,"stop",j,y),eo=U(G,"stop",e=>{(0,o.A)(e.target)||Y(!1),A&&A(e)},!1),el=(0,u.A)(e=>{W.current||(W.current=e.currentTarget),(0,o.A)(e.target)&&(Y(!0),C&&C(e)),T&&T(e)}),es=()=>{let e=W.current;return h&&"button"!==h&&!("A"===e.tagName&&e.href)},ed=(0,u.A)(e=>{b&&!e.repeat&&Z&&" "===e.key&&G.stop(e,()=>{G.start(e)}),e.target===e.currentTarget&&es()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&es()&&"Enter"===e.key&&!g&&(e.preventDefault(),I&&I(e))}),eu=(0,u.A)(e=>{b&&" "===e.key&&Z&&!e.defaultPrevented&&G.stop(e,()=>{G.pulsate(e)}),R&&R(e),I&&e.target===e.currentTarget&&es()&&" "===e.key&&!e.defaultPrevented&&I(e)}),ec=h;"button"===ec&&(V.href||V.to)&&(ec=x);let ep={};if("button"===ec){let e=!!V.formAction;ep.type=void 0!==H||e?H:"button",ep.disabled=g}else V.href||V.to||(ep.role="button"),g&&(ep["aria-disabled"]=g);let em=(0,d.A)(t,W),ef={...i,centerRipple:c,component:h,disabled:g,disableRipple:v,disableTouchRipple:y,focusRipple:b,tabIndex:B,focusVisible:Z},eh=(e=>{let{disabled:t,focusVisible:i,focusVisibleClassName:a,classes:n}=e,o=(0,r.A)({root:["root",t&&"disabled",i&&"focusVisible"]},L,n);return i&&a&&(o.root+=" ".concat(a)),o})(ef);return(0,w.jsxs)(z,{as:ec,className:(0,n.A)(eh.root,f),ownerState:ef,onBlur:eo,onClick:I,onContextMenu:Q,onFocus:el,onKeyDown:ed,onKeyUp:eu,onMouseDown:J,onMouseLeave:ei,onMouseUp:et,onDragLeave:ee,onTouchEnd:en,onTouchMove:er,onTouchStart:ea,ref:em,tabIndex:g?-1:B,type:H,...ep,...V,children:[m,X?(0,w.jsx)(D,{ref:K,center:c,...q}):null]})})},7036:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(9418);function n(e=8,t=(0,a.LX)({spacing:e}
28)){if(e.mui)return e;let i=(...e)=>(0===e.length?[1]:e).map(e=>{let i=t(e);return"number"==typeof i?`${i}px`:i}).join(" ");return i.mui=!0,i}},7045:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4"}),"AttachMoney")},7121:(e,t,i)=>{"use strict";function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}i.d(t,{A:()=>n})},7172:(e,t,i)=>{"use strict";i.d(t,{m:()=>r});var a=i(4246),n=i(5032),r=new class extends a.Q{#I;#t;#i;constructor(){super(),this.#i=e=>{if(!n.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#i=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#I!==e&&(this.#I=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#I?this.#I:globalThis.document?.visibilityState!=="hidden"}}},7213:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home")},7225:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"}),"AccountTree")},7238:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var a=i(5162),n=i(3638),r=i(3282),o=i(5044),l=i(6640),s=i(7578),d=i(4930),u=i(4056),c=i(453),p=i(1965);let m=(0,i(9562).A)("MuiBox",["root"]),f=(0,c.A)(),h=function(e={}){let{themeId:t,defaultTheme:i,defaultClassName:u="MuiBox-root",generateClassName:c}=e,p=(0,r.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(o.A);return a.forwardRef(function(e,a){let r=(0,s.A)(i),{className:o,component:m="div",...f}=(0,l.A)(e);return(0,d.jsx)(p,{as:m,ref:a,className:(0,n.A)(o,c?c(u):u),theme:t&&r[t]||r,...f})})}({themeId:p.A,defaultTheme:f,defaultClassName:m.root,generateClassName:u.A.generate})},7266:(e,t,i)=>{"use strict";i.d(t,{A:()=>o,Z:()=>r});var a=i(9562),n=i(550);function r(e){return(0,n.Ay)("MuiFormLabel",e)}let o=(0,a.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"])},7316:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M17 11V3H7v4H3v14h8v-4h2v4h8V11zM7 19H5v-2h2zm0-4H5v-2h2zm0-4H5V9h2zm4 4H9v-2h2zm0-4H9V9h2zm0-4H9V5h2zm4 8h-2v-2h2zm0-4h-2V9h2zm0-4h-2V5h2zm4 12h-2v-2h2zm0-4h-2v-2h2z"}),"Apartment")},7382:(e,t,i)=>{"use strict";i.d(t,{A:()=>o,y:()=>r});var a=i(9562),n=i(550);function r(e){return(0,n.Ay)("MuiTypography",e)}let o=(0,a.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])},7389:(e,t,i)=>{"use strict";i.d(t,{A:()=>v});var a=i(5162),n=i(3638),r=i(6348),o=i(2989),l=i(2298),s=i(8702),d=i(1894),u=i(9644),c=i(6434),p=i(9562),m=i(550);function f(e){return(0,m.Ay)("MuiPaper",e)}(0,p.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var h=i(4930);let g=(0,l.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;
28return[t.root,t[i.variant],!i.square&&t.rounded,"elevation"===i.variant&&t["elevation".concat(i.elevation)]]}})((0,d.A)(e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:e=>{let{ownerState:t}=e;return!t.square},style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:"1px solid ".concat((t.vars||t).palette.divider)}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}})),v=a.forwardRef(function(e,t){var i;let a=(0,u.b)({props:e,name:"MuiPaper"}),l=(0,s.A)(),{className:d,component:p="div",elevation:m=1,square:v=!1,variant:y="elevation",...b}=a,_={...a,component:p,elevation:m,square:v,variant:y},x=(e=>{let{square:t,elevation:i,variant:a,classes:n}=e;return(0,r.A)({root:["root",a,!t&&"rounded","elevation"===a&&"elevation".concat(i)]},f,n)})(_);return(0,h.jsx)(g,{as:p,ownerState:_,className:(0,n.A)(x.root,d),ref:t,...b,style:{..."elevation"===y&&{"--Paper-shadow":(l.vars||l).shadows[m],...l.vars&&{"--Paper-overlay":null==(i=l.vars.overlays)?void 0:i[m]},...!l.vars&&"dark"===l.palette.mode&&{"--Paper-overlay":"linear-gradient(".concat((0,o.X4)("#fff",(0,c.A)(m)),", ").concat((0,o.X4)("#fff",(0,c.A)(m)),")")}},...b.style}})})},7391:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},7392:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(3338);function n(e){if("string"!=typeof e)throw Error((0,a.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7398:(e,t,i)=>{"use strict";function a(e,t=166){let i;function n(...a){let r=()=>{e.apply(this,a)};clearTimeout(i),i=setTimeout(r,t)}return n.clear=()=>{clearTimeout(i)},n}i.d(t,{A:()=>a})},7441:(e,t,i)=>{"use strict";i.d(t,{Zq:()=>r,zs:()=>n});var a={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},n=new class{#w=a;#k=!1;setTimeoutProvider(e){this.#w=e}setTimeout(e,t){return this.#w.setTimeout(e,t)}clearTimeout(e){this.#w.clearTimeout(e)}setInterval(e,t){return this.#w.setInterval(e,t)}clearInterval(e){this.#w.clearInterval(e)}};function r(e){setTimeout(e,0)}},7458:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(6454).A},7578:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(8835),n=i(576);let r=(0,a.A)(),o=function(e=r){return(0,n.A)(e)}},7664:(e,t,i)=>{"use strict";i.d(t,{A:()=>Y});var a=i(4930),n=i(5162),r=i(3638),o=i(6348),l=i(8682),s=i(8611),d=i(3132),u=i(292),c=i(7389),p=i(9562),m=i(550);function f(e){return(0,m.Ay)("MuiDialog",e)}let h=(0,p.A)("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),g=n.createContext({});var v=i(8559),y=i(2298),b=i(8702),_=i(1894),x=i(9644),A=i(6536);let I=(0,y.Ay)(v.A,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),w=(0,y.Ay)(d.A,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),k=(0,y.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.container,t["scroll".concat((0,s.A)(i.scroll))]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),S=(0,y.Ay)(c.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.paper,t["scrollPaper".concat((0,s.A)(i.scroll))],t["paperWidth".concat((0,s.A)(String(i.maxWidth)))],i.fullWidth&&t.paperFullWidth,i.fullScreen&&t.paperFullScreen]}})((0,_.A)(e=>{let{theme:t}=e;return{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:e=>{let{ownerState:t}=e;return!t.maxWidth},style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(h.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>"xs"!==e).map(e=>({props:{maxWidth:e},style:{maxWidth:"".concat(t.breakpoints.values[e]).concat(t.breakpoints.unit),["&.".concat(h.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:e=>{let{ownerState:t}=e;return t.fullWidth},style:{width:"calc(100% - 64px)"}},{props:e=>{let{ownerState:t}=e;return t.fullScreen},style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(h.paperScrollBody)]:{margin:0,maxWidth:"100%"}}}]}})),T=n.forwardRef(function(e,t){let i=(0,x.b)({props:e,name:"MuiDialog"}),d=(0,b.A)(),p={enter:d.transitions.duration.enteringScreen,exit:d.transitions.duration.leavingScreen},{"aria-describedby":m,"aria-labelledby":h,"aria-modal":v=!0,BackdropComponent:y,BackdropProps:_,children:T,className:C,disableEscapeKeyDown:E=!1,fullScreen:R=!1,fullWidth:P=!1,maxWidth:O="sm",onClick:M,onClose:N,open:j,PaperComponent:D=c.A,PaperProps:F={},scroll:L="paper",slots:B={},slotProps:z={},TransitionComponent:U=u.A,transitionDuration:q=p,TransitionProps:$,...H}=i,V={...i,disableEscapeKeyDown:E,fullScreen:R,fullWidth:P,maxWidth:O,scroll:L},W=(e=>{let{classes:t,scroll:i,maxWidth:a,fullWidth:n,fullScreen:r}=e,l={root:["root"],backdrop:["backdrop"],container:["container","scroll".concat((0,s.A)(i))],paper:["paper","paperScroll".concat((0,s.A)(i)),"paperWidth".concat((0,s.A)(String(a))),n&&"paperFullWidth",r&&"paperFullScreen"]};return(0,o.A)(l,f,t)})(V),G=n.useRef(),K=(0,l.A)(h),Z=n.useMemo(()=>({titleId:K}),[K]),Y={slots:{transition:U,...B},slotProps:{transition:$,paper:F,backdrop:_,...z}},[X,J]=(0,A.A)("root",{elementType:w,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:V,className:(0,r.A)(W.root,C),ref:t}),[Q,ee]=(0,A.A)("backdrop",{elementType:I,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:V,className:W.backdrop}),[et,ei]=(0,A.A)("paper",{elementType:S,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:V,className:(0,r.A)(W.paper,F.className)}),[ea,en]=(0,A.A)("container",{elementType:k,externalForwardedProps:Y,ownerState:V,className:W.container}),[er,eo]=(0,A.A)("transition",{elementType:u.A,externalForwardedProps:Y,ownerState:V,additionalProps:{appear:!0,in:j,timeout:q,role:"presentation"}});return(0,a.jsx)(X,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:q,as:y,...ee}},disableEscapeKeyDown:E,onClose:N,open:j,onClick:e=>{M&&M(e),G.current&&(G.current=null,N&&N(e,"backdropClick"))},...J,...H,children:(0,a.jsx)(er,{...eo,children:(0,a.jsx)(ea,{onMouseDown:e=>{G.current=e.target===e.currentTarget},...en,children:(0,a.jsx)(et,{as:D,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":K,"aria-modal":v,...ei,children:(0,a.jsx)(g.Provider,{value:Z,children:T})})})})})});var C=i(8978);function E(e){return(0,m.Ay)("MuiDialogTitle",e)}let R=(0,p.A)("MuiDialogTitle",["root"]),P=(0,y.Ay)(C.A,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),O=n.forwardRef(function(e,t){let i=(0,x.b)({props:e,name:"MuiDialogTitle"}),{className:l,id:s,...d}=i,u=(e=>{let{classes:t}=e;return(0,o.A)({root:["root"]},E,t)})(i),{titleId:c=s}=n.useContext(g);return(0,a.jsx)(P,{component:"h2",className:(0,r.A)(u.root,l),ownerState:i,ref:t,variant:"h6",id:null!=s?s:c,...d})});var M=i(2299);function N(e){return(0,m.Ay)("MuiDialogContent",e)}(0,p.A)("MuiDialogContent",["root","dividers"]);let j=(0,y.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.dividers&&t.dividers]}})((0,_.A)(e=>{let{theme:t}=e;return{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:e=>{let{ownerState:t}=e;
28return t.dividers},style:{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}},{props:e=>{let{ownerState:t}=e;return!t.dividers},style:{[".".concat(R.root," + &")]:{paddingTop:0}}}]}})),D=n.forwardRef(function(e,t){let i=(0,x.b)({props:e,name:"MuiDialogContent"}),{className:n,dividers:l=!1,...s}=i,d={...i,dividers:l},u=(e=>{let{classes:t,dividers:i}=e;return(0,o.A)({root:["root",i&&"dividers"]},N,t)})(d);return(0,a.jsx)(j,{className:(0,r.A)(u.root,n),ownerState:d,ref:t,...s})});var F=i(4321),L=i(991),B=i(7238),z=i(3957),U=i(7213),q=i(4697);let $=(0,i(1952).A)((0,a.jsx)("path",{d:"M12 3 6 7.58V6H4v3.11L1 11.4l1.21 1.59L4 11.62V21h7v-6h2v6h7v-9.38l1.79 1.36L23 11.4zm-2-2c0 1.66-1.34 3-3 3-.55 0-1 .45-1 1H4c0-1.66 1.34-3 3-3 .55 0 1-.45 1-1z"}),"Cottage");var H=i(7316),V=i(50),W=i(892),G=i(3566),K=i(1680);let Z=[{icon:U.A,title:"Buy a Home",subtitle:"Explore co-equity financing for homebuyers",href:K.t.homebuyer,tone:"teal",accent:"#2A9D8F"},{icon:q.A,title:"Fund a Startup",subtitle:"Raise capital for your business",href:K.t.startups,tone:"orange",accent:"#E76F51"},{icon:$,title:"Own an Adult Family Home",subtitle:"Matching caregivers with investors",href:K.t.afh,tone:"teal",accent:"#2A9D8F"},{icon:H.A,title:"Fund a Real Estate Project",subtitle:"List a project for eligible investors to review",href:"/for-sponsors",tone:"orange",accent:"#E76F51"}];function Y(e){let{open:t,onClose:i}=e,n=(0,G.Ge)();return(0,a.jsxs)(T,{open:t,onClose:i,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:4,bgcolor:n.dialogBg,backgroundImage:"none",border:"1px solid ".concat(n.dialogBorder),overflow:"visible"}},children:[(0,a.jsxs)(O,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:0,pt:3,px:4},children:[(0,a.jsx)(C.A,{variant:"h5",sx:{fontWeight:800,color:n.dialogText,fontSize:{xs:"1.25rem",sm:"1.5rem"}},children:"What are you looking to do today?"}),(0,a.jsx)(M.A,{onClick:i,sx:{color:n.dialogMuted,ml:1},"aria-label":"Close dialog",children:(0,a.jsx)(V.A,{})})]}),(0,a.jsxs)(D,{sx:{px:4,pb:4,pt:3},children:[(0,a.jsx)(F.A,{spacing:2,children:Z.map(e=>{let t=e.icon,i="teal"===e.tone?n.tealBg:n.orangeBg,r="teal"===e.tone?n.tealBorder:n.orangeBorder;return(0,a.jsx)(L.A,{variant:"outlined",href:e.href,startIcon:(0,a.jsx)(B.A,{sx:{width:48,height:48,borderRadius:2.5,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:i,border:"1px solid ".concat(r),mr:1},children:(0,a.jsx)(t,{sx:{fontSize:26,color:e.accent}})}),endIcon:(0,a.jsx)(W.A,{sx:{color:n.dialogMuted}}),sx:{justifyContent:"flex-start",textAlign:"left",px:3,py:2.5,borderRadius:3,borderColor:n.cardBorder,color:n.dialogText,textTransform:"none",transition:"all 0.3s ease","& .MuiButton-endIcon":{ml:"auto"},"&:hover":{borderColor:e.accent,bgcolor:i,transform:"translateY(-2px)",boxShadow:"0 8px 24px ".concat(e.accent,"26")}},children:(0,a.jsxs)(B.A,{children:[(0,a.jsx)(C.A,{sx:{fontWeight:700,fontSize:"1.1rem",lineHeight:1.3},children:e.title}),(0,a.jsx)(C.A,{sx:{fontSize:"0.85rem",color:n.dialogMuted,fontWeight:400}
28,children:e.subtitle})]})},e.title)})}),(0,a.jsx)(B.A,{sx:{textAlign:"center",mt:3},children:(0,a.jsxs)(C.A,{sx:{fontSize:"0.9rem",color:n.textFaint},children:["Just here to explore?"," ",(0,a.jsx)(z.A,{component:"button",onClick:()=>{i(),setTimeout(()=>{let e=document.getElementById("where-do-you-fit-in");e&&e.scrollIntoView({behavior:"smooth"})},300)},sx:{color:"#2A9D8F",fontWeight:600,textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}},children:"Browse All Solutions"})]})})]})]})}},7672:(e,t)=>{"use strict";var i=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===u||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===h||void 0!==e.getModuleId)||!1}},7684:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>l,BO:()=>o,Yn:()=>r});var a=i(7392),n=i(1932);function r(e,t,i=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&i){let i=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=i)return i}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function o(e,t,i,a=i){let n;return n="function"==typeof e?e(i):Array.isArray(e)?e[i]||a:r(e,i)||a,t&&(n=t(n,a,e)),n}let l=function(e){let{prop:t,cssProperty:i=e.prop,themeKey:l,transform:s}=e,d=e=>{if(null==e[t])return null;let d=e[t],u=r(e.theme,l)||{};return(0,n.NI)(e,d,e=>{let n=o(u,s,e);return(e===n&&"string"==typeof e&&(n=o(u,s,`${t}${"default"===e?"":(0,a.A)(e)}`,e)),!1===i)?n:{[i]:n}})};return d.propTypes={},d.filterProps=[t],d}},7731:(e,t,i)=>{"use strict";i.d(t,{k:()=>r});var a=i(7441),n=i(5032),r=class{#S;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.gn)(this.gcTime)&&(this.#S=a.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.S$?1/0:3e5))}clearGcTimeout(){this.#S&&(a.zs.clearTimeout(this.#S),this.#S=void 0)}}},7826:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard")},7860:(e,t,i)=>{"use strict";i.d(t,{A:()=>S});var a,n=i(5162),r=i(6348),o=i(2859),l=i(2298),s=i(1894),d=i(4930);let u=(0,l.Ay)("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:o.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),c=(0,l.Ay)("legend",{name:"MuiNotchedOutlined",shouldForwardProp:o.A})((0,s.A)(e=>{let{theme:t}=e;return{float:"unset",width:"auto",overflow:"hidden",variants:[{props:e=>{let{ownerState:t}=e;return!t.withLabel},style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:e=>{let{ownerState:t}=e;return t.withLabel},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:e=>{let{ownerState:t}=e;return t.withLabel&&t.notched},style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]}}));var p=i(9393),m=i(1567),f=i(6001),h=i(9644),g=i(9562),v=i(550);function y(e){return(0,v.Ay)("MuiOutlinedInput",e)}let b={...i(3418).A,...(0,g.A)("MuiOutlinedInput",["root","notchedOutline","input"])};var _=i(1062),x=i(6536);let A=(0,l.Ay)(_.Sh,{shouldForwardProp:e=>(0,o.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:_.WC})((0,s.A)(e=>{let{theme:t}=e,i="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(b.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(b.notchedOutline)]:{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackgroun
28d,.23):i}},["&.".concat(b.focused," .").concat(b.notchedOutline)]:{borderWidth:2},variants:[...Object.entries(t.palette).filter((0,f.A)()).map(e=>{let[i]=e;return{props:{color:i},style:{["&.".concat(b.focused," .").concat(b.notchedOutline)]:{borderColor:(t.vars||t).palette[i].main}}}}),{props:{},style:{["&.".concat(b.error," .").concat(b.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(b.disabled," .").concat(b.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:14}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:14}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"16.5px 14px"}},{props:e=>{let{ownerState:t,size:i}=e;return t.multiline&&"small"===i},style:{padding:"8.5px 14px"}}]}})),I=(0,l.Ay)(function(e){let{children:t,classes:i,className:n,label:r,notched:o,...l}=e,s=null!=r&&""!==r,p={...e,notched:o,withLabel:s};return(0,d.jsx)(u,{"aria-hidden":!0,className:n,ownerState:p,...l,children:(0,d.jsx)(c,{ownerState:p,children:s?(0,d.jsx)("span",{children:r}):a||(a=(0,d.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"â"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})((0,s.A)(e=>{let{theme:t}=e,i="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):i}})),w=(0,l.Ay)(_.ck,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_.Oj})((0,s.A)(e=>{let{theme:t}=e;return{padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:0}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:0}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:0}}]}})),k=n.forwardRef(function(e,t){var i,a,o,l;let s=(0,h.b)({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:g,multiline:v=!1,notched:b,slots:k={},slotProps:S={},type:T="text",...C}=s,E=(e=>{let{classes:t}=e,i=(0,r.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},y,t);return{...t,...i}})(s),R=(0,p.A)(),P=(0,m.A)({props:s,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),O={...s,color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:R,fullWidth:c,hiddenLabel:P.hiddenLabel,multiline:v,size:P.size,type:T},M=null!=(a=null!=(i=k.root)?i:u.Root)?a:A,N=null!=(l=null!=(o=k.input)?o:u.Input)?l:w,[j,D]=(0,x.A)("notchedOutline",{elementType:I,className:E.notchedOutline,shouldForwardComponentProp:!0,ownerState:O,externalForwardedProps:{slots:k,slotProps:S},additionalProps:{label:null!=g&&""!==g&&P.required?(0,d.jsxs)(n.Fragment,{children:[g,"â","*"]}):g}});return(0,d.jsx)(_.Ay,{slots:{root:M,input:N},slotProps:S,renderSuffix:e=>(0,d.jsx)(j,{...D,notched:void 0!==b?b:!!(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:f,multiline:v,ref:t,type:T,...C,classes:{...E,notchedOutline:null}})});k.muiName="Input";let S=k},7874:(e,t,i)=>{"use strict";function a(e){return e&&e.ownerDocument||document}i.d(t,{A:()=>a})},7926:(e,t,i)=>{"use strict";function a(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function n(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(a(e.value)&&""!==e.value||t&&a(e.defaultValue)&&""!==e.defaultValue)}function r(e){return e.startAdornment}i.d(t,{gr:()=>r,lq:()=>n})},7947:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var a=i(5858);let n={textTransform:"uppercase"},r='"Roboto", "Helvetica", "Arial", sans-serif';function o(e,t){let{fontFamily:i=r,fontSize:o=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:d=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:p,pxToRem:m,...f}="function"==typeof t?t(e):t,h=o/14,g=m||(e=>"".concat(e/c*h,"rem")),v=(e,t,a,n,o)=>({fontFamily:i,fontWeight:e,fontSize:g(t),lineHeight:a,...i===r?{letterSpacing:"".concat(Math.round(n/t*1e5)/1e5,"em")}:{},...o,...p}),y={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(d,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(d,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(d,14,1.75,.4,n),caption:v(s,12,1.66,.4),overline:v(s,
2812,2.66,1,n),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)({htmlFontSize:c,pxToRem:g,fontFamily:i,fontSize:o,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:d,fontWeightBold:u,...y},f,{clone:!1})}},7962:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},7987:(e,t,i)=>{"use strict";i.d(t,{A:()=>_});var a=i(5162),n=i(6348),r=i(3638),o=i(1567),l=i(9393),s=i(7990),d=i(7266),u=i(8611),c=i(2859),p=i(2298),m=i(1894),f=i(9644),h=i(9562),g=i(550);function v(e){return(0,g.Ay)("MuiInputLabel",e)}(0,h.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var y=i(4930);let b=(0,p.Ay)(s.A,{shouldForwardProp:e=>(0,c.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[{["& .".concat(d.A.asterisk)]:t.asterisk},t.root,i.formControl&&t.formControl,"small"===i.size&&t.sizeSmall,i.shrink&&t.shrink,!i.disableAnimation&&t.animated,i.focused&&t.focu
28sed,t[i.variant]]}})((0,m.A)(e=>{let{theme:t}=e;return{display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:e=>{let{ownerState:t}=e;return t.formControl},style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:e=>{let{ownerState:t}=e;return t.shrink},style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:e=>{let{ownerState:t}=e;return!t.disableAnimation},style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:e=>{let{variant:t,ownerState:i}=e;return"filled"===t&&i.shrink},style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:e=>{let{variant:t,ownerState:i,size:a}=e;return"filled"===t&&i.shrink&&"small"===a},style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:e=>{let{variant:t,ownerState:i}=e;return"outlined"===t&&i.shrink},style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}})),_=a.forwardRef(function(e,t){let i=(0,f.b)({name:"MuiInputLabel",props:e}),{disableAnimation:a=!1,margin:s,shrink:d,variant:c,className:p,...m}=i,h=(0,l.A)(),g=d;void 0===g&&h&&(g=h.filled||h.focused||h.adornedStart);let _=(0,o.A)({props:i,muiFormControl:h,states:["size","variant","required","focused"]}),x={...i,disableAnimation:a,formControl:h,shrink:g,size:_.size,variant:_.variant,required:_.required,focused:_.focused},A=(e=>{let{classes:t,formControl:i,size:a,shrink:r,disableAnimation:o,variant:l,required:s}=e,d={root:["root",i&&"formControl",!o&&"animated",r&&"shrink",a&&"medium"!==a&&"size".concat((0,u.A)(a)),l],asterisk:[s&&"asterisk"]},c=(0,n.A)(d,v,t);return{...t,...c}})(x);return(0,y.jsx)(b,{"data-shrink":g,ref:t,className:(0,r.A)(A.root,p),...m,ownerState:x,classes:A})})},7990:(e,t,i)=>{"use strict";i.d(t,{A:()=>v});var a=i(5162),n=i(3638),r=i(6348),o=i(1567),l=i(9393),s=i(8611),d=i(2298),u=i(1894),c=i(6001),p=i(9644),m=i(7266),f=i(4930);let h=(0,d.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,"secondary"===i.color&&t.colorSecondary,i.filled&&t.filled]}})((0,u.A)(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter((0,c.A)()).map(e=>{let[i]=e;return{props:{color:i},style:{["&.".concat(m.A.focused)]:{color:(t.vars||t).palette[i].main}}}}),{props:{},style:{["&.".concat(m.A.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(m.A.error)]:{color:(t.vars||t).palette.error.main}}}]}})),g=(0,d.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk"})((0,u.A)(e=>{let{theme:t}=e;return{["&.".concat(m.A.error)]:{color:(t.vars||t).palette.error.main}}})),v=a.forwardRef(function(e,t){let i=(0,p.b)({props:e,name:"MuiFormLabel"}),{children:a,className:d,color:u,component:c="label",disabled:v,error:y,filled:b,focused:_,required:x,...A}=i,I=(0,l.A)(),w=(0,o.A)({props:i,muiFormControl:I,states:["color","required","focused","disabled","error","filled"]}),k={...i,color:w.color||"primary",component:c,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},S=(e=>{let{classes:t,color:i,focused:a,disabled:n,error:o,filled:l,required:d}=e,u={root:["root","color".concat((0,s.A)(i)),n&&"disabled",o&&"error",l&&"filled",a&&"focu
28sed",d&&"required"],asterisk:["asterisk",o&&"error"]};return(0,r.A)(u,m.Z,t)})(k);return(0,f.jsxs)(h,{as:c,ownerState:k,className:(0,n.A)(S.root,d),ref:t,...A,children:[a,w.required&&(0,f.jsxs)(g,{ownerState:k,"aria-hidden":!0,className:S.asterisk,children:["â","*"]})]})})},8097:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy")},8128:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var a=i(5162),n=i(3638),r=i(6348),o=i(7382),l=i(8978),s=i(6515),d=i(2298),u=i(9644),c=i(9168),p=i(6536),m=i(4930);let f=(0,d.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[{["& .".concat(c.A.primary)]:t.primary},{["& .".concat(c.A.secondary)]:t.secondary},t.root,i.inset&&t.inset,i.primary&&i.secondary&&t.multiline,i.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[".".concat(o.A.root,":where(& .").concat(c.A.primary,")")]:{display:"block"},[".".concat(o.A.root,":where(& .").concat(c.A.secondary,")")]:{display:"block"},variants:[{props:e=>{let{ownerState:t}=e;return t.primary&&t.secondary},style:{marginTop:6,marginBottom:6}},{props:e=>{let{ownerState:t}=e;return t.inset},style:{paddingLeft:56}}]}),h=a.forwardRef(function(e,t){let i=(0,u.b)({props:e,name:"MuiListItemText"}),{children:o,className:d,disableTypography:h=!1,inset:g=!1,primary:v,primaryTypographyProps:y,secondary:b,secondaryTypographyProps:_,slots:x={},slotProps:A={},...I}=i,{dense:w}=a.useContext(s.A),k=null!=v?v:o,S=b,T={...i,disableTypography:h,inset:g,primary:!!k,secondary:!!S,dense:w},C=(e=>{let{classes:t,inset:i,primary:a,secondary:n,dense:o}=e;return(0,r.A)({root:["root",i&&"inset",o&&"dense",a&&n&&"multiline"],primary:["primary"],secondary:["secondary"]},c.b,t)})(T),E={slots:x,slotProps:{primary:y,secondary:_,...A}},[R,P]=(0,p.A)("root",{className:(0,n.A)(C.root,d),elementType:f,externalForwardedProps:{...E,...I},ownerState:T,ref:t}),[O,M]=(0,p.A)("primary",{className:C.primary,elementType:l.A,externalForwardedProps:E,ownerState:T}),[N,j]=(0,p.A)("secondary",{className:C.secondary,elementType:l.A,externalForwardedProps:E,ownerState:T});return null==k||k.type===l.A||h||(k=(0,m.jsx)(O,{variant:w?"body2":"body1",component:(null==M?void 0:M.variant)?void 0:"span",...M,children:k})),null==S||S.type===l.A||h||(S=(0,m.jsx)(N,{variant:"body2",color:"textSecondary",...j,children:S})),(0,m.jsxs)(R,{...P,children:[k,S]})})},8133:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"}),"LocalOffer")},8187:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(9254).A},8306:(e,t,i)=>{"use strict";e.exports=i(4406)},8323:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)([(0,n.jsx)("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),(0,n.jsx)("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")],"Psychology")},8357:(e,t,i)=>{"use strict";var a=i(5975),n=i(3438),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(e){if(e>
vendor: 15,724 bytes, line 28
280x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,i){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,i)}function s(e,t,i){if("string"==typeof e){var a=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);var r=0|m(a,n),s=o(r),d=s.write(a,n);return d!==r&&(s=s.slice(0,d)),s}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(E(e,ArrayBuffer)||e&&E(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(E(e,SharedArrayBuffer)||e&&E(e.buffer,SharedArrayBuffer)))return function(e,t,i){var a;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(a=void 0===t&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,t):new Uint8Array(e,t,i),l.prototype),a}(e,t,i);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return l.from(u,t,i);var f=function(e){if(l.isBuffer(e)){var t=0|p(e.length),i=o(t);return 0===i.length||e.copy(i,0,0,t),i}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?o(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return d(e),o(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),i=o(t),a=0;a<t;a+=1)i[a]=255&e[a];return i}t.hp=l,t.IS=50,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,i){return s(e,t,i)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,i){return(d(e),e<=0)?o(e):void 0!==t?"string"==typeof i?o(e).fill(t,i):o(e).fill(t):o(e)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)};function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||E(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return T(e).length;default:if(n)return a?-1:k(e).length;t=(""+t).toLowerCase(),n=!0}}function f(e,t,i){var n,r,o,l=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,i){var a=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>a)&&(i=a);for(var n="",r=t;r<i;++r)n+=R[e[r]];return n}(this,t,i);case"utf8":case"utf-8":return y(this,t,i);case"ascii":return function(e,t,i){var a="";i=Math.min(e.length,i);for(var n=t;n<i;++n)a+=String.fromCharCode(127&e[n]);return a}(this,t,i);case"latin1":case"binary":return function(e,t,i){var a="";i=Math.min(e.length,i);for(var n=t;n<i;++n)a+=String.fromCharCode(e[n]);return a}(this,t,i);case"base64":return n=this,r=t,o=i,0===r&&o===n.length?a.fromByteArray(n):a.fromByteArray(n.slice(r,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,i){for(var a=e.slice(t,i),n="",r=0;r<a.length;r+=2)n+=String.fromCharCode(a[r]+256*a[r+1]);return n}(this,t,i);default:if(l)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function h(e,t,i){var a=e[t];e[t]=e[i],e[i]=a}function g(e,t,i,a,n){var r;if(0===e.length)return -1;if("string"==typeof i?(a=i,i=0):i>0x7fffffff?i=0x7fffffff:i<-0x80000000&&(i=-0x80000000),(r=i*=1)!=r&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length)if(n)return -1;else i=e.length-1;else if(i<0)if(!n)return -1;else i=0;if("string"==typeof t&&(t=l.from(t,a)),l.isBuffer(t))return 0===t.length?-1:v(e,t,i,a,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,i);else return Uint8Array.prototype.lastIndexOf.call(e,t,i);return v(e,[t],i,a,n)}throw TypeError("val must be string, number or Buffer")}function v(e,t,i,a,n){var r,o=1,l=e.length,s=t.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(e.length<2||t.length<2)return -1;o=2,l/=2,s/=2,i/=2}function d(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var u=-1;for(r=i;r<l;r++)if(d(e,r)===d(t,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===s)return u*o}else -1!==u&&(r-=r-u),u=-1}else for(i+s>l&&(i=l-s),r=i;r>=0;r--){for(var c=!0,p=0;p<s;p++)if(d(e,r+p)!==d(t,p)){c=!1;break}if(c)return r}return -1}l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(E(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),E(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var i=e.length,a=t.length,n=0,r=Math.min(i,a);n<r;++n)if(e[n]!==t[n]){i=e[n],a=t[n];break}return i<a?-1:+(a<i)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(i=0,t=0;i<e.length;++i)t+=e[i].length;var i,a=l.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var r=e[i];if(E(r,Uint8Array)&&(r=l.from(r)),!l.isBuffer(r))throw TypeError('"list" argument must be an Array of Buffers');r.copy(a,n),n+=r.length}return a},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):f.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",i=t.IS;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),"<Buffer "+e+">"},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(e,t,i,a,n){if(E(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===a&&(a=0),void 0===n&&(n=this.length),t<0||i>e.length||a<0||n>this.length)throw RangeError("out of range index");if(a>=n&&t>=i)return 0;if(a>=n)return -1;if(t>=i)return 1;if(t>>>=0,i>>>=0,a>>>=0,n>>>=0,this===e)return 0;for(var r=n-a,o=i-t,s=Math.min(r,o),d=this.slice(a,n),u=e.slice(t,i),c=0;c<s;++c)if(d[c]!==u[c]){r=d[c],o=u[c];break}return r<o?-1:+(o<r)},l.prototype.includes=function(e,t,i){return -1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){return g(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){return g(this,e,t,i,!1)};function y(e,t,i){i=Math.min(e.length,i);for(var a=[],n=t;n<i;){var r,o,l,s,d=e[n],u=null,c=d>239?4:d>223?3:d>191?2:1;if(n+c<=i)switch(c){case 1:d<128&&(u=d);break;case 2:(192&(r=e[n+1]))==128&&(s=(31&d)<<6|63&r)>127&&(u=s);break;case 3:r=e[n+1],o=e[n+2],(192&r)==128&&(192&o)==128&&(s=(15&d)<<12|(63&r)<<6|63&o)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:r=e[n+1],o=e[n+2],l=e[n+3],(192&r)==128&&(192&o)==128&&(192&l)==128&&(s=(15&d)<<18|(63&r)<<12|(63&o)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,c=1):u>65535&&(u-=65536,a.push(u>>>10&1023|55296),u=56320|1023&u),a.push(u),n+=c}var p=a,m=p.length;if(m<=4096)return String.fromCharCode.apply(String,p);for(var f="",h=0;h<m;)f+=String.fromCharCode.apply(String,p.slice(h,h+=4096));return f}function b(e,t,i){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>i)throw RangeError("Trying to access beyond buffer length")}function _(e,t,i,a,n,r){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<r)throw RangeError('"value" argument is out of bounds');if(i+a>e.length)throw RangeError("Index out of range")}function x(e,t,i,a,n,r){if(i+a>e.length||i<0)throw RangeError("Index out of range")}function A(e,t,i,a,r){return t*=1,i>>>=0,r||x(e,t,i,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,i,a,23,4),i+4}function I(e,t,i,a,r){return t*=1,i>>>=0,r||x(e,t,i,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,i,a,52,8),i+8}l.prototype.write=function(e,t,i,a){if(void 0===t)a="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)a=t,i=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(i)?(i>>>=0,void 0===a&&(a="utf8")):(a=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,r,o,l,s,d,u,c,p=this.length-t;if((void 0===i||i>p)&&(i=p),e.length>0&&(i<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var m=!1;;)switch(a){case"hex":return function(e,t,i,a){i=Number(i)||0;var n=e.length-i;a?(a=Number(a))>n&&(a=n):a=n;var r=t.length;a>r/2&&(a=r/2);for(var o=0;o<a;++o){var l,s=parseInt(t.substr(2*o,2),16);if((l=s)!=l)break;e[i+o]=s}return o}(this,e,t,i);case"utf8":case"utf-8":return n=t,r=i,C(k(e,this.length-n),this,n,r);case"ascii":return o=t,l=i,C(S(e),this,o,l);case"latin1":case"binary":return function(e,t,i,a){return C(S(t),e,i,a)}(this,e,t,i);case"base64":return s=t,d=i,C(T(e),this,s,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,c=i,C(function(e,t){for(var i,a,n=[],r=0;r<e.length&&!((t-=2)<0);++r)a=(i=e.charCodeAt(r))>>8,n.push(i%256),n.push(a);return n}(e,this.length-u),this,u,c);default:if(m)throw TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),m=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);var a=this.subarray(e,t);return Object.setPrototypeOf(a,l.prototype),a},l.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||b(e,t,this.length);for(var a=this[e],n=1,r=0;++r<t&&(n*=256);)a+=this[e+r]*n;return a},l.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||b(e,t,this.length);for(var a=this[e+--t],n=1;t>0&&(n*=256);)a+=this[e+--t]*n;return a},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||b(e,t,this.length);for(var a=this[e],n=1,r=0;++r<t&&(n*=256);)a+=this[e+r]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||b(e,t,this.length);for(var a=t,n=1,r=this[e+--a];a>0&&(n*=256);)r+=this[e+--a]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?0xffff0000|i:i},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?0xffff0000|i:i},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,i,a){if(e*=1,t>>>=0,i>>>=0,!a){var n=Math.pow(2,8*i)-1;_(this,e,t,i,n,0)}var r=1,o=0;for(this[t]=255&e;++o<i&&(r*=256);)this[t+o]=e/r&255;return t+i},l.prototype.writeUIntBE=function(e,t,i,a){if(e*=1,t>>>=0,i>>>=0,!a){var n=Math.pow(2,8*i)-1;_(this,e,t,i,n,0)}var r=i-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+i},l.prototype.writeUInt8=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,i,a){if(e*=1,t>>>=0,!a){var n=Math.pow(2,8*i-1);_(this,e,t,i,n-1,-n)}
28var r=0,o=1,l=0;for(this[t]=255&e;++r<i&&(o*=256);)e<0&&0===l&&0!==this[t+r-1]&&(l=1),this[t+r]=(e/o|0)-l&255;return t+i},l.prototype.writeIntBE=function(e,t,i,a){if(e*=1,t>>>=0,!a){var n=Math.pow(2,8*i-1);_(this,e,t,i,n-1,-n)}var r=i-1,o=1,l=0;for(this[t+r]=255&e;--r>=0&&(o*=256);)e<0&&0===l&&0!==this[t+r+1]&&(l=1),this[t+r]=(e/o|0)-l&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,i){return e*=1,t>>>=0,i||_(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,i){return A(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return A(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return I(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return I(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,a){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(i||(i=0),a||0===a||(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a<i&&(a=i),a===i||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw RangeError("Index out of range");if(a<0)throw RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t<a-i&&(a=e.length-t+i);var n=a-i;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,i,a);else if(this===e&&i<t&&t<a)for(var r=n-1;r>=0;--r)e[r+t]=this[r+i];else Uint8Array.prototype.set.call(e,this.subarray(i,a),t);return n},l.prototype.fill=function(e,t,i,a){if("string"==typeof e){if("string"==typeof t?(a=t,t=0,i=this.length):"string"==typeof i&&(a=i,i=this.length),void 0!==a&&"string"!=typeof a)throw TypeError("encoding must be a string");if("string"==typeof a&&!l.isEncoding(a))throw TypeError("Unknown encoding: "+a);if(1===e.length){var n,r=e.charCodeAt(0);("utf8"===a&&r<128||"latin1"===a)&&(e=r)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw RangeError("Out of range index");if(i<=t)return this;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(n=t;n<i;++n)this[n]=e;else{var o=l.isBuffer(e)?e:l.from(e,a),s=o.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<i-t;++n)this[n+t]=o[n%s]}return this};var w=/[^+/0-9A-Za-z-_]/g;function k(e,t){t=t||1/0;for(var i,a=e.length,n=null,r=[],o=0;o<a;++o){if((i=e.charCodeAt(o))>
2855295&&i<57344){if(!n){if(i>56319||o+1===a){(t-=3)>-1&&r.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(t-=3)>-1&&r.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return r}function S(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}function T(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(w,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,i,a){for(var n=0;n<a&&!(n+i>=t.length)&&!(n>=e.length);++n)t[n+i]=e[n];return n}function E(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var R=function(){for(var e="0123456789abcdef",t=Array(256),i=0;i<16;++i)for(var a=16*i,n=0;n<16;++n)t[a+n]=e[i]+e[n];return t}()},8371:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(3638);function n(e,t){if(!e)return t;function i(e,t){let i={};return Object.keys(t).forEach(a=>{(function(e,t){let i=e.charCodeAt(2);return"o"===e[0]&&"n"===e[1]&&i>=65&&i<=90&&"function"==typeof t})(a,t[a])&&"function"==typeof e[a]&&(i[a]=function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];e[a](...n),t[a](...n)})}),i}if("function"==typeof e||"function"==typeof t)return n=>{let r="function"==typeof t?t(n):t,o="function"==typeof e?e({...n,...r}):e,l=(0,a.A)(null==n?void 0:n.className,null==r?void 0:r.className,null==o?void 0:o.className),s=i(o,r);return{...r,...o,...s,...!!l&&{className:l},...(null==r?void 0:r.style)&&(null==o?void 0:o.style)&&{style:{...r.style,...o.style}},...(null==r?void 0:r.sx)&&(null==o?void 0:o.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};let n=i(e,t),r=(0,a.A)(null==t?void 0:t.className,null==e?void 0:e.className);return{...t,...e,...n,...!!r&&{className:r},...(null==t?void 0:t.style)&&(null==e?void 0:e.style)&&{style:{...t.style,...e.style}},...(null==t?void 0:t.sx)&&(null==e?void 0:e.sx)&&{sx:[...Array.isArray(t.sx)?t.sx:[t.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}},8382:(e,t,i)=>{"use strict";i.d(t,{A:()=>j});var a=i(6739),n=i(5162),r=i(3638),o=i(6348),l=i(9695),s=i(8631),d=i(2298),u=i(1894),c=i(6001),p=i(9644),m=i(8611),f=i(9562),h=i(550);function g(e){return(0,h.Ay)("MuiLinearProgress",e)}(0,f.A)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var v=i(4930);function y(){let e=(0,a._)(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"]);return y=function(){return e},e}function b(){let e=(0,a._)(["\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]);return b=function(){return e},e}function _(){let e=(0,a._)(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"]);return _=function(){return e},e}function x(){let e=(0,a._)(["\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]);return x=function(){return e},e}function A(){let e=(0,a._)(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"]);return A=function(){return e},e}function I(){let e=(0,a._)(["\n animation: "," 3s infinite linear;\n "]);return I=function(){return e},e}let w=(0,s.i7)(y()),k="string"!=typeof w?(0,s.AH)(b(),w):null,S=(0,s.i7)(_()),T="string"!=typeof S?(0,s.AH)(x(),S):null,C=(0,s.i7)(A()),E="string"!=typeof C?(0,s.AH)(I(),C):null,R=(e,t)=>e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),P=(0,d.Ay)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t["color".concat((0,m.A)(i.color))],t[i.variant]]}})((0,u.A)(e=>{let{theme:t}=e;return{position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter((0,c.A)()).map(e=>{let[i]=e;return{props:{color:i},style:{backgroundColor:R(t,i)}}}),{props:e=>{let{ownerState:t}=e;return"inherit"===t.color&&"buffer"!==t.variant},style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}})),O=(0,d.Ay)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.dashed,t["dashedColor".concat((0,m.A)(i.color))]]}})((0,u.A)(e=>{let{theme:t}=e;return{position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter((0,c.A)()).map(e=>{let[i]=e,a=R(t,i);return{props:{color:i},style:{backgroundImage:"radial-gradient(".concat(a," 0%, ").concat(a," 16%, transparent 42%)")}}})]}}),E||{animation:"".concat(C," 3s infinite linear")}),M=(0,d.Ay)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.bar,t.bar1,t["barColor".concat((0,m.A)(i.color))],("indeterminate"===i.variant||"query"===i.variant)&&t.bar1Indeterminate,"determinate"===i.variant&&t.bar1Determinate,"buffer"===i.variant&&t.bar1Buffer]}})((0,u.A)(e=>{let{theme:t}=e;return{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter((0,c.A)()).map(e=>{let[i]=e;return{props:{color:i},style:{backgroundColor:(t.vars||t).palette[i].main}}}),{props:{variant:"determinate"},style:{transition:"transform .".concat(4,"s linear")}},{props:{variant:"buffer"},style:{zIndex:1,transition:"transform .".concat(4,"s linear")}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant||"query"===t.variant},style:{width:"auto"}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant||"query"===t.variant},style:k||{animation:"".concat(w," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite")}}]}})),N=(0,d.Ay)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.bar,t.bar2,t["barColor".concat((0,m.A)(i.color))],("indeterminate"===i.variant||"query"===i.variant)&&t.bar2Indeterminate,"buffer"===i.variant&&t.bar2Buffer]}})((0,u.A)(e=>{let{theme:t}=e;return{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter((0,c.A)()).map(e=>{let[i]=e;return{props:{color:i},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[i].main}}}),{props:e=>{let{ownerState:t}=e;return"buffer"!==t.variant&&"inherit"!==t.color},style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:e=>{let{ownerState:t}=e;return"buffer"!==t.variant&&"inherit"===t.color},style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter((0,c.A)()).map(e=>{let[i]=e;return{props:{color:i,variant:"buffer"},style:{backgroundColor:R(t,i),transition:"transform .".concat(4,"s linear")}}}),{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant||"query"===t.variant},style:{width:"auto"}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant||"query"===t.variant},style:T||{animation:"".concat(S," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite")}}]}})),j=n.forwardRef(function(e,t){let i=(0,p.b)({props:e,name:"MuiLinearProgress"}),{className:a,color:n="primary",value:s,valueBuffer:d,variant:u="indeterminate",...c}=i,f={...i,color:n,variant:u},h=(e=>{let{classes:t,variant:i,color:a}=e,n={root:["root","color".concat((0,m.A)(a)),i],dashed:["dashed","dashedColor".concat((0,m.A)(a))],bar1:["bar","bar1","barColor".concat((0,m.A)(a)),("indeterminate"===i||"query"===i)&&"bar1Indeterminate","determinate"===i&&"bar1Determinate","buffer"===i&&"bar1Buffer"],bar2:["bar","bar2","buffer"!==i&&"barC
28olor".concat((0,m.A)(a)),"buffer"===i&&"color".concat((0,m.A)(a)),("indeterminate"===i||"query"===i)&&"bar2Indeterminate","buffer"===i&&"bar2Buffer"]};return(0,o.A)(n,g,t)})(f),y=(0,l.I)(),b={},_={},x={};if(("determinate"===u||"buffer"===u)&&void 0!==s){b["aria-valuenow"]=Math.round(s),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let e=s-100;y&&(e=-e),_.transform="translateX(".concat(e,"%)")}if("buffer"===u&&void 0!==d){let e=(d||0)-100;y&&(e=-e),x.transform="translateX(".concat(e,"%)")}return(0,v.jsxs)(P,{className:(0,r.A)(h.root,a),ownerState:f,role:"progressbar",...b,ref:t,...c,children:["buffer"===u?(0,v.jsx)(O,{className:h.dashed,ownerState:f}):null,(0,v.jsx)(M,{className:h.bar1,ownerState:f,style:_}),"determinate"===u?null:(0,v.jsx)(N,{className:h.bar2,ownerState:f,style:x})]})})},8398:(e,t,i)=>{"use strict";i.d(t,{A:()=>o,K:()=>r});var a=i(9562),n=i(550);function r(e){return(0,n.Ay)("MuiDivider",e)}let o=(0,a.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},8492:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(5162),n=i(9254);let r=function(e){let t=a.useRef(e);return(0,n.A)(()=>{t.current=e}),a.useRef((...e)=>(0,t.current)(...e)).current}},8515:(e,t,i)=>{e.exports=i(670)},8540:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(5162);function n(...e){let t=a.useRef(void 0),i=a.useCallback(t=>{let i=e.map(e=>{if(null==e)return null;if("function"==typeof e){let i=e(t);return"function"==typeof i?i:()=>{e(null)}}return e.current=t,()=>{e.current=null}});return()=>{i.forEach(e=>e?.())}},e);return a.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=i(e))},e)}},8559:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var a=i(5162),n=i(3638),r=i(6348),o=i(2298),l=i(9644),s=i(6536),d=i(292),u=i(9562),c=i(550);function p(e){return(0,c.Ay)("MuiBackdrop",e)}(0,u.A)("MuiBackdrop",["root","invisible"]);var m=i(4930);let f=(0,o.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),h=a.forwardRef(function(e,t){let i=(0,l.b)({props:e,name:"MuiBackdrop"}),{children:a,className:o,component:u="div",invisible:c=!1,open:h,components:g={},componentsProps:v={},slotProps:y={},slots:b={},TransitionComponent:_,transitionDuration:x,...A}=i,I={...i,component:u,invisible:c},w=(e=>{let{classes:t,invisible:i}=e;return(0,r.A)({root:["root",i&&"invisible"]},p,t)})(I),k={component:u,slots:{transition:_,root:g.Root,...b},slotProps:{...v,...y}},[S,T]=(0,s.A)("root",{elementType:f,externalForwardedProps:k,className:(0,n.A)(w.root,o),ownerState:I}),[C,E]=(0,s.A)("transition",{elementType:d.A,externalForwardedProps:k,ownerState:I});return(0,m.jsx)(C,{in:h,timeout:x,...A,...E,children:(0,m.jsx)(S,{"aria-hidden":!0,...T,ref:t,children:a})})})},8610:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a=i(3808),n=i(5162);let r=[];class o{static create(){return new o}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function l(){var e;let t=(0,a.A)(o.create).current;return e=t.disposeEffect,n.useEffect(e,r),t}},8611:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(7392).A},8627:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings")},8631:(e,t,i)=>{"use strict";i.d(t,{AH:()=>u,i7:()=>c,mL:()=>d});var a=i(5012),n=i(5162),r=i(62),o=i(6079),l=i(1450);i(1077),i(8910);var s=function(e,t){var i=arguments;if(null==t||!a.h.call(t,"css"))return n.createElement.apply(void 0,i);var r=i.length,o=Array(r);o[0]=a.E,o[1]=(0,a.c)(e,t);for(var l=2;l<r;l++)o[l]=i[l];return n.createElement.apply(null,o)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(s||(s={}));var d=(0,a.w)(function(e,t){var i=e.styles,s=(0,l.J)([i],void 0,n.useContext(a.T)),d=n.useRef();return(0,o.i)(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,n=document.querySelector('style[data-emotion="'+e+" "+s.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==n&&(a=!0,n.setAttribute("data-emotion",e),i.hydrate([n])),d.current=[i,a],function(){i.flush()}},[t]),(0,o.i)(function(){var e=d.current,i=e[0];if(e[1]){e[1]=!1;return}if(void 0!==s.next&&(0,r.sk)(t,s.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",s,i,!1)},[t,s.name]),null});function u(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,l.J)(t)}function c(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},8636:(e,t,i)=>{"use strict";i.d(t,{II:()=>u,cc:()=>d,v_:()=>s});var a=i(7172),n=i(2907),r=i(6876),o=i(5032);function l(e){return Math.min(1e3*2**e,3e4)}function s(e){return(e??"online")!=="online"||n.t.isOnline()}
28var d=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function u(e){let t,i=!1,u=0,c=(0,r.T)(),p=()=>a.m.isFocused()&&("always"===e.networkMode||n.t.isOnline())&&e.canRun(),m=()=>s(e.networkMode)&&e.canRun(),f=e=>{"pending"===c.status&&(t?.(),c.resolve(e))},h=e=>{"pending"===c.status&&(t?.(),c.reject(e))},g=()=>new Promise(i=>{t=e=>{("pending"!==c.status||p())&&i(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===c.status&&e.onContinue?.()}),v=()=>{let t;if("pending"!==c.status)return;let a=0===u?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if("pending"!==c.status)return;let a=e.retry??3*!o.S$,n=e.retryDelay??l,r="function"==typeof n?n(u,t):n,s=!0===a||"number"==typeof a&&u<a||"function"==typeof a&&a(u,t);if(i||!s)return void h(t);u++,e.onFail?.(u,t),(0,o.yy)(r).then(()=>p()?void 0:g()).then(()=>{i?h(t):v()})})};return{promise:c,status:()=>c.status,cancel:t=>{if("pending"===c.status){let i=new d(t);h(i),e.onCancel?.(i)}},continue:()=>(t?.(),c),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:m,start:()=>(m()?v():g().then(v),c)}}},8682:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var a,n=i(5162);let r=0,o={...a||(a=i.t(n,2))}.useId;function l(e){if(void 0!==o){let t=o();return e??t}let[t,i]=n.useState(e),a=e||t;return n.useEffect(()=>{null==t&&(r+=1,i(`mui-${r}`))},[t]),a}},8689:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(8682).A},8690:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(5162);function n(e){let{controlled:t,default:i,name:n,state:r="value"}=e,{current:o}=a.useRef(void 0!==t),[l,s]=a.useState(i),d=a.useCallback(e=>{o||s(e)},[]);return[o?t:l,d]}},8702:(e,t,i)=>{"use strict";i.d(t,{A:()=>o}),i(5162);var a=i(7578),n=i(1140),r=i(1965);function o(){let e=(0,a.A)(n.A);return e[r.A]||e}},8835:(e,t,i)=>{"use strict";i.d(t,{A:()=>u});var a=i(5858),n=i(2636);let r={borderRadius:4};var o=i(7036),l=i(5044),s=i(5794);function d(e,t){if(this.vars){if(!this.colorSchemes?.[e]||"function"!=typeof this.getColorSchemeSelector)return{};let i=this.getColorSchemeSelector(e);return"&"===i?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return this.palette.mode===e?t:{}}let u=function(e={},...t){let{breakpoints:i={},palette:u={},spacing:c,shape:p={},...m}=e,f=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:a=5,...n}=e,r=(e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),o=Object.keys(r);function l(e){let a="number"==typeof t[e]?t[e]:e;return`@media (min-width:${a}${i})`}function s(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-a/100}${i})`}function d(e,n){let r=o.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${i}) and (max-width:${(-1!==r&&"number"==typeof t[o[r]]?t[o[r]]:n)-a/100}${i})`}return{keys:o,values:r,up:l,down:s,between:d,only:function(e){return o.indexOf(e)+1<o.length?d(e,o[o.indexOf(e)+1]):l(e)},not:function(e){let t=o.indexOf(e);return 0===t?l(o[1]):t===o.length-1?s(o[t]):d(e,o[o.indexOf(e)+1]).replace("@media","@media not all and")},unit:i,...n}}(i),h=(0,o.A)(c),g=(0,a.A)({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...u},spacing:h,shape:{...r,...p}},m);return(g=(0,n.Ay)(g)).applyStyles=d,(g=t.reduce((e,t)=>(0,a.A)(e,t),g)).unstable_sxConfig={...s.A,...m?.unstable_sxConfig},g.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},g}},8840:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)([(0,n.jsx)("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z"},"0"),(0,n.jsx)("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24"},"1")],"MenuBook")},8850:(e,t,i)=>{"use strict";function a(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}i.d(t,{A:()=>a})},8881:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"}),"Speed")},8910:(e,t,i)=>{"use strict";var a=i(8306),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0}
28,r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return a.isMemo(e)?o:l[e.$$typeof]||n}l[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[a.Memo]=o;var d=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,i,a){if("string"!=typeof i){if(f){var n=m(i);n&&n!==f&&e(t,n,a)}var o=u(i);c&&(o=o.concat(c(i)));for(var l=s(t),h=s(i),g=0;g<o.length;++g){var v=o[g];if(!r[v]&&!(a&&a[v])&&!(h&&h[v])&&!(l&&l[v])){var y=p(i,v);try{d(t,v,y)}catch(e){}}}}return t}},8942:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 2.5s4.5 2.04 4.5 10.5c0 2.49-1.04 5.57-1.6 7H9.1c-.56-1.43-1.6-4.51-1.6-7C7.5 4.54 12 2.5 12 2.5m2 8.5c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-6.31 9.52c-.48-1.23-1.52-4.17-1.67-6.87l-1.13.75c-.56.38-.89 1-.89 1.67V22zM20 22v-5.93c0-.67-.33-1.29-.89-1.66l-1.13-.75c-.15 2.69-1.2 5.64-1.67 6.87z"}),"Rocket")},8978:(e,t,i)=>{"use strict";i.d(t,{A:()=>y});var a=i(5162),n=i(3638),r=i(6348),o=i(564),l=i(2298),s=i(1894),d=i(9644),u=i(8611),c=i(6001),p=i(7382),m=i(4930);let f={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},h=(0,o.Dg)(),g=(0,l.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.variant&&t[i.variant],"inherit"!==i.align&&t["align".concat((0,u.A)(i.align))],i.noWrap&&t.noWrap,i.gutterBottom&&t.gutterBottom,i.paragraph&&t.paragraph]}})((0,s.A)(e=>{var t;let{theme:i}=e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(i.typography).filter(e=>{let[t,i]=e;return"inherit"!==t&&i&&"object"==typeof i}).map(e=>{let[t,i]=e;return{props:{variant:t},style:i}}),...Object.entries(i.palette).filter((0,c.A)()).map(e=>{let[t]=e;return{props:{color:t},style:{color:(i.vars||i).palette[t].main}}}),...Object.entries((null==(t=i.palette)?void 0:t.text)||{}).filter(e=>{let[,t]=e;return"string"==typeof t}).map(e=>{let[t]=e;return{props:{color:"text".concat((0,u.A)(t))},style:{color:(i.vars||i).palette.text[t]}}}),{props:e=>{let{ownerState:t}=e;return"inherit"!==t.align},style:{textAlign:"var(--Typography-textAlign)"}},{props:e=>{let{ownerState:t}=e;return t.noWrap},style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:e=>{let{ownerState:t}=e;return t.gutterBottom},style:{marginBottom:"0.35em"}},{props:e=>{let{ownerState:t}=e;return t.paragraph},style:{marginBottom:16}}]}})),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y=a.forwardRef(function(e,t){let{color:i,...a}=(0,d.b)({props:e,name:"MuiTypography"}),o=!f[i],l=h({...a,...o&&{color:i}}),{align:s="inherit",className:c,component:y,gutterBottom:b=!1,noWrap:_=!1,paragraph:x=!1,variant:A="body1",variantMapping:I=v,...w}=l,k={...l,align:s,color:i,className:c,component:y,gutterBottom:b,noWrap:_,paragraph:x,variant:A,variantMapping:I},S=y||(x?"p":I[A]||v[A])||"span",T=(e=>{let{align:t,gutterBottom:i,noWrap:a,paragraph:n,variant:o,classes:l}=e,s={root:["root",o,"inherit"!==e.align&&"align".concat((0,u.A)(t)),i&&"gutterBottom",a&&"noWrap",n&&"paragraph"]};return(0,r.A)(s,p.y,l)})(k);return(0,m.jsx)(g,{as:S,ref:t,className:(0,n.A)(T.root,c),...w,ownerState:k,style:{..."inherit"!==s&&{"--Typography-textAlign":s},...w.style}})})},9138:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}),"TrendingUp")},9168:(e,t,i)=>{"use strict";i.d(t,{A:()=>o,b:()=>r});var a=i(9562),n=i(550);function r(e){return(0,n.Ay)("MuiListItemText",e)}let o=(0,a.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},9169:(e,t,i)=>{"use strict";i.d(t,{A:()=>x});var a=i(5162),n=i(5858),r=i(6348),o=i(1062),l=i(2859),s=i(2298),d=i(1894),u=i(6001),c=i(9644),p=i(9562),m=i(550);function f(e){return(0,m.Ay)("MuiFilledInput",e)}let h={...i(3418).A,...(0,p.A)("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};var g=i(8611),v=i(4930);let y=(0,s.Ay)(o.Sh,{shouldForwardProp:e=>(0,l.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[...(0,o.WC)(e,t),!i.disableUnderline&&t.underline]}})((0,d.A)(e=>{let{theme:t}=e,i="light"===t.palette.mode,a=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a}},["&.".concat(h.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a},["&.".concat(h.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableUnderline},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(h.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(h.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?t.alpha(t.vars.palette.common.onBackgroun
28d,t.vars.opacity.inputUnderline):i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(h.disabled,", .").concat(h.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(h.disabled,":before")]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter((0,u.A)()).map(e=>{var i;let[a]=e;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:"2px solid ".concat(null==(i=(t.vars||t).palette[a])?void 0:i.main)}}}}),{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:12}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:12}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"25px 12px 8px"}},{props:e=>{let{ownerState:t,size:i}=e;return t.multiline&&"small"===i},style:{paddingTop:21,paddingBottom:4}},{props:e=>{let{ownerState:t}=e;return t.multiline&&t.hiddenLabel},style:{paddingTop:16,paddingBottom:17}},{props:e=>{let{ownerState:t}=e;return t.multiline&&t.hiddenLabel&&"small"===t.size},style:{paddingTop:8,paddingBottom:9}}]}})),b=(0,s.Ay)(o.ck,{name:"MuiFilledInput",slot:"Input",overridesResolver:o.Oj})((0,d.A)(e=>{let{theme:t}=e;return{paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:e=>{let{ownerState:t}=e;return t.hiddenLabel},style:{paddingTop:16,paddingBottom:17}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:0}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:0}},{props:e=>{let{ownerState:t}=e;return t.hiddenLabel&&"small"===t.size},style:{paddingTop:8,paddingBottom:9}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}})),_=a.forwardRef(function(e,t){var i,a,l,s;let d=(0,c.b)({props:e,name:"MuiFilledInput"}),{disableUnderline:u=!1,components:p={},componentsProps:m,fullWidth:h=!1,hiddenLabel:_,inputComponent:x="input",multiline:A=!1,slotProps:I,slots:w={},type:k="text",...S}=d,T={...d,disableUnderline:u,fullWidth:h,inputComponent:x,multiline:A,type:k},C=(e=>{let{classes:t,disableUnderline:i,startAdornment:a,endAdornment:n,size:o,hiddenLabel:l,multiline:s}=e,d={root:["root",!i&&"underline",a&&"adornedStart",n&&"adornedEnd","small"===o&&"size".concat((0,g.A)(o)),l&&"hiddenLabel",s&&"multiline"],input:["input"]},u=(0,r.A)(d,f,t);return{...t,...u}})(d),E={root:{ownerState:T},input:{ownerState:T}},R=(null!=I?I:m)?(0,n.A)(E,null!=I?I:m):E,P=null!=(a=null!=(i=w.root)?i:p.Root)?a:y,O=null!=(s=null!=(l=w.input)?l:p.Input)?s:b;return(0,v.jsx)(o.Ay,{slots:{root:P,input:O},slotProps:R,fullWidth:h,inputComponent:x,multiline:A,ref:t,type:k,...S,classes:C})});_.muiName="Input";let x=_},9194:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(8690).A},9254:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(5162);let n="undefined"!=typeof window?a.useLayoutEffect:a.useEffect},9289:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(4284),n=i(7578);function r({props:e,name:t,defaultTheme:i,themeId:r}){let o=(0,n.A)(i);r&&(o=o[r]||o);let{theme:l,name:s,props:d}={theme:o,name:t,props:e};return l&&l.components&&l.components[s]&&l.components[s].defaultProps?(0,a.A)(l.components[s].defaultProps,d):d}},9341:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=i(7874).A},9393:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(5162),n=i(1626);function r(){return a.useContext(n.A)}},9410:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5.97 4.06L14.09 6l1.41 1.41L16.91 6l1.06 1.06-1.41 1.41 1.41 1.41-1.06 1.06-1.41-1.4-1.41 1.41-1.06-1.06 1.41-1.41zm-6.78.66h5v1.5h-5zM11.5 16h-2v2H8v-2H6v-1.5h2v-2h1.5v2h2zm6.5 1.25h-5v-1.5h5zm0-2.5h-5v-1.5h5z"}),"Calculate")},9418:(e,t,i)=>{"use strict";i.d(t,{LX:()=>f,MA:()=>m,_W:()=>h,Lc:()=>v,Ms:()=>y});var a=i(1932),n=i(7684),r=i(52);let o={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=function(e){let t={};return i=>(void 0===t[i]&&(t[i]=e(i)),t[i])}(e=>{if(e.length>2)if(!s[e])return[e];else e=s[e];let[t,i]=e.split(""),a=o[t],n=l[i]||"";return Array.isArray(n)?n.map(e=>a+e):[a+n]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],c=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...c];function m(e,t,i,a){let r=(0,n.Yn)(e,t,!0)??i;return"number"==typeof r||"string"==typeof r?e=>"string"==typeof e?e:"string"==typeof r?r.startsWith("var(")&&0===e?0:r.startsWith("var(")&&1===e?r:`calc(${e} * ${r})`:r*e:Array.isArray(r)?e=>{if("string"==typeof e)return e;let t=r[Math.abs(e)];return e>=0?t:"number"==typeof t?-t:"string"==typeof t&&t.startsWith("var(")?`calc(-1 * ${t})`:`-${t}`}:"function"==typeof r?r:()=>void 0}function f(e){return m(e,"spacing",8,"spacing")}function h(e,t){return"string"==typeof t||null==t?t:e(t)}function g(e,t){let i=f(e.theme);return Object.keys(e).map(n=>(function(e,t,i,n){var r;if(!t.includes(i))return null;let o=(r=d(i),e=>r.reduce((t,i)=>(t[i]=h(n,e),t),{})),l=e[i];return(0,a.NI)(e,l,o)})(e,t,n,i)).reduce(r.A,{})}function v(e){return g(e,u)}function y(e){return g(e,c)}function b(e){return g(e,p)}
28v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=c,b.propTypes={},b.filterProps=p},9535:(e,t,i)=>{"use strict";function a(e){var t=Object.create(null);return function(i){return void 0===t[i]&&(t[i]=e(i)),t[i]}}i.d(t,{A:()=>a})},9559:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},9562:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});var a=i(550);function n(e,t,i="Mui"){let r={};return t.forEach(t=>{r[t]=(0,a.Ay)(e,t,i)}),r}},9644:(e,t,i)=>{"use strict";i.d(t,{b:()=>n}),i(5162);var a=i(3890);function n(e){return(0,a.b)(e)}i(4930)},9680:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(8631),n=i(4930);function r(e){let{styles:t,defaultTheme:i={}}=e,r="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?i:e):t;return(0,n.jsx)(a.mL,{styles:r})}},9695:(e,t,i)=>{"use strict";i.d(t,{A:()=>l,I:()=>o});var a=i(5162),n=i(4930);let r=a.createContext(),o=()=>a.useContext(r)??!1,l=function({value:e,...t}){return(0,n.jsx)(r.Provider,{value:e??!0,...t})}},9742:(e,t,i)=>{"use strict";i.d(t,{A:()=>P});var a,n=i(5162),r=i(3638),o=i(6348),l=i(8682),s=i(2298),d=i(9644),u=i(5130),c=i(9169),p=i(7860),m=i(7987),f=i(3511),h=i(1567),g=i(9393),v=i(1894),y=i(8611),b=i(9562),_=i(550);function x(e){return(0,_.Ay)("MuiFormHelperText",e)}let A=(0,b.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var I=i(4930);let w=(0,s.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.size&&t["size".concat((0,y.A)(i.size))],i.contained&&t.contained,i.filled&&t.filled]}})((0,v.A)(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(A.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(A.error)]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:e=>{let{ownerState:t}=e;return t.contained},style:{marginLeft:14,marginRight:14}}]}})),k=n.forwardRef(function(e,t){let i=(0,d.b)({props:e,name:"MuiFormHelperText"}),{children:n,className:l,component:s="p",disabled:u,error:c,filled:p,focused:m,margin:f,required:v,variant:b,..._}=i,A=(0,g.A)(),k=(0,h.A)({props:i,muiFormControl:A,states:["variant","size","disabled","error","filled","focused","required"]}),S={...i,component:s,contained:"filled"===k.variant||"outlined"===k.variant,variant:k.variant,size:k.size,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required};delete S.ownerState;let T=(e=>{let{classes:t,contained:i,size:a,disabled:n,error:r,filled:l,focused:s,required:d}=e,u={root:["root",n&&"disabled",r&&"error",a&&"size".concat((0,y.A)(a)),i&&"contained",s&&"focused",l&&"filled",d&&"required"]};return(0,o.A)(u,x,t)})(S);return(0,I.jsx)(w,{as:s,className:(0,r.A)(T.root,l),ref:t,..._,ownerState:S,children:" "===n?a||(a=(0,I.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"â"})):n})});var S=i(992);function T(e){return(0,_.Ay)("MuiTextField",e)}(0,b.A)("MuiTextField",["root"]);var C=i(6536);let E={standard:u.A,filled:c.A,outlined:p.A},R=(0,s.Ay)(f.A,{name:"MuiTextField",slot:"Root"})({}),P=n.forwardRef(function(e,t){let i=(0,d.b)({props:e,name:"MuiTextField"}),{autoComplete:a,autoFocus:n=!1,children:s,className:u,color:c="primary",defaultValue:p,disabled:f=!1,error:h=!1,FormHelperTextProps:g,fullWidth:v=!1,helperText:y,id:b,InputLabelProps:_,inputProps:x,InputProps:A,inputRef:w,label:P,maxRows:O,minRows:M,multiline:N=!1,name:j,onBlur:D,onChange:F,onFocus:L,placeholder:B,required:z=!1,rows:U,select:q=!1,SelectProps:$,slots:H={},slotProps:V={},type:W,value:G,variant:K="outlined",...Z}=i,Y={...i,autoFocus:n,color:c,disabled:f,error:h,fullWidth:v,multiline:N,required:z,select:q,variant:K},X=(e=>{let{classes:t}=e;return(0,o.A)({root:["root"]},T,t)})(Y),J=(0,l.A)(b),Q=y&&J?"".concat(J,"-helper-text"):void 0,ee=P&&J?"".concat(J,"-label"):void 0,et=E[K],ei={slots:H,slotProps:{input:A,inputLabel:_,htmlInput:x,formHelperText:g,select:$,...V}},ea={},en=ei.slotProps.inputLabel;"outlined"===K&&(en&&void 0!==en.shrink&&(ea.notched=en.shrink),ea.label=P),q&&($&&$.native||(ea.id=void 0),ea["aria-describedby"]=void 0);let[er,eo]=(0,C.A)("root",{elementType:R,shouldForwardComponentProp:!0,externalForwardedProps:{...ei,...Z},ownerState:Y,className:(0,r.A)(X.root,u),ref:t,additionalProps:{disabled:f,error:h,fullWidth:v,required:z,color:c,variant:K}}),[el,es]=(0,C.A)("input",{elementType:et,externalForwardedProps:ei,additionalProps:ea,ownerState:Y}),[ed,eu]=(0,C.A)("inputLabel",{elementType:m.A,externalForwardedProps:ei,ownerState:Y}),[ec,ep]=(0,C.A)("htmlInput",{elementType:"input",externalForwardedProps:ei,ownerState:Y}),[em,ef]=(0,C.A)("formHelperText",{elementType:k,externalForwardedProps:ei,ownerState:Y}),[eh,eg]=(0,C.A)("select",{elementType:S.A,externalForwardedProps:ei,ownerState:Y}),ev=(0,I.jsx)(el,{"aria-describedby":Q,autoComplete:a,autoFocus:n,defaultValue:p,fullWidth:v,multiline:N,name:j,rows:U,maxRows:O,minRows:M,type:W,value:G,id:J,inputRef:w,onBlur:D,onChange:F,onFocus:L,placeholder:B,inputProps:ep,slots:{input:H.htmlInput?ec:void 0},...es});return(0,I.jsxs)(er,{...eo,children:[null!=P&&""!==P&&(0,I.jsx)(ed,{htmlFor:J,id:ee,...eu,children:P}),q?(0,I.jsx)(eh,{"aria-describedby":Q,id:J,labelId:ee,value:G,input:ev,...eg,children:s}):ev,y&&(0,I.jsx)(em,{id:Q,...ef,children:y})]})})},9746:(e,t,i)=>{"use strict";i.d(t,{A:()=>ew,k:()=>ek});var a=i(4930),n=i(5162),r=i(7238),o=i(3638),l=i(6348),s=i(2298),d=i(1894),u=i(9644),c=i(8611),p=i(6001),m=i(7389),f=i(9562),h=i(550);function g(e){return(0,h.Ay)("MuiAppBar",e)}(0,f.A)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);let v=(e,t)=>
28e?"".concat(e.replace(")",""),", ").concat(t,")"):t,y=(0,s.Ay)(m.A,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,t["position".concat((0,c.A)(i.position))],t["color".concat((0,c.A)(i.color))]]}})((0,d.A)(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter((0,p.A)(["contrastText"])).map(e=>{var i,a;let[n]=e;return{props:{color:n},style:{"--AppBar-background":(null!=(i=t.vars)?i:t).palette[n].main,"--AppBar-color":(null!=(a=t.vars)?a:t).palette[n].contrastText}}}),{props:e=>!0===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>!1===e.enableColorOnDark&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?v(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?v(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}})),b=n.forwardRef(function(e,t){let i=(0,u.b)({props:e,name:"MuiAppBar"}),{className:n,color:r="primary",enableColorOnDark:s=!1,position:d="fixed",...p}=i,m={...i,color:r,position:d,enableColorOnDark:s},f=(e=>{let{color:t,position:i,classes:a}=e,n={root:["root","color".concat((0,c.A)(t)),"position".concat((0,c.A)(i))]};return(0,l.A)(n,g,a)})(m);return(0,a.jsx)(y,{square:!0,component:"header",ownerState:m,elevation:4,className:(0,o.A)(f.root,n,"fixed"===d&&"mui-fixed"),ref:t,...p})});function _(e){return(0,h.Ay)("MuiToolbar",e)}(0,f.A)("MuiToolbar",["root","gutters","regular","dense"]);let x=(0,s.Ay)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,!i.disableGutters&&t.gutters,t[i.variant]]}})((0,d.A)(e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}})),A=n.forwardRef(function(e,t){let i=(0,u.b)({props:e,name:"MuiToolbar"}),{className:n,component:r="div",disableGutters:s=!1,variant:d="regular",...c}=i,p={...i,component:r,disableGutters:s,variant:d},m=(e=>{let{classes:t,disableGutters:i,variant:a}=e;return(0,l.A)({root:["root",!i&&"gutters",a]},_,t)})(p);return(0,a.jsx)(x,{as:r,className:(0,o.A)(m.root,n),ref:t,ownerState:p,...c})});var I=i(33),w=i(4321),k=i(2299),S=i(991),T=i(639),C=i(9695),E=i(3132),R=i(6636),P=i(1792),O=i(2050),M=i(5617),N=i(8702),j=i(3427),D=i(796);function F(e,t,i){let a=function(e,t,i){let a,n=t.getBoundingClientRect(),r=i&&i.getBoundingClientRect(),o=(0,D.A)(t);if(t.fakeTransform)a=t.fakeTransform;else{let e=o.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let l=0,s=0;if(a&&"none"!==a&&"string"==typeof a){let e=a.split("(")[1].split(")")[0].split(",");l=parseInt(e[4],10),s=parseInt(e[5],10)}return"left"===e?r?"translateX(".concat(r.right+l-n.left,"px)"):"translateX(".concat(o.innerWidth+l-n.left,"px)"):"right"===e?r?"translateX(-".concat(n.right-r.left-l,"px)"):"translateX(-".concat(n.left+n.width-l,"px)"):"up"===e?r?"translateY(".concat(r.bottom+s-n.top,"px)"):"translateY(".concat(o.innerHeight+s-n.top,"px)"):r?"translateY(-".concat(n.top-r.top+n.height-s,"px)"):"translateY(-".concat(n.top+n.height-s,"px)")}(e,t,"function"==typeof i?i():i);a&&(t.style.webkitTransform=a,t.style.transform=a)}let L=n.forwardRef(function(e,t){let i=(0,N.A)(),r={enter:i.transitions.easing.easeOut,exit:i.transitions.easing.sharp},o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:l,appear:s=!0,children:d,container:u,direction:c="down",easing:p=r,in:m,onEnter:f,onEntered:h,onEntering:g,onExit:v,onExited:y,onExiting:b,style:_,timeout:x=o,TransitionComponent:A=R.Ay,...I}=e,w=n.useRef(null),k=(0,M.A)((0,P.A)(d),w,t),S=e=>t=>{e&&(void 0===t?e(w.current):e(w.current,t))},T=S((e,t)=>{F(c,e,u),(0,j.q)(e),f&&f(e,t)}),C=S((e,t)=>{let a=(0,j.c)({timeout:x,style:_,easing:p},{mode:"enter"});e.style.webkitTransition=i.transitions.create("-webkit-transform",{...a}
28),e.style.transition=i.transitions.create("transform",{...a}),e.style.webkitTransform="none",e.style.transform="none",g&&g(e,t)}),E=S(h),L=S(b),B=S(e=>{let t=(0,j.c)({timeout:x,style:_,easing:p},{mode:"exit"});e.style.webkitTransition=i.transitions.create("-webkit-transform",t),e.style.transition=i.transitions.create("transform",t),F(c,e,u),v&&v(e)}),z=S(e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)}),U=n.useCallback(()=>{w.current&&F(c,w.current,u)},[c,u]);return n.useEffect(()=>{if(m||"down"===c||"right"===c)return;let e=(0,O.A)(()=>{w.current&&F(c,w.current,u)}),t=(0,D.A)(w.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[c,m,u]),n.useEffect(()=>{m||U()},[m,U]),(0,a.jsx)(A,{nodeRef:w,onEnter:T,onEntered:E,onEntering:C,onExit:B,onExited:z,onExiting:L,addEndListener:e=>{l&&l(w.current,e)},appear:s,in:m,timeout:x,...I,children:(e,t)=>{let{ownerState:i,...a}=t;return n.cloneElement(d,{ref:k,style:{visibility:"exited"!==e||m?void 0:"hidden",..._,...d.props.style},...a})}})});var B=i(2859);function z(e){return(0,h.Ay)("MuiDrawer",e)}(0,f.A)("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var U=i(6536),q=i(8371);let $=(e,t)=>{let{ownerState:i}=e;return[t.root,("permanent"===i.variant||"persistent"===i.variant)&&t.docked,"temporary"===i.variant&&t.modal]},H=(0,s.Ay)(E.A,{name:"MuiDrawer",slot:"Root",overridesResolver:$})((0,d.A)(e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}})),V=(0,s.Ay)("div",{shouldForwardProp:B.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:$})({flex:"0 0 auto"}),W=(0,s.Ay)(m.A,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.paper,t["paperAnchor".concat((0,c.A)(i.anchor))],"temporary"!==i.variant&&t["paperAnchorDocked".concat((0,c.A)(i.anchor))]]}})((0,d.A)(e=>{let{theme:t}=e;return{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:e=>{let{ownerState:t}=e;return"left"===t.anchor&&"temporary"!==t.variant},style:{borderRight:"1px solid ".concat((t.vars||t).palette.divider)}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchor&&"temporary"!==t.variant},style:{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}},{props:e=>{let{ownerState:t}=e;return"right"===t.anchor&&"temporary"!==t.variant},style:{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchor&&"temporary"!==t.variant},style:{borderTop:"1px solid ".concat((t.vars||t).palette.divider)}}]}})),G={left:"right",right:"left",top:"down",bottom:"up"},K=n.forwardRef(function(e,t){let i=(0,u.b)({props:e,name:"MuiDrawer"}),r=(0,N.A)(),s=(0,C.I)(),d={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:p="left",BackdropProps:m,children:f,className:h,elevation:g=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:y,...b}={},onClose:_,open:x=!1,PaperProps:A={},SlideProps:I,TransitionComponent:w,transitionDuration:k=d,variant:S="temporary",slots:T={},slotProps:E={},...R}=i,P=n.useRef(!1);n.useEffect(()=>{P.current=!0},[]);let O=function(e,t){let{direction:i}=e;return"rtl"===i&&["left","right"].includes(t)?G[t]:t}({direction:s?"rtl":"ltr"},p),M={...i,anchor:p,elevation:g,open:x,variant:S,...R},j=(e=>{let{classes:t,anchor:i,variant:a}=e,n={root:["root","anchor".concat((0,c.A)(i))],docked:[("permanent"===a||"persistent"===a)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,c.A)(i)),"temporary"!==a&&"paperAnchorDocked".concat((0,c.A)(i))]};return(0,l.A)(n,z,t)})(M),D={slots:{transition:w,...T},slotProps:{paper:A,transition:I,...E,backdrop:(0,q.A)(E.backdrop||{...m,...y},{transitionDuration:k})}},[F,B]=(0,U.A)("root",{ref:t,elementType:H,className:(0,o.A)(j.root,j.modal,h),shouldForwardComponentProp:!0,ownerState:M,externalForwardedProps:{...D,...R,...b},additionalProps:{open:x,onClose:_,hideBackdrop:v,slots:{backdrop:D.slots.backdrop},slotProps:{backdrop:D.slotProps.backdrop}}}),[$,K]=(0,U.A)("paper",{elementType:W,shouldForwardComponentProp:!0,className:(0,o.A)(j.paper,A.className),ownerState:M,externalForwardedProps:D,additionalProps:{elevation:"temporary"===S?g:0,square:!0,..."temporary"===S&&{role:"dialog","aria-modal":"true"}}}),[Z,Y]=(0,U.A)("docked",{elementType:V,ref:t,className:(0,o.A)(j.root,j.docked,h),ownerState:M,externalForwardedProps:D,additionalProps:R}),[X,J]=(0,U.A)("transition",{elementType:L,ownerState:M,externalForwardedProps:D,additionalProps:{in:x,direction:G[O],timeout:k,appear:P.current}}),Q=(0,a.jsx)($,{...K,children:f});if("permanent"===S)return(0,a.jsx)(Z,{...Y,children:Q});let ee=(0,a.jsx)(X,{...J,children:Q});return"persistent"===S?(0,a.jsx)(Z,{...Y,children:ee}):(0,a.jsx)(F,{...B,children:ee})});var Z=i(6635),Y=i(6950),X=i(8187),J=i(6515),Q=i(4978);let ee=(0,s.Ay)(Y.A,{shouldForwardProp:e=>(0,B.A)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.dense&&t.dense,"flex-start"===i.alignItems&&t.alignItemsFlexStart,i.divider&&t.divider,!i.disableGutters&&t.gutters]}})((0,d.A)(e=>{let{theme:t}=e;return{display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Q.A.selected)]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),["&.".concat(Q.A.focusVisible)]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,"".concat((t.vars||t).palette.action.selectedOpacity," + ").concat((t.vars||t).palette.action.focusOpacity))}},["&.".concat(Q.A.selected,":hover")]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,"".concat((t.vars||t).palette.action.selectedOpacity," + ").concat((t.vars||t).palette.action.hoverOpacity)),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},["&.".concat(Q.A.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Q.A.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:e=>{let{ownerState:t}=e;
28return t.divider},style:{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:16,paddingRight:16}},{props:e=>{let{ownerState:t}=e;return t.dense},style:{paddingTop:4,paddingBottom:4}}]}})),et=n.forwardRef(function(e,t){let i=(0,u.b)({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:s=!1,component:d="div",children:c,dense:p=!1,disableGutters:m=!1,divider:f=!1,focusVisibleClassName:h,selected:g=!1,className:v,...y}=i,b=n.useContext(J.A),_=n.useMemo(()=>({dense:p||b.dense||!1,alignItems:r,disableGutters:m}),[r,b.dense,p,m]),x=n.useRef(null);(0,X.A)(()=>{s&&x.current&&x.current.focus()},[s]);let A={...i,alignItems:r,dense:_.dense,disableGutters:m,divider:f,selected:g},I=(e=>{let{alignItems:t,classes:i,dense:a,disabled:n,disableGutters:r,divider:o,selected:s}=e,d=(0,l.A)({root:["root",a&&"dense",!r&&"gutters",o&&"divider",n&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Q.Y,i);return{...i,...d}})(A),w=(0,M.A)(x,t);return(0,a.jsx)(J.A.Provider,{value:_,children:(0,a.jsx)(ee,{ref:w,href:y.href||y.to,component:(y.href||y.to)&&"div"===d?"button":d,focusVisibleClassName:(0,o.A)(I.focusVisible,h),ownerState:A,className:(0,o.A)(I.root,v),...y,classes:I,children:c})})});var ei=i(8128),ea=i(6570),en=i(8978),er=i(1952);let eo=(0,er.A)((0,a.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),el=(0,er.A)((0,a.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode");var es=i(7826);let ed=(0,er.A)((0,a.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var eu=i(50),ec=i(2972),ep=i(3566),em=i(7664);let ef=[{label:"Platform",href:"/platform"},{label:"Professional Services",href:"/professional-services"},{label:"About",href:"/about"},{label:"Contact",href:"/contact"},{label:"Support",href:"/support"}];function eh(){let[e,t]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1),[l,s]=(0,n.useState)(!1),{mode:d,toggleMode:u}=(0,ec.eP)(),c=(0,ep.Ge)(),{isLoggedIn:p,user:m,portalUrl:f,initials:h}=(0,ec.tF)();return(0,n.useEffect)(()=>{let e=()=>o(window.scrollY>40);return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b,{position:"fixed",elevation:0,sx:{bgcolor:i?c.headerScrolledBg:c.headerBg,backdropFilter:i?"blur(12px)":"none",boxShadow:i?c.headerScrolledShadow:"none",borderBottom:i?"1px solid ".concat(c.divider):"none",transition:"all 0.3s ease"},children:(0,a.jsx)(A,{disableGutters:!0,sx:{minHeight:{xs:56,md:64}},children:(0,a.jsxs)(I.A,{maxWidth:"xl",sx:{display:"flex",alignItems:"center"},children:[(0,a.jsx)(r.A,{component:"a",href:"/",sx:{display:"flex",alignItems:"center",textDecoration:"none",mr:{md:4}},children:(0,a.jsx)(r.A,{component:"img",src:"dark"===d?"/images/eslice-logo-dark.svg":"/images/eslice-logo.svg",alt:"eSlice",sx:{height:{xs:28,md:32},width:"auto"}})}),(0,a.jsx)(r.A,{sx:{flex:1}}),(0,a.jsxs)(w.A,{direction:"row",spacing:1,alignItems:"center",sx:{display:{xs:"none",md:"flex"}},children:[(0,a.jsx)(k.A,{onClick:u,size:"small","aria-label":"Switch to ".concat("dark"===d?"light":"dark"," mode"),sx:{color:i?c.headerNavText:"dark"===d?"rgba(255,255,255,0.85)":c.headerNavText},children:"dark"===d?(0,a.jsx)(eo,{fontSize:"small"}):(0,a.jsx)(el,{fontSize:"small"})}),p&&m?(0,a.jsx)(S.A,{size:"small",variant:"contained",href:f,startIcon:(0,a.jsx)(T.A,{sx:{width:26,height:26,fontSize:"0.75rem",fontWeight:700,bgcolor:"rgba(255,255,255,0.2)"},children:h}),endIcon:(0,a.jsx)(es.A,{sx:{fontSize:18}}),sx:{bgcolor:"#2A9D8F",textTransform:"none",fontWeight:600,fontSize:"0.9375rem",borderRadius:6,px:2.5,minHeight:38,"&:hover":{bgcolor:"#228076"}},children:"Dashboard"}):(0,a.jsx)(S.A,{size:"small",variant:"contained",onClick:()=>s(!0),sx:{bgcolor:"#2A9D8F",textTransform:"none",fontWeight:600,fontSize:"0.9375rem",borderRadius:6,px:3,minHeight:38,"&:hover":{bgcolor:"#228076"}},children:"Get Started"})]}),(0,a.jsxs)(w.A,{direction:"row",spacing:1,sx:{display:{xs:"flex",md:"none"},ml:"auto"},children:[(0,a.jsx)(k.A,{onClick:u,size:"small","aria-label":"Switch to ".concat("dark"===d?"light":"dark"," mode"),sx:{color:"dark"===d?"#fff":c.headerText},children:"dark"===d?(0,a.jsx)(eo,{}):(0,a.jsx)(el,{})}),(0,a.jsx)(k.A,{onClick:()=>t(!0),sx:{color:"dark"===d?"#fff":c.headerText},"aria-label":"Open menu",children:(0,a.jsx)(ed,{sx:{fontSize:28}})})]})]})})}),(0,a.jsxs)(K,{anchor:"right",open:e,onClose:()=>t(!1),PaperProps:{sx:{width:{xs:"100%",sm:360},bgcolor:c.drawerBg,color:c.drawerText}},children:[(0,a.jsxs)(r.A,{sx:{p:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,a.jsx)(r.A,{component:"img",src:"dark"===d?"/images/eslice-logo-dark.svg":"/images/eslice-logo.svg",alt:"eSlice",sx:{height:24,width:"auto"}}),(0,a.jsx)(k.A,{onClick:()=>t(!1),sx:{color:c.drawerText},children:(0,a.jsx)(eu.A,{})})]}),(0,a.jsxs)(r.A,{sx:{px:3,pb:4},children:[(0,a.jsx)(Z.A,{disablePadding:!0,children:ef.map(e=>(0,a.jsx)(et,{component:"a",href:e.href,sx:{borderRadius:2,mb:.5,"&:hover":{bgcolor:c.drawerHoverSubtle}},children:(0,a.jsx)(ei.A,{primary:e.label,primaryTypographyProps:{fontWeight:500}})},e.label))}),(0,a.jsx)(ea.A,{sx:{my:2.5,borderColor:c.drawerDivider}}),(0,a.jsx)(w.A,{spacing:1.5,children:p&&m?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.A,{sx:{display:"flex",alignItems:"center",gap:1.5,mb:1,px:1},children:[(0,a.jsx)(T.A,{sx:{width:36,height:36,bgcolor:"#2A9D8F",fontWeight:700},children:h}),(0,a.jsxs)(r.A,{children:[(0,a.jsx)(en.A,{sx:{fontWeight:600,fontSize:"0.95rem",lineHeight:1.2},children:m.name}),(0,a.jsx)(en.A,{sx:{fontSize:"0.8rem",color:c.drawerMuted||"text.secondary"},children:m.email})]})]}),(0,a.jsx)(S.A,{variant:"contained",fullWidth:!0,href:f,startIcon:(0,a.jsx)(es.A,{}),onClick:()=>t(!1),sx:{...ep.XX.contained,bgcolor:"#2A9D8F","&:hover":{bgcolor:"#228076"}},children:"Go to Dashboard"})]}):(0,a.jsx)(S.A,{variant:"contained",fullWidth:!0,onClick:()=>{t(!1),s(!0)},sx:{...ep.XX.contained,bgcolor:"#2A9D8F","&:hover":{bgcolor:"#228076"}},children:"Get Started"})})]})]}),(0,a.jsx)(em.A,{open:l,onClose:()=>s(!1)})]})}var eg=i(3957),ev=i(4356);let ey=(0,er.A)((0,a.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn"),eb=(0,er.A)((0,a.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var e_=i(1680);let ex=[{title:"Solutions",links:[{label:"1st Time Homebuying",href:e_.t.homebuyer},{label:"Startups & Business",href:e_.t.startups},{label:"AFH Facilities",href:e_.t.afh}]},{title:"Platform",links:[{label:"Investors",href:"/for-investors"}
28,{label:"Sponsors",href:"/for-sponsors"},{label:"Partners",href:"/for-operators"},{label:"Features",href:"/platform"}]},{title:"Company",links:[{label:"About",href:"/about"},{label:"Professional Services",href:"/professional-services"},{label:"Contact",href:"/contact"},{label:"Support",href:"/support"}]},{title:"Legal",links:[{label:"Terms of Service",href:"/legal/terms"},{label:"Privacy Policy",href:"/legal/privacy"},{label:"Disclaimer",href:"/legal/disclaimer"},{label:"Disclosures",href:"/legal/disclosures"},{label:"Cookie Policy",href:"/legal/cookies"},{label:"Regulatory Information",href:"/legal/regulatory"},{label:"Payments & Compliance",href:"/legal/payments-and-compliance"},{label:"Billing & Refund Policy",href:"/legal/billing"}]}],eA=[{icon:ey,href:"https://linkedin.com/company/eslice",label:"LinkedIn"},{icon:eb,href:"https://github.com/eslice",label:"GitHub"}];function eI(){new Date().getFullYear();let e=(0,ep.Ge)(),t="#fff",i="rgba(255,255,255,0.55)";return(0,a.jsxs)(r.A,{component:"footer",sx:{bgcolor:e.footerBg,color:t,pt:{xs:6,md:8},pb:0,borderTop:"1px solid rgba(255,255,255,0.06)"},children:[(0,a.jsxs)(I.A,{maxWidth:"lg",children:[(0,a.jsxs)(w.A,{direction:{xs:"column",sm:"row"},alignItems:{xs:"center",sm:"flex-start"},justifyContent:"space-between",spacing:2,sx:{mb:4},children:[(0,a.jsxs)(w.A,{direction:"row",spacing:2,alignItems:"center",children:[(0,a.jsx)(r.A,{component:"a",href:"/",sx:{display:"inline-block",textDecoration:"none",flexShrink:0},children:(0,a.jsx)(r.A,{component:"img",src:"/images/eslice-logo-footer.svg",alt:"eSlice",sx:{height:28,width:"auto"}})}),(0,a.jsx)(en.A,{variant:"body2",sx:{color:"rgba(255,255,255,0.75)",lineHeight:1.6},children:"Helping everyday people reach the American Dream(s) of homeownership, business ownership, and financial independence."}),(0,a.jsxs)(en.A,{variant:"caption",component:"address",sx:{color:"rgba(255,255,255,0.6)",fontStyle:"normal",lineHeight:1.6,display:"block"},children:["eSlice, Inc. \xb7 11018 NE 11th St, Bellevue, WA 98004, USA",(0,a.jsx)("br",{}),"+1 (425) 671-1517 \xb7 [email protected] \xb7 [email protected] \xb7 [email protected]"]})]}),(0,a.jsx)(w.A,{direction:"row",spacing:1,sx:{flexShrink:0},children:eA.map(e=>{let t=e.icon;return(0,a.jsx)(eg.A,{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,sx:{color:i,"&:hover":{color:"#fff"}},children:(0,a.jsx)(t,{fontSize:"small"})},e.label)})})]}),(0,a.jsx)(ea.A,{sx:{mb:3,borderColor:"rgba(255,255,255,0.08)"}}),(0,a.jsx)(ev.A,{container:!0,spacing:{xs:4,md:6},children:ex.map(e=>(0,a.jsxs)(ev.A,{size:{xs:6,sm:3},children:[(0,a.jsx)(en.A,{variant:"subtitle2",fontWeight:700,sx:{mb:2,color:t,letterSpacing:.5},children:e.title}),(0,a.jsx)(w.A,{spacing:1,children:e.links.map(e=>(0,a.jsx)(eg.A,{href:e.href,underline:"none",sx:{color:i,fontSize:"0.875rem",transition:"color 0.2s","&:hover":{color:"#fff"}},children:e.label},e.label))})]},e.title))}),(0,a.jsx)(r.A,{sx:{mb:{xs:4,md:6}}})]}),(0,a.jsx)(ec.lI,{brandName:"eSlice",vertical:"generic",regulation:"reg_d_506c",showSafeHarbor:!0,showAccreditation:!0,businessDisclaimers:["investor_earnings","homebuyer_equity","fea_licensee_income","marketplace_partner_revenue"],hideLegalLinks:!0})]})}function ew(e){let{children:t}=e,i=(0,ep.Ge)();return(0,a.jsxs)(r.A,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",bgcolor:i.pageBg,color:i.textPrimary,transition:"background-color 0.3s ease, color 0.3s ease"},children:[(0,a.jsx)(eh,{}),(0,a.jsx)(r.A,{component:"main",sx:{flexGrow:1},children:t}),(0,a.jsx)(eI,{})]})}function ek(e){return(0,a.jsx)(ew,{children:e})}},9770:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});let a=function(e,t,i){return"function"==typeof e?e(t,i):e}},9796:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5M9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8m6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"GroupWork")},9802:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var a=i(1952),n=i(4930);let r=(0,a.A)((0,n.jsx)("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"}),"TableChart")}},e=>{var t=t=>e(e.s=t);e.O(0,[593,792],()=>(t(5034),t(112))),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.