@goodhood-web/nebenan-base 1.9.0-development.4 β 1.9.0-development.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/index.mjs +6 -6
- package/package.json +1 -1
- package/style.css +1 -1
package/index.js
CHANGED
|
@@ -213,14 +213,14 @@ ${e}</tr>
|
|
|
213
213
|
`}tablecell(e){const t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
|
|
214
214
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){const r=this.parser.parseInline(i),a=Kg(e);if(a===null)return r;e=a;let o='<a href="'+e+'"';return t&&(o+=' title="'+t+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:i}){const r=Kg(e);if(r===null)return i;e=r;let a=`<img src="${e}" alt="${i}"`;return t&&(a+=` title="${t}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class zp{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class dr{constructor(e){Pn(this,"options");Pn(this,"renderer");Pn(this,"textRenderer");this.options=e||Hs,this.options.renderer=this.options.renderer||new $c,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new zp}static parse(e,t){return new dr(t).parse(e)}static parseInline(e,t){return new dr(t).parseInline(e)}parse(e,t=!0){let i="";for(let r=0;r<e.length;r++){const a=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const d=a,f=this.options.extensions.renderers[d.type].call({parser:this},d);if(f!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)){i+=f||"";continue}}const o=a;switch(o.type){case"space":{i+=this.renderer.space(o);continue}case"hr":{i+=this.renderer.hr(o);continue}case"heading":{i+=this.renderer.heading(o);continue}case"code":{i+=this.renderer.code(o);continue}case"table":{i+=this.renderer.table(o);continue}case"blockquote":{i+=this.renderer.blockquote(o);continue}case"list":{i+=this.renderer.list(o);continue}case"html":{i+=this.renderer.html(o);continue}case"paragraph":{i+=this.renderer.paragraph(o);continue}case"text":{let d=o,f=this.renderer.text(d);for(;r+1<e.length&&e[r+1].type==="text";)d=e[++r],f+=`
|
|
215
215
|
`+this.renderer.text(d);t?i+=this.renderer.paragraph({type:"paragraph",raw:f,text:f,tokens:[{type:"text",raw:f,text:f}]}):i+=f;continue}default:{const d='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return i}parseInline(e,t){t=t||this.renderer;let i="";for(let r=0;r<e.length;r++){const a=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[a.type]){const d=this.options.extensions.renderers[a.type].call({parser:this},a);if(d!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=d||"";continue}}const o=a;switch(o.type){case"escape":{i+=t.text(o);break}case"html":{i+=t.html(o);break}case"link":{i+=t.link(o);break}case"image":{i+=t.image(o);break}case"strong":{i+=t.strong(o);break}case"em":{i+=t.em(o);break}case"codespan":{i+=t.codespan(o);break}case"br":{i+=t.br(o);break}case"del":{i+=t.del(o);break}case"text":{i+=t.text(o);break}default:{const d='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return i}}class Pf{constructor(e){Pn(this,"options");this.options=e||Hs}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}Pn(Pf,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Vr,Sv,Mh,Cv;class _x{constructor(...e){ng(this,Vr);Pn(this,"defaults",Fp());Pn(this,"options",this.setOptions);Pn(this,"parse",ff(this,Vr,Mh).call(this,fr.lex,dr.parse));Pn(this,"parseInline",ff(this,Vr,Mh).call(this,fr.lexInline,dr.parseInline));Pn(this,"Parser",dr);Pn(this,"Renderer",$c);Pn(this,"TextRenderer",zp);Pn(this,"Lexer",fr);Pn(this,"Tokenizer",Dc);Pn(this,"Hooks",Pf);this.use(...e)}walkTokens(e,t){var r,a;let i=[];for(const o of e)switch(i=i.concat(t.call(this,o)),o.type){case"table":{const d=o;for(const f of d.header)i=i.concat(this.walkTokens(f.tokens,t));for(const f of d.rows)for(const h of f)i=i.concat(this.walkTokens(h.tokens,t));break}case"list":{const d=o;i=i.concat(this.walkTokens(d.items,t));break}default:{const d=o;(a=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&a[d.type]?this.defaults.extensions.childTokens[d.type].forEach(f=>{const h=d[f].flat(1/0);i=i.concat(this.walkTokens(h,t))}):d.tokens&&(i=i.concat(this.walkTokens(d.tokens,t)))}}return i}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{const r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){const o=t.renderers[a.name];o?t.renderers[a.name]=function(...d){let f=a.renderer.apply(this,d);return f===!1&&(f=o.apply(this,d)),f}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[a.level];o?o.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),r.extensions=t),i.renderer){const a=this.defaults.renderer||new $c(this.defaults);for(const o in i.renderer){if(!(o in a))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const d=o;let f=i.renderer[d];i.useNewRenderer||(f=ff(this,Vr,Sv).call(this,f,d,a));const h=a[d];a[d]=(...p)=>{let m=f.apply(a,p);return m===!1&&(m=h.apply(a,p)),m||""}}r.renderer=a}if(i.tokenizer){const a=this.defaults.tokenizer||new Dc(this.defaults);for(const o in i.tokenizer){if(!(o in a))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const d=o,f=i.tokenizer[d],h=a[d];a[d]=(...p)=>{let m=f.apply(a,p);return m===!1&&(m=h.apply(a,p)),m}}r.tokenizer=a}if(i.hooks){const a=this.defaults.hooks||new Pf;for(const o in i.hooks){if(!(o in a))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const d=o,f=i.hooks[d],h=a[d];Pf.passThroughHooks.has(o)?a[d]=p=>{if(this.defaults.async)return Promise.resolve(f.call(a,p)).then(y=>h.call(a,y));const m=f.call(a,p);return h.call(a,m)}:a[d]=(...p)=>{let m=f.apply(a,p);return m===!1&&(m=h.apply(a,p)),m}}r.hooks=a}if(i.walkTokens){const a=this.defaults.walkTokens,o=i.walkTokens;r.walkTokens=function(d){let f=[];return f.push(o.call(this,d)),a&&(f=f.concat(a.call(this,d))),f}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return fr.lex(e,t??this.defaults)}parser(e,t){return dr.parse(e,t??this.defaults)}}Vr=new WeakSet,Sv=function(e,t,i){switch(t){case"heading":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,i.parser.parseInline(r.tokens),r.depth,U8(i.parser.parseInline(r.tokens,i.parser.textRenderer)))};case"code":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,r.text,r.lang,!!r.escaped)};case"table":return function(r){if(!r.type||r.type!==t)return e.apply(this,arguments);let a="",o="";for(let f=0;f<r.header.length;f++)o+=this.tablecell({text:r.header[f].text,tokens:r.header[f].tokens,header:!0,align:r.align[f]});a+=this.tablerow({text:o});let d="";for(let f=0;f<r.rows.length;f++){const h=r.rows[f];o="";for(let p=0;p<h.length;p++)o+=this.tablecell({text:h[p].text,tokens:h[p].tokens,header:!1,align:r.align[p]});d+=this.tablerow({text:o})}return e.call(this,a,d)};case"blockquote":return function(r){if(!r.type||r.type!==t)return e.apply(this,arguments);const a=this.parser.parse(r.tokens);return e.call(this,a)};case"list":return function(r){if(!r.type||r.type!==t)return e.apply(this,arguments);const a=r.ordered,o=r.start,d=r.loose;let f="";for(let h=0;h<r.items.length;h++){const p=r.items[h],m=p.checked,y=p.task;let x="";if(p.task){const _=this.checkbox({checked:!!m});d?p.tokens.length>0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=_+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=_+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:_+" "}):x+=_+" "}x+=this.parser.parse(p.tokens,d),f+=this.listitem({type:"list_item",raw:x,text:x,task:y,checked:!!m,loose:d,tokens:p.tokens})}return e.call(this,f,a,o)};case"html":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,r.text,r.block)};case"paragraph":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,this.parser.parseInline(r.tokens))};case"escape":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,r.text)};case"link":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,r.href,r.title,this.parser.parseInline(r.tokens))};case"image":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,r.href,r.title,r.text)};case"strong":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,this.parser.parseInline(r.tokens))};case"em":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,this.parser.parseInline(r.tokens))};case"codespan":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,r.text)};case"del":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,this.parser.parseInline(r.tokens))};case"text":return function(r){return!r.type||r.type!==t?e.apply(this,arguments):e.call(this,r.text)}}return e},Mh=function(e,t){return(i,r)=>{const a={...r},o={...this.defaults,...a};this.defaults.async===!0&&a.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const d=ff(this,Vr,Cv).call(this,!!o.silent,!!o.async);if(typeof i>"u"||i===null)return d(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return d(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(i):i).then(f=>e(f,o)).then(f=>o.hooks?o.hooks.processAllTokens(f):f).then(f=>o.walkTokens?Promise.all(this.walkTokens(f,o.walkTokens)).then(()=>f):f).then(f=>t(f,o)).then(f=>o.hooks?o.hooks.postprocess(f):f).catch(d);try{o.hooks&&(i=o.hooks.preprocess(i));let f=e(i,o);o.hooks&&(f=o.hooks.processAllTokens(f)),o.walkTokens&&this.walkTokens(f,o.walkTokens);let h=t(f,o);return o.hooks&&(h=o.hooks.postprocess(h)),h}catch(f){return d(f)}}},Cv=function(e,t){return i=>{if(i.message+=`
|
|
216
|
-
Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An error occurred:</p><pre>"+li(i.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(i);throw i}};const As=new _x;function Rn(n,e){return As.parse(n,e)}Rn.options=Rn.setOptions=function(n){return As.setOptions(n),Rn.defaults=As.defaults,pv(Rn.defaults),Rn};Rn.getDefaults=Fp;Rn.defaults=Hs;Rn.use=function(...n){return As.use(...n),Rn.defaults=As.defaults,pv(Rn.defaults),Rn};Rn.walkTokens=function(n,e){return As.walkTokens(n,e)};Rn.parseInline=As.parseInline;Rn.Parser=dr;Rn.parser=dr.parse;Rn.Renderer=$c;Rn.TextRenderer=zp;Rn.Lexer=fr;Rn.lexer=fr.lex;Rn.Tokenizer=Dc;Rn.Hooks=Pf;Rn.parse=Rn;Rn.options;Rn.setOptions;Rn.use;Rn.walkTokens;Rn.parseInline;dr.parse;fr.lex;const xx=n=>n.replace(/"/g,"QUOTE"),Sx=n=>n.replace(new RegExp("QUOTE","g"),'"');function Cx({className:n,inline:e=!1,text:t}){const i=Sx(B8(xx(t)));return L.jsx("span",{className:n,dangerouslySetInnerHTML:{__html:e?Rn.parseInline(i):Rn.parse(i)}})}const Ex="_fieldset_o9167_106",Tx={fieldset:Ex},Fx=({children:n,className:e,disabled:t,form:i,name:r})=>{const a=M.Children.map(n,o=>{if(M.isValidElement(o))return M.cloneElement(o,{disabled:t})});return L.jsx("fieldset",{className:Ke(Tx.fieldset,e),disabled:t,name:r,form:i,children:a})},Rx=({ariaLabel:n,ariaLabelledBy:e,children:t,className:i,id:r})=>L.jsx("form",{className:i,"aria-label":n,"aria-labelledby":e,id:r,children:t}),Mx="_overlay_1nob4_106",Px="_sheet_1nob4_117",Ax="_sheetWrapper_1nob4_130",Lx="_sheetBody_1nob4_138",zx="_sheetHeader_1nob4_141",Bx="_sheetFooter_1nob4_150",Wo={overlay:Mx,"fade-in":"_fade-in_1nob4_1",sheet:Px,"slide-up":"_slide-up_1nob4_1",sheetWrapper:Ax,sheetBody:Lx,sheetHeader:zx,sheetFooter:Bx},Ix=({ariaLabel:n,ctaButtonProps:e,linkProps:t,onClose:i,open:r,sheetBody:a,sheetHeader:o})=>(M.useEffect(()=>(r&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[r]),r?L.jsxs(L.Fragment,{children:[L.jsx("div",{className:Wo.overlay,onClick:i,"data-testid":"overlay"}),L.jsx("dialog",{className:Wo.sheet,"aria-label":n,"aria-modal":"true",open:r,children:L.jsx("div",{className:Wo.sheetWrapper,children:L.jsxs("section",{role:"document",children:[L.jsx("header",{className:Wo.sheetHeader,children:o}),L.jsx("div",{className:Wo.sheetBody,children:L.jsx(od,{children:a})}),L.jsxs("footer",{className:Wo.sheetFooter,children:[e&&L.jsx(mu,{...e}),t&&L.jsx(sd,{...t})]})]})})})]}):null),Ox="_backdrop_1lf8q_106",Dx={backdrop:Ox},Ev=M.forwardRef((n,e)=>{const{ownerState:t,...i}=n;return L.jsx("div",{ref:e,...i,className:Dx.backdrop})});Ev.displayName="Backdrop";const jx="_modal_9duh2_106",$x="_modalWrapper_9duh2_114",Hx="_modalHeader_9duh2_130",Nx="_crossCircle_9duh2_146",Vx="_modalFooter_9duh2_149",gf={modal:jx,modalWrapper:$x,modalHeader:Hx,crossCircle:Nx,modalFooter:Vx},Tv=({ariaLabel:n,ariaLabelledBy:e,closeButtonText:t="Abbrechen",headerTitle:i,modalBody:r,modalFooter:a,onClose:o,open:d})=>L.jsx(_p,{"aria-label":n,"aria-labelledby":e,open:d,onClose:o,slots:{backdrop:Ev},className:gf.modal,children:L.jsxs("div",{className:gf.modalWrapper,children:[L.jsx(rl,{className:gf.modalHeader,headline:i,rightElement:L.jsx(Xt,{icon:"cross_circle",onClick:o,size:"small",ariaLabel:t,className:gf.crossCircle})}),L.jsx(od,{children:r}),L.jsxs("div",{className:gf.modalFooter,children:[L.jsx(sd,{onClick:o,color:"blue",size:"large",text:t}),a]})]})}),Gx="_base_pz0sp_106",Wx={base:Gx};var _c=(n=>(n[n.lg=16]="lg",n[n.md=12]="md",n[n.sm=8]="sm",n[n.xl=24]="xl",n))(_c||{});const bu=M.forwardRef(({anchor:n,children:e,container:t,handleClickAway:i,id:r,offset:a="sm",open:o,placement:d,strategy:f="fixed"},h)=>{let p=_c.sm;typeof a=="object"?p=a:_c[a]&&(p=_c[a]);let m;return i?m=L.jsx(Rc,{onClickAway:i,touchEvent:!1,children:L.jsx("div",{children:e})}):m=e,L.jsx(Q0,{ref:h,className:Wx.base,id:r,open:o,anchor:n,offset:p,placement:d,container:t,strategy:f,children:m})});bu.displayName="Popup";const Ux="_backdrop_11wot_106",Zx={backdrop:Ux},Fv=M.forwardRef((n,e)=>L.jsx("div",{ref:e,...n,className:Zx.backdrop}));Fv.displayName="Backdrop";const qx="_sheet_qnncf_106",Kx="_sheetWrapper_qnncf_114",Yx="_sheetHeader_qnncf_126",Jx="_sheetFooter_qnncf_148",mf={sheet:qx,sheetWrapper:Kx,sheetHeader:Yx,sheetFooter:Jx,"sheetFooter--alwaysVisible":"_sheetFooter--alwaysVisible_qnncf_156"},Xx=({ariaLabel:n,ariaLabelledBy:e,closeButtonText:t="Abbrechen",onClose:i,open:r,sheetBody:a,sheetFooter:o,sheetHeader:d})=>L.jsx(_p,{"aria-label":n,"aria-labelledby":e,open:r,onClose:i,slots:{backdrop:Fv},className:mf.sheet,children:L.jsxs("div",{className:mf.sheetWrapper,children:[L.jsx("div",{className:mf.sheetHeader,children:d}),a,L.jsxs("div",{className:Ke(mf.sheetFooter,{[mf["sheetFooter--alwaysVisible"]]:!!o}),children:[L.jsx(sd,{onClick:i,color:"blue",size:"large",text:t}),o]})]})}),Qx="_accordionBtnWrapper_sgbg8_106",eS="_heading_sgbg8_111",nS="_title_sgbg8_123",tS="_icon_sgbg8_140",iS="_iconExpanded_sgbg8_146",rS="_panel_sgbg8_154",Uo={accordionBtnWrapper:Qx,heading:eS,title:nS,icon:tS,iconExpanded:iS,panel:rS},aS=({children:n,id:e,isOpen:t=!1,onClick:i,title:r})=>{const[a,o]=M.useState(t),d=()=>{o(f=>!f),i&&i()};return L.jsxs(L.Fragment,{children:[L.jsx("div",{className:Uo.accordionBtnWrapper,children:L.jsxs("button",{id:`accordion-header-${e}`,className:Ke(Uo.heading),"aria-expanded":a,"aria-controls":`accordion-panel-${e}`,"data-expanded":a,onClick:d,children:[L.jsx(on,{type:"body-semibold",as:"h3",className:Uo.title,"data-expanded":a,children:r}),L.jsx(Fa,{name:"chevron_down",size:"24",className:Ke(Uo.icon,{[Uo.iconExpanded]:a})})]})}),L.jsx("div",{id:`accordion-panel-${e}`,className:Ke(Uo.panel),"data-expanded":a,"aria-labelledby":`accordion-header-${e}`,hidden:!a,children:n})]})},sS="_table_1w1xk_106",oS="_table__header_1w1xk_112",lS="_table__list_1w1xk_115",fS="_col_1w1xk_121",_i={table:sS,table__header:oS,table__list:lS,col:fS,"col--1":"_col--1_1w1xk_126","col--2":"_col--2_1w1xk_130","col--3":"_col--3_1w1xk_130","col--hidden":"_col--hidden_1w1xk_136"},dS=({header:n,list:e})=>{const t=o=>L.jsx(Fa,{name:"checkmark",size:"24",className:_i[`col--${o}`]}),i=o=>L.jsx(Fa,{name:"cross",size:"24",className:Ke(_i[`col--${o}`],_i["col--hidden"])}),r=(o,d)=>{switch(o){case!0:return i(d);case!1:return t(d);default:return L.jsx(on,{className:_i[`col--${d}`],type:"body-regular",children:o})}},a=()=>e&&e.map((o,d)=>L.jsxs(L.Fragment,{children:[!!d&&L.jsx("tr",{children:L.jsx(Cp,{})},`table_row_divider_${d}`),L.jsx("tr",{className:_i.col,children:o&&o.map((f,h)=>r(f,h+1))},`table_row_item_${d}`)]}));return L.jsx("section",{children:L.jsxs("table",{className:_i.table,children:[L.jsxs("thead",{className:_i.table__header,children:[L.jsx("th",{className:Ke(_i.col,_i["col--1"])}),n&&n.map((o,d)=>L.jsx("th",{className:Ke(_i.col,_i[`col--${d+2}`]),children:L.jsx(on,{type:"body-regular",children:o.label})},o.key))]}),L.jsx("tbody",{className:_i.table__list,children:a()})]})})};var cS=function(e){return uS(e)&&!hS(e)};function uS(n){return!!n&&typeof n=="object"}function hS(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||mS(n)}var pS=typeof Symbol=="function"&&Symbol.for,gS=pS?Symbol.for("react.element"):60103;function mS(n){return n.$$typeof===gS}function vS(n){return Array.isArray(n)?[]:{}}function Hc(n,e){return e.clone!==!1&&e.isMergeableObject(n)?jf(vS(n),n,e):n}function kS(n,e,t){return n.concat(e).map(function(i){return Hc(i,t)})}function wS(n,e,t){var i={};return t.isMergeableObject(n)&&Object.keys(n).forEach(function(r){i[r]=Hc(n[r],t)}),Object.keys(e).forEach(function(r){!t.isMergeableObject(e[r])||!n[r]?i[r]=Hc(e[r],t):i[r]=jf(n[r],e[r],t)}),i}function jf(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||kS,t.isMergeableObject=t.isMergeableObject||cS;var i=Array.isArray(e),r=Array.isArray(n),a=i===r;return a?i?t.arrayMerge(n,e,t):wS(n,e,t):Hc(e,t)}jf.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return jf(i,r,t)},{})};var Ph=jf,Rv=typeof global=="object"&&global&&global.Object===Object&&global,bS=typeof self=="object"&&self&&self.Object===Object&&self,kr=Rv||bS||Function("return this")(),Ra=kr.Symbol,Mv=Object.prototype,yS=Mv.hasOwnProperty,_S=Mv.toString,vf=Ra?Ra.toStringTag:void 0;function xS(n){var e=yS.call(n,vf),t=n[vf];try{n[vf]=void 0;var i=!0}catch{}var r=_S.call(n);return i&&(e?n[vf]=t:delete n[vf]),r}var SS=Object.prototype,CS=SS.toString;function ES(n){return CS.call(n)}var TS="[object Null]",FS="[object Undefined]",Qg=Ra?Ra.toStringTag:void 0;function Ns(n){return n==null?n===void 0?FS:TS:Qg&&Qg in Object(n)?xS(n):ES(n)}function Pv(n,e){return function(t){return n(e(t))}}var Bp=Pv(Object.getPrototypeOf,Object);function Vs(n){return n!=null&&typeof n=="object"}var RS="[object Object]",MS=Function.prototype,PS=Object.prototype,Av=MS.toString,AS=PS.hasOwnProperty,LS=Av.call(Object);function em(n){if(!Vs(n)||Ns(n)!=RS)return!1;var e=Bp(n);if(e===null)return!0;var t=AS.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Av.call(t)==LS}function zS(){this.__data__=[],this.size=0}function Lv(n,e){return n===e||n!==n&&e!==e}function yu(n,e){for(var t=n.length;t--;)if(Lv(n[t][0],e))return t;return-1}var BS=Array.prototype,IS=BS.splice;function OS(n){var e=this.__data__,t=yu(e,n);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():IS.call(e,t,1),--this.size,!0}function DS(n){var e=this.__data__,t=yu(e,n);return t<0?void 0:e[t][1]}function jS(n){return yu(this.__data__,n)>-1}function $S(n,e){var t=this.__data__,i=yu(t,n);return i<0?(++this.size,t.push([n,e])):t[i][1]=e,this}function Wr(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}Wr.prototype.clear=zS;Wr.prototype.delete=OS;Wr.prototype.get=DS;Wr.prototype.has=jS;Wr.prototype.set=$S;function HS(){this.__data__=new Wr,this.size=0}function NS(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function VS(n){return this.__data__.get(n)}function GS(n){return this.__data__.has(n)}function dd(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var WS="[object AsyncFunction]",US="[object Function]",ZS="[object GeneratorFunction]",qS="[object Proxy]";function zv(n){if(!dd(n))return!1;var e=Ns(n);return e==US||e==ZS||e==WS||e==qS}var U1=kr["__core-js_shared__"],nm=function(){var n=/[^.]+$/.exec(U1&&U1.keys&&U1.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function KS(n){return!!nm&&nm in n}var YS=Function.prototype,JS=YS.toString;function Gs(n){if(n!=null){try{return JS.call(n)}catch{}try{return n+""}catch{}}return""}var XS=/[\\^$.*+?()[\]{}|]/g,QS=/^\[object .+?Constructor\]$/,eC=Function.prototype,nC=Object.prototype,tC=eC.toString,iC=nC.hasOwnProperty,rC=RegExp("^"+tC.call(iC).replace(XS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aC(n){if(!dd(n)||KS(n))return!1;var e=zv(n)?rC:QS;return e.test(Gs(n))}function sC(n,e){return n==null?void 0:n[e]}function Ws(n,e){var t=sC(n,e);return aC(t)?t:void 0}var $f=Ws(kr,"Map"),Hf=Ws(Object,"create");function oC(){this.__data__=Hf?Hf(null):{},this.size=0}function lC(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var fC="__lodash_hash_undefined__",dC=Object.prototype,cC=dC.hasOwnProperty;function uC(n){var e=this.__data__;if(Hf){var t=e[n];return t===fC?void 0:t}return cC.call(e,n)?e[n]:void 0}var hC=Object.prototype,pC=hC.hasOwnProperty;function gC(n){var e=this.__data__;return Hf?e[n]!==void 0:pC.call(e,n)}var mC="__lodash_hash_undefined__";function vC(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Hf&&e===void 0?mC:e,this}function Ls(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}Ls.prototype.clear=oC;Ls.prototype.delete=lC;Ls.prototype.get=uC;Ls.prototype.has=gC;Ls.prototype.set=vC;function kC(){this.size=0,this.__data__={hash:new Ls,map:new($f||Wr),string:new Ls}}function wC(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function _u(n,e){var t=n.__data__;return wC(e)?t[typeof e=="string"?"string":"hash"]:t.map}function bC(n){var e=_u(this,n).delete(n);return this.size-=e?1:0,e}function yC(n){return _u(this,n).get(n)}function _C(n){return _u(this,n).has(n)}function xC(n,e){var t=_u(this,n),i=t.size;return t.set(n,e),this.size+=t.size==i?0:1,this}function Ia(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}Ia.prototype.clear=kC;Ia.prototype.delete=bC;Ia.prototype.get=yC;Ia.prototype.has=_C;Ia.prototype.set=xC;var SC=200;function CC(n,e){var t=this.__data__;if(t instanceof Wr){var i=t.__data__;if(!$f||i.length<SC-1)return i.push([n,e]),this.size=++t.size,this;t=this.__data__=new Ia(i)}return t.set(n,e),this.size=t.size,this}function pl(n){var e=this.__data__=new Wr(n);this.size=e.size}pl.prototype.clear=HS;pl.prototype.delete=NS;pl.prototype.get=VS;pl.prototype.has=GS;pl.prototype.set=CC;function EC(n,e){for(var t=-1,i=n==null?0:n.length;++t<i&&e(n[t],t,n)!==!1;);return n}var tm=function(){try{var n=Ws(Object,"defineProperty");return n({},"",{}),n}catch{}}();function Bv(n,e,t){e=="__proto__"&&tm?tm(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var TC=Object.prototype,FC=TC.hasOwnProperty;function Iv(n,e,t){var i=n[e];(!(FC.call(n,e)&&Lv(i,t))||t===void 0&&!(e in n))&&Bv(n,e,t)}function xu(n,e,t,i){var r=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var d=e[a],f=void 0;f===void 0&&(f=n[d]),r?Bv(t,d,f):Iv(t,d,f)}return t}function RC(n,e){for(var t=-1,i=Array(n);++t<n;)i[t]=e(t);return i}var MC="[object Arguments]";function im(n){return Vs(n)&&Ns(n)==MC}var Ov=Object.prototype,PC=Ov.hasOwnProperty,AC=Ov.propertyIsEnumerable,LC=im(function(){return arguments}())?im:function(n){return Vs(n)&&PC.call(n,"callee")&&!AC.call(n,"callee")},cd=Array.isArray;function zC(){return!1}var Dv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rm=Dv&&typeof module=="object"&&module&&!module.nodeType&&module,BC=rm&&rm.exports===Dv,am=BC?kr.Buffer:void 0,IC=am?am.isBuffer:void 0,jv=IC||zC,OC=9007199254740991,DC=/^(?:0|[1-9]\d*)$/;function jC(n,e){var t=typeof n;return e=e??OC,!!e&&(t=="number"||t!="symbol"&&DC.test(n))&&n>-1&&n%1==0&&n<e}var $C=9007199254740991;function $v(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=$C}var HC="[object Arguments]",NC="[object Array]",VC="[object Boolean]",GC="[object Date]",WC="[object Error]",UC="[object Function]",ZC="[object Map]",qC="[object Number]",KC="[object Object]",YC="[object RegExp]",JC="[object Set]",XC="[object String]",QC="[object WeakMap]",eE="[object ArrayBuffer]",nE="[object DataView]",tE="[object Float32Array]",iE="[object Float64Array]",rE="[object Int8Array]",aE="[object Int16Array]",sE="[object Int32Array]",oE="[object Uint8Array]",lE="[object Uint8ClampedArray]",fE="[object Uint16Array]",dE="[object Uint32Array]",Nn={};Nn[tE]=Nn[iE]=Nn[rE]=Nn[aE]=Nn[sE]=Nn[oE]=Nn[lE]=Nn[fE]=Nn[dE]=!0;Nn[HC]=Nn[NC]=Nn[eE]=Nn[VC]=Nn[nE]=Nn[GC]=Nn[WC]=Nn[UC]=Nn[ZC]=Nn[qC]=Nn[KC]=Nn[YC]=Nn[JC]=Nn[XC]=Nn[QC]=!1;function cE(n){return Vs(n)&&$v(n.length)&&!!Nn[Ns(n)]}function Ip(n){return function(e){return n(e)}}var Hv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Af=Hv&&typeof module=="object"&&module&&!module.nodeType&&module,uE=Af&&Af.exports===Hv,Z1=uE&&Rv.process,sl=function(){try{var n=Af&&Af.require&&Af.require("util").types;return n||Z1&&Z1.binding&&Z1.binding("util")}catch{}}(),sm=sl&&sl.isTypedArray,hE=sm?Ip(sm):cE,pE=Object.prototype,gE=pE.hasOwnProperty;function Nv(n,e){var t=cd(n),i=!t&&LC(n),r=!t&&!i&&jv(n),a=!t&&!i&&!r&&hE(n),o=t||i||r||a,d=o?RC(n.length,String):[],f=d.length;for(var h in n)(e||gE.call(n,h))&&!(o&&(h=="length"||r&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||jC(h,f)))&&d.push(h);return d}var mE=Object.prototype;function Op(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||mE;return n===t}var vE=Pv(Object.keys,Object),kE=Object.prototype,wE=kE.hasOwnProperty;function bE(n){if(!Op(n))return vE(n);var e=[];for(var t in Object(n))wE.call(n,t)&&t!="constructor"&&e.push(t);return e}function Vv(n){return n!=null&&$v(n.length)&&!zv(n)}function Dp(n){return Vv(n)?Nv(n):bE(n)}function yE(n,e){return n&&xu(e,Dp(e),n)}function _E(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var xE=Object.prototype,SE=xE.hasOwnProperty;function CE(n){if(!dd(n))return _E(n);var e=Op(n),t=[];for(var i in n)i=="constructor"&&(e||!SE.call(n,i))||t.push(i);return t}function jp(n){return Vv(n)?Nv(n,!0):CE(n)}function EE(n,e){return n&&xu(e,jp(e),n)}var Gv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,om=Gv&&typeof module=="object"&&module&&!module.nodeType&&module,TE=om&&om.exports===Gv,lm=TE?kr.Buffer:void 0,fm=lm?lm.allocUnsafe:void 0;function FE(n,e){if(e)return n.slice();var t=n.length,i=fm?fm(t):new n.constructor(t);return n.copy(i),i}function Wv(n,e){var t=-1,i=n.length;for(e||(e=Array(i));++t<i;)e[t]=n[t];return e}function RE(n,e){for(var t=-1,i=n==null?0:n.length,r=0,a=[];++t<i;){var o=n[t];e(o,t,n)&&(a[r++]=o)}return a}function Uv(){return[]}var ME=Object.prototype,PE=ME.propertyIsEnumerable,dm=Object.getOwnPropertySymbols,$p=dm?function(n){return n==null?[]:(n=Object(n),RE(dm(n),function(e){return PE.call(n,e)}))}:Uv;function AE(n,e){return xu(n,$p(n),e)}function Zv(n,e){for(var t=-1,i=e.length,r=n.length;++t<i;)n[r+t]=e[t];return n}var LE=Object.getOwnPropertySymbols,qv=LE?function(n){for(var e=[];n;)Zv(e,$p(n)),n=Bp(n);return e}:Uv;function zE(n,e){return xu(n,qv(n),e)}function Kv(n,e,t){var i=e(n);return cd(n)?i:Zv(i,t(n))}function BE(n){return Kv(n,Dp,$p)}function IE(n){return Kv(n,jp,qv)}var Ah=Ws(kr,"DataView"),Lh=Ws(kr,"Promise"),zh=Ws(kr,"Set"),Bh=Ws(kr,"WeakMap"),cm="[object Map]",OE="[object Object]",um="[object Promise]",hm="[object Set]",pm="[object WeakMap]",gm="[object DataView]",DE=Gs(Ah),jE=Gs($f),$E=Gs(Lh),HE=Gs(zh),NE=Gs(Bh),jr=Ns;(Ah&&jr(new Ah(new ArrayBuffer(1)))!=gm||$f&&jr(new $f)!=cm||Lh&&jr(Lh.resolve())!=um||zh&&jr(new zh)!=hm||Bh&&jr(new Bh)!=pm)&&(jr=function(n){var e=Ns(n),t=e==OE?n.constructor:void 0,i=t?Gs(t):"";if(i)switch(i){case DE:return gm;case jE:return cm;case $E:return um;case HE:return hm;case NE:return pm}return e});var VE=Object.prototype,GE=VE.hasOwnProperty;function WE(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&GE.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var mm=kr.Uint8Array;function Hp(n){var e=new n.constructor(n.byteLength);return new mm(e).set(new mm(n)),e}function UE(n,e){var t=e?Hp(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var ZE=/\w*$/;function qE(n){var e=new n.constructor(n.source,ZE.exec(n));return e.lastIndex=n.lastIndex,e}var vm=Ra?Ra.prototype:void 0,km=vm?vm.valueOf:void 0;function KE(n){return km?Object(km.call(n)):{}}function YE(n,e){var t=e?Hp(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var JE="[object Boolean]",XE="[object Date]",QE="[object Map]",eT="[object Number]",nT="[object RegExp]",tT="[object Set]",iT="[object String]",rT="[object Symbol]",aT="[object ArrayBuffer]",sT="[object DataView]",oT="[object Float32Array]",lT="[object Float64Array]",fT="[object Int8Array]",dT="[object Int16Array]",cT="[object Int32Array]",uT="[object Uint8Array]",hT="[object Uint8ClampedArray]",pT="[object Uint16Array]",gT="[object Uint32Array]";function mT(n,e,t){var i=n.constructor;switch(e){case aT:return Hp(n);case JE:case XE:return new i(+n);case sT:return UE(n,t);case oT:case lT:case fT:case dT:case cT:case uT:case hT:case pT:case gT:return YE(n,t);case QE:return new i;case eT:case iT:return new i(n);case nT:return qE(n);case tT:return new i;case rT:return KE(n)}}var wm=Object.create,vT=function(){function n(){}return function(e){if(!dd(e))return{};if(wm)return wm(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function kT(n){return typeof n.constructor=="function"&&!Op(n)?vT(Bp(n)):{}}var wT="[object Map]";function bT(n){return Vs(n)&&jr(n)==wT}var bm=sl&&sl.isMap,yT=bm?Ip(bm):bT,_T="[object Set]";function xT(n){return Vs(n)&&jr(n)==_T}var ym=sl&&sl.isSet,ST=ym?Ip(ym):xT,CT=1,ET=2,TT=4,Yv="[object Arguments]",FT="[object Array]",RT="[object Boolean]",MT="[object Date]",PT="[object Error]",Jv="[object Function]",AT="[object GeneratorFunction]",LT="[object Map]",zT="[object Number]",Xv="[object Object]",BT="[object RegExp]",IT="[object Set]",OT="[object String]",DT="[object Symbol]",jT="[object WeakMap]",$T="[object ArrayBuffer]",HT="[object DataView]",NT="[object Float32Array]",VT="[object Float64Array]",GT="[object Int8Array]",WT="[object Int16Array]",UT="[object Int32Array]",ZT="[object Uint8Array]",qT="[object Uint8ClampedArray]",KT="[object Uint16Array]",YT="[object Uint32Array]",jn={};jn[Yv]=jn[FT]=jn[$T]=jn[HT]=jn[RT]=jn[MT]=jn[NT]=jn[VT]=jn[GT]=jn[WT]=jn[UT]=jn[LT]=jn[zT]=jn[Xv]=jn[BT]=jn[IT]=jn[OT]=jn[DT]=jn[ZT]=jn[qT]=jn[KT]=jn[YT]=!0;jn[PT]=jn[Jv]=jn[jT]=!1;function Lf(n,e,t,i,r,a){var o,d=e&CT,f=e&ET,h=e&TT;if(o!==void 0)return o;if(!dd(n))return n;var p=cd(n);if(p){if(o=WE(n),!d)return Wv(n,o)}else{var m=jr(n),y=m==Jv||m==AT;if(jv(n))return FE(n,d);if(m==Xv||m==Yv||y&&!r){if(o=f||y?{}:kT(n),!d)return f?zE(n,EE(o,n)):AE(n,yE(o,n))}else{if(!jn[m])return r?n:{};o=mT(n,m,d)}}a||(a=new pl);var x=a.get(n);if(x)return x;a.set(n,o),ST(n)?n.forEach(function(F){o.add(Lf(F,e,t,F,n,a))}):yT(n)&&n.forEach(function(F,T){o.set(T,Lf(F,e,t,T,n,a))});var _=h?f?IE:BE:f?jp:Dp,R=p?void 0:_(n);return EC(R||n,function(F,T){R&&(T=F,F=n[T]),Iv(o,T,Lf(F,e,t,T,n,a))}),o}var JT=1,XT=4;function dc(n){return Lf(n,JT|XT)}var _m=Array.isArray,xm=Object.keys,QT=Object.prototype.hasOwnProperty,eF=typeof Element<"u";function Ih(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){var t=_m(n),i=_m(e),r,a,o;if(t&&i){if(a=n.length,a!=e.length)return!1;for(r=a;r--!==0;)if(!Ih(n[r],e[r]))return!1;return!0}if(t!=i)return!1;var d=n instanceof Date,f=e instanceof Date;if(d!=f)return!1;if(d&&f)return n.getTime()==e.getTime();var h=n instanceof RegExp,p=e instanceof RegExp;if(h!=p)return!1;if(h&&p)return n.toString()==e.toString();var m=xm(n);if(a=m.length,a!==xm(e).length)return!1;for(r=a;r--!==0;)if(!QT.call(e,m[r]))return!1;if(eF&&n instanceof Element&&e instanceof Element)return n===e;for(r=a;r--!==0;)if(o=m[r],!(o==="_owner"&&n.$$typeof)&&!Ih(n[o],e[o]))return!1;return!0}return n!==n&&e!==e}var nF=function(e,t){try{return Ih(e,t)}catch(i){if(i.message&&i.message.match(/stack|recursion/i)||i.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",i.name,i.message),!1;throw i}};const bs=op(nF);var tF=process.env.NODE_ENV==="production";function qo(n,e){if(!tF){var t="Warning: "+e;typeof console<"u"&&console.warn(t);try{throw Error(t)}catch{}}}var iF=4;function Sm(n){return Lf(n,iF)}function Qv(n,e){for(var t=-1,i=n==null?0:n.length,r=Array(i);++t<i;)r[t]=e(n[t],t,n);return r}var rF="[object Symbol]";function Np(n){return typeof n=="symbol"||Vs(n)&&Ns(n)==rF}var aF="Expected a function";function Vp(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(aF);var t=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=t.cache;if(a.has(r))return a.get(r);var o=n.apply(this,i);return t.cache=a.set(r,o)||a,o};return t.cache=new(Vp.Cache||Ia),t}Vp.Cache=Ia;var sF=500;function oF(n){var e=Vp(n,function(i){return t.size===sF&&t.clear(),i}),t=e.cache;return e}var lF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fF=/\\(\\)?/g,dF=oF(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(lF,function(t,i,r,a){e.push(r?a.replace(fF,"$1"):i||t)}),e}),cF=1/0;function uF(n){if(typeof n=="string"||Np(n))return n;var e=n+"";return e=="0"&&1/n==-cF?"-0":e}var hF=1/0,Cm=Ra?Ra.prototype:void 0,Em=Cm?Cm.toString:void 0;function e2(n){if(typeof n=="string")return n;if(cd(n))return Qv(n,e2)+"";if(Np(n))return Em?Em.call(n):"";var e=n+"";return e=="0"&&1/n==-hF?"-0":e}function pF(n){return n==null?"":e2(n)}function n2(n){return cd(n)?Qv(n,uF):Np(n)?[n]:Wv(dF(pF(n)))}var t2=lp,gF={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i2={};i2[t2.ForwardRef]=gF;i2[t2.Memo]=mF;function lt(){return lt=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},lt.apply(this,arguments)}function r2(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,a;for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}var Su=M.createContext(void 0);Su.displayName="FormikContext";Su.Provider;Su.Consumer;function vF(){var n=M.useContext(Su);return n||(process.env.NODE_ENV!=="production"?qo(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):qo()),n}var Ni=function(e){return typeof e=="function"},Cu=function(e){return e!==null&&typeof e=="object"},kF=function(e){return String(Math.floor(Number(e)))===e},q1=function(e){return Object.prototype.toString.call(e)==="[object String]"},K1=function(e){return Cu(e)&&Ni(e.then)};function wF(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function oi(n,e,t,i){i===void 0&&(i=0);for(var r=n2(e);n&&i<r.length;)n=n[r[i++]];return i!==r.length&&!n||n===void 0?t:n}function xs(n,e,t){for(var i=Sm(n),r=i,a=0,o=n2(e);a<o.length-1;a++){var d=o[a],f=oi(n,o.slice(0,a+1));if(f&&(Cu(f)||Array.isArray(f)))r=r[d]=Sm(f);else{var h=o[a+1];r=r[d]=kF(h)&&Number(h)>=0?[]:{}}}return(a===0?n:r)[o[a]]===t?n:(t===void 0?delete r[o[a]]:r[o[a]]=t,a===0&&t===void 0&&delete i[o[a]],i)}function a2(n,e,t,i){t===void 0&&(t=new WeakMap),i===void 0&&(i={});for(var r=0,a=Object.keys(n);r<a.length;r++){var o=a[r],d=n[o];Cu(d)?t.get(d)||(t.set(d,!0),i[o]=Array.isArray(d)?[]:{},a2(d,e,t,i[o])):i[o]=e}return i}function bF(n,e){switch(e.type){case"SET_VALUES":return lt({},n,{values:e.payload});case"SET_TOUCHED":return lt({},n,{touched:e.payload});case"SET_ERRORS":return bs(n.errors,e.payload)?n:lt({},n,{errors:e.payload});case"SET_STATUS":return lt({},n,{status:e.payload});case"SET_ISSUBMITTING":return lt({},n,{isSubmitting:e.payload});case"SET_ISVALIDATING":return lt({},n,{isValidating:e.payload});case"SET_FIELD_VALUE":return lt({},n,{values:xs(n.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return lt({},n,{touched:xs(n.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return lt({},n,{errors:xs(n.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return lt({},n,e.payload);case"SET_FORMIK_STATE":return e.payload(n);case"SUBMIT_ATTEMPT":return lt({},n,{touched:a2(n.values,!0),isSubmitting:!0,submitCount:n.submitCount+1});case"SUBMIT_FAILURE":return lt({},n,{isSubmitting:!1});case"SUBMIT_SUCCESS":return lt({},n,{isSubmitting:!1});default:return n}}var ks={},cc={};function yF(n){var e=n.validateOnChange,t=e===void 0?!0:e,i=n.validateOnBlur,r=i===void 0?!0:i,a=n.validateOnMount,o=a===void 0?!1:a,d=n.isInitialValid,f=n.enableReinitialize,h=f===void 0?!1:f,p=n.onSubmit,m=r2(n,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),y=lt({validateOnChange:t,validateOnBlur:r,validateOnMount:o,onSubmit:p},m),x=M.useRef(y.initialValues),_=M.useRef(y.initialErrors||ks),R=M.useRef(y.initialTouched||cc),F=M.useRef(y.initialStatus),T=M.useRef(!1),D=M.useRef({});process.env.NODE_ENV!=="production"&&M.useEffect(function(){typeof d>"u"||(process.env.NODE_ENV!=="production"?qo(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):qo())},[]),M.useEffect(function(){return T.current=!0,function(){T.current=!1}},[]);var I=M.useState(0),N=I[1],B=M.useRef({values:dc(y.initialValues),errors:dc(y.initialErrors)||ks,touched:dc(y.initialTouched)||cc,status:dc(y.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),V=B.current,W=M.useCallback(function(Y){var we=B.current;B.current=bF(we,Y),we!==B.current&&N(function(Ee){return Ee+1})},[]),ue=M.useCallback(function(Y,we){return new Promise(function(Ee,je){var We=y.validate(Y,we);We==null?Ee(ks):K1(We)?We.then(function(Ue){Ee(Ue||ks)},function(Ue){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",Ue),je(Ue)}):Ee(We)})},[y.validate]),Q=M.useCallback(function(Y,we){var Ee=y.validationSchema,je=Ni(Ee)?Ee(we):Ee,We=we&&je.validateAt?je.validateAt(we,Y):xF(Y,je);return new Promise(function(Ue,Xe){We.then(function(){Ue(ks)},function($n){$n.name==="ValidationError"?Ue(_F($n)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",$n),Xe($n))})})},[y.validationSchema]),K=M.useCallback(function(Y,we){return new Promise(function(Ee){return Ee(D.current[Y].validate(we))})},[]),fe=M.useCallback(function(Y){var we=Object.keys(D.current).filter(function(je){return Ni(D.current[je].validate)}),Ee=we.length>0?we.map(function(je){return K(je,oi(Y,je))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ee).then(function(je){return je.reduce(function(We,Ue,Xe){return Ue==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ue&&(We=xs(We,we[Xe],Ue)),We},{})})},[K]),ee=M.useCallback(function(Y){return Promise.all([fe(Y),y.validationSchema?Q(Y):{},y.validate?ue(Y):{}]).then(function(we){var Ee=we[0],je=we[1],We=we[2],Ue=Ph.all([Ee,je,We],{arrayMerge:SF});return Ue})},[y.validate,y.validationSchema,fe,ue,Q]),te=xi(function(Y){return Y===void 0&&(Y=V.values),W({type:"SET_ISVALIDATING",payload:!0}),ee(Y).then(function(we){return T.current&&(W({type:"SET_ISVALIDATING",payload:!1}),W({type:"SET_ERRORS",payload:we})),we})});M.useEffect(function(){o&&T.current===!0&&bs(x.current,y.initialValues)&&te(x.current)},[o,te]);var ge=M.useCallback(function(Y){var we=Y&&Y.values?Y.values:x.current,Ee=Y&&Y.errors?Y.errors:_.current?_.current:y.initialErrors||{},je=Y&&Y.touched?Y.touched:R.current?R.current:y.initialTouched||{},We=Y&&Y.status?Y.status:F.current?F.current:y.initialStatus;x.current=we,_.current=Ee,R.current=je,F.current=We;var Ue=function(){W({type:"RESET_FORM",payload:{isSubmitting:!!Y&&!!Y.isSubmitting,errors:Ee,touched:je,status:We,values:we,isValidating:!!Y&&!!Y.isValidating,submitCount:Y&&Y.submitCount&&typeof Y.submitCount=="number"?Y.submitCount:0}})};if(y.onReset){var Xe=y.onReset(V.values,ln);K1(Xe)?Xe.then(Ue):Ue()}else Ue()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);M.useEffect(function(){T.current===!0&&!bs(x.current,y.initialValues)&&h&&(x.current=y.initialValues,ge(),o&&te(x.current))},[h,y.initialValues,ge,o,te]),M.useEffect(function(){h&&T.current===!0&&!bs(_.current,y.initialErrors)&&(_.current=y.initialErrors||ks,W({type:"SET_ERRORS",payload:y.initialErrors||ks}))},[h,y.initialErrors]),M.useEffect(function(){h&&T.current===!0&&!bs(R.current,y.initialTouched)&&(R.current=y.initialTouched||cc,W({type:"SET_TOUCHED",payload:y.initialTouched||cc}))},[h,y.initialTouched]),M.useEffect(function(){h&&T.current===!0&&!bs(F.current,y.initialStatus)&&(F.current=y.initialStatus,W({type:"SET_STATUS",payload:y.initialStatus}))},[h,y.initialStatus,y.initialTouched]);var oe=xi(function(Y){if(D.current[Y]&&Ni(D.current[Y].validate)){var we=oi(V.values,Y),Ee=D.current[Y].validate(we);return K1(Ee)?(W({type:"SET_ISVALIDATING",payload:!0}),Ee.then(function(je){return je}).then(function(je){W({type:"SET_FIELD_ERROR",payload:{field:Y,value:je}}),W({type:"SET_ISVALIDATING",payload:!1})})):(W({type:"SET_FIELD_ERROR",payload:{field:Y,value:Ee}}),Promise.resolve(Ee))}else if(y.validationSchema)return W({type:"SET_ISVALIDATING",payload:!0}),Q(V.values,Y).then(function(je){return je}).then(function(je){W({type:"SET_FIELD_ERROR",payload:{field:Y,value:oi(je,Y)}}),W({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),le=M.useCallback(function(Y,we){var Ee=we.validate;D.current[Y]={validate:Ee}},[]),G=M.useCallback(function(Y){delete D.current[Y]},[]),re=xi(function(Y,we){W({type:"SET_TOUCHED",payload:Y});var Ee=we===void 0?r:we;return Ee?te(V.values):Promise.resolve()}),ke=M.useCallback(function(Y){W({type:"SET_ERRORS",payload:Y})},[]),ie=xi(function(Y,we){var Ee=Ni(Y)?Y(V.values):Y;W({type:"SET_VALUES",payload:Ee});var je=we===void 0?t:we;return je?te(Ee):Promise.resolve()}),he=M.useCallback(function(Y,we){W({type:"SET_FIELD_ERROR",payload:{field:Y,value:we}})},[]),_e=xi(function(Y,we,Ee){W({type:"SET_FIELD_VALUE",payload:{field:Y,value:we}});var je=Ee===void 0?t:Ee;return je?te(xs(V.values,Y,we)):Promise.resolve()}),De=M.useCallback(function(Y,we){var Ee=we,je=Y,We;if(!q1(Y)){Y.persist&&Y.persist();var Ue=Y.target?Y.target:Y.currentTarget,Xe=Ue.type,$n=Ue.name,bt=Ue.id,Ce=Ue.value,ze=Ue.checked,un=Ue.outerHTML,An=Ue.options,Qt=Ue.multiple;Ee=we||$n||bt,!Ee&&process.env.NODE_ENV!=="production"&&Tm({htmlContent:un,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),je=/number|range/.test(Xe)?(We=parseFloat(Ce),isNaN(We)?"":We):/checkbox/.test(Xe)?EF(oi(V.values,Ee),ze,Ce):An&&Qt?CF(An):Ce}Ee&&_e(Ee,je)},[_e,V.values]),$e=xi(function(Y){if(q1(Y))return function(we){return De(we,Y)};De(Y)}),Ae=xi(function(Y,we,Ee){we===void 0&&(we=!0),W({type:"SET_FIELD_TOUCHED",payload:{field:Y,value:we}});var je=Ee===void 0?r:Ee;return je?te(V.values):Promise.resolve()}),Le=M.useCallback(function(Y,we){Y.persist&&Y.persist();var Ee=Y.target,je=Ee.name,We=Ee.id,Ue=Ee.outerHTML,Xe=we||je||We;!Xe&&process.env.NODE_ENV!=="production"&&Tm({htmlContent:Ue,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Ae(Xe,!0)},[Ae]),Re=xi(function(Y){if(q1(Y))return function(we){return Le(we,Y)};Le(Y)}),Te=M.useCallback(function(Y){Ni(Y)?W({type:"SET_FORMIK_STATE",payload:Y}):W({type:"SET_FORMIK_STATE",payload:function(){return Y}})},[]),Me=M.useCallback(function(Y){W({type:"SET_STATUS",payload:Y})},[]),Ie=M.useCallback(function(Y){W({type:"SET_ISSUBMITTING",payload:Y})},[]),nn=xi(function(){return W({type:"SUBMIT_ATTEMPT"}),te().then(function(Y){var we=Y instanceof Error,Ee=!we&&Object.keys(Y).length===0;if(Ee){var je;try{if(je=Sn(),je===void 0)return}catch(We){throw We}return Promise.resolve(je).then(function(We){return T.current&&W({type:"SUBMIT_SUCCESS"}),We}).catch(function(We){if(T.current)throw W({type:"SUBMIT_FAILURE"}),We})}else if(T.current&&(W({type:"SUBMIT_FAILURE"}),we))throw Y})}),Se=xi(function(Y){if(Y&&Y.preventDefault&&Ni(Y.preventDefault)&&Y.preventDefault(),Y&&Y.stopPropagation&&Ni(Y.stopPropagation)&&Y.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var we=wF();we!==null&&we instanceof HTMLButtonElement&&(we.attributes&&we.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?qo(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):qo()))}nn().catch(function(Ee){console.warn("Warning: An unhandled error was caught from submitForm()",Ee)})}),ln={resetForm:ge,validateForm:te,validateField:oe,setErrors:ke,setFieldError:he,setFieldTouched:Ae,setFieldValue:_e,setStatus:Me,setSubmitting:Ie,setTouched:re,setValues:ie,setFormikState:Te,submitForm:nn},Sn=xi(function(){return p(V.values,ln)}),Wn=xi(function(Y){Y&&Y.preventDefault&&Ni(Y.preventDefault)&&Y.preventDefault(),Y&&Y.stopPropagation&&Ni(Y.stopPropagation)&&Y.stopPropagation(),ge()}),Kn=M.useCallback(function(Y){return{value:oi(V.values,Y),error:oi(V.errors,Y),touched:!!oi(V.touched,Y),initialValue:oi(x.current,Y),initialTouched:!!oi(R.current,Y),initialError:oi(_.current,Y)}},[V.errors,V.touched,V.values]),dt=M.useCallback(function(Y){return{setValue:function(Ee,je){return _e(Y,Ee,je)},setTouched:function(Ee,je){return Ae(Y,Ee,je)},setError:function(Ee){return he(Y,Ee)}}},[_e,Ae,he]),Un=M.useCallback(function(Y){var we=Cu(Y),Ee=we?Y.name:Y,je=oi(V.values,Ee),We={name:Ee,value:je,onChange:$e,onBlur:Re};if(we){var Ue=Y.type,Xe=Y.value,$n=Y.as,bt=Y.multiple;Ue==="checkbox"?Xe===void 0?We.checked=!!je:(We.checked=!!(Array.isArray(je)&&~je.indexOf(Xe)),We.value=Xe):Ue==="radio"?(We.checked=je===Xe,We.value=Xe):$n==="select"&&bt&&(We.value=We.value||[],We.multiple=!0)}return We},[Re,$e,V.values]),Zn=M.useMemo(function(){return!bs(x.current,V.values)},[x.current,V.values]),ct=M.useMemo(function(){return typeof d<"u"?Zn?V.errors&&Object.keys(V.errors).length===0:d!==!1&&Ni(d)?d(y):d:V.errors&&Object.keys(V.errors).length===0},[d,Zn,V.errors,y]),Vt=lt({},V,{initialValues:x.current,initialErrors:_.current,initialTouched:R.current,initialStatus:F.current,handleBlur:Re,handleChange:$e,handleReset:Wn,handleSubmit:Se,resetForm:ge,setErrors:ke,setFormikState:Te,setFieldTouched:Ae,setFieldValue:_e,setFieldError:he,setStatus:Me,setSubmitting:Ie,setTouched:re,setValues:ie,submitForm:nn,validateForm:te,validateField:oe,isValid:ct,dirty:Zn,unregisterField:G,registerField:le,getFieldProps:Un,getFieldMeta:Kn,getFieldHelpers:dt,validateOnBlur:r,validateOnChange:t,validateOnMount:o});return Vt}function Tm(n){var e=n.htmlContent,t=n.documentationAnchorLink,i=n.handlerName;console.warn("Warning: Formik called `"+i+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+e+`
|
|
216
|
+
Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An error occurred:</p><pre>"+li(i.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(i);throw i}};const As=new _x;function Rn(n,e){return As.parse(n,e)}Rn.options=Rn.setOptions=function(n){return As.setOptions(n),Rn.defaults=As.defaults,pv(Rn.defaults),Rn};Rn.getDefaults=Fp;Rn.defaults=Hs;Rn.use=function(...n){return As.use(...n),Rn.defaults=As.defaults,pv(Rn.defaults),Rn};Rn.walkTokens=function(n,e){return As.walkTokens(n,e)};Rn.parseInline=As.parseInline;Rn.Parser=dr;Rn.parser=dr.parse;Rn.Renderer=$c;Rn.TextRenderer=zp;Rn.Lexer=fr;Rn.lexer=fr.lex;Rn.Tokenizer=Dc;Rn.Hooks=Pf;Rn.parse=Rn;Rn.options;Rn.setOptions;Rn.use;Rn.walkTokens;Rn.parseInline;dr.parse;fr.lex;const xx=n=>n.replace(/"/g,"QUOTE"),Sx=n=>n.replace(new RegExp("QUOTE","g"),'"');function Cx({className:n,inline:e=!1,text:t}){const i=Sx(B8(xx(t)));return L.jsx("span",{className:n,dangerouslySetInnerHTML:{__html:e?Rn.parseInline(i):Rn.parse(i)}})}const Ex="_fieldset_o9167_106",Tx={fieldset:Ex},Fx=({children:n,className:e,disabled:t,form:i,name:r})=>{const a=M.Children.map(n,o=>{if(M.isValidElement(o))return M.cloneElement(o,{disabled:t})});return L.jsx("fieldset",{className:Ke(Tx.fieldset,e),disabled:t,name:r,form:i,children:a})},Rx=({ariaLabel:n,ariaLabelledBy:e,children:t,className:i,id:r})=>L.jsx("form",{className:i,"aria-label":n,"aria-labelledby":e,id:r,children:t}),Mx="_overlay_50enn_106",Px="_sheet_50enn_117",Ax="_sheetWrapper_50enn_130",Lx="_sheetBody_50enn_138",zx="_sheetHeader_50enn_141",Bx="_sheetFooter_50enn_153",Wo={overlay:Mx,"fade-in":"_fade-in_50enn_1",sheet:Px,"slide-up":"_slide-up_50enn_1",sheetWrapper:Ax,sheetBody:Lx,sheetHeader:zx,sheetFooter:Bx},Ix=({ariaLabel:n,ctaButtonProps:e,linkProps:t,onClose:i,open:r,sheetBody:a,sheetHeader:o})=>(M.useEffect(()=>(r&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[r]),r?L.jsxs(L.Fragment,{children:[L.jsx("div",{className:Wo.overlay,onClick:i,"data-testid":"overlay"}),L.jsx("dialog",{className:Wo.sheet,"aria-label":n,"aria-modal":"true",open:r,children:L.jsx("div",{className:Wo.sheetWrapper,children:L.jsxs("section",{role:"document",children:[L.jsx("header",{className:Wo.sheetHeader,children:o}),L.jsx("div",{className:Wo.sheetBody,children:L.jsx(od,{children:a})}),L.jsxs("footer",{className:Wo.sheetFooter,children:[e&&L.jsx(mu,{...e}),t&&L.jsx(sd,{...t})]})]})})})]}):null),Ox="_backdrop_1lf8q_106",Dx={backdrop:Ox},Ev=M.forwardRef((n,e)=>{const{ownerState:t,...i}=n;return L.jsx("div",{ref:e,...i,className:Dx.backdrop})});Ev.displayName="Backdrop";const jx="_modal_9duh2_106",$x="_modalWrapper_9duh2_114",Hx="_modalHeader_9duh2_130",Nx="_crossCircle_9duh2_146",Vx="_modalFooter_9duh2_149",gf={modal:jx,modalWrapper:$x,modalHeader:Hx,crossCircle:Nx,modalFooter:Vx},Tv=({ariaLabel:n,ariaLabelledBy:e,closeButtonText:t="Abbrechen",headerTitle:i,modalBody:r,modalFooter:a,onClose:o,open:d})=>L.jsx(_p,{"aria-label":n,"aria-labelledby":e,open:d,onClose:o,slots:{backdrop:Ev},className:gf.modal,children:L.jsxs("div",{className:gf.modalWrapper,children:[L.jsx(rl,{className:gf.modalHeader,headline:i,rightElement:L.jsx(Xt,{icon:"cross_circle",onClick:o,size:"small",ariaLabel:t,className:gf.crossCircle})}),L.jsx(od,{children:r}),L.jsxs("div",{className:gf.modalFooter,children:[L.jsx(sd,{onClick:o,color:"blue",size:"large",text:t}),a]})]})}),Gx="_base_pz0sp_106",Wx={base:Gx};var _c=(n=>(n[n.lg=16]="lg",n[n.md=12]="md",n[n.sm=8]="sm",n[n.xl=24]="xl",n))(_c||{});const bu=M.forwardRef(({anchor:n,children:e,container:t,handleClickAway:i,id:r,offset:a="sm",open:o,placement:d,strategy:f="fixed"},h)=>{let p=_c.sm;typeof a=="object"?p=a:_c[a]&&(p=_c[a]);let m;return i?m=L.jsx(Rc,{onClickAway:i,touchEvent:!1,children:L.jsx("div",{children:e})}):m=e,L.jsx(Q0,{ref:h,className:Wx.base,id:r,open:o,anchor:n,offset:p,placement:d,container:t,strategy:f,children:m})});bu.displayName="Popup";const Ux="_backdrop_11wot_106",Zx={backdrop:Ux},Fv=M.forwardRef((n,e)=>L.jsx("div",{ref:e,...n,className:Zx.backdrop}));Fv.displayName="Backdrop";const qx="_sheet_qnncf_106",Kx="_sheetWrapper_qnncf_114",Yx="_sheetHeader_qnncf_126",Jx="_sheetFooter_qnncf_148",mf={sheet:qx,sheetWrapper:Kx,sheetHeader:Yx,sheetFooter:Jx,"sheetFooter--alwaysVisible":"_sheetFooter--alwaysVisible_qnncf_156"},Xx=({ariaLabel:n,ariaLabelledBy:e,closeButtonText:t="Abbrechen",onClose:i,open:r,sheetBody:a,sheetFooter:o,sheetHeader:d})=>L.jsx(_p,{"aria-label":n,"aria-labelledby":e,open:r,onClose:i,slots:{backdrop:Fv},className:mf.sheet,children:L.jsxs("div",{className:mf.sheetWrapper,children:[L.jsx("div",{className:mf.sheetHeader,children:d}),a,L.jsxs("div",{className:Ke(mf.sheetFooter,{[mf["sheetFooter--alwaysVisible"]]:!!o}),children:[L.jsx(sd,{onClick:i,color:"blue",size:"large",text:t}),o]})]})}),Qx="_accordionBtnWrapper_sgbg8_106",eS="_heading_sgbg8_111",nS="_title_sgbg8_123",tS="_icon_sgbg8_140",iS="_iconExpanded_sgbg8_146",rS="_panel_sgbg8_154",Uo={accordionBtnWrapper:Qx,heading:eS,title:nS,icon:tS,iconExpanded:iS,panel:rS},aS=({children:n,id:e,isOpen:t=!1,onClick:i,title:r})=>{const[a,o]=M.useState(t),d=()=>{o(f=>!f),i&&i()};return L.jsxs(L.Fragment,{children:[L.jsx("div",{className:Uo.accordionBtnWrapper,children:L.jsxs("button",{id:`accordion-header-${e}`,className:Ke(Uo.heading),"aria-expanded":a,"aria-controls":`accordion-panel-${e}`,"data-expanded":a,onClick:d,children:[L.jsx(on,{type:"body-semibold",as:"h3",className:Uo.title,"data-expanded":a,children:r}),L.jsx(Fa,{name:"chevron_down",size:"24",className:Ke(Uo.icon,{[Uo.iconExpanded]:a})})]})}),L.jsx("div",{id:`accordion-panel-${e}`,className:Ke(Uo.panel),"data-expanded":a,"aria-labelledby":`accordion-header-${e}`,hidden:!a,children:n})]})},sS="_table_1w1xk_106",oS="_table__header_1w1xk_112",lS="_table__list_1w1xk_115",fS="_col_1w1xk_121",_i={table:sS,table__header:oS,table__list:lS,col:fS,"col--1":"_col--1_1w1xk_126","col--2":"_col--2_1w1xk_130","col--3":"_col--3_1w1xk_130","col--hidden":"_col--hidden_1w1xk_136"},dS=({header:n,list:e})=>{const t=o=>L.jsx(Fa,{name:"checkmark",size:"24",className:_i[`col--${o}`]}),i=o=>L.jsx(Fa,{name:"cross",size:"24",className:Ke(_i[`col--${o}`],_i["col--hidden"])}),r=(o,d)=>{switch(o){case!0:return i(d);case!1:return t(d);default:return L.jsx(on,{className:_i[`col--${d}`],type:"body-regular",children:o})}},a=()=>e&&e.map((o,d)=>L.jsxs(L.Fragment,{children:[!!d&&L.jsx("tr",{children:L.jsx(Cp,{})},`table_row_divider_${d}`),L.jsx("tr",{className:_i.col,children:o&&o.map((f,h)=>r(f,h+1))},`table_row_item_${d}`)]}));return L.jsx("section",{children:L.jsxs("table",{className:_i.table,children:[L.jsxs("thead",{className:_i.table__header,children:[L.jsx("th",{className:Ke(_i.col,_i["col--1"])}),n&&n.map((o,d)=>L.jsx("th",{className:Ke(_i.col,_i[`col--${d+2}`]),children:L.jsx(on,{type:"body-regular",children:o.label})},o.key))]}),L.jsx("tbody",{className:_i.table__list,children:a()})]})})};var cS=function(e){return uS(e)&&!hS(e)};function uS(n){return!!n&&typeof n=="object"}function hS(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||mS(n)}var pS=typeof Symbol=="function"&&Symbol.for,gS=pS?Symbol.for("react.element"):60103;function mS(n){return n.$$typeof===gS}function vS(n){return Array.isArray(n)?[]:{}}function Hc(n,e){return e.clone!==!1&&e.isMergeableObject(n)?jf(vS(n),n,e):n}function kS(n,e,t){return n.concat(e).map(function(i){return Hc(i,t)})}function wS(n,e,t){var i={};return t.isMergeableObject(n)&&Object.keys(n).forEach(function(r){i[r]=Hc(n[r],t)}),Object.keys(e).forEach(function(r){!t.isMergeableObject(e[r])||!n[r]?i[r]=Hc(e[r],t):i[r]=jf(n[r],e[r],t)}),i}function jf(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||kS,t.isMergeableObject=t.isMergeableObject||cS;var i=Array.isArray(e),r=Array.isArray(n),a=i===r;return a?i?t.arrayMerge(n,e,t):wS(n,e,t):Hc(e,t)}jf.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,r){return jf(i,r,t)},{})};var Ph=jf,Rv=typeof global=="object"&&global&&global.Object===Object&&global,bS=typeof self=="object"&&self&&self.Object===Object&&self,kr=Rv||bS||Function("return this")(),Ra=kr.Symbol,Mv=Object.prototype,yS=Mv.hasOwnProperty,_S=Mv.toString,vf=Ra?Ra.toStringTag:void 0;function xS(n){var e=yS.call(n,vf),t=n[vf];try{n[vf]=void 0;var i=!0}catch{}var r=_S.call(n);return i&&(e?n[vf]=t:delete n[vf]),r}var SS=Object.prototype,CS=SS.toString;function ES(n){return CS.call(n)}var TS="[object Null]",FS="[object Undefined]",Qg=Ra?Ra.toStringTag:void 0;function Ns(n){return n==null?n===void 0?FS:TS:Qg&&Qg in Object(n)?xS(n):ES(n)}function Pv(n,e){return function(t){return n(e(t))}}var Bp=Pv(Object.getPrototypeOf,Object);function Vs(n){return n!=null&&typeof n=="object"}var RS="[object Object]",MS=Function.prototype,PS=Object.prototype,Av=MS.toString,AS=PS.hasOwnProperty,LS=Av.call(Object);function em(n){if(!Vs(n)||Ns(n)!=RS)return!1;var e=Bp(n);if(e===null)return!0;var t=AS.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Av.call(t)==LS}function zS(){this.__data__=[],this.size=0}function Lv(n,e){return n===e||n!==n&&e!==e}function yu(n,e){for(var t=n.length;t--;)if(Lv(n[t][0],e))return t;return-1}var BS=Array.prototype,IS=BS.splice;function OS(n){var e=this.__data__,t=yu(e,n);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():IS.call(e,t,1),--this.size,!0}function DS(n){var e=this.__data__,t=yu(e,n);return t<0?void 0:e[t][1]}function jS(n){return yu(this.__data__,n)>-1}function $S(n,e){var t=this.__data__,i=yu(t,n);return i<0?(++this.size,t.push([n,e])):t[i][1]=e,this}function Wr(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}Wr.prototype.clear=zS;Wr.prototype.delete=OS;Wr.prototype.get=DS;Wr.prototype.has=jS;Wr.prototype.set=$S;function HS(){this.__data__=new Wr,this.size=0}function NS(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function VS(n){return this.__data__.get(n)}function GS(n){return this.__data__.has(n)}function dd(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var WS="[object AsyncFunction]",US="[object Function]",ZS="[object GeneratorFunction]",qS="[object Proxy]";function zv(n){if(!dd(n))return!1;var e=Ns(n);return e==US||e==ZS||e==WS||e==qS}var U1=kr["__core-js_shared__"],nm=function(){var n=/[^.]+$/.exec(U1&&U1.keys&&U1.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function KS(n){return!!nm&&nm in n}var YS=Function.prototype,JS=YS.toString;function Gs(n){if(n!=null){try{return JS.call(n)}catch{}try{return n+""}catch{}}return""}var XS=/[\\^$.*+?()[\]{}|]/g,QS=/^\[object .+?Constructor\]$/,eC=Function.prototype,nC=Object.prototype,tC=eC.toString,iC=nC.hasOwnProperty,rC=RegExp("^"+tC.call(iC).replace(XS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aC(n){if(!dd(n)||KS(n))return!1;var e=zv(n)?rC:QS;return e.test(Gs(n))}function sC(n,e){return n==null?void 0:n[e]}function Ws(n,e){var t=sC(n,e);return aC(t)?t:void 0}var $f=Ws(kr,"Map"),Hf=Ws(Object,"create");function oC(){this.__data__=Hf?Hf(null):{},this.size=0}function lC(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var fC="__lodash_hash_undefined__",dC=Object.prototype,cC=dC.hasOwnProperty;function uC(n){var e=this.__data__;if(Hf){var t=e[n];return t===fC?void 0:t}return cC.call(e,n)?e[n]:void 0}var hC=Object.prototype,pC=hC.hasOwnProperty;function gC(n){var e=this.__data__;return Hf?e[n]!==void 0:pC.call(e,n)}var mC="__lodash_hash_undefined__";function vC(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Hf&&e===void 0?mC:e,this}function Ls(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}Ls.prototype.clear=oC;Ls.prototype.delete=lC;Ls.prototype.get=uC;Ls.prototype.has=gC;Ls.prototype.set=vC;function kC(){this.size=0,this.__data__={hash:new Ls,map:new($f||Wr),string:new Ls}}function wC(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function _u(n,e){var t=n.__data__;return wC(e)?t[typeof e=="string"?"string":"hash"]:t.map}function bC(n){var e=_u(this,n).delete(n);return this.size-=e?1:0,e}function yC(n){return _u(this,n).get(n)}function _C(n){return _u(this,n).has(n)}function xC(n,e){var t=_u(this,n),i=t.size;return t.set(n,e),this.size+=t.size==i?0:1,this}function Ia(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var i=n[e];this.set(i[0],i[1])}}Ia.prototype.clear=kC;Ia.prototype.delete=bC;Ia.prototype.get=yC;Ia.prototype.has=_C;Ia.prototype.set=xC;var SC=200;function CC(n,e){var t=this.__data__;if(t instanceof Wr){var i=t.__data__;if(!$f||i.length<SC-1)return i.push([n,e]),this.size=++t.size,this;t=this.__data__=new Ia(i)}return t.set(n,e),this.size=t.size,this}function pl(n){var e=this.__data__=new Wr(n);this.size=e.size}pl.prototype.clear=HS;pl.prototype.delete=NS;pl.prototype.get=VS;pl.prototype.has=GS;pl.prototype.set=CC;function EC(n,e){for(var t=-1,i=n==null?0:n.length;++t<i&&e(n[t],t,n)!==!1;);return n}var tm=function(){try{var n=Ws(Object,"defineProperty");return n({},"",{}),n}catch{}}();function Bv(n,e,t){e=="__proto__"&&tm?tm(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}var TC=Object.prototype,FC=TC.hasOwnProperty;function Iv(n,e,t){var i=n[e];(!(FC.call(n,e)&&Lv(i,t))||t===void 0&&!(e in n))&&Bv(n,e,t)}function xu(n,e,t,i){var r=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var d=e[a],f=void 0;f===void 0&&(f=n[d]),r?Bv(t,d,f):Iv(t,d,f)}return t}function RC(n,e){for(var t=-1,i=Array(n);++t<n;)i[t]=e(t);return i}var MC="[object Arguments]";function im(n){return Vs(n)&&Ns(n)==MC}var Ov=Object.prototype,PC=Ov.hasOwnProperty,AC=Ov.propertyIsEnumerable,LC=im(function(){return arguments}())?im:function(n){return Vs(n)&&PC.call(n,"callee")&&!AC.call(n,"callee")},cd=Array.isArray;function zC(){return!1}var Dv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rm=Dv&&typeof module=="object"&&module&&!module.nodeType&&module,BC=rm&&rm.exports===Dv,am=BC?kr.Buffer:void 0,IC=am?am.isBuffer:void 0,jv=IC||zC,OC=9007199254740991,DC=/^(?:0|[1-9]\d*)$/;function jC(n,e){var t=typeof n;return e=e??OC,!!e&&(t=="number"||t!="symbol"&&DC.test(n))&&n>-1&&n%1==0&&n<e}var $C=9007199254740991;function $v(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=$C}var HC="[object Arguments]",NC="[object Array]",VC="[object Boolean]",GC="[object Date]",WC="[object Error]",UC="[object Function]",ZC="[object Map]",qC="[object Number]",KC="[object Object]",YC="[object RegExp]",JC="[object Set]",XC="[object String]",QC="[object WeakMap]",eE="[object ArrayBuffer]",nE="[object DataView]",tE="[object Float32Array]",iE="[object Float64Array]",rE="[object Int8Array]",aE="[object Int16Array]",sE="[object Int32Array]",oE="[object Uint8Array]",lE="[object Uint8ClampedArray]",fE="[object Uint16Array]",dE="[object Uint32Array]",Nn={};Nn[tE]=Nn[iE]=Nn[rE]=Nn[aE]=Nn[sE]=Nn[oE]=Nn[lE]=Nn[fE]=Nn[dE]=!0;Nn[HC]=Nn[NC]=Nn[eE]=Nn[VC]=Nn[nE]=Nn[GC]=Nn[WC]=Nn[UC]=Nn[ZC]=Nn[qC]=Nn[KC]=Nn[YC]=Nn[JC]=Nn[XC]=Nn[QC]=!1;function cE(n){return Vs(n)&&$v(n.length)&&!!Nn[Ns(n)]}function Ip(n){return function(e){return n(e)}}var Hv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Af=Hv&&typeof module=="object"&&module&&!module.nodeType&&module,uE=Af&&Af.exports===Hv,Z1=uE&&Rv.process,sl=function(){try{var n=Af&&Af.require&&Af.require("util").types;return n||Z1&&Z1.binding&&Z1.binding("util")}catch{}}(),sm=sl&&sl.isTypedArray,hE=sm?Ip(sm):cE,pE=Object.prototype,gE=pE.hasOwnProperty;function Nv(n,e){var t=cd(n),i=!t&&LC(n),r=!t&&!i&&jv(n),a=!t&&!i&&!r&&hE(n),o=t||i||r||a,d=o?RC(n.length,String):[],f=d.length;for(var h in n)(e||gE.call(n,h))&&!(o&&(h=="length"||r&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||jC(h,f)))&&d.push(h);return d}var mE=Object.prototype;function Op(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||mE;return n===t}var vE=Pv(Object.keys,Object),kE=Object.prototype,wE=kE.hasOwnProperty;function bE(n){if(!Op(n))return vE(n);var e=[];for(var t in Object(n))wE.call(n,t)&&t!="constructor"&&e.push(t);return e}function Vv(n){return n!=null&&$v(n.length)&&!zv(n)}function Dp(n){return Vv(n)?Nv(n):bE(n)}function yE(n,e){return n&&xu(e,Dp(e),n)}function _E(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var xE=Object.prototype,SE=xE.hasOwnProperty;function CE(n){if(!dd(n))return _E(n);var e=Op(n),t=[];for(var i in n)i=="constructor"&&(e||!SE.call(n,i))||t.push(i);return t}function jp(n){return Vv(n)?Nv(n,!0):CE(n)}function EE(n,e){return n&&xu(e,jp(e),n)}var Gv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,om=Gv&&typeof module=="object"&&module&&!module.nodeType&&module,TE=om&&om.exports===Gv,lm=TE?kr.Buffer:void 0,fm=lm?lm.allocUnsafe:void 0;function FE(n,e){if(e)return n.slice();var t=n.length,i=fm?fm(t):new n.constructor(t);return n.copy(i),i}function Wv(n,e){var t=-1,i=n.length;for(e||(e=Array(i));++t<i;)e[t]=n[t];return e}function RE(n,e){for(var t=-1,i=n==null?0:n.length,r=0,a=[];++t<i;){var o=n[t];e(o,t,n)&&(a[r++]=o)}return a}function Uv(){return[]}var ME=Object.prototype,PE=ME.propertyIsEnumerable,dm=Object.getOwnPropertySymbols,$p=dm?function(n){return n==null?[]:(n=Object(n),RE(dm(n),function(e){return PE.call(n,e)}))}:Uv;function AE(n,e){return xu(n,$p(n),e)}function Zv(n,e){for(var t=-1,i=e.length,r=n.length;++t<i;)n[r+t]=e[t];return n}var LE=Object.getOwnPropertySymbols,qv=LE?function(n){for(var e=[];n;)Zv(e,$p(n)),n=Bp(n);return e}:Uv;function zE(n,e){return xu(n,qv(n),e)}function Kv(n,e,t){var i=e(n);return cd(n)?i:Zv(i,t(n))}function BE(n){return Kv(n,Dp,$p)}function IE(n){return Kv(n,jp,qv)}var Ah=Ws(kr,"DataView"),Lh=Ws(kr,"Promise"),zh=Ws(kr,"Set"),Bh=Ws(kr,"WeakMap"),cm="[object Map]",OE="[object Object]",um="[object Promise]",hm="[object Set]",pm="[object WeakMap]",gm="[object DataView]",DE=Gs(Ah),jE=Gs($f),$E=Gs(Lh),HE=Gs(zh),NE=Gs(Bh),jr=Ns;(Ah&&jr(new Ah(new ArrayBuffer(1)))!=gm||$f&&jr(new $f)!=cm||Lh&&jr(Lh.resolve())!=um||zh&&jr(new zh)!=hm||Bh&&jr(new Bh)!=pm)&&(jr=function(n){var e=Ns(n),t=e==OE?n.constructor:void 0,i=t?Gs(t):"";if(i)switch(i){case DE:return gm;case jE:return cm;case $E:return um;case HE:return hm;case NE:return pm}return e});var VE=Object.prototype,GE=VE.hasOwnProperty;function WE(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&GE.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var mm=kr.Uint8Array;function Hp(n){var e=new n.constructor(n.byteLength);return new mm(e).set(new mm(n)),e}function UE(n,e){var t=e?Hp(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.byteLength)}var ZE=/\w*$/;function qE(n){var e=new n.constructor(n.source,ZE.exec(n));return e.lastIndex=n.lastIndex,e}var vm=Ra?Ra.prototype:void 0,km=vm?vm.valueOf:void 0;function KE(n){return km?Object(km.call(n)):{}}function YE(n,e){var t=e?Hp(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var JE="[object Boolean]",XE="[object Date]",QE="[object Map]",eT="[object Number]",nT="[object RegExp]",tT="[object Set]",iT="[object String]",rT="[object Symbol]",aT="[object ArrayBuffer]",sT="[object DataView]",oT="[object Float32Array]",lT="[object Float64Array]",fT="[object Int8Array]",dT="[object Int16Array]",cT="[object Int32Array]",uT="[object Uint8Array]",hT="[object Uint8ClampedArray]",pT="[object Uint16Array]",gT="[object Uint32Array]";function mT(n,e,t){var i=n.constructor;switch(e){case aT:return Hp(n);case JE:case XE:return new i(+n);case sT:return UE(n,t);case oT:case lT:case fT:case dT:case cT:case uT:case hT:case pT:case gT:return YE(n,t);case QE:return new i;case eT:case iT:return new i(n);case nT:return qE(n);case tT:return new i;case rT:return KE(n)}}var wm=Object.create,vT=function(){function n(){}return function(e){if(!dd(e))return{};if(wm)return wm(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}}();function kT(n){return typeof n.constructor=="function"&&!Op(n)?vT(Bp(n)):{}}var wT="[object Map]";function bT(n){return Vs(n)&&jr(n)==wT}var bm=sl&&sl.isMap,yT=bm?Ip(bm):bT,_T="[object Set]";function xT(n){return Vs(n)&&jr(n)==_T}var ym=sl&&sl.isSet,ST=ym?Ip(ym):xT,CT=1,ET=2,TT=4,Yv="[object Arguments]",FT="[object Array]",RT="[object Boolean]",MT="[object Date]",PT="[object Error]",Jv="[object Function]",AT="[object GeneratorFunction]",LT="[object Map]",zT="[object Number]",Xv="[object Object]",BT="[object RegExp]",IT="[object Set]",OT="[object String]",DT="[object Symbol]",jT="[object WeakMap]",$T="[object ArrayBuffer]",HT="[object DataView]",NT="[object Float32Array]",VT="[object Float64Array]",GT="[object Int8Array]",WT="[object Int16Array]",UT="[object Int32Array]",ZT="[object Uint8Array]",qT="[object Uint8ClampedArray]",KT="[object Uint16Array]",YT="[object Uint32Array]",jn={};jn[Yv]=jn[FT]=jn[$T]=jn[HT]=jn[RT]=jn[MT]=jn[NT]=jn[VT]=jn[GT]=jn[WT]=jn[UT]=jn[LT]=jn[zT]=jn[Xv]=jn[BT]=jn[IT]=jn[OT]=jn[DT]=jn[ZT]=jn[qT]=jn[KT]=jn[YT]=!0;jn[PT]=jn[Jv]=jn[jT]=!1;function Lf(n,e,t,i,r,a){var o,d=e&CT,f=e&ET,h=e&TT;if(o!==void 0)return o;if(!dd(n))return n;var p=cd(n);if(p){if(o=WE(n),!d)return Wv(n,o)}else{var m=jr(n),y=m==Jv||m==AT;if(jv(n))return FE(n,d);if(m==Xv||m==Yv||y&&!r){if(o=f||y?{}:kT(n),!d)return f?zE(n,EE(o,n)):AE(n,yE(o,n))}else{if(!jn[m])return r?n:{};o=mT(n,m,d)}}a||(a=new pl);var x=a.get(n);if(x)return x;a.set(n,o),ST(n)?n.forEach(function(F){o.add(Lf(F,e,t,F,n,a))}):yT(n)&&n.forEach(function(F,T){o.set(T,Lf(F,e,t,T,n,a))});var _=h?f?IE:BE:f?jp:Dp,R=p?void 0:_(n);return EC(R||n,function(F,T){R&&(T=F,F=n[T]),Iv(o,T,Lf(F,e,t,T,n,a))}),o}var JT=1,XT=4;function dc(n){return Lf(n,JT|XT)}var _m=Array.isArray,xm=Object.keys,QT=Object.prototype.hasOwnProperty,eF=typeof Element<"u";function Ih(n,e){if(n===e)return!0;if(n&&e&&typeof n=="object"&&typeof e=="object"){var t=_m(n),i=_m(e),r,a,o;if(t&&i){if(a=n.length,a!=e.length)return!1;for(r=a;r--!==0;)if(!Ih(n[r],e[r]))return!1;return!0}if(t!=i)return!1;var d=n instanceof Date,f=e instanceof Date;if(d!=f)return!1;if(d&&f)return n.getTime()==e.getTime();var h=n instanceof RegExp,p=e instanceof RegExp;if(h!=p)return!1;if(h&&p)return n.toString()==e.toString();var m=xm(n);if(a=m.length,a!==xm(e).length)return!1;for(r=a;r--!==0;)if(!QT.call(e,m[r]))return!1;if(eF&&n instanceof Element&&e instanceof Element)return n===e;for(r=a;r--!==0;)if(o=m[r],!(o==="_owner"&&n.$$typeof)&&!Ih(n[o],e[o]))return!1;return!0}return n!==n&&e!==e}var nF=function(e,t){try{return Ih(e,t)}catch(i){if(i.message&&i.message.match(/stack|recursion/i)||i.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",i.name,i.message),!1;throw i}};const bs=op(nF);var tF=process.env.NODE_ENV==="production";function qo(n,e){if(!tF){var t="Warning: "+e;typeof console<"u"&&console.warn(t);try{throw Error(t)}catch{}}}var iF=4;function Sm(n){return Lf(n,iF)}function Qv(n,e){for(var t=-1,i=n==null?0:n.length,r=Array(i);++t<i;)r[t]=e(n[t],t,n);return r}var rF="[object Symbol]";function Np(n){return typeof n=="symbol"||Vs(n)&&Ns(n)==rF}var aF="Expected a function";function Vp(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(aF);var t=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=t.cache;if(a.has(r))return a.get(r);var o=n.apply(this,i);return t.cache=a.set(r,o)||a,o};return t.cache=new(Vp.Cache||Ia),t}Vp.Cache=Ia;var sF=500;function oF(n){var e=Vp(n,function(i){return t.size===sF&&t.clear(),i}),t=e.cache;return e}var lF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fF=/\\(\\)?/g,dF=oF(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(lF,function(t,i,r,a){e.push(r?a.replace(fF,"$1"):i||t)}),e}),cF=1/0;function uF(n){if(typeof n=="string"||Np(n))return n;var e=n+"";return e=="0"&&1/n==-cF?"-0":e}var hF=1/0,Cm=Ra?Ra.prototype:void 0,Em=Cm?Cm.toString:void 0;function e2(n){if(typeof n=="string")return n;if(cd(n))return Qv(n,e2)+"";if(Np(n))return Em?Em.call(n):"";var e=n+"";return e=="0"&&1/n==-hF?"-0":e}function pF(n){return n==null?"":e2(n)}function n2(n){return cd(n)?Qv(n,uF):Np(n)?[n]:Wv(dF(pF(n)))}var t2=lp,gF={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i2={};i2[t2.ForwardRef]=gF;i2[t2.Memo]=mF;function lt(){return lt=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},lt.apply(this,arguments)}function r2(n,e){if(n==null)return{};var t={},i=Object.keys(n),r,a;for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&(t[r]=n[r]);return t}var Su=M.createContext(void 0);Su.displayName="FormikContext";Su.Provider;Su.Consumer;function vF(){var n=M.useContext(Su);return n||(process.env.NODE_ENV!=="production"?qo(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):qo()),n}var Ni=function(e){return typeof e=="function"},Cu=function(e){return e!==null&&typeof e=="object"},kF=function(e){return String(Math.floor(Number(e)))===e},q1=function(e){return Object.prototype.toString.call(e)==="[object String]"},K1=function(e){return Cu(e)&&Ni(e.then)};function wF(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function oi(n,e,t,i){i===void 0&&(i=0);for(var r=n2(e);n&&i<r.length;)n=n[r[i++]];return i!==r.length&&!n||n===void 0?t:n}function xs(n,e,t){for(var i=Sm(n),r=i,a=0,o=n2(e);a<o.length-1;a++){var d=o[a],f=oi(n,o.slice(0,a+1));if(f&&(Cu(f)||Array.isArray(f)))r=r[d]=Sm(f);else{var h=o[a+1];r=r[d]=kF(h)&&Number(h)>=0?[]:{}}}return(a===0?n:r)[o[a]]===t?n:(t===void 0?delete r[o[a]]:r[o[a]]=t,a===0&&t===void 0&&delete i[o[a]],i)}function a2(n,e,t,i){t===void 0&&(t=new WeakMap),i===void 0&&(i={});for(var r=0,a=Object.keys(n);r<a.length;r++){var o=a[r],d=n[o];Cu(d)?t.get(d)||(t.set(d,!0),i[o]=Array.isArray(d)?[]:{},a2(d,e,t,i[o])):i[o]=e}return i}function bF(n,e){switch(e.type){case"SET_VALUES":return lt({},n,{values:e.payload});case"SET_TOUCHED":return lt({},n,{touched:e.payload});case"SET_ERRORS":return bs(n.errors,e.payload)?n:lt({},n,{errors:e.payload});case"SET_STATUS":return lt({},n,{status:e.payload});case"SET_ISSUBMITTING":return lt({},n,{isSubmitting:e.payload});case"SET_ISVALIDATING":return lt({},n,{isValidating:e.payload});case"SET_FIELD_VALUE":return lt({},n,{values:xs(n.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return lt({},n,{touched:xs(n.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return lt({},n,{errors:xs(n.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return lt({},n,e.payload);case"SET_FORMIK_STATE":return e.payload(n);case"SUBMIT_ATTEMPT":return lt({},n,{touched:a2(n.values,!0),isSubmitting:!0,submitCount:n.submitCount+1});case"SUBMIT_FAILURE":return lt({},n,{isSubmitting:!1});case"SUBMIT_SUCCESS":return lt({},n,{isSubmitting:!1});default:return n}}var ks={},cc={};function yF(n){var e=n.validateOnChange,t=e===void 0?!0:e,i=n.validateOnBlur,r=i===void 0?!0:i,a=n.validateOnMount,o=a===void 0?!1:a,d=n.isInitialValid,f=n.enableReinitialize,h=f===void 0?!1:f,p=n.onSubmit,m=r2(n,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),y=lt({validateOnChange:t,validateOnBlur:r,validateOnMount:o,onSubmit:p},m),x=M.useRef(y.initialValues),_=M.useRef(y.initialErrors||ks),R=M.useRef(y.initialTouched||cc),F=M.useRef(y.initialStatus),T=M.useRef(!1),D=M.useRef({});process.env.NODE_ENV!=="production"&&M.useEffect(function(){typeof d>"u"||(process.env.NODE_ENV!=="production"?qo(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):qo())},[]),M.useEffect(function(){return T.current=!0,function(){T.current=!1}},[]);var I=M.useState(0),N=I[1],B=M.useRef({values:dc(y.initialValues),errors:dc(y.initialErrors)||ks,touched:dc(y.initialTouched)||cc,status:dc(y.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),V=B.current,W=M.useCallback(function(Y){var we=B.current;B.current=bF(we,Y),we!==B.current&&N(function(Ee){return Ee+1})},[]),ue=M.useCallback(function(Y,we){return new Promise(function(Ee,je){var We=y.validate(Y,we);We==null?Ee(ks):K1(We)?We.then(function(Ue){Ee(Ue||ks)},function(Ue){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",Ue),je(Ue)}):Ee(We)})},[y.validate]),Q=M.useCallback(function(Y,we){var Ee=y.validationSchema,je=Ni(Ee)?Ee(we):Ee,We=we&&je.validateAt?je.validateAt(we,Y):xF(Y,je);return new Promise(function(Ue,Xe){We.then(function(){Ue(ks)},function($n){$n.name==="ValidationError"?Ue(_F($n)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",$n),Xe($n))})})},[y.validationSchema]),K=M.useCallback(function(Y,we){return new Promise(function(Ee){return Ee(D.current[Y].validate(we))})},[]),fe=M.useCallback(function(Y){var we=Object.keys(D.current).filter(function(je){return Ni(D.current[je].validate)}),Ee=we.length>0?we.map(function(je){return K(je,oi(Y,je))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Ee).then(function(je){return je.reduce(function(We,Ue,Xe){return Ue==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ue&&(We=xs(We,we[Xe],Ue)),We},{})})},[K]),ee=M.useCallback(function(Y){return Promise.all([fe(Y),y.validationSchema?Q(Y):{},y.validate?ue(Y):{}]).then(function(we){var Ee=we[0],je=we[1],We=we[2],Ue=Ph.all([Ee,je,We],{arrayMerge:SF});return Ue})},[y.validate,y.validationSchema,fe,ue,Q]),te=xi(function(Y){return Y===void 0&&(Y=V.values),W({type:"SET_ISVALIDATING",payload:!0}),ee(Y).then(function(we){return T.current&&(W({type:"SET_ISVALIDATING",payload:!1}),W({type:"SET_ERRORS",payload:we})),we})});M.useEffect(function(){o&&T.current===!0&&bs(x.current,y.initialValues)&&te(x.current)},[o,te]);var ge=M.useCallback(function(Y){var we=Y&&Y.values?Y.values:x.current,Ee=Y&&Y.errors?Y.errors:_.current?_.current:y.initialErrors||{},je=Y&&Y.touched?Y.touched:R.current?R.current:y.initialTouched||{},We=Y&&Y.status?Y.status:F.current?F.current:y.initialStatus;x.current=we,_.current=Ee,R.current=je,F.current=We;var Ue=function(){W({type:"RESET_FORM",payload:{isSubmitting:!!Y&&!!Y.isSubmitting,errors:Ee,touched:je,status:We,values:we,isValidating:!!Y&&!!Y.isValidating,submitCount:Y&&Y.submitCount&&typeof Y.submitCount=="number"?Y.submitCount:0}})};if(y.onReset){var Xe=y.onReset(V.values,ln);K1(Xe)?Xe.then(Ue):Ue()}else Ue()},[y.initialErrors,y.initialStatus,y.initialTouched,y.onReset]);M.useEffect(function(){T.current===!0&&!bs(x.current,y.initialValues)&&h&&(x.current=y.initialValues,ge(),o&&te(x.current))},[h,y.initialValues,ge,o,te]),M.useEffect(function(){h&&T.current===!0&&!bs(_.current,y.initialErrors)&&(_.current=y.initialErrors||ks,W({type:"SET_ERRORS",payload:y.initialErrors||ks}))},[h,y.initialErrors]),M.useEffect(function(){h&&T.current===!0&&!bs(R.current,y.initialTouched)&&(R.current=y.initialTouched||cc,W({type:"SET_TOUCHED",payload:y.initialTouched||cc}))},[h,y.initialTouched]),M.useEffect(function(){h&&T.current===!0&&!bs(F.current,y.initialStatus)&&(F.current=y.initialStatus,W({type:"SET_STATUS",payload:y.initialStatus}))},[h,y.initialStatus,y.initialTouched]);var oe=xi(function(Y){if(D.current[Y]&&Ni(D.current[Y].validate)){var we=oi(V.values,Y),Ee=D.current[Y].validate(we);return K1(Ee)?(W({type:"SET_ISVALIDATING",payload:!0}),Ee.then(function(je){return je}).then(function(je){W({type:"SET_FIELD_ERROR",payload:{field:Y,value:je}}),W({type:"SET_ISVALIDATING",payload:!1})})):(W({type:"SET_FIELD_ERROR",payload:{field:Y,value:Ee}}),Promise.resolve(Ee))}else if(y.validationSchema)return W({type:"SET_ISVALIDATING",payload:!0}),Q(V.values,Y).then(function(je){return je}).then(function(je){W({type:"SET_FIELD_ERROR",payload:{field:Y,value:oi(je,Y)}}),W({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),le=M.useCallback(function(Y,we){var Ee=we.validate;D.current[Y]={validate:Ee}},[]),G=M.useCallback(function(Y){delete D.current[Y]},[]),re=xi(function(Y,we){W({type:"SET_TOUCHED",payload:Y});var Ee=we===void 0?r:we;return Ee?te(V.values):Promise.resolve()}),ke=M.useCallback(function(Y){W({type:"SET_ERRORS",payload:Y})},[]),ie=xi(function(Y,we){var Ee=Ni(Y)?Y(V.values):Y;W({type:"SET_VALUES",payload:Ee});var je=we===void 0?t:we;return je?te(Ee):Promise.resolve()}),he=M.useCallback(function(Y,we){W({type:"SET_FIELD_ERROR",payload:{field:Y,value:we}})},[]),_e=xi(function(Y,we,Ee){W({type:"SET_FIELD_VALUE",payload:{field:Y,value:we}});var je=Ee===void 0?t:Ee;return je?te(xs(V.values,Y,we)):Promise.resolve()}),De=M.useCallback(function(Y,we){var Ee=we,je=Y,We;if(!q1(Y)){Y.persist&&Y.persist();var Ue=Y.target?Y.target:Y.currentTarget,Xe=Ue.type,$n=Ue.name,bt=Ue.id,Ce=Ue.value,ze=Ue.checked,un=Ue.outerHTML,An=Ue.options,Qt=Ue.multiple;Ee=we||$n||bt,!Ee&&process.env.NODE_ENV!=="production"&&Tm({htmlContent:un,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),je=/number|range/.test(Xe)?(We=parseFloat(Ce),isNaN(We)?"":We):/checkbox/.test(Xe)?EF(oi(V.values,Ee),ze,Ce):An&&Qt?CF(An):Ce}Ee&&_e(Ee,je)},[_e,V.values]),$e=xi(function(Y){if(q1(Y))return function(we){return De(we,Y)};De(Y)}),Ae=xi(function(Y,we,Ee){we===void 0&&(we=!0),W({type:"SET_FIELD_TOUCHED",payload:{field:Y,value:we}});var je=Ee===void 0?r:Ee;return je?te(V.values):Promise.resolve()}),Le=M.useCallback(function(Y,we){Y.persist&&Y.persist();var Ee=Y.target,je=Ee.name,We=Ee.id,Ue=Ee.outerHTML,Xe=we||je||We;!Xe&&process.env.NODE_ENV!=="production"&&Tm({htmlContent:Ue,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Ae(Xe,!0)},[Ae]),Re=xi(function(Y){if(q1(Y))return function(we){return Le(we,Y)};Le(Y)}),Te=M.useCallback(function(Y){Ni(Y)?W({type:"SET_FORMIK_STATE",payload:Y}):W({type:"SET_FORMIK_STATE",payload:function(){return Y}})},[]),Me=M.useCallback(function(Y){W({type:"SET_STATUS",payload:Y})},[]),Ie=M.useCallback(function(Y){W({type:"SET_ISSUBMITTING",payload:Y})},[]),nn=xi(function(){return W({type:"SUBMIT_ATTEMPT"}),te().then(function(Y){var we=Y instanceof Error,Ee=!we&&Object.keys(Y).length===0;if(Ee){var je;try{if(je=Sn(),je===void 0)return}catch(We){throw We}return Promise.resolve(je).then(function(We){return T.current&&W({type:"SUBMIT_SUCCESS"}),We}).catch(function(We){if(T.current)throw W({type:"SUBMIT_FAILURE"}),We})}else if(T.current&&(W({type:"SUBMIT_FAILURE"}),we))throw Y})}),Se=xi(function(Y){if(Y&&Y.preventDefault&&Ni(Y.preventDefault)&&Y.preventDefault(),Y&&Y.stopPropagation&&Ni(Y.stopPropagation)&&Y.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var we=wF();we!==null&&we instanceof HTMLButtonElement&&(we.attributes&&we.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?qo(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):qo()))}nn().catch(function(Ee){console.warn("Warning: An unhandled error was caught from submitForm()",Ee)})}),ln={resetForm:ge,validateForm:te,validateField:oe,setErrors:ke,setFieldError:he,setFieldTouched:Ae,setFieldValue:_e,setStatus:Me,setSubmitting:Ie,setTouched:re,setValues:ie,setFormikState:Te,submitForm:nn},Sn=xi(function(){return p(V.values,ln)}),Wn=xi(function(Y){Y&&Y.preventDefault&&Ni(Y.preventDefault)&&Y.preventDefault(),Y&&Y.stopPropagation&&Ni(Y.stopPropagation)&&Y.stopPropagation(),ge()}),Kn=M.useCallback(function(Y){return{value:oi(V.values,Y),error:oi(V.errors,Y),touched:!!oi(V.touched,Y),initialValue:oi(x.current,Y),initialTouched:!!oi(R.current,Y),initialError:oi(_.current,Y)}},[V.errors,V.touched,V.values]),dt=M.useCallback(function(Y){return{setValue:function(Ee,je){return _e(Y,Ee,je)},setTouched:function(Ee,je){return Ae(Y,Ee,je)},setError:function(Ee){return he(Y,Ee)}}},[_e,Ae,he]),Un=M.useCallback(function(Y){var we=Cu(Y),Ee=we?Y.name:Y,je=oi(V.values,Ee),We={name:Ee,value:je,onChange:$e,onBlur:Re};if(we){var Ue=Y.type,Xe=Y.value,$n=Y.as,bt=Y.multiple;Ue==="checkbox"?Xe===void 0?We.checked=!!je:(We.checked=!!(Array.isArray(je)&&~je.indexOf(Xe)),We.value=Xe):Ue==="radio"?(We.checked=je===Xe,We.value=Xe):$n==="select"&&bt&&(We.value=We.value||[],We.multiple=!0)}return We},[Re,$e,V.values]),Zn=M.useMemo(function(){return!bs(x.current,V.values)},[x.current,V.values]),ct=M.useMemo(function(){return typeof d<"u"?Zn?V.errors&&Object.keys(V.errors).length===0:d!==!1&&Ni(d)?d(y):d:V.errors&&Object.keys(V.errors).length===0},[d,Zn,V.errors,y]),Vt=lt({},V,{initialValues:x.current,initialErrors:_.current,initialTouched:R.current,initialStatus:F.current,handleBlur:Re,handleChange:$e,handleReset:Wn,handleSubmit:Se,resetForm:ge,setErrors:ke,setFormikState:Te,setFieldTouched:Ae,setFieldValue:_e,setFieldError:he,setStatus:Me,setSubmitting:Ie,setTouched:re,setValues:ie,submitForm:nn,validateForm:te,validateField:oe,isValid:ct,dirty:Zn,unregisterField:G,registerField:le,getFieldProps:Un,getFieldMeta:Kn,getFieldHelpers:dt,validateOnBlur:r,validateOnChange:t,validateOnMount:o});return Vt}function Tm(n){var e=n.htmlContent,t=n.documentationAnchorLink,i=n.handlerName;console.warn("Warning: Formik called `"+i+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+e+`
|
|
217
217
|
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+t+`
|
|
218
218
|
`)}function _F(n){var e={};if(n.inner){if(n.inner.length===0)return xs(e,n.path,n.message);for(var r=n.inner,t=Array.isArray(r),i=0,r=t?r:r[Symbol.iterator]();;){var a;if(t){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var o=a;oi(e,o.path)||(e=xs(e,o.path,o.message))}}return e}function xF(n,e,t,i){t===void 0&&(t=!1);var r=Oh(n);return e[t?"validateSync":"validate"](r,{abortEarly:!1,context:r})}function Oh(n){var e=Array.isArray(n)?[]:{};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)){var i=String(t);Array.isArray(n[i])===!0?e[i]=n[i].map(function(r){return Array.isArray(r)===!0||em(r)?Oh(r):r!==""?r:void 0}):em(n[i])?e[i]=Oh(n[i]):e[i]=n[i]!==""?n[i]:void 0}return e}function SF(n,e,t){var i=n.slice();return e.forEach(function(a,o){if(typeof i[o]>"u"){var d=t.clone!==!1,f=d&&t.isMergeableObject(a);i[o]=f?Ph(Array.isArray(a)?[]:{},a,t):a}else t.isMergeableObject(a)?i[o]=Ph(n[o],a,t):n.indexOf(a)===-1&&i.push(a)}),i}function CF(n){return Array.from(n).filter(function(e){return e.selected}).map(function(e){return e.value})}function EF(n,e,t){if(typeof n=="boolean")return!!e;var i=[],r=!1,a=-1;if(Array.isArray(n))i=n,a=n.indexOf(t),r=a>=0;else if(!t||t=="true"||t=="false")return!!e;return e&&t&&!r?i.concat(t):r?i.slice(0,a).concat(i.slice(a+1)):i}var TF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?M.useLayoutEffect:M.useEffect;function xi(n){var e=M.useRef(n);return TF(function(){e.current=n}),M.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current.apply(void 0,i)},[])}var FF=M.forwardRef(function(n,e){var t=n.action,i=r2(n,["action"]),r=t??"#",a=vF(),o=a.handleReset,d=a.handleSubmit;return M.createElement("form",lt({onSubmit:d,ref:e,onReset:o,action:r},i))});FF.displayName="Form";var xn;(function(n){n.assertEqual=r=>r;function e(r){}n.assertIs=e;function t(r){throw new Error}n.assertNever=t,n.arrayToEnum=r=>{const a={};for(const o of r)a[o]=o;return a},n.getValidEnumValues=r=>{const a=n.objectKeys(r).filter(d=>typeof r[r[d]]!="number"),o={};for(const d of a)o[d]=r[d];return n.objectValues(o)},n.objectValues=r=>n.objectKeys(r).map(function(a){return r[a]}),n.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const a=[];for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&a.push(o);return a},n.find=(r,a)=>{for(const o of r)if(a(o))return o},n.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function i(r,a=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}n.joinValues=i,n.jsonStringifyReplacer=(r,a)=>typeof a=="bigint"?a.toString():a})(xn||(xn={}));var Dh;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(Dh||(Dh={}));const Oe=xn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),_a=n=>{switch(typeof n){case"undefined":return Oe.undefined;case"string":return Oe.string;case"number":return isNaN(n)?Oe.nan:Oe.number;case"boolean":return Oe.boolean;case"function":return Oe.function;case"bigint":return Oe.bigint;case"symbol":return Oe.symbol;case"object":return Array.isArray(n)?Oe.array:n===null?Oe.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?Oe.promise:typeof Map<"u"&&n instanceof Map?Oe.map:typeof Set<"u"&&n instanceof Set?Oe.set:typeof Date<"u"&&n instanceof Date?Oe.date:Oe.object;default:return Oe.unknown}},xe=xn.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"]),RF=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class ci extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(a){return a.message},i={_errors:[]},r=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)i._errors.push(t(o));else{let d=i,f=0;for(;f<o.path.length;){const h=o.path[f];f===o.path.length-1?(d[h]=d[h]||{_errors:[]},d[h]._errors.push(t(o))):d[h]=d[h]||{_errors:[]},d=d[h],f++}}};return r(this),i}static assert(e){if(!(e instanceof ci))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,xn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},i=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):i.push(e(r));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}ci.create=n=>new ci(n);const ol=(n,e)=>{let t;switch(n.code){case xe.invalid_type:n.received===Oe.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case xe.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,xn.jsonStringifyReplacer)}`;break;case xe.unrecognized_keys:t=`Unrecognized key(s) in object: ${xn.joinValues(n.keys,", ")}`;break;case xe.invalid_union:t="Invalid input";break;case xe.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${xn.joinValues(n.options)}`;break;case xe.invalid_enum_value:t=`Invalid enum value. Expected ${xn.joinValues(n.options)}, received '${n.received}'`;break;case xe.invalid_arguments:t="Invalid function arguments";break;case xe.invalid_return_type:t="Invalid function return type";break;case xe.invalid_date:t="Invalid date";break;case xe.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:xn.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case xe.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case xe.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case xe.custom:t="Invalid input";break;case xe.invalid_intersection_types:t="Intersection results could not be merged";break;case xe.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case xe.not_finite:t="Number must be finite";break;default:t=e.defaultError,xn.assertNever(n)}return{message:t}};let s2=ol;function MF(n){s2=n}function Nc(){return s2}const Vc=n=>{const{data:e,path:t,errorMaps:i,issueData:r}=n,a=[...t,...r.path||[]],o={...r,path:a};if(r.message!==void 0)return{...r,path:a,message:r.message};let d="";const f=i.filter(h=>!!h).slice().reverse();for(const h of f)d=h(o,{data:e,defaultError:d}).message;return{...r,path:a,message:d}},PF=[];function Be(n,e){const t=Nc(),i=Vc({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,t,t===ol?void 0:ol].filter(r=>!!r)});n.common.issues.push(i)}class Ft{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const i=[];for(const r of t){if(r.status==="aborted")return tn;r.status==="dirty"&&e.dirty(),i.push(r.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){const i=[];for(const r of t){const a=await r.key,o=await r.value;i.push({key:a,value:o})}return Ft.mergeObjectSync(e,i)}static mergeObjectSync(e,t){const i={};for(const r of t){const{key:a,value:o}=r;if(a.status==="aborted"||o.status==="aborted")return tn;a.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(i[a.value]=o.value)}return{status:e.value,value:i}}}const tn=Object.freeze({status:"aborted"}),Ko=n=>({status:"dirty",value:n}),Nt=n=>({status:"valid",value:n}),jh=n=>n.status==="aborted",$h=n=>n.status==="dirty",Nf=n=>n.status==="valid",Vf=n=>typeof Promise<"u"&&n instanceof Promise;function Gc(n,e,t,i){if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(n)}function o2(n,e,t,i,r){if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(n,t),t}var Ge;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(Ge||(Ge={}));var Cf,Ef;class mr{constructor(e,t,i,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Fm=(n,e)=>{if(Nf(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ci(n.common.issues);return this._error=t,this._error}}};function cn(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:i,description:r}=n;if(e&&(t||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:r}:{errorMap:(o,d)=>{var f,h;const{message:p}=n;return o.code==="invalid_enum_value"?{message:p??d.defaultError}:typeof d.data>"u"?{message:(f=p??i)!==null&&f!==void 0?f:d.defaultError}:o.code!=="invalid_type"?{message:d.defaultError}:{message:(h=p??t)!==null&&h!==void 0?h:d.defaultError}},description:r}}class hn{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)}get description(){return this._def.description}_getType(e){return _a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:_a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ft,ctx:{common:e.parent.common,data:e.data,parsedType:_a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Vf(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){var i;const r={common:{issues:[],async:(i=t==null?void 0:t.async)!==null&&i!==void 0?i:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_a(e)},a=this._parseSync({data:e,path:r.path,parent:r});return Fm(r,a)}async parseAsync(e,t){const i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){const i={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:_a(e)},r=this._parse({data:e,path:i.path,parent:i}),a=await(Vf(r)?r:Promise.resolve(r));return Fm(i,a)}refine(e,t){const i=r=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(r):t;return this._refinement((r,a)=>{const o=e(r),d=()=>a.addIssue({code:xe.custom,...i(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(f=>f?!0:(d(),!1)):o?!0:(d(),!1)})}refinement(e,t){return this._refinement((i,r)=>e(i)?!0:(r.addIssue(typeof t=="function"?t(i,r):t),!1))}_refinement(e){return new qi({schema:this,typeName:en.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ur.create(this,this._def)}nullable(){return La.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wi.create(this,this._def)}promise(){return fl.create(this,this._def)}or(e){return Zf.create([this,e],this._def)}and(e){return qf.create(this,e,this._def)}transform(e){return new qi({...cn(this._def),schema:this,typeName:en.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new Qf({...cn(this._def),innerType:this,defaultValue:t,typeName:en.ZodDefault})}brand(){return new Gp({typeName:en.ZodBranded,type:this,...cn(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new ed({...cn(this._def),innerType:this,catchValue:t,typeName:en.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return ud.create(this,e)}readonly(){return nd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const AF=/^c[^\s-]{8,}$/i,LF=/^[0-9a-z]+$/,zF=/^[0-9A-HJKMNP-TV-Z]{26}$/,BF=/^[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,IF=/^[a-z0-9_-]{21}$/i,OF=/^[-+]?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)?)??$/,DF=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jF="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Y1;const $F=/^(?:(?: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])$/,HF=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,NF=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,l2="((\\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])))",VF=new RegExp(`^${l2}$`);function f2(n){let e="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return n.precision?e=`${e}\\.\\d{${n.precision}}`:n.precision==null&&(e=`${e}(\\.\\d+)?`),e}function GF(n){return new RegExp(`^${f2(n)}$`)}function d2(n){let e=`${l2}T${f2(n)}`;const t=[];return t.push(n.local?"Z?":"Z"),n.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function WF(n,e){return!!((e==="v4"||!e)&&$F.test(n)||(e==="v6"||!e)&&HF.test(n))}class Vi extends hn{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Oe.string){const a=this._getOrReturnCtx(e);return Be(a,{code:xe.invalid_type,expected:Oe.string,received:a.parsedType}),tn}const i=new Ft;let r;for(const a of this._def.checks)if(a.kind==="min")e.data.length<a.value&&(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="max")e.data.length>a.value&&(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="length"){const o=e.data.length>a.value,d=e.data.length<a.value;(o||d)&&(r=this._getOrReturnCtx(e,r),o?Be(r,{code:xe.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):d&&Be(r,{code:xe.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),i.dirty())}else if(a.kind==="email")DF.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"email",code:xe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="emoji")Y1||(Y1=new RegExp(jF,"u")),Y1.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"emoji",code:xe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="uuid")BF.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"uuid",code:xe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="nanoid")IF.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"nanoid",code:xe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid")AF.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"cuid",code:xe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="cuid2")LF.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"cuid2",code:xe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="ulid")zF.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"ulid",code:xe.invalid_string,message:a.message}),i.dirty());else if(a.kind==="url")try{new URL(e.data)}catch{r=this._getOrReturnCtx(e,r),Be(r,{validation:"url",code:xe.invalid_string,message:a.message}),i.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"regex",code:xe.invalid_string,message:a.message}),i.dirty())):a.kind==="trim"?e.data=e.data.trim():a.kind==="includes"?e.data.includes(a.value,a.position)||(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),i.dirty()):a.kind==="toLowerCase"?e.data=e.data.toLowerCase():a.kind==="toUpperCase"?e.data=e.data.toUpperCase():a.kind==="startsWith"?e.data.startsWith(a.value)||(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.invalid_string,validation:{startsWith:a.value},message:a.message}),i.dirty()):a.kind==="endsWith"?e.data.endsWith(a.value)||(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.invalid_string,validation:{endsWith:a.value},message:a.message}),i.dirty()):a.kind==="datetime"?d2(a).test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.invalid_string,validation:"datetime",message:a.message}),i.dirty()):a.kind==="date"?VF.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.invalid_string,validation:"date",message:a.message}),i.dirty()):a.kind==="time"?GF(a).test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.invalid_string,validation:"time",message:a.message}),i.dirty()):a.kind==="duration"?OF.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"duration",code:xe.invalid_string,message:a.message}),i.dirty()):a.kind==="ip"?WF(e.data,a.version)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"ip",code:xe.invalid_string,message:a.message}),i.dirty()):a.kind==="base64"?NF.test(e.data)||(r=this._getOrReturnCtx(e,r),Be(r,{validation:"base64",code:xe.invalid_string,message:a.message}),i.dirty()):xn.assertNever(a);return{status:i.value,value:e.data}}_regex(e,t,i){return this.refinement(r=>e.test(r),{validation:t,code:xe.invalid_string,...Ge.errToObj(i)})}_addCheck(e){return new Vi({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Ge.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Ge.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Ge.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Ge.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Ge.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Ge.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Ge.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Ge.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Ge.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Ge.errToObj(e)})}datetime(e){var t,i;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,local:(i=e==null?void 0:e.local)!==null&&i!==void 0?i:!1,...Ge.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...Ge.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...Ge.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...Ge.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...Ge.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...Ge.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Ge.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...Ge.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...Ge.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...Ge.errToObj(t)})}nonempty(e){return this.min(1,Ge.errToObj(e))}trim(){return new Vi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Vi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Vi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Vi.create=n=>{var e;return new Vi({checks:[],typeName:en.ZodString,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...cn(n)})};function UF(n,e){const t=(n.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,r=t>i?t:i,a=parseInt(n.toFixed(r).replace(".","")),o=parseInt(e.toFixed(r).replace(".",""));return a%o/Math.pow(10,r)}class Ma extends hn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Oe.number){const a=this._getOrReturnCtx(e);return Be(a,{code:xe.invalid_type,expected:Oe.number,received:a.parsedType}),tn}let i;const r=new Ft;for(const a of this._def.checks)a.kind==="int"?xn.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),Be(i,{code:xe.invalid_type,expected:"integer",received:"float",message:a.message}),r.dirty()):a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(i=this._getOrReturnCtx(e,i),Be(i,{code:xe.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(i=this._getOrReturnCtx(e,i),Be(i,{code:xe.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="multipleOf"?UF(e.data,a.value)!==0&&(i=this._getOrReturnCtx(e,i),Be(i,{code:xe.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),Be(i,{code:xe.not_finite,message:a.message}),r.dirty()):xn.assertNever(a);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Ge.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Ge.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Ge.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Ge.toString(t))}setLimit(e,t,i,r){return new Ma({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:Ge.toString(r)}]})}_addCheck(e){return new Ma({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Ge.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ge.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ge.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ge.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ge.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Ge.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:Ge.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ge.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ge.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&xn.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}Ma.create=n=>new Ma({checks:[],typeName:en.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...cn(n)});class Pa extends hn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Oe.bigint){const a=this._getOrReturnCtx(e);return Be(a,{code:xe.invalid_type,expected:Oe.bigint,received:a.parsedType}),tn}let i;const r=new Ft;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.data<a.value:e.data<=a.value)&&(i=this._getOrReturnCtx(e,i),Be(i,{code:xe.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?e.data>a.value:e.data>=a.value)&&(i=this._getOrReturnCtx(e,i),Be(i,{code:xe.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),Be(i,{code:xe.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):xn.assertNever(a);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,Ge.toString(t))}gt(e,t){return this.setLimit("min",e,!1,Ge.toString(t))}lte(e,t){return this.setLimit("max",e,!0,Ge.toString(t))}lt(e,t){return this.setLimit("max",e,!1,Ge.toString(t))}setLimit(e,t,i,r){return new Pa({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:Ge.toString(r)}]})}_addCheck(e){return new Pa({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ge.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ge.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ge.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ge.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:Ge.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Pa.create=n=>{var e;return new Pa({checks:[],typeName:en.ZodBigInt,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...cn(n)})};class Gf extends hn{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Oe.boolean){const i=this._getOrReturnCtx(e);return Be(i,{code:xe.invalid_type,expected:Oe.boolean,received:i.parsedType}),tn}return Nt(e.data)}}Gf.create=n=>new Gf({typeName:en.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...cn(n)});class zs extends hn{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Oe.date){const a=this._getOrReturnCtx(e);return Be(a,{code:xe.invalid_type,expected:Oe.date,received:a.parsedType}),tn}if(isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return Be(a,{code:xe.invalid_date}),tn}const i=new Ft;let r;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()<a.value&&(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),i.dirty()):a.kind==="max"?e.data.getTime()>a.value&&(r=this._getOrReturnCtx(e,r),Be(r,{code:xe.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),i.dirty()):xn.assertNever(a);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new zs({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:Ge.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:Ge.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}zs.create=n=>new zs({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:en.ZodDate,...cn(n)});class Wc extends hn{_parse(e){if(this._getType(e)!==Oe.symbol){const i=this._getOrReturnCtx(e);return Be(i,{code:xe.invalid_type,expected:Oe.symbol,received:i.parsedType}),tn}return Nt(e.data)}}Wc.create=n=>new Wc({typeName:en.ZodSymbol,...cn(n)});class Wf extends hn{_parse(e){if(this._getType(e)!==Oe.undefined){const i=this._getOrReturnCtx(e);return Be(i,{code:xe.invalid_type,expected:Oe.undefined,received:i.parsedType}),tn}return Nt(e.data)}}Wf.create=n=>new Wf({typeName:en.ZodUndefined,...cn(n)});class Uf extends hn{_parse(e){if(this._getType(e)!==Oe.null){const i=this._getOrReturnCtx(e);return Be(i,{code:xe.invalid_type,expected:Oe.null,received:i.parsedType}),tn}return Nt(e.data)}}Uf.create=n=>new Uf({typeName:en.ZodNull,...cn(n)});class ll extends hn{constructor(){super(...arguments),this._any=!0}_parse(e){return Nt(e.data)}}ll.create=n=>new ll({typeName:en.ZodAny,...cn(n)});class Ss extends hn{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Nt(e.data)}}Ss.create=n=>new Ss({typeName:en.ZodUnknown,...cn(n)});class Nr extends hn{_parse(e){const t=this._getOrReturnCtx(e);return Be(t,{code:xe.invalid_type,expected:Oe.never,received:t.parsedType}),tn}}Nr.create=n=>new Nr({typeName:en.ZodNever,...cn(n)});class Uc extends hn{_parse(e){if(this._getType(e)!==Oe.undefined){const i=this._getOrReturnCtx(e);return Be(i,{code:xe.invalid_type,expected:Oe.void,received:i.parsedType}),tn}return Nt(e.data)}}Uc.create=n=>new Uc({typeName:en.ZodVoid,...cn(n)});class Wi extends hn{_parse(e){const{ctx:t,status:i}=this._processInputParams(e),r=this._def;if(t.parsedType!==Oe.array)return Be(t,{code:xe.invalid_type,expected:Oe.array,received:t.parsedType}),tn;if(r.exactLength!==null){const o=t.data.length>r.exactLength.value,d=t.data.length<r.exactLength.value;(o||d)&&(Be(t,{code:o?xe.too_big:xe.too_small,minimum:d?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(Be(t,{code:xe.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(Be(t,{code:xe.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((o,d)=>r.type._parseAsync(new mr(t,o,t.path,d)))).then(o=>Ft.mergeArray(i,o));const a=[...t.data].map((o,d)=>r.type._parseSync(new mr(t,o,t.path,d)));return Ft.mergeArray(i,a)}get element(){return this._def.type}min(e,t){return new Wi({...this._def,minLength:{value:e,message:Ge.toString(t)}})}max(e,t){return new Wi({...this._def,maxLength:{value:e,message:Ge.toString(t)}})}length(e,t){return new Wi({...this._def,exactLength:{value:e,message:Ge.toString(t)}})}nonempty(e){return this.min(1,e)}}Wi.create=(n,e)=>new Wi({type:n,minLength:null,maxLength:null,exactLength:null,typeName:en.ZodArray,...cn(e)});function Zo(n){if(n instanceof Vn){const e={};for(const t in n.shape){const i=n.shape[t];e[t]=ur.create(Zo(i))}return new Vn({...n._def,shape:()=>e})}else return n instanceof Wi?new Wi({...n._def,type:Zo(n.element)}):n instanceof ur?ur.create(Zo(n.unwrap())):n instanceof La?La.create(Zo(n.unwrap())):n instanceof vr?vr.create(n.items.map(e=>Zo(e))):n}class Vn extends hn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=xn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Oe.object){const h=this._getOrReturnCtx(e);return Be(h,{code:xe.invalid_type,expected:Oe.object,received:h.parsedType}),tn}const{status:i,ctx:r}=this._processInputParams(e),{shape:a,keys:o}=this._getCached(),d=[];if(!(this._def.catchall instanceof Nr&&this._def.unknownKeys==="strip"))for(const h in r.data)o.includes(h)||d.push(h);const f=[];for(const h of o){const p=a[h],m=r.data[h];f.push({key:{status:"valid",value:h},value:p._parse(new mr(r,m,r.path,h)),alwaysSet:h in r.data})}if(this._def.catchall instanceof Nr){const h=this._def.unknownKeys;if(h==="passthrough")for(const p of d)f.push({key:{status:"valid",value:p},value:{status:"valid",value:r.data[p]}});else if(h==="strict")d.length>0&&(Be(r,{code:xe.unrecognized_keys,keys:d}),i.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const p of d){const m=r.data[p];f.push({key:{status:"valid",value:p},value:h._parse(new mr(r,m,r.path,p)),alwaysSet:p in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const h=[];for(const p of f){const m=await p.key,y=await p.value;h.push({key:m,value:y,alwaysSet:p.alwaysSet})}return h}).then(h=>Ft.mergeObjectSync(i,h)):Ft.mergeObjectSync(i,f)}get shape(){return this._def.shape()}strict(e){return Ge.errToObj,new Vn({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,i)=>{var r,a,o,d;const f=(o=(a=(r=this._def).errorMap)===null||a===void 0?void 0:a.call(r,t,i).message)!==null&&o!==void 0?o:i.defaultError;return t.code==="unrecognized_keys"?{message:(d=Ge.errToObj(e).message)!==null&&d!==void 0?d:f}:{message:f}}}:{}})}strip(){return new Vn({...this._def,unknownKeys:"strip"})}passthrough(){return new Vn({...this._def,unknownKeys:"passthrough"})}extend(e){return new Vn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Vn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:en.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Vn({...this._def,catchall:e})}pick(e){const t={};return xn.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(t[i]=this.shape[i])}),new Vn({...this._def,shape:()=>t})}omit(e){const t={};return xn.objectKeys(this.shape).forEach(i=>{e[i]||(t[i]=this.shape[i])}),new Vn({...this._def,shape:()=>t})}deepPartial(){return Zo(this)}partial(e){const t={};return xn.objectKeys(this.shape).forEach(i=>{const r=this.shape[i];e&&!e[i]?t[i]=r:t[i]=r.optional()}),new Vn({...this._def,shape:()=>t})}required(e){const t={};return xn.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])t[i]=this.shape[i];else{let a=this.shape[i];for(;a instanceof ur;)a=a._def.innerType;t[i]=a}}),new Vn({...this._def,shape:()=>t})}keyof(){return c2(xn.objectKeys(this.shape))}}Vn.create=(n,e)=>new Vn({shape:()=>n,unknownKeys:"strip",catchall:Nr.create(),typeName:en.ZodObject,...cn(e)});Vn.strictCreate=(n,e)=>new Vn({shape:()=>n,unknownKeys:"strict",catchall:Nr.create(),typeName:en.ZodObject,...cn(e)});Vn.lazycreate=(n,e)=>new Vn({shape:n,unknownKeys:"strip",catchall:Nr.create(),typeName:en.ZodObject,...cn(e)});class Zf extends hn{_parse(e){const{ctx:t}=this._processInputParams(e),i=this._def.options;function r(a){for(const d of a)if(d.result.status==="valid")return d.result;for(const d of a)if(d.result.status==="dirty")return t.common.issues.push(...d.ctx.common.issues),d.result;const o=a.map(d=>new ci(d.ctx.common.issues));return Be(t,{code:xe.invalid_union,unionErrors:o}),tn}if(t.common.async)return Promise.all(i.map(async a=>{const o={...t,common:{...t.common,issues:[]},parent:null};return{result:await a._parseAsync({data:t.data,path:t.path,parent:o}),ctx:o}})).then(r);{let a;const o=[];for(const f of i){const h={...t,common:{...t.common,issues:[]},parent:null},p=f._parseSync({data:t.data,path:t.path,parent:h});if(p.status==="valid")return p;p.status==="dirty"&&!a&&(a={result:p,ctx:h}),h.common.issues.length&&o.push(h.common.issues)}if(a)return t.common.issues.push(...a.ctx.common.issues),a.result;const d=o.map(f=>new ci(f));return Be(t,{code:xe.invalid_union,unionErrors:d}),tn}}get options(){return this._def.options}}Zf.create=(n,e)=>new Zf({options:n,typeName:en.ZodUnion,...cn(e)});const Or=n=>n instanceof Yf?Or(n.schema):n instanceof qi?Or(n.innerType()):n instanceof Jf?[n.value]:n instanceof Aa?n.options:n instanceof Xf?xn.objectValues(n.enum):n instanceof Qf?Or(n._def.innerType):n instanceof Wf?[void 0]:n instanceof Uf?[null]:n instanceof ur?[void 0,...Or(n.unwrap())]:n instanceof La?[null,...Or(n.unwrap())]:n instanceof Gp||n instanceof nd?Or(n.unwrap()):n instanceof ed?Or(n._def.innerType):[];class Eu extends hn{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Oe.object)return Be(t,{code:xe.invalid_type,expected:Oe.object,received:t.parsedType}),tn;const i=this.discriminator,r=t.data[i],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(Be(t,{code:xe.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),tn)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){const r=new Map;for(const a of t){const o=Or(a.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const d of o){if(r.has(d))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(d)}`);r.set(d,a)}}return new Eu({typeName:en.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...cn(i)})}}function Hh(n,e){const t=_a(n),i=_a(e);if(n===e)return{valid:!0,data:n};if(t===Oe.object&&i===Oe.object){const r=xn.objectKeys(e),a=xn.objectKeys(n).filter(d=>r.indexOf(d)!==-1),o={...n,...e};for(const d of a){const f=Hh(n[d],e[d]);if(!f.valid)return{valid:!1};o[d]=f.data}return{valid:!0,data:o}}else if(t===Oe.array&&i===Oe.array){if(n.length!==e.length)return{valid:!1};const r=[];for(let a=0;a<n.length;a++){const o=n[a],d=e[a],f=Hh(o,d);if(!f.valid)return{valid:!1};r.push(f.data)}return{valid:!0,data:r}}else return t===Oe.date&&i===Oe.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}class qf extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e),r=(a,o)=>{if(jh(a)||jh(o))return tn;const d=Hh(a.value,o.value);return d.valid?(($h(a)||$h(o))&&t.dirty(),{status:t.value,value:d.data}):(Be(i,{code:xe.invalid_intersection_types}),tn)};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(([a,o])=>r(a,o)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}qf.create=(n,e,t)=>new qf({left:n,right:e,typeName:en.ZodIntersection,...cn(t)});class vr extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Oe.array)return Be(i,{code:xe.invalid_type,expected:Oe.array,received:i.parsedType}),tn;if(i.data.length<this._def.items.length)return Be(i,{code:xe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),tn;!this._def.rest&&i.data.length>this._def.items.length&&(Be(i,{code:xe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const a=[...i.data].map((o,d)=>{const f=this._def.items[d]||this._def.rest;return f?f._parse(new mr(i,o,i.path,d)):null}).filter(o=>!!o);return i.common.async?Promise.all(a).then(o=>Ft.mergeArray(t,o)):Ft.mergeArray(t,a)}get items(){return this._def.items}rest(e){return new vr({...this._def,rest:e})}}vr.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new vr({items:n,typeName:en.ZodTuple,rest:null,...cn(e)})};class Kf extends hn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Oe.object)return Be(i,{code:xe.invalid_type,expected:Oe.object,received:i.parsedType}),tn;const r=[],a=this._def.keyType,o=this._def.valueType;for(const d in i.data)r.push({key:a._parse(new mr(i,d,i.path,d)),value:o._parse(new mr(i,i.data[d],i.path,d)),alwaysSet:d in i.data});return i.common.async?Ft.mergeObjectAsync(t,r):Ft.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,i){return t instanceof hn?new Kf({keyType:e,valueType:t,typeName:en.ZodRecord,...cn(i)}):new Kf({keyType:Vi.create(),valueType:e,typeName:en.ZodRecord,...cn(t)})}}class Zc extends hn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Oe.map)return Be(i,{code:xe.invalid_type,expected:Oe.map,received:i.parsedType}),tn;const r=this._def.keyType,a=this._def.valueType,o=[...i.data.entries()].map(([d,f],h)=>({key:r._parse(new mr(i,d,i.path,[h,"key"])),value:a._parse(new mr(i,f,i.path,[h,"value"]))}));if(i.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of o){const h=await f.key,p=await f.value;if(h.status==="aborted"||p.status==="aborted")return tn;(h.status==="dirty"||p.status==="dirty")&&t.dirty(),d.set(h.value,p.value)}return{status:t.value,value:d}})}else{const d=new Map;for(const f of o){const h=f.key,p=f.value;if(h.status==="aborted"||p.status==="aborted")return tn;(h.status==="dirty"||p.status==="dirty")&&t.dirty(),d.set(h.value,p.value)}return{status:t.value,value:d}}}}Zc.create=(n,e,t)=>new Zc({valueType:e,keyType:n,typeName:en.ZodMap,...cn(t)});class Bs extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==Oe.set)return Be(i,{code:xe.invalid_type,expected:Oe.set,received:i.parsedType}),tn;const r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(Be(i,{code:xe.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(Be(i,{code:xe.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function o(f){const h=new Set;for(const p of f){if(p.status==="aborted")return tn;p.status==="dirty"&&t.dirty(),h.add(p.value)}return{status:t.value,value:h}}const d=[...i.data.values()].map((f,h)=>a._parse(new mr(i,f,i.path,h)));return i.common.async?Promise.all(d).then(f=>o(f)):o(d)}min(e,t){return new Bs({...this._def,minSize:{value:e,message:Ge.toString(t)}})}max(e,t){return new Bs({...this._def,maxSize:{value:e,message:Ge.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Bs.create=(n,e)=>new Bs({valueType:n,minSize:null,maxSize:null,typeName:en.ZodSet,...cn(e)});class Xo extends hn{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Oe.function)return Be(t,{code:xe.invalid_type,expected:Oe.function,received:t.parsedType}),tn;function i(d,f){return Vc({data:d,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Nc(),ol].filter(h=>!!h),issueData:{code:xe.invalid_arguments,argumentsError:f}})}function r(d,f){return Vc({data:d,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Nc(),ol].filter(h=>!!h),issueData:{code:xe.invalid_return_type,returnTypeError:f}})}const a={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof fl){const d=this;return Nt(async function(...f){const h=new ci([]),p=await d._def.args.parseAsync(f,a).catch(x=>{throw h.addIssue(i(f,x)),h}),m=await Reflect.apply(o,this,p);return await d._def.returns._def.type.parseAsync(m,a).catch(x=>{throw h.addIssue(r(m,x)),h})})}else{const d=this;return Nt(function(...f){const h=d._def.args.safeParse(f,a);if(!h.success)throw new ci([i(f,h.error)]);const p=Reflect.apply(o,this,h.data),m=d._def.returns.safeParse(p,a);if(!m.success)throw new ci([r(p,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Xo({...this._def,args:vr.create(e).rest(Ss.create())})}returns(e){return new Xo({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new Xo({args:e||vr.create([]).rest(Ss.create()),returns:t||Ss.create(),typeName:en.ZodFunction,...cn(i)})}}class Yf extends hn{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Yf.create=(n,e)=>new Yf({getter:n,typeName:en.ZodLazy,...cn(e)});class Jf extends hn{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Be(t,{received:t.data,code:xe.invalid_literal,expected:this._def.value}),tn}return{status:"valid",value:e.data}}get value(){return this._def.value}}Jf.create=(n,e)=>new Jf({value:n,typeName:en.ZodLiteral,...cn(e)});function c2(n,e){return new Aa({values:n,typeName:en.ZodEnum,...cn(e)})}class Aa extends hn{constructor(){super(...arguments),Cf.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),i=this._def.values;return Be(t,{expected:xn.joinValues(i),received:t.parsedType,code:xe.invalid_type}),tn}if(Gc(this,Cf)||o2(this,Cf,new Set(this._def.values)),!Gc(this,Cf).has(e.data)){const t=this._getOrReturnCtx(e),i=this._def.values;return Be(t,{received:t.data,code:xe.invalid_enum_value,options:i}),tn}return Nt(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Aa.create(e,{...this._def,...t})}exclude(e,t=this._def){return Aa.create(this.options.filter(i=>!e.includes(i)),{...this._def,...t})}}Cf=new WeakMap;Aa.create=c2;class Xf extends hn{constructor(){super(...arguments),Ef.set(this,void 0)}_parse(e){const t=xn.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==Oe.string&&i.parsedType!==Oe.number){const r=xn.objectValues(t);return Be(i,{expected:xn.joinValues(r),received:i.parsedType,code:xe.invalid_type}),tn}if(Gc(this,Ef)||o2(this,Ef,new Set(xn.getValidEnumValues(this._def.values))),!Gc(this,Ef).has(e.data)){const r=xn.objectValues(t);return Be(i,{received:i.data,code:xe.invalid_enum_value,options:r}),tn}return Nt(e.data)}get enum(){return this._def.values}}Ef=new WeakMap;Xf.create=(n,e)=>new Xf({values:n,typeName:en.ZodNativeEnum,...cn(e)});class fl extends hn{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Oe.promise&&t.common.async===!1)return Be(t,{code:xe.invalid_type,expected:Oe.promise,received:t.parsedType}),tn;const i=t.parsedType===Oe.promise?t.data:Promise.resolve(t.data);return Nt(i.then(r=>this._def.type.parseAsync(r,{path:t.path,errorMap:t.common.contextualErrorMap})))}}fl.create=(n,e)=>new fl({type:n,typeName:en.ZodPromise,...cn(e)});class qi extends hn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===en.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:i}=this._processInputParams(e),r=this._def.effect||null,a={addIssue:o=>{Be(i,o),o.fatal?t.abort():t.dirty()},get path(){return i.path}};if(a.addIssue=a.addIssue.bind(a),r.type==="preprocess"){const o=r.transform(i.data,a);if(i.common.async)return Promise.resolve(o).then(async d=>{if(t.value==="aborted")return tn;const f=await this._def.schema._parseAsync({data:d,path:i.path,parent:i});return f.status==="aborted"?tn:f.status==="dirty"||t.value==="dirty"?Ko(f.value):f});{if(t.value==="aborted")return tn;const d=this._def.schema._parseSync({data:o,path:i.path,parent:i});return d.status==="aborted"?tn:d.status==="dirty"||t.value==="dirty"?Ko(d.value):d}}if(r.type==="refinement"){const o=d=>{const f=r.refinement(d,a);if(i.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return d.status==="aborted"?tn:(d.status==="dirty"&&t.dirty(),o(d.value),{status:t.value,value:d.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>d.status==="aborted"?tn:(d.status==="dirty"&&t.dirty(),o(d.value).then(()=>({status:t.value,value:d.value}))))}if(r.type==="transform")if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Nf(o))return o;const d=r.transform(o.value,a);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:d}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>Nf(o)?Promise.resolve(r.transform(o.value,a)).then(d=>({status:t.value,value:d})):o);xn.assertNever(r)}}qi.create=(n,e,t)=>new qi({schema:n,typeName:en.ZodEffects,effect:e,...cn(t)});qi.createWithPreprocess=(n,e,t)=>new qi({schema:e,effect:{type:"preprocess",transform:n},typeName:en.ZodEffects,...cn(t)});class ur extends hn{_parse(e){return this._getType(e)===Oe.undefined?Nt(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ur.create=(n,e)=>new ur({innerType:n,typeName:en.ZodOptional,...cn(e)});class La extends hn{_parse(e){return this._getType(e)===Oe.null?Nt(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}La.create=(n,e)=>new La({innerType:n,typeName:en.ZodNullable,...cn(e)});class Qf extends hn{_parse(e){const{ctx:t}=this._processInputParams(e);let i=t.data;return t.parsedType===Oe.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Qf.create=(n,e)=>new Qf({innerType:n,typeName:en.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...cn(e)});class ed extends hn{_parse(e){const{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return Vf(r)?r.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ci(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ci(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}ed.create=(n,e)=>new ed({innerType:n,typeName:en.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...cn(e)});class qc extends hn{_parse(e){if(this._getType(e)!==Oe.nan){const i=this._getOrReturnCtx(e);return Be(i,{code:xe.invalid_type,expected:Oe.nan,received:i.parsedType}),tn}return{status:"valid",value:e.data}}}qc.create=n=>new qc({typeName:en.ZodNaN,...cn(n)});const ZF=Symbol("zod_brand");class Gp extends hn{_parse(e){const{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 ud extends hn{_parse(e){const{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?tn:a.status==="dirty"?(t.dirty(),Ko(a.value)):this._def.out._parseAsync({data:a.value,path:i.path,parent:i})})();{const r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?tn:r.status==="dirty"?(t.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(e,t){return new ud({in:e,out:t,typeName:en.ZodPipeline})}}class nd extends hn{_parse(e){const t=this._def.innerType._parse(e),i=r=>(Nf(r)&&(r.value=Object.freeze(r.value)),r);return Vf(t)?t.then(r=>i(r)):i(t)}unwrap(){return this._def.innerType}}nd.create=(n,e)=>new nd({innerType:n,typeName:en.ZodReadonly,...cn(e)});function u2(n,e={},t){return n?ll.create().superRefine((i,r)=>{var a,o;if(!n(i)){const d=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,f=(o=(a=d.fatal)!==null&&a!==void 0?a:t)!==null&&o!==void 0?o:!0,h=typeof d=="string"?{message:d}:d;r.addIssue({code:"custom",...h,fatal:f})}}):ll.create()}const qF={object:Vn.lazycreate};var en;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(en||(en={}));const KF=(n,e={message:`Input not instance of ${n.name}`})=>u2(t=>t instanceof n,e),h2=Vi.create,p2=Ma.create,YF=qc.create,JF=Pa.create,g2=Gf.create,XF=zs.create,QF=Wc.create,eR=Wf.create,nR=Uf.create,tR=ll.create,iR=Ss.create,rR=Nr.create,aR=Uc.create,sR=Wi.create,oR=Vn.create,lR=Vn.strictCreate,fR=Zf.create,dR=Eu.create,cR=qf.create,uR=vr.create,hR=Kf.create,pR=Zc.create,gR=Bs.create,mR=Xo.create,vR=Yf.create,kR=Jf.create,wR=Aa.create,bR=Xf.create,yR=fl.create,Rm=qi.create,_R=ur.create,xR=La.create,SR=qi.createWithPreprocess,CR=ud.create,ER=()=>h2().optional(),TR=()=>p2().optional(),FR=()=>g2().optional(),RR={string:n=>Vi.create({...n,coerce:!0}),number:n=>Ma.create({...n,coerce:!0}),boolean:n=>Gf.create({...n,coerce:!0}),bigint:n=>Pa.create({...n,coerce:!0}),date:n=>zs.create({...n,coerce:!0})},MR=tn;var ws=Object.freeze({__proto__:null,defaultErrorMap:ol,setErrorMap:MF,getErrorMap:Nc,makeIssue:Vc,EMPTY_PATH:PF,addIssueToContext:Be,ParseStatus:Ft,INVALID:tn,DIRTY:Ko,OK:Nt,isAborted:jh,isDirty:$h,isValid:Nf,isAsync:Vf,get util(){return xn},get objectUtil(){return Dh},ZodParsedType:Oe,getParsedType:_a,ZodType:hn,datetimeRegex:d2,ZodString:Vi,ZodNumber:Ma,ZodBigInt:Pa,ZodBoolean:Gf,ZodDate:zs,ZodSymbol:Wc,ZodUndefined:Wf,ZodNull:Uf,ZodAny:ll,ZodUnknown:Ss,ZodNever:Nr,ZodVoid:Uc,ZodArray:Wi,ZodObject:Vn,ZodUnion:Zf,ZodDiscriminatedUnion:Eu,ZodIntersection:qf,ZodTuple:vr,ZodRecord:Kf,ZodMap:Zc,ZodSet:Bs,ZodFunction:Xo,ZodLazy:Yf,ZodLiteral:Jf,ZodEnum:Aa,ZodNativeEnum:Xf,ZodPromise:fl,ZodEffects:qi,ZodTransformer:qi,ZodOptional:ur,ZodNullable:La,ZodDefault:Qf,ZodCatch:ed,ZodNaN:qc,BRAND:ZF,ZodBranded:Gp,ZodPipeline:ud,ZodReadonly:nd,custom:u2,Schema:hn,ZodSchema:hn,late:qF,get ZodFirstPartyTypeKind(){return en},coerce:RR,any:tR,array:sR,bigint:JF,boolean:g2,date:XF,discriminatedUnion:dR,effect:Rm,enum:wR,function:mR,instanceof:KF,intersection:cR,lazy:vR,literal:kR,map:pR,nan:YF,nativeEnum:bR,never:rR,null:nR,nullable:xR,number:p2,object:oR,oboolean:FR,onumber:TR,optional:_R,ostring:ER,pipeline:CR,preprocess:SR,promise:yR,record:hR,set:gR,strictObject:lR,string:h2,symbol:QF,transformer:Rm,tuple:uR,undefined:eR,union:fR,unknown:iR,void:aR,NEVER:MR,ZodIssueCode:xe,quotelessJson:RF,ZodError:ci}),Cs={},PR=Ci&&Ci.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),m2=Ci&&Ci.__awaiter||function(n,e,t,i){function r(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function d(p){try{h(i.next(p))}catch(m){o(m)}}function f(p){try{h(i.throw(p))}catch(m){o(m)}}function h(p){p.done?a(p.value):r(p.value).then(d,f)}h((i=i.apply(n,e||[])).next())})},v2=Ci&&Ci.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function d(h){return function(p){return f([h,p])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,r&&(a=h[0]&2?r.return:h[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,h[1])).done)return a;switch(r=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return t.label++,{value:h[1],done:!1};case 5:t.label++,r=h[1],h=[0];continue;case 7:h=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){t=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){t.label=h[1];break}if(h[0]===6&&t.label<a[1]){t.label=a[1],a=h;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(h);break}a[2]&&t.ops.pop(),t.trys.pop();continue}h=e.call(n,t)}catch(p){h=[6,p],r=0}finally{i=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.toFormikValidate=w2=Cs.toFormikValidationSchema=Cs.ValidationError=void 0;var k2=function(n){PR(e,n);function e(t){var i=n.call(this,t)||this;return i.name="ValidationError",i.inner=[],i}return e}(Error);Cs.ValidationError=k2;function AR(n){var e=new k2(n.message);return e.inner=n.errors.map(function(t){return{message:t.message,path:t.path.join(".")}}),e}function LR(n,e){return{validate:function(t){return m2(this,void 0,void 0,function(){var i;return v2(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.parseAsync(t,e)];case 1:return r.sent(),[3,3];case 2:throw i=r.sent(),AR(i);case 3:return[2]}})})}}}var w2=Cs.toFormikValidationSchema=LR;function zR(n){for(var e={},t=0,i=n.errors;t<i.length;t++){var r=i[t];e[r.path.filter(Boolean).join(".")]=r.message}return e}function BR(n,e){var t=this;return function(i){return m2(t,void 0,void 0,function(){var r;return v2(this,function(a){switch(a.label){case 0:return[4,n.safeParseAsync(i,e)];case 1:return r=a.sent(),r.success?[2]:[2,zR(r.error)]}})})}}Cs.toFormikValidate=BR;const IR=M.createContext({complaint_reasons:[]}),OR=()=>M.useContext(IR);function b2(n,e){return function(){return n.apply(e,arguments)}}const{toString:DR}=Object.prototype,{getPrototypeOf:Wp}=Object,Tu=(n=>e=>{const t=DR.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ki=n=>(n=n.toLowerCase(),e=>Tu(e)===n),Fu=n=>e=>typeof e===n,{isArray:gl}=Array,td=Fu("undefined");function jR(n){return n!==null&&!td(n)&&n.constructor!==null&&!td(n.constructor)&&ui(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const y2=Ki("ArrayBuffer");function $R(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&y2(n.buffer),e}const HR=Fu("string"),ui=Fu("function"),_2=Fu("number"),Ru=n=>n!==null&&typeof n=="object",NR=n=>n===!0||n===!1,xc=n=>{if(Tu(n)!=="object")return!1;const e=Wp(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)},VR=Ki("Date"),GR=Ki("File"),WR=Ki("Blob"),UR=Ki("FileList"),ZR=n=>Ru(n)&&ui(n.pipe),qR=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||ui(n.append)&&((e=Tu(n))==="formdata"||e==="object"&&ui(n.toString)&&n.toString()==="[object FormData]"))},KR=Ki("URLSearchParams"),[YR,JR,XR,QR]=["ReadableStream","Request","Response","Headers"].map(Ki),eM=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hd(n,e,{allOwnKeys:t=!1}={}){if(n===null||typeof n>"u")return;let i,r;if(typeof n!="object"&&(n=[n]),gl(n))for(i=0,r=n.length;i<r;i++)e.call(null,n[i],i,n);else{const a=t?Object.getOwnPropertyNames(n):Object.keys(n),o=a.length;let d;for(i=0;i<o;i++)d=a[i],e.call(null,n[d],d,n)}}function x2(n,e){e=e.toLowerCase();const t=Object.keys(n);let i=t.length,r;for(;i-- >0;)if(r=t[i],e===r.toLowerCase())return r;return null}const ys=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,S2=n=>!td(n)&&n!==ys;function Nh(){const{caseless:n}=S2(this)&&this||{},e={},t=(i,r)=>{const a=n&&x2(e,r)||r;xc(e[a])&&xc(i)?e[a]=Nh(e[a],i):xc(i)?e[a]=Nh({},i):gl(i)?e[a]=i.slice():e[a]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&hd(arguments[i],t);return e}const nM=(n,e,t,{allOwnKeys:i}={})=>(hd(e,(r,a)=>{t&&ui(r)?n[a]=b2(r,t):n[a]=r},{allOwnKeys:i}),n),tM=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),iM=(n,e,t,i)=>{n.prototype=Object.create(e.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:e.prototype}),t&&Object.assign(n.prototype,t)},rM=(n,e,t,i)=>{let r,a,o;const d={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),a=r.length;a-- >0;)o=r[a],(!i||i(o,n,e))&&!d[o]&&(e[o]=n[o],d[o]=!0);n=t!==!1&&Wp(n)}while(n&&(!t||t(n,e))&&n!==Object.prototype);return e},aM=(n,e,t)=>{n=String(n),(t===void 0||t>n.length)&&(t=n.length),t-=e.length;const i=n.indexOf(e,t);return i!==-1&&i===t},sM=n=>{if(!n)return null;if(gl(n))return n;let e=n.length;if(!_2(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=n[e];return t},oM=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&Wp(Uint8Array)),lM=(n,e)=>{const i=(n&&n[Symbol.iterator]).call(n);let r;for(;(r=i.next())&&!r.done;){const a=r.value;e.call(n,a[0],a[1])}},fM=(n,e)=>{let t;const i=[];for(;(t=n.exec(e))!==null;)i.push(t);return i},dM=Ki("HTMLFormElement"),cM=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,r){return i.toUpperCase()+r}),Mm=(({hasOwnProperty:n})=>(e,t)=>n.call(e,t))(Object.prototype),uM=Ki("RegExp"),C2=(n,e)=>{const t=Object.getOwnPropertyDescriptors(n),i={};hd(t,(r,a)=>{let o;(o=e(r,a,n))!==!1&&(i[a]=o||r)}),Object.defineProperties(n,i)},hM=n=>{C2(n,(e,t)=>{if(ui(n)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const i=n[t];if(ui(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},pM=(n,e)=>{const t={},i=r=>{r.forEach(a=>{t[a]=!0})};return gl(n)?i(n):i(String(n).split(e)),t},gM=()=>{},mM=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e,J1="abcdefghijklmnopqrstuvwxyz",Pm="0123456789",E2={DIGIT:Pm,ALPHA:J1,ALPHA_DIGIT:J1+J1.toUpperCase()+Pm},vM=(n=16,e=E2.ALPHA_DIGIT)=>{let t="";const{length:i}=e;for(;n--;)t+=e[Math.random()*i|0];return t};function kM(n){return!!(n&&ui(n.append)&&n[Symbol.toStringTag]==="FormData"&&n[Symbol.iterator])}const wM=n=>{const e=new Array(10),t=(i,r)=>{if(Ru(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const a=gl(i)?[]:{};return hd(i,(o,d)=>{const f=t(o,r+1);!td(f)&&(a[d]=f)}),e[r]=void 0,a}}return i};return t(n,0)},bM=Ki("AsyncFunction"),yM=n=>n&&(Ru(n)||ui(n))&&ui(n.then)&&ui(n.catch),T2=((n,e)=>n?setImmediate:e?((t,i)=>(ys.addEventListener("message",({source:r,data:a})=>{r===ys&&a===t&&i.length&&i.shift()()},!1),r=>{i.push(r),ys.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",ui(ys.postMessage)),_M=typeof queueMicrotask<"u"?queueMicrotask.bind(ys):typeof process<"u"&&process.nextTick||T2,se={isArray:gl,isArrayBuffer:y2,isBuffer:jR,isFormData:qR,isArrayBufferView:$R,isString:HR,isNumber:_2,isBoolean:NR,isObject:Ru,isPlainObject:xc,isReadableStream:YR,isRequest:JR,isResponse:XR,isHeaders:QR,isUndefined:td,isDate:VR,isFile:GR,isBlob:WR,isRegExp:uM,isFunction:ui,isStream:ZR,isURLSearchParams:KR,isTypedArray:oM,isFileList:UR,forEach:hd,merge:Nh,extend:nM,trim:eM,stripBOM:tM,inherits:iM,toFlatObject:rM,kindOf:Tu,kindOfTest:Ki,endsWith:aM,toArray:sM,forEachEntry:lM,matchAll:fM,isHTMLForm:dM,hasOwnProperty:Mm,hasOwnProp:Mm,reduceDescriptors:C2,freezeMethods:hM,toObjectSet:pM,toCamelCase:cM,noop:gM,toFiniteNumber:mM,findKey:x2,global:ys,isContextDefined:S2,ALPHABET:E2,generateString:vM,isSpecCompliantForm:kM,toJSONObject:wM,isAsyncFn:bM,isThenable:yM,setImmediate:T2,asap:_M};function dn(n,e,t,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),i&&(this.request=i),r&&(this.response=r)}se.inherits(dn,Error,{toJSON:function(){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:se.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F2=dn.prototype,R2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{R2[n]={value:n}});Object.defineProperties(dn,R2);Object.defineProperty(F2,"isAxiosError",{value:!0});dn.from=(n,e,t,i,r,a)=>{const o=Object.create(F2);return se.toFlatObject(n,o,function(f){return f!==Error.prototype},d=>d!=="isAxiosError"),dn.call(o,n.message,e,t,i,r),o.cause=n,o.name=n.name,a&&Object.assign(o,a),o};const xM=null;function Vh(n){return se.isPlainObject(n)||se.isArray(n)}function M2(n){return se.endsWith(n,"[]")?n.slice(0,-2):n}function Am(n,e,t){return n?n.concat(e).map(function(r,a){return r=M2(r),!t&&a?"["+r+"]":r}).join(t?".":""):e}function SM(n){return se.isArray(n)&&!n.some(Vh)}const CM=se.toFlatObject(se,{},null,function(e){return/^is[A-Z]/.test(e)});function Mu(n,e,t){if(!se.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=se.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,F){return!se.isUndefined(F[R])});const i=t.metaTokens,r=t.visitor||p,a=t.dots,o=t.indexes,f=(t.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(e);if(!se.isFunction(r))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(se.isDate(_))return _.toISOString();if(!f&&se.isBlob(_))throw new dn("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(_)||se.isTypedArray(_)?f&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function p(_,R,F){let T=_;if(_&&!F&&typeof _=="object"){if(se.endsWith(R,"{}"))R=i?R:R.slice(0,-2),_=JSON.stringify(_);else if(se.isArray(_)&&SM(_)||(se.isFileList(_)||se.endsWith(R,"[]"))&&(T=se.toArray(_)))return R=M2(R),T.forEach(function(I,N){!(se.isUndefined(I)||I===null)&&e.append(o===!0?Am([R],N,a):o===null?R:R+"[]",h(I))}),!1}return Vh(_)?!0:(e.append(Am(F,R,a),h(_)),!1)}const m=[],y=Object.assign(CM,{defaultVisitor:p,convertValue:h,isVisitable:Vh});function x(_,R){if(!se.isUndefined(_)){if(m.indexOf(_)!==-1)throw Error("Circular reference detected in "+R.join("."));m.push(_),se.forEach(_,function(T,D){(!(se.isUndefined(T)||T===null)&&r.call(e,T,se.isString(D)?D.trim():D,R,y))===!0&&x(T,R?R.concat(D):[D])}),m.pop()}}if(!se.isObject(n))throw new TypeError("data must be an object");return x(n),e}function Lm(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function Up(n,e){this._pairs=[],n&&Mu(n,this,e)}const P2=Up.prototype;P2.append=function(e,t){this._pairs.push([e,t])};P2.toString=function(e){const t=e?function(i){return e.call(this,i,Lm)}:Lm;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function EM(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function A2(n,e,t){if(!e)return n;const i=t&&t.encode||EM,r=t&&t.serialize;let a;if(r?a=r(e,t):a=se.isURLSearchParams(e)?e.toString():new Up(e,t).toString(i),a){const o=n.indexOf("#");o!==-1&&(n=n.slice(0,o)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n}class zm{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:i?i.synchronous:!1,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){se.forEach(this.handlers,function(i){i!==null&&e(i)})}}const L2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TM=typeof URLSearchParams<"u"?URLSearchParams:Up,FM=typeof FormData<"u"?FormData:null,RM=typeof Blob<"u"?Blob:null,MM={isBrowser:!0,classes:{URLSearchParams:TM,FormData:FM,Blob:RM},protocols:["http","https","file","blob","url","data"]},Zp=typeof window<"u"&&typeof document<"u",PM=(n=>Zp&&["ReactNative","NativeScript","NS"].indexOf(n)<0)(typeof navigator<"u"&&navigator.product),AM=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",LM=Zp&&window.location.href||"http://localhost",zM=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zp,hasStandardBrowserEnv:PM,hasStandardBrowserWebWorkerEnv:AM,origin:LM},Symbol.toStringTag,{value:"Module"})),Ui={...zM,...MM};function BM(n,e){return Mu(n,new Ui.classes.URLSearchParams,Object.assign({visitor:function(t,i,r,a){return Ui.isNode&&se.isBuffer(t)?(this.append(i,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},e))}function IM(n){return se.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function OM(n){const e={},t=Object.keys(n);let i;const r=t.length;let a;for(i=0;i<r;i++)a=t[i],e[a]=n[a];return e}function z2(n){function e(t,i,r,a){let o=t[a++];if(o==="__proto__")return!0;const d=Number.isFinite(+o),f=a>=t.length;return o=!o&&se.isArray(r)?r.length:o,f?(se.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!d):((!r[o]||!se.isObject(r[o]))&&(r[o]=[]),e(t,i,r[o],a)&&se.isArray(r[o])&&(r[o]=OM(r[o])),!d)}if(se.isFormData(n)&&se.isFunction(n.entries)){const t={};return se.forEachEntry(n,(i,r)=>{e(IM(i),r,t,0)}),t}return null}function DM(n,e,t){if(se.isString(n))try{return(e||JSON.parse)(n),se.trim(n)}catch(i){if(i.name!=="SyntaxError")throw i}return(t||JSON.stringify)(n)}const pd={transitional:L2,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const i=t.getContentType()||"",r=i.indexOf("application/json")>-1,a=se.isObject(e);if(a&&se.isHTMLForm(e)&&(e=new FormData(e)),se.isFormData(e))return r?JSON.stringify(z2(e)):e;if(se.isArrayBuffer(e)||se.isBuffer(e)||se.isStream(e)||se.isFile(e)||se.isBlob(e)||se.isReadableStream(e))return e;if(se.isArrayBufferView(e))return e.buffer;if(se.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return BM(e,this.formSerializer).toString();if((d=se.isFileList(e))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Mu(d?{"files[]":e}:e,f&&new f,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),DM(e)):e}],transformResponse:[function(e){const t=this.transitional||pd.transitional,i=t&&t.forcedJSONParsing,r=this.responseType==="json";if(se.isResponse(e)||se.isReadableStream(e))return e;if(e&&se.isString(e)&&(i&&!this.responseType||r)){const o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(d){if(o)throw d.name==="SyntaxError"?dn.from(d,dn.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ui.classes.FormData,Blob:Ui.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],n=>{pd.headers[n]={}});const jM=se.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"]),$M=n=>{const e={};let t,i,r;return n&&n.split(`
|
|
219
219
|
`).forEach(function(o){r=o.indexOf(":"),t=o.substring(0,r).trim().toLowerCase(),i=o.substring(r+1).trim(),!(!t||e[t]&&jM[t])&&(t==="set-cookie"?e[t]?e[t].push(i):e[t]=[i]:e[t]=e[t]?e[t]+", "+i:i)}),e},Bm=Symbol("internals");function kf(n){return n&&String(n).trim().toLowerCase()}function Sc(n){return n===!1||n==null?n:se.isArray(n)?n.map(Sc):String(n)}function HM(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=t.exec(n);)e[i[1]]=i[2];return e}const NM=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function X1(n,e,t,i,r){if(se.isFunction(i))return i.call(this,e,t);if(r&&(e=t),!!se.isString(e)){if(se.isString(i))return e.indexOf(i)!==-1;if(se.isRegExp(i))return i.test(e)}}function VM(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i)}function GM(n,e){const t=se.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+t,{value:function(r,a,o){return this[i].call(this,e,r,a,o)},configurable:!0})})}let Jt=class{constructor(e){e&&this.set(e)}set(e,t,i){const r=this;function a(d,f,h){const p=kf(f);if(!p)throw new Error("header name must be a non-empty string");const m=se.findKey(r,p);(!m||r[m]===void 0||h===!0||h===void 0&&r[m]!==!1)&&(r[m||f]=Sc(d))}const o=(d,f)=>se.forEach(d,(h,p)=>a(h,p,f));if(se.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(se.isString(e)&&(e=e.trim())&&!NM(e))o($M(e),t);else if(se.isHeaders(e))for(const[d,f]of e.entries())a(f,d,i);else e!=null&&a(t,e,i);return this}get(e,t){if(e=kf(e),e){const i=se.findKey(this,e);if(i){const r=this[i];if(!t)return r;if(t===!0)return HM(r);if(se.isFunction(t))return t.call(this,r,i);if(se.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=kf(e),e){const i=se.findKey(this,e);return!!(i&&this[i]!==void 0&&(!t||X1(this,this[i],i,t)))}return!1}delete(e,t){const i=this;let r=!1;function a(o){if(o=kf(o),o){const d=se.findKey(i,o);d&&(!t||X1(i,i[d],d,t))&&(delete i[d],r=!0)}}return se.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let i=t.length,r=!1;for(;i--;){const a=t[i];(!e||X1(this,this[a],a,e,!0))&&(delete this[a],r=!0)}return r}normalize(e){const t=this,i={};return se.forEach(this,(r,a)=>{const o=se.findKey(i,a);if(o){t[o]=Sc(r),delete t[a];return}const d=e?VM(a):String(a).trim();d!==a&&delete t[a],t[d]=Sc(r),i[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return se.forEach(this,(i,r)=>{i!=null&&i!==!1&&(t[r]=e&&se.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(`
|
|
220
220
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[Bm]=this[Bm]={accessors:{}}).accessors,r=this.prototype;function a(o){const d=kf(o);i[d]||(GM(r,o),i[d]=!0)}return se.isArray(e)?e.forEach(a):a(e),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);se.reduceDescriptors(Jt.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(i){this[t]=i}}});se.freezeMethods(Jt);function Q1(n,e){const t=this||pd,i=e||t,r=Jt.from(i.headers);let a=i.data;return se.forEach(n,function(d){a=d.call(t,a,r.normalize(),e?e.status:void 0)}),r.normalize(),a}function B2(n){return!!(n&&n.__CANCEL__)}function ml(n,e,t){dn.call(this,n??"canceled",dn.ERR_CANCELED,e,t),this.name="CanceledError"}se.inherits(ml,dn,{__CANCEL__:!0});function I2(n,e,t){const i=t.config.validateStatus;!t.status||!i||i(t.status)?n(t):e(new dn("Request failed with status code "+t.status,[dn.ERR_BAD_REQUEST,dn.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function WM(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function UM(n,e){n=n||10;const t=new Array(n),i=new Array(n);let r=0,a=0,o;return e=e!==void 0?e:1e3,function(f){const h=Date.now(),p=i[a];o||(o=h),t[r]=f,i[r]=h;let m=a,y=0;for(;m!==r;)y+=t[m++],m=m%n;if(r=(r+1)%n,r===a&&(a=(a+1)%n),h-o<e)return;const x=p&&h-p;return x?Math.round(y*1e3/x):void 0}}function ZM(n,e){let t=0,i=1e3/e,r,a;const o=(h,p=Date.now())=>{t=p,r=null,a&&(clearTimeout(a),a=null),n.apply(null,h)};return[(...h)=>{const p=Date.now(),m=p-t;m>=i?o(h,p):(r=h,a||(a=setTimeout(()=>{a=null,o(r)},i-m)))},()=>r&&o(r)]}const Kc=(n,e,t=3)=>{let i=0;const r=UM(50,250);return ZM(a=>{const o=a.loaded,d=a.lengthComputable?a.total:void 0,f=o-i,h=r(f),p=o<=d;i=o;const m={loaded:o,total:d,progress:d?o/d:void 0,bytes:f,rate:h||void 0,estimated:h&&d&&p?(d-o)/h:void 0,event:a,lengthComputable:d!=null,[e?"download":"upload"]:!0};n(m)},t)},Im=(n,e)=>{const t=n!=null;return[i=>e[0]({lengthComputable:t,total:n,loaded:i}),e[1]]},Om=n=>(...e)=>se.asap(()=>n(...e)),qM=Ui.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let i;function r(a){let o=a;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return i=r(window.location.href),function(o){const d=se.isString(o)?r(o):o;return d.protocol===i.protocol&&d.host===i.host}}():function(){return function(){return!0}}(),KM=Ui.hasStandardBrowserEnv?{write(n,e,t,i,r,a){const o=[n+"="+encodeURIComponent(e)];se.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),se.isString(i)&&o.push("path="+i),se.isString(r)&&o.push("domain="+r),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(n){const e=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function YM(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function JM(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function O2(n,e){return n&&!YM(e)?JM(n,e):e}const Dm=n=>n instanceof Jt?{...n}:n;function Is(n,e){e=e||{};const t={};function i(h,p,m){return se.isPlainObject(h)&&se.isPlainObject(p)?se.merge.call({caseless:m},h,p):se.isPlainObject(p)?se.merge({},p):se.isArray(p)?p.slice():p}function r(h,p,m){if(se.isUndefined(p)){if(!se.isUndefined(h))return i(void 0,h,m)}else return i(h,p,m)}function a(h,p){if(!se.isUndefined(p))return i(void 0,p)}function o(h,p){if(se.isUndefined(p)){if(!se.isUndefined(h))return i(void 0,h)}else return i(void 0,p)}function d(h,p,m){if(m in e)return i(h,p);if(m in n)return i(void 0,h)}const f={url:a,method:a,data:a,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,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:d,headers:(h,p)=>r(Dm(h),Dm(p),!0)};return se.forEach(Object.keys(Object.assign({},n,e)),function(p){const m=f[p]||r,y=m(n[p],e[p],p);se.isUndefined(y)&&m!==d||(t[p]=y)}),t}const D2=n=>{const e=Is({},n);let{data:t,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:a,headers:o,auth:d}=e;e.headers=o=Jt.from(o),e.url=A2(O2(e.baseURL,e.url),n.params,n.paramsSerializer),d&&o.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let f;if(se.isFormData(t)){if(Ui.hasStandardBrowserEnv||Ui.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((f=o.getContentType())!==!1){const[h,...p]=f?f.split(";").map(m=>m.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...p].join("; "))}}if(Ui.hasStandardBrowserEnv&&(i&&se.isFunction(i)&&(i=i(e)),i||i!==!1&&qM(e.url))){const h=r&&a&&KM.read(a);h&&o.set(r,h)}return e},XM=typeof XMLHttpRequest<"u",QM=XM&&function(n){return new Promise(function(t,i){const r=D2(n);let a=r.data;const o=Jt.from(r.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r,p,m,y,x,_;function R(){x&&x(),_&&_(),r.cancelToken&&r.cancelToken.unsubscribe(p),r.signal&&r.signal.removeEventListener("abort",p)}let F=new XMLHttpRequest;F.open(r.method.toUpperCase(),r.url,!0),F.timeout=r.timeout;function T(){if(!F)return;const I=Jt.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders()),B={data:!d||d==="text"||d==="json"?F.responseText:F.response,status:F.status,statusText:F.statusText,headers:I,config:n,request:F};I2(function(W){t(W),R()},function(W){i(W),R()},B),F=null}"onloadend"in F?F.onloadend=T:F.onreadystatechange=function(){!F||F.readyState!==4||F.status===0&&!(F.responseURL&&F.responseURL.indexOf("file:")===0)||setTimeout(T)},F.onabort=function(){F&&(i(new dn("Request aborted",dn.ECONNABORTED,n,F)),F=null)},F.onerror=function(){i(new dn("Network Error",dn.ERR_NETWORK,n,F)),F=null},F.ontimeout=function(){let N=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const B=r.transitional||L2;r.timeoutErrorMessage&&(N=r.timeoutErrorMessage),i(new dn(N,B.clarifyTimeoutError?dn.ETIMEDOUT:dn.ECONNABORTED,n,F)),F=null},a===void 0&&o.setContentType(null),"setRequestHeader"in F&&se.forEach(o.toJSON(),function(N,B){F.setRequestHeader(B,N)}),se.isUndefined(r.withCredentials)||(F.withCredentials=!!r.withCredentials),d&&d!=="json"&&(F.responseType=r.responseType),h&&([y,_]=Kc(h,!0),F.addEventListener("progress",y)),f&&F.upload&&([m,x]=Kc(f),F.upload.addEventListener("progress",m),F.upload.addEventListener("loadend",x)),(r.cancelToken||r.signal)&&(p=I=>{F&&(i(!I||I.type?new ml(null,n,F):I),F.abort(),F=null)},r.cancelToken&&r.cancelToken.subscribe(p),r.signal&&(r.signal.aborted?p():r.signal.addEventListener("abort",p)));const D=WM(r.url);if(D&&Ui.protocols.indexOf(D)===-1){i(new dn("Unsupported protocol "+D+":",dn.ERR_BAD_REQUEST,n));return}F.send(a||null)})},eP=(n,e)=>{let t=new AbortController,i;const r=function(f){if(!i){i=!0,o();const h=f instanceof Error?f:this.reason;t.abort(h instanceof dn?h:new ml(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{r(new dn(`timeout ${e} of ms exceeded`,dn.ETIMEDOUT))},e);const o=()=>{n&&(a&&clearTimeout(a),a=null,n.forEach(f=>{f&&(f.removeEventListener?f.removeEventListener("abort",r):f.unsubscribe(r))}),n=null)};n.forEach(f=>f&&f.addEventListener&&f.addEventListener("abort",r));const{signal:d}=t;return d.unsubscribe=o,[d,()=>{a&&clearTimeout(a),a=null}]},nP=function*(n,e){let t=n.byteLength;if(!e||t<e){yield n;return}let i=0,r;for(;i<t;)r=i+e,yield n.slice(i,r),i=r},tP=async function*(n,e,t){for await(const i of n)yield*nP(ArrayBuffer.isView(i)?i:await t(String(i)),e)},jm=(n,e,t,i,r)=>{const a=tP(n,e,r);let o=0,d,f=h=>{d||(d=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:p,value:m}=await a.next();if(p){f(),h.close();return}let y=m.byteLength;if(t){let x=o+=y;t(x)}h.enqueue(new Uint8Array(m))}catch(p){throw f(p),p}},cancel(h){return f(h),a.return()}},{highWaterMark:2})},Pu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",j2=Pu&&typeof ReadableStream=="function",Gh=Pu&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),$2=(n,...e)=>{try{return!!n(...e)}catch{return!1}},iP=j2&&$2(()=>{let n=!1;const e=new Request(Ui.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!e}),$m=64*1024,Wh=j2&&$2(()=>se.isReadableStream(new Response("").body)),Yc={stream:Wh&&(n=>n.body)};Pu&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Yc[e]&&(Yc[e]=se.isFunction(n[e])?t=>t[e]():(t,i)=>{throw new dn(`Response type '${e}' is not supported`,dn.ERR_NOT_SUPPORT,i)})})})(new Response);const rP=async n=>{if(n==null)return 0;if(se.isBlob(n))return n.size;if(se.isSpecCompliantForm(n))return(await new Request(n).arrayBuffer()).byteLength;if(se.isArrayBufferView(n)||se.isArrayBuffer(n))return n.byteLength;if(se.isURLSearchParams(n)&&(n=n+""),se.isString(n))return(await Gh(n)).byteLength},aP=async(n,e)=>{const t=se.toFiniteNumber(n.getContentLength());return t??rP(e)},sP=Pu&&(async n=>{let{url:e,method:t,data:i,signal:r,cancelToken:a,timeout:o,onDownloadProgress:d,onUploadProgress:f,responseType:h,headers:p,withCredentials:m="same-origin",fetchOptions:y}=D2(n);h=h?(h+"").toLowerCase():"text";let[x,_]=r||a||o?eP([r,a],o):[],R,F;const T=()=>{!R&&setTimeout(()=>{x&&x.unsubscribe()}),R=!0};let D;try{if(f&&iP&&t!=="get"&&t!=="head"&&(D=await aP(p,i))!==0){let V=new Request(e,{method:"POST",body:i,duplex:"half"}),W;if(se.isFormData(i)&&(W=V.headers.get("content-type"))&&p.setContentType(W),V.body){const[ue,Q]=Im(D,Kc(Om(f)));i=jm(V.body,$m,ue,Q,Gh)}}se.isString(m)||(m=m?"include":"omit"),F=new Request(e,{...y,signal:x,method:t.toUpperCase(),headers:p.normalize().toJSON(),body:i,duplex:"half",credentials:m});let I=await fetch(F);const N=Wh&&(h==="stream"||h==="response");if(Wh&&(d||N)){const V={};["status","statusText","headers"].forEach(K=>{V[K]=I[K]});const W=se.toFiniteNumber(I.headers.get("content-length")),[ue,Q]=d&&Im(W,Kc(Om(d),!0))||[];I=new Response(jm(I.body,$m,ue,()=>{Q&&Q(),N&&T()},Gh),V)}h=h||"text";let B=await Yc[se.findKey(Yc,h)||"text"](I,n);return!N&&T(),_&&_(),await new Promise((V,W)=>{I2(V,W,{data:B,headers:Jt.from(I.headers),status:I.status,statusText:I.statusText,config:n,request:F})})}catch(I){throw T(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new dn("Network Error",dn.ERR_NETWORK,n,F),{cause:I.cause||I}):dn.from(I,I&&I.code,n,F)}}),Uh={http:xM,xhr:QM,fetch:sP};se.forEach(Uh,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Hm=n=>`- ${n}`,oP=n=>se.isFunction(n)||n===null||n===!1,H2={getAdapter:n=>{n=se.isArray(n)?n:[n];const{length:e}=n;let t,i;const r={};for(let a=0;a<e;a++){t=n[a];let o;if(i=t,!oP(t)&&(i=Uh[(o=String(t)).toLowerCase()],i===void 0))throw new dn(`Unknown adapter '${o}'`);if(i)break;r[o||"#"+a]=i}if(!i){const a=Object.entries(r).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
|
|
221
221
|
`+a.map(Hm).join(`
|
|
222
222
|
`):" "+Hm(a[0]):"as no adapter specified";throw new dn("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:Uh};function eh(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new ml(null,n)}function Nm(n){return eh(n),n.headers=Jt.from(n.headers),n.data=Q1.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),H2.getAdapter(n.adapter||pd.adapter)(n).then(function(i){return eh(n),i.data=Q1.call(n,n.transformResponse,i),i.headers=Jt.from(i.headers),i},function(i){return B2(i)||(eh(n),i&&i.response&&(i.response.data=Q1.call(n,n.transformResponse,i.response),i.response.headers=Jt.from(i.response.headers))),Promise.reject(i)})}const N2="1.7.3",qp={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{qp[n]=function(i){return typeof i===n||"a"+(e<1?"n ":" ")+n}});const Vm={};qp.transitional=function(e,t,i){function r(a,o){return"[Axios v"+N2+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,d)=>{if(e===!1)throw new dn(r(o," has been removed"+(t?" in "+t:"")),dn.ERR_DEPRECATED);return t&&!Vm[o]&&(Vm[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,o,d):!0}};function lP(n,e,t){if(typeof n!="object")throw new dn("options must be an object",dn.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let r=i.length;for(;r-- >0;){const a=i[r],o=e[a];if(o){const d=n[a],f=d===void 0||o(d,a,n);if(f!==!0)throw new dn("option "+a+" must be "+f,dn.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new dn("Unknown option "+a,dn.ERR_BAD_OPTION)}}const Zh={assertOptions:lP,validators:qp},wa=Zh.validators;let Es=class{constructor(e){this.defaults=e,this.interceptors={request:new zm,response:new zm}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const a=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
223
|
-
`+a):i.stack=a}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Is(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:a}=t;i!==void 0&&Zh.assertOptions(i,{silentJSONParsing:wa.transitional(wa.boolean),forcedJSONParsing:wa.transitional(wa.boolean),clarifyTimeoutError:wa.transitional(wa.boolean)},!1),r!=null&&(se.isFunction(r)?t.paramsSerializer={serialize:r}:Zh.assertOptions(r,{encode:wa.function,serialize:wa.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&se.merge(a.common,a[t.method]);a&&se.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),t.headers=Jt.concat(o,a);const d=[];let f=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(t)===!1||(f=f&&R.synchronous,d.unshift(R.fulfilled,R.rejected))});const h=[];this.interceptors.response.forEach(function(R){h.push(R.fulfilled,R.rejected)});let p,m=0,y;if(!f){const _=[Nm.bind(this),void 0];for(_.unshift.apply(_,d),_.push.apply(_,h),y=_.length,p=Promise.resolve(t);m<y;)p=p.then(_[m++],_[m++]);return p}y=d.length;let x=t;for(m=0;m<y;){const _=d[m++],R=d[m++];try{x=_(x)}catch(F){R.call(this,F);break}}try{p=Nm.call(this,x)}catch(_){return Promise.reject(_)}for(m=0,y=h.length;m<y;)p=p.then(h[m++],h[m++]);return p}getUri(e){e=Is(this.defaults,e);const t=O2(e.baseURL,e.url);return A2(t,e.params,e.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(e){Es.prototype[e]=function(t,i){return this.request(Is(i||{},{method:e,url:t,data:(i||{}).data}))}});se.forEach(["post","put","patch"],function(e){function t(i){return function(a,o,d){return this.request(Is(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Es.prototype[e]=t(),Es.prototype[e+"Form"]=t(!0)});let fP=class V2{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(d=>{i.subscribe(d),a=d}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},e(function(a,o,d){i.reason||(i.reason=new ml(a,o,d),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new V2(function(r){e=r}),cancel:e}}};function dP(n){return function(t){return n.apply(null,t)}}function cP(n){return se.isObject(n)&&n.isAxiosError===!0}const qh={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};Object.entries(qh).forEach(([n,e])=>{qh[e]=n});function G2(n){const e=new Es(n),t=b2(Es.prototype.request,e);return se.extend(t,Es.prototype,e,{allOwnKeys:!0}),se.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return G2(Is(n,r))},t}const Qn=G2(pd);Qn.Axios=Es;Qn.CanceledError=ml;Qn.CancelToken=fP;Qn.isCancel=B2;Qn.VERSION=N2;Qn.toFormData=Mu;Qn.AxiosError=dn;Qn.Cancel=Qn.CanceledError;Qn.all=function(e){return Promise.all(e)};Qn.spread=dP;Qn.isAxiosError=cP;Qn.mergeConfig=Is;Qn.AxiosHeaders=Jt;Qn.formToJSON=n=>z2(se.isHTMLForm(n)?new FormData(n):n);Qn.getAdapter=H2.getAdapter;Qn.HttpStatusCode=qh;Qn.default=Qn;const{Axios:QI,AxiosError:eO,CanceledError:nO,isCancel:tO,CancelToken:iO,VERSION:rO,all:aO,Cancel:sO,isAxiosError:uP,spread:oO,toFormData:lO,AxiosHeaders:fO,HttpStatusCode:dO,formToJSON:cO,getAdapter:uO,mergeConfig:hO}=Qn,Qp=class Qp{static setup(e){return this.instance||(this.instance=Qn.create({baseURL:e.baseUrl}),e.basicAuth&&(this.instance.defaults.auth={password:e.basicAuth.password,username:e.basicAuth.username}),e.authToken&&(this.instance.defaults.headers.common["X-Auth-Token"]=e.authToken),e.language&&(this.instance.defaults.headers.common["Accept-Language"]=e.language),this.instance.interceptors.response.use(t=>t,t=>{throw uP(t)?new Error(this.generateErrorMsg(t)):t})),this.instance}static generateErrorMsg(e){return e.response?`API Error: ${e.response.status} - ${e.response.data}`:e.request?"API Error: Request made but no response received.":`API Error: ${e.message}`}static getApi(){if(!this.instance)throw new Error("API instance is not initialized. Call setup first.");return this.instance}};Qp.instance=null;let Kh=Qp;async function hP(n){return(await Kh.getApi().post("/public/v1/complaints.json",{complaint:n})).data}const pP="_form_1fm69_106",gP="_fieldset_1fm69_110",mP="_fieldSetName_1fm69_121",vP="_successBody_1fm69_127",kP="_generalError_1fm69_134",wf={form:pP,fieldset:gP,fieldSetName:mP,successBody:vP,generalError:kP},wP=ws.object({reasonText:ws.string({required_error:"Bitte gib eine BegrΓΌndung ein."}).min(5,"Bitte gib mindestens 5 und hΓΆchstens 5000 Zeichen ein.").max(5e3,"Bitte gib mindestens 5 und hΓΆchstens 5000 Zeichen ein."),reporterEmail:ws.string({required_error:"Bitte gib eine gΓΌltige E-Mail-Adresse ein."}).email("Bitte gib eine gΓΌltige E-Mail-Adresse ein."),reporterFirstName:ws.string({required_error:"Bitte gib einen gΓΌltigen Vornamen ein."}).min(2,"Bitte gib mindestens 2 und hΓΆchstens 40 Zeichen ein.").max(40,"Bitte gib mindestens 2 und hΓΆchstens 40 Zeichen ein."),reporterLastName:ws.string({required_error:"Bitte gib einen gΓΌltigen Nachnamen ein."}).min(2,"Bitte gib mindestens 2 und hΓΆchstens 40 Zeichen ein.").max(40,"Bitte gib mindestens 2 und hΓΆchstens 40 Zeichen ein."),selectedReason:ws.string({invalid_type_error:"Bitte wΓ€hle eine Option."}),selectedRole:ws.string({required_error:"Bitte wΓ€hle eine Rolle."})}),bP=({handleModalClick:n,open:e,subjectId:t})=>{const[i,r]=M.useState(!1),a=yF({initialValues:{errorText:"",reasonText:"",reporterEmail:"",reporterFirstName:"",reporterLastName:"",selectedReason:"",selectedRole:"myself"},onSubmit:(_,{setErrors:R,setSubmitting:F})=>{hP({reason:_.selectedReason,report_origin:_.selectedRole,reporter_email:_.reporterEmail,reporter_firstname:_.reporterFirstName,reporter_lastname:_.reporterLastName,reporter_message:_.reasonText,subject_id:t,subject_type:"HoodMessage"}).then(T=>{r(!0)}).catch(T=>{R({errorText:"Ein Fehler ist aufgetreten, bitte versuchen Sie es spΓ€ter noch einmal."}),console.log(T)}).finally(()=>{F(!1)})},validationSchema:w2(wP)}),o=_=>{a.setFieldValue("selectedReason",_)},d=_=>{a.setFieldValue("selectedRole",_)},f=OR(),h=()=>{n()},p=()=>{a.handleSubmit()};let m="Inhalt melden",y=L.jsx(Rx,{className:wf.form,children:L.jsxs(Fx,{className:wf.fieldset,children:[L.jsx(on,{type:"body-regular",children:"Warum hΓ€ltst du den Inhalt fΓΌr problematisch?"}),L.jsx(Vg,{colorScheme:"dark",onChange:o,value:a.values.selectedReason,placeholder:"Bitte wΓ€hle einen Grund aus",errorMessage:a.touched.selectedReason?a.errors.selectedReason:void 0,children:f.complaint_reasons.map(_=>L.jsx("option",{value:_.value,children:_.label_de},_.value))}),L.jsx(k8,{size:"small",id:"reasonText",label:"BegrΓΌnde die Meldung",colorScheme:"dark",value:a.values.reasonText,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reasonText?a.errors.reasonText:void 0}),L.jsx(on,{type:"body-regular",children:"Du erstellst diese Meldung als:"}),L.jsxs(Vg,{colorScheme:"dark",onChange:d,value:a.values.selectedRole,errorMessage:a.touched.selectedRole?a.errors.selectedRole:void 0,children:[L.jsx("option",{value:"myself",children:"Privatperson"}),L.jsx("option",{value:"non_state_actor",children:"Hinweisgeber (Art. 22 DSA)"}),L.jsx("option",{value:"state_actor",children:"Staatliche Stelle"})]}),L.jsx(Cp,{}),L.jsxs("div",{className:wf.fieldSetName,children:[L.jsx(V1,{colorScheme:"dark",label:"Vorname",size:"medium",id:"reporterFirstName",value:a.values.reporterFirstName,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterFirstName?a.errors.reporterFirstName:void 0}),L.jsx(V1,{colorScheme:"dark",label:"Nachname",size:"medium",id:"reporterLastName",value:a.values.reporterLastName,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterLastName?a.errors.reporterLastName:void 0})]}),L.jsx(V1,{colorScheme:"dark",label:"E-Mail-Adresse",size:"medium",id:"reporterEmail",value:a.values.reporterEmail,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterEmail?a.errors.reporterEmail:void 0}),a.errors.errorText&&L.jsx(on,{type:"body-semibold",className:wf.generalError,children:a.errors.errorText}),L.jsx(on,{type:"detail-medium",children:'Mit Klick auf "Absenden" bestΓ€tigst du, in gutem Glauben davon ΓΌberzeugt zu sein, dass die in der Meldung enthaltenen Angaben und AnfΓΌhrungen richtig und vollstΓ€ndig sind.'}),L.jsx(on,{type:"detail-medium",children:L.jsx(Cx,{text:"Weitere Informationen findest du zum Meldeprozess und BeschwerdegrΓΌnden in den [Beitragsrichtlinien](https://hilfe.nebenan.de/hc/de/articles/360013128074-Beitrags-und-Kommentarrichtlinien) und zur Verarbeitung personenbezogener Daten in den [Datenschutzbestimmungen](https://nebenan.de/privacy)."})})]})}),x;return i?(m="Vielen Dank fΓΌr deine Meldung!",y=L.jsxs("div",{className:wf.successBody,children:[L.jsx(on,{type:"h5",children:"Was passiert jetzt?"}),L.jsx(on,{type:"body-regular",children:"Wir prΓΌfen, ob ein VerstoΓ gegen unsere Regeln und Richtlinien oder gegen unsere Nutzungsbedingungen vorliegt. Wenn das der Fall ist, werden wir aktiv."})]})):x=L.jsx(mu,{onClick:p,text:"Absenden",color:"highlight"}),L.jsx("div",{children:L.jsx(Ms,{children:L.jsx(Tv,{open:e,onClose:h,modalBody:y,headerTitle:m,modalFooter:x,closeButtonText:"SchlieΓen"})})})},yP=800,W2=()=>window.innerWidth<yP,_P=({cancelText:n="Abbrechen",confirmText:e="BestΓ€tigen",content:t,handleCancel:i,handleConfirm:r,primaryCtaColor:a="primary",title:o})=>{const d=()=>L.jsx(rl,{headline:o,as:"h3",rightElement:L.jsx(Xt,{ariaLabel:"close-sheet",onClick:i,icon:"cross",size:"small"})}),f=()=>L.jsx(mu,{color:a,onClick:r,size:"medium",text:e});return W2()?L.jsx(Ix,{open:!0,onClose:i,sheetBody:t,sheetHeader:d(),ctaButtonProps:{color:"primary",fullWidth:!0,onClick:r,size:"medium",text:e},linkProps:{color:"blue",onClick:i,size:"large",text:n}}):L.jsx(Tv,{open:!0,onClose:i,modalBody:t,headerTitle:o,closeButtonText:n,modalFooter:f()})},xP="_root_ius6r_106",SP="_textButton_ius6r_113",Gm={root:xP,textButton:SP},CP=({alt:n,ariaLabel:e,onClick:t,src:i,text:r})=>L.jsxs("div",{className:Gm.root,children:[L.jsx(il,{src:i,shape:"circular",size:"40",alt:n}),L.jsx(Ei,{className:Gm.textButton,onClick:t,children:L.jsx(on,{type:"body-regular",as:"span",children:r})}),L.jsx(Xt,{icon:"pencil",size:"small",onClick:t,variant:"circular",ariaLabel:e})]}),EP="_container_16u0z_106",TP="_sidebarLeft_16u0z_114",FP="_navBar_16u0z_118",RP="_mainContent_16u0z_124",MP="_sidebarRight_16u0z_130",bf={container:EP,sidebarLeft:TP,navBar:FP,mainContent:RP,sidebarRight:MP},PP=({children:n,left:e,navbar:t,right:i})=>L.jsxs("div",{className:bf.container,children:[L.jsx("nav",{className:bf.navBar,children:t}),e&&L.jsx("aside",{className:bf.sidebarLeft,children:e}),L.jsx("main",{className:bf.mainContent,children:n}),i&&L.jsx("aside",{className:bf.sidebarRight,children:i})]}),AP="_inputContainer_ow9ut_106",LP="_searchInput_ow9ut_121",zP="_searchButton_ow9ut_165",uc={inputContainer:AP,"inputContainer--invalid":"_inputContainer--invalid_ow9ut_118",searchInput:LP,searchButton:zP},BP=({name:n,onSearchSubmit:e,placeholder:t,ref:i})=>{const[r,a]=M.useState(""),[o,d]=M.useState(!0),{getInputProps:f}=hp({inputRef:i,onChange:x=>{a(x.target.value),p(x.target.value)},value:r}),h=f(),p=x=>{const _=x.length<250;d(_)},m=x=>{x.preventDefault(),o&&(e(r),a(""))},y=!r||r.trim().length<2;return L.jsx("form",{onSubmit:m,children:L.jsxs("div",{className:Ke(uc.inputContainer,{[uc["inputContainer--invalid"]]:!o}),children:[L.jsx("input",{...h,type:"text",name:n,placeholder:t,className:uc.searchInput}),L.jsx(Xt,{icon:"search",className:uc.searchButton,size:"small",ariaLabelledBy:"searchButton",onClick:m,disabled:y,type:"submit"})]})})},IP="_navbarWrapper_k1l82_106",OP="_navbar_k1l82_106",DP="_right_k1l82_118",hc={navbarWrapper:IP,navbar:OP,right:DP},jP=({left:n,right:e})=>L.jsx("div",{className:hc.navbarWrapper,children:L.jsxs("div",{className:hc.navbar,children:[L.jsx("div",{className:hc.left,children:n}),L.jsx("div",{className:hc.right,children:e})]})}),$P="Suchen",HP="Oh nein!",NP="Das Emoji konnte nicht gefunden werden",VP="WΓ€hle ein Emojiβ¦",GP="FΓΌge ein benutzerdefiniertes Emoji hinzu",WP={activity:"AktivitΓ€t",custom:"Benutzerdefiniert",flags:"Flaggen",foods:"Essen & Trinken",frequent:"Oft genutzt",nature:"Tiere & Natur",objects:"Objekte",people:"Smileys & Personen",places:"Reisen & Orte",search:"Suchergebnisse",symbols:"Symbole"},UP={1:"Standard",2:"Hell",3:"Mittelhell",4:"Mittel",5:"Mitteldunkel",6:"Dunkel",choose:"WΓ€hle eine Standard-Hautfarbe"},ZP={search:$P,search_no_results_1:HP,search_no_results_2:NP,pick:VP,add_custom:GP,categories:WP,skins:UP};function U2(n){return n&&n.__esModule?n.default:n}function Si(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Au,Ye,Z2,zf,q2,Wm,Jc={},K2=[],qP=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function xa(n,e){for(var t in e)n[t]=e[t];return n}function Y2(n){var e=n.parentNode;e&&e.removeChild(n)}function Yh(n,e,t){var i,r,a,o={};for(a in e)a=="key"?i=e[a]:a=="ref"?r=e[a]:o[a]=e[a];if(arguments.length>2&&(o.children=arguments.length>3?Au.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(a in n.defaultProps)o[a]===void 0&&(o[a]=n.defaultProps[a]);return Cc(n,o,i,r,null)}function Cc(n,e,t,i,r){var a={type:n,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Z2};return r==null&&Ye.vnode!=null&&Ye.vnode(a),a}function Ir(){return{current:null}}function dl(n){return n.children}function hr(n,e){this.props=n,this.context=e}function cl(n,e){if(e==null)return n.__?cl(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?cl(n):null}function J2(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return J2(n)}}function Um(n){(!n.__d&&(n.__d=!0)&&zf.push(n)&&!Xc.__r++||Wm!==Ye.debounceRendering)&&((Wm=Ye.debounceRendering)||q2)(Xc)}function Xc(){for(var n;Xc.__r=zf.length;)n=zf.sort(function(e,t){return e.__v.__b-t.__v.__b}),zf=[],n.some(function(e){var t,i,r,a,o,d;e.__d&&(o=(a=(t=e).__v).__e,(d=t.__P)&&(i=[],(r=xa({},a)).__v=a.__v+1,Kp(d,a,r,t.__n,d.ownerSVGElement!==void 0,a.__h!=null?[o]:null,i,o??cl(a),a.__h),n3(i,a),a.__e!=o&&J2(a)))})}function X2(n,e,t,i,r,a,o,d,f,h){var p,m,y,x,_,R,F,T=i&&i.__k||K2,D=T.length;for(t.__k=[],p=0;p<e.length;p++)if((x=t.__k[p]=(x=e[p])==null||typeof x=="boolean"?null:typeof x=="string"||typeof x=="number"||typeof x=="bigint"?Cc(null,x,null,null,x):Array.isArray(x)?Cc(dl,{children:x},null,null,null):x.__b>0?Cc(x.type,x.props,x.key,null,x.__v):x)!=null){if(x.__=t,x.__b=t.__b+1,(y=T[p])===null||y&&x.key==y.key&&x.type===y.type)T[p]=void 0;else for(m=0;m<D;m++){if((y=T[m])&&x.key==y.key&&x.type===y.type){T[m]=void 0;break}y=null}Kp(n,x,y=y||Jc,r,a,o,d,f,h),_=x.__e,(m=x.ref)&&y.ref!=m&&(F||(F=[]),y.ref&&F.push(y.ref,null,x),F.push(m,x.__c||_,x)),_!=null?(R==null&&(R=_),typeof x.type=="function"&&x.__k===y.__k?x.__d=f=Q2(x,f,n):f=e3(n,x,y,T,_,f),typeof t.type=="function"&&(t.__d=f)):f&&y.__e==f&&f.parentNode!=n&&(f=cl(y))}for(t.__e=R,p=D;p--;)T[p]!=null&&(typeof t.type=="function"&&T[p].__e!=null&&T[p].__e==t.__d&&(t.__d=cl(i,p+1)),i3(T[p],T[p]));if(F)for(p=0;p<F.length;p++)t3(F[p],F[++p],F[++p])}function Q2(n,e,t){for(var i,r=n.__k,a=0;r&&a<r.length;a++)(i=r[a])&&(i.__=n,e=typeof i.type=="function"?Q2(i,e,t):e3(t,i,i,r,i.__e,e));return e}function Qc(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Qc(t,e)}):e.push(n)),e}function e3(n,e,t,i,r,a){var o,d,f;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(t==null||r!=a||r.parentNode==null)e:if(a==null||a.parentNode!==n)n.appendChild(r),o=null;else{for(d=a,f=0;(d=d.nextSibling)&&f<i.length;f+=2)if(d==r)break e;n.insertBefore(r,a),o=a}return o!==void 0?o:r.nextSibling}function KP(n,e,t,i,r){var a;for(a in t)a==="children"||a==="key"||a in e||eu(n,a,null,t[a],i);for(a in e)r&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||t[a]===e[a]||eu(n,a,e[a],t[a],i)}function Zm(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||qP.test(e)?t:t+"px"}function eu(n,e,t,i,r){var a;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof i=="string"&&(n.style.cssText=i=""),i)for(e in i)t&&e in t||Zm(n.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||Zm(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+a]=t,t?i||n.addEventListener(e,a?Km:qm,a):n.removeEventListener(e,a?Km:qm,a);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in n)try{n[e]=t??"";break e}catch{}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?n.setAttribute(e,t):n.removeAttribute(e))}}function qm(n){this.l[n.type+!1](Ye.event?Ye.event(n):n)}function Km(n){this.l[n.type+!0](Ye.event?Ye.event(n):n)}function Kp(n,e,t,i,r,a,o,d,f){var h,p,m,y,x,_,R,F,T,D,I,N=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(f=t.__h,d=e.__e=t.__e,e.__h=null,a=[d]),(h=Ye.__b)&&h(e);try{e:if(typeof N=="function"){if(F=e.props,T=(h=N.contextType)&&i[h.__c],D=h?T?T.props.value:h.__:i,t.__c?R=(p=e.__c=t.__c).__=p.__E:("prototype"in N&&N.prototype.render?e.__c=p=new N(F,D):(e.__c=p=new hr(F,D),p.constructor=N,p.render=JP),T&&T.sub(p),p.props=F,p.state||(p.state={}),p.context=D,p.__n=i,m=p.__d=!0,p.__h=[]),p.__s==null&&(p.__s=p.state),N.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=xa({},p.__s)),xa(p.__s,N.getDerivedStateFromProps(F,p.__s))),y=p.props,x=p.state,m)N.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(N.getDerivedStateFromProps==null&&F!==y&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(F,D),!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(F,p.__s,D)===!1||e.__v===t.__v){p.props=F,p.state=p.__s,e.__v!==t.__v&&(p.__d=!1),p.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(B){B&&(B.__=e)}),p.__h.length&&o.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(F,p.__s,D),p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(y,x,_)})}p.context=D,p.props=F,p.state=p.__s,(h=Ye.__r)&&h(e),p.__d=!1,p.__v=e,p.__P=n,h=p.render(p.props,p.state,p.context),p.state=p.__s,p.getChildContext!=null&&(i=xa(xa({},i),p.getChildContext())),m||p.getSnapshotBeforeUpdate==null||(_=p.getSnapshotBeforeUpdate(y,x)),I=h!=null&&h.type===dl&&h.key==null?h.props.children:h,X2(n,Array.isArray(I)?I:[I],e,t,i,r,a,o,d,f),p.base=e.__e,e.__h=null,p.__h.length&&o.push(p),R&&(p.__E=p.__=null),p.__e=!1}else a==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=YP(t.__e,e,t,i,r,a,o,f);(h=Ye.diffed)&&h(e)}catch(B){e.__v=null,(f||a!=null)&&(e.__e=d,e.__h=!!f,a[a.indexOf(d)]=null),Ye.__e(B,e,t)}}function n3(n,e){Ye.__c&&Ye.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(i){i.call(t)})}catch(i){Ye.__e(i,t.__v)}})}function YP(n,e,t,i,r,a,o,d){var f,h,p,m=t.props,y=e.props,x=e.type,_=0;if(x==="svg"&&(r=!0),a!=null){for(;_<a.length;_++)if((f=a[_])&&"setAttribute"in f==!!x&&(x?f.localName===x:f.nodeType===3)){n=f,a[_]=null;break}}if(n==null){if(x===null)return document.createTextNode(y);n=r?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,y.is&&y),a=null,d=!1}if(x===null)m===y||d&&n.data===y||(n.data=y);else{if(a=a&&Au.call(n.childNodes),h=(m=t.props||Jc).dangerouslySetInnerHTML,p=y.dangerouslySetInnerHTML,!d){if(a!=null)for(m={},_=0;_<n.attributes.length;_++)m[n.attributes[_].name]=n.attributes[_].value;(p||h)&&(p&&(h&&p.__html==h.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(KP(n,y,m,r,d),p)e.__k=[];else if(_=e.props.children,X2(n,Array.isArray(_)?_:[_],e,t,i,r&&x!=="foreignObject",a,o,a?a[0]:t.__k&&cl(t,0),d),a!=null)for(_=a.length;_--;)a[_]!=null&&Y2(a[_]);d||("value"in y&&(_=y.value)!==void 0&&(_!==m.value||_!==n.value||x==="progress"&&!_)&&eu(n,"value",_,m.value,!1),"checked"in y&&(_=y.checked)!==void 0&&_!==n.checked&&eu(n,"checked",_,m.checked,!1))}return n}function t3(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(i){Ye.__e(i,t)}}function i3(n,e,t){var i,r;if(Ye.unmount&&Ye.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||t3(i,null,e)),(i=n.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){Ye.__e(a,e)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&i3(i[r],e,typeof n.type!="function");t||n.__e==null||Y2(n.__e),n.__e=n.__d=void 0}function JP(n,e,t){return this.constructor(n,t)}function r3(n,e,t){var i,r,a;Ye.__&&Ye.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,a=[],Kp(e,n=(!i&&t||e).__k=Yh(dl,null,[n]),r||Jc,Jc,e.ownerSVGElement!==void 0,!i&&t?[t]:r?null:e.firstChild?Au.call(e.childNodes):null,a,!i&&t?t:r?r.__e:e.firstChild,i),n3(a,n)}Au=K2.slice,Ye={__e:function(n,e){for(var t,i,r;e=e.__;)if((t=e.__c)&&!t.__)try{if((i=t.constructor)&&i.getDerivedStateFromError!=null&&(t.setState(i.getDerivedStateFromError(n)),r=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(n),r=t.__d),r)return t.__E=t}catch(a){n=a}throw n}},Z2=0,hr.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=xa({},this.state),typeof n=="function"&&(n=n(xa({},t),this.props)),n&&xa(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),Um(this))},hr.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Um(this))},hr.prototype.render=dl,zf=[],q2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xc.__r=0;var XP=0;function me(n,e,t,i,r){var a,o,d={};for(o in e)o=="ref"?a=e[o]:d[o]=e[o];var f={type:n,props:d,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--XP,__source:i,__self:r};if(typeof n=="function"&&(a=n.defaultProps))for(o in a)d[o]===void 0&&(d[o]=a[o]);return Ye.vnode&&Ye.vnode(f),f}function QP(n,e){try{window.localStorage[`emoji-mart.${n}`]=JSON.stringify(e)}catch{}}function eA(n){try{const e=window.localStorage[`emoji-mart.${n}`];if(e)return JSON.parse(e)}catch{}}var Ca={set:QP,get:eA};const nh=new Map,nA=[{v:15,emoji:"π«¨"},{v:14,emoji:"π« "},{v:13.1,emoji:"πΆβπ«οΈ"},{v:13,emoji:"π₯Έ"},{v:12.1,emoji:"π§βπ¦°"},{v:12,emoji:"π₯±"},{v:11,emoji:"π₯°"},{v:5,emoji:"π€©"},{v:4,emoji:"π±ββοΈ"},{v:3,emoji:"π€£"},{v:2,emoji:"ππ»"},{v:1,emoji:"π"}];function tA(){for(const{v:n,emoji:e}of nA)if(a3(e))return n}function iA(){return!a3("π¨π¦")}function a3(n){if(nh.has(n))return nh.get(n);const e=rA(n);return nh.set(n,e),e}const rA=(()=>{let n=null;try{navigator.userAgent.includes("jsdom")||(n=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!n)return()=>!1;const e=25,t=20,i=Math.floor(e/2);return n.font=i+"px Arial, Sans-Serif",n.textBaseline="top",n.canvas.width=t*2,n.canvas.height=e,r=>{n.clearRect(0,0,t*2,e),n.fillStyle="#FF0000",n.fillText(r,0,22),n.fillStyle="#0000FF",n.fillText(r,t,22);const a=n.getImageData(0,0,t,e).data,o=a.length;let d=0;for(;d<o&&!a[d+3];d+=4);if(d>=o)return!1;const f=t+d/4%t,h=Math.floor(d/4/t),p=n.getImageData(f,h,1,1).data;return!(a[d]!==p[0]||a[d+2]!==p[2]||n.measureText(r).width>=t)}})();var Ym={latestVersion:tA,noCountryFlags:iA};const Jh=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let wt=null;function aA(n){wt||(wt=Ca.get("frequently")||{});const e=n.id||n;e&&(wt[e]||(wt[e]=0),wt[e]+=1,Ca.set("last",e),Ca.set("frequently",wt))}function sA({maxFrequentRows:n,perLine:e}){if(!n)return[];wt||(wt=Ca.get("frequently"));let t=[];if(!wt){wt={};for(let a in Jh.slice(0,e)){const o=Jh[a];wt[o]=e-a,t.push(o)}return t}const i=n*e,r=Ca.get("last");for(let a in wt)t.push(a);if(t.sort((a,o)=>{const d=wt[o],f=wt[a];return d==f?a.localeCompare(o):d-f}),t.length>i){const a=t.slice(i);t=t.slice(0,i);for(let o of a)o!=r&&delete wt[o];r&&t.indexOf(r)==-1&&(delete wt[t[t.length-1]],t.splice(-1,1,r)),Ca.set("frequently",wt)}return t}var s3={add:aA,get:sA,DEFAULTS:Jh},o3={};o3=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldnβt be found","pick":"Pick an emojiβ¦","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var $r={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Tt=null,kn=null;const th={};async function Jm(n){if(th[n])return th[n];const t=await(await fetch(n)).json();return th[n]=t,t}let ih=null,l3=null,f3=!1;function gd(n,{caller:e}={}){return ih||(ih=new Promise(t=>{l3=t})),n?oA(n):e&&!f3&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),ih}async function oA(n){f3=!0;let{emojiVersion:e,set:t,locale:i}=n;if(e||(e=$r.emojiVersion.value),t||(t=$r.set.value),i||(i=$r.locale.value),kn)kn.categories=kn.categories.filter(f=>!f.name);else{kn=(typeof n.data=="function"?await n.data():n.data)||await Jm(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${t}.json`),kn.emoticons={},kn.natives={},kn.categories.unshift({id:"frequent",emojis:[]});for(const f in kn.aliases){const h=kn.aliases[f],p=kn.emojis[h];p&&(p.aliases||(p.aliases=[]),p.aliases.push(f))}kn.originalCategories=kn.categories}if(Tt=(typeof n.i18n=="function"?await n.i18n():n.i18n)||(i=="en"?U2(o3):await Jm(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),n.custom)for(let f in n.custom){f=parseInt(f);const h=n.custom[f],p=n.custom[f-1];if(!(!h.emojis||!h.emojis.length)){h.id||(h.id=`custom_${f+1}`),h.name||(h.name=Tt.categories.custom),p&&!h.icon&&(h.target=p.target||p),kn.categories.push(h);for(const m of h.emojis)kn.emojis[m.id]=m}}n.categories&&(kn.categories=kn.originalCategories.filter(f=>n.categories.indexOf(f.id)!=-1).sort((f,h)=>{const p=n.categories.indexOf(f.id),m=n.categories.indexOf(h.id);return p-m}));let r=null,a=null;t=="native"&&(r=Ym.latestVersion(),a=n.noCountryFlags||Ym.noCountryFlags());let o=kn.categories.length,d=!1;for(;o--;){const f=kn.categories[o];if(f.id=="frequent"){let{maxFrequentRows:m,perLine:y}=n;m=m>=0?m:$r.maxFrequentRows.value,y||(y=$r.perLine.value),f.emojis=s3.get({maxFrequentRows:m,perLine:y})}if(!f.emojis||!f.emojis.length){kn.categories.splice(o,1);continue}const{categoryIcons:h}=n;if(h){const m=h[f.id];m&&!f.icon&&(f.icon=m)}let p=f.emojis.length;for(;p--;){const m=f.emojis[p],y=m.id?m:kn.emojis[m],x=()=>{f.emojis.splice(p,1)};if(!y||n.exceptEmojis&&n.exceptEmojis.includes(y.id)){x();continue}if(r&&y.version>r){x();continue}if(a&&f.id=="flags"&&!uA.includes(y.id)){x();continue}if(!y.search){if(d=!0,y.search=","+[[y.id,!1],[y.name,!0],[y.keywords,!1],[y.emoticons,!1]].map(([R,F])=>{if(R)return(Array.isArray(R)?R:[R]).map(T=>(F?T.split(/[-|_|\s]+/):[T]).map(D=>D.toLowerCase())).flat()}).flat().filter(R=>R&&R.trim()).join(","),y.emoticons)for(const R of y.emoticons)kn.emoticons[R]||(kn.emoticons[R]=y.id);let _=0;for(const R of y.skins){if(!R)continue;_++;const{native:F}=R;F&&(kn.natives[F]=y.id,y.search+=`,${F}`);const T=_==1?"":`:skin-tone-${_}:`;R.shortcodes=`:${y.id}:${T}`}}}}d&&Ts.reset(),l3()}function d3(n,e,t){n||(n={});const i={};for(let r in e)i[r]=c3(r,n,e,t);return i}function c3(n,e,t,i){const r=t[n];let a=i&&i.getAttribute(n)||(e[n]!=null&&e[n]!=null?e[n]:null);return r&&(a!=null&&r.value&&typeof r.value!=typeof a&&(typeof r.value=="boolean"?a=a!="false":a=r.value.constructor(a)),r.transform&&a&&(a=r.transform(a)),(a==null||r.choices&&r.choices.indexOf(a)==-1)&&(a=r.value)),a}const lA=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let Xh=null;function fA(n){return n.id?n:kn.emojis[n]||kn.emojis[kn.aliases[n]]||kn.emojis[kn.natives[n]]}function dA(){Xh=null}async function cA(n,{maxResults:e,caller:t}={}){if(!n||!n.trim().length)return null;e||(e=90),await gd(null,{caller:t||"SearchIndex.search"});const i=n.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((d,f,h)=>d.trim()&&h.indexOf(d)==f);if(!i.length)return;let r=Xh||(Xh=Object.values(kn.emojis)),a,o;for(const d of i){if(!r.length)break;a=[],o={};for(const f of r){if(!f.search)continue;const h=f.search.indexOf(`,${d}`);h!=-1&&(a.push(f),o[f.id]||(o[f.id]=0),o[f.id]+=f.id==d?0:h+1)}r=a}return a.length<2||(a.sort((d,f)=>{const h=o[d.id],p=o[f.id];return h==p?d.id.localeCompare(f.id):h-p}),a.length>e&&(a=a.slice(0,e))),a}var Ts={search:cA,get:fA,reset:dA,SHORTCODES_REGEX:lA};const uA=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function hA(n,e){return Array.isArray(n)&&Array.isArray(e)&&n.length===e.length&&n.every((t,i)=>t==e[i])}async function pA(n=1){for(let e in[...Array(n).keys()])await new Promise(requestAnimationFrame)}function gA(n,{skinIndex:e=0}={}){const t=n.skins[e]||(e=0,n.skins[e]),i={id:n.id,name:n.name,native:t.native,unified:t.unified,keywords:n.keywords,shortcodes:t.shortcodes||n.shortcodes};return n.skins.length>1&&(i.skin=e+1),t.src&&(i.src=t.src),n.aliases&&n.aliases.length&&(i.aliases=n.aliases),n.emoticons&&n.emoticons.length&&(i.emoticons=n.emoticons),i}const mA={activity:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:me("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),me("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:me("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),me("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:me("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),me("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),me("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},vA={loupe:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var nu={categories:mA,search:vA};function Qh(n){let{id:e,skin:t,emoji:i}=n;if(n.shortcodes){const d=n.shortcodes.match(Ts.SHORTCODES_REGEX);d&&(e=d[1],d[2]&&(t=d[2]))}if(i||(i=Ts.get(e||n.native)),!i)return n.fallback;const r=i.skins[t-1]||i.skins[0],a=r.src||(n.set!="native"&&!n.spritesheet?typeof n.getImageURL=="function"?n.getImageURL(n.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${n.set}@15.0.1/img/${n.set}/64/${r.unified}.png`:void 0),o=typeof n.getSpritesheetURL=="function"?n.getSpritesheetURL(n.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${n.set}@15.0.1/img/${n.set}/sheets-256/64.png`;return me("span",{class:"emoji-mart-emoji","data-emoji-set":n.set,children:a?me("img",{style:{maxWidth:n.size||"1em",maxHeight:n.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):n.set=="native"?me("span",{style:{fontSize:n.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):me("span",{style:{display:"block",width:n.size,height:n.size,backgroundImage:`url(${o})`,backgroundSize:`${100*kn.sheet.cols}% ${100*kn.sheet.rows}%`,backgroundPosition:`${100/(kn.sheet.cols-1)*r.x}% ${100/(kn.sheet.rows-1)*r.y}%`}})})}const kA=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class u3 extends kA{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,i){if(!this.component)return;const r=c3(e,{[e]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const i=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),i&&i.appendChild(this)}}}class wA extends u3{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var h3={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:n=>/\D/.test(n)?n:`${n}px`},set:$r.set,skin:$r.skin};class p3 extends u3{async connectedCallback(){const e=d3(this.props,h3,this);e.element=this,e.ref=t=>{this.component=t},await gd(),!this.disconnected&&r3(me(Qh,{...e}),this)}constructor(e){super(e)}}Si(p3,"Props",h3);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",p3);var Xm,ep=[],Qm=Ye.__b,e0=Ye.__r,n0=Ye.diffed,t0=Ye.__c,i0=Ye.unmount;function bA(){var n;for(ep.sort(function(e,t){return e.__v.__b-t.__v.__b});n=ep.pop();)if(n.__P)try{n.__H.__h.forEach(Ec),n.__H.__h.forEach(np),n.__H.__h=[]}catch(e){n.__H.__h=[],Ye.__e(e,n.__v)}}Ye.__b=function(n){Qm&&Qm(n)},Ye.__r=function(n){e0&&e0(n);var e=n.__c.__H;e&&(e.__h.forEach(Ec),e.__h.forEach(np),e.__h=[])},Ye.diffed=function(n){n0&&n0(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(ep.push(e)!==1&&Xm===Ye.requestAnimationFrame||((Xm=Ye.requestAnimationFrame)||function(t){var i,r=function(){clearTimeout(a),r0&&cancelAnimationFrame(i),setTimeout(t)},a=setTimeout(r,100);r0&&(i=requestAnimationFrame(r))})(bA))},Ye.__c=function(n,e){e.some(function(t){try{t.__h.forEach(Ec),t.__h=t.__h.filter(function(i){return!i.__||np(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],Ye.__e(i,t.__v)}}),t0&&t0(n,e)},Ye.unmount=function(n){i0&&i0(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Ec(i)}catch(r){e=r}}),e&&Ye.__e(e,t.__v))};var r0=typeof requestAnimationFrame=="function";function Ec(n){var e=n.__c;typeof e=="function"&&(n.__c=void 0,e())}function np(n){n.__c=n.__()}function yA(n,e){for(var t in e)n[t]=e[t];return n}function a0(n,e){for(var t in n)if(t!=="__source"&&!(t in e))return!0;for(var i in e)if(i!=="__source"&&n[i]!==e[i])return!0;return!1}function tu(n){this.props=n}(tu.prototype=new hr).isPureReactComponent=!0,tu.prototype.shouldComponentUpdate=function(n,e){return a0(this.props,n)||a0(this.state,e)};var s0=Ye.__b;Ye.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),s0&&s0(n)};var _A=Ye.__e;Ye.__e=function(n,e,t){if(n.then){for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),i.__c(n,e)}_A(n,e,t)};var o0=Ye.unmount;function rh(){this.__u=0,this.t=null,this.__b=null}function g3(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function pc(){this.u=null,this.o=null}Ye.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),o0&&o0(n)},(rh.prototype=new hr).__c=function(n,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=g3(i.__v),a=!1,o=function(){a||(a=!0,t.__R=null,r?r(d):d())};t.__R=o;var d=function(){if(!--i.__u){if(i.state.__e){var h=i.state.__e;i.__v.__k[0]=function m(y,x,_){return y&&(y.__v=null,y.__k=y.__k&&y.__k.map(function(R){return m(R,x,_)}),y.__c&&y.__c.__P===x&&(y.__e&&_.insertBefore(y.__e,y.__d),y.__c.__e=!0,y.__c.__P=_)),y}(h,h.__c.__P,h.__c.__O)}var p;for(i.setState({__e:i.__b=null});p=i.t.pop();)p.forceUpdate()}},f=e.__h===!0;i.__u++||f||i.setState({__e:i.__b=i.__v.__k[0]}),n.then(o,o)},rh.prototype.componentWillUnmount=function(){this.t=[]},rh.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,d,f){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(h){typeof h.__c=="function"&&h.__c()}),o.__c.__H=null),(o=yA({},o)).__c!=null&&(o.__c.__P===f&&(o.__c.__P=d),o.__c=null),o.__k=o.__k&&o.__k.map(function(h){return a(h,d,f)})),o}(this.__b,t,i.__O=i.__P)}this.__b=null}var r=e.__e&&Yh(dl,null,n.fallback);return r&&(r.__h=null),[Yh(dl,null,e.__e?null:n.children),r]};var l0=function(n,e,t){if(++t[1]===t[0]&&n.o.delete(e),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(t=n.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.u=t=t[2]}};(pc.prototype=new hr).__e=function(n){var e=this,t=g3(e.__v),i=e.o.get(n);return i[0]++,function(r){var a=function(){e.props.revealOrder?(i.push(r),l0(e,n,i)):r()};t?t(a):a()}},pc.prototype.render=function(n){this.u=null,this.o=new Map;var e=Qc(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return n.children},pc.prototype.componentDidUpdate=pc.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){l0(n,t,e)})};var xA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,SA=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,CA=typeof document<"u",EA=function(n){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};hr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(hr.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var f0=Ye.event;function TA(){}function FA(){return this.cancelBubble}function RA(){return this.defaultPrevented}Ye.event=function(n){return f0&&(n=f0(n)),n.persist=TA,n.isPropagationStopped=FA,n.isDefaultPrevented=RA,n.nativeEvent=n};var d0={configurable:!0,get:function(){return this.class}},c0=Ye.vnode;Ye.vnode=function(n){var e=n.type,t=n.props,i=t;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var a in i={},t){var o=t[a];CA&&a==="children"&&e==="noscript"||a==="value"&&"defaultValue"in t&&o==null||(a==="defaultValue"&&"value"in t&&t.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!EA(t.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(a)?a=a.toLowerCase():r&&SA.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),i[a]=o)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Qc(t.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=Qc(t.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),n.props=i,t.class!=t.className&&(d0.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",d0))}n.$$typeof=xA,c0&&c0(n)};var u0=Ye.__r;Ye.__r=function(n){u0&&u0(n),n.__c};const MA={light:"outline",dark:"solid"};class PA extends tu{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return me("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return me("img",{src:t.src})}const i=nu.categories[e.id]||nu.categories.custom,r=this.props.icons=="auto"?MA[this.props.theme]:this.props.icons;return i[r]||i}render(){let e=null;return me("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:me("div",{class:"flex relative",children:[this.categories.map((t,i)=>{const r=t.name||Tt.categories[t.id],a=!this.props.unfocused&&t.id==this.state.categoryId;return a&&(e=i),me("button",{"aria-label":r,"aria-selected":a||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:t,i})},children:this.renderIcon(t)})}),me("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=kn.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class AA extends tu{shouldComponentUpdate(e){for(let t in e)if(t!="children"&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}const gc={rowsPerRender:10};class LA extends hr{getInitialState(e=this.props){return{skin:Ca.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=Tt.rtl?"rtl":"ltr",this.refs={menu:Ir(),navigation:Ir(),scroll:Ir(),search:Ir(),searchInput:Ir(),skinToneButton:Ir(),skinToneRadio:Ir()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const t in e)this.nextState[t]=e[t];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let t=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(t=!0);delete this.nextState;const i=this.getInitialState();if(t)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(e={}){await gd(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const t of this.observers)e.includes(t)||t.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=kn;this.refs.categories=new Map;const t=kn.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;const i=(r,a)=>{const o=[];o.__categoryId=a.id,o.__index=r.length,this.grid.push(o);const d=this.grid.length-1,f=d%gc.rowsPerRender?{}:Ir();return f.index=d,f.posinset=this.grid.setsize+1,r.push(f),o};for(let r of e){const a=[];let o=i(a,r);for(let d of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(d);this.refs.categories.set(r.id,{root:Ir(),rows:a})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:t,emojiButtonSize:i}=e,r=()=>{const{width:o}=t.getBoundingClientRect();return Math.floor(o/i)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(t),this.observers.push(a),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,t]){const i=this.state.searchResults||this.grid,r=i[e]&&i[e][t];if(r)return Ts.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const t=new Map,i=o=>{o!=e.state.categoryId&&e.setState({categoryId:o})},r={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const f of o){const h=f.target.dataset.id;t.set(h,f.intersectionRatio)}const d=[...t];for(const[f,h]of d)if(h){i(f);break}},r);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const e={...this.state.visibleRows},t=new IntersectionObserver(i=>{for(const r of i){const a=parseInt(r.target.dataset.index);r.isIntersecting?e[a]=!0:delete e[a]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(gc.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*gc.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&t.observe(r.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:t,left:i,right:r,up:a,down:o}){const d=this.state.searchResults||this.grid;if(!d.length)return;let[f,h]=this.state.pos;const p=(()=>{if(f==0&&h==0&&!e.repeat&&(i||a))return null;if(f==-1)return!e.repeat&&(r||o)&&t.selectionStart==t.value.length?[0,0]:null;if(i||r){let m=d[f];const y=i?-1:1;if(h+=y,!m[h]){if(f+=y,m=d[f],!m)return f=i?0:d.length-1,h=i?0:d[f].length-1,[f,h];h=i?m.length-1:0}return[f,h]}if(a||o){f+=a?-1:1;const m=d[f];return m?(m[h]||(h=m.length-1),[f,h]):(f=a?0:d.length-1,h=a?0:d[f].length-1,[f,h])}})();if(p)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:p,keyboard:!0},()=>{this.scrollTo({row:p[0]})})}scrollTo({categoryId:e,row:t}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,a=r.getBoundingClientRect();let o=0;if(t>=0&&(e=i[t].__categoryId),e&&(o=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(a.top-r.scrollTop)+1),t>=0)if(!t)o=0;else{const d=i[t].__index,f=o+d*this.props.emojiButtonSize,h=f+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(f<r.scrollTop)o=f;else if(h>r.scrollTop+a.height)o=h-a.height;else return}this.ignoreMouse(),r.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:t,pos:i}){if(this.props.onEmojiSelect&&(!t&&i&&(t=this.getEmojiByPos(i)),t)){const r=gA(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&s3.add(r,this.props),this.props.onEmojiSelect(r,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),Ca.set("skin",e)}renderNav(){return me(PA,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return me("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[me("div",{class:"flex flex-middle flex-grow",children:[me("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:me(Qh,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),me("div",{class:`margin-${this.dir[0]}`,children:e||t?me("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[me("div",{class:"preview-title ellipsis",children:e?e.name:Tt.search_no_results_1}),me("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:Tt.search_no_results_2})]}):me("div",{class:"preview-placeholder color-c",children:Tt.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:i,grid:r}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,f=(e.skins[o-1]||e.skins[0]).native,h=hA(this.state.pos,t),p=t.concat(e.id).join("");return me(AA,{selected:h,skin:o,size:a,children:me("button",{"aria-label":f,"aria-selected":h||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:m=>this.handleEmojiClick({e:m,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[me("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),me(Qh,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},p)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return me("div",{children:[me("div",{class:"spacer"}),me("div",{class:"flex flex-middle",children:[me("div",{class:"search relative flex-grow",children:[me("input",{type:"search",ref:this.refs.searchInput,placeholder:Tt.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),me("span",{class:"icon loupe flex",children:nu.search.loupe}),this.state.searchResults&&me("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:nu.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?me("div",{class:"category",ref:this.refs.search,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Tt.categories.search}),me("div",{children:e.length?e.map((t,i)=>me("div",{class:"flex",children:t.map((r,a)=>this.renderEmojiButton(r,{pos:[i,a],posinset:i*this.props.perLine+a+1,grid:e}))})):me("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&me("a",{onClick:this.props.onAddCustomEmoji,children:Tt.add_custom})})})]}):null}renderCategories(){const{categories:e}=kn,t=!!this.state.searchResults,i=this.getPerLine();return me("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0,height:"100%"},children:e.map(r=>{const{root:a,rows:o}=this.refs.categories.get(r.id);return me("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Tt.categories[r.id]}),me("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((d,f)=>{const h=d.index-d.index%gc.rowsPerRender,p=this.state.visibleRows[h],m="current"in d?d:void 0;if(!p&&!m)return null;const y=f*i,x=y+i,_=r.emojis.slice(y,x);return _.length<i&&_.push(...new Array(i-_.length)),me("div",{"data-index":d.index,ref:m,class:"flex row",style:{top:f*this.props.emojiButtonSize},children:p&&_.map((R,F)=>{if(!R)return me("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const T=Ts.get(R);return this.renderEmojiButton(T,{pos:[d.index,F],posinset:d.posinset+F,grid:this.grid})})},d.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:me("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:me("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Tt.skins.choose,title:Tt.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:me("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),t=e?e.name:"";return me("div",{"aria-live":"polite",class:"sr-only",children:t})}renderSkins(){const t=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-t.right-3:r.left=t.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-t.top+6:(r.top=t.bottom-i.top+3,r.bottom="auto"),me("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Tt.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{const o=a+1,d=this.state.skin==o;return me("div",{children:[me("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Tt.skins[o],ref:d?this.refs.skinToneRadio:null,defaultChecked:d,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:f=>{(f.code=="Enter"||f.code=="Space"||f.code=="Tab")&&(f.preventDefault(),this.handleSkinClick(o))}}),me("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[me("span",{class:`skin-tone skin-tone-${o}`}),me("span",{class:"margin-small-lr",children:Tt.skins[o]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return me("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&me("div",{class:"padding-lr",children:this.renderSearch()}),me("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:me("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),Si(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Si(this,"handleClickOutside",t=>{const{element:i}=this.props;t.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(t))}),Si(this,"handleBaseClick",t=>{this.state.showSkins&&(t.target.closest(".menu")||(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins()))}),Si(this,"handleBaseKeydown",t=>{this.state.showSkins&&t.key=="Escape"&&(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins())}),Si(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Si(this,"handleSearchInput",async()=>{const t=this.refs.searchInput.current;if(!t)return;const{value:i}=t,r=await Ts.search(i),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},a);const o=t.selectionStart==t.value.length?[0,0]:[-1,-1],d=[];d.setsize=r.length;let f=null;for(let h of r)(!d.length||f.length==this.getPerLine())&&(f=[],f.__categoryId="search",f.__index=d.length,d.push(f)),f.push(h);this.ignoreMouse(),this.setState({searchResults:d,pos:o},a)}),Si(this,"handleSearchKeyDown",t=>{const i=t.currentTarget;switch(t.stopImmediatePropagation(),t.key){case"ArrowLeft":this.navigate({e:t,input:i,left:!0});break;case"ArrowRight":this.navigate({e:t,input:i,right:!0});break;case"ArrowUp":this.navigate({e:t,input:i,up:!0});break;case"ArrowDown":this.navigate({e:t,input:i,down:!0});break;case"Enter":t.preventDefault(),this.handleEmojiClick({e:t,pos:this.state.pos});break;case"Escape":t.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Si(this,"clearSearch",()=>{const t=this.refs.searchInput.current;t&&(t.value="",t.focus(),this.handleSearchInput())}),Si(this,"handleCategoryClick",({category:t,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:t.id})}),Si(this,"openSkins",t=>{const{currentTarget:i}=t,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await pA(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class Yp extends wA{async connectedCallback(){const e=d3(this.props,$r,this);e.element=this,e.ref=t=>{this.component=t},await gd(e),!this.disconnected&&r3(me(LA,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:U2(m3)})}}Si(Yp,"Props",$r);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",Yp);var m3={};m3=`:host {
|
|
223
|
+
`+a):i.stack=a}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Is(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:a}=t;i!==void 0&&Zh.assertOptions(i,{silentJSONParsing:wa.transitional(wa.boolean),forcedJSONParsing:wa.transitional(wa.boolean),clarifyTimeoutError:wa.transitional(wa.boolean)},!1),r!=null&&(se.isFunction(r)?t.paramsSerializer={serialize:r}:Zh.assertOptions(r,{encode:wa.function,serialize:wa.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&se.merge(a.common,a[t.method]);a&&se.forEach(["delete","get","head","post","put","patch","common"],_=>{delete a[_]}),t.headers=Jt.concat(o,a);const d=[];let f=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(t)===!1||(f=f&&R.synchronous,d.unshift(R.fulfilled,R.rejected))});const h=[];this.interceptors.response.forEach(function(R){h.push(R.fulfilled,R.rejected)});let p,m=0,y;if(!f){const _=[Nm.bind(this),void 0];for(_.unshift.apply(_,d),_.push.apply(_,h),y=_.length,p=Promise.resolve(t);m<y;)p=p.then(_[m++],_[m++]);return p}y=d.length;let x=t;for(m=0;m<y;){const _=d[m++],R=d[m++];try{x=_(x)}catch(F){R.call(this,F);break}}try{p=Nm.call(this,x)}catch(_){return Promise.reject(_)}for(m=0,y=h.length;m<y;)p=p.then(h[m++],h[m++]);return p}getUri(e){e=Is(this.defaults,e);const t=O2(e.baseURL,e.url);return A2(t,e.params,e.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(e){Es.prototype[e]=function(t,i){return this.request(Is(i||{},{method:e,url:t,data:(i||{}).data}))}});se.forEach(["post","put","patch"],function(e){function t(i){return function(a,o,d){return this.request(Is(d||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Es.prototype[e]=t(),Es.prototype[e+"Form"]=t(!0)});let fP=class V2{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const i=this;this.promise.then(r=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](r);i._listeners=null}),this.promise.then=r=>{let a;const o=new Promise(d=>{i.subscribe(d),a=d}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},e(function(a,o,d){i.reason||(i.reason=new ml(a,o,d),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new V2(function(r){e=r}),cancel:e}}};function dP(n){return function(t){return n.apply(null,t)}}function cP(n){return se.isObject(n)&&n.isAxiosError===!0}const qh={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};Object.entries(qh).forEach(([n,e])=>{qh[e]=n});function G2(n){const e=new Es(n),t=b2(Es.prototype.request,e);return se.extend(t,Es.prototype,e,{allOwnKeys:!0}),se.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return G2(Is(n,r))},t}const Qn=G2(pd);Qn.Axios=Es;Qn.CanceledError=ml;Qn.CancelToken=fP;Qn.isCancel=B2;Qn.VERSION=N2;Qn.toFormData=Mu;Qn.AxiosError=dn;Qn.Cancel=Qn.CanceledError;Qn.all=function(e){return Promise.all(e)};Qn.spread=dP;Qn.isAxiosError=cP;Qn.mergeConfig=Is;Qn.AxiosHeaders=Jt;Qn.formToJSON=n=>z2(se.isHTMLForm(n)?new FormData(n):n);Qn.getAdapter=H2.getAdapter;Qn.HttpStatusCode=qh;Qn.default=Qn;const{Axios:QI,AxiosError:eO,CanceledError:nO,isCancel:tO,CancelToken:iO,VERSION:rO,all:aO,Cancel:sO,isAxiosError:uP,spread:oO,toFormData:lO,AxiosHeaders:fO,HttpStatusCode:dO,formToJSON:cO,getAdapter:uO,mergeConfig:hO}=Qn,Qp=class Qp{static setup(e){return this.instance||(this.instance=Qn.create({baseURL:e.baseUrl}),e.basicAuth&&(this.instance.defaults.auth={password:e.basicAuth.password,username:e.basicAuth.username}),e.authToken&&(this.instance.defaults.headers.common["X-Auth-Token"]=e.authToken),e.language&&(this.instance.defaults.headers.common["Accept-Language"]=e.language),this.instance.interceptors.response.use(t=>t,t=>{throw uP(t)?new Error(this.generateErrorMsg(t)):t})),this.instance}static generateErrorMsg(e){return e.response?`API Error: ${e.response.status} - ${e.response.data}`:e.request?"API Error: Request made but no response received.":`API Error: ${e.message}`}static getApi(){if(!this.instance)throw new Error("API instance is not initialized. Call setup first.");return this.instance}};Qp.instance=null;let Kh=Qp;async function hP(n){return(await Kh.getApi().post("/public/v1/complaints.json",{complaint:n})).data}const pP="_form_1fm69_106",gP="_fieldset_1fm69_110",mP="_fieldSetName_1fm69_121",vP="_successBody_1fm69_127",kP="_generalError_1fm69_134",wf={form:pP,fieldset:gP,fieldSetName:mP,successBody:vP,generalError:kP},wP=ws.object({reasonText:ws.string({required_error:"Bitte gib eine BegrΓΌndung ein."}).min(5,"Bitte gib mindestens 5 und hΓΆchstens 5000 Zeichen ein.").max(5e3,"Bitte gib mindestens 5 und hΓΆchstens 5000 Zeichen ein."),reporterEmail:ws.string({required_error:"Bitte gib eine gΓΌltige E-Mail-Adresse ein."}).email("Bitte gib eine gΓΌltige E-Mail-Adresse ein."),reporterFirstName:ws.string({required_error:"Bitte gib einen gΓΌltigen Vornamen ein."}).min(2,"Bitte gib mindestens 2 und hΓΆchstens 40 Zeichen ein.").max(40,"Bitte gib mindestens 2 und hΓΆchstens 40 Zeichen ein."),reporterLastName:ws.string({required_error:"Bitte gib einen gΓΌltigen Nachnamen ein."}).min(2,"Bitte gib mindestens 2 und hΓΆchstens 40 Zeichen ein.").max(40,"Bitte gib mindestens 2 und hΓΆchstens 40 Zeichen ein."),selectedReason:ws.string({invalid_type_error:"Bitte wΓ€hle eine Option."}),selectedRole:ws.string({required_error:"Bitte wΓ€hle eine Rolle."})}),bP=({handleModalClick:n,open:e,subjectId:t})=>{const[i,r]=M.useState(!1),a=yF({initialValues:{errorText:"",reasonText:"",reporterEmail:"",reporterFirstName:"",reporterLastName:"",selectedReason:"",selectedRole:"myself"},onSubmit:(_,{setErrors:R,setSubmitting:F})=>{hP({reason:_.selectedReason,report_origin:_.selectedRole,reporter_email:_.reporterEmail,reporter_firstname:_.reporterFirstName,reporter_lastname:_.reporterLastName,reporter_message:_.reasonText,subject_id:t,subject_type:"HoodMessage"}).then(T=>{r(!0)}).catch(T=>{R({errorText:"Ein Fehler ist aufgetreten, bitte versuchen Sie es spΓ€ter noch einmal."}),console.log(T)}).finally(()=>{F(!1)})},validationSchema:w2(wP)}),o=_=>{a.setFieldValue("selectedReason",_)},d=_=>{a.setFieldValue("selectedRole",_)},f=OR(),h=()=>{n()},p=()=>{a.handleSubmit()};let m="Inhalt melden",y=L.jsx(Rx,{className:wf.form,children:L.jsxs(Fx,{className:wf.fieldset,children:[L.jsx(on,{type:"body-regular",children:"Warum hΓ€ltst du den Inhalt fΓΌr problematisch?"}),L.jsx(Vg,{colorScheme:"dark",onChange:o,value:a.values.selectedReason,placeholder:"Bitte wΓ€hle einen Grund aus",errorMessage:a.touched.selectedReason?a.errors.selectedReason:void 0,children:f.complaint_reasons.map(_=>L.jsx("option",{value:_.value,children:_.label_de},_.value))}),L.jsx(k8,{size:"small",id:"reasonText",label:"BegrΓΌnde die Meldung",colorScheme:"dark",value:a.values.reasonText,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reasonText?a.errors.reasonText:void 0}),L.jsx(on,{type:"body-regular",children:"Du erstellst diese Meldung als:"}),L.jsxs(Vg,{colorScheme:"dark",onChange:d,value:a.values.selectedRole,errorMessage:a.touched.selectedRole?a.errors.selectedRole:void 0,children:[L.jsx("option",{value:"myself",children:"Privatperson"}),L.jsx("option",{value:"non_state_actor",children:"Hinweisgeber (Art. 22 DSA)"}),L.jsx("option",{value:"state_actor",children:"Staatliche Stelle"})]}),L.jsx(Cp,{}),L.jsxs("div",{className:wf.fieldSetName,children:[L.jsx(V1,{colorScheme:"dark",label:"Vorname",size:"medium",id:"reporterFirstName",value:a.values.reporterFirstName,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterFirstName?a.errors.reporterFirstName:void 0}),L.jsx(V1,{colorScheme:"dark",label:"Nachname",size:"medium",id:"reporterLastName",value:a.values.reporterLastName,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterLastName?a.errors.reporterLastName:void 0})]}),L.jsx(V1,{colorScheme:"dark",label:"E-Mail-Adresse",size:"medium",id:"reporterEmail",value:a.values.reporterEmail,onChange:a.handleChange,onBlur:a.handleBlur,errorMessage:a.touched.reporterEmail?a.errors.reporterEmail:void 0}),a.errors.errorText&&L.jsx(on,{type:"body-semibold",className:wf.generalError,children:a.errors.errorText}),L.jsx(on,{type:"detail-medium",children:'Mit Klick auf "Absenden" bestΓ€tigst du, in gutem Glauben davon ΓΌberzeugt zu sein, dass die in der Meldung enthaltenen Angaben und AnfΓΌhrungen richtig und vollstΓ€ndig sind.'}),L.jsx(on,{type:"detail-medium",children:L.jsx(Cx,{text:"Weitere Informationen findest du zum Meldeprozess und BeschwerdegrΓΌnden in den [Beitragsrichtlinien](https://hilfe.nebenan.de/hc/de/articles/360013128074-Beitrags-und-Kommentarrichtlinien) und zur Verarbeitung personenbezogener Daten in den [Datenschutzbestimmungen](https://nebenan.de/privacy)."})})]})}),x;return i?(m="Vielen Dank fΓΌr deine Meldung!",y=L.jsxs("div",{className:wf.successBody,children:[L.jsx(on,{type:"h5",children:"Was passiert jetzt?"}),L.jsx(on,{type:"body-regular",children:"Wir prΓΌfen, ob ein VerstoΓ gegen unsere Regeln und Richtlinien oder gegen unsere Nutzungsbedingungen vorliegt. Wenn das der Fall ist, werden wir aktiv."})]})):x=L.jsx(mu,{onClick:p,text:"Absenden",color:"highlight"}),L.jsx("div",{children:L.jsx(Ms,{children:L.jsx(Tv,{open:e,onClose:h,modalBody:y,headerTitle:m,modalFooter:x,closeButtonText:"SchlieΓen"})})})},yP=800,W2=()=>window.innerWidth<yP,_P=({cancelText:n="Abbrechen",confirmText:e="BestΓ€tigen",content:t,handleCancel:i,handleConfirm:r,primaryCtaColor:a="primary",title:o})=>{const d=()=>L.jsx(rl,{headline:o,as:"h3",rightElement:L.jsx(Xt,{ariaLabel:"close-sheet",onClick:i,icon:"cross",size:"small"})}),f=()=>L.jsx(mu,{color:a,onClick:r,size:"large",text:e});return W2()?L.jsx(Ix,{open:!0,onClose:i,sheetBody:t,sheetHeader:d(),ctaButtonProps:{color:a,fullWidth:!0,onClick:r,size:"large",text:e},linkProps:{color:"blue",onClick:i,size:"large",text:n}}):L.jsx(Tv,{open:!0,onClose:i,modalBody:t,headerTitle:o,closeButtonText:n,modalFooter:f()})},xP="_root_ius6r_106",SP="_textButton_ius6r_113",Gm={root:xP,textButton:SP},CP=({alt:n,ariaLabel:e,onClick:t,src:i,text:r})=>L.jsxs("div",{className:Gm.root,children:[L.jsx(il,{src:i,shape:"circular",size:"40",alt:n}),L.jsx(Ei,{className:Gm.textButton,onClick:t,children:L.jsx(on,{type:"body-regular",as:"span",children:r})}),L.jsx(Xt,{icon:"pencil",size:"small",onClick:t,variant:"circular",ariaLabel:e})]}),EP="_container_16u0z_106",TP="_sidebarLeft_16u0z_114",FP="_navBar_16u0z_118",RP="_mainContent_16u0z_124",MP="_sidebarRight_16u0z_130",bf={container:EP,sidebarLeft:TP,navBar:FP,mainContent:RP,sidebarRight:MP},PP=({children:n,left:e,navbar:t,right:i})=>L.jsxs("div",{className:bf.container,children:[L.jsx("nav",{className:bf.navBar,children:t}),e&&L.jsx("aside",{className:bf.sidebarLeft,children:e}),L.jsx("main",{className:bf.mainContent,children:n}),i&&L.jsx("aside",{className:bf.sidebarRight,children:i})]}),AP="_inputContainer_ow9ut_106",LP="_searchInput_ow9ut_121",zP="_searchButton_ow9ut_165",uc={inputContainer:AP,"inputContainer--invalid":"_inputContainer--invalid_ow9ut_118",searchInput:LP,searchButton:zP},BP=({name:n,onSearchSubmit:e,placeholder:t,ref:i})=>{const[r,a]=M.useState(""),[o,d]=M.useState(!0),{getInputProps:f}=hp({inputRef:i,onChange:x=>{a(x.target.value),p(x.target.value)},value:r}),h=f(),p=x=>{const _=x.length<250;d(_)},m=x=>{x.preventDefault(),o&&(e(r),a(""))},y=!r||r.trim().length<2;return L.jsx("form",{onSubmit:m,children:L.jsxs("div",{className:Ke(uc.inputContainer,{[uc["inputContainer--invalid"]]:!o}),children:[L.jsx("input",{...h,type:"text",name:n,placeholder:t,className:uc.searchInput}),L.jsx(Xt,{icon:"search",className:uc.searchButton,size:"small",ariaLabelledBy:"searchButton",onClick:m,disabled:y,type:"submit"})]})})},IP="_navbarWrapper_k1l82_106",OP="_navbar_k1l82_106",DP="_right_k1l82_118",hc={navbarWrapper:IP,navbar:OP,right:DP},jP=({left:n,right:e})=>L.jsx("div",{className:hc.navbarWrapper,children:L.jsxs("div",{className:hc.navbar,children:[L.jsx("div",{className:hc.left,children:n}),L.jsx("div",{className:hc.right,children:e})]})}),$P="Suchen",HP="Oh nein!",NP="Das Emoji konnte nicht gefunden werden",VP="WΓ€hle ein Emojiβ¦",GP="FΓΌge ein benutzerdefiniertes Emoji hinzu",WP={activity:"AktivitΓ€t",custom:"Benutzerdefiniert",flags:"Flaggen",foods:"Essen & Trinken",frequent:"Oft genutzt",nature:"Tiere & Natur",objects:"Objekte",people:"Smileys & Personen",places:"Reisen & Orte",search:"Suchergebnisse",symbols:"Symbole"},UP={1:"Standard",2:"Hell",3:"Mittelhell",4:"Mittel",5:"Mitteldunkel",6:"Dunkel",choose:"WΓ€hle eine Standard-Hautfarbe"},ZP={search:$P,search_no_results_1:HP,search_no_results_2:NP,pick:VP,add_custom:GP,categories:WP,skins:UP};function U2(n){return n&&n.__esModule?n.default:n}function Si(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Au,Ye,Z2,zf,q2,Wm,Jc={},K2=[],qP=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function xa(n,e){for(var t in e)n[t]=e[t];return n}function Y2(n){var e=n.parentNode;e&&e.removeChild(n)}function Yh(n,e,t){var i,r,a,o={};for(a in e)a=="key"?i=e[a]:a=="ref"?r=e[a]:o[a]=e[a];if(arguments.length>2&&(o.children=arguments.length>3?Au.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(a in n.defaultProps)o[a]===void 0&&(o[a]=n.defaultProps[a]);return Cc(n,o,i,r,null)}function Cc(n,e,t,i,r){var a={type:n,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Z2};return r==null&&Ye.vnode!=null&&Ye.vnode(a),a}function Ir(){return{current:null}}function dl(n){return n.children}function hr(n,e){this.props=n,this.context=e}function cl(n,e){if(e==null)return n.__?cl(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?cl(n):null}function J2(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return J2(n)}}function Um(n){(!n.__d&&(n.__d=!0)&&zf.push(n)&&!Xc.__r++||Wm!==Ye.debounceRendering)&&((Wm=Ye.debounceRendering)||q2)(Xc)}function Xc(){for(var n;Xc.__r=zf.length;)n=zf.sort(function(e,t){return e.__v.__b-t.__v.__b}),zf=[],n.some(function(e){var t,i,r,a,o,d;e.__d&&(o=(a=(t=e).__v).__e,(d=t.__P)&&(i=[],(r=xa({},a)).__v=a.__v+1,Kp(d,a,r,t.__n,d.ownerSVGElement!==void 0,a.__h!=null?[o]:null,i,o??cl(a),a.__h),n3(i,a),a.__e!=o&&J2(a)))})}function X2(n,e,t,i,r,a,o,d,f,h){var p,m,y,x,_,R,F,T=i&&i.__k||K2,D=T.length;for(t.__k=[],p=0;p<e.length;p++)if((x=t.__k[p]=(x=e[p])==null||typeof x=="boolean"?null:typeof x=="string"||typeof x=="number"||typeof x=="bigint"?Cc(null,x,null,null,x):Array.isArray(x)?Cc(dl,{children:x},null,null,null):x.__b>0?Cc(x.type,x.props,x.key,null,x.__v):x)!=null){if(x.__=t,x.__b=t.__b+1,(y=T[p])===null||y&&x.key==y.key&&x.type===y.type)T[p]=void 0;else for(m=0;m<D;m++){if((y=T[m])&&x.key==y.key&&x.type===y.type){T[m]=void 0;break}y=null}Kp(n,x,y=y||Jc,r,a,o,d,f,h),_=x.__e,(m=x.ref)&&y.ref!=m&&(F||(F=[]),y.ref&&F.push(y.ref,null,x),F.push(m,x.__c||_,x)),_!=null?(R==null&&(R=_),typeof x.type=="function"&&x.__k===y.__k?x.__d=f=Q2(x,f,n):f=e3(n,x,y,T,_,f),typeof t.type=="function"&&(t.__d=f)):f&&y.__e==f&&f.parentNode!=n&&(f=cl(y))}for(t.__e=R,p=D;p--;)T[p]!=null&&(typeof t.type=="function"&&T[p].__e!=null&&T[p].__e==t.__d&&(t.__d=cl(i,p+1)),i3(T[p],T[p]));if(F)for(p=0;p<F.length;p++)t3(F[p],F[++p],F[++p])}function Q2(n,e,t){for(var i,r=n.__k,a=0;r&&a<r.length;a++)(i=r[a])&&(i.__=n,e=typeof i.type=="function"?Q2(i,e,t):e3(t,i,i,r,i.__e,e));return e}function Qc(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Qc(t,e)}):e.push(n)),e}function e3(n,e,t,i,r,a){var o,d,f;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(t==null||r!=a||r.parentNode==null)e:if(a==null||a.parentNode!==n)n.appendChild(r),o=null;else{for(d=a,f=0;(d=d.nextSibling)&&f<i.length;f+=2)if(d==r)break e;n.insertBefore(r,a),o=a}return o!==void 0?o:r.nextSibling}function KP(n,e,t,i,r){var a;for(a in t)a==="children"||a==="key"||a in e||eu(n,a,null,t[a],i);for(a in e)r&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||t[a]===e[a]||eu(n,a,e[a],t[a],i)}function Zm(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||qP.test(e)?t:t+"px"}function eu(n,e,t,i,r){var a;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof i=="string"&&(n.style.cssText=i=""),i)for(e in i)t&&e in t||Zm(n.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||Zm(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+a]=t,t?i||n.addEventListener(e,a?Km:qm,a):n.removeEventListener(e,a?Km:qm,a);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in n)try{n[e]=t??"";break e}catch{}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?n.setAttribute(e,t):n.removeAttribute(e))}}function qm(n){this.l[n.type+!1](Ye.event?Ye.event(n):n)}function Km(n){this.l[n.type+!0](Ye.event?Ye.event(n):n)}function Kp(n,e,t,i,r,a,o,d,f){var h,p,m,y,x,_,R,F,T,D,I,N=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(f=t.__h,d=e.__e=t.__e,e.__h=null,a=[d]),(h=Ye.__b)&&h(e);try{e:if(typeof N=="function"){if(F=e.props,T=(h=N.contextType)&&i[h.__c],D=h?T?T.props.value:h.__:i,t.__c?R=(p=e.__c=t.__c).__=p.__E:("prototype"in N&&N.prototype.render?e.__c=p=new N(F,D):(e.__c=p=new hr(F,D),p.constructor=N,p.render=JP),T&&T.sub(p),p.props=F,p.state||(p.state={}),p.context=D,p.__n=i,m=p.__d=!0,p.__h=[]),p.__s==null&&(p.__s=p.state),N.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=xa({},p.__s)),xa(p.__s,N.getDerivedStateFromProps(F,p.__s))),y=p.props,x=p.state,m)N.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(N.getDerivedStateFromProps==null&&F!==y&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(F,D),!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(F,p.__s,D)===!1||e.__v===t.__v){p.props=F,p.state=p.__s,e.__v!==t.__v&&(p.__d=!1),p.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(B){B&&(B.__=e)}),p.__h.length&&o.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(F,p.__s,D),p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(y,x,_)})}p.context=D,p.props=F,p.state=p.__s,(h=Ye.__r)&&h(e),p.__d=!1,p.__v=e,p.__P=n,h=p.render(p.props,p.state,p.context),p.state=p.__s,p.getChildContext!=null&&(i=xa(xa({},i),p.getChildContext())),m||p.getSnapshotBeforeUpdate==null||(_=p.getSnapshotBeforeUpdate(y,x)),I=h!=null&&h.type===dl&&h.key==null?h.props.children:h,X2(n,Array.isArray(I)?I:[I],e,t,i,r,a,o,d,f),p.base=e.__e,e.__h=null,p.__h.length&&o.push(p),R&&(p.__E=p.__=null),p.__e=!1}else a==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=YP(t.__e,e,t,i,r,a,o,f);(h=Ye.diffed)&&h(e)}catch(B){e.__v=null,(f||a!=null)&&(e.__e=d,e.__h=!!f,a[a.indexOf(d)]=null),Ye.__e(B,e,t)}}function n3(n,e){Ye.__c&&Ye.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(i){i.call(t)})}catch(i){Ye.__e(i,t.__v)}})}function YP(n,e,t,i,r,a,o,d){var f,h,p,m=t.props,y=e.props,x=e.type,_=0;if(x==="svg"&&(r=!0),a!=null){for(;_<a.length;_++)if((f=a[_])&&"setAttribute"in f==!!x&&(x?f.localName===x:f.nodeType===3)){n=f,a[_]=null;break}}if(n==null){if(x===null)return document.createTextNode(y);n=r?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,y.is&&y),a=null,d=!1}if(x===null)m===y||d&&n.data===y||(n.data=y);else{if(a=a&&Au.call(n.childNodes),h=(m=t.props||Jc).dangerouslySetInnerHTML,p=y.dangerouslySetInnerHTML,!d){if(a!=null)for(m={},_=0;_<n.attributes.length;_++)m[n.attributes[_].name]=n.attributes[_].value;(p||h)&&(p&&(h&&p.__html==h.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(KP(n,y,m,r,d),p)e.__k=[];else if(_=e.props.children,X2(n,Array.isArray(_)?_:[_],e,t,i,r&&x!=="foreignObject",a,o,a?a[0]:t.__k&&cl(t,0),d),a!=null)for(_=a.length;_--;)a[_]!=null&&Y2(a[_]);d||("value"in y&&(_=y.value)!==void 0&&(_!==m.value||_!==n.value||x==="progress"&&!_)&&eu(n,"value",_,m.value,!1),"checked"in y&&(_=y.checked)!==void 0&&_!==n.checked&&eu(n,"checked",_,m.checked,!1))}return n}function t3(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(i){Ye.__e(i,t)}}function i3(n,e,t){var i,r;if(Ye.unmount&&Ye.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||t3(i,null,e)),(i=n.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){Ye.__e(a,e)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&i3(i[r],e,typeof n.type!="function");t||n.__e==null||Y2(n.__e),n.__e=n.__d=void 0}function JP(n,e,t){return this.constructor(n,t)}function r3(n,e,t){var i,r,a;Ye.__&&Ye.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,a=[],Kp(e,n=(!i&&t||e).__k=Yh(dl,null,[n]),r||Jc,Jc,e.ownerSVGElement!==void 0,!i&&t?[t]:r?null:e.firstChild?Au.call(e.childNodes):null,a,!i&&t?t:r?r.__e:e.firstChild,i),n3(a,n)}Au=K2.slice,Ye={__e:function(n,e){for(var t,i,r;e=e.__;)if((t=e.__c)&&!t.__)try{if((i=t.constructor)&&i.getDerivedStateFromError!=null&&(t.setState(i.getDerivedStateFromError(n)),r=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(n),r=t.__d),r)return t.__E=t}catch(a){n=a}throw n}},Z2=0,hr.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=xa({},this.state),typeof n=="function"&&(n=n(xa({},t),this.props)),n&&xa(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),Um(this))},hr.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Um(this))},hr.prototype.render=dl,zf=[],q2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xc.__r=0;var XP=0;function me(n,e,t,i,r){var a,o,d={};for(o in e)o=="ref"?a=e[o]:d[o]=e[o];var f={type:n,props:d,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--XP,__source:i,__self:r};if(typeof n=="function"&&(a=n.defaultProps))for(o in a)d[o]===void 0&&(d[o]=a[o]);return Ye.vnode&&Ye.vnode(f),f}function QP(n,e){try{window.localStorage[`emoji-mart.${n}`]=JSON.stringify(e)}catch{}}function eA(n){try{const e=window.localStorage[`emoji-mart.${n}`];if(e)return JSON.parse(e)}catch{}}var Ca={set:QP,get:eA};const nh=new Map,nA=[{v:15,emoji:"π«¨"},{v:14,emoji:"π« "},{v:13.1,emoji:"πΆβπ«οΈ"},{v:13,emoji:"π₯Έ"},{v:12.1,emoji:"π§βπ¦°"},{v:12,emoji:"π₯±"},{v:11,emoji:"π₯°"},{v:5,emoji:"π€©"},{v:4,emoji:"π±ββοΈ"},{v:3,emoji:"π€£"},{v:2,emoji:"ππ»"},{v:1,emoji:"π"}];function tA(){for(const{v:n,emoji:e}of nA)if(a3(e))return n}function iA(){return!a3("π¨π¦")}function a3(n){if(nh.has(n))return nh.get(n);const e=rA(n);return nh.set(n,e),e}const rA=(()=>{let n=null;try{navigator.userAgent.includes("jsdom")||(n=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!n)return()=>!1;const e=25,t=20,i=Math.floor(e/2);return n.font=i+"px Arial, Sans-Serif",n.textBaseline="top",n.canvas.width=t*2,n.canvas.height=e,r=>{n.clearRect(0,0,t*2,e),n.fillStyle="#FF0000",n.fillText(r,0,22),n.fillStyle="#0000FF",n.fillText(r,t,22);const a=n.getImageData(0,0,t,e).data,o=a.length;let d=0;for(;d<o&&!a[d+3];d+=4);if(d>=o)return!1;const f=t+d/4%t,h=Math.floor(d/4/t),p=n.getImageData(f,h,1,1).data;return!(a[d]!==p[0]||a[d+2]!==p[2]||n.measureText(r).width>=t)}})();var Ym={latestVersion:tA,noCountryFlags:iA};const Jh=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let wt=null;function aA(n){wt||(wt=Ca.get("frequently")||{});const e=n.id||n;e&&(wt[e]||(wt[e]=0),wt[e]+=1,Ca.set("last",e),Ca.set("frequently",wt))}function sA({maxFrequentRows:n,perLine:e}){if(!n)return[];wt||(wt=Ca.get("frequently"));let t=[];if(!wt){wt={};for(let a in Jh.slice(0,e)){const o=Jh[a];wt[o]=e-a,t.push(o)}return t}const i=n*e,r=Ca.get("last");for(let a in wt)t.push(a);if(t.sort((a,o)=>{const d=wt[o],f=wt[a];return d==f?a.localeCompare(o):d-f}),t.length>i){const a=t.slice(i);t=t.slice(0,i);for(let o of a)o!=r&&delete wt[o];r&&t.indexOf(r)==-1&&(delete wt[t[t.length-1]],t.splice(-1,1,r)),Ca.set("frequently",wt)}return t}var s3={add:aA,get:sA,DEFAULTS:Jh},o3={};o3=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldnβt be found","pick":"Pick an emojiβ¦","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var $r={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Tt=null,kn=null;const th={};async function Jm(n){if(th[n])return th[n];const t=await(await fetch(n)).json();return th[n]=t,t}let ih=null,l3=null,f3=!1;function gd(n,{caller:e}={}){return ih||(ih=new Promise(t=>{l3=t})),n?oA(n):e&&!f3&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),ih}async function oA(n){f3=!0;let{emojiVersion:e,set:t,locale:i}=n;if(e||(e=$r.emojiVersion.value),t||(t=$r.set.value),i||(i=$r.locale.value),kn)kn.categories=kn.categories.filter(f=>!f.name);else{kn=(typeof n.data=="function"?await n.data():n.data)||await Jm(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${t}.json`),kn.emoticons={},kn.natives={},kn.categories.unshift({id:"frequent",emojis:[]});for(const f in kn.aliases){const h=kn.aliases[f],p=kn.emojis[h];p&&(p.aliases||(p.aliases=[]),p.aliases.push(f))}kn.originalCategories=kn.categories}if(Tt=(typeof n.i18n=="function"?await n.i18n():n.i18n)||(i=="en"?U2(o3):await Jm(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),n.custom)for(let f in n.custom){f=parseInt(f);const h=n.custom[f],p=n.custom[f-1];if(!(!h.emojis||!h.emojis.length)){h.id||(h.id=`custom_${f+1}`),h.name||(h.name=Tt.categories.custom),p&&!h.icon&&(h.target=p.target||p),kn.categories.push(h);for(const m of h.emojis)kn.emojis[m.id]=m}}n.categories&&(kn.categories=kn.originalCategories.filter(f=>n.categories.indexOf(f.id)!=-1).sort((f,h)=>{const p=n.categories.indexOf(f.id),m=n.categories.indexOf(h.id);return p-m}));let r=null,a=null;t=="native"&&(r=Ym.latestVersion(),a=n.noCountryFlags||Ym.noCountryFlags());let o=kn.categories.length,d=!1;for(;o--;){const f=kn.categories[o];if(f.id=="frequent"){let{maxFrequentRows:m,perLine:y}=n;m=m>=0?m:$r.maxFrequentRows.value,y||(y=$r.perLine.value),f.emojis=s3.get({maxFrequentRows:m,perLine:y})}if(!f.emojis||!f.emojis.length){kn.categories.splice(o,1);continue}const{categoryIcons:h}=n;if(h){const m=h[f.id];m&&!f.icon&&(f.icon=m)}let p=f.emojis.length;for(;p--;){const m=f.emojis[p],y=m.id?m:kn.emojis[m],x=()=>{f.emojis.splice(p,1)};if(!y||n.exceptEmojis&&n.exceptEmojis.includes(y.id)){x();continue}if(r&&y.version>r){x();continue}if(a&&f.id=="flags"&&!uA.includes(y.id)){x();continue}if(!y.search){if(d=!0,y.search=","+[[y.id,!1],[y.name,!0],[y.keywords,!1],[y.emoticons,!1]].map(([R,F])=>{if(R)return(Array.isArray(R)?R:[R]).map(T=>(F?T.split(/[-|_|\s]+/):[T]).map(D=>D.toLowerCase())).flat()}).flat().filter(R=>R&&R.trim()).join(","),y.emoticons)for(const R of y.emoticons)kn.emoticons[R]||(kn.emoticons[R]=y.id);let _=0;for(const R of y.skins){if(!R)continue;_++;const{native:F}=R;F&&(kn.natives[F]=y.id,y.search+=`,${F}`);const T=_==1?"":`:skin-tone-${_}:`;R.shortcodes=`:${y.id}:${T}`}}}}d&&Ts.reset(),l3()}function d3(n,e,t){n||(n={});const i={};for(let r in e)i[r]=c3(r,n,e,t);return i}function c3(n,e,t,i){const r=t[n];let a=i&&i.getAttribute(n)||(e[n]!=null&&e[n]!=null?e[n]:null);return r&&(a!=null&&r.value&&typeof r.value!=typeof a&&(typeof r.value=="boolean"?a=a!="false":a=r.value.constructor(a)),r.transform&&a&&(a=r.transform(a)),(a==null||r.choices&&r.choices.indexOf(a)==-1)&&(a=r.value)),a}const lA=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let Xh=null;function fA(n){return n.id?n:kn.emojis[n]||kn.emojis[kn.aliases[n]]||kn.emojis[kn.natives[n]]}function dA(){Xh=null}async function cA(n,{maxResults:e,caller:t}={}){if(!n||!n.trim().length)return null;e||(e=90),await gd(null,{caller:t||"SearchIndex.search"});const i=n.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((d,f,h)=>d.trim()&&h.indexOf(d)==f);if(!i.length)return;let r=Xh||(Xh=Object.values(kn.emojis)),a,o;for(const d of i){if(!r.length)break;a=[],o={};for(const f of r){if(!f.search)continue;const h=f.search.indexOf(`,${d}`);h!=-1&&(a.push(f),o[f.id]||(o[f.id]=0),o[f.id]+=f.id==d?0:h+1)}r=a}return a.length<2||(a.sort((d,f)=>{const h=o[d.id],p=o[f.id];return h==p?d.id.localeCompare(f.id):h-p}),a.length>e&&(a=a.slice(0,e))),a}var Ts={search:cA,get:fA,reset:dA,SHORTCODES_REGEX:lA};const uA=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function hA(n,e){return Array.isArray(n)&&Array.isArray(e)&&n.length===e.length&&n.every((t,i)=>t==e[i])}async function pA(n=1){for(let e in[...Array(n).keys()])await new Promise(requestAnimationFrame)}function gA(n,{skinIndex:e=0}={}){const t=n.skins[e]||(e=0,n.skins[e]),i={id:n.id,name:n.name,native:t.native,unified:t.unified,keywords:n.keywords,shortcodes:t.shortcodes||n.shortcodes};return n.skins.length>1&&(i.skin=e+1),t.src&&(i.src=t.src),n.aliases&&n.aliases.length&&(i.aliases=n.aliases),n.emoticons&&n.emoticons.length&&(i.emoticons=n.emoticons),i}const mA={activity:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:me("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),me("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:me("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),me("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:me("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),me("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),me("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},vA={loupe:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};var nu={categories:mA,search:vA};function Qh(n){let{id:e,skin:t,emoji:i}=n;if(n.shortcodes){const d=n.shortcodes.match(Ts.SHORTCODES_REGEX);d&&(e=d[1],d[2]&&(t=d[2]))}if(i||(i=Ts.get(e||n.native)),!i)return n.fallback;const r=i.skins[t-1]||i.skins[0],a=r.src||(n.set!="native"&&!n.spritesheet?typeof n.getImageURL=="function"?n.getImageURL(n.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${n.set}@15.0.1/img/${n.set}/64/${r.unified}.png`:void 0),o=typeof n.getSpritesheetURL=="function"?n.getSpritesheetURL(n.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${n.set}@15.0.1/img/${n.set}/sheets-256/64.png`;return me("span",{class:"emoji-mart-emoji","data-emoji-set":n.set,children:a?me("img",{style:{maxWidth:n.size||"1em",maxHeight:n.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):n.set=="native"?me("span",{style:{fontSize:n.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):me("span",{style:{display:"block",width:n.size,height:n.size,backgroundImage:`url(${o})`,backgroundSize:`${100*kn.sheet.cols}% ${100*kn.sheet.rows}%`,backgroundPosition:`${100/(kn.sheet.cols-1)*r.x}% ${100/(kn.sheet.rows-1)*r.y}%`}})})}const kA=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class u3 extends kA{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,i){if(!this.component)return;const r=c3(e,{[e]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const i=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),i&&i.appendChild(this)}}}class wA extends u3{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var h3={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:n=>/\D/.test(n)?n:`${n}px`},set:$r.set,skin:$r.skin};class p3 extends u3{async connectedCallback(){const e=d3(this.props,h3,this);e.element=this,e.ref=t=>{this.component=t},await gd(),!this.disconnected&&r3(me(Qh,{...e}),this)}constructor(e){super(e)}}Si(p3,"Props",h3);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",p3);var Xm,ep=[],Qm=Ye.__b,e0=Ye.__r,n0=Ye.diffed,t0=Ye.__c,i0=Ye.unmount;function bA(){var n;for(ep.sort(function(e,t){return e.__v.__b-t.__v.__b});n=ep.pop();)if(n.__P)try{n.__H.__h.forEach(Ec),n.__H.__h.forEach(np),n.__H.__h=[]}catch(e){n.__H.__h=[],Ye.__e(e,n.__v)}}Ye.__b=function(n){Qm&&Qm(n)},Ye.__r=function(n){e0&&e0(n);var e=n.__c.__H;e&&(e.__h.forEach(Ec),e.__h.forEach(np),e.__h=[])},Ye.diffed=function(n){n0&&n0(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(ep.push(e)!==1&&Xm===Ye.requestAnimationFrame||((Xm=Ye.requestAnimationFrame)||function(t){var i,r=function(){clearTimeout(a),r0&&cancelAnimationFrame(i),setTimeout(t)},a=setTimeout(r,100);r0&&(i=requestAnimationFrame(r))})(bA))},Ye.__c=function(n,e){e.some(function(t){try{t.__h.forEach(Ec),t.__h=t.__h.filter(function(i){return!i.__||np(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],Ye.__e(i,t.__v)}}),t0&&t0(n,e)},Ye.unmount=function(n){i0&&i0(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Ec(i)}catch(r){e=r}}),e&&Ye.__e(e,t.__v))};var r0=typeof requestAnimationFrame=="function";function Ec(n){var e=n.__c;typeof e=="function"&&(n.__c=void 0,e())}function np(n){n.__c=n.__()}function yA(n,e){for(var t in e)n[t]=e[t];return n}function a0(n,e){for(var t in n)if(t!=="__source"&&!(t in e))return!0;for(var i in e)if(i!=="__source"&&n[i]!==e[i])return!0;return!1}function tu(n){this.props=n}(tu.prototype=new hr).isPureReactComponent=!0,tu.prototype.shouldComponentUpdate=function(n,e){return a0(this.props,n)||a0(this.state,e)};var s0=Ye.__b;Ye.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),s0&&s0(n)};var _A=Ye.__e;Ye.__e=function(n,e,t){if(n.then){for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),i.__c(n,e)}_A(n,e,t)};var o0=Ye.unmount;function rh(){this.__u=0,this.t=null,this.__b=null}function g3(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function pc(){this.u=null,this.o=null}Ye.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&n.__h===!0&&(n.type=null),o0&&o0(n)},(rh.prototype=new hr).__c=function(n,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=g3(i.__v),a=!1,o=function(){a||(a=!0,t.__R=null,r?r(d):d())};t.__R=o;var d=function(){if(!--i.__u){if(i.state.__e){var h=i.state.__e;i.__v.__k[0]=function m(y,x,_){return y&&(y.__v=null,y.__k=y.__k&&y.__k.map(function(R){return m(R,x,_)}),y.__c&&y.__c.__P===x&&(y.__e&&_.insertBefore(y.__e,y.__d),y.__c.__e=!0,y.__c.__P=_)),y}(h,h.__c.__P,h.__c.__O)}var p;for(i.setState({__e:i.__b=null});p=i.t.pop();)p.forceUpdate()}},f=e.__h===!0;i.__u++||f||i.setState({__e:i.__b=i.__v.__k[0]}),n.then(o,o)},rh.prototype.componentWillUnmount=function(){this.t=[]},rh.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function a(o,d,f){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(h){typeof h.__c=="function"&&h.__c()}),o.__c.__H=null),(o=yA({},o)).__c!=null&&(o.__c.__P===f&&(o.__c.__P=d),o.__c=null),o.__k=o.__k&&o.__k.map(function(h){return a(h,d,f)})),o}(this.__b,t,i.__O=i.__P)}this.__b=null}var r=e.__e&&Yh(dl,null,n.fallback);return r&&(r.__h=null),[Yh(dl,null,e.__e?null:n.children),r]};var l0=function(n,e,t){if(++t[1]===t[0]&&n.o.delete(e),n.props.revealOrder&&(n.props.revealOrder[0]!=="t"||!n.o.size))for(t=n.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;n.u=t=t[2]}};(pc.prototype=new hr).__e=function(n){var e=this,t=g3(e.__v),i=e.o.get(n);return i[0]++,function(r){var a=function(){e.props.revealOrder?(i.push(r),l0(e,n,i)):r()};t?t(a):a()}},pc.prototype.render=function(n){this.u=null,this.o=new Map;var e=Qc(n.children);n.revealOrder&&n.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return n.children},pc.prototype.componentDidUpdate=pc.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){l0(n,t,e)})};var xA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,SA=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,CA=typeof document<"u",EA=function(n){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(n)};hr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(n){Object.defineProperty(hr.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})});var f0=Ye.event;function TA(){}function FA(){return this.cancelBubble}function RA(){return this.defaultPrevented}Ye.event=function(n){return f0&&(n=f0(n)),n.persist=TA,n.isPropagationStopped=FA,n.isDefaultPrevented=RA,n.nativeEvent=n};var d0={configurable:!0,get:function(){return this.class}},c0=Ye.vnode;Ye.vnode=function(n){var e=n.type,t=n.props,i=t;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var a in i={},t){var o=t[a];CA&&a==="children"&&e==="noscript"||a==="value"&&"defaultValue"in t&&o==null||(a==="defaultValue"&&"value"in t&&t.value==null?a="value":a==="download"&&o===!0?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!EA(t.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(a)?a=a.toLowerCase():r&&SA.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():o===null&&(o=void 0),i[a]=o)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Qc(t.children).forEach(function(d){d.props.selected=i.value.indexOf(d.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=Qc(t.children).forEach(function(d){d.props.selected=i.multiple?i.defaultValue.indexOf(d.props.value)!=-1:i.defaultValue==d.props.value})),n.props=i,t.class!=t.className&&(d0.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",d0))}n.$$typeof=xA,c0&&c0(n)};var u0=Ye.__r;Ye.__r=function(n){u0&&u0(n),n.__c};const MA={light:"outline",dark:"solid"};class PA extends tu{renderIcon(e){const{icon:t}=e;if(t){if(t.svg)return me("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return me("img",{src:t.src})}const i=nu.categories[e.id]||nu.categories.custom,r=this.props.icons=="auto"?MA[this.props.theme]:this.props.icons;return i[r]||i}render(){let e=null;return me("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:me("div",{class:"flex relative",children:[this.categories.map((t,i)=>{const r=t.name||Tt.categories[t.id],a=!this.props.unfocused&&t.id==this.state.categoryId;return a&&(e=i),me("button",{"aria-label":r,"aria-selected":a||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:o=>o.preventDefault(),onClick:()=>{this.props.onClick({category:t,i})},children:this.renderIcon(t)})}),me("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=kn.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class AA extends tu{shouldComponentUpdate(e){for(let t in e)if(t!="children"&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}const gc={rowsPerRender:10};class LA extends hr{getInitialState(e=this.props){return{skin:Ca.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=Tt.rtl?"rtl":"ltr",this.refs={menu:Ir(),navigation:Ir(),scroll:Ir(),search:Ir(),searchInput:Ir(),skinToneButton:Ir(),skinToneRadio:Ir()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const t in e)this.nextState[t]=e[t];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let t=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(t=!0);delete this.nextState;const i=this.getInitialState();if(t)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(e={}){await gd(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const t of this.observers)e.includes(t)||t.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=kn;this.refs.categories=new Map;const t=kn.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;const i=(r,a)=>{const o=[];o.__categoryId=a.id,o.__index=r.length,this.grid.push(o);const d=this.grid.length-1,f=d%gc.rowsPerRender?{}:Ir();return f.index=d,f.posinset=this.grid.setsize+1,r.push(f),o};for(let r of e){const a=[];let o=i(a,r);for(let d of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(d);this.refs.categories.set(r.id,{root:Ir(),rows:a})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:t,emojiButtonSize:i}=e,r=()=>{const{width:o}=t.getBoundingClientRect();return Math.floor(o/i)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(t),this.observers.push(a),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,t]){const i=this.state.searchResults||this.grid,r=i[e]&&i[e][t];if(r)return Ts.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const t=new Map,i=o=>{o!=e.state.categoryId&&e.setState({categoryId:o})},r={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const f of o){const h=f.target.dataset.id;t.set(h,f.intersectionRatio)}const d=[...t];for(const[f,h]of d)if(h){i(f);break}},r);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const e={...this.state.visibleRows},t=new IntersectionObserver(i=>{for(const r of i){const a=parseInt(r.target.dataset.index);r.isIntersecting?e[a]=!0:delete e[a]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(gc.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*gc.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&t.observe(r.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:t,left:i,right:r,up:a,down:o}){const d=this.state.searchResults||this.grid;if(!d.length)return;let[f,h]=this.state.pos;const p=(()=>{if(f==0&&h==0&&!e.repeat&&(i||a))return null;if(f==-1)return!e.repeat&&(r||o)&&t.selectionStart==t.value.length?[0,0]:null;if(i||r){let m=d[f];const y=i?-1:1;if(h+=y,!m[h]){if(f+=y,m=d[f],!m)return f=i?0:d.length-1,h=i?0:d[f].length-1,[f,h];h=i?m.length-1:0}return[f,h]}if(a||o){f+=a?-1:1;const m=d[f];return m?(m[h]||(h=m.length-1),[f,h]):(f=a?0:d.length-1,h=a?0:d[f].length-1,[f,h])}})();if(p)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:p,keyboard:!0},()=>{this.scrollTo({row:p[0]})})}scrollTo({categoryId:e,row:t}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,a=r.getBoundingClientRect();let o=0;if(t>=0&&(e=i[t].__categoryId),e&&(o=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(a.top-r.scrollTop)+1),t>=0)if(!t)o=0;else{const d=i[t].__index,f=o+d*this.props.emojiButtonSize,h=f+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(f<r.scrollTop)o=f;else if(h>r.scrollTop+a.height)o=h-a.height;else return}this.ignoreMouse(),r.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:t,pos:i}){if(this.props.onEmojiSelect&&(!t&&i&&(t=this.getEmojiByPos(i)),t)){const r=gA(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&s3.add(r,this.props),this.props.onEmojiSelect(r,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),Ca.set("skin",e)}renderNav(){return me(PA,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return me("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[me("div",{class:"flex flex-middle flex-grow",children:[me("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:me(Qh,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),me("div",{class:`margin-${this.dir[0]}`,children:e||t?me("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[me("div",{class:"preview-title ellipsis",children:e?e.name:Tt.search_no_results_1}),me("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:Tt.search_no_results_2})]}):me("div",{class:"preview-placeholder color-c",children:Tt.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:i,grid:r}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,f=(e.skins[o-1]||e.skins[0]).native,h=hA(this.state.pos,t),p=t.concat(e.id).join("");return me(AA,{selected:h,skin:o,size:a,children:me("button",{"aria-label":f,"aria-selected":h||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:m=>this.handleEmojiClick({e:m,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[me("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),me(Qh,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},p)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return me("div",{children:[me("div",{class:"spacer"}),me("div",{class:"flex flex-middle",children:[me("div",{class:"search relative flex-grow",children:[me("input",{type:"search",ref:this.refs.searchInput,placeholder:Tt.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),me("span",{class:"icon loupe flex",children:nu.search.loupe}),this.state.searchResults&&me("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:nu.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?me("div",{class:"category",ref:this.refs.search,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Tt.categories.search}),me("div",{children:e.length?e.map((t,i)=>me("div",{class:"flex",children:t.map((r,a)=>this.renderEmojiButton(r,{pos:[i,a],posinset:i*this.props.perLine+a+1,grid:e}))})):me("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&me("a",{onClick:this.props.onAddCustomEmoji,children:Tt.add_custom})})})]}):null}renderCategories(){const{categories:e}=kn,t=!!this.state.searchResults,i=this.getPerLine();return me("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0,height:"100%"},children:e.map(r=>{const{root:a,rows:o}=this.refs.categories.get(r.id);return me("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Tt.categories[r.id]}),me("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((d,f)=>{const h=d.index-d.index%gc.rowsPerRender,p=this.state.visibleRows[h],m="current"in d?d:void 0;if(!p&&!m)return null;const y=f*i,x=y+i,_=r.emojis.slice(y,x);return _.length<i&&_.push(...new Array(i-_.length)),me("div",{"data-index":d.index,ref:m,class:"flex row",style:{top:f*this.props.emojiButtonSize},children:p&&_.map((R,F)=>{if(!R)return me("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const T=Ts.get(R);return this.renderEmojiButton(T,{pos:[d.index,F],posinset:d.posinset+F,grid:this.grid})})},d.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:me("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:me("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Tt.skins.choose,title:Tt.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:me("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),t=e?e.name:"";return me("div",{"aria-live":"polite",class:"sr-only",children:t})}renderSkins(){const t=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-t.right-3:r.left=t.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-t.top+6:(r.top=t.bottom-i.top+3,r.bottom="auto"),me("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Tt.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{const o=a+1,d=this.state.skin==o;return me("div",{children:[me("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Tt.skins[o],ref:d?this.refs.skinToneRadio:null,defaultChecked:d,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:f=>{(f.code=="Enter"||f.code=="Space"||f.code=="Tab")&&(f.preventDefault(),this.handleSkinClick(o))}}),me("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(o),onMouseEnter:()=>this.handleSkinMouseOver(o),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[me("span",{class:`skin-tone skin-tone-${o}`}),me("span",{class:"margin-small-lr",children:Tt.skins[o]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return me("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&me("div",{class:"padding-lr",children:this.renderSearch()}),me("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:me("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),Si(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),Si(this,"handleClickOutside",t=>{const{element:i}=this.props;t.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(t))}),Si(this,"handleBaseClick",t=>{this.state.showSkins&&(t.target.closest(".menu")||(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins()))}),Si(this,"handleBaseKeydown",t=>{this.state.showSkins&&t.key=="Escape"&&(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins())}),Si(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Si(this,"handleSearchInput",async()=>{const t=this.refs.searchInput.current;if(!t)return;const{value:i}=t,r=await Ts.search(i),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},a);const o=t.selectionStart==t.value.length?[0,0]:[-1,-1],d=[];d.setsize=r.length;let f=null;for(let h of r)(!d.length||f.length==this.getPerLine())&&(f=[],f.__categoryId="search",f.__index=d.length,d.push(f)),f.push(h);this.ignoreMouse(),this.setState({searchResults:d,pos:o},a)}),Si(this,"handleSearchKeyDown",t=>{const i=t.currentTarget;switch(t.stopImmediatePropagation(),t.key){case"ArrowLeft":this.navigate({e:t,input:i,left:!0});break;case"ArrowRight":this.navigate({e:t,input:i,right:!0});break;case"ArrowUp":this.navigate({e:t,input:i,up:!0});break;case"ArrowDown":this.navigate({e:t,input:i,down:!0});break;case"Enter":t.preventDefault(),this.handleEmojiClick({e:t,pos:this.state.pos});break;case"Escape":t.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),Si(this,"clearSearch",()=>{const t=this.refs.searchInput.current;t&&(t.value="",t.focus(),this.handleSearchInput())}),Si(this,"handleCategoryClick",({category:t,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:t.id})}),Si(this,"openSkins",t=>{const{currentTarget:i}=t,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await pA(2);const a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class Yp extends wA{async connectedCallback(){const e=d3(this.props,$r,this);e.element=this,e.ref=t=>{this.component=t},await gd(e),!this.disconnected&&r3(me(LA,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:U2(m3)})}}Si(Yp,"Props",$r);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",Yp);var m3={};m3=`:host {
|
|
224
224
|
width: min-content;
|
|
225
225
|
height: 435px;
|
|
226
226
|
min-height: 230px;
|