@goodhood-web/nebenan-base 1.9.0-development.11 → 1.9.0-development.12

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 CHANGED
@@ -220,7 +220,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const r="<p>An err
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[Mm]=this[Mm]={accessors:{}}).accessors,r=this.prototype;function a(o){const f=mf(o);i[f]||(zM(r,o),i[f]=!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 J1(n,e){const t=this||ud,i=e||t,r=Jt.from(i.headers);let a=i.data;return se.forEach(n,function(f){a=f.call(t,a,r.normalize(),e?e.status:void 0)}),r.normalize(),a}function F2(n){return!!(n&&n.__CANCEL__)}function gl(n,e,t){dn.call(this,n??"canceled",dn.ERR_CANCELED,e,t),this.name="CanceledError"}se.inherits(gl,dn,{__CANCEL__:!0});function R2(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 BM(n){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function IM(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(d){const h=Date.now(),p=i[a];o||(o=h),t[r]=d,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 OM(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 Zc=(n,e,t=3)=>{let i=0;const r=IM(50,250);return OM(a=>{const o=a.loaded,f=a.lengthComputable?a.total:void 0,d=o-i,h=r(d),p=o<=f;i=o;const m={loaded:o,total:f,progress:f?o/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&p?(f-o)/h:void 0,event:a,lengthComputable:f!=null,[e?"download":"upload"]:!0};n(m)},t)},Pm=(n,e)=>{const t=n!=null;return[i=>e[0]({lengthComputable:t,total:n,loaded:i}),e[1]]},Am=n=>(...e)=>se.asap(()=>n(...e)),DM=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 f=se.isString(o)?r(o):o;return f.protocol===i.protocol&&f.host===i.host}}():function(){return function(){return!0}}(),jM=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 $M(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function HM(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function M2(n,e){return n&&!$M(e)?HM(n,e):e}const Lm=n=>n instanceof Jt?{...n}:n;function Bs(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 f(h,p,m){if(m in e)return i(h,p);if(m in n)return i(void 0,h)}const d={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:f,headers:(h,p)=>r(Lm(h),Lm(p),!0)};return se.forEach(Object.keys(Object.assign({},n,e)),function(p){const m=d[p]||r,y=m(n[p],e[p],p);se.isUndefined(y)&&m!==f||(t[p]=y)}),t}const P2=n=>{const e=Bs({},n);let{data:t,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:a,headers:o,auth:f}=e;e.headers=o=Jt.from(o),e.url=C2(M2(e.baseURL,e.url),n.params,n.paramsSerializer),f&&o.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let d;if(se.isFormData(t)){if(Ui.hasStandardBrowserEnv||Ui.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((d=o.getContentType())!==!1){const[h,...p]=d?d.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&&DM(e.url))){const h=r&&a&&jM.read(a);h&&o.set(r,h)}return e},NM=typeof XMLHttpRequest<"u",VM=NM&&function(n){return new Promise(function(t,i){const r=P2(n);let a=r.data;const o=Jt.from(r.headers).normalize();let{responseType:f,onUploadProgress:d,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:!f||f==="text"||f==="json"?F.responseText:F.response,status:F.status,statusText:F.statusText,headers:I,config:n,request:F};R2(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||E2;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),f&&f!=="json"&&(F.responseType=r.responseType),h&&([y,_]=Zc(h,!0),F.addEventListener("progress",y)),d&&F.upload&&([m,x]=Zc(d),F.upload.addEventListener("progress",m),F.upload.addEventListener("loadend",x)),(r.cancelToken||r.signal)&&(p=I=>{F&&(i(!I||I.type?new gl(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=BM(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)})},GM=(n,e)=>{let t=new AbortController,i;const r=function(d){if(!i){i=!0,o();const h=d instanceof Error?d:this.reason;t.abort(h instanceof dn?h:new gl(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(d=>{d&&(d.removeEventListener?d.removeEventListener("abort",r):d.unsubscribe(r))}),n=null)};n.forEach(d=>d&&d.addEventListener&&d.addEventListener("abort",r));const{signal:f}=t;return f.unsubscribe=o,[f,()=>{a&&clearTimeout(a),a=null}]},WM=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},UM=async function*(n,e,t){for await(const i of n)yield*WM(ArrayBuffer.isView(i)?i:await t(String(i)),e)},zm=(n,e,t,i,r)=>{const a=UM(n,e,r);let o=0,f,d=h=>{f||(f=!0,i&&i(h))};return new ReadableStream({async pull(h){try{const{done:p,value:m}=await a.next();if(p){d(),h.close();return}let y=m.byteLength;if(t){let x=o+=y;t(x)}h.enqueue(new Uint8Array(m))}catch(p){throw d(p),p}},cancel(h){return d(h),a.return()}},{highWaterMark:2})},Ru=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",A2=Ru&&typeof ReadableStream=="function",Hh=Ru&&(typeof TextEncoder=="function"?(n=>e=>n.encode(e))(new TextEncoder):async n=>new Uint8Array(await new Response(n).arrayBuffer())),L2=(n,...e)=>{try{return!!n(...e)}catch{return!1}},ZM=A2&&L2(()=>{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}),Bm=64*1024,Nh=A2&&L2(()=>se.isReadableStream(new Response("").body)),qc={stream:Nh&&(n=>n.body)};Ru&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!qc[e]&&(qc[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 qM=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 Hh(n)).byteLength},KM=async(n,e)=>{const t=se.toFiniteNumber(n.getContentLength());return t??qM(e)},YM=Ru&&(async n=>{let{url:e,method:t,data:i,signal:r,cancelToken:a,timeout:o,onDownloadProgress:f,onUploadProgress:d,responseType:h,headers:p,withCredentials:m="same-origin",fetchOptions:y}=P2(n);h=h?(h+"").toLowerCase():"text";let[x,_]=r||a||o?GM([r,a],o):[],R,F;const T=()=>{!R&&setTimeout(()=>{x&&x.unsubscribe()}),R=!0};let D;try{if(d&&ZM&&t!=="get"&&t!=="head"&&(D=await KM(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]=Pm(D,Zc(Am(d)));i=zm(V.body,Bm,ue,Q,Hh)}}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=Nh&&(h==="stream"||h==="response");if(Nh&&(f||N)){const V={};["status","statusText","headers"].forEach(K=>{V[K]=I[K]});const W=se.toFiniteNumber(I.headers.get("content-length")),[ue,Q]=f&&Pm(W,Zc(Am(f),!0))||[];I=new Response(zm(I.body,Bm,ue,()=>{Q&&Q(),N&&T()},Hh),V)}h=h||"text";let B=await qc[se.findKey(qc,h)||"text"](I,n);return!N&&T(),_&&_(),await new Promise((V,W)=>{R2(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)}}),Vh={http:hM,xhr:VM,fetch:YM};se.forEach(Vh,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});const Im=n=>`- ${n}`,JM=n=>se.isFunction(n)||n===null||n===!1,z2={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,!JM(t)&&(i=Vh[(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(([f,d])=>`adapter ${f} `+(d===!1?"is not supported by the environment":"is not available in the build"));let o=e?a.length>1?`since :
221
221
  `+a.map(Im).join(`
222
222
  `):" "+Im(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:Vh};function X1(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new gl(null,n)}function Om(n){return X1(n),n.headers=Jt.from(n.headers),n.data=J1.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),z2.getAdapter(n.adapter||ud.adapter)(n).then(function(i){return X1(n),i.data=J1.call(n,n.transformResponse,i),i.headers=Jt.from(i.headers),i},function(i){return F2(i)||(X1(n),i&&i.response&&(i.response.data=J1.call(n,n.transformResponse,i.response),i.response.headers=Jt.from(i.response.headers))),Promise.reject(i)})}const B2="1.7.4",Wp={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Wp[n]=function(i){return typeof i===n||"a"+(e<1?"n ":" ")+n}});const Dm={};Wp.transitional=function(e,t,i){function r(a,o){return"[Axios v"+B2+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,f)=>{if(e===!1)throw new dn(r(o," has been removed"+(t?" in "+t:"")),dn.ERR_DEPRECATED);return t&&!Dm[o]&&(Dm[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,o,f):!0}};function XM(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 f=n[a],d=f===void 0||o(f,a,n);if(d!==!0)throw new dn("option "+a+" must be "+d,dn.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new dn("Unknown option "+a,dn.ERR_BAD_OPTION)}}const Gh={assertOptions:XM,validators:Wp},ka=Gh.validators;let Cs=class{constructor(e){this.defaults=e,this.interceptors={request:new Rm,response:new Rm}}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=Bs(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:a}=t;i!==void 0&&Gh.assertOptions(i,{silentJSONParsing:ka.transitional(ka.boolean),forcedJSONParsing:ka.transitional(ka.boolean),clarifyTimeoutError:ka.transitional(ka.boolean)},!1),r!=null&&(se.isFunction(r)?t.paramsSerializer={serialize:r}:Gh.assertOptions(r,{encode:ka.function,serialize:ka.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 f=[];let d=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(t)===!1||(d=d&&R.synchronous,f.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(!d){const _=[Om.bind(this),void 0];for(_.unshift.apply(_,f),_.push.apply(_,h),y=_.length,p=Promise.resolve(t);m<y;)p=p.then(_[m++],_[m++]);return p}y=f.length;let x=t;for(m=0;m<y;){const _=f[m++],R=f[m++];try{x=_(x)}catch(F){R.call(this,F);break}}try{p=Om.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=Bs(this.defaults,e);const t=M2(e.baseURL,e.url);return C2(t,e.params,e.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(e){Cs.prototype[e]=function(t,i){return this.request(Bs(i||{},{method:e,url:t,data:(i||{}).data}))}});se.forEach(["post","put","patch"],function(e){function t(i){return function(a,o,f){return this.request(Bs(f||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Cs.prototype[e]=t(),Cs.prototype[e+"Form"]=t(!0)});let QM=class I2{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(f=>{i.subscribe(f),a=f}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},e(function(a,o,f){i.reason||(i.reason=new gl(a,o,f),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 I2(function(r){e=r}),cancel:e}}};function eP(n){return function(t){return n.apply(null,t)}}function nP(n){return se.isObject(n)&&n.isAxiosError===!0}const Wh={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(Wh).forEach(([n,e])=>{Wh[e]=n});function O2(n){const e=new Cs(n),t=h2(Cs.prototype.request,e);return se.extend(t,Cs.prototype,e,{allOwnKeys:!0}),se.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return O2(Bs(n,r))},t}const Qn=O2(ud);Qn.Axios=Cs;Qn.CanceledError=gl;Qn.CancelToken=QM;Qn.isCancel=F2;Qn.VERSION=B2;Qn.toFormData=Fu;Qn.AxiosError=dn;Qn.Cancel=Qn.CanceledError;Qn.all=function(e){return Promise.all(e)};Qn.spread=eP;Qn.isAxiosError=nP;Qn.mergeConfig=Bs;Qn.AxiosHeaders=Jt;Qn.formToJSON=n=>T2(se.isHTMLForm(n)?new FormData(n):n);Qn.getAdapter=z2.getAdapter;Qn.HttpStatusCode=Wh;Qn.default=Qn;const{Axios:VI,AxiosError:GI,CanceledError:WI,isCancel:UI,CancelToken:ZI,VERSION:qI,all:KI,Cancel:YI,isAxiosError:tP,spread:JI,toFormData:XI,AxiosHeaders:QI,HttpStatusCode:eO,formToJSON:nO,getAdapter:tO,mergeConfig:iO}=Qn,Yp=class Yp{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 tP(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}};Yp.instance=null;let Uh=Yp;async function iP(n){return(await Uh.getApi().post("/public/v1/complaints.json",{complaint:n})).data}const rP="_form_1wbwo_106",aP="_fieldset_1wbwo_110",sP="_fieldSetName_1wbwo_121",oP="_successBody_1wbwo_127",lP="_generalError_1wbwo_134",vf={form:rP,fieldset:aP,fieldSetName:sP,successBody:oP,generalError:lP},fP=ks.object({reasonText:ks.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:ks.string({required_error:"Bitte gib eine gültige E-Mail-Adresse ein."}).email("Bitte gib eine gültige E-Mail-Adresse ein."),reporterFirstName:ks.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:ks.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:ks.string({invalid_type_error:"Bitte wähle eine Option."}),selectedRole:ks.string({required_error:"Bitte wähle eine Rolle."})}),dP=({handleModalClick:n,open:e,subjectId:t})=>{const[i,r]=M.useState(!1),a=cF({initialValues:{errorText:"",reasonText:"",reporterEmail:"",reporterFirstName:"",reporterLastName:"",selectedReason:"",selectedRole:"myself"},onSubmit:(_,{setErrors:R,setSubmitting:F})=>{iP({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:u2(fP)}),o=_=>{a.setFieldValue("selectedReason",_)},f=_=>{a.setFieldValue("selectedRole",_)},d=TR(),h=()=>{n()},p=()=>{a.handleSubmit()};let m="Inhalt melden",y=L.jsx(wx,{className:vf.form,children:L.jsxs(kx,{className:vf.fieldset,children:[L.jsx(on,{type:"body-regular",children:"Warum hältst du den Inhalt für problematisch?"}),L.jsx(Dg,{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:d.complaint_reasons.map(_=>L.jsx("option",{value:_.value,children:_.label_de},_.value))}),L.jsx(d8,{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(Dg,{colorScheme:"dark",onChange:f,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(_p,{}),L.jsxs("div",{className:vf.fieldSetName,children:[L.jsx(H1,{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(H1,{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(H1,{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:vf.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(gx,{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:vf.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(pu,{onClick:p,text:"Absenden",color:"highlight"}),L.jsx("div",{children:L.jsx(Rs,{children:L.jsx(bv,{open:e,onClose:h,modalBody:y,headerTitle:m,modalFooter:x,closeButtonText:"Schließen"})})})},cP=800,D2=()=>window.innerWidth<cP,uP=({cancelText:n="Abbrechen",confirmText:e="Bestätigen",content:t,handleCancel:i,handleConfirm:r,primaryCtaColor:a="primary",title:o})=>{const f=()=>L.jsx(il,{headline:o,as:"h3",rightElement:L.jsx(Xt,{ariaLabel:"close-sheet",onClick:i,icon:"cross",size:"small"})}),d=()=>L.jsx(pu,{color:a,onClick:r,size:"large",text:e});return D2()?L.jsx(Ex,{open:!0,onClose:i,sheetBody:t,sheetHeader:f(),ctaButtonProps:{color:a,fullWidth:!0,onClick:r,size:"large",text:e},linkProps:{color:"blue",onClick:i,size:"large",text:n}}):L.jsx(bv,{open:!0,onClose:i,modalBody:t,headerTitle:o,closeButtonText:n,modalFooter:d()})},hP="_root_1pooe_106",pP="_textButton_1pooe_113",jm={root:hP,textButton:pP},gP=({alt:n,ariaLabel:e,onClick:t,src:i,text:r})=>L.jsxs("div",{className:jm.root,children:[L.jsx(tl,{src:i,shape:"circular",size:"40",alt:n}),L.jsx(Ei,{className:jm.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})]}),mP="_container_kx2nk_106",vP="_sidebarLeft_kx2nk_114",kP="_navBar_kx2nk_118",wP="_mainContent_kx2nk_124",bP="_sidebarRight_kx2nk_130",kf={container:mP,sidebarLeft:vP,navBar:kP,mainContent:wP,sidebarRight:bP},yP=({children:n,left:e,navbar:t,right:i})=>L.jsxs("div",{className:kf.container,children:[L.jsx("nav",{className:kf.navBar,children:t}),e&&L.jsx("aside",{className:kf.sidebarLeft,children:e}),L.jsx("main",{className:kf.mainContent,children:n}),i&&L.jsx("aside",{className:kf.sidebarRight,children:i})]}),_P="_inputContainer_1k1vh_106",xP="_searchInput_1k1vh_121",SP="_searchButton_1k1vh_165",dc={inputContainer:_P,"inputContainer--invalid":"_inputContainer--invalid_1k1vh_118",searchInput:xP,searchButton:SP},CP=({name:n,onSearchSubmit:e,placeholder:t,ref:i})=>{const[r,a]=M.useState(""),[o,f]=M.useState(!0),{getInputProps:d}=dp({inputRef:i,onChange:x=>{a(x.target.value),p(x.target.value)},value:r}),h=d(),p=x=>{const _=x.length<250;f(_)},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(dc.inputContainer,{[dc["inputContainer--invalid"]]:!o}),children:[L.jsx("input",{...h,type:"text",name:n,placeholder:t,className:dc.searchInput}),L.jsx(Xt,{icon:"search",className:dc.searchButton,size:"small",ariaLabelledBy:"searchButton",onClick:m,disabled:y,type:"submit"})]})})},EP="_navbarWrapper_a6jpz_106",TP="_navbar_a6jpz_106",FP="_right_a6jpz_118",cc={navbarWrapper:EP,navbar:TP,right:FP},RP=({left:n,right:e})=>L.jsx("div",{className:cc.navbarWrapper,children:L.jsxs("div",{className:cc.navbar,children:[L.jsx("div",{className:cc.left,children:n}),L.jsx("div",{className:cc.right,children:e})]})}),MP="Suchen",PP="Oh nein!",AP="Das Emoji konnte nicht gefunden werden",LP="Wähle ein Emoji…",zP="Füge ein benutzerdefiniertes Emoji hinzu",BP={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"},IP={1:"Standard",2:"Hell",3:"Mittelhell",4:"Mittel",5:"Mitteldunkel",6:"Dunkel",choose:"Wähle eine Standard-Hautfarbe"},OP={search:MP,search_no_results_1:PP,search_no_results_2:AP,pick:LP,add_custom:zP,categories:BP,skins:IP};function j2(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 Mu,Ye,$2,Af,H2,$m,Kc={},N2=[],DP=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _a(n,e){for(var t in e)n[t]=e[t];return n}function V2(n){var e=n.parentNode;e&&e.removeChild(n)}function Zh(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?Mu.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 xc(n,o,i,r,null)}function xc(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??++$2};return r==null&&Ye.vnode!=null&&Ye.vnode(a),a}function Ir(){return{current:null}}function fl(n){return n.children}function hr(n,e){this.props=n,this.context=e}function dl(n,e){if(e==null)return n.__?dl(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"?dl(n):null}function G2(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 G2(n)}}function Hm(n){(!n.__d&&(n.__d=!0)&&Af.push(n)&&!Yc.__r++||$m!==Ye.debounceRendering)&&(($m=Ye.debounceRendering)||H2)(Yc)}function Yc(){for(var n;Yc.__r=Af.length;)n=Af.sort(function(e,t){return e.__v.__b-t.__v.__b}),Af=[],n.some(function(e){var t,i,r,a,o,f;e.__d&&(o=(a=(t=e).__v).__e,(f=t.__P)&&(i=[],(r=_a({},a)).__v=a.__v+1,Up(f,a,r,t.__n,f.ownerSVGElement!==void 0,a.__h!=null?[o]:null,i,o??dl(a),a.__h),q2(i,a),a.__e!=o&&G2(a)))})}function W2(n,e,t,i,r,a,o,f,d,h){var p,m,y,x,_,R,F,T=i&&i.__k||N2,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"?xc(null,x,null,null,x):Array.isArray(x)?xc(fl,{children:x},null,null,null):x.__b>0?xc(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}Up(n,x,y=y||Kc,r,a,o,f,d,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=d=U2(x,d,n):d=Z2(n,x,y,T,_,d),typeof t.type=="function"&&(t.__d=d)):d&&y.__e==d&&d.parentNode!=n&&(d=dl(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=dl(i,p+1)),Y2(T[p],T[p]));if(F)for(p=0;p<F.length;p++)K2(F[p],F[++p],F[++p])}function U2(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"?U2(i,e,t):Z2(t,i,i,r,i.__e,e));return e}function Jc(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Jc(t,e)}):e.push(n)),e}function Z2(n,e,t,i,r,a){var o,f,d;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(f=a,d=0;(f=f.nextSibling)&&d<i.length;d+=2)if(f==r)break e;n.insertBefore(r,a),o=a}return o!==void 0?o:r.nextSibling}function jP(n,e,t,i,r){var a;for(a in t)a==="children"||a==="key"||a in e||Xc(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]||Xc(n,a,e[a],t[a],i)}function Nm(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||DP.test(e)?t:t+"px"}function Xc(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||Nm(n.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||Nm(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?Gm:Vm,a):n.removeEventListener(e,a?Gm:Vm,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 Vm(n){this.l[n.type+!1](Ye.event?Ye.event(n):n)}function Gm(n){this.l[n.type+!0](Ye.event?Ye.event(n):n)}function Up(n,e,t,i,r,a,o,f,d){var h,p,m,y,x,_,R,F,T,D,I,N=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(d=t.__h,f=e.__e=t.__e,e.__h=null,a=[f]),(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=HP),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=_a({},p.__s)),_a(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=_a(_a({},i),p.getChildContext())),m||p.getSnapshotBeforeUpdate==null||(_=p.getSnapshotBeforeUpdate(y,x)),I=h!=null&&h.type===fl&&h.key==null?h.props.children:h,W2(n,Array.isArray(I)?I:[I],e,t,i,r,a,o,f,d),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=$P(t.__e,e,t,i,r,a,o,d);(h=Ye.diffed)&&h(e)}catch(B){e.__v=null,(d||a!=null)&&(e.__e=f,e.__h=!!d,a[a.indexOf(f)]=null),Ye.__e(B,e,t)}}function q2(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 $P(n,e,t,i,r,a,o,f){var d,h,p,m=t.props,y=e.props,x=e.type,_=0;if(x==="svg"&&(r=!0),a!=null){for(;_<a.length;_++)if((d=a[_])&&"setAttribute"in d==!!x&&(x?d.localName===x:d.nodeType===3)){n=d,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,f=!1}if(x===null)m===y||f&&n.data===y||(n.data=y);else{if(a=a&&Mu.call(n.childNodes),h=(m=t.props||Kc).dangerouslySetInnerHTML,p=y.dangerouslySetInnerHTML,!f){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(jP(n,y,m,r,f),p)e.__k=[];else if(_=e.props.children,W2(n,Array.isArray(_)?_:[_],e,t,i,r&&x!=="foreignObject",a,o,a?a[0]:t.__k&&dl(t,0),f),a!=null)for(_=a.length;_--;)a[_]!=null&&V2(a[_]);f||("value"in y&&(_=y.value)!==void 0&&(_!==m.value||_!==n.value||x==="progress"&&!_)&&Xc(n,"value",_,m.value,!1),"checked"in y&&(_=y.checked)!==void 0&&_!==n.checked&&Xc(n,"checked",_,m.checked,!1))}return n}function K2(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(i){Ye.__e(i,t)}}function Y2(n,e,t){var i,r;if(Ye.unmount&&Ye.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||K2(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]&&Y2(i[r],e,typeof n.type!="function");t||n.__e==null||V2(n.__e),n.__e=n.__d=void 0}function HP(n,e,t){return this.constructor(n,t)}function J2(n,e,t){var i,r,a;Ye.__&&Ye.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,a=[],Up(e,n=(!i&&t||e).__k=Zh(fl,null,[n]),r||Kc,Kc,e.ownerSVGElement!==void 0,!i&&t?[t]:r?null:e.firstChild?Mu.call(e.childNodes):null,a,!i&&t?t:r?r.__e:e.firstChild,i),q2(a,n)}Mu=N2.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}},$2=0,hr.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_a({},this.state),typeof n=="function"&&(n=n(_a({},t),this.props)),n&&_a(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),Hm(this))},hr.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Hm(this))},hr.prototype.render=fl,Af=[],H2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Yc.__r=0;var NP=0;function me(n,e,t,i,r){var a,o,f={};for(o in e)o=="ref"?a=e[o]:f[o]=e[o];var d={type:n,props:f,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--NP,__source:i,__self:r};if(typeof n=="function"&&(a=n.defaultProps))for(o in a)f[o]===void 0&&(f[o]=a[o]);return Ye.vnode&&Ye.vnode(d),d}function VP(n,e){try{window.localStorage[`emoji-mart.${n}`]=JSON.stringify(e)}catch{}}function GP(n){try{const e=window.localStorage[`emoji-mart.${n}`];if(e)return JSON.parse(e)}catch{}}var Sa={set:VP,get:GP};const Q1=new Map,WP=[{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 UP(){for(const{v:n,emoji:e}of WP)if(X2(e))return n}function ZP(){return!X2("🇨🇦")}function X2(n){if(Q1.has(n))return Q1.get(n);const e=qP(n);return Q1.set(n,e),e}const qP=(()=>{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 f=0;for(;f<o&&!a[f+3];f+=4);if(f>=o)return!1;const d=t+f/4%t,h=Math.floor(f/4/t),p=n.getImageData(d,h,1,1).data;return!(a[f]!==p[0]||a[f+2]!==p[2]||n.measureText(r).width>=t)}})();var Wm={latestVersion:UP,noCountryFlags:ZP};const qh=["+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 KP(n){wt||(wt=Sa.get("frequently")||{});const e=n.id||n;e&&(wt[e]||(wt[e]=0),wt[e]+=1,Sa.set("last",e),Sa.set("frequently",wt))}function YP({maxFrequentRows:n,perLine:e}){if(!n)return[];wt||(wt=Sa.get("frequently"));let t=[];if(!wt){wt={};for(let a in qh.slice(0,e)){const o=qh[a];wt[o]=e-a,t.push(o)}return t}const i=n*e,r=Sa.get("last");for(let a in wt)t.push(a);if(t.sort((a,o)=>{const f=wt[o],d=wt[a];return f==d?a.localeCompare(o):f-d}),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)),Sa.set("frequently",wt)}return t}var Q2={add:KP,get:YP,DEFAULTS:qh},e3={};e3=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 eh={};async function Um(n){if(eh[n])return eh[n];const t=await(await fetch(n)).json();return eh[n]=t,t}let nh=null,n3=null,t3=!1;function hd(n,{caller:e}={}){return nh||(nh=new Promise(t=>{n3=t})),n?JP(n):e&&!t3&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),nh}async function JP(n){t3=!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(d=>!d.name);else{kn=(typeof n.data=="function"?await n.data():n.data)||await Um(`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 d in kn.aliases){const h=kn.aliases[d],p=kn.emojis[h];p&&(p.aliases||(p.aliases=[]),p.aliases.push(d))}kn.originalCategories=kn.categories}if(Tt=(typeof n.i18n=="function"?await n.i18n():n.i18n)||(i=="en"?j2(e3):await Um(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),n.custom)for(let d in n.custom){d=parseInt(d);const h=n.custom[d],p=n.custom[d-1];if(!(!h.emojis||!h.emojis.length)){h.id||(h.id=`custom_${d+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(d=>n.categories.indexOf(d.id)!=-1).sort((d,h)=>{const p=n.categories.indexOf(d.id),m=n.categories.indexOf(h.id);return p-m}));let r=null,a=null;t=="native"&&(r=Wm.latestVersion(),a=n.noCountryFlags||Wm.noCountryFlags());let o=kn.categories.length,f=!1;for(;o--;){const d=kn.categories[o];if(d.id=="frequent"){let{maxFrequentRows:m,perLine:y}=n;m=m>=0?m:$r.maxFrequentRows.value,y||(y=$r.perLine.value),d.emojis=Q2.get({maxFrequentRows:m,perLine:y})}if(!d.emojis||!d.emojis.length){kn.categories.splice(o,1);continue}const{categoryIcons:h}=n;if(h){const m=h[d.id];m&&!d.icon&&(d.icon=m)}let p=d.emojis.length;for(;p--;){const m=d.emojis[p],y=m.id?m:kn.emojis[m],x=()=>{d.emojis.splice(p,1)};if(!y||n.exceptEmojis&&n.exceptEmojis.includes(y.id)){x();continue}if(r&&y.version>r){x();continue}if(a&&d.id=="flags"&&!tA.includes(y.id)){x();continue}if(!y.search){if(f=!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}`}}}}f&&Es.reset(),n3()}function i3(n,e,t){n||(n={});const i={};for(let r in e)i[r]=r3(r,n,e,t);return i}function r3(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 XP=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let Kh=null;function QP(n){return n.id?n:kn.emojis[n]||kn.emojis[kn.aliases[n]]||kn.emojis[kn.natives[n]]}function eA(){Kh=null}async function nA(n,{maxResults:e,caller:t}={}){if(!n||!n.trim().length)return null;e||(e=90),await hd(null,{caller:t||"SearchIndex.search"});const i=n.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((f,d,h)=>f.trim()&&h.indexOf(f)==d);if(!i.length)return;let r=Kh||(Kh=Object.values(kn.emojis)),a,o;for(const f of i){if(!r.length)break;a=[],o={};for(const d of r){if(!d.search)continue;const h=d.search.indexOf(`,${f}`);h!=-1&&(a.push(d),o[d.id]||(o[d.id]=0),o[d.id]+=d.id==f?0:h+1)}r=a}return a.length<2||(a.sort((f,d)=>{const h=o[f.id],p=o[d.id];return h==p?f.id.localeCompare(d.id):h-p}),a.length>e&&(a=a.slice(0,e))),a}var Es={search:nA,get:QP,reset:eA,SHORTCODES_REGEX:XP};const tA=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function iA(n,e){return Array.isArray(n)&&Array.isArray(e)&&n.length===e.length&&n.every((t,i)=>t==e[i])}async function rA(n=1){for(let e in[...Array(n).keys()])await new Promise(requestAnimationFrame)}function aA(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 sA={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"})})}},oA={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 Qc={categories:sA,search:oA};function Yh(n){let{id:e,skin:t,emoji:i}=n;if(n.shortcodes){const f=n.shortcodes.match(Es.SHORTCODES_REGEX);f&&(e=f[1],f[2]&&(t=f[2]))}if(i||(i=Es.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 lA=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class a3 extends lA{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=r3(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 fA extends a3{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 s3={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:n=>/\D/.test(n)?n:`${n}px`},set:$r.set,skin:$r.skin};class o3 extends a3{async connectedCallback(){const e=i3(this.props,s3,this);e.element=this,e.ref=t=>{this.component=t},await hd(),!this.disconnected&&J2(me(Yh,{...e}),this)}constructor(e){super(e)}}Si(o3,"Props",s3);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",o3);var Zm,Jh=[],qm=Ye.__b,Km=Ye.__r,Ym=Ye.diffed,Jm=Ye.__c,Xm=Ye.unmount;function dA(){var n;for(Jh.sort(function(e,t){return e.__v.__b-t.__v.__b});n=Jh.pop();)if(n.__P)try{n.__H.__h.forEach(Sc),n.__H.__h.forEach(Xh),n.__H.__h=[]}catch(e){n.__H.__h=[],Ye.__e(e,n.__v)}}Ye.__b=function(n){qm&&qm(n)},Ye.__r=function(n){Km&&Km(n);var e=n.__c.__H;e&&(e.__h.forEach(Sc),e.__h.forEach(Xh),e.__h=[])},Ye.diffed=function(n){Ym&&Ym(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(Jh.push(e)!==1&&Zm===Ye.requestAnimationFrame||((Zm=Ye.requestAnimationFrame)||function(t){var i,r=function(){clearTimeout(a),Qm&&cancelAnimationFrame(i),setTimeout(t)},a=setTimeout(r,100);Qm&&(i=requestAnimationFrame(r))})(dA))},Ye.__c=function(n,e){e.some(function(t){try{t.__h.forEach(Sc),t.__h=t.__h.filter(function(i){return!i.__||Xh(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],Ye.__e(i,t.__v)}}),Jm&&Jm(n,e)},Ye.unmount=function(n){Xm&&Xm(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Sc(i)}catch(r){e=r}}),e&&Ye.__e(e,t.__v))};var Qm=typeof requestAnimationFrame=="function";function Sc(n){var e=n.__c;typeof e=="function"&&(n.__c=void 0,e())}function Xh(n){n.__c=n.__()}function cA(n,e){for(var t in e)n[t]=e[t];return n}function e0(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 eu(n){this.props=n}(eu.prototype=new hr).isPureReactComponent=!0,eu.prototype.shouldComponentUpdate=function(n,e){return e0(this.props,n)||e0(this.state,e)};var n0=Ye.__b;Ye.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),n0&&n0(n)};var uA=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)}uA(n,e,t)};var t0=Ye.unmount;function th(){this.__u=0,this.t=null,this.__b=null}function l3(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function uc(){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),t0&&t0(n)},(th.prototype=new hr).__c=function(n,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=l3(i.__v),a=!1,o=function(){a||(a=!0,t.__R=null,r?r(f):f())};t.__R=o;var f=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()}},d=e.__h===!0;i.__u++||d||i.setState({__e:i.__b=i.__v.__k[0]}),n.then(o,o)},th.prototype.componentWillUnmount=function(){this.t=[]},th.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,f,d){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(h){typeof h.__c=="function"&&h.__c()}),o.__c.__H=null),(o=cA({},o)).__c!=null&&(o.__c.__P===d&&(o.__c.__P=f),o.__c=null),o.__k=o.__k&&o.__k.map(function(h){return a(h,f,d)})),o}(this.__b,t,i.__O=i.__P)}this.__b=null}var r=e.__e&&Zh(fl,null,n.fallback);return r&&(r.__h=null),[Zh(fl,null,e.__e?null:n.children),r]};var i0=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]}};(uc.prototype=new hr).__e=function(n){var e=this,t=l3(e.__v),i=e.o.get(n);return i[0]++,function(r){var a=function(){e.props.revealOrder?(i.push(r),i0(e,n,i)):r()};t?t(a):a()}},uc.prototype.render=function(n){this.u=null,this.o=new Map;var e=Jc(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},uc.prototype.componentDidUpdate=uc.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){i0(n,t,e)})};var hA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,pA=/^(?: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]/,gA=typeof document<"u",mA=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 r0=Ye.event;function vA(){}function kA(){return this.cancelBubble}function wA(){return this.defaultPrevented}Ye.event=function(n){return r0&&(n=r0(n)),n.persist=vA,n.isPropagationStopped=kA,n.isDefaultPrevented=wA,n.nativeEvent=n};var a0={configurable:!0,get:function(){return this.class}},s0=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];gA&&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)&&!mA(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&&pA.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=Jc(t.children).forEach(function(f){f.props.selected=i.value.indexOf(f.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=Jc(t.children).forEach(function(f){f.props.selected=i.multiple?i.defaultValue.indexOf(f.props.value)!=-1:i.defaultValue==f.props.value})),n.props=i,t.class!=t.className&&(a0.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",a0))}n.$$typeof=hA,s0&&s0(n)};var o0=Ye.__r;Ye.__r=function(n){o0&&o0(n),n.__c};const bA={light:"outline",dark:"solid"};class yA extends eu{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=Qc.categories[e.id]||Qc.categories.custom,r=this.props.icons=="auto"?bA[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 _A extends eu{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 hc={rowsPerRender:10};class xA extends hr{getInitialState(e=this.props){return{skin:Sa.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 hd(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 f=this.grid.length-1,d=f%hc.rowsPerRender?{}:Ir();return d.index=f,d.posinset=this.grid.setsize+1,r.push(d),o};for(let r of e){const a=[];let o=i(a,r);for(let f of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(f);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 Es.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 d of o){const h=d.target.dataset.id;t.set(h,d.intersectionRatio)}const f=[...t];for(const[d,h]of f)if(h){i(d);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*(hc.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*hc.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 f=this.state.searchResults||this.grid;if(!f.length)return;let[d,h]=this.state.pos;const p=(()=>{if(d==0&&h==0&&!e.repeat&&(i||a))return null;if(d==-1)return!e.repeat&&(r||o)&&t.selectionStart==t.value.length?[0,0]:null;if(i||r){let m=f[d];const y=i?-1:1;if(h+=y,!m[h]){if(d+=y,m=f[d],!m)return d=i?0:f.length-1,h=i?0:f[d].length-1,[d,h];h=i?m.length-1:0}return[d,h]}if(a||o){d+=a?-1:1;const m=f[d];return m?(m[h]||(h=m.length-1),[d,h]):(d=a?0:f.length-1,h=a?0:f[d].length-1,[d,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 f=i[t].__index,d=o+f*this.props.emojiButtonSize,h=d+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(d<r.scrollTop)o=d;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=aA(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&Q2.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}),Sa.set("skin",e)}renderNav(){return me(yA,{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(Yh,{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,d=(e.skins[o-1]||e.skins[0]).native,h=iA(this.state.pos,t),p=t.concat(e.id).join("");return me(_A,{selected:h,skin:o,size:a,children:me("button",{"aria-label":d,"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(Yh,{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:Qc.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:Qc.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((f,d)=>{const h=f.index-f.index%hc.rowsPerRender,p=this.state.visibleRows[h],m="current"in f?f:void 0;if(!p&&!m)return null;const y=d*i,x=y+i,_=r.emojis.slice(y,x);return _.length<i&&_.push(...new Array(i-_.length)),me("div",{"data-index":f.index,ref:m,class:"flex row",style:{top:d*this.props.emojiButtonSize},children:p&&_.map((R,F)=>{if(!R)return me("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const T=Es.get(R);return this.renderEmojiButton(T,{pos:[f.index,F],posinset:f.posinset+F,grid:this.grid})})},f.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,f=this.state.skin==o;return me("div",{children:[me("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Tt.skins[o],ref:f?this.refs.skinToneRadio:null,defaultChecked:f,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:d=>{(d.code=="Enter"||d.code=="Space"||d.code=="Tab")&&(d.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 Es.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],f=[];f.setsize=r.length;let d=null;for(let h of r)(!f.length||d.length==this.getPerLine())&&(d=[],d.__categoryId="search",d.__index=f.length,f.push(d)),d.push(h);this.ignoreMouse(),this.setState({searchResults:f,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 rA(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 Zp extends fA{async connectedCallback(){const e=i3(this.props,$r,this);e.element=this,e.ref=t=>{this.component=t},await hd(e),!this.disconnected&&J2(me(xA,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:j2(f3)})}}Si(Zp,"Props",$r);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",Zp);var f3={};f3=`:host {
223
+ `+a):i.stack=a}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Bs(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:a}=t;i!==void 0&&Gh.assertOptions(i,{silentJSONParsing:ka.transitional(ka.boolean),forcedJSONParsing:ka.transitional(ka.boolean),clarifyTimeoutError:ka.transitional(ka.boolean)},!1),r!=null&&(se.isFunction(r)?t.paramsSerializer={serialize:r}:Gh.assertOptions(r,{encode:ka.function,serialize:ka.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 f=[];let d=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(t)===!1||(d=d&&R.synchronous,f.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(!d){const _=[Om.bind(this),void 0];for(_.unshift.apply(_,f),_.push.apply(_,h),y=_.length,p=Promise.resolve(t);m<y;)p=p.then(_[m++],_[m++]);return p}y=f.length;let x=t;for(m=0;m<y;){const _=f[m++],R=f[m++];try{x=_(x)}catch(F){R.call(this,F);break}}try{p=Om.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=Bs(this.defaults,e);const t=M2(e.baseURL,e.url);return C2(t,e.params,e.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(e){Cs.prototype[e]=function(t,i){return this.request(Bs(i||{},{method:e,url:t,data:(i||{}).data}))}});se.forEach(["post","put","patch"],function(e){function t(i){return function(a,o,f){return this.request(Bs(f||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Cs.prototype[e]=t(),Cs.prototype[e+"Form"]=t(!0)});let QM=class I2{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(f=>{i.subscribe(f),a=f}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},e(function(a,o,f){i.reason||(i.reason=new gl(a,o,f),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 I2(function(r){e=r}),cancel:e}}};function eP(n){return function(t){return n.apply(null,t)}}function nP(n){return se.isObject(n)&&n.isAxiosError===!0}const Wh={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(Wh).forEach(([n,e])=>{Wh[e]=n});function O2(n){const e=new Cs(n),t=h2(Cs.prototype.request,e);return se.extend(t,Cs.prototype,e,{allOwnKeys:!0}),se.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return O2(Bs(n,r))},t}const Qn=O2(ud);Qn.Axios=Cs;Qn.CanceledError=gl;Qn.CancelToken=QM;Qn.isCancel=F2;Qn.VERSION=B2;Qn.toFormData=Fu;Qn.AxiosError=dn;Qn.Cancel=Qn.CanceledError;Qn.all=function(e){return Promise.all(e)};Qn.spread=eP;Qn.isAxiosError=nP;Qn.mergeConfig=Bs;Qn.AxiosHeaders=Jt;Qn.formToJSON=n=>T2(se.isHTMLForm(n)?new FormData(n):n);Qn.getAdapter=z2.getAdapter;Qn.HttpStatusCode=Wh;Qn.default=Qn;const{Axios:VI,AxiosError:GI,CanceledError:WI,isCancel:UI,CancelToken:ZI,VERSION:qI,all:KI,Cancel:YI,isAxiosError:tP,spread:JI,toFormData:XI,AxiosHeaders:QI,HttpStatusCode:eO,formToJSON:nO,getAdapter:tO,mergeConfig:iO}=Qn,Yp=class Yp{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 tP(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}};Yp.instance=null;let Uh=Yp;async function iP(n){return(await Uh.getApi().post("/public/v1/complaints.json",{complaint:n})).data}const rP="_form_ji3ty_106",aP="_fieldset_ji3ty_110",sP="_fieldSetName_ji3ty_121",oP="_successBody_ji3ty_127",lP="_generalError_ji3ty_134",vf={form:rP,fieldset:aP,fieldSetName:sP,successBody:oP,generalError:lP},fP=ks.object({reasonText:ks.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:ks.string({required_error:"Bitte gib eine gültige E-Mail-Adresse ein."}).email("Bitte gib eine gültige E-Mail-Adresse ein."),reporterFirstName:ks.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:ks.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:ks.string({invalid_type_error:"Bitte wähle eine Option."}),selectedRole:ks.string({required_error:"Bitte wähle eine Rolle."})}),dP=({handleModalClick:n,open:e,subjectId:t})=>{const[i,r]=M.useState(!1),a=cF({initialValues:{errorText:"",reasonText:"",reporterEmail:"",reporterFirstName:"",reporterLastName:"",selectedReason:"",selectedRole:"myself"},onSubmit:(_,{setErrors:R,setSubmitting:F})=>{iP({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:u2(fP)}),o=_=>{a.setFieldValue("selectedReason",_)},f=_=>{a.setFieldValue("selectedRole",_)},d=TR(),h=()=>{n()},p=()=>{a.handleSubmit()};let m="Inhalt melden",y=L.jsx(wx,{className:vf.form,children:L.jsxs(kx,{className:vf.fieldset,children:[L.jsx(on,{type:"body-regular",children:"Warum hältst du den Inhalt für problematisch?"}),L.jsx(Dg,{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:d.complaint_reasons.map(_=>L.jsx("option",{value:_.value,children:_.label_de},_.value))}),L.jsx(d8,{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(Dg,{colorScheme:"dark",onChange:f,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(_p,{}),L.jsxs("div",{className:vf.fieldSetName,children:[L.jsx(H1,{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(H1,{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(H1,{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:vf.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(gx,{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:vf.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(pu,{onClick:p,text:"Absenden",color:"highlight"}),L.jsx("div",{children:L.jsx(Rs,{children:L.jsx(bv,{open:e,onClose:h,modalBody:y,headerTitle:m,modalFooter:x,closeButtonText:"Schließen"})})})},cP=800,D2=()=>window.innerWidth<cP,uP=({cancelText:n="Abbrechen",confirmText:e="Bestätigen",content:t,handleCancel:i,handleConfirm:r,primaryCtaColor:a="primary",title:o})=>{const f=()=>L.jsx(il,{headline:o,as:"h3",rightElement:L.jsx(Xt,{ariaLabel:"close-sheet",onClick:i,icon:"cross",size:"small"})}),d=()=>L.jsx(pu,{color:a,onClick:r,size:"large",text:e});return D2()?L.jsx(Ex,{open:!0,onClose:i,sheetBody:t,sheetHeader:f(),ctaButtonProps:{color:a,fullWidth:!0,onClick:r,size:"large",text:e},linkProps:{color:"blue",onClick:i,size:"large",text:n}}):L.jsx(bv,{open:!0,onClose:i,modalBody:t,headerTitle:o,closeButtonText:n,modalFooter:d()})},hP="_root_1pooe_106",pP="_textButton_1pooe_113",jm={root:hP,textButton:pP},gP=({alt:n,ariaLabel:e,onClick:t,src:i,text:r})=>L.jsxs("div",{className:jm.root,children:[L.jsx(tl,{src:i,shape:"circular",size:"40",alt:n}),L.jsx(Ei,{className:jm.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})]}),mP="_container_kx2nk_106",vP="_sidebarLeft_kx2nk_114",kP="_navBar_kx2nk_118",wP="_mainContent_kx2nk_124",bP="_sidebarRight_kx2nk_130",kf={container:mP,sidebarLeft:vP,navBar:kP,mainContent:wP,sidebarRight:bP},yP=({children:n,left:e,navbar:t,right:i})=>L.jsxs("div",{className:kf.container,children:[L.jsx("nav",{className:kf.navBar,children:t}),e&&L.jsx("aside",{className:kf.sidebarLeft,children:e}),L.jsx("main",{className:kf.mainContent,children:n}),i&&L.jsx("aside",{className:kf.sidebarRight,children:i})]}),_P="_inputContainer_1k1vh_106",xP="_searchInput_1k1vh_121",SP="_searchButton_1k1vh_165",dc={inputContainer:_P,"inputContainer--invalid":"_inputContainer--invalid_1k1vh_118",searchInput:xP,searchButton:SP},CP=({name:n,onSearchSubmit:e,placeholder:t,ref:i})=>{const[r,a]=M.useState(""),[o,f]=M.useState(!0),{getInputProps:d}=dp({inputRef:i,onChange:x=>{a(x.target.value),p(x.target.value)},value:r}),h=d(),p=x=>{const _=x.length<250;f(_)},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(dc.inputContainer,{[dc["inputContainer--invalid"]]:!o}),children:[L.jsx("input",{...h,type:"text",name:n,placeholder:t,className:dc.searchInput}),L.jsx(Xt,{icon:"search",className:dc.searchButton,size:"small",ariaLabelledBy:"searchButton",onClick:m,disabled:y,type:"submit"})]})})},EP="_navbarWrapper_a6jpz_106",TP="_navbar_a6jpz_106",FP="_right_a6jpz_118",cc={navbarWrapper:EP,navbar:TP,right:FP},RP=({left:n,right:e})=>L.jsx("div",{className:cc.navbarWrapper,children:L.jsxs("div",{className:cc.navbar,children:[L.jsx("div",{className:cc.left,children:n}),L.jsx("div",{className:cc.right,children:e})]})}),MP="Suchen",PP="Oh nein!",AP="Das Emoji konnte nicht gefunden werden",LP="Wähle ein Emoji…",zP="Füge ein benutzerdefiniertes Emoji hinzu",BP={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"},IP={1:"Standard",2:"Hell",3:"Mittelhell",4:"Mittel",5:"Mitteldunkel",6:"Dunkel",choose:"Wähle eine Standard-Hautfarbe"},OP={search:MP,search_no_results_1:PP,search_no_results_2:AP,pick:LP,add_custom:zP,categories:BP,skins:IP};function j2(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 Mu,Ye,$2,Af,H2,$m,Kc={},N2=[],DP=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _a(n,e){for(var t in e)n[t]=e[t];return n}function V2(n){var e=n.parentNode;e&&e.removeChild(n)}function Zh(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?Mu.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 xc(n,o,i,r,null)}function xc(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??++$2};return r==null&&Ye.vnode!=null&&Ye.vnode(a),a}function Ir(){return{current:null}}function fl(n){return n.children}function hr(n,e){this.props=n,this.context=e}function dl(n,e){if(e==null)return n.__?dl(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"?dl(n):null}function G2(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 G2(n)}}function Hm(n){(!n.__d&&(n.__d=!0)&&Af.push(n)&&!Yc.__r++||$m!==Ye.debounceRendering)&&(($m=Ye.debounceRendering)||H2)(Yc)}function Yc(){for(var n;Yc.__r=Af.length;)n=Af.sort(function(e,t){return e.__v.__b-t.__v.__b}),Af=[],n.some(function(e){var t,i,r,a,o,f;e.__d&&(o=(a=(t=e).__v).__e,(f=t.__P)&&(i=[],(r=_a({},a)).__v=a.__v+1,Up(f,a,r,t.__n,f.ownerSVGElement!==void 0,a.__h!=null?[o]:null,i,o??dl(a),a.__h),q2(i,a),a.__e!=o&&G2(a)))})}function W2(n,e,t,i,r,a,o,f,d,h){var p,m,y,x,_,R,F,T=i&&i.__k||N2,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"?xc(null,x,null,null,x):Array.isArray(x)?xc(fl,{children:x},null,null,null):x.__b>0?xc(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}Up(n,x,y=y||Kc,r,a,o,f,d,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=d=U2(x,d,n):d=Z2(n,x,y,T,_,d),typeof t.type=="function"&&(t.__d=d)):d&&y.__e==d&&d.parentNode!=n&&(d=dl(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=dl(i,p+1)),Y2(T[p],T[p]));if(F)for(p=0;p<F.length;p++)K2(F[p],F[++p],F[++p])}function U2(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"?U2(i,e,t):Z2(t,i,i,r,i.__e,e));return e}function Jc(n,e){return e=e||[],n==null||typeof n=="boolean"||(Array.isArray(n)?n.some(function(t){Jc(t,e)}):e.push(n)),e}function Z2(n,e,t,i,r,a){var o,f,d;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(f=a,d=0;(f=f.nextSibling)&&d<i.length;d+=2)if(f==r)break e;n.insertBefore(r,a),o=a}return o!==void 0?o:r.nextSibling}function jP(n,e,t,i,r){var a;for(a in t)a==="children"||a==="key"||a in e||Xc(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]||Xc(n,a,e[a],t[a],i)}function Nm(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||DP.test(e)?t:t+"px"}function Xc(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||Nm(n.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||Nm(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?Gm:Vm,a):n.removeEventListener(e,a?Gm:Vm,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 Vm(n){this.l[n.type+!1](Ye.event?Ye.event(n):n)}function Gm(n){this.l[n.type+!0](Ye.event?Ye.event(n):n)}function Up(n,e,t,i,r,a,o,f,d){var h,p,m,y,x,_,R,F,T,D,I,N=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(d=t.__h,f=e.__e=t.__e,e.__h=null,a=[f]),(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=HP),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=_a({},p.__s)),_a(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=_a(_a({},i),p.getChildContext())),m||p.getSnapshotBeforeUpdate==null||(_=p.getSnapshotBeforeUpdate(y,x)),I=h!=null&&h.type===fl&&h.key==null?h.props.children:h,W2(n,Array.isArray(I)?I:[I],e,t,i,r,a,o,f,d),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=$P(t.__e,e,t,i,r,a,o,d);(h=Ye.diffed)&&h(e)}catch(B){e.__v=null,(d||a!=null)&&(e.__e=f,e.__h=!!d,a[a.indexOf(f)]=null),Ye.__e(B,e,t)}}function q2(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 $P(n,e,t,i,r,a,o,f){var d,h,p,m=t.props,y=e.props,x=e.type,_=0;if(x==="svg"&&(r=!0),a!=null){for(;_<a.length;_++)if((d=a[_])&&"setAttribute"in d==!!x&&(x?d.localName===x:d.nodeType===3)){n=d,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,f=!1}if(x===null)m===y||f&&n.data===y||(n.data=y);else{if(a=a&&Mu.call(n.childNodes),h=(m=t.props||Kc).dangerouslySetInnerHTML,p=y.dangerouslySetInnerHTML,!f){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(jP(n,y,m,r,f),p)e.__k=[];else if(_=e.props.children,W2(n,Array.isArray(_)?_:[_],e,t,i,r&&x!=="foreignObject",a,o,a?a[0]:t.__k&&dl(t,0),f),a!=null)for(_=a.length;_--;)a[_]!=null&&V2(a[_]);f||("value"in y&&(_=y.value)!==void 0&&(_!==m.value||_!==n.value||x==="progress"&&!_)&&Xc(n,"value",_,m.value,!1),"checked"in y&&(_=y.checked)!==void 0&&_!==n.checked&&Xc(n,"checked",_,m.checked,!1))}return n}function K2(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(i){Ye.__e(i,t)}}function Y2(n,e,t){var i,r;if(Ye.unmount&&Ye.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||K2(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]&&Y2(i[r],e,typeof n.type!="function");t||n.__e==null||V2(n.__e),n.__e=n.__d=void 0}function HP(n,e,t){return this.constructor(n,t)}function J2(n,e,t){var i,r,a;Ye.__&&Ye.__(n,e),r=(i=typeof t=="function")?null:t&&t.__k||e.__k,a=[],Up(e,n=(!i&&t||e).__k=Zh(fl,null,[n]),r||Kc,Kc,e.ownerSVGElement!==void 0,!i&&t?[t]:r?null:e.firstChild?Mu.call(e.childNodes):null,a,!i&&t?t:r?r.__e:e.firstChild,i),q2(a,n)}Mu=N2.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}},$2=0,hr.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_a({},this.state),typeof n=="function"&&(n=n(_a({},t),this.props)),n&&_a(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),Hm(this))},hr.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Hm(this))},hr.prototype.render=fl,Af=[],H2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Yc.__r=0;var NP=0;function me(n,e,t,i,r){var a,o,f={};for(o in e)o=="ref"?a=e[o]:f[o]=e[o];var d={type:n,props:f,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--NP,__source:i,__self:r};if(typeof n=="function"&&(a=n.defaultProps))for(o in a)f[o]===void 0&&(f[o]=a[o]);return Ye.vnode&&Ye.vnode(d),d}function VP(n,e){try{window.localStorage[`emoji-mart.${n}`]=JSON.stringify(e)}catch{}}function GP(n){try{const e=window.localStorage[`emoji-mart.${n}`];if(e)return JSON.parse(e)}catch{}}var Sa={set:VP,get:GP};const Q1=new Map,WP=[{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 UP(){for(const{v:n,emoji:e}of WP)if(X2(e))return n}function ZP(){return!X2("🇨🇦")}function X2(n){if(Q1.has(n))return Q1.get(n);const e=qP(n);return Q1.set(n,e),e}const qP=(()=>{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 f=0;for(;f<o&&!a[f+3];f+=4);if(f>=o)return!1;const d=t+f/4%t,h=Math.floor(f/4/t),p=n.getImageData(d,h,1,1).data;return!(a[f]!==p[0]||a[f+2]!==p[2]||n.measureText(r).width>=t)}})();var Wm={latestVersion:UP,noCountryFlags:ZP};const qh=["+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 KP(n){wt||(wt=Sa.get("frequently")||{});const e=n.id||n;e&&(wt[e]||(wt[e]=0),wt[e]+=1,Sa.set("last",e),Sa.set("frequently",wt))}function YP({maxFrequentRows:n,perLine:e}){if(!n)return[];wt||(wt=Sa.get("frequently"));let t=[];if(!wt){wt={};for(let a in qh.slice(0,e)){const o=qh[a];wt[o]=e-a,t.push(o)}return t}const i=n*e,r=Sa.get("last");for(let a in wt)t.push(a);if(t.sort((a,o)=>{const f=wt[o],d=wt[a];return f==d?a.localeCompare(o):f-d}),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)),Sa.set("frequently",wt)}return t}var Q2={add:KP,get:YP,DEFAULTS:qh},e3={};e3=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 eh={};async function Um(n){if(eh[n])return eh[n];const t=await(await fetch(n)).json();return eh[n]=t,t}let nh=null,n3=null,t3=!1;function hd(n,{caller:e}={}){return nh||(nh=new Promise(t=>{n3=t})),n?JP(n):e&&!t3&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),nh}async function JP(n){t3=!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(d=>!d.name);else{kn=(typeof n.data=="function"?await n.data():n.data)||await Um(`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 d in kn.aliases){const h=kn.aliases[d],p=kn.emojis[h];p&&(p.aliases||(p.aliases=[]),p.aliases.push(d))}kn.originalCategories=kn.categories}if(Tt=(typeof n.i18n=="function"?await n.i18n():n.i18n)||(i=="en"?j2(e3):await Um(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),n.custom)for(let d in n.custom){d=parseInt(d);const h=n.custom[d],p=n.custom[d-1];if(!(!h.emojis||!h.emojis.length)){h.id||(h.id=`custom_${d+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(d=>n.categories.indexOf(d.id)!=-1).sort((d,h)=>{const p=n.categories.indexOf(d.id),m=n.categories.indexOf(h.id);return p-m}));let r=null,a=null;t=="native"&&(r=Wm.latestVersion(),a=n.noCountryFlags||Wm.noCountryFlags());let o=kn.categories.length,f=!1;for(;o--;){const d=kn.categories[o];if(d.id=="frequent"){let{maxFrequentRows:m,perLine:y}=n;m=m>=0?m:$r.maxFrequentRows.value,y||(y=$r.perLine.value),d.emojis=Q2.get({maxFrequentRows:m,perLine:y})}if(!d.emojis||!d.emojis.length){kn.categories.splice(o,1);continue}const{categoryIcons:h}=n;if(h){const m=h[d.id];m&&!d.icon&&(d.icon=m)}let p=d.emojis.length;for(;p--;){const m=d.emojis[p],y=m.id?m:kn.emojis[m],x=()=>{d.emojis.splice(p,1)};if(!y||n.exceptEmojis&&n.exceptEmojis.includes(y.id)){x();continue}if(r&&y.version>r){x();continue}if(a&&d.id=="flags"&&!tA.includes(y.id)){x();continue}if(!y.search){if(f=!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}`}}}}f&&Es.reset(),n3()}function i3(n,e,t){n||(n={});const i={};for(let r in e)i[r]=r3(r,n,e,t);return i}function r3(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 XP=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let Kh=null;function QP(n){return n.id?n:kn.emojis[n]||kn.emojis[kn.aliases[n]]||kn.emojis[kn.natives[n]]}function eA(){Kh=null}async function nA(n,{maxResults:e,caller:t}={}){if(!n||!n.trim().length)return null;e||(e=90),await hd(null,{caller:t||"SearchIndex.search"});const i=n.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((f,d,h)=>f.trim()&&h.indexOf(f)==d);if(!i.length)return;let r=Kh||(Kh=Object.values(kn.emojis)),a,o;for(const f of i){if(!r.length)break;a=[],o={};for(const d of r){if(!d.search)continue;const h=d.search.indexOf(`,${f}`);h!=-1&&(a.push(d),o[d.id]||(o[d.id]=0),o[d.id]+=d.id==f?0:h+1)}r=a}return a.length<2||(a.sort((f,d)=>{const h=o[f.id],p=o[d.id];return h==p?f.id.localeCompare(d.id):h-p}),a.length>e&&(a=a.slice(0,e))),a}var Es={search:nA,get:QP,reset:eA,SHORTCODES_REGEX:XP};const tA=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function iA(n,e){return Array.isArray(n)&&Array.isArray(e)&&n.length===e.length&&n.every((t,i)=>t==e[i])}async function rA(n=1){for(let e in[...Array(n).keys()])await new Promise(requestAnimationFrame)}function aA(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 sA={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"})})}},oA={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 Qc={categories:sA,search:oA};function Yh(n){let{id:e,skin:t,emoji:i}=n;if(n.shortcodes){const f=n.shortcodes.match(Es.SHORTCODES_REGEX);f&&(e=f[1],f[2]&&(t=f[2]))}if(i||(i=Es.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 lA=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class a3 extends lA{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=r3(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 fA extends a3{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 s3={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:n=>/\D/.test(n)?n:`${n}px`},set:$r.set,skin:$r.skin};class o3 extends a3{async connectedCallback(){const e=i3(this.props,s3,this);e.element=this,e.ref=t=>{this.component=t},await hd(),!this.disconnected&&J2(me(Yh,{...e}),this)}constructor(e){super(e)}}Si(o3,"Props",s3);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",o3);var Zm,Jh=[],qm=Ye.__b,Km=Ye.__r,Ym=Ye.diffed,Jm=Ye.__c,Xm=Ye.unmount;function dA(){var n;for(Jh.sort(function(e,t){return e.__v.__b-t.__v.__b});n=Jh.pop();)if(n.__P)try{n.__H.__h.forEach(Sc),n.__H.__h.forEach(Xh),n.__H.__h=[]}catch(e){n.__H.__h=[],Ye.__e(e,n.__v)}}Ye.__b=function(n){qm&&qm(n)},Ye.__r=function(n){Km&&Km(n);var e=n.__c.__H;e&&(e.__h.forEach(Sc),e.__h.forEach(Xh),e.__h=[])},Ye.diffed=function(n){Ym&&Ym(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(Jh.push(e)!==1&&Zm===Ye.requestAnimationFrame||((Zm=Ye.requestAnimationFrame)||function(t){var i,r=function(){clearTimeout(a),Qm&&cancelAnimationFrame(i),setTimeout(t)},a=setTimeout(r,100);Qm&&(i=requestAnimationFrame(r))})(dA))},Ye.__c=function(n,e){e.some(function(t){try{t.__h.forEach(Sc),t.__h=t.__h.filter(function(i){return!i.__||Xh(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],Ye.__e(i,t.__v)}}),Jm&&Jm(n,e)},Ye.unmount=function(n){Xm&&Xm(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Sc(i)}catch(r){e=r}}),e&&Ye.__e(e,t.__v))};var Qm=typeof requestAnimationFrame=="function";function Sc(n){var e=n.__c;typeof e=="function"&&(n.__c=void 0,e())}function Xh(n){n.__c=n.__()}function cA(n,e){for(var t in e)n[t]=e[t];return n}function e0(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 eu(n){this.props=n}(eu.prototype=new hr).isPureReactComponent=!0,eu.prototype.shouldComponentUpdate=function(n,e){return e0(this.props,n)||e0(this.state,e)};var n0=Ye.__b;Ye.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),n0&&n0(n)};var uA=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)}uA(n,e,t)};var t0=Ye.unmount;function th(){this.__u=0,this.t=null,this.__b=null}function l3(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function uc(){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),t0&&t0(n)},(th.prototype=new hr).__c=function(n,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=l3(i.__v),a=!1,o=function(){a||(a=!0,t.__R=null,r?r(f):f())};t.__R=o;var f=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()}},d=e.__h===!0;i.__u++||d||i.setState({__e:i.__b=i.__v.__k[0]}),n.then(o,o)},th.prototype.componentWillUnmount=function(){this.t=[]},th.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,f,d){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(h){typeof h.__c=="function"&&h.__c()}),o.__c.__H=null),(o=cA({},o)).__c!=null&&(o.__c.__P===d&&(o.__c.__P=f),o.__c=null),o.__k=o.__k&&o.__k.map(function(h){return a(h,f,d)})),o}(this.__b,t,i.__O=i.__P)}this.__b=null}var r=e.__e&&Zh(fl,null,n.fallback);return r&&(r.__h=null),[Zh(fl,null,e.__e?null:n.children),r]};var i0=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]}};(uc.prototype=new hr).__e=function(n){var e=this,t=l3(e.__v),i=e.o.get(n);return i[0]++,function(r){var a=function(){e.props.revealOrder?(i.push(r),i0(e,n,i)):r()};t?t(a):a()}},uc.prototype.render=function(n){this.u=null,this.o=new Map;var e=Jc(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},uc.prototype.componentDidUpdate=uc.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(e,t){i0(n,t,e)})};var hA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,pA=/^(?: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]/,gA=typeof document<"u",mA=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 r0=Ye.event;function vA(){}function kA(){return this.cancelBubble}function wA(){return this.defaultPrevented}Ye.event=function(n){return r0&&(n=r0(n)),n.persist=vA,n.isPropagationStopped=kA,n.isDefaultPrevented=wA,n.nativeEvent=n};var a0={configurable:!0,get:function(){return this.class}},s0=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];gA&&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)&&!mA(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&&pA.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=Jc(t.children).forEach(function(f){f.props.selected=i.value.indexOf(f.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=Jc(t.children).forEach(function(f){f.props.selected=i.multiple?i.defaultValue.indexOf(f.props.value)!=-1:i.defaultValue==f.props.value})),n.props=i,t.class!=t.className&&(a0.enumerable="className"in t,t.className!=null&&(i.class=t.className),Object.defineProperty(i,"className",a0))}n.$$typeof=hA,s0&&s0(n)};var o0=Ye.__r;Ye.__r=function(n){o0&&o0(n),n.__c};const bA={light:"outline",dark:"solid"};class yA extends eu{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=Qc.categories[e.id]||Qc.categories.custom,r=this.props.icons=="auto"?bA[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 _A extends eu{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 hc={rowsPerRender:10};class xA extends hr{getInitialState(e=this.props){return{skin:Sa.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 hd(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 f=this.grid.length-1,d=f%hc.rowsPerRender?{}:Ir();return d.index=f,d.posinset=this.grid.setsize+1,r.push(d),o};for(let r of e){const a=[];let o=i(a,r);for(let f of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(f);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 Es.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 d of o){const h=d.target.dataset.id;t.set(h,d.intersectionRatio)}const f=[...t];for(const[d,h]of f)if(h){i(d);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*(hc.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*hc.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 f=this.state.searchResults||this.grid;if(!f.length)return;let[d,h]=this.state.pos;const p=(()=>{if(d==0&&h==0&&!e.repeat&&(i||a))return null;if(d==-1)return!e.repeat&&(r||o)&&t.selectionStart==t.value.length?[0,0]:null;if(i||r){let m=f[d];const y=i?-1:1;if(h+=y,!m[h]){if(d+=y,m=f[d],!m)return d=i?0:f.length-1,h=i?0:f[d].length-1,[d,h];h=i?m.length-1:0}return[d,h]}if(a||o){d+=a?-1:1;const m=f[d];return m?(m[h]||(h=m.length-1),[d,h]):(d=a?0:f.length-1,h=a?0:f[d].length-1,[d,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 f=i[t].__index,d=o+f*this.props.emojiButtonSize,h=d+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(d<r.scrollTop)o=d;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=aA(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&Q2.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}),Sa.set("skin",e)}renderNav(){return me(yA,{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(Yh,{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,d=(e.skins[o-1]||e.skins[0]).native,h=iA(this.state.pos,t),p=t.concat(e.id).join("");return me(_A,{selected:h,skin:o,size:a,children:me("button",{"aria-label":d,"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(Yh,{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:Qc.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:Qc.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((f,d)=>{const h=f.index-f.index%hc.rowsPerRender,p=this.state.visibleRows[h],m="current"in f?f:void 0;if(!p&&!m)return null;const y=d*i,x=y+i,_=r.emojis.slice(y,x);return _.length<i&&_.push(...new Array(i-_.length)),me("div",{"data-index":f.index,ref:m,class:"flex row",style:{top:d*this.props.emojiButtonSize},children:p&&_.map((R,F)=>{if(!R)return me("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const T=Es.get(R);return this.renderEmojiButton(T,{pos:[f.index,F],posinset:f.posinset+F,grid:this.grid})})},f.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,f=this.state.skin==o;return me("div",{children:[me("input",{type:"radio",name:"skin-tone",value:o,"aria-label":Tt.skins[o],ref:f?this.refs.skinToneRadio:null,defaultChecked:f,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:d=>{(d.code=="Enter"||d.code=="Space"||d.code=="Tab")&&(d.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 Es.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],f=[];f.setsize=r.length;let d=null;for(let h of r)(!f.length||d.length==this.getPerLine())&&(d=[],d.__categoryId="search",d.__index=f.length,f.push(d)),d.push(h);this.ignoreMouse(),this.setState({searchResults:f,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 rA(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 Zp extends fA{async connectedCallback(){const e=i3(this.props,$r,this);e.element=this,e.ref=t=>{this.component=t},await hd(e),!this.disconnected&&J2(me(xA,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:j2(f3)})}}Si(Zp,"Props",$r);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",Zp);var f3={};f3=`:host {
224
224
  width: min-content;
225
225
  height: 435px;
226
226
  min-height: 230px;
package/index.mjs CHANGED
@@ -24307,7 +24307,7 @@ async function oP(n) {
24307
24307
  }
24308
24308
  )).data;
24309
24309
  }
24310
- const lP = "_form_1wbwo_106", fP = "_fieldset_1wbwo_110", dP = "_fieldSetName_1wbwo_121", cP = "_successBody_1wbwo_127", uP = "_generalError_1wbwo_134", _f = {
24310
+ const lP = "_form_ji3ty_106", fP = "_fieldset_ji3ty_110", dP = "_fieldSetName_ji3ty_121", cP = "_successBody_ji3ty_127", uP = "_generalError_ji3ty_134", _f = {
24311
24311
  form: lP,
24312
24312
  fieldset: fP,
24313
24313
  fieldSetName: dP,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "1.9.0-development.11",
3
+ "version": "1.9.0-development.12",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",