diff --git a/backend-server/public/chat.js b/backend-server/public/chat.js index b1eb7e81..ebfaf11f 100644 --- a/backend-server/public/chat.js +++ b/backend-server/public/chat.js @@ -1,25 +1,1043 @@ -function toggleChat() { - var e = document.getElementById("chat-box"); - e.classList.contains("open") ? (e.classList.remove("open"), e.classList.add("closed")) : (e.classList.remove("closed"), e.classList.add("open")) +function u_(e,n){for(var t=0;ti[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function t(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=t(r);fetch(r.href,a)}})();var Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Z0={exports:{}},Yl={},ey={exports:{}},pe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var To=Symbol.for("react.element"),d_=Symbol.for("react.portal"),c_=Symbol.for("react.fragment"),p_=Symbol.for("react.strict_mode"),h_=Symbol.for("react.profiler"),m_=Symbol.for("react.provider"),v_=Symbol.for("react.context"),g_=Symbol.for("react.forward_ref"),y_=Symbol.for("react.suspense"),w_=Symbol.for("react.memo"),k_=Symbol.for("react.lazy"),Y1=Symbol.iterator;function b_(e){return e===null||typeof e!="object"?null:(e=Y1&&e[Y1]||e["@@iterator"],typeof e=="function"?e:null)}var ny={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ty=Object.assign,iy={};function ia(e,n,t){this.props=e,this.context=n,this.refs=iy,this.updater=t||ny}ia.prototype.isReactComponent={};ia.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};ia.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ry(){}ry.prototype=ia.prototype;function sp(e,n,t){this.props=e,this.context=n,this.refs=iy,this.updater=t||ny}var lp=sp.prototype=new ry;lp.constructor=sp;ty(lp,ia.prototype);lp.isPureReactComponent=!0;var Q1=Array.isArray,ay=Object.prototype.hasOwnProperty,fp={current:null},oy={key:!0,ref:!0,__self:!0,__source:!0};function sy(e,n,t){var i,r={},a=null,o=null;if(n!=null)for(i in n.ref!==void 0&&(o=n.ref),n.key!==void 0&&(a=""+n.key),n)ay.call(n,i)&&!oy.hasOwnProperty(i)&&(r[i]=n[i]);var s=arguments.length-2;if(s===1)r.children=t;else if(1>>1,M=z[ne];if(0>>1;ne<_;){var U=2*(ne+1)-1,J=z[U],F=U+1,ae=z[F];if(0>r(J,C))Fr(ae,J)?(z[ne]=ae,z[F]=C,ne=F):(z[ne]=J,z[U]=C,ne=U);else if(Fr(ae,C))z[ne]=ae,z[F]=C,ne=F;else break e}}return Y}function r(z,Y){var C=z.sortIndex-Y.sortIndex;return C!==0?C:z.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],f=[],u=1,d=null,p=3,c=!1,h=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(z){for(var Y=t(f);Y!==null;){if(Y.callback===null)i(f);else if(Y.startTime<=z)i(f),Y.sortIndex=Y.expirationTime,n(l,Y);else break;Y=t(f)}}function S(z){if(m=!1,y(z),!h)if(t(l)!==null)h=!0,Q(E);else{var Y=t(f);Y!==null&&Z(S,Y.startTime-z)}}function E(z,Y){h=!1,m&&(m=!1,v(O),O=-1),c=!0;var C=p;try{for(y(Y),d=t(l);d!==null&&(!(d.expirationTime>Y)||z&&!A());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,p=d.priorityLevel;var M=ne(d.expirationTime<=Y);Y=e.unstable_now(),typeof M=="function"?d.callback=M:d===t(l)&&i(l),y(Y)}else i(l);d=t(l)}if(d!==null)var _=!0;else{var U=t(f);U!==null&&Z(S,U.startTime-Y),_=!1}return _}finally{d=null,p=C,c=!1}}var x=!1,P=null,O=-1,D=5,$=-1;function A(){return!(e.unstable_now()-$z||125ne?(z.sortIndex=C,n(f,z),t(l)===null&&z===t(f)&&(m?(v(O),O=-1):m=!0,Z(S,C-ne))):(z.sortIndex=M,n(l,z),h||c||(h=!0,Q(E))),z},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(z){var Y=p;return function(){var C=p;p=Y;try{return z.apply(this,arguments)}finally{p=C}}}})(cy);dy.exports=cy;var j_=dy.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var py=k,jn=j_;function B(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dd=Object.prototype.hasOwnProperty,A_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,J1={},Z1={};function R_(e){return dd.call(Z1,e)?!0:dd.call(J1,e)?!1:A_.test(e)?Z1[e]=!0:(J1[e]=!0,!1)}function z_(e,n,t,i){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return i?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function M_(e,n,t,i){if(n===null||typeof n>"u"||z_(e,n,t,i))return!0;if(i)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function gn(e,n,t,i,r,a,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=o}var an={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){an[e]=new gn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];an[n]=new gn(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){an[e]=new gn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){an[e]=new gn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){an[e]=new gn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){an[e]=new gn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){an[e]=new gn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){an[e]=new gn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){an[e]=new gn(e,5,!1,e.toLowerCase(),null,!1,!1)});var dp=/[\-:]([a-z])/g;function cp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(dp,cp);an[n]=new gn(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(dp,cp);an[n]=new gn(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(dp,cp);an[n]=new gn(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){an[e]=new gn(e,1,!1,e.toLowerCase(),null,!1,!1)});an.xlinkHref=new gn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){an[e]=new gn(e,1,!1,e.toLowerCase(),null,!0,!0)});function pp(e,n,t,i){var r=an.hasOwnProperty(n)?an[n]:null;(r!==null?r.type!==0:i||!(2s||r[o]!==a[s]){var l=` +`+r[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{ru=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?ja(e):""}function L_(e){switch(e.tag){case 5:return ja(e.type);case 16:return ja("Lazy");case 13:return ja("Suspense");case 19:return ja("SuspenseList");case 0:case 2:case 15:return e=au(e.type,!1),e;case 11:return e=au(e.type.render,!1),e;case 1:return e=au(e.type,!0),e;default:return""}}function md(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vr:return"Fragment";case mr:return"Portal";case cd:return"Profiler";case hp:return"StrictMode";case pd:return"Suspense";case hd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vy:return(e.displayName||"Context")+".Consumer";case my:return(e._context.displayName||"Context")+".Provider";case mp:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vp:return n=e.displayName||null,n!==null?n:md(e.type)||"Memo";case ti:n=e._payload,e=e._init;try{return md(e(n))}catch{}}return null}function N_(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return md(n);case 8:return n===hp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function _i(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yy(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function D_(e){var n=yy(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),i=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var r=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,a.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Vo(e){e._valueTracker||(e._valueTracker=D_(e))}function wy(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),i="";return e&&(i=yy(e)?e.checked?"true":"false":e.value),e=i,e!==t?(n.setValue(e),!0):!1}function Qs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vd(e,n){var t=n.checked;return Le({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function nh(e,n){var t=n.defaultValue==null?"":n.defaultValue,i=n.checked!=null?n.checked:n.defaultChecked;t=_i(n.value!=null?n.value:t),e._wrapperState={initialChecked:i,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ky(e,n){n=n.checked,n!=null&&pp(e,"checked",n,!1)}function gd(e,n){ky(e,n);var t=_i(n.value),i=n.type;if(t!=null)i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?yd(e,n.type,t):n.hasOwnProperty("defaultValue")&&yd(e,n.type,_i(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function th(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var i=n.type;if(!(i!=="submit"&&i!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function yd(e,n,t){(n!=="number"||Qs(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var Aa=Array.isArray;function Or(e,n,t,i){if(e=e.options,n){n={};for(var r=0;r"+n.valueOf().toString()+"",n=Go.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function eo(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Na={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},I_=["Webkit","ms","Moz","O"];Object.keys(Na).forEach(function(e){I_.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Na[n]=Na[e]})});function Sy(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Na.hasOwnProperty(e)&&Na[e]?(""+n).trim():n+"px"}function Cy(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var i=t.indexOf("--")===0,r=Sy(t,n[t],i);t==="float"&&(t="cssFloat"),i?e.setProperty(t,r):e[t]=r}}var B_=Le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bd(e,n){if(n){if(B_[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(B(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(B(61))}if(n.style!=null&&typeof n.style!="object")throw Error(B(62))}}function _d(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xd=null;function gp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sd=null,Fr=null,jr=null;function ah(e){if(e=jo(e)){if(typeof Sd!="function")throw Error(B(280));var n=e.stateNode;n&&(n=ef(n),Sd(e.stateNode,e.type,n))}}function Ey(e){Fr?jr?jr.push(e):jr=[e]:Fr=e}function Py(){if(Fr){var e=Fr,n=jr;if(jr=Fr=null,ah(e),n)for(e=0;e>>=0,e===0?32:31-(J_(e)/Z_|0)|0}var Ko=64,Yo=4194304;function Ra(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function el(e,n){var t=e.pendingLanes;if(t===0)return 0;var i=0,r=e.suspendedLanes,a=e.pingedLanes,o=t&268435455;if(o!==0){var s=o&~r;s!==0?i=Ra(s):(a&=o,a!==0&&(i=Ra(a)))}else o=t&~r,o!==0?i=Ra(o):a!==0&&(i=Ra(a));if(i===0)return 0;if(n!==0&&n!==i&&!(n&r)&&(r=i&-i,a=n&-n,r>=a||r===16&&(a&4194240)!==0))return n;if(i&4&&(i|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=i;0t;t++)n.push(e);return n}function Oo(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-it(n),e[n]=t}function i4(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=Ia),hh=String.fromCharCode(32),mh=!1;function Gy(e,n){switch(e){case"keyup":return F4.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ky(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gr=!1;function A4(e,n){switch(e){case"compositionend":return Ky(n);case"keypress":return n.which!==32?null:(mh=!0,hh);case"textInput":return e=n.data,e===hh&&mh?null:e;default:return null}}function R4(e,n){if(gr)return e==="compositionend"||!Cp&&Gy(e,n)?(e=qy(),Ts=_p=oi=null,gr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=i}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=wh(t)}}function Jy(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Jy(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Zy(){for(var e=window,n=Qs();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Qs(e.document)}return n}function Ep(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function W4(e){var n=Zy(),t=e.focusedElem,i=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Jy(t.ownerDocument.documentElement,t)){if(i!==null&&Ep(t)){if(n=i.start,e=i.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var r=t.textContent.length,a=Math.min(i.start,r);i=i.end===void 0?a:Math.min(i.end,r),!e.extend&&a>i&&(r=i,i=a,a=r),r=kh(t,a);var o=kh(t,i);r&&o&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(r.node,r.offset),e.removeAllRanges(),a>i?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,yr=null,Od=null,Ha=null,Fd=!1;function bh(e,n,t){var i=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Fd||yr==null||yr!==Qs(i)||(i=yr,"selectionStart"in i&&Ep(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ha&&oo(Ha,i)||(Ha=i,i=il(Od,"onSelect"),0br||(e.current=Ld[br],Ld[br]=null,br--)}function Pe(e,n){br++,Ld[br]=e.current,e.current=n}var xi={},dn=$i(xi),_n=$i(!1),Gi=xi;function Wr(e,n){var t=e.type.contextTypes;if(!t)return xi;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===n)return i.__reactInternalMemoizedMaskedChildContext;var r={},a;for(a in t)r[a]=n[a];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=r),r}function xn(e){return e=e.childContextTypes,e!=null}function al(){je(_n),je(dn)}function $h(e,n,t){if(dn.current!==xi)throw Error(B(168));Pe(dn,n),Pe(_n,t)}function lw(e,n,t){var i=e.stateNode;if(n=n.childContextTypes,typeof i.getChildContext!="function")return t;i=i.getChildContext();for(var r in i)if(!(r in n))throw Error(B(108,N_(e)||"Unknown",r));return Le({},t,i)}function ol(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xi,Gi=dn.current,Pe(dn,e),Pe(_n,_n.current),!0}function Th(e,n,t){var i=e.stateNode;if(!i)throw Error(B(169));t?(e=lw(e,n,Gi),i.__reactInternalMemoizedMergedChildContext=e,je(_n),je(dn),Pe(dn,e)):je(_n),Pe(_n,t)}var Pt=null,nf=!1,wu=!1;function fw(e){Pt===null?Pt=[e]:Pt.push(e)}function n6(e){nf=!0,fw(e)}function Ti(){if(!wu&&Pt!==null){wu=!0;var e=0,n=ke;try{var t=Pt;for(ke=1;e>=o,r-=o,Ot=1<<32-it(n)+r|t<O?(D=P,P=null):D=P.sibling;var $=p(v,P,y[O],S);if($===null){P===null&&(P=D);break}e&&P&&$.alternate===null&&n(v,P),g=a($,g,O),x===null?E=$:x.sibling=$,x=$,P=D}if(O===y.length)return t(v,P),Ae&&Mi(v,O),E;if(P===null){for(;OO?(D=P,P=null):D=P.sibling;var A=p(v,P,$.value,S);if(A===null){P===null&&(P=D);break}e&&P&&A.alternate===null&&n(v,P),g=a(A,g,O),x===null?E=A:x.sibling=A,x=A,P=D}if($.done)return t(v,P),Ae&&Mi(v,O),E;if(P===null){for(;!$.done;O++,$=y.next())$=d(v,$.value,S),$!==null&&(g=a($,g,O),x===null?E=$:x.sibling=$,x=$);return Ae&&Mi(v,O),E}for(P=i(v,P);!$.done;O++,$=y.next())$=c(P,v,O,$.value,S),$!==null&&(e&&$.alternate!==null&&P.delete($.key===null?O:$.key),g=a($,g,O),x===null?E=$:x.sibling=$,x=$);return e&&P.forEach(function(L){return n(v,L)}),Ae&&Mi(v,O),E}function w(v,g,y,S){if(typeof y=="object"&&y!==null&&y.type===vr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case qo:e:{for(var E=y.key,x=g;x!==null;){if(x.key===E){if(E=y.type,E===vr){if(x.tag===7){t(v,x.sibling),g=r(x,y.props.children),g.return=v,v=g;break e}}else if(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ti&&Mh(E)===x.type){t(v,x.sibling),g=r(x,y.props),g.ref=xa(v,x,y),g.return=v,v=g;break e}t(v,x);break}else n(v,x);x=x.sibling}y.type===vr?(g=qi(y.props.children,v.mode,S,y.key),g.return=v,v=g):(S=Ls(y.type,y.key,y.props,null,v.mode,S),S.ref=xa(v,g,y),S.return=v,v=S)}return o(v);case mr:e:{for(x=y.key;g!==null;){if(g.key===x)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){t(v,g.sibling),g=r(g,y.children||[]),g.return=v,v=g;break e}else{t(v,g);break}else n(v,g);g=g.sibling}g=Pu(y,v.mode,S),g.return=v,v=g}return o(v);case ti:return x=y._init,w(v,g,x(y._payload),S)}if(Aa(y))return h(v,g,y,S);if(ya(y))return m(v,g,y,S);ts(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(t(v,g.sibling),g=r(g,y),g.return=v,v=g):(t(v,g),g=Eu(y,v.mode,S),g.return=v,v=g),o(v)):t(v,g)}return w}var qr=gw(!0),yw=gw(!1),Ao={},gt=$i(Ao),uo=$i(Ao),co=$i(Ao);function Hi(e){if(e===Ao)throw Error(B(174));return e}function zp(e,n){switch(Pe(co,n),Pe(uo,e),Pe(gt,Ao),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:kd(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=kd(n,e)}je(gt),Pe(gt,n)}function Vr(){je(gt),je(uo),je(co)}function ww(e){Hi(co.current);var n=Hi(gt.current),t=kd(n,e.type);n!==t&&(Pe(uo,e),Pe(gt,t))}function Mp(e){uo.current===e&&(je(gt),je(uo))}var ze=$i(0);function cl(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ku=[];function Lp(){for(var e=0;et?t:4,e(!0);var i=bu.transition;bu.transition={};try{e(!1),n()}finally{ke=t,bu.transition=i}}function zw(){return qn().memoizedState}function a6(e,n,t){var i=vi(e);if(t={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null},Mw(e))Lw(n,t);else if(t=pw(e,n,t,i),t!==null){var r=mn();rt(t,e,i,r),Nw(t,n,i)}}function o6(e,n,t){var i=vi(e),r={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null};if(Mw(e))Lw(n,r);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=n.lastRenderedReducer,a!==null))try{var o=n.lastRenderedState,s=a(o,t);if(r.hasEagerState=!0,r.eagerState=s,st(s,o)){var l=n.interleaved;l===null?(r.next=r,Ap(n)):(r.next=l.next,l.next=r),n.interleaved=r;return}}catch{}finally{}t=pw(e,n,r,i),t!==null&&(r=mn(),rt(t,e,i,r),Nw(t,n,i))}}function Mw(e){var n=e.alternate;return e===Me||n!==null&&n===Me}function Lw(e,n){Wa=pl=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Nw(e,n,t){if(t&4194240){var i=n.lanes;i&=e.pendingLanes,t|=i,n.lanes=t,wp(e,t)}}var hl={readContext:Un,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useInsertionEffect:on,useLayoutEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useMutableSource:on,useSyncExternalStore:on,useId:on,unstable_isNewReconciler:!1},s6={readContext:Un,useCallback:function(e,n){return ut().memoizedState=[e,n===void 0?null:n],e},useContext:Un,useEffect:Nh,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,As(4194308,4,Ow.bind(null,n,e),t)},useLayoutEffect:function(e,n){return As(4194308,4,e,n)},useInsertionEffect:function(e,n){return As(4,2,e,n)},useMemo:function(e,n){var t=ut();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var i=ut();return n=t!==void 0?t(n):n,i.memoizedState=i.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},i.queue=e,e=e.dispatch=a6.bind(null,Me,e),[i.memoizedState,e]},useRef:function(e){var n=ut();return e={current:e},n.memoizedState=e},useState:Lh,useDebugValue:Hp,useDeferredValue:function(e){return ut().memoizedState=e},useTransition:function(){var e=Lh(!1),n=e[0];return e=r6.bind(null,e[1]),ut().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var i=Me,r=ut();if(Ae){if(t===void 0)throw Error(B(407));t=t()}else{if(t=n(),Ze===null)throw Error(B(349));Yi&30||_w(i,n,t)}r.memoizedState=t;var a={value:t,getSnapshot:n};return r.queue=a,Nh(Sw.bind(null,i,a,e),[e]),i.flags|=2048,mo(9,xw.bind(null,i,a,t,n),void 0,null),t},useId:function(){var e=ut(),n=Ze.identifierPrefix;if(Ae){var t=Ft,i=Ot;t=(i&~(1<<32-it(i)-1)).toString(32)+t,n=":"+n+"R"+t,t=po++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=o.createElement(t,{is:i.is}):(e=o.createElement(t),t==="select"&&(o=e,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):e=o.createElementNS(e,t),e[ct]=n,e[fo]=i,Gw(e,n,!1,!1),n.stateNode=e;e:{switch(o=_d(t,i),t){case"dialog":Oe("cancel",e),Oe("close",e),r=i;break;case"iframe":case"object":case"embed":Oe("load",e),r=i;break;case"video":case"audio":for(r=0;rKr&&(n.flags|=128,i=!0,Sa(a,!1),n.lanes=4194304)}else{if(!i)if(e=cl(o),e!==null){if(n.flags|=128,i=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),Sa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Ae)return sn(n),null}else 2*Ue()-a.renderingStartTime>Kr&&t!==1073741824&&(n.flags|=128,i=!0,Sa(a,!1),n.lanes=4194304);a.isBackwards?(o.sibling=n.child,n.child=o):(t=a.last,t!==null?t.sibling=o:n.child=o,a.last=o)}return a.tail!==null?(n=a.tail,a.rendering=n,a.tail=n.sibling,a.renderingStartTime=Ue(),n.sibling=null,t=ze.current,Pe(ze,i?t&1|2:t&1),n):(sn(n),null);case 22:case 23:return Kp(),i=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(n.flags|=8192),i&&n.mode&1?Pn&1073741824&&(sn(n),n.subtreeFlags&6&&(n.flags|=8192)):sn(n),null;case 24:return null;case 25:return null}throw Error(B(156,n.tag))}function m6(e,n){switch($p(n),n.tag){case 1:return xn(n.type)&&al(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Vr(),je(_n),je(dn),Lp(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Mp(n),null;case 13:if(je(ze),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(B(340));Ur()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return je(ze),null;case 4:return Vr(),null;case 10:return jp(n.type._context),null;case 22:case 23:return Kp(),null;case 24:return null;default:return null}}var rs=!1,fn=!1,v6=typeof WeakSet=="function"?WeakSet:Set,X=null;function Cr(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){De(e,n,i)}else t.current=null}function Yd(e,n,t){try{t()}catch(i){De(e,n,i)}}var Gh=!1;function g6(e,n){if(jd=nl,e=Zy(),Ep(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var i=t.getSelection&&t.getSelection();if(i&&i.rangeCount!==0){t=i.anchorNode;var r=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{t.nodeType,a.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,f=0,u=0,d=e,p=null;n:for(;;){for(var c;d!==t||r!==0&&d.nodeType!==3||(s=o+r),d!==a||i!==0&&d.nodeType!==3||(l=o+i),d.nodeType===3&&(o+=d.nodeValue.length),(c=d.firstChild)!==null;)p=d,d=c;for(;;){if(d===e)break n;if(p===t&&++f===r&&(s=o),p===a&&++u===i&&(l=o),(c=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=c}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(Ad={focusedElem:e,selectionRange:t},nl=!1,X=n;X!==null;)if(n=X,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,X=e;else for(;X!==null;){n=X;try{var h=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,w=h.memoizedState,v=n.stateNode,g=v.getSnapshotBeforeUpdate(n.elementType===n.type?m:et(n.type,m),w);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=n.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(S){De(n,n.return,S)}if(e=n.sibling,e!==null){e.return=n.return,X=e;break}X=n.return}return h=Gh,Gh=!1,h}function Ua(e,n,t){var i=n.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var a=r.destroy;r.destroy=void 0,a!==void 0&&Yd(n,t,a)}r=r.next}while(r!==i)}}function af(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var i=t.create;t.destroy=i()}t=t.next}while(t!==n)}}function Qd(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Qw(e){var n=e.alternate;n!==null&&(e.alternate=null,Qw(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[ct],delete n[fo],delete n[Md],delete n[Z4],delete n[e6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xw(e){return e.tag===5||e.tag===3||e.tag===4}function Kh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xd(e,n,t){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=rl));else if(i!==4&&(e=e.child,e!==null))for(Xd(e,n,t),e=e.sibling;e!==null;)Xd(e,n,t),e=e.sibling}function Jd(e,n,t){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Jd(e,n,t),e=e.sibling;e!==null;)Jd(e,n,t),e=e.sibling}var nn=null,nt=!1;function Qt(e,n,t){for(t=t.child;t!==null;)Jw(e,n,t),t=t.sibling}function Jw(e,n,t){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(Ql,t)}catch{}switch(t.tag){case 5:fn||Cr(t,n);case 6:var i=nn,r=nt;nn=null,Qt(e,n,t),nn=i,nt=r,nn!==null&&(nt?(e=nn,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):nn.removeChild(t.stateNode));break;case 18:nn!==null&&(nt?(e=nn,t=t.stateNode,e.nodeType===8?yu(e.parentNode,t):e.nodeType===1&&yu(e,t),ro(e)):yu(nn,t.stateNode));break;case 4:i=nn,r=nt,nn=t.stateNode.containerInfo,nt=!0,Qt(e,n,t),nn=i,nt=r;break;case 0:case 11:case 14:case 15:if(!fn&&(i=t.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var a=r,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Yd(t,n,o),r=r.next}while(r!==i)}Qt(e,n,t);break;case 1:if(!fn&&(Cr(t,n),i=t.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(s){De(t,n,s)}Qt(e,n,t);break;case 21:Qt(e,n,t);break;case 22:t.mode&1?(fn=(i=fn)||t.memoizedState!==null,Qt(e,n,t),fn=i):Qt(e,n,t);break;default:Qt(e,n,t)}}function Yh(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new v6),n.forEach(function(i){var r=E6.bind(null,e,i);t.has(i)||(t.add(i),i.then(r,r))})}}function Qn(e,n){var t=n.deletions;if(t!==null)for(var i=0;ir&&(r=o),i&=~a}if(i=r,i=Ue()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*w6(i/1960))-i,10e?16:e,si===null)var i=!1;else{if(e=si,si=null,gl=0,ye&6)throw Error(B(331));var r=ye;for(ye|=4,X=e.current;X!==null;){var a=X,o=a.child;if(X.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lUe()-Vp?Ui(e,0):qp|=t),Sn(e,n)}function ok(e,n){n===0&&(e.mode&1?(n=Yo,Yo<<=1,!(Yo&130023424)&&(Yo=4194304)):n=1);var t=mn();e=Ht(e,n),e!==null&&(Oo(e,n,t),Sn(e,t))}function C6(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),ok(e,t)}function E6(e,n){var t=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(t=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(B(314))}i!==null&&i.delete(n),ok(e,t)}var sk;sk=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||_n.current)bn=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return bn=!1,p6(e,n,t);bn=!!(e.flags&131072)}else bn=!1,Ae&&n.flags&1048576&&uw(n,ll,n.index);switch(n.lanes=0,n.tag){case 2:var i=n.type;Rs(e,n),e=n.pendingProps;var r=Wr(n,dn.current);Rr(n,t),r=Dp(null,n,i,e,r,t);var a=Ip();return n.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,xn(i)?(a=!0,ol(n)):a=!1,n.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Rp(n),r.updater=tf,n.stateNode=r,r._reactInternals=n,Hd(n,i,e,t),n=qd(null,n,i,!0,a,t)):(n.tag=0,Ae&&a&&Pp(n),cn(null,n,r,t),n=n.child),n;case 16:i=n.elementType;e:{switch(Rs(e,n),e=n.pendingProps,r=i._init,i=r(i._payload),n.type=i,r=n.tag=$6(i),e=et(i,e),r){case 0:n=Ud(null,n,i,e,t);break e;case 1:n=Uh(null,n,i,e,t);break e;case 11:n=Hh(null,n,i,e,t);break e;case 14:n=Wh(null,n,i,et(i.type,e),t);break e}throw Error(B(306,i,""))}return n;case 0:return i=n.type,r=n.pendingProps,r=n.elementType===i?r:et(i,r),Ud(e,n,i,r,t);case 1:return i=n.type,r=n.pendingProps,r=n.elementType===i?r:et(i,r),Uh(e,n,i,r,t);case 3:e:{if(Uw(n),e===null)throw Error(B(387));i=n.pendingProps,a=n.memoizedState,r=a.element,hw(e,n),dl(n,i,null,t);var o=n.memoizedState;if(i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=a,n.memoizedState=a,n.flags&256){r=Gr(Error(B(423)),n),n=qh(e,n,i,t,r);break e}else if(i!==r){r=Gr(Error(B(424)),n),n=qh(e,n,i,t,r);break e}else for(Tn=pi(n.stateNode.containerInfo.firstChild),On=n,Ae=!0,tt=null,t=yw(n,null,i,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Ur(),i===r){n=Wt(e,n,t);break e}cn(e,n,i,t)}n=n.child}return n;case 5:return ww(n),e===null&&Dd(n),i=n.type,r=n.pendingProps,a=e!==null?e.memoizedProps:null,o=r.children,Rd(i,r)?o=null:a!==null&&Rd(i,a)&&(n.flags|=32),Ww(e,n),cn(e,n,o,t),n.child;case 6:return e===null&&Dd(n),null;case 13:return qw(e,n,t);case 4:return zp(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=qr(n,null,i,t):cn(e,n,i,t),n.child;case 11:return i=n.type,r=n.pendingProps,r=n.elementType===i?r:et(i,r),Hh(e,n,i,r,t);case 7:return cn(e,n,n.pendingProps,t),n.child;case 8:return cn(e,n,n.pendingProps.children,t),n.child;case 12:return cn(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(i=n.type._context,r=n.pendingProps,a=n.memoizedProps,o=r.value,Pe(fl,i._currentValue),i._currentValue=o,a!==null)if(st(a.value,o)){if(a.children===r.children&&!_n.current){n=Wt(e,n,t);break e}}else for(a=n.child,a!==null&&(a.return=n);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===i){if(a.tag===1){l=At(-1,t&-t),l.tag=2;var f=a.updateQueue;if(f!==null){f=f.shared;var u=f.pending;u===null?l.next=l:(l.next=u.next,u.next=l),f.pending=l}}a.lanes|=t,l=a.alternate,l!==null&&(l.lanes|=t),Id(a.return,t,n),s.lanes|=t;break}l=l.next}}else if(a.tag===10)o=a.type===n.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(B(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Id(o,t,n),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===n){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}cn(e,n,r.children,t),n=n.child}return n;case 9:return r=n.type,i=n.pendingProps.children,Rr(n,t),r=Un(r),i=i(r),n.flags|=1,cn(e,n,i,t),n.child;case 14:return i=n.type,r=et(i,n.pendingProps),r=et(i.type,r),Wh(e,n,i,r,t);case 15:return Bw(e,n,n.type,n.pendingProps,t);case 17:return i=n.type,r=n.pendingProps,r=n.elementType===i?r:et(i,r),Rs(e,n),n.tag=1,xn(i)?(e=!0,ol(n)):e=!1,Rr(n,t),vw(n,i,r),Hd(n,i,r,t),qd(null,n,i,!0,e,t);case 19:return Vw(e,n,t);case 22:return Hw(e,n,t)}throw Error(B(156,n.tag))};function lk(e,n){return Ry(e,n)}function P6(e,n,t,i){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dn(e,n,t,i){return new P6(e,n,t,i)}function Qp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $6(e){if(typeof e=="function")return Qp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mp)return 11;if(e===vp)return 14}return 2}function gi(e,n){var t=e.alternate;return t===null?(t=Dn(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Ls(e,n,t,i,r,a){var o=2;if(i=e,typeof e=="function")Qp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case vr:return qi(t.children,r,a,n);case hp:o=8,r|=8;break;case cd:return e=Dn(12,t,n,r|2),e.elementType=cd,e.lanes=a,e;case pd:return e=Dn(13,t,n,r),e.elementType=pd,e.lanes=a,e;case hd:return e=Dn(19,t,n,r),e.elementType=hd,e.lanes=a,e;case gy:return sf(t,r,a,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case my:o=10;break e;case vy:o=9;break e;case mp:o=11;break e;case vp:o=14;break e;case ti:o=16,i=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return n=Dn(o,t,n,r),n.elementType=e,n.type=i,n.lanes=a,n}function qi(e,n,t,i){return e=Dn(7,e,i,n),e.lanes=t,e}function sf(e,n,t,i){return e=Dn(22,e,i,n),e.elementType=gy,e.lanes=t,e.stateNode={isHidden:!1},e}function Eu(e,n,t){return e=Dn(6,e,null,n),e.lanes=t,e}function Pu(e,n,t){return n=Dn(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function T6(e,n,t,i,r){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=su(0),this.expirationTimes=su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Xp(e,n,t,i,r,a,o,s,l){return e=new T6(e,n,t,s,l),n===1?(n=1,a===!0&&(n|=8)):n=0,a=Dn(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Rp(a),e}function O6(e,n,t){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ck)}catch(e){console.error(e)}}ck(),uy.exports=An;var Ro=uy.exports;const z6=wt(Ro);var im=Ro;ud.createRoot=im.createRoot,ud.hydrateRoot=im.hydrateRoot;var pk={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},rm=ee.createContext&&ee.createContext(pk),yi=globalThis&&globalThis.__assign||function(){return yi=Object.assign||function(e){for(var n,t=1,i=arguments.length;te&&(n=0,i=t,t=new Map)}return{get:function(o){var s=t.get(o);if(s!==void 0)return s;if((s=i.get(o))!==void 0)return r(o,s),s},set:function(o,s){t.has(o)?t.set(o,s):r(o,s)}}}var gk="!";function Y6(e){var n=e.separator||":",t=n.length===1,i=n[0],r=n.length;return function(o){for(var s=[],l=0,f=0,u,d=0;df?u-f:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:m,maybePostfixModifierPosition:w}}}function Q6(e){if(e.length<=1)return e;var n=[],t=[];return e.forEach(function(i){var r=i[0]==="[";r?(n.push.apply(n,t.sort().concat([i])),t=[]):t.push(i)}),n.push.apply(n,t.sort()),n}function X6(e){return{cache:K6(e.cacheSize),splitModifiers:Y6(e),...W6(e)}}var J6=/\s+/;function Z6(e,n){var t=n.splitModifiers,i=n.getClassGroupId,r=n.getConflictingClassGroupIds,a=new Set;return e.trim().split(J6).map(function(o){var s=t(o),l=s.modifiers,f=s.hasImportantModifier,u=s.baseClassName,d=s.maybePostfixModifierPosition,p=i(d?u.substring(0,d):u),c=!!d;if(!p){if(!d)return{isTailwindClass:!1,originalClassName:o};if(p=i(u),!p)return{isTailwindClass:!1,originalClassName:o};c=!1}var h=Q6(l).join(":"),m=f?h+gk:h;return{isTailwindClass:!0,modifierId:m,classGroupId:p,originalClassName:o,hasPostfixModifier:c}}).reverse().filter(function(o){if(!o.isTailwindClass)return!0;var s=o.modifierId,l=o.classGroupId,f=o.hasPostfixModifier,u=s+l;return a.has(u)?!1:(a.add(u),r(l,f).forEach(function(d){return a.add(s+d)}),!0)}).reverse().map(function(o){return o.originalClassName}).join(" ")}function ex(){for(var e=arguments.length,n=new Array(e),t=0;tb.jsxs("button",{className:hn("openchat-z-[10000000] openchat-rounded-full openchat-bg-primary openchat-p-3 openchat-text-2xl openchat-text-white openchat-transition-transform hover:openchat-scale-110",n),ref:i,...t,children:[!e&&b.jsx("div",{className:"icon-closed scale-in-center",children:b.jsx(I6,{})}),e&&b.jsx("div",{className:"icon-opened rotate-in",children:b.jsx(D6,{})})]}));kk.displayName="Trigger";const bk=e=>{const[n,t]=k.useState({x:0,y:0});return k.useEffect(()=>{const i=()=>{if(e.current){const{scrollWidth:a,scrollHeight:o,clientWidth:s,clientHeight:l}=e.current;t({x:e.current.scrollLeft/(a-s),y:e.current.scrollTop/(o-l)})}},r=e.current;return r&&r.addEventListener("scroll",i),()=>{r&&r.removeEventListener("scroll",i)}},[e]),n};function rc({children:e}){return b.jsx("div",{className:"bot-logo",children:b.jsx("div",{children:b.jsx(B6,{})})})}function _k(e){return yn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z"}}]})(e)}function vx(e){return yn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"}}]})(e)}function t1(e){return yn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m16.192 6.344-4.243 4.242-4.242-4.242-1.414 1.414L10.535 12l-4.242 4.242 1.414 1.414 4.242-4.242 4.243 4.242 1.414-1.414L13.364 12l4.242-4.242z"}}]})(e)}/** + * @remix-run/router v1.7.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var n=1;nu(c,typeof c=="string"?null:c.state,h===0?"default":void 0));let a=l(t??r.length-1),o=li.Pop,s=null;function l(c){return Math.min(Math.max(c,0),r.length-1)}function f(){return r[a]}function u(c,h,m){h===void 0&&(h=null);let w=wx(r?f().pathname:"/",c,h,m);return cf(w.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(c)),w}function d(c){return typeof c=="string"?c:ac(c)}return{get index(){return a},get action(){return o},get location(){return f()},createHref:d,createURL(c){return new URL(d(c),"http://localhost:8000/api")},encodeLocation(c){let h=typeof c=="string"?ar(c):c;return{pathname:h.pathname||"",search:h.search||"",hash:h.hash||""}},push(c,h){o=li.Push;let m=u(c,h);a+=1,r.splice(a,r.length,m),i&&s&&s({action:o,location:m,delta:1})},replace(c,h){o=li.Replace;let m=u(c,h);r[a]=m,i&&s&&s({action:o,location:m,delta:0})},go(c){o=li.Pop;let h=l(a+c),m=r[h];a=h,s&&s({action:o,location:m,delta:c})},listen(c){return s=c,()=>{s=null}}}}function Ke(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function cf(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function yx(){return Math.random().toString(36).substr(2,8)}function wx(e,n,t,i){return t===void 0&&(t=null),kl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof n=="string"?ar(n):n,{state:t,key:n&&n.key||i||yx()})}function ac(e){let{pathname:n="/",search:t="",hash:i=""}=e;return t&&t!=="?"&&(n+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function ar(e){let n={};if(e){let t=e.indexOf("#");t>=0&&(n.hash=e.substr(t),e=e.substr(0,t));let i=e.indexOf("?");i>=0&&(n.search=e.substr(i),e=e.substr(0,i)),e&&(n.pathname=e)}return n}var lm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lm||(lm={}));function kx(e,n,t){t===void 0&&(t="/");let i=typeof n=="string"?ar(n):n,r=i1(i.pathname||"/",t);if(r==null)return null;let a=xk(e);bx(a);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Ke(l.relativePath.startsWith(i),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(i.length));let f=wi([i,l.relativePath]),u=t.concat(l);a.children&&a.children.length>0&&(Ke(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),xk(a.children,n,u,f)),!(a.path==null&&!a.index)&&n.push({path:f,score:$x(f,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))r(a,o);else for(let l of Sk(a.path))r(a,o,l)}),n}function Sk(e){let n=e.split("/");if(n.length===0)return[];let[t,...i]=n,r=t.endsWith("?"),a=t.replace(/\?$/,"");if(i.length===0)return r?[a,""]:[a];let o=Sk(i.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),r&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function bx(e){e.sort((n,t)=>n.score!==t.score?t.score-n.score:Tx(n.routesMeta.map(i=>i.childrenIndex),t.routesMeta.map(i=>i.childrenIndex)))}const _x=/^:\w+$/,xx=3,Sx=2,Cx=1,Ex=10,Px=-2,fm=e=>e==="*";function $x(e,n){let t=e.split("/"),i=t.length;return t.some(fm)&&(i+=Px),n&&(i+=Sx),t.filter(r=>!fm(r)).reduce((r,a)=>r+(_x.test(a)?xx:a===""?Cx:Ex),i)}function Tx(e,n){return e.length===n.length&&e.slice(0,-1).every((i,r)=>i===n[r])?e[e.length-1]-n[n.length-1]:0}function Ox(e,n){let{routesMeta:t}=e,i={},r="/",a=[];for(let o=0;o{if(u==="*"){let p=s[d]||"";o=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}return f[u]=Ax(s[d]||"",u),f},{}),pathname:a,pathnameBase:o,pattern:e}}function Fx(e,n,t){n===void 0&&(n=!1),t===void 0&&(t=!0),cf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(i.push(s),"/([^\\/]+)"));return e.endsWith("*")?(i.push("*"),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,n?void 0:"i"),i]}function jx(e){try{return decodeURI(e)}catch(n){return cf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+n+").")),e}}function Ax(e,n){try{return decodeURIComponent(e)}catch(t){return cf(!1,'The value for the URL param "'+n+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),e}}function i1(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let t=n.endsWith("/")?n.length-1:n.length,i=e.charAt(t);return i&&i!=="/"?null:e.slice(t)||"/"}function Rx(e,n){n===void 0&&(n="/");let{pathname:t,search:i="",hash:r=""}=typeof e=="string"?ar(e):e;return{pathname:t?t.startsWith("/")?t:zx(t,n):n,search:Lx(i),hash:Nx(r)}}function zx(e,n){let t=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?t.length>1&&t.pop():r!=="."&&t.push(r)}),t.length>1?t.join("/"):"/"}function $u(e,n,t,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ek(e){return e.filter((n,t)=>t===0||n.route.path&&n.route.path.length>0)}function Pk(e,n,t,i){i===void 0&&(i=!1);let r;typeof e=="string"?r=ar(e):(r=kl({},e),Ke(!r.pathname||!r.pathname.includes("?"),$u("?","pathname","search",r)),Ke(!r.pathname||!r.pathname.includes("#"),$u("#","pathname","hash",r)),Ke(!r.search||!r.search.includes("#"),$u("#","search","hash",r)));let a=e===""||r.pathname==="",o=a?"/":r.pathname,s;if(i||o==null)s=t;else{let d=n.length-1;if(o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),d-=1;r.pathname=p.join("/")}s=d>=0?n[d]:"/"}let l=Rx(r,s),f=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(f||u)&&(l.pathname+="/"),l}const wi=e=>e.join("/").replace(/\/\/+/g,"/"),Mx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Lx=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Nx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Dx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $k=["post","put","patch","delete"];new Set($k);const Ix=["get",...$k];new Set(Ix);/** + * React Router v6.14.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var n=1;nCk(e,n),[n,e])}function Ok(e){k.useContext(oa).static||k.useLayoutEffect(e)}function hf(){let{isDataRoute:e}=k.useContext(Oi);return e?i9():Ux()}function Ux(){sa()||Ke(!1);let e=k.useContext(r1),{basename:n,navigator:t}=k.useContext(oa),{matches:i}=k.useContext(Oi),{pathname:r}=la(),a=JSON.stringify(Ek(i).map(l=>l.pathnameBase)),o=k.useRef(!1);return Ok(()=>{o.current=!0}),k.useCallback(function(l,f){if(f===void 0&&(f={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let u=Pk(l,JSON.parse(a),r,f.relative==="path");e==null&&n!=="/"&&(u.pathname=u.pathname==="/"?n:wi([n,u.pathname])),(f.replace?t.replace:t.push)(u,f.state,f)},[n,t,a,r,e])}function qx(){let{matches:e}=k.useContext(Oi),n=e[e.length-1];return n?n.params:{}}function Fk(e,n){let{relative:t}=n===void 0?{}:n,{matches:i}=k.useContext(Oi),{pathname:r}=la(),a=JSON.stringify(Ek(i).map(o=>o.pathnameBase));return k.useMemo(()=>Pk(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Vx(e,n){return Gx(e,n)}function Gx(e,n,t){sa()||Ke(!1);let{navigator:i}=k.useContext(oa),{matches:r}=k.useContext(Oi),a=r[r.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let l=la(),f;if(n){var u;let m=typeof n=="string"?ar(n):n;s==="/"||(u=m.pathname)!=null&&u.startsWith(s)||Ke(!1),f=m}else f=l;let d=f.pathname||"/",p=s==="/"?d:d.slice(s.length)||"/",c=kx(e,{pathname:p}),h=Jx(c&&c.map(m=>Object.assign({},m,{params:Object.assign({},o,m.params),pathname:wi([s,i.encodeLocation?i.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:wi([s,i.encodeLocation?i.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),r,t);return n&&h?k.createElement(pf.Provider,{value:{location:bl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:li.Pop}},h):h}function Kx(){let e=t9(),n=Dx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},n),t?k.createElement("pre",{style:r},t):null,a)}const Yx=k.createElement(Kx,null);class Qx extends k.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,t){return t.location!==n.location||t.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error||t.error,location:t.location,revalidation:n.revalidation||t.revalidation}}componentDidCatch(n,t){console.error("React Router caught the following error during render",n,t)}render(){return this.state.error?k.createElement(Oi.Provider,{value:this.props.routeContext},k.createElement(Tk.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xx(e){let{routeContext:n,match:t,children:i}=e,r=k.useContext(r1);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(Oi.Provider,{value:n},i)}function Jx(e,n,t){var i;if(n===void 0&&(n=[]),t===void 0&&(t=null),e==null){var r;if((r=t)!=null&&r.errors)e=t.matches;else return null}let a=e,o=(i=t)==null?void 0:i.errors;if(o!=null){let s=a.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||Ke(!1),a=a.slice(0,Math.min(a.length,s+1))}return a.reduceRight((s,l,f)=>{let u=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Yx);let p=n.concat(a.slice(0,f+1)),c=()=>{let h;return u?h=d:l.route.Component?h=k.createElement(l.route.Component,null):l.route.element?h=l.route.element:h=s,k.createElement(Xx,{match:l,routeContext:{outlet:s,matches:p,isDataRoute:t!=null},children:h})};return t&&(l.route.ErrorBoundary||l.route.errorElement||f===0)?k.createElement(Qx,{location:t.location,revalidation:t.revalidation,component:d,error:u,children:c(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):c()},null)}var oc;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(oc||(oc={}));var go;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(go||(go={}));function Zx(e){let n=k.useContext(r1);return n||Ke(!1),n}function e9(e){let n=k.useContext(Bx);return n||Ke(!1),n}function n9(e){let n=k.useContext(Oi);return n||Ke(!1),n}function jk(e){let n=n9(),t=n.matches[n.matches.length-1];return t.route.id||Ke(!1),t.route.id}function t9(){var e;let n=k.useContext(Tk),t=e9(go.UseRouteError),i=jk(go.UseRouteError);return n||((e=t.errors)==null?void 0:e[i])}function i9(){let{router:e}=Zx(oc.UseNavigateStable),n=jk(go.UseNavigateStable),t=k.useRef(!1);return Ok(()=>{t.current=!0}),k.useCallback(function(r,a){a===void 0&&(a={}),t.current&&(typeof r=="number"?e.navigate(r):e.navigate(r,bl({fromRouteId:n},a)))},[e,n])}const r9="startTransition",um=ly[r9];function a9(e){let{basename:n,children:t,initialEntries:i,initialIndex:r,future:a}=e,o=k.useRef();o.current==null&&(o.current=gx({initialEntries:i,initialIndex:r,v5Compat:!0}));let s=o.current,[l,f]=k.useState({action:s.action,location:s.location}),{v7_startTransition:u}=a||{},d=k.useCallback(p=>{u&&um?um(()=>f(p)):f(p)},[f,u]);return k.useLayoutEffect(()=>s.listen(d),[s,d]),k.createElement(o9,{basename:n,children:t,location:l.location,navigationType:l.action,navigator:s})}function pr(e){Ke(!1)}function o9(e){let{basename:n="/",children:t=null,location:i,navigationType:r=li.Pop,navigator:a,static:o=!1}=e;sa()&&Ke(!1);let s=n.replace(/^\/*/,"/"),l=k.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof i=="string"&&(i=ar(i));let{pathname:f="/",search:u="",hash:d="",state:p=null,key:c="default"}=i,h=k.useMemo(()=>{let m=i1(f,s);return m==null?null:{location:{pathname:m,search:u,hash:d,state:p,key:c},navigationType:r}},[s,f,u,d,p,c,r]);return h==null?null:k.createElement(oa.Provider,{value:l},k.createElement(pf.Provider,{children:t,value:h}))}function s9(e){let{children:n,location:t}=e;return Vx(sc(n),t)}var dm;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(dm||(dm={}));new Promise(()=>{});function sc(e,n){n===void 0&&(n=[]);let t=[];return k.Children.forEach(e,(i,r)=>{if(!k.isValidElement(i))return;let a=[...n,r];if(i.type===k.Fragment){t.push.apply(t,sc(i.props.children,a));return}i.type!==pr&&Ke(!1),!i.props.index||!i.props.children||Ke(!1);let o={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=sc(i.props.children,a)),t.push(o)}),t}/** + * React Router DOM v6.14.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&(t[r]=e[r]);return t}function f9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u9(e,n){return e.button===0&&(!n||n==="_self")&&!f9(e)}const d9=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],c9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",p9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_l=k.forwardRef(function(n,t){let{onClick:i,relative:r,reloadDocument:a,replace:o,state:s,target:l,to:f,preventScrollReset:u}=n,d=l9(n,d9),{basename:p}=k.useContext(oa),c,h=!1;if(typeof f=="string"&&p9.test(f)&&(c=f,c9))try{let g=new URL(window.location.href),y=f.startsWith("//")?new URL(g.protocol+f):new URL(f),S=i1(y.pathname,p);y.origin===g.origin&&S!=null?f=S+y.search+y.hash:h=!0}catch{}let m=Hx(f,{relative:r}),w=h9(f,{replace:o,state:s,target:l,preventScrollReset:u,relative:r});function v(g){i&&i(g),g.defaultPrevented||w(g)}return k.createElement("a",lc({},d,{href:c||m,onClick:h||a?i:v,ref:t,target:l}))});var cm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(cm||(cm={}));var pm;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(pm||(pm={}));function h9(e,n){let{target:t,replace:i,state:r,preventScrollReset:a,relative:o}=n===void 0?{}:n,s=hf(),l=la(),f=Fk(e,{relative:o});return k.useCallback(u=>{if(u9(u,t)){u.preventDefault();let d=i!==void 0?i:ac(l)===ac(f);s(e,{replace:d,state:r,preventScrollReset:a,relative:o})}},[l,s,f,i,r,t,e,a,o])}function m9({label:e,id:n}){return b.jsx("li",{className:"openchat-w-full openchat-mb-1.5",children:b.jsxs(_l,{to:`/article/${n}`,className:"openchat-flex openchat-w-full openchat-group hover:openchat-bg-primary-light openchat-text-start openchat-justify-between openchat-box-border openchat-p-2 openchat-px-3 openchat-items-center openchat-transition-colors openchat-duration-250 openchat-rounded-lg openchat-opacity-100 openchat-cursor-pointer",children:[b.jsx("div",{className:"openchat-mr-auto openchat-flex-1 openchat-group-hover:openchat-text-primary openchat-transition-colors openchat-text-[14px] openchat-leading-6 openchat-min-w-0",children:e}),b.jsx("span",{className:"openchat-ml-2 openchat-self-center openchat-text-primary",children:b.jsx(_k,{})})]})})}function Ak(e){const[n,t]=k.useState(!!e),i=k.useCallback(()=>t(r=>!r),[]);return[n,i,t]}const Rk=k.createContext(void 0);function v9({children:e,...n}){return b.jsx(Rk.Provider,{value:n,children:e})}function or(){const e=k.useContext(Rk);if(!e)throw new Error("useConfigData must be used within a ConfigDataProvider");return e}const zk=k.createContext(void 0);function mf(){const e=k.useContext(zk);if(!e)throw new Error("useAppContext must be used within an AppProvider");return e}function g9({children:e}){const n=or(),t=Ak(n!=null&&n.isFullScreen?n==null?void 0:n.isFullScreen:!1);return b.jsx(zk.Provider,{value:t,children:e})}function Mk(e,n){return function(){return e.apply(n,arguments)}}const{toString:y9}=Object.prototype,{getPrototypeOf:a1}=Object,vf=(e=>n=>{const t=y9.call(n);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),kt=e=>(e=e.toLowerCase(),n=>vf(n)===e),gf=e=>n=>typeof n===e,{isArray:fa}=Array,yo=gf("undefined");function w9(e){return e!==null&&!yo(e)&&e.constructor!==null&&!yo(e.constructor)&&Bn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lk=kt("ArrayBuffer");function k9(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Lk(e.buffer),n}const b9=gf("string"),Bn=gf("function"),Nk=gf("number"),yf=e=>e!==null&&typeof e=="object",_9=e=>e===!0||e===!1,Ns=e=>{if(vf(e)!=="object")return!1;const n=a1(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x9=kt("Date"),S9=kt("File"),C9=kt("Blob"),E9=kt("FileList"),P9=e=>yf(e)&&Bn(e.pipe),$9=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||Bn(e.append)&&((n=vf(e))==="formdata"||n==="object"&&Bn(e.toString)&&e.toString()==="[object FormData]"))},T9=kt("URLSearchParams"),O9=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zo(e,n,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let i,r;if(typeof e!="object"&&(e=[e]),fa(e))for(i=0,r=e.length;i0;)if(r=t[i],n===r.toLowerCase())return r;return null}const Ik=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Bk=e=>!yo(e)&&e!==Ik;function fc(){const{caseless:e}=Bk(this)&&this||{},n={},t=(i,r)=>{const a=e&&Dk(n,r)||r;Ns(n[a])&&Ns(i)?n[a]=fc(n[a],i):Ns(i)?n[a]=fc({},i):fa(i)?n[a]=i.slice():n[a]=i};for(let i=0,r=arguments.length;i(zo(n,(r,a)=>{t&&Bn(r)?e[a]=Mk(r,t):e[a]=r},{allOwnKeys:i}),e),j9=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),A9=(e,n,t,i)=>{e.prototype=Object.create(n.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),t&&Object.assign(e.prototype,t)},R9=(e,n,t,i)=>{let r,a,o;const s={};if(n=n||{},e==null)return n;do{for(r=Object.getOwnPropertyNames(e),a=r.length;a-- >0;)o=r[a],(!i||i(o,e,n))&&!s[o]&&(n[o]=e[o],s[o]=!0);e=t!==!1&&a1(e)}while(e&&(!t||t(e,n))&&e!==Object.prototype);return n},z9=(e,n,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=n.length;const i=e.indexOf(n,t);return i!==-1&&i===t},M9=e=>{if(!e)return null;if(fa(e))return e;let n=e.length;if(!Nk(n))return null;const t=new Array(n);for(;n-- >0;)t[n]=e[n];return t},L9=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&a1(Uint8Array)),N9=(e,n)=>{const i=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=i.next())&&!r.done;){const a=r.value;n.call(e,a[0],a[1])}},D9=(e,n)=>{let t;const i=[];for(;(t=e.exec(n))!==null;)i.push(t);return i},I9=kt("HTMLFormElement"),B9=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,r){return i.toUpperCase()+r}),hm=(({hasOwnProperty:e})=>(n,t)=>e.call(n,t))(Object.prototype),H9=kt("RegExp"),Hk=(e,n)=>{const t=Object.getOwnPropertyDescriptors(e),i={};zo(t,(r,a)=>{n(r,a,e)!==!1&&(i[a]=r)}),Object.defineProperties(e,i)},W9=e=>{Hk(e,(n,t)=>{if(Bn(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const i=e[t];if(Bn(i)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},U9=(e,n)=>{const t={},i=r=>{r.forEach(a=>{t[a]=!0})};return fa(e)?i(e):i(String(e).split(n)),t},q9=()=>{},V9=(e,n)=>(e=+e,Number.isFinite(e)?e:n),Tu="abcdefghijklmnopqrstuvwxyz",mm="0123456789",Wk={DIGIT:mm,ALPHA:Tu,ALPHA_DIGIT:Tu+Tu.toUpperCase()+mm},G9=(e=16,n=Wk.ALPHA_DIGIT)=>{let t="";const{length:i}=n;for(;e--;)t+=n[Math.random()*i|0];return t};function K9(e){return!!(e&&Bn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Y9=e=>{const n=new Array(10),t=(i,r)=>{if(yf(i)){if(n.indexOf(i)>=0)return;if(!("toJSON"in i)){n[r]=i;const a=fa(i)?[]:{};return zo(i,(o,s)=>{const l=t(o,r+1);!yo(l)&&(a[s]=l)}),n[r]=void 0,a}}return i};return t(e,0)},Q9=kt("AsyncFunction"),X9=e=>e&&(yf(e)||Bn(e))&&Bn(e.then)&&Bn(e.catch),R={isArray:fa,isArrayBuffer:Lk,isBuffer:w9,isFormData:$9,isArrayBufferView:k9,isString:b9,isNumber:Nk,isBoolean:_9,isObject:yf,isPlainObject:Ns,isUndefined:yo,isDate:x9,isFile:S9,isBlob:C9,isRegExp:H9,isFunction:Bn,isStream:P9,isURLSearchParams:T9,isTypedArray:L9,isFileList:E9,forEach:zo,merge:fc,extend:F9,trim:O9,stripBOM:j9,inherits:A9,toFlatObject:R9,kindOf:vf,kindOfTest:kt,endsWith:z9,toArray:M9,forEachEntry:N9,matchAll:D9,isHTMLForm:I9,hasOwnProperty:hm,hasOwnProp:hm,reduceDescriptors:Hk,freezeMethods:W9,toObjectSet:U9,toCamelCase:B9,noop:q9,toFiniteNumber:V9,findKey:Dk,global:Ik,isContextDefined:Bk,ALPHABET:Wk,generateString:G9,isSpecCompliantForm:K9,toJSONObject:Y9,isAsyncFn:Q9,isThenable:X9};function ge(e,n,t,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),t&&(this.config=t),i&&(this.request=i),r&&(this.response=r)}R.inherits(ge,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Uk=ge.prototype,qk={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qk[e]={value:e}});Object.defineProperties(ge,qk);Object.defineProperty(Uk,"isAxiosError",{value:!0});ge.from=(e,n,t,i,r,a)=>{const o=Object.create(Uk);return R.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),ge.call(o,e.message,n,t,i,r),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const J9=null;function uc(e){return R.isPlainObject(e)||R.isArray(e)}function Vk(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function vm(e,n,t){return e?e.concat(n).map(function(r,a){return r=Vk(r),!t&&a?"["+r+"]":r}).join(t?".":""):n}function Z9(e){return R.isArray(e)&&!e.some(uc)}const e5=R.toFlatObject(R,{},null,function(n){return/^is[A-Z]/.test(n)});function wf(e,n,t){if(!R.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,t=R.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,w){return!R.isUndefined(w[m])});const i=t.metaTokens,r=t.visitor||u,a=t.dots,o=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(n);if(!R.isFunction(r))throw new TypeError("visitor must be a function");function f(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(!l&&R.isBlob(h))throw new ge("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,m,w){let v=h;if(h&&!w&&typeof h=="object"){if(R.endsWith(m,"{}"))m=i?m:m.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&Z9(h)||(R.isFileList(h)||R.endsWith(m,"[]"))&&(v=R.toArray(h)))return m=Vk(m),v.forEach(function(y,S){!(R.isUndefined(y)||y===null)&&n.append(o===!0?vm([m],S,a):o===null?m:m+"[]",f(y))}),!1}return uc(h)?!0:(n.append(vm(w,m,a),f(h)),!1)}const d=[],p=Object.assign(e5,{defaultVisitor:u,convertValue:f,isVisitable:uc});function c(h,m){if(!R.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(h),R.forEach(h,function(v,g){(!(R.isUndefined(v)||v===null)&&r.call(n,v,R.isString(g)?g.trim():g,m,p))===!0&&c(v,m?m.concat(g):[g])}),d.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return c(e),n}function gm(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return n[i]})}function o1(e,n){this._pairs=[],e&&wf(e,this,n)}const Gk=o1.prototype;Gk.append=function(n,t){this._pairs.push([n,t])};Gk.toString=function(n){const t=n?function(i){return n.call(this,i,gm)}:gm;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function n5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kk(e,n,t){if(!n)return e;const i=t&&t.encode||n5,r=t&&t.serialize;let a;if(r?a=r(n,t):a=R.isURLSearchParams(n)?n.toString():new o1(n,t).toString(i),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class t5{constructor(){this.handlers=[]}use(n,t,i){return this.handlers.push({fulfilled:n,rejected:t,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){R.forEach(this.handlers,function(i){i!==null&&n(i)})}}const ym=t5,Yk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},i5=typeof URLSearchParams<"u"?URLSearchParams:o1,r5=typeof FormData<"u"?FormData:null,a5=typeof Blob<"u"?Blob:null,o5=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),s5=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mt={isBrowser:!0,classes:{URLSearchParams:i5,FormData:r5,Blob:a5},isStandardBrowserEnv:o5,isStandardBrowserWebWorkerEnv:s5,protocols:["http","https","file","blob","url","data"]};function l5(e,n){return wf(e,new mt.classes.URLSearchParams,Object.assign({visitor:function(t,i,r,a){return mt.isNode&&R.isBuffer(t)?(this.append(i,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},n))}function f5(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function u5(e){const n={},t=Object.keys(e);let i;const r=t.length;let a;for(i=0;i=t.length;return o=!o&&R.isArray(r)?r.length:o,l?(R.hasOwnProp(r,o)?r[o]=[r[o],i]:r[o]=i,!s):((!r[o]||!R.isObject(r[o]))&&(r[o]=[]),n(t,i,r[o],a)&&R.isArray(r[o])&&(r[o]=u5(r[o])),!s)}if(R.isFormData(e)&&R.isFunction(e.entries)){const t={};return R.forEachEntry(e,(i,r)=>{n(f5(i),r,t,0)}),t}return null}const d5={"Content-Type":void 0};function c5(e,n,t){if(R.isString(e))try{return(n||JSON.parse)(e),R.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(t||JSON.stringify)(e)}const kf={transitional:Yk,adapter:["xhr","http"],transformRequest:[function(n,t){const i=t.getContentType()||"",r=i.indexOf("application/json")>-1,a=R.isObject(n);if(a&&R.isHTMLForm(n)&&(n=new FormData(n)),R.isFormData(n))return r&&r?JSON.stringify(Qk(n)):n;if(R.isArrayBuffer(n)||R.isBuffer(n)||R.isStream(n)||R.isFile(n)||R.isBlob(n))return n;if(R.isArrayBufferView(n))return n.buffer;if(R.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let s;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return l5(n,this.formSerializer).toString();if((s=R.isFileList(n))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return wf(s?{"files[]":n}:n,l&&new l,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),c5(n)):n}],transformResponse:[function(n){const t=this.transitional||kf.transitional,i=t&&t.forcedJSONParsing,r=this.responseType==="json";if(n&&R.isString(n)&&(i&&!this.responseType||r)){const o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(n)}catch(s){if(o)throw s.name==="SyntaxError"?ge.from(s,ge.ERR_BAD_RESPONSE,this,null,this.response):s}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};R.forEach(["delete","get","head"],function(n){kf.headers[n]={}});R.forEach(["post","put","patch"],function(n){kf.headers[n]=R.merge(d5)});const s1=kf,p5=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),h5=e=>{const n={};let t,i,r;return e&&e.split(` +`).forEach(function(o){r=o.indexOf(":"),t=o.substring(0,r).trim().toLowerCase(),i=o.substring(r+1).trim(),!(!t||n[t]&&p5[t])&&(t==="set-cookie"?n[t]?n[t].push(i):n[t]=[i]:n[t]=n[t]?n[t]+", "+i:i)}),n},wm=Symbol("internals");function $a(e){return e&&String(e).trim().toLowerCase()}function Ds(e){return e===!1||e==null?e:R.isArray(e)?e.map(Ds):String(e)}function m5(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=t.exec(e);)n[i[1]]=i[2];return n}const v5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ou(e,n,t,i,r){if(R.isFunction(i))return i.call(this,n,t);if(r&&(n=t),!!R.isString(n)){if(R.isString(i))return n.indexOf(i)!==-1;if(R.isRegExp(i))return i.test(n)}}function g5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,t,i)=>t.toUpperCase()+i)}function y5(e,n){const t=R.toCamelCase(" "+n);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+t,{value:function(r,a,o){return this[i].call(this,n,r,a,o)},configurable:!0})})}class bf{constructor(n){n&&this.set(n)}set(n,t,i){const r=this;function a(s,l,f){const u=$a(l);if(!u)throw new Error("header name must be a non-empty string");const d=R.findKey(r,u);(!d||r[d]===void 0||f===!0||f===void 0&&r[d]!==!1)&&(r[d||l]=Ds(s))}const o=(s,l)=>R.forEach(s,(f,u)=>a(f,u,l));return R.isPlainObject(n)||n instanceof this.constructor?o(n,t):R.isString(n)&&(n=n.trim())&&!v5(n)?o(h5(n),t):n!=null&&a(t,n,i),this}get(n,t){if(n=$a(n),n){const i=R.findKey(this,n);if(i){const r=this[i];if(!t)return r;if(t===!0)return m5(r);if(R.isFunction(t))return t.call(this,r,i);if(R.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,t){if(n=$a(n),n){const i=R.findKey(this,n);return!!(i&&this[i]!==void 0&&(!t||Ou(this,this[i],i,t)))}return!1}delete(n,t){const i=this;let r=!1;function a(o){if(o=$a(o),o){const s=R.findKey(i,o);s&&(!t||Ou(i,i[s],s,t))&&(delete i[s],r=!0)}}return R.isArray(n)?n.forEach(a):a(n),r}clear(n){const t=Object.keys(this);let i=t.length,r=!1;for(;i--;){const a=t[i];(!n||Ou(this,this[a],a,n,!0))&&(delete this[a],r=!0)}return r}normalize(n){const t=this,i={};return R.forEach(this,(r,a)=>{const o=R.findKey(i,a);if(o){t[o]=Ds(r),delete t[a];return}const s=n?g5(a):String(a).trim();s!==a&&delete t[a],t[s]=Ds(r),i[s]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const t=Object.create(null);return R.forEach(this,(i,r)=>{i!=null&&i!==!1&&(t[r]=n&&R.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,t])=>n+": "+t).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const i=new this(n);return t.forEach(r=>i.set(r)),i}static accessor(n){const i=(this[wm]=this[wm]={accessors:{}}).accessors,r=this.prototype;function a(o){const s=$a(o);i[s]||(y5(r,o),i[s]=!0)}return R.isArray(n)?n.forEach(a):a(n),this}}bf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.freezeMethods(bf.prototype);R.freezeMethods(bf);const Rt=bf;function Fu(e,n){const t=this||s1,i=n||t,r=Rt.from(i.headers);let a=i.data;return R.forEach(e,function(s){a=s.call(t,a,r.normalize(),n?n.status:void 0)}),r.normalize(),a}function Xk(e){return!!(e&&e.__CANCEL__)}function Mo(e,n,t){ge.call(this,e??"canceled",ge.ERR_CANCELED,n,t),this.name="CanceledError"}R.inherits(Mo,ge,{__CANCEL__:!0});function w5(e,n,t){const i=t.config.validateStatus;!t.status||!i||i(t.status)?e(t):n(new ge("Request failed with status code "+t.status,[ge.ERR_BAD_REQUEST,ge.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const k5=mt.isStandardBrowserEnv?function(){return{write:function(t,i,r,a,o,s){const l=[];l.push(t+"="+encodeURIComponent(i)),R.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),R.isString(a)&&l.push("path="+a),R.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function b5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _5(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}function Jk(e,n){return e&&!b5(n)?_5(e,n):n}const x5=mt.isStandardBrowserEnv?function(){const n=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let i;function r(a){let o=a;return n&&(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 s=R.isString(o)?r(o):o;return s.protocol===i.protocol&&s.host===i.host}}():function(){return function(){return!0}}();function S5(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function C5(e,n){e=e||10;const t=new Array(e),i=new Array(e);let r=0,a=0,o;return n=n!==void 0?n:1e3,function(l){const f=Date.now(),u=i[a];o||(o=f),t[r]=l,i[r]=f;let d=a,p=0;for(;d!==r;)p+=t[d++],d=d%e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),f-o{const a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-t,l=i(s),f=a<=o;t=a;const u={loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&f?(o-a)/l:void 0,event:r};u[n?"download":"upload"]=!0,e(u)}}const E5=typeof XMLHttpRequest<"u",P5=E5&&function(e){return new Promise(function(t,i){let r=e.data;const a=Rt.from(e.headers).normalize(),o=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}R.isFormData(r)&&(mt.isStandardBrowserEnv||mt.isStandardBrowserWebWorkerEnv?a.setContentType(!1):a.setContentType("multipart/form-data;",!1));let f=new XMLHttpRequest;if(e.auth){const c=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(c+":"+h))}const u=Jk(e.baseURL,e.url);f.open(e.method.toUpperCase(),Kk(u,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function d(){if(!f)return;const c=Rt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:c,config:e,request:f};w5(function(v){t(v),l()},function(v){i(v),l()},m),f=null}if("onloadend"in f?f.onloadend=d:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(d)},f.onabort=function(){f&&(i(new ge("Request aborted",ge.ECONNABORTED,e,f)),f=null)},f.onerror=function(){i(new ge("Network Error",ge.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Yk;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),i(new ge(h,m.clarifyTimeoutError?ge.ETIMEDOUT:ge.ECONNABORTED,e,f)),f=null},mt.isStandardBrowserEnv){const c=(e.withCredentials||x5(u))&&e.xsrfCookieName&&k5.read(e.xsrfCookieName);c&&a.set(e.xsrfHeaderName,c)}r===void 0&&a.setContentType(null),"setRequestHeader"in f&&R.forEach(a.toJSON(),function(h,m){f.setRequestHeader(m,h)}),R.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",km(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",km(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=c=>{f&&(i(!c||c.type?new Mo(null,e,f):c),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=S5(u);if(p&&mt.protocols.indexOf(p)===-1){i(new ge("Unsupported protocol "+p+":",ge.ERR_BAD_REQUEST,e));return}f.send(r||null)})},Is={http:J9,xhr:P5};R.forEach(Is,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const $5={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:n}=e;let t,i;for(let r=0;re instanceof Rt?e.toJSON():e;function Yr(e,n){n=n||{};const t={};function i(f,u,d){return R.isPlainObject(f)&&R.isPlainObject(u)?R.merge.call({caseless:d},f,u):R.isPlainObject(u)?R.merge({},u):R.isArray(u)?u.slice():u}function r(f,u,d){if(R.isUndefined(u)){if(!R.isUndefined(f))return i(void 0,f,d)}else return i(f,u,d)}function a(f,u){if(!R.isUndefined(u))return i(void 0,u)}function o(f,u){if(R.isUndefined(u)){if(!R.isUndefined(f))return i(void 0,f)}else return i(void 0,u)}function s(f,u,d){if(d in n)return i(f,u);if(d in e)return i(void 0,f)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials: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:s,headers:(f,u)=>r(_m(f),_m(u),!0)};return R.forEach(Object.keys(Object.assign({},e,n)),function(u){const d=l[u]||r,p=d(e[u],n[u],u);R.isUndefined(p)&&d!==s||(t[u]=p)}),t}const Zk="1.4.0",l1={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{l1[e]=function(i){return typeof i===e||"a"+(n<1?"n ":" ")+e}});const xm={};l1.transitional=function(n,t,i){function r(a,o){return"[Axios v"+Zk+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,s)=>{if(n===!1)throw new ge(r(o," has been removed"+(t?" in "+t:"")),ge.ERR_DEPRECATED);return t&&!xm[o]&&(xm[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(a,o,s):!0}};function T5(e,n,t){if(typeof e!="object")throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const a=i[r],o=n[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new ge("option "+a+" must be "+l,ge.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ge("Unknown option "+a,ge.ERR_BAD_OPTION)}}const dc={assertOptions:T5,validators:l1},Jt=dc.validators;class xl{constructor(n){this.defaults=n,this.interceptors={request:new ym,response:new ym}}request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=Yr(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:a}=t;i!==void 0&&dc.assertOptions(i,{silentJSONParsing:Jt.transitional(Jt.boolean),forcedJSONParsing:Jt.transitional(Jt.boolean),clarifyTimeoutError:Jt.transitional(Jt.boolean)},!1),r!=null&&(R.isFunction(r)?t.paramsSerializer={serialize:r}:dc.assertOptions(r,{encode:Jt.function,serialize:Jt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o;o=a&&R.merge(a.common,a[t.method]),o&&R.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),t.headers=Rt.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let u,d=0,p;if(!l){const h=[bm.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,f),p=h.length,u=Promise.resolve(t);d{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(s=>{i.subscribe(s),a=s}).then(r);return o.cancel=function(){i.unsubscribe(a)},o},n(function(a,o,s){i.reason||(i.reason=new Mo(a,o,s),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const t=this._listeners.indexOf(n);t!==-1&&this._listeners.splice(t,1)}static source(){let n;return{token:new f1(function(r){n=r}),cancel:n}}}const O5=f1;function F5(e){return function(t){return e.apply(null,t)}}function j5(e){return R.isObject(e)&&e.isAxiosError===!0}const cc={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(cc).forEach(([e,n])=>{cc[n]=e});const A5=cc;function eb(e){const n=new Bs(e),t=Mk(Bs.prototype.request,n);return R.extend(t,Bs.prototype,n,{allOwnKeys:!0}),R.extend(t,n,null,{allOwnKeys:!0}),t.create=function(r){return eb(Yr(e,r))},t}const Xe=eb(s1);Xe.Axios=Bs;Xe.CanceledError=Mo;Xe.CancelToken=O5;Xe.isCancel=Xk;Xe.VERSION=Zk;Xe.toFormData=wf;Xe.AxiosError=ge;Xe.Cancel=Xe.CanceledError;Xe.all=function(n){return Promise.all(n)};Xe.spread=F5;Xe.isAxiosError=j5;Xe.mergeConfig=Yr;Xe.AxiosHeaders=Rt;Xe.formToJSON=e=>Qk(R.isHTMLForm(e)?new FormData(e):e);Xe.HttpStatusCode=A5;Xe.default=Xe;const R5=Xe,nb=k.createContext(void 0);function z5({children:e}){const n=or(),t=R5.create({baseURL:"http://localhost:8000/api"});return n!=null&&n.token?t.defaults.headers["X-Bot-Token"]=n==null?void 0:n.token:console.warn("No token!"),b.jsx(nb.Provider,{value:{axiosInstance:t},children:e})}const tb=()=>{const e=k.useContext(nb);if(!e)throw new Error("useAxiosInstance must be used within a AxiosProvider");return e},ib=k.createContext(void 0);function M5({children:e}){const{axiosInstance:n}=tb(),[t,i]=k.useState();async function r(){try{n.get("/chat/init").then(({data:a})=>i(a))}catch(a){console.log(a)}}return k.useEffect(()=>{r()},[]),b.jsx(ib.Provider,{value:t,children:e})}const ua=()=>{const e=k.useContext(ib);return e||console.warn("Error loading initial data...."),e};function L5(){const e=k.useRef(null),{y:n}=bk(e),t=1-n+.4,[,i]=mf(),r=ua(),a=or();return b.jsx("div",{className:"screen-home fade-in-bottom openchat-h-full openchat-max-h-full openchat-overflow-hidden",children:b.jsxs("div",{className:"openchat-h-full openchat-w-full openchat-relative openchat-max-h-full ",children:[b.jsx("div",{className:"openchat-max-h-96 openchat-bg-primary openchat-absolute openchat-inset-0 openchat-z-[1000000]"}),b.jsx("div",{style:{background:"url(https://www.magicpattern.design/_next/image?url=https%3A%2F%2Fstorage.googleapis.com%2Fbrandbird%2Fmagicpattern%2Fwallpapers%2Fmagicpattern-mesh-gradient-1635770864474-preview.jpg&w=3840&q=75)",backgroundSize:"cover"},className:"openchat-absolute openchat-inset-0 openchat-z-[10000000] openchat-max-h-96",children:b.jsx("div",{className:"openchat-absolute openchat-bottom-0 openchat-left-0 openchat-w-full openchat-h-full",style:{background:"linear-gradient(rgba(255, 255, 255, 0) 30%, rgb(255, 255, 255) 100%)"}})}),b.jsxs("div",{className:"openchat-absolute openchat-inset-0 openchat-z-[10000000] openchat-p-7 openchat-pb-0 openchat-h-full openchat-w-full openchat-max-h-full openchat-overflow-y-auto openchat-scrollbar-track-transparent openchat-scrollbar-thumb-accent openchat-scrollbar-thin",ref:e,children:[b.jsxs("header",{className:"openchat-relative",children:[b.jsxs("div",{className:"openchat-flex openchat-w-full openchat-items-start openchat-flex-col openchat-gap-24",children:[b.jsx("div",{className:"openchat-w-full openchat-flex openchat-items-center openchat-justify-between",children:b.jsx("div",{style:{opacity:t},className:"logo openchat-text-4xl openchat-text-white",children:b.jsx(rc,{})})}),b.jsx("div",{style:{opacity:t},className:"name",children:b.jsxs("div",{className:"openchat-font-bold openchat-text-white openchat-text-4xl",children:[b.jsx("h1",{className:"openchat-opacity-75",style:{textShadow:"rgba(255, 255, 255, 0.3) 0px 0px 30px"},children:"Hello there."}),b.jsx("h1",{style:{textShadow:"rgba(255, 255, 255, 0.3) 0px 0px 30px"},children:"How can we help?"})]})})]}),!(a!=null&&a.isFullScreen)&&b.jsx("button",{onClick:i,style:{backgroundColor:n>0?`rgba(0,0,0,${n-.1})`:""},className:hn("close-btn openchat-fixed openchat-right-6 openchat-top-6 sm:openchat-hidden openchat-text-white openchat-transition-all openchat-text-2xl openchat-w-12 openchat-h-12 openchat-flex-shrink-0 openchat-rounded-lg flex-center",n===0?"hover:openchat-bg-black/20":""),children:b.jsx(t1,{})})]}),b.jsx("section",{className:"openchat-w-full openchat-mt-5 openchat-shadow",children:b.jsxs(_l,{to:"/chat",className:"openchat-w-full openchat-px-5 openchat-py-4 openchat-flex openchat-items-center openchat-gap-2 openchat-bg-white openchat-rounded-lg openchat-group",children:[b.jsxs("div",{className:"openchat-flex-1 openchat-text-start openchat-leading-5 openchat-text-sm",children:[b.jsx("h2",{className:"openchat-text-sm openchat-text-black openchat-font-semibold group-hover:openchat-text-primary openchat-transition-colors",children:"Ask our bot a question"}),b.jsx("span",{className:"openchat-text-accent2 openchat-font-normal openchat-text-sm",children:"the team can help if needed"})]}),b.jsx("div",{className:"openchat-text-lg openchat-text-black",children:b.jsx(rc,{})})]})}),b.jsxs("section",{className:"openchat-w-full openchat-bg-white openchat-flex openchat-flex-col openchat-gap-2 openchat-p-2 openchat-text-base openchat-leading-6 openchat-mt-5 openchat-rounded-lg openchat-shadow",children:[b.jsxs(_l,{to:"/articles",className:"openchat-flex openchat-justify-between openchat-items-center openchat-w-full openchat-h-10 openchat-rounded-lg openchat-bg-accent openchat-p-2 openchat-font-semibold",children:[b.jsx("span",{className:"openchat-text-sm",children:"Search for help"}),b.jsx("span",{className:"openchat-text-primary",children:b.jsx(N6,{})})]}),b.jsx("div",{className:"openchat-mt-1",children:(r==null?void 0:r.faq)&&b.jsx("ul",{children:r.faq.slice(0,3).map(({id:o,title:s},l)=>b.jsx(m9,{label:s,id:o.toString()},l))})})]}),b.jsx("footer",{className:"openchat-w-full openchat-text-xs openchat-clear-both openchat-py-3",children:b.jsxs("p",{children:["Powered by"," ",b.jsx("a",{href:"https://openchat.so/?ref=powered-by",className:"openchat-text-primary",children:"OpenChat"})]})})]})]})})}function N5(e){return yn({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z"}}]})(e)}function u1(e){return yn({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}}]})(e)}function D5(e){return yn({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}}]})(e)}function I5(e){return yn({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"}}]})(e)}function pc({id:e,title:n,to:t,className:i}){return b.jsxs(_l,{to:t||`/article/${e}`,className:hn("openchat-flex openchat-items-center openchat-justify-between openchat-gap-3 openchat-py-3 openchat-px-5 openchat-w-full hover:openchat-bg-primary-light openchat-group",i),children:[b.jsx("span",{className:"openchat-text-sm group-hover:openchat-text-primary",children:n}),b.jsx("span",{className:"openchat-text-primary",children:b.jsx(D5,{})})]})}function B5(){const e=hf(),[n,t]=k.useState(""),i=ua(),r=i==null?void 0:i.faq.filter(a=>a.title.toLowerCase().includes(n.toLowerCase()));return b.jsxs("div",{className:"openchat-h-full openchat-w-full openchat-max-h-full openchat-flex openchat-items-start openchat-flex-col openchat-relative",children:[b.jsx("div",{className:"openchat-flex openchat-w-full",children:b.jsxs("nav",{className:"openchat-bg-primary openchat-w-full openchat-p-2",children:[b.jsxs("div",{className:"openchat-flex openchat-flex-grow openchat-flex-row openchat-items-center openchat-justify-between openchat-gap-2 openchat-text-base openchat-text-white",children:[b.jsx("div",{className:"openchat-flex openchat-flex-1 openchat-justify-start",children:b.jsx("button",{className:"openchat-rounded-lg openchat-flex openchat-items-center openchat-justify-center openchat-text-xl hover:openchat-bg-black/20 openchat-transition-all openchat-text-white openchat-w-12 openchat-h-12",onClick:()=>e(-1),children:b.jsx(u1,{})})}),b.jsx("h1",{className:"openchat-px-2 openchat-py-1 openchat-font-bold openchat-text-center openchat-text-base openchat-overflow-hidden openchat-truncate",children:"Help"}),b.jsx("div",{className:"openchat-flex openchat-flex-1 openchat-justify-end",children:b.jsx("button",{className:"close-btn openchat-w-12 openchat-h-12 openchat-rounded-lg openchat-bg-primary-light openchat-text-2xl hover:openchat-bg-black/20 openchat-transition-all sm:openchat-hidden openchat-flex-center",children:b.jsx(t1,{})})})]}),b.jsx("div",{className:"openchat-bg-white openchat-rounded-lg openchat-flex openchat-my-2 openchat-items-center openchat-justify-center openchat-relative openchat-transition-all openchat-duration-250 openchat-border-none",children:b.jsxs("div",{className:"openchat-cursor-text openchat-flex openchat-gap-2 openchat-items-center openchat-w-full openchat-overflow-hidden openchat-rounded-lg openchat-bg-white openchat-mx-1",children:[b.jsx("input",{value:n,onChange:a=>t(a.target.value),type:"text",placeholder:"search for help",className:"openchat-flex-1 openchat-h-full openchat-border-0 openchat-text-sm openchat-p-2.5 placeholder:openchat-transition-all placeholder:openchat-text-accent2 placeholder:openchat-text-xs openchat-bg-transparent openchat-peer openchat-outline-none focus-within:openchat-outline-none"}),b.jsx("button",{className:"openchat-p-1.5 openchat-text-primary",children:b.jsx(vx,{})})]})})]})}),b.jsx("div",{className:"openchat-absolute openchat-bottom-0 openchat-left-0 openchat-right-0 openchat-w-full openchat-h-4 openchat-bg-gradient-to-t openchat-from-black/5 openchat-to-transparent"}),(i==null?void 0:i.faq)&&r&&b.jsx("div",{className:"openchat-flex-1 openchat-h-max openchat-fade-in-bottom openchat-w-full openchat-overflow-y-auto openchat-scrollbar-thin",children:b.jsxs("div",{className:"openchat-w-full openchat-h-fit openchat-max-h-full",children:[b.jsx("header",{className:"openchat-py-4 openchat-px-5 openchat-border-b-black/10 openchat-border-b openchat-w-full",children:b.jsxs("h1",{className:"openchat-font-bold openchat-text-black/60 openchat-text-sm openchat-leading-6 ",children:[b.jsx("span",{className:"openchat-tabular-nums",children:n.trim().length>0?`${r==null?void 0:r.length}`:`${i.faq.length}`})," ","articles"]})}),b.jsx("main",{className:"openchat-divide-y openchat-divide-black/5 openchat-max-h-full openchat-h-fit",children:n.trim().length>0?r.map((a,o)=>b.jsx(pc,{title:a.title,id:a.id.toString()},o)):i.faq.map((a,o)=>b.jsx(pc,{title:a.title,id:a.id.toString()},o))})]})}),!(i!=null&&i.faq)&&b.jsx("div",{className:"openchat-w-full openchat-p-5",children:b.jsx("h2",{className:"openchat-text-sm openchat-text-center openchat-w-fit openchat-mx-auto openchat-mt-5",children:"There is no FAQ right now"})})]})}function H5({canExpand:e}){const[n,t]=Ak(!0),i=hf(),[,r]=mf(),a=e&&n,o=ua(),s=or();return b.jsx("header",{className:"openchat-fade-in-top openchat-border-b openchat-border-b-black/10 openchat-w-full openchat-p-2",children:b.jsxs("div",{className:hn("openchat-w-full openchat-flex openchat-items-start openchat-gap-3 openchat-relative openchat-transition-all",a?"openchat-flex-row":"openchat-flex-col"),children:[b.jsx("button",{onClick:()=>i(-1),className:"openchat-w-12 openchat-h-12 openchat-shrink-0 openchat-rounded-xl flex-center openchat-text-xl openchat-text-primary hover:openchat-bg-primary-light openchat-transition-all",children:b.jsx("span",{children:b.jsx(u1,{})})}),b.jsxs("button",{onClick:t,className:hn("openchat-text-white openchat-h-12 openchat-shrink-0 openchat-bg-transparent openchat-leading-none openchat-transition-all openchat-p-1.5 openchat-border-none openchat-rounded-lg openchat-flex openchat-items-center openchat-gap-3 openchat-flex-1",!a&&"openchat-hidden openchat-pointer-events-none",e&&"hover:openchat-bg-black/20"),children:[b.jsx("div",{className:"openchat-w-8 openchat-aspect-square openchat-bg-primary openchat-rounded-lg"}),b.jsxs("div",{className:"openchat-flex openchat-flex-1 openchat-flex-col openchat-items-start openchat-justify-center openchat-leading-none",children:[b.jsx("h1",{className:"openchat-text-base openchat-font-semibold openchat-text-[rgb(26,26,26)]",children:o==null?void 0:o.bot_name}),b.jsxs("div",{className:"openchat-flex openchat-items-center openchat-gap-1",children:[b.jsx("span",{className:"openchat-bg-accent2 openchat-text-white openchat-rounded-md openchat-text-[9px] openchat-px-[3.5px] openchat-py-[3px] openchat-font-semibold",children:"AI"}),b.jsx("span",{className:"openchat-text-sm openchat-font-normal openchat-text-accent2",children:"Bot"})]})]})]}),!a&&b.jsx("div",{className:"fade-in openchat-px-2 openchat-py-1 openchat-font-bold openchat-text-center openchat-text-lg openchat-overflow-hidden openchat-truncate openchat-absolute openchat-left-1/2 openchat-top-6 -openchat-translate-x-1/2 -openchat-translate-y-1/2",children:o==null?void 0:o.bot_name}),!a&&b.jsx("button",{onClick:t,style:{animationDuration:"0.1s"},className:hn("fade-in openchat-w-full openchat-p-2 openchat-transition-colors openchat-rounded-lg openchat-pointer-events-none",e&&"hover:openchat-bg-black/20 openchat-pointer-events-auto"),children:b.jsxs("div",{className:"openchat-w-full openchat-flex openchat-items-center openchat-flex-col openchat-text-sm openchat-text-black",children:[b.jsxs("div",{className:"openchat-flex openchat-items-center",children:[b.jsx("div",{className:"openchat-h-12 openchat-w-12 openchat-shrink-0 openchat-bg-black/50 openchat-rounded-full openchat-static openchat-z-[2]"}),b.jsx("div",{className:"openchat-bg-primary openchat-rounded-lg openchat-p-3 openchat-text-4xl openchat-text-white -openchat-mx-2 openchat-border-4 openchat-border-white openchat-static openchat-z-[3]",children:b.jsx(rc,{})}),b.jsx("div",{className:"openchat-h-12 openchat-w-12 openchat-shrink-0 openchat-bg-black/50 openchat-rounded-full openchat-static openchat-z-[2]"})]}),b.jsxs("div",{className:"openchat-mt-1.5",children:[b.jsx("h2",{className:"openchat-mb-1",children:"Ask our bot a question"}),b.jsx("p",{className:"openchat-text-accent2",children:"The team can help if needed"})]})]})}),!(s!=null&&s.isFullScreen)&&b.jsx("button",{onClick:r,className:hn("close-btn openchat-w-12 sm:openchat-hidden openchat-h-12 openchat-shrink-0 openchat-rounded-xl openchat-flex openchat-items-center openchat-justify-center openchat-text-xl openchat-text-primary hover:openchat-bg-black/20 openchat-transition-all",!a&&"openchat-absolute openchat-right-0 "),children:b.jsx("span",{children:b.jsx(t1,{})})})]})})}var rb="en",d1={},hc={};function ab(){return rb}function W5(e){rb=e}function U5(e){return d1[e]}function q5(e){if(!e)throw new Error("No locale data passed");d1[e.locale]=e,hc[e.locale.toLowerCase()]=e.locale}function Sm(e){if(d1[e])return e;if(hc[e.toLowerCase()])return hc[e.toLowerCase()]}function ob(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=n.localeMatcher||"lookup";switch(t){case"lookup":return Cm(e);case"best fit":return Cm(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(t))}}function Cm(e){var n=Sm(e);if(n)return n;for(var t=e.split("-");e.length>1;){t.pop(),e=t.join("-");var i=Sm(e);if(i)return i}}var T={af:function(n){return n==1?"one":"other"},am:function(n){return n>=0&&n<=1?"one":"other"},ar:function(n){var t=String(n).split("."),i=Number(t[0])==n,r=i&&t[0].slice(-2);return n==0?"zero":n==1?"one":n==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ast:function(n){var t=String(n).split("."),i=!t[1];return n==1&&i?"one":"other"},be:function(n){var t=String(n).split("."),i=Number(t[0])==n,r=i&&t[0].slice(-1),a=i&&t[0].slice(-2);return r==1&&a!=11?"one":r>=2&&r<=4&&(a<12||a>14)?"few":i&&r==0||r>=5&&r<=9||a>=11&&a<=14?"many":"other"},br:function(n){var t=String(n).split("."),i=Number(t[0])==n,r=i&&t[0].slice(-1),a=i&&t[0].slice(-2),o=i&&t[0].slice(-6);return r==1&&a!=11&&a!=71&&a!=91?"one":r==2&&a!=12&&a!=72&&a!=92?"two":(r==3||r==4||r==9)&&(a<10||a>19)&&(a<70||a>79)&&(a<90||a>99)?"few":n!=0&&i&&o==0?"many":"other"},bs:function(n){var t=String(n).split("."),i=t[0],r=t[1]||"",a=!t[1],o=i.slice(-1),s=i.slice(-2),l=r.slice(-1),f=r.slice(-2);return a&&o==1&&s!=11||l==1&&f!=11?"one":a&&o>=2&&o<=4&&(s<12||s>14)||l>=2&&l<=4&&(f<12||f>14)?"few":"other"},ca:function(n){var t=String(n).split("."),i=t[0],r=!t[1],a=i.slice(-6);return n==1&&r?"one":i!=0&&a==0&&r?"many":"other"},ceb:function(n){var t=String(n).split("."),i=t[0],r=t[1]||"",a=!t[1],o=i.slice(-1),s=r.slice(-1);return a&&(i==1||i==2||i==3)||a&&o!=4&&o!=6&&o!=9||!a&&s!=4&&s!=6&&s!=9?"one":"other"},cs:function(n){var t=String(n).split("."),i=t[0],r=!t[1];return n==1&&r?"one":i>=2&&i<=4&&r?"few":r?"other":"many"},cy:function(n){return n==0?"zero":n==1?"one":n==2?"two":n==3?"few":n==6?"many":"other"},da:function(n){var t=String(n).split("."),i=t[0],r=Number(t[0])==n;return n==1||!r&&(i==0||i==1)?"one":"other"},dsb:function(n){var t=String(n).split("."),i=t[0],r=t[1]||"",a=!t[1],o=i.slice(-2),s=r.slice(-2);return a&&o==1||s==1?"one":a&&o==2||s==2?"two":a&&(o==3||o==4)||s==3||s==4?"few":"other"},dz:function(n){return"other"},es:function(n){var t=String(n).split("."),i=t[0],r=!t[1],a=i.slice(-6);return n==1?"one":i!=0&&a==0&&r?"many":"other"},ff:function(n){return n>=0&&n<2?"one":"other"},fr:function(n){var t=String(n).split("."),i=t[0],r=!t[1],a=i.slice(-6);return n>=0&&n<2?"one":i!=0&&a==0&&r?"many":"other"},ga:function(n){var t=String(n).split("."),i=Number(t[0])==n;return n==1?"one":n==2?"two":i&&n>=3&&n<=6?"few":i&&n>=7&&n<=10?"many":"other"},gd:function(n){var t=String(n).split("."),i=Number(t[0])==n;return n==1||n==11?"one":n==2||n==12?"two":i&&n>=3&&n<=10||i&&n>=13&&n<=19?"few":"other"},he:function(n){var t=String(n).split("."),i=t[0],r=!t[1];return i==1&&r||i==0&&!r?"one":i==2&&r?"two":"other"},is:function(n){var t=String(n).split("."),i=t[0],r=(t[1]||"").replace(/0+$/,""),a=Number(t[0])==n,o=i.slice(-1),s=i.slice(-2);return a&&o==1&&s!=11||r%10==1&&r%100!=11?"one":"other"},ksh:function(n){return n==0?"zero":n==1?"one":"other"},lt:function(n){var t=String(n).split("."),i=t[1]||"",r=Number(t[0])==n,a=r&&t[0].slice(-1),o=r&&t[0].slice(-2);return a==1&&(o<11||o>19)?"one":a>=2&&a<=9&&(o<11||o>19)?"few":i!=0?"many":"other"},lv:function(n){var t=String(n).split("."),i=t[1]||"",r=i.length,a=Number(t[0])==n,o=a&&t[0].slice(-1),s=a&&t[0].slice(-2),l=i.slice(-2),f=i.slice(-1);return a&&o==0||s>=11&&s<=19||r==2&&l>=11&&l<=19?"zero":o==1&&s!=11||r==2&&f==1&&l!=11||r!=2&&f==1?"one":"other"},mk:function(n){var t=String(n).split("."),i=t[0],r=t[1]||"",a=!t[1],o=i.slice(-1),s=i.slice(-2),l=r.slice(-1),f=r.slice(-2);return a&&o==1&&s!=11||l==1&&f!=11?"one":"other"},mt:function(n){var t=String(n).split("."),i=Number(t[0])==n,r=i&&t[0].slice(-2);return n==1?"one":n==2?"two":n==0||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},pa:function(n){return n==0||n==1?"one":"other"},pl:function(n){var t=String(n).split("."),i=t[0],r=!t[1],a=i.slice(-1),o=i.slice(-2);return n==1&&r?"one":r&&a>=2&&a<=4&&(o<12||o>14)?"few":r&&i!=1&&(a==0||a==1)||r&&a>=5&&a<=9||r&&o>=12&&o<=14?"many":"other"},pt:function(n){var t=String(n).split("."),i=t[0],r=!t[1],a=i.slice(-6);return i==0||i==1?"one":i!=0&&a==0&&r?"many":"other"},ro:function(n){var t=String(n).split("."),i=!t[1],r=Number(t[0])==n,a=r&&t[0].slice(-2);return n==1&&i?"one":!i||n==0||n!=1&&a>=1&&a<=19?"few":"other"},ru:function(n){var t=String(n).split("."),i=t[0],r=!t[1],a=i.slice(-1),o=i.slice(-2);return r&&a==1&&o!=11?"one":r&&a>=2&&a<=4&&(o<12||o>14)?"few":r&&a==0||r&&a>=5&&a<=9||r&&o>=11&&o<=14?"many":"other"},se:function(n){return n==1?"one":n==2?"two":"other"},si:function(n){var t=String(n).split("."),i=t[0],r=t[1]||"";return n==0||n==1||i==0&&r==1?"one":"other"},sl:function(n){var t=String(n).split("."),i=t[0],r=!t[1],a=i.slice(-2);return r&&a==1?"one":r&&a==2?"two":r&&(a==3||a==4)||!r?"few":"other"}};T.as=T.am;T.az=T.af;T.bg=T.af;T.bn=T.am;T.brx=T.af;T.ce=T.af;T.chr=T.af;T.de=T.ast;T.ee=T.af;T.el=T.af;T.en=T.ast;T.et=T.ast;T.eu=T.af;T.fa=T.am;T.fi=T.ast;T.fil=T.ceb;T.fo=T.af;T.fur=T.af;T.fy=T.ast;T.gl=T.ast;T.gu=T.am;T.ha=T.af;T.hi=T.am;T.hr=T.bs;T.hsb=T.dsb;T.hu=T.af;T.hy=T.ff;T.ia=T.ast;T.id=T.dz;T.ig=T.dz;T.it=T.ca;T.ja=T.dz;T.jgo=T.af;T.jv=T.dz;T.ka=T.af;T.kea=T.dz;T.kk=T.af;T.kl=T.af;T.km=T.dz;T.kn=T.am;T.ko=T.dz;T.ks=T.af;T.ku=T.af;T.ky=T.af;T.lb=T.af;T.lkt=T.dz;T.lo=T.dz;T.ml=T.af;T.mn=T.af;T.mr=T.af;T.ms=T.dz;T.my=T.dz;T.nb=T.af;T.ne=T.af;T.nl=T.ast;T.nn=T.af;T.no=T.af;T.or=T.af;T.pcm=T.am;T.ps=T.af;T.rm=T.af;T.sah=T.dz;T.sc=T.ast;T.sd=T.af;T.sk=T.cs;T.so=T.af;T.sq=T.af;T.sr=T.bs;T.su=T.dz;T.sv=T.ast;T.sw=T.ast;T.ta=T.af;T.te=T.af;T.th=T.dz;T.ti=T.pa;T.tk=T.af;T.to=T.dz;T.tr=T.af;T.ug=T.af;T.uk=T.ru;T.ur=T.ast;T.uz=T.af;T.vi=T.dz;T.wae=T.af;T.wo=T.dz;T.xh=T.af;T.yi=T.ast;T.yo=T.dz;T.yue=T.dz;T.zh=T.dz;T.zu=T.am;const Em=T;function Pm(e){return e==="pt-PT"?e:G5(e)}var V5=/^([a-z0-9]+)/i;function G5(e){var n=e.match(V5);if(!n)throw new TypeError("Invalid locale: ".concat(e));return n[1]}function K5(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function $m(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,i=new Array(n);t0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};n7(this,e);var i=t.numeric,r=t.style,a=t.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",i!==void 0){if(r7.indexOf(i)<0)throw new RangeError('Invalid "numeric" option: '.concat(i));this.numeric=i}if(r!==void 0){if(a7.indexOf(r)<0)throw new RangeError('Invalid "style" option: '.concat(r));this.style=r}if(a!==void 0){if(o7.indexOf(a)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(a));this.localeMatcher=a}if(typeof n=="string"&&(n=[n]),n.push(ab()),this.locale=e.supportedLocalesOf(n,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");mc.supportedLocalesOf(this.locale).length>0?this.pluralRules=new mc(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=ob(this.locale,{localeMatcher:this.localeMatcher})}return t7(e,[{key:"format",value:function(){var t=Rm(arguments),i=Fm(t,2),r=i[0],a=i[1];return this.getRule(r,a).replace("{0}",this.formatNumber(Math.abs(r)))}},{key:"formatToParts",value:function(){var t=Rm(arguments),i=Fm(t,2),r=i[0],a=i[1],o=this.getRule(r,a),s=o.indexOf("{0}");if(s<0)return[{type:"literal",value:o}];var l=[];return s>0&&l.push({type:"literal",value:o.slice(0,s)}),l=l.concat(this.formatNumberToParts(Math.abs(r)).map(function(f){return Om(Om({},f),{},{unit:a})})),s+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(t){return ob(t,n)})};Si.addLocale=q5;Si.setDefaultLocale=W5;Si.getDefaultLocale=ab;Si.PluralRules=mc;var Au='Invalid "unit" argument';function s7(e){if(vc(e)==="symbol")throw new TypeError(Au);if(typeof e!="string")throw new RangeError("".concat(Au,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),i7.indexOf(e)<0)throw new RangeError("".concat(Au,": ").concat(e));return e}var l7='Invalid "number" argument';function f7(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(l7,": ").concat(e));return e}function u7(e){return 1/e===-1/0}function d7(e){return e<0||e===0&&u7(e)}function Rm(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[f7(e[0]),s7(e[1])]}function Sl(e){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sl(e)}function c7(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function zm(e,n){for(var t=0;t=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m7(e,n){if(e){if(typeof e=="string")return Lm(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Lm(e,n)}}function Lm(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t1;)if(a.pop(),r=a.join("-"),n(r))return r}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function g7(){var e=(typeof Intl>"u"?"undefined":gc(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yc(e)}function y7(e){return k7(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var w7={}.constructor;function k7(e){return yc(e)!==void 0&&e!==null&&e.constructor===w7}var $t=60,Cl=60*$t,Vi=24*Cl,wc=7*Vi,kc=30.44*Vi,sb=146097/400*Vi;function Mr(e){switch(e){case"second":return 1;case"minute":return $t;case"hour":return Cl;case"day":return Vi;case"week":return wc;case"month":return kc;case"year":return sb}}function lb(e){return e.factor!==void 0?e.factor:Mr(e.unit||e.formatAs)||1}function wo(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function c1(e){switch(e){case"floor":return 1;default:return .5}}function bc(e){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bc(e)}function fb(e,n){var t=n.prevStep,i=n.timestamp,r=n.now,a=n.future,o=n.round,s;return t&&(t.id||t.unit)&&(s=e["threshold_for_".concat(t.id||t.unit)]),s===void 0&&e.threshold!==void 0&&(s=e.threshold,typeof s=="function"&&(s=s(r,a))),s===void 0&&(s=e.minTime),bc(s)==="object"&&(t&&t.id&&s[t.id]!==void 0?s=s[t.id]:s=s.default),typeof s=="function"&&(s=s(i,{future:a,getMinTimeForUnit:function(f,u){return Nm(f,u||t&&t.formatAs,{round:o})}})),s===void 0&&e.test&&(e.test(i,{now:r,future:a})?s=0:s=9007199254740991),s===void 0&&(t?e.formatAs&&t.formatAs&&(s=Nm(e.formatAs,t.formatAs,{round:o})):s=0),s===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),s}function Nm(e,n,t){var i=t.round,r=Mr(e),a;if(n==="now"?a=Mr(e):a=Mr(n),r!==void 0&&a!==void 0)return r-a*(1-c1(i))}function Dm(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function b7(e){for(var n=1;n0)return e[o-1]}return s}}}function ub(e,n,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=fb(e[i],b7({prevStep:e[i-1],timestamp:t.now-n*1e3},t));return r===void 0||Math.abs(n)=0:!0})}function E7(e,n,t){var i=t.now,r=t.round;if(Mr(e)){var a=Mr(e)*1e3,o=n>i,s=Math.abs(n-i),l=wo(r)(s/a)*a;return o?l>0?s-l+$7(r,a):s-l+1:-(s-l)+P7(r,a)}}function P7(e,n){return c1(e)*n}function $7(e,n){return(1-c1(e))*n+1}var T7=365*24*60*60*1e3,db=1e3*T7;function O7(e,n,t){var i=t.prevStep,r=t.nextStep,a=t.now,o=t.future,s=t.round,l=e.getTime?e.getTime():e,f=function(h){return E7(h,l,{now:a,round:s})},u=j7(o?n:r,l,{future:o,now:a,round:s,prevStep:o?i:n});if(u!==void 0){var d;if(n&&(n.getTimeToNextUpdate&&(d=n.getTimeToNextUpdate(l,{getTimeToNextUpdateForUnit:f,getRoundFunction:wo,now:a,future:o,round:s})),d===void 0)){var p=n.unit||n.formatAs;p&&(d=f(p))}return d===void 0?u:Math.min(d,u)}}function F7(e,n,t){var i=t.now,r=t.future,a=t.round,o=t.prevStep,s=fb(e,{timestamp:n,now:i,future:r,round:a,prevStep:o});if(s!==void 0)return r?n-s*1e3+1:s===0&&n===i?db:n+s*1e3}function j7(e,n,t){var i=t.now,r=t.future,a=t.round,o=t.prevStep;if(e){var s=F7(e,n,{now:i,future:r,round:a,prevStep:o});return s===void 0?void 0:s-i}else return r?n-i+1:db}var cb={};function Pr(e){return cb[e]}function pb(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");cb[e.locale]=e}const A7=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],_c={steps:A7,labels:"long"};function Im(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Bm(e){for(var n=1;n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J7(e,n){return nS(e)||eS(e,n)||vb(e,n)||Z7()}function Z7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vb(e,n){if(e){if(typeof e=="string")return tv(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tv(e,n)}}function tv(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.polyfill;tS(this,e),typeof n=="string"&&(n=[n]),this.locale=v7(n.concat(e.getDefaultLocale()),Pr),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),i===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Si,this.IntlPluralRules=Si.PluralRules),this.relativeTimeFormatCache=new Mm,this.pluralRulesCache=new Mm}return iS(e,[{key:"format",value:function(t,i,r){r||(i&&!lS(i)?(r=i,i=void 0):r={}),i||(i=xc),typeof i=="string"&&(i=Q7(i));var a=rS(t),o=this.getLabels(i.flavour||i.labels),s=o.labels,l=o.labelsType,f;i.now!==void 0&&(f=i.now),f===void 0&&r.now!==void 0&&(f=r.now),f===void 0&&(f=Date.now());var u=(f-a)/1e3,d=r.future||u<0,p=sS(s,Pr(this.locale).now,Pr(this.locale).long,d);if(i.custom){var c=i.custom({now:f,date:new Date(a),time:a,elapsed:u,locale:this.locale});if(c!==void 0)return c}var h=oS(i.units,s,p),m=r.round||i.round,w=x7(i.gradation||i.steps||xc.steps,u,{now:f,units:h,round:m,future:d,getNextStep:!0}),v=J7(w,3),g=v[0],y=v[1],S=v[2],E=this.formatDateForStep(a,y,u,{labels:s,labelsType:l,nowLabel:p,now:f,future:d,round:m})||"";if(r.getTimeToNextUpdate){var x=O7(a,y,{nextStep:S,prevStep:g,now:f,future:d,round:m});return[E,x]}return E}},{key:"formatDateForStep",value:function(t,i,r,a){var o=this,s=a.labels,l=a.labelsType,f=a.nowLabel,u=a.now,d=a.future,p=a.round;if(i){if(i.format)return i.format(t,this.locale,{formatAs:function(v,g){return o.formatValue(g,v,{labels:s,future:d})},now:u,future:d});var c=i.unit||i.formatAs;if(!c)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(i)));if(c==="now")return f;var h=Math.abs(r)/lb(i);i.granularity&&(h=wo(p)(h/i.granularity)*i.granularity);var m=-1*Math.sign(r)*wo(p)(h);switch(m===0&&(d?m=0:m=-0),l){case"long":case"short":case"narrow":return this.getFormatter(l).format(m,c);default:return this.formatValue(m,c,{labels:s,future:d})}}}},{key:"formatValue",value:function(t,i,r){var a=r.labels,o=r.future;return this.getFormattingRule(a,i,t,{future:o}).replace("{0}",this.formatNumber(Math.abs(t)))}},{key:"getFormattingRule",value:function(t,i,r,a){var o=a.future;if(this.locale,t=t[i],typeof t=="string")return t;var s=r===0?o?"future":"past":r<0?"past":"future",l=t[s]||t;if(typeof l=="string")return l;var f=this.getPluralRules().select(Math.abs(r));return l[f]||l.other}},{key:"formatNumber",value:function(t){return this.numberFormat?this.numberFormat.format(t):String(t)}},{key:"getFormatter",value:function(t){return this.relativeTimeFormatCache.get(this.locale,t)||this.relativeTimeFormatCache.put(this.locale,t,new this.IntlRelativeTimeFormat(this.locale,{style:t}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof t=="string"&&(t=[t]),t=t.map(function(s){switch(s){case"tiny":case"mini-time":return"mini";default:return s}}),t=t.concat("long");for(var i=Pr(this.locale),r=X7(t),a;!(a=r()).done;){var o=a.value;if(i[o])return{labelsType:o,labels:i[o]}}}}]),e}(),gb="en";Hn.getDefaultLocale=function(){return gb};Hn.setDefaultLocale=function(e){return gb=e};Hn.addDefaultLocale=function(e){if(rv)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");rv=!0,Hn.setDefaultLocale(e.locale),Hn.addLocale(e)};var rv;Hn.addLocale=function(e){pb(e),Si.addLocale(e)};Hn.locale=Hn.addLocale;Hn.addLabels=function(e,n,t){var i=Pr(e);i||(pb({locale:e}),i=Pr(e)),i[n]=t};function rS(e){if(e.constructor===Date||aS(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(El(e),", ").concat(e))}function aS(e){return El(e)==="object"&&typeof e.getTime=="function"}function oS(e,n,t){var i=Object.keys(n);return t&&i.push("now"),e&&(i=e.filter(function(r){return r==="now"||i.indexOf(r)>=0})),i}function sS(e,n,t,i){var r=e.now||n&&n.now;if(r)return typeof r=="string"?r:i?r.future:r.past;if(t&&t.second&&t.second.current)return t.second.current}function lS(e){return typeof e=="string"||y7(e)}const fS={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}};var yb={exports:{}},uS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",dS=uS,cS=dS;function wb(){}function kb(){}kb.resetWarningCache=wb;var pS=function(){function e(i,r,a,o,s,l){if(l!==cS){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function n(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:kb,resetWarningCache:wb};return t.PropTypes=t,t};yb.exports=pS();var bb=yb.exports;const V=wt(bb);var av=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function hS(e,n){return!!(e===n||av(e)&&av(n))}function mS(e,n){if(e.length!==n.length)return!1;for(var t=0;t"u"?"undefined":Pc(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function Pl(e){"@babel/helpers - typeof";return Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Pl(e)}function yS(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function ov(e,n){for(var t=0;t"u"?Dt:window,fs=["moz","webkit"],Lr="AnimationFrame",Qr=zt["request"+Lr],bo=zt["cancel"+Lr]||zt["cancelRequest"+Lr];for(var Ta=0;!Qr&&Tai)return t}else if(i=r-1,ie.length)&&(n=e.length);for(var t=0,i=new Array(n);t=t.nextUpdateTime)cv(t,this.instances);else break}},scheduleNextTick:function(){var n=this;this.scheduledTick=uv(function(){n.tick(),n.scheduleNextTick()})},start:function(){this.scheduleNextTick()},stop:function(){uv.cancel(this.scheduledTick)}};function IS(e){var n=e.getNextValue(),t=RS(n,2),i=t[0],r=t[1];e.setValue(i),e.nextUpdateTime=r}function cv(e,n){IS(e),Cb(n,e),Sb(n,e)}function Sb(e,n){var t=BS(e,n);e.splice(t,0,n)}function Cb(e,n){var t=e.indexOf(n);e.splice(t,1)}function BS(e,n){var t=n.nextUpdateTime;return AS(e,function(i){return i.nextUpdateTime===t?0:i.nextUpdateTime>t?1:-1})}var HS=["date","verboseDate","tooltip","children"];function Tc(){return Tc=Object.assign||function(e){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function US(e,n){if(e==null)return{};var t={},i=Object.keys(e),r,a;for(a=0;a=0)&&(t[r]=e[r]);return t}function $l(e,n){var t=e.date,i=e.verboseDate,r=e.tooltip,a=e.children,o=WS(e,HS),s=k.useMemo(function(){return t.toISOString()},[t]);return ee.createElement("time",Tc({ref:n},o,{dateTime:s,title:r?i:void 0}),a)}$l=ee.forwardRef($l);$l.propTypes={date:V.instanceOf(Date).isRequired,verboseDate:V.string,tooltip:V.bool.isRequired,children:V.string.isRequired};var Oc=V.oneOfType,pv=V.arrayOf,$r=V.string,hv=V.number,La=V.shape,us=V.func,qS=Oc([La({minTime:hv,formatAs:$r.isRequired}),La({test:us,formatAs:$r.isRequired}),La({minTime:hv,format:us.isRequired}),La({test:us,format:us.isRequired})]),VS=Oc([$r,La({steps:pv(qS).isRequired,labels:Oc([$r,pv($r)]).isRequired,round:$r})]),GS=["date","future","timeStyle","round","minTimeLeft","tooltip","component","container","wrapperComponent","wrapperProps","locale","locales","formatVerboseDate","verboseDateFormat","updateInterval","tick","now","timeOffset","polyfill"];function Tl(){return Tl=Object.assign||function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=new Array(n);t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function ZS(e,n){if(e==null)return{};var t={},i=Object.keys(e),r,a;for(a=0;a=0)&&(t[r]=e[r]);return t}function _o(e){var n=e.date,t=e.future,i=e.timeStyle,r=e.round,a=e.minTimeLeft,o=e.tooltip,s=e.component,l=e.container,f=e.wrapperComponent,u=e.wrapperProps,d=e.locale,p=e.locales,c=e.formatVerboseDate,h=e.verboseDateFormat,m=e.updateInterval,w=e.tick,v=e.now,g=e.timeOffset,y=e.polyfill,S=JS(e,GS),E=k.useMemo(function(){return d&&(p=[d]),p.concat(Hn.getDefaultLocale())},[d,p]),x=k.useMemo(function(){return $S(E,{polyfill:y})},[E,y]);n=k.useMemo(function(){return CS(n)},[n]);var P=k.useCallback(function(){var M=(v||Date.now())-g,_;if(t&&M>=n.getTime()&&(M=n.getTime(),_=!0),a!==void 0){var U=n.getTime()-a*1e3;M>U&&(M=U,_=!0)}var J=x.format(n,i,{getTimeToNextUpdate:!0,now:M,future:t,round:r}),F=ds(J,2),ae=F[0],I=F[1];return _?I=n8:I=m||I||60*1e3,[ae,M+I]},[n,t,i,m,r,a,x,v]),O=k.useRef();O.current=P;var D=k.useMemo(P,[]),$=ds(D,2),A=$[0],L=$[1],q=k.useState(A),K=ds(q,2),G=K[0],Q=K[1],Z=k.useRef();k.useEffect(function(){if(w)return Z.current=DS.add({getNextValue:function(){return O.current()},setValue:Q,nextUpdateTime:L}),function(){return Z.current.stop()}},[w]),k.useEffect(function(){if(Z.current)Z.current.forceUpdate();else{var M=P(),_=ds(M,1),U=_[0];Q(U)}},[P]);var z=k.useMemo(function(){return xS(E,h)},[E,h]),Y=k.useMemo(function(){return c?c(n):z(n)},[n,c,z]),C=ee.createElement(s,Tl({date:n,verboseDate:Y,tooltip:o},S),G),ne=f||l;return ne?ee.createElement(ne,Tl({},u,{verboseDate:Y}),C):C}_o.propTypes={date:V.oneOfType([V.instanceOf(Date),V.number]).isRequired,locale:V.string,locales:V.arrayOf(V.string),future:V.bool,timeStyle:VS,round:V.string,minTimeLeft:V.number,component:V.elementType.isRequired,tooltip:V.bool.isRequired,formatVerboseDate:V.func,verboseDateFormat:V.object,updateInterval:V.oneOfType([V.number,V.arrayOf(V.shape({threshold:V.number,interval:V.number.isRequired}))]),tick:V.bool,now:V.number,timeOffset:V.number,polyfill:V.bool,wrapperComponent:V.elementType,wrapperProps:V.object};_o.defaultProps={locales:[],component:$l,tooltip:!0,verboseDateFormat:{weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},tick:!0,timeOffset:0};_o=ee.memo(_o);const p1=_o;var e8=365*24*60*60*1e3,n8=1e3*e8,Eb=function(e){return{display:e?"flex":"none"}},Pb="#4fa94d",$b={"aria-busy":!0,role:"status"},vv=globalThis&&globalThis.__assign||function(){return vv=Object.assign||function(e){for(var n,t=1,i=arguments.length;the)&&($e=(se=se.replace(" ",":")).length),0J&&(J=(_=_.trim()).charCodeAt(0)),J){case 38:return _.replace(v,"$1"+M.trim());case 58:return M.trim()+_.replace(v,"$1"+M.trim());default:if(0<1*U&&0<_.indexOf("\f"))return _.replace(v,(M.charCodeAt(0)===58?"":"$1")+M.trim())}return M+_}function r(M,_,U,J){var F=M+";",ae=2*_+3*U+4*J;if(ae===944){M=F.indexOf(":",9)+1;var I=F.substring(M,F.length-1).trim();return I=F.substring(0,M).trim()+I+";",G===1||G===2&&a(I,1)?"-webkit-"+I+I:I}if(G===0||G===2&&!a(F,1))return F;switch(ae){case 1015:return F.charCodeAt(10)===97?"-webkit-"+F+F:F;case 951:return F.charCodeAt(3)===116?"-webkit-"+F+F:F;case 963:return F.charCodeAt(5)===110?"-webkit-"+F+F:F;case 1009:if(F.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+F+F;case 978:return"-webkit-"+F+"-moz-"+F+F;case 1019:case 983:return"-webkit-"+F+"-moz-"+F+"-ms-"+F+F;case 883:if(F.charCodeAt(8)===45)return"-webkit-"+F+F;if(0I.charCodeAt(8))break;case 115:F=F.replace(I,"-webkit-"+I)+";"+F;break;case 207:case 102:F=F.replace(I,"-webkit-"+(102U.charCodeAt(0)&&(U=U.trim()),ne=U,U=[ne],01?n-1:0),i=1;i0?" Args: "+t.join(", "):""))}var E8=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var n=e.prototype;return n.indexOfGroup=function(t){for(var i=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,a=r.length,o=a;t>=o;)(o<<=1)<0&&Lo(16,""+t);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=a;s=this.length||this.groupSizes[t]===0)return i;for(var r=this.groupSizes[t],a=this.indexOfGroup(t),o=a+r,s=a;s=Ka&&(Ka=n+1),Hs.set(e,n),Fl.set(n,e)},T8="style["+Xr+'][data-styled-version="5.3.11"]',O8=new RegExp("^"+Xr+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F8=function(e,n,t){for(var i,r=t.split(","),a=0,o=r.length;a=0;f--){var u=l[f];if(u&&u.nodeType===1&&u.hasAttribute(Xr))return u}}(t),a=r!==void 0?r.nextSibling:null;i.setAttribute(Xr,"active"),i.setAttribute("data-styled-version","5.3.11");var o=A8();return o&&i.setAttribute("nonce",o),t.insertBefore(i,a),i},R8=function(){function e(t){var i=this.element=zb(t);i.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var r=document.createTextNode(i),a=this.nodes[t];return this.element.insertBefore(r,a||null),this.length++,!0}return!1},n.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},n.getRule=function(t){return t0&&(d+=p+",")}),a+=""+f+u+'{content:"'+d+`"}/*!sc*/ +`}}}return a}(this)},e}(),N8=/(a)(d)/gi,Tv=function(e){return String.fromCharCode(e+(e>25?39:97))};function jc(e){var n,t="";for(n=Math.abs(e);n>52;n=n/52|0)t=Tv(n%52)+t;return(Tv(n%52)+t).replace(N8,"$1-$2")}var Tr=function(e,n){for(var t=n.length;t;)e=33*e^n.charCodeAt(--t);return e},Lb=function(e){return Tr(5381,e)};function D8(e){for(var n=0;n>>0);if(!t.hasNameForId(r,s)){var l=i(o,"."+s,void 0,r);t.insertRules(r,s,l)}a.push(s),this.staticRulesId=s}else{for(var f=this.rules.length,u=Tr(this.baseHash,i.hash),d="",p=0;p>>0);if(!t.hasNameForId(r,w)){var v=i(d,"."+w,void 0,r);t.insertRules(r,w,v)}a.push(w)}}return a.join(" ")},e}(),H8=/^\s*\/\/.*$/gm,W8=[":","[",".","#"];function U8(e){var n,t,i,r,a=e===void 0?ki:e,o=a.options,s=o===void 0?ki:o,l=a.plugins,f=l===void 0?Ol:l,u=new o8(s),d=[],p=function(m){function w(v){if(v)try{m(v+"}")}catch{}}return function(v,g,y,S,E,x,P,O,D,$){switch(v){case 1:if(D===0&&g.charCodeAt(0)===64)return m(g+";"),"";break;case 2:if(O===0)return g+"/*|*/";break;case 3:switch(O){case 102:case 112:return m(y[0]+g),"";default:return g+($===0?"/*|*/":"")}case-2:g.split("/*|*/}").forEach(w)}}}(function(m){d.push(m)}),c=function(m,w,v){return w===0&&W8.indexOf(v[t.length])!==-1||v.match(r)?m:"."+n};function h(m,w,v,g){g===void 0&&(g="&");var y=m.replace(H8,""),S=w&&v?v+" "+w+" { "+y+" }":y;return n=g,t=w,i=new RegExp("\\"+t+"\\b","g"),r=new RegExp("(\\"+t+"\\b){2,}"),u(v||!w?"":w,S)}return u.use([].concat(f,[function(m,w,v){m===2&&v.length&&v[0].lastIndexOf(t)>0&&(v[0]=v[0].replace(i,c))},p,function(m){if(m===-2){var w=d;return d=[],w}}])),h.hash=f.length?f.reduce(function(m,w){return w.name||Lo(15),Tr(m,w.name)},5381).toString():"",h}var Nb=ee.createContext();Nb.Consumer;var Db=ee.createContext(),q8=(Db.Consumer,new Mb),Ac=U8();function V8(){return k.useContext(Nb)||q8}function G8(){return k.useContext(Db)||Ac}var Ib=function(){function e(n,t){var i=this;this.inject=function(r,a){a===void 0&&(a=Ac);var o=i.name+a.hash;r.hasNameForId(i.id,o)||r.insertRules(i.id,o,a(i.rules,o,"@keyframes"))},this.toString=function(){return Lo(12,String(i.name))},this.name=n,this.id="sc-keyframes-"+n,this.rules=t}return e.prototype.getName=function(n){return n===void 0&&(n=Ac),this.name+n.hash},e}(),K8=/([A-Z])/,Y8=/([A-Z])/g,Q8=/^ms-/,X8=function(e){return"-"+e.toLowerCase()};function Ov(e){return K8.test(e)?e.replace(Y8,X8).replace(Q8,"-ms-"):e}var Fv=function(e){return e==null||e===!1||e===""};function Jr(e,n,t,i){if(Array.isArray(e)){for(var r,a=[],o=0,s=e.length;o1?n-1:0),i=1;i?@[\\\]^`{|}~-]+/g,eC=/(^-|-$)/g;function Mu(e){return e.replace(Z8,"-").replace(eC,"")}var Hb=function(e){return jc(Lb(e)>>>0)};function ps(e){return typeof e=="string"&&!0}var Rc=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},nC=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function tC(e,n,t){var i=e[t];Rc(n)&&Rc(i)?Wb(i,n):e[t]=n}function Wb(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i=0||($[O]=x[O]);return $}(n,["componentId"]),E=y&&y+"-"+(ps(g)?g:Mu(Pv(g)));return qb(g,jt({},S,{attrs:p,componentId:E}),t)},Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(g){this._foldedDefaultProps=i?Wb({},e.defaultProps,g):g}}),Object.defineProperty(h,"toString",{value:function(){return"."+h.styledComponentId}}),r&&S8(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),h}var zc=function(e){return function n(t,i,r){if(r===void 0&&(r=ki),!v1.isValidElementType(i))return Lo(1,String(i));var a=function(){return t(i,r,Bb.apply(void 0,arguments))};return a.withConfig=function(o){return n(t,i,jt({},r,{},o))},a.attrs=function(o){return n(t,i,jt({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},a}(qb,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){zc[e]=zc(e)});function S1(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:{};if(typeof i[n]<"u")return i[n];if(n&&n.indexOf(".")>0){for(var r=n.split("."),a=r.length,o=i[r[0]],s=1;o!=null&&se.forEach(t=>fC(t,n))}function Vt(...e){return k.useCallback(Gb(...e),e)}function P1(e,n=[]){let t=[];function i(a,o){const s=k.createContext(o),l=t.length;t=[...t,o];function f(d){const{scope:p,children:c,...h}=d,m=(p==null?void 0:p[e][l])||s,w=k.useMemo(()=>h,Object.values(h));return k.createElement(m.Provider,{value:w},c)}function u(d,p){const c=(p==null?void 0:p[e][l])||s,h=k.useContext(c);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return f.displayName=a+"Provider",[f,u]}const r=()=>{const a=t.map(o=>k.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return k.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return r.scopeName=e,[i,uC(r,...n)]}function uC(...e){const n=e[0];if(e.length===1)return n;const t=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const o=i.reduce((s,{useScope:l,scopeName:f})=>{const d=l(a)[`__scope${f}`];return{...s,...d}},{});return k.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return t.scopeName=n.scopeName,t}const $1=k.forwardRef((e,n)=>{const{children:t,...i}=e,r=k.Children.toArray(t),a=r.find(dC);if(a){const o=a.props.children,s=r.map(l=>l===a?k.Children.count(o)>1?k.Children.only(null):k.isValidElement(o)?o.props.children:null:l);return k.createElement(Mc,Ee({},i,{ref:n}),k.isValidElement(o)?k.cloneElement(o,void 0,s):null)}return k.createElement(Mc,Ee({},i,{ref:n}),t)});$1.displayName="Slot";const Mc=k.forwardRef((e,n)=>{const{children:t,...i}=e;return k.isValidElement(t)?k.cloneElement(t,{...cC(i,t.props),ref:n?Gb(n,t.ref):t.ref}):k.Children.count(t)>1?k.Children.only(null):null});Mc.displayName="SlotClone";const Kb=({children:e})=>k.createElement(k.Fragment,null,e);function dC(e){return k.isValidElement(e)&&e.type===Kb}function cC(e,n){const t={...n};for(const i in n){const r=e[i],a=n[i];/^on[A-Z]/.test(i)?r&&a?t[i]=(...s)=>{a(...s),r(...s)}:r&&(t[i]=r):i==="style"?t[i]={...r,...a}:i==="className"&&(t[i]=[r,a].filter(Boolean).join(" "))}return{...e,...t}}const pC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Gt=pC.reduce((e,n)=>{const t=k.forwardRef((i,r)=>{const{asChild:a,...o}=i,s=a?$1:n;return k.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),k.createElement(s,Ee({},o,{ref:r}))});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{});function hC(e,n){e&&Ro.flushSync(()=>e.dispatchEvent(n))}function Ci(e){const n=k.useRef(e);return k.useEffect(()=>{n.current=e}),k.useMemo(()=>(...t)=>{var i;return(i=n.current)===null||i===void 0?void 0:i.call(n,...t)},[])}function mC(e,n=globalThis==null?void 0:globalThis.document){const t=Ci(e);k.useEffect(()=>{const i=r=>{r.key==="Escape"&&t(r)};return n.addEventListener("keydown",i),()=>n.removeEventListener("keydown",i)},[t,n])}const Lc="dismissableLayer.update",vC="dismissableLayer.pointerDownOutside",gC="dismissableLayer.focusOutside";let dg;const yC=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yb=k.forwardRef((e,n)=>{var t;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...f}=e,u=k.useContext(yC),[d,p]=k.useState(null),c=(t=d==null?void 0:d.ownerDocument)!==null&&t!==void 0?t:globalThis==null?void 0:globalThis.document,[,h]=k.useState({}),m=Vt(n,O=>p(O)),w=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=w.indexOf(v),y=d?w.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,E=y>=g,x=wC(O=>{const D=O.target,$=[...u.branches].some(A=>A.contains(D));!E||$||(a==null||a(O),s==null||s(O),O.defaultPrevented||l==null||l())},c),P=kC(O=>{const D=O.target;[...u.branches].some(A=>A.contains(D))||(o==null||o(O),s==null||s(O),O.defaultPrevented||l==null||l())},c);return mC(O=>{y===u.layers.size-1&&(r==null||r(O),!O.defaultPrevented&&l&&(O.preventDefault(),l()))},c),k.useEffect(()=>{if(d)return i&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(dg=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),cg(),()=>{i&&u.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=dg)}},[d,c,i,u]),k.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),cg())},[d,u]),k.useEffect(()=>{const O=()=>h({});return document.addEventListener(Lc,O),()=>document.removeEventListener(Lc,O)},[]),k.createElement(Gt.div,Ee({},f,{ref:m,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:$n(e.onFocusCapture,P.onFocusCapture),onBlurCapture:$n(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:$n(e.onPointerDownCapture,x.onPointerDownCapture)}))});function wC(e,n=globalThis==null?void 0:globalThis.document){const t=Ci(e),i=k.useRef(!1),r=k.useRef(()=>{});return k.useEffect(()=>{const a=s=>{if(s.target&&!i.current){let u=function(){Qb(vC,t,f,{discrete:!0})};var l=u;const f={originalEvent:s};s.pointerType==="touch"?(n.removeEventListener("click",r.current),r.current=u,n.addEventListener("click",r.current,{once:!0})):u()}i.current=!1},o=window.setTimeout(()=>{n.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),n.removeEventListener("pointerdown",a),n.removeEventListener("click",r.current)}},[n,t]),{onPointerDownCapture:()=>i.current=!0}}function kC(e,n=globalThis==null?void 0:globalThis.document){const t=Ci(e),i=k.useRef(!1);return k.useEffect(()=>{const r=a=>{a.target&&!i.current&&Qb(gC,t,{originalEvent:a},{discrete:!1})};return n.addEventListener("focusin",r),()=>n.removeEventListener("focusin",r)},[n,t]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function cg(){const e=new CustomEvent(Lc);document.dispatchEvent(e)}function Qb(e,n,t,{discrete:i}){const r=t.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:t});n&&r.addEventListener(e,n,{once:!0}),i?hC(r,a):r.dispatchEvent(a)}const Zr=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},bC=ly["useId".toString()]||(()=>{});let _C=0;function Xb(e){const[n,t]=k.useState(bC());return Zr(()=>{e||t(i=>i??String(_C++))},[e]),e||(n?`radix-${n}`:"")}function da(e){return e.split("-")[1]}function T1(e){return e==="y"?"height":"width"}function Mt(e){return e.split("-")[0]}function sr(e){return["top","bottom"].includes(Mt(e))?"x":"y"}function pg(e,n,t){let{reference:i,floating:r}=e;const a=i.x+i.width/2-r.width/2,o=i.y+i.height/2-r.height/2,s=sr(n),l=T1(s),f=i[l]/2-r[l]/2,u=s==="x";let d;switch(Mt(n)){case"top":d={x:a,y:i.y-r.height};break;case"bottom":d={x:a,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:o};break;case"left":d={x:i.x-r.width,y:o};break;default:d={x:i.x,y:i.y}}switch(da(n)){case"start":d[s]-=f*(t&&u?-1:1);break;case"end":d[s]+=f*(t&&u?-1:1)}return d}const xC=async(e,n,t)=>{const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:o}=t,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(n));let f=await o.getElementRects({reference:e,floating:n,strategy:r}),{x:u,y:d}=pg(f,i,l),p=i,c={},h=0;for(let m=0;m({name:"arrow",options:e,async fn(n){const{x:t,y:i,placement:r,rects:a,platform:o,elements:s}=n,{element:l,padding:f=0}=Ut(e,n)||{};if(l==null)return{};const u=Jb(f),d={x:t,y:i},p=sr(r),c=T1(p),h=await o.getDimensions(l),m=p==="y",w=m?"top":"left",v=m?"bottom":"right",g=m?"clientHeight":"clientWidth",y=a.reference[c]+a.reference[p]-d[p]-a.floating[c],S=d[p]-a.reference[p],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let x=E?E[g]:0;x&&await(o.isElement==null?void 0:o.isElement(E))||(x=s.floating[g]||a.floating[c]);const P=y/2-S/2,O=x/2-h[c]/2-1,D=Co(u[w],O),$=Co(u[v],O),A=D,L=x-h[c]-$,q=x/2-h[c]/2+P,K=Nc(A,q,L),G=da(r)!=null&&q!=K&&a.reference[c]/2-(qe.concat(n,n+"-start",n+"-end"),[]);const SC={left:"right",right:"left",bottom:"top",top:"bottom"};function Al(e){return e.replace(/left|right|bottom|top/g,n=>SC[n])}function CC(e,n,t){t===void 0&&(t=!1);const i=da(e),r=sr(e),a=T1(r);let o=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(o=Al(o)),{main:o,cross:Al(o)}}const EC={start:"end",end:"start"};function Nu(e){return e.replace(/start|end/g,n=>EC[n])}const PC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var t;const{placement:i,middlewareData:r,rects:a,initialPlacement:o,platform:s,elements:l}=n,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:c="none",flipAlignment:h=!0,...m}=Ut(e,n),w=Mt(i),v=Mt(o)===o,g=await(s.isRTL==null?void 0:s.isRTL(l.floating)),y=d||(v||!h?[Al(o)]:function(A){const L=Al(A);return[Nu(A),L,Nu(L)]}(o));d||c==="none"||y.push(...function(A,L,q,K){const G=da(A);let Q=function(Z,z,Y){const C=["left","right"],ne=["right","left"],M=["top","bottom"],_=["bottom","top"];switch(Z){case"top":case"bottom":return Y?z?ne:C:z?C:ne;case"left":case"right":return z?M:_;default:return[]}}(Mt(A),q==="start",K);return G&&(Q=Q.map(Z=>Z+"-"+G),L&&(Q=Q.concat(Q.map(Nu)))),Q}(o,h,c,g));const S=[o,...y],E=await So(n,m),x=[];let P=((t=r.flip)==null?void 0:t.overflows)||[];if(f&&x.push(E[w]),u){const{main:A,cross:L}=CC(i,a,g);x.push(E[A],E[L])}if(P=[...P,{placement:i,overflows:x}],!x.every(A=>A<=0)){var O,D;const A=(((O=r.flip)==null?void 0:O.index)||0)+1,L=S[A];if(L)return{data:{index:A,overflows:P},reset:{placement:L}};let q=(D=P.filter(K=>K.overflows[0]<=0).sort((K,G)=>K.overflows[1]-G.overflows[1])[0])==null?void 0:D.placement;if(!q)switch(p){case"bestFit":{var $;const K=($=P.map(G=>[G.placement,G.overflows.filter(Q=>Q>0).reduce((Q,Z)=>Q+Z,0)]).sort((G,Q)=>G[1]-Q[1])[0])==null?void 0:$[0];K&&(q=K);break}case"initialPlacement":q=o}if(i!==q)return{reset:{placement:q}}}return{}}}};function mg(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function vg(e){return Zb.some(n=>e[n]>=0)}const $C=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:t}=n,{strategy:i="referenceHidden",...r}=Ut(e,n);switch(i){case"referenceHidden":{const a=mg(await So(n,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:vg(a)}}}case"escaped":{const a=mg(await So(n,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:a,escaped:vg(a)}}}default:return{}}}}},TC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){const{x:t,y:i}=n,r=await async function(a,o){const{placement:s,platform:l,elements:f}=a,u=await(l.isRTL==null?void 0:l.isRTL(f.floating)),d=Mt(s),p=da(s),c=sr(s)==="x",h=["left","top"].includes(d)?-1:1,m=u&&c?-1:1,w=Ut(o,a);let{mainAxis:v,crossAxis:g,alignmentAxis:y}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return p&&typeof y=="number"&&(g=p==="end"?-1*y:y),c?{x:g*m,y:v*h}:{x:v*h,y:g*m}}(n,e);return{x:t+r.x,y:i+r.y,data:r}}}};function e2(e){return e==="x"?"y":"x"}const OC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:t,y:i,placement:r}=n,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:w=>{let{x:v,y:g}=w;return{x:v,y:g}}},...l}=Ut(e,n),f={x:t,y:i},u=await So(n,l),d=sr(Mt(r)),p=e2(d);let c=f[d],h=f[p];if(a){const w=d==="y"?"bottom":"right";c=Nc(c+u[d==="y"?"top":"left"],c,c-u[w])}if(o){const w=p==="y"?"bottom":"right";h=Nc(h+u[p==="y"?"top":"left"],h,h-u[w])}const m=s.fn({...n,[d]:c,[p]:h});return{...m,data:{x:m.x-t,y:m.y-i}}}}},FC=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:t,y:i,placement:r,rects:a,middlewareData:o}=n,{offset:s=0,mainAxis:l=!0,crossAxis:f=!0}=Ut(e,n),u={x:t,y:i},d=sr(r),p=e2(d);let c=u[d],h=u[p];const m=Ut(s,n),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=d==="y"?"height":"width",S=a.reference[d]-a.floating[y]+w.mainAxis,E=a.reference[d]+a.reference[y]-w.mainAxis;cE&&(c=E)}if(f){var v,g;const y=d==="y"?"width":"height",S=["top","left"].includes(Mt(r)),E=a.reference[p]-a.floating[y]+(S&&((v=o.offset)==null?void 0:v[p])||0)+(S?0:w.crossAxis),x=a.reference[p]+a.reference[y]+(S?0:((g=o.offset)==null?void 0:g[p])||0)-(S?w.crossAxis:0);hx&&(h=x)}return{[d]:c,[p]:h}}}},jC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){const{placement:t,rects:i,platform:r,elements:a}=n,{apply:o=()=>{},...s}=Ut(e,n),l=await So(n,s),f=Mt(t),u=da(t),d=sr(t)==="x",{width:p,height:c}=i.floating;let h,m;f==="top"||f==="bottom"?(h=f,m=u===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,h=u==="end"?"top":"bottom");const w=c-l[h],v=p-l[m],g=!n.middlewareData.shift;let y=w,S=v;if(d){const x=p-l.left-l.right;S=u||g?Co(v,x):x}else{const x=c-l.top-l.bottom;y=u||g?Co(w,x):x}if(g&&!u){const x=Ni(l.left,0),P=Ni(l.right,0),O=Ni(l.top,0),D=Ni(l.bottom,0);d?S=p-2*(x!==0||P!==0?x+P:Ni(l.left,l.right)):y=c-2*(O!==0||D!==0?O+D:Ni(l.top,l.bottom))}await o({...n,availableWidth:S,availableHeight:y});const E=await r.getDimensions(a.floating);return p!==E.width||c!==E.height?{reset:{rects:!0}}:{}}}};function Wn(e){var n;return((n=e.ownerDocument)==null?void 0:n.defaultView)||window}function at(e){return Wn(e).getComputedStyle(e)}function n2(e){return e instanceof Wn(e).Node}function Ei(e){return n2(e)?(e.nodeName||"").toLowerCase():"#document"}function lt(e){return e instanceof Wn(e).HTMLElement}function Lt(e){return e instanceof Wn(e).Element}function gg(e){return typeof ShadowRoot<"u"&&(e instanceof Wn(e).ShadowRoot||e instanceof ShadowRoot)}function Eo(e){const{overflow:n,overflowX:t,overflowY:i,display:r}=at(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+t)&&!["inline","contents"].includes(r)}function AC(e){return["table","td","th"].includes(Ei(e))}function Dc(e){const n=O1(),t=at(e);return t.transform!=="none"||t.perspective!=="none"||!n&&!!t.backdropFilter&&t.backdropFilter!=="none"||!n&&!!t.filter&&t.filter!=="none"||["transform","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function O1(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Wf(e){return["html","body","#document"].includes(Ei(e))}const Ic=Math.min,Nr=Math.max,Rl=Math.round,hs=Math.floor,Zi=e=>({x:e,y:e});function t2(e){const n=at(e);let t=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const r=lt(e),a=r?e.offsetWidth:t,o=r?e.offsetHeight:i,s=Rl(t)!==a||Rl(i)!==o;return s&&(t=a,i=o),{width:t,height:i,$:s}}function F1(e){return Lt(e)?e:e.contextElement}function Dr(e){const n=F1(e);if(!lt(n))return Zi(1);const t=n.getBoundingClientRect(),{width:i,height:r,$:a}=t2(n);let o=(a?Rl(t.width):t.width)/i,s=(a?Rl(t.height):t.height)/r;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}const yg=Zi(0);function i2(e,n,t){var i,r;if(n===void 0&&(n=!0),!O1())return yg;const a=e?Wn(e):window;return!t||n&&t!==a?yg:{x:((i=a.visualViewport)==null?void 0:i.offsetLeft)||0,y:((r=a.visualViewport)==null?void 0:r.offsetTop)||0}}function er(e,n,t,i){n===void 0&&(n=!1),t===void 0&&(t=!1);const r=e.getBoundingClientRect(),a=F1(e);let o=Zi(1);n&&(i?Lt(i)&&(o=Dr(i)):o=Dr(e));const s=i2(a,t,i);let l=(r.left+s.x)/o.x,f=(r.top+s.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(a){const p=Wn(a),c=i&&Lt(i)?Wn(i):i;let h=p.frameElement;for(;h&&i&&c!==p;){const m=Dr(h),w=h.getBoundingClientRect(),v=getComputedStyle(h),g=w.left+(h.clientLeft+parseFloat(v.paddingLeft))*m.x,y=w.top+(h.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,f*=m.y,u*=m.x,d*=m.y,l+=g,f+=y,h=Wn(h).frameElement}}return jl({width:u,height:d,x:l,y:f})}function Nt(e){return((n2(e)?e.ownerDocument:e.document)||window.document).documentElement}function Uf(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function r2(e){return er(Nt(e)).left+Uf(e).scrollLeft}function ea(e){if(Ei(e)==="html")return e;const n=e.assignedSlot||e.parentNode||gg(e)&&e.host||Nt(e);return gg(n)?n.host:n}function a2(e){const n=ea(e);return Wf(n)?e.ownerDocument?e.ownerDocument.body:e.body:lt(n)&&Eo(n)?n:a2(n)}function zl(e,n){var t;n===void 0&&(n=[]);const i=a2(e),r=i===((t=e.ownerDocument)==null?void 0:t.body),a=Wn(i);return r?n.concat(a,a.visualViewport||[],Eo(i)?i:[]):n.concat(i,zl(i))}function wg(e,n,t){let i;if(n==="viewport")i=function(r,a){const o=Wn(r),s=Nt(r),l=o.visualViewport;let f=s.clientWidth,u=s.clientHeight,d=0,p=0;if(l){f=l.width,u=l.height;const c=O1();(!c||c&&a==="fixed")&&(d=l.offsetLeft,p=l.offsetTop)}return{width:f,height:u,x:d,y:p}}(e,t);else if(n==="document")i=function(r){const a=Nt(r),o=Uf(r),s=r.ownerDocument.body,l=Nr(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),f=Nr(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let u=-o.scrollLeft+r2(r);const d=-o.scrollTop;return at(s).direction==="rtl"&&(u+=Nr(a.clientWidth,s.clientWidth)-l),{width:l,height:f,x:u,y:d}}(Nt(e));else if(Lt(n))i=function(r,a){const o=er(r,!0,a==="fixed"),s=o.top+r.clientTop,l=o.left+r.clientLeft,f=lt(r)?Dr(r):Zi(1);return{width:r.clientWidth*f.x,height:r.clientHeight*f.y,x:l*f.x,y:s*f.y}}(n,t);else{const r=i2(e);i={...n,x:n.x-r.x,y:n.y-r.y}}return jl(i)}function o2(e,n){const t=ea(e);return!(t===n||!Lt(t)||Wf(t))&&(at(t).position==="fixed"||o2(t,n))}function kg(e,n){return lt(e)&&at(e).position!=="fixed"?n?n(e):e.offsetParent:null}function bg(e,n){const t=Wn(e);if(!lt(e))return t;let i=kg(e,n);for(;i&&AC(i)&&at(i).position==="static";)i=kg(i,n);return i&&(Ei(i)==="html"||Ei(i)==="body"&&at(i).position==="static"&&!Dc(i))?t:i||function(r){let a=ea(r);for(;lt(a)&&!Wf(a);){if(Dc(a))return a;a=ea(a)}return null}(e)||t}function RC(e,n,t){const i=lt(n),r=Nt(n),a=t==="fixed",o=er(e,!0,a,n);let s={scrollLeft:0,scrollTop:0};const l=Zi(0);if(i||!i&&!a)if((Ei(n)!=="body"||Eo(r))&&(s=Uf(n)),lt(n)){const f=er(n,!0,a,n);l.x=f.x+n.clientLeft,l.y=f.y+n.clientTop}else r&&(l.x=r2(r));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}const zC={getClippingRect:function(e){let{element:n,boundary:t,rootBoundary:i,strategy:r}=e;const a=t==="clippingAncestors"?function(f,u){const d=u.get(f);if(d)return d;let p=zl(f).filter(w=>Lt(w)&&Ei(w)!=="body"),c=null;const h=at(f).position==="fixed";let m=h?ea(f):f;for(;Lt(m)&&!Wf(m);){const w=at(m),v=Dc(m);v||w.position!=="fixed"||(c=null),(h?!v&&!c:!v&&w.position==="static"&&c&&["absolute","fixed"].includes(c.position)||Eo(m)&&!v&&o2(f,m))?p=p.filter(g=>g!==m):c=w,m=ea(m)}return u.set(f,p),p}(n,this._c):[].concat(t),o=[...a,i],s=o[0],l=o.reduce((f,u)=>{const d=wg(n,u,r);return f.top=Nr(d.top,f.top),f.right=Ic(d.right,f.right),f.bottom=Ic(d.bottom,f.bottom),f.left=Nr(d.left,f.left),f},wg(n,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:n,offsetParent:t,strategy:i}=e;const r=lt(t),a=Nt(t);if(t===a)return n;let o={scrollLeft:0,scrollTop:0},s=Zi(1);const l=Zi(0);if((r||!r&&i!=="fixed")&&((Ei(t)!=="body"||Eo(a))&&(o=Uf(t)),lt(t))){const f=er(t);s=Dr(t),l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-o.scrollLeft*s.x+l.x,y:n.y*s.y-o.scrollTop*s.y+l.y}},isElement:Lt,getDimensions:function(e){return t2(e)},getOffsetParent:bg,getDocumentElement:Nt,getScale:Dr,async getElementRects(e){let{reference:n,floating:t,strategy:i}=e;const r=this.getOffsetParent||bg,a=this.getDimensions;return{reference:RC(n,await r(t),i),floating:{x:0,y:0,...await a(t)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>at(e).direction==="rtl"};function MC(e,n,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:o=!0,layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,f=F1(e),u=r||a?[...f?zl(f):[],...zl(n)]:[];u.forEach(m=>{r&&m.addEventListener("scroll",t,{passive:!0}),a&&m.addEventListener("resize",t)});const d=f&&s?function(m,w){let v,g=null;const y=Nt(m);function S(){clearTimeout(v),g&&g.disconnect(),g=null}return function E(x,P){x===void 0&&(x=!1),P===void 0&&(P=1),S();const{left:O,top:D,width:$,height:A}=m.getBoundingClientRect();if(x||w(),!$||!A)return;const L=hs(D),q=hs(y.clientWidth-(O+$)),K=hs(y.clientHeight-(D+A)),G=hs(O);let Q=!0;g=new IntersectionObserver(Z=>{const z=Z[0].intersectionRatio;if(z!==P){if(!Q)return E();z?E(!1,z):v=setTimeout(()=>{E(!1,1e-7)},100)}Q=!1},{rootMargin:-L+"px "+-q+"px "+-K+"px "+-G+"px",threshold:Nr(0,Ic(1,P))||1}),g.observe(m)}(!0),S}(f,t):null;let p,c=null;o&&(c=new ResizeObserver(t),f&&!l&&c.observe(f),c.observe(n));let h=l?er(e):null;return l&&function m(){const w=er(e);!h||w.x===h.x&&w.y===h.y&&w.width===h.width&&w.height===h.height||t(),h=w,p=requestAnimationFrame(m)}(),t(),()=>{u.forEach(m=>{r&&m.removeEventListener("scroll",t),a&&m.removeEventListener("resize",t)}),d&&d(),c&&c.disconnect(),c=null,l&&cancelAnimationFrame(p)}}const LC=(e,n,t)=>{const i=new Map,r={platform:zC,...t},a={...r.platform,_c:i};return xC(e,n,{...r,platform:a})},NC=e=>{function n(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:i,padding:r}=typeof e=="function"?e(t):e;return i&&n(i)?i.current!=null?hg({element:i.current,padding:r}).fn(t):{}:i?hg({element:i,padding:r}).fn(t):{}}}};var Ws=typeof document<"u"?k.useLayoutEffect:k.useEffect;function Ml(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let t,i,r;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!=n.length)return!1;for(i=t;i--!==0;)if(!Ml(e[i],n[i]))return!1;return!0}if(r=Object.keys(e),t=r.length,t!==Object.keys(n).length)return!1;for(i=t;i--!==0;)if(!{}.hasOwnProperty.call(n,r[i]))return!1;for(i=t;i--!==0;){const a=r[i];if(!(a==="_owner"&&e.$$typeof)&&!Ml(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function s2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _g(e,n){const t=s2(e);return Math.round(n*t)/t}function xg(e){const n=k.useRef(e);return Ws(()=>{n.current=e}),n}function DC(e){e===void 0&&(e={});const{placement:n="bottom",strategy:t="absolute",middleware:i=[],platform:r,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:f}=e,[u,d]=k.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[p,c]=k.useState(i);Ml(p,i)||c(i);const[h,m]=k.useState(null),[w,v]=k.useState(null),g=k.useCallback(Q=>{Q!=x.current&&(x.current=Q,m(Q))},[m]),y=k.useCallback(Q=>{Q!==P.current&&(P.current=Q,v(Q))},[v]),S=a||h,E=o||w,x=k.useRef(null),P=k.useRef(null),O=k.useRef(u),D=xg(l),$=xg(r),A=k.useCallback(()=>{if(!x.current||!P.current)return;const Q={placement:n,strategy:t,middleware:p};$.current&&(Q.platform=$.current),LC(x.current,P.current,Q).then(Z=>{const z={...Z,isPositioned:!0};L.current&&!Ml(O.current,z)&&(O.current=z,Ro.flushSync(()=>{d(z)}))})},[p,n,t,$]);Ws(()=>{f===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(Q=>({...Q,isPositioned:!1})))},[f]);const L=k.useRef(!1);Ws(()=>(L.current=!0,()=>{L.current=!1}),[]),Ws(()=>{if(S&&(x.current=S),E&&(P.current=E),S&&E){if(D.current)return D.current(S,E,A);A()}},[S,E,A,D]);const q=k.useMemo(()=>({reference:x,floating:P,setReference:g,setFloating:y}),[g,y]),K=k.useMemo(()=>({reference:S,floating:E}),[S,E]),G=k.useMemo(()=>{const Q={position:t,left:0,top:0};if(!K.floating)return Q;const Z=_g(K.floating,u.x),z=_g(K.floating,u.y);return s?{...Q,transform:"translate("+Z+"px, "+z+"px)",...s2(K.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:Z,top:z}},[t,s,K.floating,u.x,u.y]);return k.useMemo(()=>({...u,update:A,refs:q,elements:K,floatingStyles:G}),[u,A,q,K,G])}const IC=k.forwardRef((e,n)=>{const{children:t,width:i=10,height:r=5,...a}=e;return k.createElement(Gt.svg,Ee({},a,{ref:n,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?t:k.createElement("polygon",{points:"0,0 30,0 15,10"}))}),BC=IC;function HC(e){const[n,t]=k.useState(void 0);return Zr(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,f=Array.isArray(l)?l[0]:l;o=f.inlineSize,s=f.blockSize}else o=e.offsetWidth,s=e.offsetHeight;t({width:o,height:s})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),n}const l2="Popper",[f2,qf]=P1(l2),[WC,u2]=f2(l2),UC=e=>{const{__scopePopper:n,children:t}=e,[i,r]=k.useState(null);return k.createElement(WC,{scope:n,anchor:i,onAnchorChange:r},t)},qC="PopperAnchor",VC=k.forwardRef((e,n)=>{const{__scopePopper:t,virtualRef:i,...r}=e,a=u2(qC,t),o=k.useRef(null),s=Vt(n,o);return k.useEffect(()=>{a.onAnchorChange((i==null?void 0:i.current)||o.current)}),i?null:k.createElement(Gt.div,Ee({},r,{ref:s}))}),d2="PopperContent",[GC,KC]=f2(d2),YC=k.forwardRef((e,n)=>{var t,i,r,a,o,s,l,f;const{__scopePopper:u,side:d="bottom",sideOffset:p=0,align:c="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:w=[],collisionPadding:v=0,sticky:g="partial",hideWhenDetached:y=!1,avoidCollisions:S=!0,onPlaced:E,...x}=e,P=u2(d2,u),[O,D]=k.useState(null),$=Vt(n,qe=>D(qe)),[A,L]=k.useState(null),q=HC(A),K=(t=q==null?void 0:q.width)!==null&&t!==void 0?t:0,G=(i=q==null?void 0:q.height)!==null&&i!==void 0?i:0,Q=d+(c!=="center"?"-"+c:""),Z=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},z=Array.isArray(w)?w:[w],Y=z.length>0,C={padding:Z,boundary:z.filter(ZC),altBoundary:Y},{refs:ne,floatingStyles:M,placement:_,isPositioned:U,middlewareData:J}=DC({strategy:"fixed",placement:Q,whileElementsMounted:MC,elements:{reference:P.anchor},middleware:[TC({mainAxis:p+G,alignmentAxis:h}),S&&OC({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?FC():void 0,...C}),S&&PC({...C}),jC({...C,apply:({elements:qe,rects:ce,availableWidth:Be,availableHeight:me})=>{const{width:Ne,height:_t}=ce.reference,$e=qe.floating.style;$e.setProperty("--radix-popper-available-width",`${Be}px`),$e.setProperty("--radix-popper-available-height",`${me}px`),$e.setProperty("--radix-popper-anchor-width",`${Ne}px`),$e.setProperty("--radix-popper-anchor-height",`${_t}px`)}}),A&&NC({element:A,padding:m}),eE({arrowWidth:K,arrowHeight:G}),y&&$C({strategy:"referenceHidden"})]}),[F,ae]=c2(_),I=Ci(E);Zr(()=>{U&&(I==null||I())},[U,I]);const we=(r=J.arrow)===null||r===void 0?void 0:r.x,fe=(a=J.arrow)===null||a===void 0?void 0:a.y,he=((o=J.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[oe,Ie]=k.useState();return Zr(()=>{O&&Ie(window.getComputedStyle(O).zIndex)},[O]),k.createElement("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:U?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,["--radix-popper-transform-origin"]:[(s=J.transformOrigin)===null||s===void 0?void 0:s.x,(l=J.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},k.createElement(GC,{scope:u,placedSide:F,onArrowChange:L,arrowX:we,arrowY:fe,shouldHideArrow:he},k.createElement(Gt.div,Ee({"data-side":F,"data-align":ae},x,{ref:$,style:{...x.style,animation:U?void 0:"none",opacity:(f=J.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))}),QC="PopperArrow",XC={top:"bottom",right:"left",bottom:"top",left:"right"},JC=k.forwardRef(function(n,t){const{__scopePopper:i,...r}=n,a=KC(QC,i),o=XC[a.placedSide];return k.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},k.createElement(BC,Ee({},r,{ref:t,style:{...r.style,display:"block"}})))});function ZC(e){return e!==null}const eE=e=>({name:"transformOrigin",options:e,fn(n){var t,i,r,a,o;const{placement:s,rects:l,middlewareData:f}=n,d=((t=f.arrow)===null||t===void 0?void 0:t.centerOffset)!==0,p=d?0:e.arrowWidth,c=d?0:e.arrowHeight,[h,m]=c2(s),w={start:"0%",center:"50%",end:"100%"}[m],v=((i=(r=f.arrow)===null||r===void 0?void 0:r.x)!==null&&i!==void 0?i:0)+p/2,g=((a=(o=f.arrow)===null||o===void 0?void 0:o.y)!==null&&a!==void 0?a:0)+c/2;let y="",S="";return h==="bottom"?(y=d?w:`${v}px`,S=`${-c}px`):h==="top"?(y=d?w:`${v}px`,S=`${l.floating.height+c}px`):h==="right"?(y=`${-c}px`,S=d?w:`${g}px`):h==="left"&&(y=`${l.floating.width+c}px`,S=d?w:`${g}px`),{data:{x:y,y:S}}}});function c2(e){const[n,t="center"]=e.split("-");return[n,t]}const p2=UC,h2=VC,m2=YC,nE=JC,v2=k.forwardRef((e,n)=>{var t;const{container:i=globalThis==null||(t=globalThis.document)===null||t===void 0?void 0:t.body,...r}=e;return i?z6.createPortal(k.createElement(Gt.div,Ee({},r,{ref:n})),i):null});function tE(e,n){return k.useReducer((t,i)=>{const r=n[t][i];return r??t},e)}const Do=e=>{const{present:n,children:t}=e,i=iE(n),r=typeof t=="function"?t({present:i.isPresent}):k.Children.only(t),a=Vt(i.ref,r.ref);return typeof t=="function"||i.isPresent?k.cloneElement(r,{ref:a}):null};Do.displayName="Presence";function iE(e){const[n,t]=k.useState(),i=k.useRef({}),r=k.useRef(e),a=k.useRef("none"),o=e?"mounted":"unmounted",[s,l]=tE(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const f=ms(i.current);a.current=s==="mounted"?f:"none"},[s]),Zr(()=>{const f=i.current,u=r.current;if(u!==e){const p=a.current,c=ms(f);e?l("MOUNT"):c==="none"||(f==null?void 0:f.display)==="none"?l("UNMOUNT"):l(u&&p!==c?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),Zr(()=>{if(n){const f=d=>{const c=ms(i.current).includes(d.animationName);d.target===n&&c&&Ro.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===n&&(a.current=ms(i.current))};return n.addEventListener("animationstart",u),n.addEventListener("animationcancel",f),n.addEventListener("animationend",f),()=>{n.removeEventListener("animationstart",u),n.removeEventListener("animationcancel",f),n.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[n,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:k.useCallback(f=>{f&&(i.current=getComputedStyle(f)),t(f)},[])}}function ms(e){return(e==null?void 0:e.animationName)||"none"}function g2({prop:e,defaultProp:n,onChange:t=()=>{}}){const[i,r]=rE({defaultProp:n,onChange:t}),a=e!==void 0,o=a?e:i,s=Ci(t),l=k.useCallback(f=>{if(a){const d=typeof f=="function"?f(e):f;d!==e&&s(d)}else r(f)},[a,e,r,s]);return[o,l]}function rE({defaultProp:e,onChange:n}){const t=k.useState(e),[i]=t,r=k.useRef(i),a=Ci(n);return k.useEffect(()=>{r.current!==i&&(a(i),r.current=i)},[i,r,a]),t}const aE=k.forwardRef((e,n)=>k.createElement(Gt.span,Ee({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),oE=aE,[Vf,nz]=P1("Tooltip",[qf]),j1=qf(),sE="TooltipProvider",lE=700,Bc="tooltip.open",[fE,A1]=Vf(sE),uE=e=>{const{__scopeTooltip:n,delayDuration:t=lE,skipDelayDuration:i=300,disableHoverableContent:r=!1,children:a}=e,[o,s]=k.useState(!0),l=k.useRef(!1),f=k.useRef(0);return k.useEffect(()=>{const u=f.current;return()=>window.clearTimeout(u)},[]),k.createElement(fE,{scope:n,isOpenDelayed:o,delayDuration:t,onOpen:k.useCallback(()=>{window.clearTimeout(f.current),s(!1)},[]),onClose:k.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>s(!0),i)},[i]),isPointerInTransitRef:l,onPointerInTransitChange:k.useCallback(u=>{l.current=u},[]),disableHoverableContent:r},a)},R1="Tooltip",[dE,Io]=Vf(R1),cE=e=>{const{__scopeTooltip:n,children:t,open:i,defaultOpen:r=!1,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=A1(R1,e.__scopeTooltip),f=j1(n),[u,d]=k.useState(null),p=Xb(),c=k.useRef(0),h=o??l.disableHoverableContent,m=s??l.delayDuration,w=k.useRef(!1),[v=!1,g]=g2({prop:i,defaultProp:r,onChange:P=>{P?(l.onOpen(),document.dispatchEvent(new CustomEvent(Bc))):l.onClose(),a==null||a(P)}}),y=k.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),S=k.useCallback(()=>{window.clearTimeout(c.current),w.current=!1,g(!0)},[g]),E=k.useCallback(()=>{window.clearTimeout(c.current),g(!1)},[g]),x=k.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>{w.current=!0,g(!0)},m)},[m,g]);return k.useEffect(()=>()=>window.clearTimeout(c.current),[]),k.createElement(p2,f,k.createElement(dE,{scope:n,contentId:p,open:v,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:k.useCallback(()=>{l.isOpenDelayed?x():S()},[l.isOpenDelayed,x,S]),onTriggerLeave:k.useCallback(()=>{h?E():window.clearTimeout(c.current)},[E,h]),onOpen:S,onClose:E,disableHoverableContent:h},t))},Sg="TooltipTrigger",pE=k.forwardRef((e,n)=>{const{__scopeTooltip:t,...i}=e,r=Io(Sg,t),a=A1(Sg,t),o=j1(t),s=k.useRef(null),l=Vt(n,s,r.onTriggerChange),f=k.useRef(!1),u=k.useRef(!1),d=k.useCallback(()=>f.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),k.createElement(h2,Ee({asChild:!0},o),k.createElement(Gt.button,Ee({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},i,{ref:l,onPointerMove:$n(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:$n(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:$n(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:$n(e.onFocus,()=>{f.current||r.onOpen()}),onBlur:$n(e.onBlur,r.onClose),onClick:$n(e.onClick,r.onClose)})))}),y2="TooltipPortal",[hE,mE]=Vf(y2,{forceMount:void 0}),vE=e=>{const{__scopeTooltip:n,forceMount:t,children:i,container:r}=e,a=Io(y2,n);return k.createElement(hE,{scope:n,forceMount:t},k.createElement(Do,{present:t||a.open},k.createElement(v2,{asChild:!0,container:r},i)))},Po="TooltipContent",gE=k.forwardRef((e,n)=>{const t=mE(Po,e.__scopeTooltip),{forceMount:i=t.forceMount,side:r="top",...a}=e,o=Io(Po,e.__scopeTooltip);return k.createElement(Do,{present:i||o.open},o.disableHoverableContent?k.createElement(w2,Ee({side:r},a,{ref:n})):k.createElement(yE,Ee({side:r},a,{ref:n})))}),yE=k.forwardRef((e,n)=>{const t=Io(Po,e.__scopeTooltip),i=A1(Po,e.__scopeTooltip),r=k.useRef(null),a=Vt(n,r),[o,s]=k.useState(null),{trigger:l,onClose:f}=t,u=r.current,{onPointerInTransitChange:d}=i,p=k.useCallback(()=>{s(null),d(!1)},[d]),c=k.useCallback((h,m)=>{const w=h.currentTarget,v={x:h.clientX,y:h.clientY},g=kE(v,w.getBoundingClientRect()),y=bE(v,g),S=_E(m.getBoundingClientRect()),E=SE([...y,...S]);s(E),d(!0)},[d]);return k.useEffect(()=>()=>p(),[p]),k.useEffect(()=>{if(l&&u){const h=w=>c(w,u),m=w=>c(w,l);return l.addEventListener("pointerleave",h),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",m)}}},[l,u,c,p]),k.useEffect(()=>{if(o){const h=m=>{const w=m.target,v={x:m.clientX,y:m.clientY},g=(l==null?void 0:l.contains(w))||(u==null?void 0:u.contains(w)),y=!xE(v,o);g?p():y&&(p(),f())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[l,u,o,f,p]),k.createElement(w2,Ee({},e,{ref:a}))}),[wE,tz]=Vf(R1,{isInside:!1}),w2=k.forwardRef((e,n)=>{const{__scopeTooltip:t,children:i,"aria-label":r,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=Io(Po,t),f=j1(t),{onClose:u}=l;return k.useEffect(()=>(document.addEventListener(Bc,u),()=>document.removeEventListener(Bc,u)),[u]),k.useEffect(()=>{if(l.trigger){const d=p=>{const c=p.target;c!=null&&c.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),k.createElement(Yb,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u},k.createElement(m2,Ee({"data-state":l.stateAttribute},f,s,{ref:n,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),k.createElement(Kb,null,i),k.createElement(wE,{scope:t,isInside:!0},k.createElement(oE,{id:l.contentId,role:"tooltip"},r||i))))});function kE(e,n){const t=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),r=Math.abs(n.right-e.x),a=Math.abs(n.left-e.x);switch(Math.min(t,i,r,a)){case a:return"left";case r:return"right";case t:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function bE(e,n,t=5){const i=[];switch(n){case"top":i.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":i.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":i.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":i.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return i}function _E(e){const{top:n,right:t,bottom:i,left:r}=e;return[{x:r,y:n},{x:t,y:n},{x:t,y:i},{x:r,y:i}]}function xE(e,n){const{x:t,y:i}=e;let r=!1;for(let a=0,o=n.length-1;ai!=u>i&&t<(f-s)*(i-l)/(u-l)+s&&(r=!r)}return r}function SE(e){const n=e.slice();return n.sort((t,i)=>t.xi.x?1:t.yi.y?1:0),CE(n)}function CE(e){if(e.length<=1)return e.slice();const n=[];for(let i=0;i=2;){const a=n[n.length-1],o=n[n.length-2];if((a.x-o.x)*(r.y-o.y)>=(a.y-o.y)*(r.x-o.x))n.pop();else break}n.push(r)}n.pop();const t=[];for(let i=e.length-1;i>=0;i--){const r=e[i];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(r.y-o.y)>=(a.y-o.y)*(r.x-o.x))t.pop();else break}t.push(r)}return t.pop(),n.length===1&&t.length===1&&n[0].x===t[0].x&&n[0].y===t[0].y?n:n.concat(t)}const EE=uE,PE=cE,$E=pE,TE=vE,OE=gE;function FE({children:e,tooltipContent:n}){return b.jsx(EE,{children:b.jsxs(PE,{children:[b.jsx($E,{asChild:!0,children:e}),b.jsx(TE,{children:b.jsx(OE,{asChild:!0,align:"center",children:n})})]})})}function jE(e){const n=new Date(e),t=n.getHours(),i=String(n.getMinutes()).padStart(2,"0"),r=t>=12?"PM":"AM";return`${t%12||12}:${i} ${r}`}function z1({text:e,every:n,onFinish:t,shouldStart:i=!0}){const[r,a]=k.useState(""),[o,s]=k.useState(0),[l,f]=k.useState(!1),u=n||1e-5;return k.useEffect(()=>{if(i)if(o{a(e.substring(0,o+1)),s(p=>p+1)},u);return()=>{clearInterval(d)}}else f(!0),typeof t=="function"&&t()},[e,o,u,t,i]),{displayText:r,isComplete:l,text:e}}const Cg=["http","https","mailto","tel"];function AE(e){const n=(e||"").trim(),t=n.charAt(0);if(t==="#"||t==="/")return n;const i=n.indexOf(":");if(i===-1)return n;let r=-1;for(;++rr||(r=n.indexOf("#"),r!==-1&&i>r)?n:"javascript:void(0)"}/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */var RE=function(n){return n!=null&&n.constructor!=null&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)};const k2=wt(RE);function Qa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Eg(e.position):"start"in e||"end"in e?Eg(e):"line"in e||"column"in e?Hc(e):""}function Hc(e){return Pg(e&&e.line)+":"+Pg(e&&e.column)}function Eg(e){return Hc(e&&e.start)+"-"+Hc(e&&e.end)}function Pg(e){return e&&typeof e=="number"?e:1}class Gn extends Error{constructor(n,t,i){const r=[null,null];let a={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof t=="string"&&(i=t,t=void 0),typeof i=="string"){const o=i.indexOf(":");o===-1?r[1]=i:(r[0]=i.slice(0,o),r[1]=i.slice(o+1))}t&&("type"in t||"position"in t?t.position&&(a=t.position):"start"in t||"end"in t?a=t:("line"in t||"column"in t)&&(a.start=t)),this.name=Qa(t)||"1:1",this.message=typeof n=="object"?n.message:n,this.stack="",typeof n=="object"&&n.stack&&(this.stack=n.stack),this.reason=this.message,this.fatal,this.line=a.start.line,this.column=a.start.column,this.position=a,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}Gn.prototype.file="";Gn.prototype.name="";Gn.prototype.reason="";Gn.prototype.message="";Gn.prototype.stack="";Gn.prototype.fatal=null;Gn.prototype.column=null;Gn.prototype.line=null;Gn.prototype.source=null;Gn.prototype.ruleId=null;Gn.prototype.position=null;const dt={basename:zE,dirname:ME,extname:LE,join:NE,sep:"/"};function zE(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Bo(e);let t=0,i=-1,r=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;r--;)if(e.charCodeAt(r)===47){if(a){t=r+1;break}}else i<0&&(a=!0,i=r+1);return i<0?"":e.slice(t,i)}if(n===e)return"";let o=-1,s=n.length-1;for(;r--;)if(e.charCodeAt(r)===47){if(a){t=r+1;break}}else o<0&&(a=!0,o=r+1),s>-1&&(e.charCodeAt(r)===n.charCodeAt(s--)?s<0&&(i=r):(s=-1,i=o));return t===i?i=o:i<0&&(i=e.length),e.slice(t,i)}function ME(e){if(Bo(e),e.length===0)return".";let n=-1,t=e.length,i;for(;--t;)if(e.charCodeAt(t)===47){if(i){n=t;break}}else i||(i=!0);return n<0?e.charCodeAt(0)===47?"/":".":n===1&&e.charCodeAt(0)===47?"//":e.slice(0,n)}function LE(e){Bo(e);let n=e.length,t=-1,i=0,r=-1,a=0,o;for(;n--;){const s=e.charCodeAt(n);if(s===47){if(o){i=n+1;break}continue}t<0&&(o=!0,t=n+1),s===46?r<0?r=n:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===i+1?"":e.slice(r,t)}function NE(...e){let n=-1,t;for(;++n0&&e.charCodeAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function IE(e,n){let t="",i=0,r=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=t.lastIndexOf("/"),l!==t.length-1){l<0?(t="",i=0):(t=t.slice(0,l),i=t.length-1-t.lastIndexOf("/")),r=o,a=0;continue}}else if(t.length>0){t="",i=0,r=o,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+e.slice(r+1,o):t=e.slice(r+1,o),i=o-r-1;r=o,a=0}else s===46&&a>-1?a++:a=-1}return t}function Bo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const BE={cwd:HE};function HE(){return"/"}function Wc(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function WE(e){if(typeof e=="string")e=new URL(e);else if(!Wc(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return UE(e)}function UE(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let t=-1;for(;++t"u"||Us.call(n,r)},Rg=function(n,t){Og&&t.name==="__proto__"?Og(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},zg=function(n,t){if(t==="__proto__")if(Us.call(n,t)){if(Fg)return Fg(n,t).value}else return;return n[t]},VE=function e(){var n,t,i,r,a,o,s=arguments[0],l=1,f=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(r);try{l=e.apply(this,o)}catch(f){const u=f;if(s&&t)throw u;return r(u)}s||(l instanceof Promise?l.then(a,r):l instanceof Error?r(l):a(l))}function r(o,...s){t||(t=!0,n(o,...s))}function a(o){r(null,o)}}const YE=S2().freeze(),x2={}.hasOwnProperty;function S2(){const e=GE(),n=[];let t={},i,r=-1;return a.data=o,a.Parser=void 0,a.Compiler=void 0,a.freeze=s,a.attachers=n,a.use=l,a.parse=f,a.stringify=u,a.run=d,a.runSync=p,a.process=c,a.processSync=h,a;function a(){const m=S2();let w=-1;for(;++w{if(x||!P||!O)E(x);else{const D=a.stringify(P,O);D==null||(JE(D)?O.value=D:O.result=D),E(x,O)}});function E(x,P){x||!P?y(x):g?g(P):w(null,P)}}}function h(m){let w;a.freeze(),Hu("processSync",a.Parser),Wu("processSync",a.Compiler);const v=Oa(m);return a.process(v,g),Dg("processSync","process",w),v;function g(y){w=!0,Tg(y)}}}function Lg(e,n){return typeof e=="function"&&e.prototype&&(QE(e.prototype)||n in e.prototype)}function QE(e){let n;for(n in e)if(x2.call(e,n))return!0;return!1}function Hu(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function Wu(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Uu(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ng(e){if(!Uc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Dg(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Oa(e){return XE(e)?e:new b2(e)}function XE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function JE(e){return typeof e=="string"||k2(e)}const ZE={};function eP(e,n){const t=n||ZE,i=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,r=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return C2(e,i,r)}function C2(e,n,t){if(nP(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ig(e.children,n,t)}return Array.isArray(e)?Ig(e,n,t):""}function Ig(e,n,t){const i=[];let r=-1;for(;++rr?0:r+n:n=n>r?r:n,t=t>0?t:0,i.length<1e4)o=Array.from(i),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a0?(Fn(e,e.length,0,n),e):n}const Bg={}.hasOwnProperty;function E2(e){const n={};let t=-1;for(;++to))return;const P=n.events.length;let O=P,D,$;for(;O--;)if(n.events[O][0]==="exit"&&n.events[O][1].type==="chunkFlow"){if(D){$=n.events[O][1].end;break}D=!0}for(v(i),x=P;xy;){const E=t[S];n.containerState=E[1],E[0].exit.call(n,e)}t.length=y}function g(){r.write([null]),a=void 0,r=void 0,n.containerState._closeFlow=void 0}}function cP(e,n,t){return ve(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Nl(e){if(e===null||Ce(e)||nr(e))return 1;if(Gf(e))return 2}function Kf(e,n,t){const i=[];let r=-1;for(;++r1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const d=Object.assign({},e[i][1].end),p=Object.assign({},e[t][1].start);Wg(d,-l),Wg(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[i][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:p},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[t][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[i][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},s.end),f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=Nn(f,[["enter",e[i][1],n],["exit",e[i][1],n]])),f=Nn(f,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",a,n]]),f=Nn(f,Kf(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),f=Nn(f,[["exit",a,n],["enter",s,n],["exit",s,n],["exit",r,n]]),e[t][1].end.offset-e[t][1].start.offset?(u=2,f=Nn(f,[["enter",e[t][1],n],["exit",e[t][1],n]])):u=0,Fn(e,i-1,t-i+3,f),t=i+f.length-u-2;break}}for(t=-1;++t0&&de(x)?ve(e,g,"linePrefix",a+1)(x):g(x)}function g(x){return x===null||te(x)?e.check(qg,m,S)(x):(e.enter("codeFlowValue"),y(x))}function y(x){return x===null||te(x)?(e.exit("codeFlowValue"),g(x)):(e.consume(x),y)}function S(x){return e.exit("codeFenced"),n(x)}function E(x,P,O){let D=0;return $;function $(G){return x.enter("lineEnding"),x.consume(G),x.exit("lineEnding"),A}function A(G){return x.enter("codeFencedFence"),de(G)?ve(x,L,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):L(G)}function L(G){return G===s?(x.enter("codeFencedFenceSequence"),q(G)):O(G)}function q(G){return G===s?(D++,x.consume(G),q):D>=o?(x.exit("codeFencedFenceSequence"),de(G)?ve(x,K,"whitespace")(G):K(G)):O(G)}function K(G){return G===null||te(G)?(x.exit("codeFencedFence"),P(G)):O(G)}}}function SP(e,n,t){const i=this;return r;function r(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}const qu={name:"codeIndented",tokenize:EP},CP={tokenize:PP,partial:!0};function EP(e,n,t){const i=this;return r;function r(f){return e.enter("codeIndented"),ve(e,a,"linePrefix",4+1)(f)}function a(f){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(f):t(f)}function o(f){return f===null?l(f):te(f)?e.attempt(CP,o,l)(f):(e.enter("codeFlowValue"),s(f))}function s(f){return f===null||te(f)?(e.exit("codeFlowValue"),o(f)):(e.consume(f),s)}function l(f){return e.exit("codeIndented"),n(f)}}function PP(e,n,t){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?t(o):te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):ve(e,a,"linePrefix",4+1)(o)}function a(o){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?n(o):te(o)?r(o):t(o)}}const $P={name:"codeText",tokenize:FP,resolve:TP,previous:OP};function TP(e){let n=e.length-4,t=3,i,r;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i=4?n(o):e.interrupt(i.parser.constructs.flow,t,n)(o)}}function F2(e,n,t,i,r,a,o,s,l){const f=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(v){return v===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(v),e.exit(a),p):v===null||v===32||v===41||Ll(v)?t(v):(e.enter(i),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(v))}function p(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(r),e.exit(i),n):(e.enter(s),e.enter("chunkString",{contentType:"string"}),c(v))}function c(v){return v===62?(e.exit("chunkString"),e.exit(s),p(v)):v===null||v===60||te(v)?t(v):(e.consume(v),v===92?h:c)}function h(v){return v===60||v===62||v===92?(e.consume(v),c):c(v)}function m(v){return!u&&(v===null||v===41||Ce(v))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(i),n(v)):u999||c===null||c===91||c===93&&!l||c===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?t(c):c===93?(e.exit(a),e.enter(r),e.consume(c),e.exit(r),e.exit(i),n):te(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(c))}function d(c){return c===null||c===91||c===93||te(c)||s++>999?(e.exit("chunkString"),u(c)):(e.consume(c),l||(l=!de(c)),c===92?p:d)}function p(c){return c===91||c===92||c===93?(e.consume(c),s++,d):d(c)}}function A2(e,n,t,i,r,a){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(i),e.enter(r),e.consume(p),e.exit(r),o=p===40?41:p,l):t(p)}function l(p){return p===o?(e.enter(r),e.consume(p),e.exit(r),e.exit(i),n):(e.enter(a),f(p))}function f(p){return p===o?(e.exit(a),l(o)):p===null?t(p):te(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ve(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===o||p===null||te(p)?(e.exit("chunkString"),f(p)):(e.consume(p),p===92?d:u)}function d(p){return p===o||p===92?(e.consume(p),u):u(p)}}function Xa(e,n){let t;return i;function i(r){return te(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t=!0,i):de(r)?ve(e,i,t?"linePrefix":"lineSuffix")(r):n(r)}}function ot(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const NP={name:"definition",tokenize:IP},DP={tokenize:BP,partial:!0};function IP(e,n,t){const i=this;let r;return a;function a(c){return e.enter("definition"),o(c)}function o(c){return j2.call(i,e,s,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(c)}function s(c){return r=ot(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),c===58?(e.enter("definitionMarker"),e.consume(c),e.exit("definitionMarker"),l):t(c)}function l(c){return Ce(c)?Xa(e,f)(c):f(c)}function f(c){return F2(e,u,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(c)}function u(c){return e.attempt(DP,d,d)(c)}function d(c){return de(c)?ve(e,p,"whitespace")(c):p(c)}function p(c){return c===null||te(c)?(e.exit("definition"),i.parser.defined.push(r),n(c)):t(c)}}function BP(e,n,t){return i;function i(s){return Ce(s)?Xa(e,r)(s):t(s)}function r(s){return A2(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return de(s)?ve(e,o,"whitespace")(s):o(s)}function o(s){return s===null||te(s)?n(s):t(s)}}const HP={name:"hardBreakEscape",tokenize:WP};function WP(e,n,t){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return te(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const UP={name:"headingAtx",tokenize:VP,resolve:qP};function qP(e,n){let t=e.length-2,i=3,r,a;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},a={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},Fn(e,i,t-i+1,[["enter",r,n],["enter",a,n],["exit",a,n],["exit",r,n]])),e}function VP(e,n,t){let i=0;return r;function r(u){return e.enter("atxHeading"),a(u)}function a(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&i++<6?(e.consume(u),o):u===null||Ce(u)?(e.exit("atxHeadingSequence"),s(u)):t(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||te(u)?(e.exit("atxHeading"),n(u)):de(u)?ve(e,s,"whitespace")(u):(e.enter("atxHeadingText"),f(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function f(u){return u===null||u===35||Ce(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),f)}}const GP=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gg=["pre","script","style","textarea"],KP={name:"htmlFlow",tokenize:JP,resolveTo:XP,concrete:!0},YP={tokenize:e$,partial:!0},QP={tokenize:ZP,partial:!0};function XP(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function JP(e,n,t){const i=this;let r,a,o,s,l;return f;function f(_){return u(_)}function u(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),p):_===47?(e.consume(_),a=!0,m):_===63?(e.consume(_),r=3,i.interrupt?n:C):pn(_)?(e.consume(_),o=String.fromCharCode(_),w):t(_)}function p(_){return _===45?(e.consume(_),r=2,c):_===91?(e.consume(_),r=5,s=0,h):pn(_)?(e.consume(_),r=4,i.interrupt?n:C):t(_)}function c(_){return _===45?(e.consume(_),i.interrupt?n:C):t(_)}function h(_){const U="CDATA[";return _===U.charCodeAt(s++)?(e.consume(_),s===U.length?i.interrupt?n:L:h):t(_)}function m(_){return pn(_)?(e.consume(_),o=String.fromCharCode(_),w):t(_)}function w(_){if(_===null||_===47||_===62||Ce(_)){const U=_===47,J=o.toLowerCase();return!U&&!a&&Gg.includes(J)?(r=1,i.interrupt?n(_):L(_)):GP.includes(o.toLowerCase())?(r=6,U?(e.consume(_),v):i.interrupt?n(_):L(_)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(_):a?g(_):y(_))}return _===45||un(_)?(e.consume(_),o+=String.fromCharCode(_),w):t(_)}function v(_){return _===62?(e.consume(_),i.interrupt?n:L):t(_)}function g(_){return de(_)?(e.consume(_),g):$(_)}function y(_){return _===47?(e.consume(_),$):_===58||_===95||pn(_)?(e.consume(_),S):de(_)?(e.consume(_),y):$(_)}function S(_){return _===45||_===46||_===58||_===95||un(_)?(e.consume(_),S):E(_)}function E(_){return _===61?(e.consume(_),x):de(_)?(e.consume(_),E):y(_)}function x(_){return _===null||_===60||_===61||_===62||_===96?t(_):_===34||_===39?(e.consume(_),l=_,P):de(_)?(e.consume(_),x):O(_)}function P(_){return _===l?(e.consume(_),l=null,D):_===null||te(_)?t(_):(e.consume(_),P)}function O(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||Ce(_)?E(_):(e.consume(_),O)}function D(_){return _===47||_===62||de(_)?y(_):t(_)}function $(_){return _===62?(e.consume(_),A):t(_)}function A(_){return _===null||te(_)?L(_):de(_)?(e.consume(_),A):t(_)}function L(_){return _===45&&r===2?(e.consume(_),Q):_===60&&r===1?(e.consume(_),Z):_===62&&r===4?(e.consume(_),ne):_===63&&r===3?(e.consume(_),C):_===93&&r===5?(e.consume(_),Y):te(_)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(YP,M,q)(_)):_===null||te(_)?(e.exit("htmlFlowData"),q(_)):(e.consume(_),L)}function q(_){return e.check(QP,K,M)(_)}function K(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),G}function G(_){return _===null||te(_)?q(_):(e.enter("htmlFlowData"),L(_))}function Q(_){return _===45?(e.consume(_),C):L(_)}function Z(_){return _===47?(e.consume(_),o="",z):L(_)}function z(_){if(_===62){const U=o.toLowerCase();return Gg.includes(U)?(e.consume(_),ne):L(_)}return pn(_)&&o.length<8?(e.consume(_),o+=String.fromCharCode(_),z):L(_)}function Y(_){return _===93?(e.consume(_),C):L(_)}function C(_){return _===62?(e.consume(_),ne):_===45&&r===2?(e.consume(_),C):L(_)}function ne(_){return _===null||te(_)?(e.exit("htmlFlowData"),M(_)):(e.consume(_),ne)}function M(_){return e.exit("htmlFlow"),n(_)}}function ZP(e,n,t){const i=this;return r;function r(o){return te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}function e$(e,n,t){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ho,n,t)}}const n$={name:"htmlText",tokenize:t$};function t$(e,n,t){const i=this;let r,a,o;return s;function s(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),l}function l(C){return C===33?(e.consume(C),f):C===47?(e.consume(C),E):C===63?(e.consume(C),y):pn(C)?(e.consume(C),O):t(C)}function f(C){return C===45?(e.consume(C),u):C===91?(e.consume(C),a=0,h):pn(C)?(e.consume(C),g):t(C)}function u(C){return C===45?(e.consume(C),c):t(C)}function d(C){return C===null?t(C):C===45?(e.consume(C),p):te(C)?(o=d,Z(C)):(e.consume(C),d)}function p(C){return C===45?(e.consume(C),c):d(C)}function c(C){return C===62?Q(C):C===45?p(C):d(C)}function h(C){const ne="CDATA[";return C===ne.charCodeAt(a++)?(e.consume(C),a===ne.length?m:h):t(C)}function m(C){return C===null?t(C):C===93?(e.consume(C),w):te(C)?(o=m,Z(C)):(e.consume(C),m)}function w(C){return C===93?(e.consume(C),v):m(C)}function v(C){return C===62?Q(C):C===93?(e.consume(C),v):m(C)}function g(C){return C===null||C===62?Q(C):te(C)?(o=g,Z(C)):(e.consume(C),g)}function y(C){return C===null?t(C):C===63?(e.consume(C),S):te(C)?(o=y,Z(C)):(e.consume(C),y)}function S(C){return C===62?Q(C):y(C)}function E(C){return pn(C)?(e.consume(C),x):t(C)}function x(C){return C===45||un(C)?(e.consume(C),x):P(C)}function P(C){return te(C)?(o=P,Z(C)):de(C)?(e.consume(C),P):Q(C)}function O(C){return C===45||un(C)?(e.consume(C),O):C===47||C===62||Ce(C)?D(C):t(C)}function D(C){return C===47?(e.consume(C),Q):C===58||C===95||pn(C)?(e.consume(C),$):te(C)?(o=D,Z(C)):de(C)?(e.consume(C),D):Q(C)}function $(C){return C===45||C===46||C===58||C===95||un(C)?(e.consume(C),$):A(C)}function A(C){return C===61?(e.consume(C),L):te(C)?(o=A,Z(C)):de(C)?(e.consume(C),A):D(C)}function L(C){return C===null||C===60||C===61||C===62||C===96?t(C):C===34||C===39?(e.consume(C),r=C,q):te(C)?(o=L,Z(C)):de(C)?(e.consume(C),L):(e.consume(C),K)}function q(C){return C===r?(e.consume(C),r=void 0,G):C===null?t(C):te(C)?(o=q,Z(C)):(e.consume(C),q)}function K(C){return C===null||C===34||C===39||C===60||C===61||C===96?t(C):C===47||C===62||Ce(C)?D(C):(e.consume(C),K)}function G(C){return C===47||C===62||Ce(C)?D(C):t(C)}function Q(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),n):t(C)}function Z(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),z}function z(C){return de(C)?ve(e,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):Y(C)}function Y(C){return e.enter("htmlTextData"),o(C)}}const L1={name:"labelEnd",tokenize:l$,resolveTo:s$,resolveAll:o$},i$={tokenize:f$},r$={tokenize:u$},a$={tokenize:d$};function o$(e){let n=-1;for(;++n=3&&(f===null||te(f))?(e.exit("thematicBreak"),n(f)):t(f)}function l(f){return f===r?(e.consume(f),i++,l):(e.exit("thematicBreakSequence"),de(f)?ve(e,s,"whitespace")(f):s(f))}}const wn={name:"list",tokenize:k$,continuation:{tokenize:b$},exit:x$},y$={tokenize:S$,partial:!0},w$={tokenize:_$,partial:!0};function k$(e,n,t){const i=this,r=i.events[i.events.length-1];let a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return s;function s(c){const h=i.containerState.type||(c===42||c===43||c===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!i.containerState.marker||c===i.containerState.marker:qc(c)){if(i.containerState.type||(i.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),c===42||c===45?e.check(qs,t,f)(c):f(c);if(!i.interrupt||c===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(c)}return t(c)}function l(c){return qc(c)&&++o<10?(e.consume(c),l):(!i.interrupt||o<2)&&(i.containerState.marker?c===i.containerState.marker:c===41||c===46)?(e.exit("listItemValue"),f(c)):t(c)}function f(c){return e.enter("listItemMarker"),e.consume(c),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||c,e.check(Ho,i.interrupt?t:u,e.attempt(y$,p,d))}function u(c){return i.containerState.initialBlankLine=!0,a++,p(c)}function d(c){return de(c)?(e.enter("listItemPrefixWhitespace"),e.consume(c),e.exit("listItemPrefixWhitespace"),p):t(c)}function p(c){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(c)}}function b$(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(Ho,r,a);function r(s){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ve(e,n,"listItemIndent",i.containerState.size+1)(s)}function a(s){return i.containerState.furtherBlankLines||!de(s)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(s)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(w$,n,o)(s))}function o(s){return i.containerState._closeFlow=!0,i.interrupt=void 0,ve(e,e.attempt(wn,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function _$(e,n,t){const i=this;return ve(e,r,"listItemIndent",i.containerState.size+1);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?n(a):t(a)}}function x$(e){e.exit(this.containerState.type)}function S$(e,n,t){const i=this;return ve(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function r(a){const o=i.events[i.events.length-1];return!de(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const Kg={name:"setextUnderline",tokenize:E$,resolveTo:C$};function C$(e,n){let t=e.length,i,r,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(r=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,n]),e.splice(a+1,0,["exit",e[i][1],n]),e[i][1].end=Object.assign({},e[a][1].end)):e[i][1]=o,e.push(["exit",o,n]),e}function E$(e,n,t){const i=this;let r;return a;function a(f){let u=i.events.length,d;for(;u--;)if(i.events[u][1].type!=="lineEnding"&&i.events[u][1].type!=="linePrefix"&&i.events[u][1].type!=="content"){d=i.events[u][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=f,o(f)):t(f)}function o(f){return e.enter("setextHeadingLineSequence"),s(f)}function s(f){return f===r?(e.consume(f),s):(e.exit("setextHeadingLineSequence"),de(f)?ve(e,l,"lineSuffix")(f):l(f))}function l(f){return f===null||te(f)?(e.exit("setextHeadingLine"),n(f)):t(f)}}const P$={tokenize:$$};function $$(e){const n=this,t=e.attempt(Ho,i,e.attempt(this.parser.constructs.flowInitial,r,ve(e,e.attempt(this.parser.constructs.flow,r,e.attempt(AP,r)),"linePrefix")));return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const T$={resolveAll:z2()},O$=R2("string"),F$=R2("text");function R2(e){return{tokenize:n,resolveAll:z2(e==="text"?j$:void 0)};function n(t){const i=this,r=this.parser.constructs[e],a=t.attempt(r,o,s);return o;function o(u){return f(u)?a(u):s(u)}function s(u){if(u===null){t.consume(u);return}return t.enter("data"),t.consume(u),l}function l(u){return f(u)?(t.exit("data"),a(u)):(t.consume(u),l)}function f(u){if(u===null)return!0;const d=r[u];let p=-1;if(d)for(;++p-1){const s=o[0];typeof s=="string"?o[0]=s.slice(i):o.shift()}a>0&&o.push(e[r].slice(0,a))}return o}function z$(e,n){let t=-1;const i=[];let r;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const Y$=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function L2(e){return e.replace(Y$,Q$)}function Q$(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),a=r===120||r===88;return M2(t.slice(a?2:1),a?16:10)}return M1(t)||e}const N2={}.hasOwnProperty,X$=function(e,n,t){return typeof n!="string"&&(t=n,n=void 0),J$(t)(K$(V$(t).document().write(G$()(e,n,!0))))};function J$(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s($e),autolinkProtocol:A,autolinkEmail:A,atxHeading:s(Be),blockQuote:s(he),characterEscape:A,characterReference:A,codeFenced:s(oe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(oe,l),codeText:s(Ie,l),codeTextData:A,data:A,codeFlowValue:A,definition:s(qe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(ce),hardBreakEscape:s(me),hardBreakTrailing:s(me),htmlFlow:s(Ne,l),htmlFlowData:A,htmlText:s(Ne,l),htmlTextData:A,image:s(_t),label:l,link:s($e),listItem:s(Ai),listItemValue:h,listOrdered:s(ji,c),listUnordered:s(ji),paragraph:s(Cn),reference:J,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(Be),strong:s(se),thematicBreak:s(ma)},exit:{atxHeading:u(),atxHeadingSequence:P,autolink:u(),autolinkEmail:fe,autolinkProtocol:we,blockQuote:u(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:I,codeFenced:u(g),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:w,codeFlowValue:L,codeIndented:u(y),codeText:u(Z),codeTextData:L,data:L,definition:u(),definitionDestinationString:x,definitionLabelString:S,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(K),hardBreakTrailing:u(K),htmlFlow:u(G),htmlFlowData:L,htmlText:u(Q),htmlTextData:L,image:u(Y),label:ne,labelText:C,lineEnding:q,link:u(z),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:F,resourceDestinationString:M,resourceTitleString:_,resource:U,setextHeading:u($),setextHeadingLineSequence:D,setextHeadingText:O,strong:u(),thematicBreak:u()}};D2(n,(e||{}).mdastExtensions||[]);const t={};return i;function i(j){let H={type:"root",children:[]};const re={stack:[H],tokenStack:[],config:n,enter:f,exit:d,buffer:l,resume:p,setData:a,getData:o},xe=[];let Se=-1;for(;++Se0){const Yn=re.tokenStack[re.tokenStack.length-1];(Yn[1]||Qg).call(re,void 0,Yn[0])}for(H.position={start:Zt(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Zt(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se{const i=this.data("settings");return X$(t,Object.assign({},i,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function nT(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function tT(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:` +`}]}function iT(e,n){const t=n.value?n.value+` +`:"",i=n.lang?n.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,r={};i&&(r.className=["language-"+i]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(a.data={meta:n.meta}),e.patch(n,a),a=e.applyData(n,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(n,a),a}function rT(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function aT(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ca(e){const n=[];let t=-1,i=0,r=0;for(;++t55295&&a<57344){const s=e.charCodeAt(t+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),r=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(i,t),encodeURIComponent(o)),i=t+r+1,o=""),r&&(t+=r,r=0)}return n.join("")+e.slice(i)}function I2(e,n){const t=String(n.identifier).toUpperCase(),i=ca(t.toLowerCase()),r=e.footnoteOrder.indexOf(t);let a;r===-1?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,a=e.footnoteOrder.length):(e.footnoteCounts[t]++,a=r+1);const o=e.footnoteCounts[t],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(n,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,l),e.applyData(n,l)}function oT(e,n){const t=e.footnoteById;let i=1;for(;i in t;)i++;const r=String(i);return t[r]={type:"footnoteDefinition",identifier:r,children:[{type:"paragraph",children:n.children}],position:n.position},I2(e,{type:"footnoteReference",identifier:r,position:n.position})}function sT(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function lT(e,n){if(e.dangerous){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}return null}function B2(e,n){const t=n.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return{type:"text",value:"!["+n.alt+i};const r=e.all(n),a=r[0];a&&a.type==="text"?a.value="["+a.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=i:r.push({type:"text",value:i}),r}function fT(e,n){const t=e.definition(n.identifier);if(!t)return B2(e,n);const i={src:ca(t.url||""),alt:n.alt};t.title!==null&&t.title!==void 0&&(i.title=t.title);const r={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,r),e.applyData(n,r)}function uT(e,n){const t={src:ca(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,i),e.applyData(n,i)}function dT(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,i),e.applyData(n,i)}function cT(e,n){const t=e.definition(n.identifier);if(!t)return B2(e,n);const i={href:ca(t.url||"")};t.title!==null&&t.title!==void 0&&(i.title=t.title);const r={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function pT(e,n){const t={href:ca(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function hT(e,n,t){const i=e.all(n),r=t?mT(t):H2(n),a={},o=[];if(typeof n.checked=="boolean"){const u=i[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function vT(e,n){const t={},i=e.all(n);let r=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++r-1?i.offset:null}}}function bT(e,n){const t=e.all(n),i=t.shift(),r=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],o),r.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},s=N1(n.children[1]),l=D1(n.children[n.children.length-1]);s.line&&l.line&&(o.position={start:s,end:l}),r.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function _T(e,n,t){const i=t?t.children:void 0,a=(i?i.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,s=o?o.length:n.children.length;let l=-1;const f=[];for(;++l0,!0),i[0]),r=i.index+i[0].length,i=t.exec(n);return a.push(Zg(n.slice(r),r>0,!1)),a.join("")}function Zg(e,n,t){let i=0,r=e.length;if(n){let a=e.codePointAt(i);for(;a===Xg||a===Jg;)i++,a=e.codePointAt(i)}if(t){let a=e.codePointAt(r-1);for(;a===Xg||a===Jg;)r--,a=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function CT(e,n){const t={type:"text",value:ST(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function ET(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const PT={blockquote:nT,break:tT,code:iT,delete:rT,emphasis:aT,footnoteReference:I2,footnote:oT,heading:sT,html:lT,imageReference:fT,image:uT,inlineCode:dT,linkReference:cT,link:pT,listItem:hT,list:vT,paragraph:gT,root:yT,strong:wT,table:bT,tableCell:xT,tableRow:_T,text:CT,thematicBreak:ET,toml:vs,yaml:vs,definition:vs,footnoteDefinition:vs};function vs(){return null}const I1=function(e){if(e==null)return FT;if(typeof e=="string")return OT(e);if(typeof e=="object")return Array.isArray(e)?$T(e):TT(e);if(typeof e=="function")return Yf(e);throw new Error("Expected function, string, or object as test")};function $T(e){const n=[];let t=-1;for(;++t":""))+")"})}return d;function d(){let p=[],c,h,m;if((!n||r(s,l,f[f.length-1]||null))&&(p=RT(t(s,f)),p[0]===e0))return p;if(s.children&&p[0]!==AT)for(h=(i?s.children.length:-1)+a,m=f.concat(s);h>-1&&h{const r=t0(i.identifier);r&&!n0.call(n,r)&&(n[r]=i)}),t;function t(i){const r=t0(i);return r&&n0.call(n,r)?n[r]:null}}function t0(e){return String(e||"").toUpperCase()}const Dl={}.hasOwnProperty;function LT(e,n){const t=n||{},i=t.allowDangerousHtml||!1,r={};return o.dangerous=i,o.clobberPrefix=t.clobberPrefix===void 0||t.clobberPrefix===null?"user-content-":t.clobberPrefix,o.footnoteLabel=t.footnoteLabel||"Footnotes",o.footnoteLabelTagName=t.footnoteLabelTagName||"h2",o.footnoteLabelProperties=t.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=t.footnoteBackLabel||"Back to content",o.unknownHandler=t.unknownHandler,o.passThrough=t.passThrough,o.handlers={...PT,...t.handlers},o.definition=MT(e),o.footnoteById=r,o.footnoteOrder=[],o.footnoteCounts={},o.patch=NT,o.applyData=DT,o.one=s,o.all=l,o.wrap=BT,o.augment=a,B1(e,"footnoteDefinition",f=>{const u=String(f.identifier).toUpperCase();Dl.call(r,u)||(r[u]=f)}),o;function a(f,u){if(f&&"data"in f&&f.data){const d=f.data;d.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=d.hName),u.type==="element"&&d.hProperties&&(u.properties={...u.properties,...d.hProperties}),"children"in u&&u.children&&d.hChildren&&(u.children=d.hChildren)}if(f){const d="type"in f?f:{position:f};zT(d)||(u.position={start:N1(d),end:D1(d)})}return u}function o(f,u,d,p){return Array.isArray(d)&&(p=d,d={}),a(f,{type:"element",tagName:u,properties:d||{},children:p||[]})}function s(f,u){return q2(o,f,u)}function l(f){return H1(o,f)}}function NT(e,n){e.position&&(n.position=kT(e))}function DT(e,n){let t=n;if(e&&e.data){const i=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;typeof i=="string"&&(t.type==="element"?t.tagName=i:t={type:"element",tagName:i,properties:{},children:[]}),t.type==="element"&&a&&(t.properties={...t.properties,...a}),"children"in t&&t.children&&r!==null&&r!==void 0&&(t.children=r)}return t}function q2(e,n,t){const i=n&&n.type;if(!i)throw new Error("Expected node, got `"+n+"`");return Dl.call(e.handlers,i)?e.handlers[i](e,n,t):e.passThrough&&e.passThrough.includes(i)?"children"in n?{...n,children:H1(e,n)}:n:e.unknownHandler?e.unknownHandler(e,n,t):IT(e,n)}function H1(e,n){const t=[];if("children"in n){const i=n.children;let r=-1;for(;++r0&&t.push({type:"text",value:` +`}),t}function HT(e){const n=[];let t=-1;for(;++t1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const f=r[r.length-1];if(f&&f.type==="element"&&f.tagName==="p"){const d=f.children[f.children.length-1];d&&d.type==="text"?d.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...l)}else r.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:e.wrap(r,!0)};e.patch(i,u),n.push(u)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:` +`}]}}function V2(e,n){const t=LT(e,n),i=t.one(e,null),r=HT(t);return r&&i.children.push({type:"text",value:` +`},r),Array.isArray(i)?{type:"root",children:i}:i}const WT=function(e,n){return e&&"run"in e?qT(e,n):VT(e||n)},UT=WT;function qT(e,n){return(t,i,r)=>{e.run(V2(t,n),i,a=>{r(a)})}}function VT(e){return n=>V2(n,e)}class Wo{constructor(n,t,i){this.property=n,this.normal=t,i&&(this.space=i)}}Wo.prototype.property={};Wo.prototype.normal={};Wo.prototype.space=null;function G2(e,n){const t={},i={};let r=-1;for(;++r4&&t.slice(0,4)==="data"&&XT.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(r0,nO);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!r0.test(a)){let o=a.replace(JT,eO);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}r=W1}return new r(i,n)}function eO(e){return"-"+e.toLowerCase()}function nO(e){return e.charAt(1).toUpperCase()}const a0={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},tO=G2([Q2,Y2,Z2,e3,YT],"html"),iO=G2([Q2,Y2,Z2,e3,QT],"svg");function rO(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return n=>{B1(n,"element",(t,i,r)=>{const a=r;let o;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&typeof i=="number"&&(o=!e.allowElement(t,i,a)),o&&typeof i=="number")return e.unwrapDisallowed&&t.children?a.children.splice(i,1,...t.children):a.children.splice(i,1),i})}}function aO(e){const n=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof n=="string"&&n.replace(/[ \t\n\f\r]/g,"")===""}function oO(e){return e.join(" ").trim()}function sO(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var U1={exports:{}},o0=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,lO=/\n/g,fO=/^\s*/,uO=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,dO=/^:\s*/,cO=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,pO=/^[;\s]*/,hO=/^\s+|\s+$/g,mO=` +`,s0="/",l0="*",Di="",vO="comment",gO="declaration",yO=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,i=1;function r(h){var m=h.match(lO);m&&(t+=m.length);var w=h.lastIndexOf(mO);i=~w?h.length-w:i+h.length}function a(){var h={line:t,column:i};return function(m){return m.position=new o(h),f(),m}}function o(h){this.start=h,this.end={line:t,column:i},this.source=n.source}o.prototype.content=e;function s(h){var m=new Error(n.source+":"+t+":"+i+": "+h);if(m.reason=h,m.filename=n.source,m.line=t,m.column=i,m.source=e,!n.silent)throw m}function l(h){var m=h.exec(e);if(m){var w=m[0];return r(w),e=e.slice(w.length),m}}function f(){l(fO)}function u(h){var m;for(h=h||[];m=d();)m!==!1&&h.push(m);return h}function d(){var h=a();if(!(s0!=e.charAt(0)||l0!=e.charAt(1))){for(var m=2;Di!=e.charAt(m)&&(l0!=e.charAt(m)||s0!=e.charAt(m+1));)++m;if(m+=2,Di===e.charAt(m-1))return s("End of comment missing");var w=e.slice(2,m-2);return i+=2,r(w),e=e.slice(m),i+=2,h({type:vO,comment:w})}}function p(){var h=a(),m=l(uO);if(m){if(d(),!l(dO))return s("property missing ':'");var w=l(cO),v=h({type:gO,property:f0(m[0].replace(o0,Di)),value:w?f0(w[0].replace(o0,Di)):Di});return l(pO),v}}function c(){var h=[];u(h);for(var m;m=p();)m!==!1&&(h.push(m),u(h));return h}return f(),c()};function f0(e){return e?e.replace(hO,Di):Di}var wO=yO;function n3(e,n){var t=null;if(!e||typeof e!="string")return t;for(var i,r=wO(e),a=typeof n=="function",o,s,l=0,f=r.length;l0?ee.createElement(c,l,d):ee.createElement(c,l)}function SO(e){let n=-1;for(;++n for more info)`),delete gs[a]}const n=YE().use(eT).use(e.remarkPlugins||[]).use(UT,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(rO,e),t=new b2;typeof e.children=="string"?t.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const i=n.runSync(n.parse(t),t);if(i.type!=="root")throw new TypeError("Expected a `root` node");let r=ee.createElement(ee.Fragment,{},t3({options:e,schema:tO,listDepth:0},i));return e.className&&(r=ee.createElement("div",{className:e.className},r)),r}Il.propTypes={children:V.string,className:V.string,allowElement:V.func,allowedElements:V.arrayOf(V.string),disallowedElements:V.arrayOf(V.string),unwrapDisallowed:V.bool,remarkPlugins:V.arrayOf(V.oneOfType([V.object,V.func,V.arrayOf(V.oneOfType([V.bool,V.string,V.object,V.func,V.arrayOf(V.any)]))])),rehypePlugins:V.arrayOf(V.oneOfType([V.object,V.func,V.arrayOf(V.oneOfType([V.bool,V.string,V.object,V.func,V.arrayOf(V.any)]))])),sourcePos:V.bool,rawSourcePos:V.bool,skipHtml:V.bool,includeElementIndex:V.bool,transformLinkUri:V.oneOfType([V.func,V.bool]),linkTarget:V.oneOfType([V.func,V.string]),transformImageUri:V.func,components:V.object};const OO={tokenize:MO,partial:!0},i3={tokenize:LO,partial:!0},r3={tokenize:NO,partial:!0},a3={tokenize:DO,partial:!0},FO={tokenize:IO,partial:!0},o3={tokenize:RO,previous:l3},s3={tokenize:zO,previous:f3},Kt={tokenize:AO,previous:u3},bt={},jO={text:bt};let zi=48;for(;zi<123;)bt[zi]=Kt,zi++,zi===58?zi=65:zi===91&&(zi=97);bt[43]=Kt;bt[45]=Kt;bt[46]=Kt;bt[95]=Kt;bt[72]=[Kt,s3];bt[104]=[Kt,s3];bt[87]=[Kt,o3];bt[119]=[Kt,o3];function AO(e,n,t){const i=this;let r,a;return o;function o(d){return!Qc(d)||!u3.call(i,i.previous)||q1(i.events)?t(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Qc(d)?(e.consume(d),s):d===64?(e.consume(d),l):t(d)}function l(d){return d===46?e.check(FO,u,f)(d):d===45||d===95||un(d)?(a=!0,e.consume(d),l):u(d)}function f(d){return e.consume(d),r=!0,l}function u(d){return a&&r&&pn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(d)):t(d)}}function RO(e,n,t){const i=this;return r;function r(o){return o!==87&&o!==119||!l3.call(i,i.previous)||q1(i.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(OO,e.attempt(i3,e.attempt(r3,a),t),t)(o))}function a(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function zO(e,n,t){const i=this;let r="",a=!1;return o;function o(d){return(d===72||d===104)&&f3.call(i,i.previous)&&!q1(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),s):t(d)}function s(d){if(pn(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return t(d)}function l(d){return d===47?(e.consume(d),a?f:(a=!0,l)):t(d)}function f(d){return d===null||Ll(d)||Ce(d)||nr(d)||Gf(d)?t(d):e.attempt(i3,e.attempt(r3,u),t)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(d)}}function MO(e,n,t){let i=0;return r;function r(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),r):o===46&&i===3?(e.consume(o),a):t(o)}function a(o){return o===null?t(o):n(o)}}function LO(e,n,t){let i,r,a;return o;function o(f){return f===46||f===95?e.check(a3,l,s)(f):f===null||Ce(f)||nr(f)||f!==45&&Gf(f)?l(f):(a=!0,e.consume(f),o)}function s(f){return f===95?i=!0:(r=i,i=void 0),e.consume(f),o}function l(f){return r||i||!a?t(f):n(f)}}function NO(e,n){let t=0,i=0;return r;function r(o){return o===40?(t++,e.consume(o),r):o===41&&i0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const BO={tokenize:YO,partial:!0};function HO(){return{document:{[91]:{tokenize:VO,continuation:{tokenize:GO},exit:KO}},text:{[91]:{tokenize:qO},[93]:{add:"after",tokenize:WO,resolveTo:UO}}}}function WO(e,n,t){const i=this;let r=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const l=i.events[r][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return t(l);const f=ot(i.sliceSerialize({start:o.end,end:i.now()}));return f.codePointAt(0)!==94||!a.includes(f.slice(1))?t(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),n(l))}}function UO(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",r,n],["exit",r,n],["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...s),e}function qO(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?t(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(d){if(a>999||d===93&&!o||d===null||d===91||Ce(d))return t(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(ot(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(d)}return Ce(d)||(o=!0),a++,e.consume(d),d===92?u:f}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}}function VO(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,o=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):t(h)}function u(h){if(o>999||h===93&&!s||h===null||h===91||Ce(h))return t(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return a=ot(i.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ce(h)||(s=!0),o++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,u):u(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),r.includes(a)||r.push(a),ve(e,c,"gfmFootnoteDefinitionWhitespace")):t(h)}function c(h){return n(h)}}function GO(e,n,t){return e.check(Ho,n,e.attempt(BO,n,t))}function KO(e){e.exit("gfmFootnoteDefinition")}function YO(e,n,t){const i=this;return ve(e,r,"gfmFootnoteDefinitionIndent",4+1);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function QO(e){let t=(e||{}).singleTilde;const i={tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{[126]:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,s){let l=-1;for(;++l1?l(h):(o.consume(h),d++,c);if(d<2&&!t)return l(h);const w=o.exit("strikethroughSequenceTemporary"),v=Nl(h);return w._open=!v||v===2&&!!m,w._close=!m||m===2&&!!v,s(h)}}}class XO{constructor(){this.map=[]}add(n,t,i){JO(this,n,t,i)}consume(n){if(this.map.sort((a,o)=>a[0]-o[0]),this.map.length===0)return;let t=this.map.length;const i=[];for(;t>0;)t-=1,i.push(n.slice(this.map[t][0]+this.map[t][1])),i.push(this.map[t][2]),n.length=this.map[t][0];i.push([...n]),n.length=0;let r=i.pop();for(;r;)n.push(...r),r=i.pop();this.map.length=0}}function JO(e,n,t,i){let r=0;if(!(t===0&&i.length===0)){for(;r-1;){const K=i.events[A][1].type;if(K==="lineEnding"||K==="linePrefix")A--;else break}const L=A>-1?i.events[A][1].type:null,q=L==="tableHead"||L==="tableRow"?x:l;return q===x&&i.parser.lazy[i.now().line]?t($):q($)}function l($){return e.enter("tableHead"),e.enter("tableRow"),f($)}function f($){return $===124||(o=!0,a+=1),u($)}function u($){return $===null?t($):te($)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),c):t($):de($)?ve(e,u,"whitespace")($):(a+=1,o&&(o=!1,r+=1),$===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d($)))}function d($){return $===null||$===124||Ce($)?(e.exit("data"),u($)):(e.consume($),$===92?p:d)}function p($){return $===92||$===124?(e.consume($),d):d($)}function c($){return i.interrupt=!1,i.parser.lazy[i.now().line]?t($):(e.enter("tableDelimiterRow"),o=!1,de($)?ve(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):h($))}function h($){return $===45||$===58?w($):$===124?(o=!0,e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),m):E($)}function m($){return de($)?ve(e,w,"whitespace")($):w($)}function w($){return $===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),v):$===45?(a+=1,v($)):$===null||te($)?S($):E($)}function v($){return $===45?(e.enter("tableDelimiterFiller"),g($)):E($)}function g($){return $===45?(e.consume($),g):$===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume($),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y($))}function y($){return de($)?ve(e,S,"whitespace")($):S($)}function S($){return $===124?h($):$===null||te($)?!o||r!==a?E($):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n($)):E($)}function E($){return t($)}function x($){return e.enter("tableRow"),P($)}function P($){return $===124?(e.enter("tableCellDivider"),e.consume($),e.exit("tableCellDivider"),P):$===null||te($)?(e.exit("tableRow"),n($)):de($)?ve(e,P,"whitespace")($):(e.enter("data"),O($))}function O($){return $===null||$===124||Ce($)?(e.exit("data"),P($)):(e.consume($),$===92?D:O)}function D($){return $===92||$===124?(e.consume($),O):O($)}}function tF(e,n){let t=-1,i=!0,r=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,f,u,d;const p=new XO;for(;++tt[2]+1){const h=t[2]+1,m=t[3]-t[2]-1;e.add(h,m,[])}}e.add(t[3]+1,0,[["exit",d,n]])}return r!==void 0&&(a.end=Object.assign({},hr(n.events,r)),e.add(r,0,[["exit",a,n]]),a=void 0),a}function d0(e,n,t,i,r){const a=[],o=hr(n.events,t);r&&(r.end=Object.assign({},o),a.push(["exit",r,n])),i.end=Object.assign({},o),a.push(["exit",i,n]),e.add(t+1,0,a)}function hr(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}const iF={tokenize:aF},rF={text:{[91]:iF}};function aF(e,n,t){const i=this;return r;function r(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Ce(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):t(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):t(l)}function s(l){return te(l)?n(l):de(l)?e.check({tokenize:oF},n,t)(l):t(l)}}function oF(e,n,t){return ve(e,i,"whitespace");function i(r){return r===null?t(r):n(r)}}function sF(e){return E2([jO,HO(),QO(e),eF,rF])}function c0(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,r=t.indexOf(n);for(;r!==-1;)i++,r=t.indexOf(n,r+n.length);return i}function lF(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const fF={}.hasOwnProperty,uF=function(e,n,t,i){let r,a;typeof n=="string"||n instanceof RegExp?(a=[[n,t]],r=i):(a=n,r=t),r||(r={});const o=I1(r.ignore||[]),s=dF(a);let l=-1;for(;++l0?{type:"text",value:P}:void 0),P!==!1&&(w!==E&&y.push({type:"text",value:d.value.slice(w,E)}),Array.isArray(P)?y.push(...P):P&&y.push(P),w=E+S[0].length,g=!0),!h.global)break;S=h.exec(d.value)}return g?(we}const Yu="phrasing",Qu=["autolink","link","image","label"],cF={transforms:[wF],enter:{literalAutolink:hF,literalAutolinkEmail:Xu,literalAutolinkHttp:Xu,literalAutolinkWww:Xu},exit:{literalAutolink:yF,literalAutolinkEmail:gF,literalAutolinkHttp:mF,literalAutolinkWww:vF}},pF={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Yu,notInConstruct:Qu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Yu,notInConstruct:Qu},{character:":",before:"[ps]",after:"\\/",inConstruct:Yu,notInConstruct:Qu}]};function hF(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Xu(e){this.config.enter.autolinkProtocol.call(this,e)}function mF(e){this.config.exit.autolinkProtocol.call(this,e)}function vF(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.url="http://"+this.sliceSerialize(e)}function gF(e){this.config.exit.autolinkEmail.call(this,e)}function yF(e){this.exit(e)}function wF(e){uF(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,kF],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,bF]],{ignore:["link","linkReference"]})}function kF(e,n,t,i,r){let a="";if(!d3(r)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!_F(t)))return!1;const o=xF(t+i);if(!o[0])return!1;const s={type:"link",title:null,url:a+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function bF(e,n,t,i){return!d3(i,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function _F(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function xF(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],i=t.indexOf(")");const r=c0(e,"(");let a=c0(e,")");for(;i!==-1&&r>a;)e+=t.slice(0,i+1),t=t.slice(i+1),i=t.indexOf(")"),a++;return[e,t]}function d3(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||nr(t)||Gf(t))&&(!n||t!==47)}function c3(e){return e.label||!e.identifier?e.label||"":L2(e.identifier)}function SF(e,n,t){const i=n.indexStack,r=e.children||[],a=n.createTracker(t),o=[];let s=-1;for(i.push(-1);++s + +`}return` + +`}const EF=/\r?\n|\r/g;function PF(e,n){const t=[];let i=0,r=0,a;for(;a=EF.exec(e);)o(e.slice(i,a.index)),t.push(a[0]),i=a.index+a[0].length,r++;return o(e.slice(i)),t.join("");function o(s){t.push(n(s,r,!s))}}function p3(e){if(!e._compiled){const n=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((n?"("+n+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function $F(e,n){return m0(e,n.inConstruct,!0)&&!m0(e,n.notInConstruct,!1)}function m0(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i=f||u+10?" ":"")),r.shift(4),a+=r.move(PF(SF(e,t,r.current()),HF)),o(),a}function HF(e,n,t){return n===0?e:(t?"":" ")+e}function v3(e,n,t){const i=n.indexStack,r=e.children||[],a=[];let o=-1,s=t.before;i.push(-1);let l=n.createTracker(t);for(;++o0&&(s==="\r"||s===` +`)&&f.type==="html"&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=n.createTracker(t),l.move(a.join(""))),a.push(l.move(n.handle(f,e,n,{...l.current(),before:s,after:u}))),s=a[a.length-1].slice(-1)}return i.pop(),a.join("")}const WF=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];g3.peek=KF;const UF={canContainEols:["delete"],enter:{strikethrough:VF},exit:{strikethrough:GF}},qF={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:WF}],handlers:{delete:g3}};function VF(e){this.enter({type:"delete",children:[]},e)}function GF(e){this.exit(e)}function g3(e,n,t,i){const r=Qf(i),a=t.enter("strikethrough");let o=r.move("~~");return o+=v3(e,t,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),a(),o}function KF(){return"~"}y3.peek=YF;function y3(e,n,t){let i=e.value||"",r="`",a=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++al&&(l=e[f].length);++ws[w])&&(s[w]=g)}h.push(v)}a[f]=h,o[f]=m}let u=-1;if(typeof t=="object"&&"length"in t)for(;++us[u]&&(s[u]=v),p[u]=v),d[u]=g}a.splice(1,0,d),o.splice(1,0,p),f=-1;const c=[];for(;++ft==="none"?null:t),children:[]},e),this.setData("inTable",!0)}function nj(e){this.exit(e),this.setData("inTable")}function tj(e){this.enter({type:"tableRow",children:[]},e)}function Ju(e){this.exit(e)}function y0(e){this.enter({type:"tableCell",children:[]},e)}function ij(e){let n=this.resume();this.getData("inTable")&&(n=n.replace(/\\([\\|])/g,rj));const t=this.stack[this.stack.length-1];t.value=n,this.exit(e)}function rj(e,n){return n==="|"?n:e}function aj(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,r=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:o,tableRow:s,tableCell:l,inlineCode:p}};function o(c,h,m,w){return f(u(c,m,w),c.align)}function s(c,h,m,w){const v=d(c,m,w),g=f([v]);return g.slice(0,g.indexOf(` +`))}function l(c,h,m,w){const v=m.enter("tableCell"),g=m.enter("phrasing"),y=v3(c,m,{...w,before:a,after:a});return g(),v(),y}function f(c,h){return QF(c,{align:h,alignDelimiters:i,padding:t,stringLength:r})}function u(c,h,m){const w=c.children;let v=-1;const g=[],y=h.enter("table");for(;++v-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let o=a.length+1;(r==="tab"||r==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=t.createTracker(i);s.move(a+" ".repeat(o-a.length)),s.shift(o);const l=t.enter("listItem"),f=t.indentLines(t.containerFlow(e,s.current()),u);return l(),f;function u(d,p,c){return p?(c?"":" ".repeat(o))+d:(c?a:a+" ".repeat(o-a.length))+d}}const fj={exit:{taskListCheckValueChecked:w0,taskListCheckValueUnchecked:w0,paragraph:dj}},uj={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:cj}};function w0(e){const n=this.stack[this.stack.length-2];n.checked=e.type==="taskListCheckValueChecked"}function dj(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1],i=t.children[0];if(i&&i.type==="text"){const r=n.children;let a=-1,o;for(;++a{const[n,t]=k.useState([]),[i,r]=yj(),[a,o]=k.useState(!1),[s,l]=k.useState(!1),{axiosInstance:f}=tb(),u=h=>{var w,v;h.from==="user"?(w=r.current)==null||w.play():(v=i.current)==null||v.play();const m={...h,timestamp:h.timestamp?h.timestamp:mj()};t(g=>[...g,m])};async function d(h){const m=await f.post("/chat/send",{type:"email",content:h});m.status===200?u(m.data):l(!0)}const c={messages:n,sendMessage:async h=>{l(!1),u(h);try{o(!0);const m=await f.post("/chat/send",h);u({...m.data,from:"bot"})}catch{console.error("Error sending the message:"),l(!0)}finally{o(!1)}},loading:a,error:s,sendEmail:d};return b.jsx(k3.Provider,{value:c,children:e})},Bl=()=>{const e=k.useContext(k3);if(!e)throw new Error("useChat must be used within a ChatProvider");return e};function k0({messages:e,timestamp:n}){const{displayText:t}=z1({text:e[0],every:1e-4,shouldStart:e.length<2});return b.jsxs("div",{className:"openchat-clear-both openchat-w-full openchat-group",children:[b.jsxs("div",{className:"openchat-flex openchat-items-center openchat-gap-3 openchat-w-full",children:[b.jsx("div",{className:"openchat-w-10 openchat-h-10 openchat-bg-accent2 openchat-rounded-lg openchat-shrink-0 openchat-mt-auto openchat-mb-1"}),b.jsx("div",{className:"openchat-group openchat-space-y-2 openchat-flex-1",children:e.length<2?b.jsx("div",{className:"mesg_body openchat-max-w-[90%] openchat-w-fit openchat-px-5 openchat-py-4 openchat-rounded-lg openchat-bg-accent",children:b.jsx("div",{children:b.jsx(Il,{remarkPlugins:[Xc],className:"openchat-prose prose-h1:openchat-font-medium prose-h2:openchat-font-normal prose-headings:openchat-my-1 openchat-prose-sm openchat-text-sm openchat-max-w-full",children:t})})}):e.map((i,r)=>b.jsx("div",{className:"mesg_body openchat-max-w-[90%] openchat-w-fit openchat-px-5 openchat-py-4 openchat-rounded-lg openchat-bg-accent",children:b.jsx("div",{children:b.jsx(Il,{remarkPlugins:[Xc],className:"openchat-prose prose-h1:openchat-font-medium prose-h2:openchat-font-normal prose-headings:openchat-my-1 openchat-prose-sm openchat-text-sm openchat-leading-4 openchat-max-w-full",children:i})})},r))})]}),b.jsx("div",{className:"openchat-w-full openchat-ps-[52px]",children:b.jsx("div",{children:n&&b.jsxs("span",{className:"openchat-text-xs openchat-m-0 group-last-of-type:openchat-inline openchat-hidden",children:["Bot ·"," ",b.jsx(p1,{date:n,timeStyle:"mini-minute-now",locale:"en-US"})]})})})]})}function bj(){const{displayText:e}=z1({text:"Bot is Thinking..."});return b.jsxs("div",{className:"openchat-my-2 openchat-flex openchat-items-center openchat-gap-3 openchat-w-full",children:[b.jsx("div",{className:"loading openchat-flex-col openchat-w-10 openchat-flex openchat-h-10 openchat-bg-black/90 openchat-text-white openchat-rounded-lg openchat-shrink-0 openchat-mt-auto openchat-mb-1 flex-center",children:b.jsx(t8,{height:"24",width:"24",color:"white",visible:!0})}),b.jsx("div",{className:"openchat-group openchat-space-y-2 openchat-flex-1",children:b.jsx("div",{className:"mesg_body openchat-w-fit openchat-whitespace-nowrap openchat-max-w-[80%] openchat-px-5 openchat-py-4 openchat-rounded-lg openchat-bg-accent",children:b.jsx("div",{children:b.jsx("p",{className:"openchat-text-sm openchat-lowercase",children:e})})})})]})}function _j({type:e,content:n,timestamp:t}){return b.jsx("div",{className:"openchat-w-full last-of-type:openchat-mb-10 ",children:b.jsx("div",{className:hn("openchat-float-right openchat-max-w-[75%] openchat-px-5 openchat-py-4 openchat-rounded-lg openchat-text-sm openchat-font-normal",e==="emoji"?"openchat-bg-transparent openchat-select-none":"openchat-bg-primary openchat-text-white"),children:b.jsx(FE,{tooltipContent:b.jsx("span",{className:"openchat-select-none data-[state=open]:openchat-fade-in openchat-rounded-sm openchat-bg-black/40 openchat-text-white openchat-p-0.5 openchat-text-xs openchat-px-1 openchat-leading-none",children:t&&jE(t)}),children:b.jsx("p",{className:hn(e==="emoji"?"openchat-text-8xl":""),children:n})})})})}function xj({children:e,className:n,...t}){return b.jsx("button",{...t,className:hn("openchat-text-sm openchat-flex-wrap openchat-whitespace-nowrap openchat-leading-4 openchat-p-2 openchat-rounded-md openchat-bg-primary-light openchat-text-primary hover:openchat-bg-primary hover:openchat-text-white openchat-transition-colors openchat-inline-block",n),children:e})}function Sj({children:e}){return b.jsx("div",{className:"openchat-w-full openchat-clear-both",children:b.jsx("div",{className:"openchat-float-right openchat-w-full openchat-flex-wrap openchat-max-w-full openchat-flex-row openchat-justify-end openchat-py-4 openchat-rounded-lg openchat-text-sm openchat-font-normal openchat-flex openchat-items-center openchat-gap-2",children:e})})}function Cj({timestamp:e}){const[n,t]=k.useState(!1),[i,r]=k.useState(!1),[a,o]=k.useState(!1),[s,l]=k.useState(""),{sendEmail:f}=Bl(),u=()=>{const c=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s);return c||o(!0),c};function d(){!n&&!i&&u()&&(t(!0),f(s),t(!1),r(!0))}return b.jsxs("div",{className:"openchat-clear-both openchat-w-full openchat-group",children:[b.jsxs("div",{className:"openchat-flex openchat-items-center openchat-gap-3 openchat-w-full",children:[b.jsx("div",{className:"openchat-w-10 openchat-h-10 openchat-bg-accent2 openchat-rounded-lg openchat-shrink-0 openchat-mt-auto openchat-mb-1"}),b.jsxs("div",{style:{boxShadow:"rgba(0, 0, 0, 0.1) 0px 4px 15px 0px, rgba(0, 0, 0, 0.1) 0px 1px 2px 0px, rgba(0, 87, 255, 0.5) 0px 2px 0px 0px inset"},className:"openchat-w-full openchat-flex-1 openchat-p-6 openchat-rounded-md",children:[b.jsxs("div",{className:"openchat-flex openchat-flex-col openchat-items-start openchat-gap-1",children:[b.jsx("label",{htmlFor:"emailRespInput openchat-text-sm openchat-leading-[20px]",children:"Email"}),b.jsxs("div",{style:{boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 3px 0px inset"},className:"openchat-w-full openchat-flex openchat-items-center openchat-rounded-lg openchat-overflow-hidden openchat-border openchat-border-[rgb(225,_225,_225)] ",children:[b.jsx("input",{onChange:p=>{l(p.target.value),o(!1)},value:s,type:"email",disabled:i||n,placeholder:"email@example.com",className:hn("openchat-outline-none disabled:openchat-select-none selection:disabled:openchat-bg-transparent openchat-flex-1 disabled:openchat-bg-transparent openchat-w-full placeholder:openchat-text-accent2 placeholder:openchat-text-xs openchat-bg-[rgb(250,_250,_250)] focus:openchat-bg-transparent openchat-transition-colors openchat-h-full openchat-p-2.5",a?"openchat-text-[red]":""),id:"emailRespInput",required:!0,"aria-required":!0}),!i&&!n&&b.jsx("button",{onClick:d,className:hn("send openchat-p-3 openchat-text-2xl openchat-bg-primary"),children:b.jsx("span",{className:"openchat-text-white",children:b.jsx(_k,{})})}),n&&b.jsx("button",{className:"loader openchat-p-3 openchat-text-2xl openchat-bg-primary openchat-flex-center openchat-cursor-not-allowed openchat-pointer-events-none",children:b.jsx(sC,{height:"26",width:"26",color:"#fff"})}),!a&&!n&&i&&b.jsx("button",{className:"success openchat-p-3 openchat-text-2xl openchat-cursor-not-allowed openchat-pointer-events-none",children:b.jsx("span",{className:"openchat-text-[green]",children:b.jsx(N5,{})})})]})]}),a&&b.jsx("div",{className:"openchat-mt-1",children:b.jsx("p",{className:"openchat-text-xs openchat-text-[red]",children:"this doesn't look like an email"})})]})]}),b.jsx("div",{className:"openchat-w-full openchat-ps-[52px]",children:e&&b.jsx("div",{children:b.jsxs("span",{className:"openchat-text-xs openchat-m-0 group-last-of-type:openchat-inline hidden",children:["Bot ·"," ",b.jsx(p1,{date:Date.now(),timeStyle:"mini-minute-now",locale:"en-US"})]})})})]})}function Ej({className:e,label:n,onClick:t,timestamp:i,...r}){const[a,o]=k.useState(!1);return b.jsxs("div",{hidden:a,className:"openchat-clear-both openchat-w-full openchat-group",children:[b.jsxs("div",{className:"openchat-flex openchat-items-center openchat-gap-3 openchat-w-full",children:[b.jsx("div",{className:"openchat-w-10 openchat-h-10 openchat-bg-accent2 openchat-rounded-lg openchat-shrink-0 openchat-mt-auto"}),b.jsx("div",{className:"openchat-group openchat-space-y-2",children:b.jsx("div",{className:"mesg_body openchat-max-w-full",children:b.jsx("button",{...r,className:hn("openchat-rounded-lg openchat-text-primary hover:openchat-text-white openchat-flex-center openchat-px-2.5 openchat-py-2 openchat-whitespace-nowrap openchat-transition-all openchat-bg-primary-light hover:openchat-bg-primary openchat-cursor-pointer",e),onClick:s=>{o(!0),t&&t(s)},children:b.jsx("span",{children:n})})})})]}),b.jsx("div",{className:"openchat-w-full openchat-ps-[52px]",children:b.jsx("div",{children:i&&b.jsxs("span",{className:"openchat-text-xsopenchat- m-0 group-last-of-type:openchat-inline hidden",children:["Bot ·"," ",b.jsx(p1,{date:Date.now(),timeStyle:"mini-minute-now",locale:"en-US"})]})})})]})}function Pj(){const{displayText:e}=z1({text:"error sending the message.",every:.001});return b.jsx("div",{className:"openchat-clear-both openchat-w-full openchat-group",children:b.jsxs("div",{className:"openchat-flex openchat-items-center openchat-gap-3 openchat-w-full",children:[b.jsx("div",{className:"openchat-w-10 openchat-h-10 openchat-bg-accent2 openchat-rounded-lg openchat-shrink-0"}),b.jsx("div",{className:"openchat-group openchat-space-y-2 openchat-text-[red] openchat-outline-[red] openchat-outline-1 openchat-outline openchat-p-2 openchat-text-sm openchat-font-normal openchat-rounded-md",children:e})]})})}const $j=e=>[(t,i)=>{if(e.current){const{scrollWidth:r,scrollHeight:a}=e.current,o=r-e.current.clientWidth,s=a-e.current.clientHeight,l=t/100*o,f=i/100*s;e.current.scrollTo(l,f)}}];let Zu=0;function Tj(){k.useEffect(()=>{var e,n;const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=t[0])!==null&&e!==void 0?e:b0()),document.body.insertAdjacentElement("beforeend",(n=t[1])!==null&&n!==void 0?n:b0()),Zu++,()=>{Zu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Zu--}},[])}function b0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const ed="focusScope.autoFocusOnMount",nd="focusScope.autoFocusOnUnmount",_0={bubbles:!1,cancelable:!0},Oj=k.forwardRef((e,n)=>{const{loop:t=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...o}=e,[s,l]=k.useState(null),f=Ci(r),u=Ci(a),d=k.useRef(null),p=Vt(n,m=>l(m)),c=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(i){let g=function(x){if(c.paused||!s)return;const P=x.target;s.contains(P)?d.current=P:ni(d.current,{select:!0})},y=function(x){if(c.paused||!s)return;const P=x.relatedTarget;P!==null&&(s.contains(P)||ni(d.current,{select:!0}))},S=function(x){const P=document.activeElement;for(const O of x)O.removedNodes.length>0&&(s!=null&&s.contains(P)||ni(s))};var m=g,w=y,v=S;document.addEventListener("focusin",g),document.addEventListener("focusout",y);const E=new MutationObserver(S);return s&&E.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),E.disconnect()}}},[i,s,c.paused]),k.useEffect(()=>{if(s){S0.add(c);const m=document.activeElement;if(!s.contains(m)){const v=new CustomEvent(ed,_0);s.addEventListener(ed,f),s.dispatchEvent(v),v.defaultPrevented||(Fj(Mj(b3(s)),{select:!0}),document.activeElement===m&&ni(s))}return()=>{s.removeEventListener(ed,f),setTimeout(()=>{const v=new CustomEvent(nd,_0);s.addEventListener(nd,u),s.dispatchEvent(v),v.defaultPrevented||ni(m??document.body,{select:!0}),s.removeEventListener(nd,u),S0.remove(c)},0)}}},[s,f,u,c]);const h=k.useCallback(m=>{if(!t&&!i||c.paused)return;const w=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(w&&v){const g=m.currentTarget,[y,S]=jj(g);y&&S?!m.shiftKey&&v===S?(m.preventDefault(),t&&ni(y,{select:!0})):m.shiftKey&&v===y&&(m.preventDefault(),t&&ni(S,{select:!0})):v===g&&m.preventDefault()}},[t,i,c.paused]);return k.createElement(Gt.div,Ee({tabIndex:-1},o,{ref:p,onKeyDown:h}))});function Fj(e,{select:n=!1}={}){const t=document.activeElement;for(const i of e)if(ni(i,{select:n}),document.activeElement!==t)return}function jj(e){const n=b3(e),t=x0(n,e),i=x0(n.reverse(),e);return[t,i]}function b3(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function x0(e,n){for(const t of e)if(!Aj(t,{upTo:n}))return t}function Aj(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Rj(e){return e instanceof HTMLInputElement&&"select"in e}function ni(e,{select:n=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&Rj(e)&&n&&e.select()}}const S0=zj();function zj(){let e=[];return{add(n){const t=e[0];n!==t&&(t==null||t.pause()),e=C0(e,n),e.unshift(n)},remove(n){var t;e=C0(e,n),(t=e[0])===null||t===void 0||t.resume()}}}function C0(e,n){const t=[...e],i=t.indexOf(n);return i!==-1&&t.splice(i,1),t}function Mj(e){return e.filter(n=>n.tagName!=="A")}var Lj=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},ur=new WeakMap,ws=new WeakMap,ks={},td=0,_3=function(e){return e&&(e.host||_3(e.parentNode))},Nj=function(e,n){return n.map(function(t){if(e.contains(t))return t;var i=_3(t);return i&&e.contains(i)?i:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t})},Dj=function(e,n,t,i){var r=Nj(n,Array.isArray(e)?e:[e]);ks[t]||(ks[t]=new WeakMap);var a=ks[t],o=[],s=new Set,l=new Set(r),f=function(d){!d||s.has(d)||(s.add(d),f(d.parentNode))};r.forEach(f);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))u(p);else{var c=p.getAttribute(i),h=c!==null&&c!=="false",m=(ur.get(p)||0)+1,w=(a.get(p)||0)+1;ur.set(p,m),a.set(p,w),o.push(p),m===1&&h&&ws.set(p,!0),w===1&&p.setAttribute(t,"true"),h||p.setAttribute(i,"true")}})};return u(n),s.clear(),td++,function(){o.forEach(function(d){var p=ur.get(d)-1,c=a.get(d)-1;ur.set(d,p),a.set(d,c),p||(ws.has(d)||d.removeAttribute(i),ws.delete(d)),c||d.removeAttribute(t)}),td--,td||(ur=new WeakMap,ur=new WeakMap,ws=new WeakMap,ks={})}},Ij=function(e,n,t){t===void 0&&(t="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=n||Lj(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live]"))),Dj(i,r,t,"aria-hidden")):function(){return null}},ht=function(){return ht=Object.assign||function(n){for(var t,i=1,r=arguments.length;i"u")return iA;var n=rA(e),t=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-t+n[2]-n[0])}},oA=E3(),sA=function(e,n,t,i){var r=e.left,a=e.top,o=e.right,s=e.gap;return t===void 0&&(t="margin"),` + .`.concat(Hj,` { + overflow: hidden `).concat(i,`; + padding-right: `).concat(s,"px ").concat(i,`; + } + body { + overflow: hidden `).concat(i,`; + overscroll-behavior: contain; + `).concat([n&&"position: relative ".concat(i,";"),t==="margin"&&` + padding-left: `.concat(r,`px; + padding-top: `).concat(a,`px; + padding-right: `).concat(o,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(i,`; + `),t==="padding"&&"padding-right: ".concat(s,"px ").concat(i,";")].filter(Boolean).join(""),` + } + + .`).concat(Vs,` { + right: `).concat(s,"px ").concat(i,`; + } + + .`).concat(Gs,` { + margin-right: `).concat(s,"px ").concat(i,`; + } + + .`).concat(Vs," .").concat(Vs,` { + right: 0 `).concat(i,`; + } + + .`).concat(Gs," .").concat(Gs,` { + margin-right: 0 `).concat(i,`; + } + + body { + `).concat(Wj,": ").concat(s,`px; + } +`)},lA=function(e){var n=e.noRelative,t=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i,a=k.useMemo(function(){return aA(r)},[r]);return k.createElement(oA,{styles:sA(a,!n,r,t?"":"!important")})},Jc=!1;if(typeof window<"u")try{var bs=Object.defineProperty({},"passive",{get:function(){return Jc=!0,!0}});window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{Jc=!1}var dr=Jc?{passive:!1}:!1,fA=function(e){return e.tagName==="TEXTAREA"},P3=function(e,n){var t=window.getComputedStyle(e);return t[n]!=="hidden"&&!(t.overflowY===t.overflowX&&!fA(e)&&t[n]==="visible")},uA=function(e){return P3(e,"overflowY")},dA=function(e){return P3(e,"overflowX")},P0=function(e,n){var t=n;do{typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&(t=t.host);var i=$3(e,t);if(i){var r=T3(e,t),a=r[1],o=r[2];if(a>o)return!0}t=t.parentNode}while(t&&t!==document.body);return!1},cA=function(e){var n=e.scrollTop,t=e.scrollHeight,i=e.clientHeight;return[n,t,i]},pA=function(e){var n=e.scrollLeft,t=e.scrollWidth,i=e.clientWidth;return[n,t,i]},$3=function(e,n){return e==="v"?uA(n):dA(n)},T3=function(e,n){return e==="v"?cA(n):pA(n)},hA=function(e,n){return e==="h"&&n==="rtl"?-1:1},mA=function(e,n,t,i,r){var a=hA(e,window.getComputedStyle(n).direction),o=a*i,s=t.target,l=n.contains(s),f=!1,u=o>0,d=0,p=0;do{var c=T3(e,s),h=c[0],m=c[1],w=c[2],v=m-w-a*h;(h||v)&&$3(e,s)&&(d+=v,p+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(n.contains(s)||n===s));return(u&&(r&&d===0||!r&&o>d)||!u&&(r&&p===0||!r&&-o>p))&&(f=!0),f},_s=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$0=function(e){return[e.deltaX,e.deltaY]},T0=function(e){return e&&"current"in e?e.current:e},vA=function(e,n){return e[0]===n[0]&&e[1]===n[1]},gA=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},yA=0,cr=[];function wA(e){var n=k.useRef([]),t=k.useRef([0,0]),i=k.useRef(),r=k.useState(yA++)[0],a=k.useState(function(){return E3()})[0],o=k.useRef(e);k.useEffect(function(){o.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=Bj([e.lockRef.current],(e.shards||[]).map(T0),!0).filter(Boolean);return m.forEach(function(w){return w.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=k.useCallback(function(m,w){if("touches"in m&&m.touches.length===2)return!o.current.allowPinchZoom;var v=_s(m),g=t.current,y="deltaX"in m?m.deltaX:g[0]-v[0],S="deltaY"in m?m.deltaY:g[1]-v[1],E,x=m.target,P=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in m&&P==="h"&&x.type==="range")return!1;var O=P0(P,x);if(!O)return!0;if(O?E=P:(E=P==="v"?"h":"v",O=P0(P,x)),!O)return!1;if(!i.current&&"changedTouches"in m&&(y||S)&&(i.current=E),!E)return!0;var D=i.current||E;return mA(D,w,m,D==="h"?y:S,!0)},[]),l=k.useCallback(function(m){var w=m;if(!(!cr.length||cr[cr.length-1]!==a)){var v="deltaY"in w?$0(w):_s(w),g=n.current.filter(function(E){return E.name===w.type&&E.target===w.target&&vA(E.delta,v)})[0];if(g&&g.should){w.cancelable&&w.preventDefault();return}if(!g){var y=(o.current.shards||[]).map(T0).filter(Boolean).filter(function(E){return E.contains(w.target)}),S=y.length>0?s(w,y[0]):!o.current.noIsolation;S&&w.cancelable&&w.preventDefault()}}},[]),f=k.useCallback(function(m,w,v,g){var y={name:m,delta:w,target:v,should:g};n.current.push(y),setTimeout(function(){n.current=n.current.filter(function(S){return S!==y})},1)},[]),u=k.useCallback(function(m){t.current=_s(m),i.current=void 0},[]),d=k.useCallback(function(m){f(m.type,$0(m),m.target,s(m,e.lockRef.current))},[]),p=k.useCallback(function(m){f(m.type,_s(m),m.target,s(m,e.lockRef.current))},[]);k.useEffect(function(){return cr.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,dr),document.addEventListener("touchmove",l,dr),document.addEventListener("touchstart",u,dr),function(){cr=cr.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,dr),document.removeEventListener("touchmove",l,dr),document.removeEventListener("touchstart",u,dr)}},[]);var c=e.removeScrollBar,h=e.inert;return k.createElement(k.Fragment,null,h?k.createElement(a,{styles:gA(r)}):null,c?k.createElement(lA,{gapMode:"margin"}):null)}const kA=Qj(C3,wA);var O3=k.forwardRef(function(e,n){return k.createElement(Xf,ht({},e,{ref:n,sideCar:kA}))});O3.classNames=Xf.classNames;const bA=O3,F3="Popover",[j3,iz]=P1(F3,[qf]),Jf=qf(),[_A,ha]=j3(F3),xA=e=>{const{__scopePopover:n,children:t,open:i,defaultOpen:r,onOpenChange:a,modal:o=!1}=e,s=Jf(n),l=k.useRef(null),[f,u]=k.useState(!1),[d=!1,p]=g2({prop:i,defaultProp:r,onChange:a});return k.createElement(p2,s,k.createElement(_A,{scope:n,contentId:Xb(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:k.useCallback(()=>p(c=>!c),[p]),hasCustomAnchor:f,onCustomAnchorAdd:k.useCallback(()=>u(!0),[]),onCustomAnchorRemove:k.useCallback(()=>u(!1),[]),modal:o},t))},SA="PopoverTrigger",CA=k.forwardRef((e,n)=>{const{__scopePopover:t,...i}=e,r=ha(SA,t),a=Jf(t),o=Vt(n,r.triggerRef),s=k.createElement(Gt.button,Ee({type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":z3(r.open)},i,{ref:o,onClick:$n(e.onClick,r.onOpenToggle)}));return r.hasCustomAnchor?s:k.createElement(h2,Ee({asChild:!0},a),s)}),A3="PopoverPortal",[EA,PA]=j3(A3,{forceMount:void 0}),$A=e=>{const{__scopePopover:n,forceMount:t,children:i,container:r}=e,a=ha(A3,n);return k.createElement(EA,{scope:n,forceMount:t},k.createElement(Do,{present:t||a.open},k.createElement(v2,{asChild:!0,container:r},i)))},$o="PopoverContent",TA=k.forwardRef((e,n)=>{const t=PA($o,e.__scopePopover),{forceMount:i=t.forceMount,...r}=e,a=ha($o,e.__scopePopover);return k.createElement(Do,{present:i||a.open},a.modal?k.createElement(OA,Ee({},r,{ref:n})):k.createElement(FA,Ee({},r,{ref:n})))}),OA=k.forwardRef((e,n)=>{const t=ha($o,e.__scopePopover),i=k.useRef(null),r=Vt(n,i),a=k.useRef(!1);return k.useEffect(()=>{const o=i.current;if(o)return Ij(o)},[]),k.createElement(bA,{as:$1,allowPinchZoom:!0},k.createElement(R3,Ee({},e,{ref:r,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$n(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),a.current||(s=t.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:$n(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,f=s.button===2||l;a.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:$n(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})))}),FA=k.forwardRef((e,n)=>{const t=ha($o,e.__scopePopover),i=k.useRef(!1),r=k.useRef(!1);return k.createElement(R3,Ee({},e,{ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,a),!a.defaultPrevented){var s;i.current||(s=t.triggerRef.current)===null||s===void 0||s.focus(),a.preventDefault()}i.current=!1,r.current=!1},onInteractOutside:a=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,a),a.defaultPrevented||(i.current=!0,a.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const l=a.target;((s=t.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&r.current&&a.preventDefault()}}))}),R3=k.forwardRef((e,n)=>{const{__scopePopover:t,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:u,...d}=e,p=ha($o,t),c=Jf(t);return Tj(),k.createElement(Oj,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:a},k.createElement(Yb,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1)},k.createElement(m2,Ee({"data-state":z3(p.open),role:"dialog",id:p.contentId},c,d,{ref:n,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}),jA=k.forwardRef((e,n)=>{const{__scopePopover:t,...i}=e,r=Jf(t);return k.createElement(nE,Ee({},r,i,{ref:n}))});function z3(e){return e?"open":"closed"}const AA=xA,RA=CA,zA=$A,MA=TA,LA=jA,NA=[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","robot_face","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","kiss","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","orange_heart","yellow_heart","green_heart","blue_heart","purple_heart","brown_heart","black_heart","white_heart","100","anger","boom","dizzy","sweat_drops","dash","hole","bomb","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","mushroom","peanuts","beans","chestnut","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","8ball","crystal_ball","magic_wand","nazar_amulet","hamsa","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","gun","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],DA={100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶‍🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮‍💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵‍💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous","oops","huh"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},kiss:{id:"kiss",name:"Kiss Mark",keywords:["face","lips","love","like","affection","valentines"],skins:[{unified:"1f48b",native:"💋"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["2&&(o.children=arguments.length>3?Zf.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return Ks(e,o,i,r,null)}function Ks(e,n,t,i,r){var a={type:e,props:n,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++L3};return r==null&&ie.vnode!=null&&ie.vnode(a),a}function Ct(){return{current:null}}function na(e){return e.children}function yt(e,n){this.props=e,this.context=n}function ta(e,n){if(n==null)return e.__?ta(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n0?Ks(c.type,c.props,c.key,null,c.__v):c)!=null){if(c.__=t,c.__b=t.__b+1,(p=v[u])===null||p&&c.key==p.key&&c.type===p.type)v[u]=void 0;else for(d=0;d{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const n=25,t=20,i=Math.floor(n/2);return e.font=i+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=t*2,e.canvas.height=n,r=>{e.clearRect(0,0,t*2,n),e.fillStyle="#FF0000",e.fillText(r,0,22),e.fillStyle="#0000FF",e.fillText(r,t,22);const a=e.getImageData(0,0,t,n).data,o=a.length;let s=0;for(;s=o)return!1;const l=t+s/4%t,f=Math.floor(s/4/t),u=e.getImageData(l,f,1,1).data;return!(a[s]!==u[0]||a[s+2]!==u[2]||e.measureText(r).width>=t)}})();var z0={latestVersion:XA,noCountryFlags:JA};const ep=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let tn=null;function eR(e){tn||(tn=bi.get("frequently")||{});const n=e.id||e;n&&(tn[n]||(tn[n]=0),tn[n]+=1,bi.set("last",n),bi.set("frequently",tn))}function nR({maxFrequentRows:e,perLine:n}){if(!e)return[];tn||(tn=bi.get("frequently"));let t=[];if(!tn){tn={};for(let a in ep.slice(0,n)){const o=ep[a];tn[o]=n-a,t.push(o)}return t}const i=e*n,r=bi.get("last");for(let a in tn)t.push(a);if(t.sort((a,o)=>{const s=tn[o],l=tn[a];return s==l?a.localeCompare(o):s-l}),t.length>i){const a=t.slice(i);t=t.slice(0,i);for(let o of a)o!=r&&delete tn[o];r&&t.indexOf(r)==-1&&(delete tn[t[t.length-1]],t.splice(-1,1,r)),bi.set("frequently",tn)}return t}var Q3={add:eR,get:nR,DEFAULTS:ep},X3={};X3=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 Tt={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:14,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14]},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","kr","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 ln=null,ue=null;const od={};async function M0(e){if(od[e])return od[e];const t=await(await fetch(e)).json();return od[e]=t,t}let sd=null,J3=null,Z3=!1;function eu(e,{caller:n}={}){return sd||(sd=new Promise(t=>{J3=t})),e?tR(e):n&&!Z3&&console.warn(`\`${n}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),sd}async function tR(e){Z3=!0;let{emojiVersion:n,set:t,locale:i}=e;if(n||(n=Tt.emojiVersion.value),t||(t=Tt.set.value),i||(i=Tt.locale.value),ue)ue.categories=ue.categories.filter(l=>!l.name);else{ue=(typeof e.data=="function"?await e.data():e.data)||await M0(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${n}/${t}.json`),ue.emoticons={},ue.natives={},ue.categories.unshift({id:"frequent",emojis:[]});for(const l in ue.aliases){const f=ue.aliases[l],u=ue.emojis[f];u&&(u.aliases||(u.aliases=[]),u.aliases.push(l))}ue.originalCategories=ue.categories}if(ln=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(i=="en"?M3(X3):await M0(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),e.custom)for(let l in e.custom){l=parseInt(l);const f=e.custom[l],u=e.custom[l-1];if(!(!f.emojis||!f.emojis.length)){f.id||(f.id=`custom_${l+1}`),f.name||(f.name=ln.categories.custom),u&&!f.icon&&(f.target=u.target||u),ue.categories.push(f);for(const d of f.emojis)ue.emojis[d.id]=d}}e.categories&&(ue.categories=ue.originalCategories.filter(l=>e.categories.indexOf(l.id)!=-1).sort((l,f)=>{const u=e.categories.indexOf(l.id),d=e.categories.indexOf(f.id);return u-d}));let r=null,a=null;t=="native"&&(r=z0.latestVersion(),a=e.noCountryFlags||z0.noCountryFlags());let o=ue.categories.length,s=!1;for(;o--;){const l=ue.categories[o];if(l.id=="frequent"){let{maxFrequentRows:d,perLine:p}=e;d=d>=0?d:Tt.maxFrequentRows.value,p||(p=Tt.perLine.value),l.emojis=Q3.get({maxFrequentRows:d,perLine:p})}if(!l.emojis||!l.emojis.length){ue.categories.splice(o,1);continue}const{categoryIcons:f}=e;if(f){const d=f[l.id];d&&!l.icon&&(l.icon=d)}let u=l.emojis.length;for(;u--;){const d=l.emojis[u],p=d.id?d:ue.emojis[d],c=()=>{l.emojis.splice(u,1)};if(!p||e.exceptEmojis&&e.exceptEmojis.includes(p.id)){c();continue}if(r&&p.version>r){c();continue}if(a&&l.id=="flags"&&!sR.includes(p.id)){c();continue}if(!p.search){if(s=!0,p.search=","+[[p.id,!1],[p.name,!0],[p.keywords,!1],[p.emoticons,!1]].map(([m,w])=>{if(m)return(Array.isArray(m)?m:[m]).map(v=>(w?v.split(/[-|_|\s]+/):[v]).map(g=>g.toLowerCase())).flat()}).flat().filter(m=>m&&m.trim()).join(","),p.emoticons)for(const m of p.emoticons)ue.emoticons[m]||(ue.emoticons[m]=p.id);let h=0;for(const m of p.skins){if(!m)continue;h++;const{native:w}=m;w&&(ue.natives[w]=p.id,p.search+=`,${w}`);const v=h==1?"":`:skin-tone-${h}:`;m.shortcodes=`:${p.id}:${v}`}}}}s&&Br.reset(),J3()}function e_(e,n,t){e||(e={});const i={};for(let r in n)i[r]=n_(r,e,n,t);return i}function n_(e,n,t,i){const r=t[e];let a=i&&i.getAttribute(e)||(n[e]!=null&&n[e]!=null?n[e]: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 iR=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let np=null;function rR(e){return e.id?e:ue.emojis[e]||ue.emojis[ue.aliases[e]]||ue.emojis[ue.natives[e]]}function aR(){np=null}async function oR(e,{maxResults:n,caller:t}={}){if(!e||!e.trim().length)return null;n||(n=90),await eu(null,{caller:t||"SearchIndex.search"});const i=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((s,l,f)=>s.trim()&&f.indexOf(s)==l);if(!i.length)return;let r=np||(np=Object.values(ue.emojis)),a,o;for(const s of i){if(!r.length)break;a=[],o={};for(const l of r){if(!l.search)continue;const f=l.search.indexOf(`,${s}`);f!=-1&&(a.push(l),o[l.id]||(o[l.id]=0),o[l.id]+=l.id==s?0:f+1)}r=a}return a.length<2||(a.sort((s,l)=>{const f=o[s.id],u=o[l.id];return f==u?s.id.localeCompare(l.id):f-u}),a.length>n&&(a=a.slice(0,n))),a}var Br={search:oR,get:rR,reset:aR,SHORTCODES_REGEX:iR};const sR=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function lR(e,n){return Array.isArray(e)&&Array.isArray(n)&&e.length===n.length&&e.every((t,i)=>t==n[i])}async function fR(e=1){for(let n in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function uR(e,{skinIndex:n=0}={}){const t=e.skins[n]||(()=>(n=0,e.skins[n]))(),i={id:e.id,name:e.name,native:t.native,unified:t.unified,keywords:e.keywords,shortcodes:t.shortcodes||e.shortcodes};return e.skins.length>1&&(i.skin=n+1),t.src&&(i.src=t.src),e.aliases&&e.aliases.length&&(i.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(i.emoticons=e.emoticons),i}const dR={activity:{outline:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[N("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[N("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"}),N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[N("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"}),N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[N("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"}),N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[N("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"}),N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:N("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"})})}},cR={loupe:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:N("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:N("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:N("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 Vl={categories:dR,search:cR};function tp(e){let{id:n,skin:t,emoji:i}=e;if(e.shortcodes){const s=e.shortcodes.match(Br.SHORTCODES_REGEX);s&&(n=s[1],s[2]&&(t=s[2]))}if(i||(i=Br.get(n||e.native)),!i)return e.fallback;const r=i.skins[t-1]||i.skins[0],a=r.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/64/${r.unified}.png`:void 0),o=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/sheets-256/64.png`;return N("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?N("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):e.set=="native"?N("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):N("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${o})`,backgroundSize:`${100*ue.sheet.cols}% ${100*ue.sheet.rows}%`,backgroundPosition:`${100/(ue.sheet.cols-1)*r.x}% ${100/(ue.sheet.rows-1)*r.y}%`}})})}const pR=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class t_ extends pR{static get observedAttributes(){return Object.keys(this.Props)}update(n={}){for(let t in n)this.attributeChangedCallback(t,null,n[t])}attributeChangedCallback(n,t,i){if(!this.component)return;const r=n_(n,{[n]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[n]:r}):(this.component.props[n]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(n={}){if(super(),this.props=n,n.parent||n.ref){let t=null;const i=n.parent||(t=n.ref&&n.ref.current);t&&(t.innerHTML=""),i&&i.appendChild(this)}}}class hR extends t_{setShadow(){this.attachShadow({mode:"open"})}injectStyles(n){if(!n)return;const t=document.createElement("style");t.textContent=n,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(n,{styles:t}={}){super(n),this.setShadow(),this.injectStyles(t)}}var i_={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:Tt.set,skin:Tt.skin};class r_ extends t_{async connectedCallback(){const n=e_(this.props,i_,this);n.element=this,n.ref=t=>{this.component=t},await eu(),!this.disconnected&&K3(N(tp,{...n}),this)}constructor(n){super(n)}}Zn(r_,"Props",i_);typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",r_);var L0,ip=[],N0=ie.__b,D0=ie.__r,I0=ie.diffed,B0=ie.__c,H0=ie.unmount;function mR(){var e;for(ip.sort(function(n,t){return n.__v.__b-t.__v.__b});e=ip.pop();)if(e.__P)try{e.__H.__h.forEach(Ys),e.__H.__h.forEach(rp),e.__H.__h=[]}catch(n){e.__H.__h=[],ie.__e(n,e.__v)}}ie.__b=function(e){N0&&N0(e)},ie.__r=function(e){D0&&D0(e);var n=e.__c.__H;n&&(n.__h.forEach(Ys),n.__h.forEach(rp),n.__h=[])},ie.diffed=function(e){I0&&I0(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(ip.push(n)!==1&&L0===ie.requestAnimationFrame||((L0=ie.requestAnimationFrame)||function(t){var i,r=function(){clearTimeout(a),W0&&cancelAnimationFrame(i),setTimeout(t)},a=setTimeout(r,100);W0&&(i=requestAnimationFrame(r))})(mR))},ie.__c=function(e,n){n.some(function(t){try{t.__h.forEach(Ys),t.__h=t.__h.filter(function(i){return!i.__||rp(i)})}catch(i){n.some(function(r){r.__h&&(r.__h=[])}),n=[],ie.__e(i,t.__v)}}),B0&&B0(e,n)},ie.unmount=function(e){H0&&H0(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Ys(i)}catch(r){n=r}}),n&&ie.__e(n,t.__v))};var W0=typeof requestAnimationFrame=="function";function Ys(e){var n=e.__c;typeof n=="function"&&(e.__c=void 0,n())}function rp(e){e.__c=e.__()}function vR(e,n){for(var t in n)e[t]=n[t];return e}function U0(e,n){for(var t in e)if(t!=="__source"&&!(t in n))return!0;for(var i in n)if(i!=="__source"&&e[i]!==n[i])return!0;return!1}function Gl(e){this.props=e}(Gl.prototype=new yt).isPureReactComponent=!0,Gl.prototype.shouldComponentUpdate=function(e,n){return U0(this.props,e)||U0(this.state,n)};var q0=ie.__b;ie.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),q0&&q0(e)};var gR=ie.__e;ie.__e=function(e,n,t){if(e.then){for(var i,r=n;r=r.__;)if((i=r.__c)&&i.__c)return n.__e==null&&(n.__e=t.__e,n.__k=t.__k),i.__c(e,n)}gR(e,n,t)};var V0=ie.unmount;function ld(){this.__u=0,this.t=null,this.__b=null}function a_(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function xs(){this.u=null,this.o=null}ie.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&e.__h===!0&&(e.type=null),V0&&V0(e)},(ld.prototype=new yt).__c=function(e,n){var t=n.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var r=a_(i.__v),a=!1,o=function(){a||(a=!0,t.__R=null,r?r(s):s())};t.__R=o;var s=function(){if(!--i.__u){if(i.state.__e){var f=i.state.__e;i.__v.__k[0]=function d(p,c,h){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(m){return d(m,c,h)}),p.__c&&p.__c.__P===c&&(p.__e&&h.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=h)),p}(f,f.__c.__P,f.__c.__O)}var u;for(i.setState({__e:i.__b=null});u=i.t.pop();)u.forceUpdate()}},l=n.__h===!0;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(o,o)},ld.prototype.componentWillUnmount=function(){this.t=[]},ld.prototype.render=function(e,n){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,s,l){return o&&(o.__c&&o.__c.__H&&(o.__c.__H.__.forEach(function(f){typeof f.__c=="function"&&f.__c()}),o.__c.__H=null),(o=vR({},o)).__c!=null&&(o.__c.__P===l&&(o.__c.__P=s),o.__c=null),o.__k=o.__k&&o.__k.map(function(f){return a(f,s,l)})),o}(this.__b,t,i.__O=i.__P)}this.__b=null}var r=n.__e&&Zc(na,null,e.fallback);return r&&(r.__h=null),[Zc(na,null,n.__e?null:e.children),r]};var G0=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]{const r=t.name||ln.categories[t.id],a=!this.props.unfocused&&t.id==this.state.categoryId;return a&&(n=i),N("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)})}),N("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:n==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${n*100}%)`:`translateX(${n*100}%)`}})]})})}constructor(){super(),this.categories=ue.categories.filter(n=>!n.target),this.state={categoryId:this.categories[0].id}}}class PR extends Gl{shouldComponentUpdate(n){for(let t in n)if(t!="children"&&n[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}const Ss={rowsPerRender:10};class $R extends yt{getInitialState(n=this.props){return{skin:bi.get("skin")||n.skin,theme:this.initTheme(n.theme)}}componentWillMount(){this.dir=ln.rtl?"rtl":"ltr",this.refs={menu:Ct(),navigation:Ct(),scroll:Ct(),search:Ct(),searchInput:Ct(),skinToneButton:Ct(),skinToneRadio:Ct()},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:n}=this.refs;n.current&&n.current.focus()}}componentWillReceiveProps(n){this.nextState||(this.nextState={});for(const t in n)this.nextState[t]=n[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(n={}){await eu(this.props),this.initGrid(),this.unobserve(),this.setState(n,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){document.removeEventListener("click",this.handleClickOutside),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:n=[]}={}){Array.isArray(n)||(n=[n]);for(const t of this.observers)n.includes(t)||t.disconnect();this.observers=[].concat(n)}initGrid(){const{categories:n}=ue;this.refs.categories=new Map;const t=ue.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 s=this.grid.length-1,l=s%Ss.rowsPerRender?{}:Ct();return l.index=s,l.posinset=this.grid.setsize+1,r.push(l),o};for(let r of n){const a=[];let o=i(a,r);for(let s of r.emojis)o.length==this.getPerLine()&&(o=i(a,r)),this.grid.setsize+=1,o.push(s);this.refs.categories.set(r.id,{root:Ct(),rows:a})}}initTheme(n){if(n!="auto")return n;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addListener(()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})})}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(n=this.props){if(!n.dynamicWidth)return;const{element:t,emojiButtonSize:i}=n,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([n,t]){const i=this.state.searchResults||this.grid,r=i[n]&&i[n][t];if(r)return Br.get(r)}observeCategories(){const n=this.refs.navigation.current;if(!n)return;const t=new Map,i=o=>{o!=n.state.categoryId&&n.setState({categoryId:o})},r={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(o=>{for(const l of o){const f=l.target.dataset.id;t.set(f,l.intersectionRatio)}const s=[...t];for(const[l,f]of s)if(f){i(l);break}},r);for(const{root:o}of this.refs.categories.values())a.observe(o.current);this.observers.push(a)}observeRows(){const n={...this.state.visibleRows},t=new IntersectionObserver(i=>{for(const r of i){const a=parseInt(r.target.dataset.index);r.isIntersecting?n[a]=!0:delete n[a]}this.setState({visibleRows:n})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(Ss.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*Ss.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(n){n.preventDefault()}unfocusSearch(){const n=this.refs.searchInput.current;n&&n.blur()}navigate({e:n,input:t,left:i,right:r,up:a,down:o}){const s=this.state.searchResults||this.grid;if(!s.length)return;let[l,f]=this.state.pos;const u=(()=>{if(l==0&&f==0&&!n.repeat&&(i||a))return null;if(l==-1)return!n.repeat&&(r||o)&&t.selectionStart==t.value.length?[0,0]:null;if(i||r){let d=s[l];const p=i?-1:1;if(f+=p,!d[f]){if(l+=p,d=s[l],!d)return l=i?0:s.length-1,f=i?0:s[l].length-1,[l,f];f=i?d.length-1:0}return[l,f]}if(a||o){l+=a?-1:1;const d=s[l];return d?(d[f]||(f=d.length-1),[l,f]):(l=a?0:s.length-1,f=a?0:s[l].length-1,[l,f])}})();if(u)n.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:u,keyboard:!0},()=>{this.scrollTo({row:u[0]})})}scrollTo({categoryId:n,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&&(n=i[t].__categoryId),n&&(o=(this.refs[n]||this.refs.categories.get(n).root).current.getBoundingClientRect().top-(a.top-r.scrollTop)+1),t>=0)if(!t)o=0;else{const s=i[t].__index,l=o+s*this.props.emojiButtonSize,f=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(lr.scrollTop+a.height)o=f-a.height;else return}this.ignoreMouse(),r.scrollTop=o}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(n){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:n||[-1,-1],keyboard:!1})}handleEmojiClick({e:n,emoji:t,pos:i}){if(this.props.onEmojiSelect&&(!t&&i&&(t=this.getEmojiByPos(i)),t)){const r=uR(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&Q3.add(r,this.props),this.props.onEmojiSelect(r,n)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(n){this.setState({tempSkin:n})}handleSkinClick(n){this.ignoreMouse(),this.closeSkins(),this.setState({skin:n,tempSkin:null}),bi.set("skin",n)}renderNav(){return N(ER,{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 n=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return N("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[N("div",{class:"flex flex-middle flex-grow",children:[N("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:N(tp,{emoji:n,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})}),N("div",{class:`margin-${this.dir[0]}`,children:n||t?N("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[N("div",{class:"preview-title ellipsis",children:n?n.name:ln.search_no_results_1}),N("div",{class:"preview-subtitle ellipsis color-c",children:n?n.skins[0].shortcodes:ln.search_no_results_2})]}):N("div",{class:"preview-placeholder color-c",children:ln.pick})})]}),!n&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(n,{pos:t,posinset:i,grid:r}){const a=this.props.emojiButtonSize,o=this.state.tempSkin||this.state.skin,l=(n.skins[o-1]||n.skins[0]).native,f=lR(this.state.pos,t),u=t.concat(n.id).join("");return N(PR,{selected:f,skin:o,size:a,children:N("button",{"aria-label":l,"aria-selected":f||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?n.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:d=>this.handleEmojiClick({e:d,emoji:n}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[N("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}}),N(tp,{emoji:n,set:this.props.set,size:this.props.emojiSize,skin:o,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},u)}renderSearch(){const n=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return N("div",{children:[N("div",{class:"spacer"}),N("div",{class:"flex flex-middle",children:[N("div",{class:"search relative flex-grow",children:[N("input",{type:"search",ref:this.refs.searchInput,placeholder:ln.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),N("span",{class:"icon loupe flex",children:Vl.search.loupe}),this.state.searchResults&&N("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Vl.search.delete})]}),n&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:n}=this.state;return n?N("div",{class:"category",ref:this.refs.search,children:[N("div",{class:`sticky padding-small align-${this.dir[0]}`,children:ln.categories.search}),N("div",{children:n.length?n.map((t,i)=>N("div",{class:"flex",children:t.map((r,a)=>this.renderEmojiButton(r,{pos:[i,a],posinset:i*this.props.perLine+a+1,grid:n}))})):N("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&N("a",{onClick:this.props.onAddCustomEmoji,children:ln.add_custom})})})]}):null}renderCategories(){const{categories:n}=ue,t=!!this.state.searchResults,i=this.getPerLine();return N("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0,height:"100%"},children:n.map(r=>{const{root:a,rows:o}=this.refs.categories.get(r.id);return N("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[N("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||ln.categories[r.id]}),N("div",{class:"relative",style:{height:o.length*this.props.emojiButtonSize},children:o.map((s,l)=>{const f=s.index-s.index%Ss.rowsPerRender,u=this.state.visibleRows[f],d="current"in s?s:void 0;if(!u&&!d)return null;const p=l*i,c=p+i,h=r.emojis.slice(p,c);return h.length{if(!m)return N("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const v=Br.get(m);return this.renderEmojiButton(v,{pos:[s.index,w],posinset:s.posinset+w,grid:this.grid})})},s.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:N("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:N("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":ln.skins.choose,title:ln.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:N("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const n=this.getEmojiByPos(this.state.pos),t=n?n.name:"";return N("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"),N("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":ln.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{const o=a+1,s=this.state.skin==o;return N("div",{children:[N("input",{type:"radio",name:"skin-tone",value:o,"aria-label":ln.skins[o],ref:s?this.refs.skinToneRadio:null,defaultChecked:s,onChange:()=>this.handleSkinMouseOver(o),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(o))}}),N("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:[N("span",{class:`skin-tone skin-tone-${o}`}),N("span",{class:"margin-small-lr",children:ln.skins[o]})]})]})})})}render(){const n=this.props.perLine*this.props.emojiButtonSize;return N("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${n}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"&&N("div",{class:"padding-lr",children:this.renderSearch()}),N("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:N("div",{style:{width:this.props.dynamicWidth?"100%":n,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(n){super(),Zn(this,"handleClickOutside",t=>{const{element:i}=this.props;t.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(t))}),Zn(this,"handleBaseClick",t=>{this.state.showSkins&&(t.target.closest(".menu")||(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins()))}),Zn(this,"handleBaseKeydown",t=>{this.state.showSkins&&t.key=="Escape"&&(t.preventDefault(),t.stopImmediatePropagation(),this.closeSkins())}),Zn(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),Zn(this,"handleSearchInput",async()=>{const t=this.refs.searchInput.current;if(!t)return;const{value:i}=t,r=await Br.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],s=[];s.setsize=r.length;let l=null;for(let f of r)(!s.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=s.length,s.push(l)),l.push(f);this.ignoreMouse(),this.setState({searchResults:s,pos:o},a)}),Zn(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}}),Zn(this,"clearSearch",()=>{const t=this.refs.searchInput.current;t&&(t.value="",t.focus(),this.handleSearchInput())}),Zn(this,"handleCategoryClick",({category:t,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:t.id})}),Zn(this,"openSkins",t=>{const{currentTarget:i}=t,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await fR(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(n),visibleRows:{0:!0},...this.getInitialState(n)}}}class G1 extends hR{async connectedCallback(){const n=e_(this.props,Tt,this);n.element=this,n.ref=t=>{this.component=t},await eu(n),!this.disconnected&&K3(N($R,{...n}),this.shadowRoot)}constructor(n){super(n,{styles:M3(o_)})}}Zn(G1,"Props",Tt);typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",G1);var o_={};o_=`:host { + width: min-content; + height: 435px; + min-height: 230px; + border-radius: var(--border-radius); + box-shadow: var(--shadow); + --border-radius: 10px; + --category-icon-size: 18px; + --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; + --font-size: 15px; + --preview-placeholder-size: 21px; + --preview-title-size: 1.1em; + --preview-subtitle-size: .9em; + --shadow-color: 0deg 0% 0%; + --shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14); + display: flex; +} + +[data-theme="light"] { + --em-rgb-color: var(--rgb-color, 34, 36, 39); + --em-rgb-accent: var(--rgb-accent, 34, 102, 237); + --em-rgb-background: var(--rgb-background, 255, 255, 255); + --em-rgb-input: var(--rgb-input, 255, 255, 255); + --em-color-border: var(--color-border, rgba(0, 0, 0, .05)); + --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1)); +} + +[data-theme="dark"] { + --em-rgb-color: var(--rgb-color, 222, 222, 221); + --em-rgb-accent: var(--rgb-accent, 58, 130, 247); + --em-rgb-background: var(--rgb-background, 21, 22, 23); + --em-rgb-input: var(--rgb-input, 0, 0, 0); + --em-color-border: var(--color-border, rgba(255, 255, 255, .1)); + --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2)); +} + +#root { + --color-a: rgb(var(--em-rgb-color)); + --color-b: rgba(var(--em-rgb-color), .65); + --color-c: rgba(var(--em-rgb-color), .45); + --padding: 12px; + --padding-small: calc(var(--padding) / 2); + --sidebar-width: 16px; + --duration: 225ms; + --duration-fast: 125ms; + --duration-instant: 50ms; + --easing: cubic-bezier(.4, 0, .2, 1); + width: 100%; + text-align: left; + border-radius: var(--border-radius); + background-color: rgb(var(--em-rgb-background)); + position: relative; +} + +@media (prefers-reduced-motion) { + #root { + --duration: 0; + --duration-fast: 0; + --duration-instant: 0; + } +} + +#root[data-menu] button { + cursor: auto; +} + +#root[data-menu] .menu button { + cursor: pointer; +} + +:host, #root, input, button { + color: rgb(var(--em-rgb-color)); + font-family: var(--font-family); + font-size: var(--font-size); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + line-height: normal; +} + +*, :before, :after { + box-sizing: border-box; + min-width: 0; + margin: 0; + padding: 0; +} + +.relative { + position: relative; +} + +.flex { + display: flex; +} + +.flex-auto { + flex: none; +} + +.flex-center { + justify-content: center; +} + +.flex-column { + flex-direction: column; +} + +.flex-grow { + flex: auto; +} + +.flex-middle { + align-items: center; +} + +.flex-wrap { + flex-wrap: wrap; +} + +.padding { + padding: var(--padding); +} + +.padding-t { + padding-top: var(--padding); +} + +.padding-lr { + padding-left: var(--padding); + padding-right: var(--padding); +} + +.padding-r { + padding-right: var(--padding); +} + +.padding-small { + padding: var(--padding-small); +} + +.padding-small-b { + padding-bottom: var(--padding-small); +} + +.padding-small-lr { + padding-left: var(--padding-small); + padding-right: var(--padding-small); +} + +.margin { + margin: var(--padding); +} + +.margin-r { + margin-right: var(--padding); +} + +.margin-l { + margin-left: var(--padding); +} + +.margin-small-l { + margin-left: var(--padding-small); +} + +.margin-small-lr { + margin-left: var(--padding-small); + margin-right: var(--padding-small); +} + +.align-l { + text-align: left; +} + +.align-r { + text-align: right; +} + +.color-a { + color: var(--color-a); +} + +.color-b { + color: var(--color-b); +} + +.color-c { + color: var(--color-c); +} + +.ellipsis { + white-space: nowrap; + max-width: 100%; + width: auto; + text-overflow: ellipsis; + overflow: hidden; +} + +.sr-only { + width: 1px; + height: 1px; + position: absolute; + top: auto; + left: -10000px; + overflow: hidden; +} + +a { + cursor: pointer; + color: rgb(var(--em-rgb-accent)); +} + +a:hover { + text-decoration: underline; +} + +.spacer { + height: 10px; +} + +[dir="rtl"] .scroll { + padding-left: 0; + padding-right: var(--padding); +} + +.scroll { + padding-right: 0; + overflow-x: hidden; + overflow-y: auto; +} + +.scroll::-webkit-scrollbar { + width: var(--sidebar-width); + height: var(--sidebar-width); +} + +.scroll::-webkit-scrollbar-track { + border: 0; +} + +.scroll::-webkit-scrollbar-button { + width: 0; + height: 0; + display: none; +} + +.scroll::-webkit-scrollbar-corner { + background-color: rgba(0, 0, 0, 0); +} + +.scroll::-webkit-scrollbar-thumb { + min-height: 20%; + min-height: 65px; + border: 4px solid rgb(var(--em-rgb-background)); + border-radius: 8px; +} + +.scroll::-webkit-scrollbar-thumb:hover { + background-color: var(--em-color-border-over) !important; +} + +.scroll:hover::-webkit-scrollbar-thumb { + background-color: var(--em-color-border); +} + +.sticky { + z-index: 1; + background-color: rgba(var(--em-rgb-background), .9); + -webkit-backdrop-filter: blur(4px); + backdrop-filter: blur(4px); + font-weight: 500; + position: sticky; + top: -1px; +} + +[dir="rtl"] .search input[type="search"] { + padding: 10px 2.2em 10px 2em; +} + +[dir="rtl"] .search .loupe { + left: auto; + right: .7em; +} + +[dir="rtl"] .search .delete { + left: .7em; + right: auto; +} + +.search { + z-index: 2; + position: relative; +} + +.search input, .search button { + font-size: calc(var(--font-size) - 1px); +} + +.search input[type="search"] { + width: 100%; + background-color: var(--em-color-border); + transition-duration: var(--duration); + transition-property: background-color, box-shadow; + transition-timing-function: var(--easing); + border: 0; + border-radius: 10px; + outline: 0; + padding: 10px 2em 10px 2.2em; + display: block; +} + +.search input[type="search"]::-ms-input-placeholder { + color: inherit; + opacity: .6; +} + +.search input[type="search"]::placeholder { + color: inherit; + opacity: .6; +} + +.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration { + -webkit-appearance: none; + -ms-appearance: none; + appearance: none; } -function initializeChatWidget(e) { - setTimeout(function () { - var t = document.createElement("div"); - t.id = "chat-container"; - var a = document.createElement("div"); - a.id = "chat-bubble", a.onclick = toggleChat, a.innerHTML = ''; - var i = document.createElement("div"); - i.id = "chat-box", i.classList.add("closed"); - var d = "http://localhost:8000/chat/" + e.token; - i.innerHTML = '', t.appendChild(a), t.appendChild(i), document.body.appendChild(t) - }, 0) +.search input[type="search"]:focus { + background-color: rgb(var(--em-rgb-input)); + box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2); } -function loadCSS() { - var e = document.createElement("link"); - e.rel = "stylesheet", e.href = "http://localhost:8000/chat.css", document.head.appendChild(e) +.search .icon { + z-index: 1; + color: rgba(var(--em-rgb-color), .7); + position: absolute; + top: 50%; + transform: translateY(-50%); } -loadCSS(); +.search .loupe { + pointer-events: none; + left: .7em; +} + +.search .delete { + right: .7em; +} + +svg { + fill: currentColor; + width: 1em; + height: 1em; +} + +button { + -webkit-appearance: none; + -ms-appearance: none; + appearance: none; + cursor: pointer; + color: currentColor; + background-color: rgba(0, 0, 0, 0); + border: 0; +} + +#nav { + z-index: 2; + padding-top: 12px; + padding-bottom: 12px; + padding-right: var(--sidebar-width); + position: relative; +} + +#nav button { + color: var(--color-b); + transition: color var(--duration) var(--easing); +} + +#nav button:hover { + color: var(--color-a); +} + +#nav svg, #nav img { + width: var(--category-icon-size); + height: var(--category-icon-size); +} + +#nav[dir="rtl"] .bar { + left: auto; + right: 0; +} + +#nav .bar { + width: 100%; + height: 3px; + background-color: rgb(var(--em-rgb-accent)); + transition: transform var(--duration) var(--easing); + border-radius: 3px 3px 0 0; + position: absolute; + bottom: -12px; + left: 0; +} + +#nav button[aria-selected] { + color: rgb(var(--em-rgb-accent)); +} + +#preview { + z-index: 2; + padding: calc(var(--padding) + 4px) var(--padding); + padding-right: var(--sidebar-width); + position: relative; +} + +#preview .preview-placeholder { + font-size: var(--preview-placeholder-size); +} + +#preview .preview-title { + font-size: var(--preview-title-size); +} + +#preview .preview-subtitle { + font-size: var(--preview-subtitle-size); +} + +#nav:before, #preview:before { + content: ""; + height: 2px; + position: absolute; + left: 0; + right: 0; +} + +#nav[data-position="top"]:before, #preview[data-position="top"]:before { + background: linear-gradient(to bottom, var(--em-color-border), transparent); + top: 100%; +} + +#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before { + background: linear-gradient(to top, var(--em-color-border), transparent); + bottom: 100%; +} + +.category:last-child { + min-height: calc(100% + 1px); +} + +.category button { + font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif; + position: relative; +} + +.category button > * { + position: relative; +} + +.category button .background { + opacity: 0; + background-color: var(--em-color-border); + transition: opacity var(--duration-fast) var(--easing) var(--duration-instant); + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} + +.category button:hover .background { + transition-duration: var(--duration-instant); + transition-delay: 0s; +} + +.category button[aria-selected] .background { + opacity: 1; +} + +.category button[data-keyboard] .background { + transition: none; +} + +.row { + width: 100%; + position: absolute; + top: 0; + left: 0; +} + +.skin-tone-button { + border: 1px solid rgba(0, 0, 0, 0); + border-radius: 100%; +} + +.skin-tone-button:hover { + border-color: var(--em-color-border); +} + +.skin-tone-button:active .skin-tone { + transform: scale(.85) !important; +} + +.skin-tone-button .skin-tone { + transition: transform var(--duration) var(--easing); +} + +.skin-tone-button[aria-selected] { + background-color: var(--em-color-border); + border-top-color: rgba(0, 0, 0, .05); + border-bottom-color: rgba(0, 0, 0, 0); + border-left-width: 0; + border-right-width: 0; +} + +.skin-tone-button[aria-selected] .skin-tone { + transform: scale(.9); +} + +.menu { + z-index: 2; + white-space: nowrap; + border: 1px solid var(--em-color-border); + background-color: rgba(var(--em-rgb-background), .9); + -webkit-backdrop-filter: blur(4px); + backdrop-filter: blur(4px); + transition-property: opacity, transform; + transition-duration: var(--duration); + transition-timing-function: var(--easing); + border-radius: 10px; + padding: 4px; + position: absolute; + box-shadow: 1px 1px 5px rgba(0, 0, 0, .05); +} + +.menu.hidden { + opacity: 0; +} + +.menu[data-position="bottom"] { + transform-origin: 100% 100%; +} + +.menu[data-position="bottom"].hidden { + transform: scale(.9)rotate(-3deg)translateY(5%); +} + +.menu[data-position="top"] { + transform-origin: 100% 0; +} + +.menu[data-position="top"].hidden { + transform: scale(.9)rotate(3deg)translateY(-5%); +} + +.menu input[type="radio"] { + clip: rect(0 0 0 0); + width: 1px; + height: 1px; + border: 0; + margin: 0; + padding: 0; + position: absolute; + overflow: hidden; +} + +.menu input[type="radio"]:checked + .option { + box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent)); +} + +.option { + width: 100%; + border-radius: 6px; + padding: 4px 6px; +} + +.option:hover { + color: #fff; + background-color: rgb(var(--em-rgb-accent)); +} + +.skin-tone { + width: 16px; + height: 16px; + border-radius: 100%; + display: inline-block; + position: relative; + overflow: hidden; +} + +.skin-tone:after { + content: ""; + mix-blend-mode: overlay; + background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0)); + border: 1px solid rgba(0, 0, 0, .8); + border-radius: 100%; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff; +} + +.skin-tone-1 { + background-color: #ffc93a; +} + +.skin-tone-2 { + background-color: #ffdab7; +} + +.skin-tone-3 { + background-color: #e7b98f; +} + +.skin-tone-4 { + background-color: #c88c61; +} + +.skin-tone-5 { + background-color: #a46134; +} + +.skin-tone-6 { + background-color: #5d4437; +} + +[data-index] { + justify-content: space-between; +} + +[data-emoji-set="twitter"] .skin-tone:after { + box-shadow: none; + border-color: rgba(0, 0, 0, .5); +} + +[data-emoji-set="twitter"] .skin-tone-1 { + background-color: #fade72; +} + +[data-emoji-set="twitter"] .skin-tone-2 { + background-color: #f3dfd0; +} + +[data-emoji-set="twitter"] .skin-tone-3 { + background-color: #eed3a8; +} + +[data-emoji-set="twitter"] .skin-tone-4 { + background-color: #cfad8d; +} + +[data-emoji-set="twitter"] .skin-tone-5 { + background-color: #a8805d; +} + +[data-emoji-set="twitter"] .skin-tone-6 { + background-color: #765542; +} + +[data-emoji-set="google"] .skin-tone:after { + box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4); +} + +[data-emoji-set="google"] .skin-tone-1 { + background-color: #f5c748; +} + +[data-emoji-set="google"] .skin-tone-2 { + background-color: #f1d5aa; +} + +[data-emoji-set="google"] .skin-tone-3 { + background-color: #d4b48d; +} + +[data-emoji-set="google"] .skin-tone-4 { + background-color: #aa876b; +} + +[data-emoji-set="google"] .skin-tone-5 { + background-color: #916544; +} + +[data-emoji-set="google"] .skin-tone-6 { + background-color: #61493f; +} + +[data-emoji-set="facebook"] .skin-tone:after { + border-color: rgba(0, 0, 0, .4); + box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff; +} + +[data-emoji-set="facebook"] .skin-tone-1 { + background-color: #f5c748; +} + +[data-emoji-set="facebook"] .skin-tone-2 { + background-color: #f1d5aa; +} + +[data-emoji-set="facebook"] .skin-tone-3 { + background-color: #d4b48d; +} + +[data-emoji-set="facebook"] .skin-tone-4 { + background-color: #aa876b; +} + +[data-emoji-set="facebook"] .skin-tone-5 { + background-color: #916544; +} + +[data-emoji-set="facebook"] .skin-tone-6 { + background-color: #61493f; +} +`;function TR(e){const n=k.useRef(null),t=k.useRef(null);return t.current&&t.current.update(e),k.useEffect(()=>(t.current=new G1({...e,ref:n}),()=>{t.current=null}),[]),ee.createElement("div",{ref:n})}var s_={},K1={},ap={exports:{}};/*! + autosize 4.0.4 + license: MIT + http://www.jacklmoore.com/autosize +*/(function(e,n){(function(t,i){i(e,n)})(Dt,function(t,i){var r=typeof Map=="function"?new Map:function(){var u=[],d=[];return{has:function(c){return u.indexOf(c)>-1},get:function(c){return d[u.indexOf(c)]},set:function(c,h){u.indexOf(c)===-1&&(u.push(c),d.push(h))},delete:function(c){var h=u.indexOf(c);h>-1&&(u.splice(h,1),d.splice(h,1))}}}(),a=function(d){return new Event(d,{bubbles:!0})};try{new Event("test")}catch{a=function(p){var c=document.createEvent("Event");return c.initEvent(p,!0,!1),c}}function o(u){if(!u||!u.nodeName||u.nodeName!=="TEXTAREA"||r.has(u))return;var d=null,p=null,c=null;function h(){var E=window.getComputedStyle(u,null);E.resize==="vertical"?u.style.resize="none":E.resize==="both"&&(u.style.resize="horizontal"),E.boxSizing==="content-box"?d=-(parseFloat(E.paddingTop)+parseFloat(E.paddingBottom)):d=parseFloat(E.borderTopWidth)+parseFloat(E.borderBottomWidth),isNaN(d)&&(d=0),g()}function m(E){{var x=u.style.width;u.style.width="0px",u.offsetWidth,u.style.width=x}u.style.overflowY=E}function w(E){for(var x=[];E&&E.parentNode&&E.parentNode instanceof Element;)E.parentNode.scrollTop&&x.push({node:E.parentNode,scrollTop:E.parentNode.scrollTop}),E=E.parentNode;return x}function v(){if(u.scrollHeight!==0){var E=w(u),x=document.documentElement&&document.documentElement.scrollTop;u.style.height="",u.style.height=u.scrollHeight+d+"px",p=u.clientWidth,E.forEach(function(P){P.node.scrollTop=P.scrollTop}),x&&(document.documentElement.scrollTop=x)}}function g(){v();var E=Math.round(parseFloat(u.style.height)),x=window.getComputedStyle(u,null),P=x.boxSizing==="content-box"?Math.round(parseFloat(x.height)):u.offsetHeight;if(P"u"||typeof window.getComputedStyle!="function"?(f=function(d){return d},f.destroy=function(u){return u},f.update=function(u){return u}):(f=function(d,p){return d&&Array.prototype.forEach.call(d.length?d:[d],function(c){return o(c)}),d},f.destroy=function(u){return u&&Array.prototype.forEach.call(u.length?u:[u],s),u},f.update=function(u){return u&&Array.prototype.forEach.call(u.length?u:[u],l),u}),i.default=f,t.exports=i.default})})(ap,ap.exports);var OR=ap.exports,FR=function(e,n,t){return t=window.getComputedStyle,(t?t(e):e.currentStyle)[n.replace(/-(\w)/gi,function(i,r){return r.toUpperCase()})]},jR=FR,fd=jR;function AR(e){var n=fd(e,"line-height"),t=parseFloat(n,10);if(n===t+""){var i=e.style.lineHeight;e.style.lineHeight=n+"em",n=fd(e,"line-height"),t=parseFloat(n,10),i?e.style.lineHeight=i:delete e.style.lineHeight}if(n.indexOf("pt")!==-1?(t*=4,t/=3):n.indexOf("mm")!==-1?(t*=96,t/=25.4):n.indexOf("cm")!==-1?(t*=96,t/=2.54):n.indexOf("in")!==-1?t*=96:n.indexOf("pc")!==-1&&(t*=16),t=Math.round(t),n==="normal"){var r=e.nodeName,a=document.createElement(r);a.innerHTML=" ",r.toUpperCase()==="TEXTAREA"&&a.setAttribute("rows","1");var o=fd(e,"font-size");a.style.fontSize=o,a.style.padding="0px",a.style.border="0px";var s=document.body;s.appendChild(a);var l=a.offsetHeight;t=l,s.removeChild(a)}return t}var RR=AR,zR=Dt&&Dt.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])};return function(n,t){e(n,t);function i(){this.constructor=n}n.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),op=Dt&&Dt.__assign||Object.assign||function(e){for(var n,t=1,i=arguments.length;t0;k.useEffect(()=>{var m;r.current&&i((m=r.current)==null?void 0:m.selectionStart)},[e]);const d=m=>{const w=m.target.selectionStart,v=m.currentTarget.value;n(v),i(w)};function p(m){n(w=>w.slice(0,t)+m+w.slice(t))}function c(m){e.trim().length>0?p(m.native):(a({from:"user",type:"emoji",content:m.native}),l(!1))}function h(){e.trim().length>0&&(n(""),a({from:"user",type:"text",content:e}))}return b.jsx("footer",{className:"openchat-fade-in openchat-min-h-[56px] openchat-overflow-y-auto openchat-border-t-black/10 openchat-py-3 focus-within:openchat-shadow-[0_-5px_40px_rgba(0,0,0,0.04)] openchat-transition-shadow openchat-border-t openchat-w-full openchat-px-2",children:b.jsxs("div",{className:"openchat-w-full openchat-flex openchat-items-center openchat-gap-2 ",children:[b.jsx("div",{className:"openchat-flex-1",children:b.jsx(IR,{dir:"auto",ref:r,placeholder:o.length<=0?"Ask a question...":"Write a reply...",onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),h())},disabled:f,maxRows:4,rows:1,value:e,onChange:d,onSelect:m=>i(m.currentTarget.selectionStart),className:"openchat-w-full openchat-border-none focus:openchat-outline-none focus:openchat-border-none openchat-max-h-[200px] openchat-scrollbar-thin openchat-leading-tight openchat-whitespace-pre-wrap openchat-py-1.5 openchat-px-4 placeholder:openchat-align-middle openchat-overflow-auto openchat-h-full openchat-outline-none openchat-text-accent2 openchat-text-[14px] placeholder:openchat-text-xs openchat-font-normal"})}),b.jsxs("div",{className:"openchat-flex openchat-items-center openchat-justify-center openchat-gap-2 openchat-mb-auto openchat-mt-2 openchat-h-fit openchat-px-2 openchat-text-lg",children:[b.jsxs(AA,{open:s,onOpenChange:m=>l(m),children:[b.jsx(RA,{disabled:f,className:"openchat-text-accent2 data-[state=open]:openchat-text-white openchat-rounded-full openchat-p-0 data-[state=open]:openchat-bg-primary",children:b.jsx(BR,{})}),b.jsx(zA,{children:b.jsxs(MA,{sideOffset:10,alignOffset:50,align:"center",side:"top",className:"openchat-mr-5 openchat-w-fit PopoverContent",children:[b.jsx(TR,{data:HA,set:"native",theme:"light",navPosition:"none",previewPosition:"none",skinTonePosition:"none",emojiSize:35,maxFrequentRows:2,perLine:5,emojiButtonSize:60,onEmojiSelect:c}),b.jsx(LA,{className:"openchat-fill-white",width:15,height:10})]})})]}),b.jsx("button",{hidden:!u,onClick:h,className:"openchat-text-primary fade-in",disabled:f,children:b.jsx(HR,{})})]})]})})}Hn.addLocale(fS);function UR(){const e=k.useRef(null),[n]=$j(e),{messages:t,loading:i,error:r,sendMessage:a}=Bl(),o=or(),s=ua();return k.useEffect(()=>{n(0,100)},[]),k.useEffect(()=>{n(0,100)},[t,n]),b.jsx("div",{className:"openchat-h-full openchat-w-full openchat-max-h-full openchat-overflow-y-auto",children:b.jsx("div",{className:"openchat-w-full openchat-h-full",children:b.jsxs("div",{className:"openchat-h-full openchat-w-full openchat-flex openchat-flex-col openchat-items-start",children:[b.jsx(H5,{canExpand:t.length>0}),b.jsx("main",{ref:e,className:"openchat-flex-1 openchat-w-full openchat-h-auto openchat-shrink-0 openchat-grow openchat-bg-white openchat-overflow-auto openchat-scrollbar-thin",children:b.jsx("div",{className:"openchat-w-full openchat-h-full",children:b.jsx("div",{className:"openchat-pb-1",children:b.jsxs("div",{className:"openchat-px-6 openchat-pt-4 openchat-pb-10 openchat-flex openchat-flex-col openchat-items-center openchat-gap-3 last:fade-in-right",children:[(o==null?void 0:o.initialMessages)&&b.jsx(k0,{messages:o==null?void 0:o.initialMessages}),t.map((l,f)=>{if(l.from==="bot"){if(l.type==="button")return b.jsx(Ej,{onClick:()=>a({from:"user",type:"text",content:l.response.button_text}),label:l.response.button_text},f);if(l.type==="email_input")return b.jsx(Cj,{timestamp:l.timestamp},f);if(l.type==="text")return b.jsx(k0,{timestamp:l.timestamp,messages:[l.response.text]},f)}else if(l.from==="user")return b.jsx(_j,{timestamp:l.timestamp,content:l.content,type:l.type},f)}),t.length===0&&(s==null?void 0:s.inital_questions)&&b.jsx(Sj,{children:s.inital_questions.map((l,f)=>b.jsx(xj,{onClick:()=>{a({from:"user",type:"text",content:l})},children:l},f))}),i&&b.jsx(bj,{}),r&&b.jsx(Pj,{})]})})})}),b.jsx(WR,{})]})})})}function qR(){return b.jsx(wj,{children:b.jsx(kj,{children:b.jsx(UR,{})})})}function VR(){const[e,n]=k.useState(!1),t=Wx("article/:articleID"),i=la();k.useEffect(()=>{t||n(!1)},[i]);function r(){n(!!(t&&!e))}return{fullWidth:e,toggleWidth:r}}const l_=k.createContext(void 0);function f_(){const e=k.useContext(l_);if(!e)throw new Error("must be used within an AppProvider");return e}function GR({children:e}){const n=VR();return b.jsx(l_.Provider,{value:n,children:e})}function KR(e){return yn({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M213.66,53.66,163.31,104H192a8,8,0,0,1,0,16H144a8,8,0,0,1-8-8V64a8,8,0,0,1,16,0V92.69l50.34-50.35a8,8,0,0,1,11.32,11.32ZM112,136H64a8,8,0,0,0,0,16H92.69L42.34,202.34a8,8,0,0,0,11.32,11.32L104,163.31V192a8,8,0,0,0,16,0V144A8,8,0,0,0,112,136Z"}}]})(e)}function YR(e){return yn({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"}}]})(e)}function QR({children:e}){const{fullWidth:n,toggleWidth:t}=f_(),i=hf(),[,r]=mf(),a=or();return b.jsx("nav",{className:"openchat-pb-3 openchat-w-full",children:b.jsxs("div",{className:"openchat-w-full openchat-flex openchat-items-center openchat-justify-between openchat-p-2",children:[b.jsxs("div",{className:"openchat-flex openchat-items-center openchat-gap-2",children:[b.jsx("button",{onClick:()=>i(-1),className:"openchat-w-12 openchat-items-center openchat-justify-center openchat-shrink-0 openchat-h-12 openchat-flex openchat-rounded-lg openchat-text-xl openchat-text-primary hover:openchat-bg-primary-light",children:b.jsx(u1,{})}),e]}),!(a!=null&&a.isFullScreen)&&b.jsxs(b.Fragment,{children:[b.jsx("button",{onClick:r,className:"close-btn openchat-w-12 openchat-items-center openchat-justify-center openchat-shrink-0 openchat-h-12 openchat-flex sm:openchat-hidden openchat-rounded-lg openchat-text-xl openchat-text-primary hover:openchat-bg-primary-light",children:b.jsx(I5,{})}),b.jsx("button",{className:"openchat-w-12 openchat-h-12 openchat-items-center openchat-justify-center openchat-shrink-0 openchat-rounded-lg openchat-hidden sm:openchat-flex openchat-text-xl openchat-text-primary hover:openchat-bg-primary-light",onClick:t,children:n?b.jsx(KR,{}):b.jsx(YR,{})})]})]})})}function XR(){const e=k.useRef(null),{y:n}=bk(e),t=ua(),{articleID:i}=qx(),r=t==null?void 0:t.faq.filter(a=>a.id.toString()===i)[0];return b.jsxs("div",{className:"openchat-w-full openchat-h-full openchat-flex openchat-items-start openchat-flex-col",children:[b.jsx("div",{className:hn("openchat-w-full openchat-h-fit openchat-transition-shadow",n>0&&"openchat-shadow"),children:b.jsx(QR,{children:n>0&&b.jsx("h2",{className:"fade-in openchat-text-sm",children:r==null?void 0:r.title})})}),b.jsxs("main",{ref:e,className:"openchat-overflow-auto openchat-flex-1 openchat-h-auto openchat-w-full openchat-max-h-full openchat-scrollbar-thin",children:[b.jsxs("div",{className:"openchat-px-6",children:[b.jsx("div",{children:b.jsx("h1",{className:"openchat-text-2xl openchat-font-bold openchat-text-black openchat-mb-1",children:r==null?void 0:r.title})}),b.jsxs("div",{className:"openchat-w-full openchat-flex openchat-items-center openchat-my-2 openchat-gap-2 openchat-justify-start",children:[b.jsx("div",{className:"openchat-rounded-full openchat-overflow-hidden openchat-w-12 openchat-object-cover openchat-h-auto openchat-aspect-square openchat-shrink-0 openchat-bg-primary-light",children:b.jsx("img",{src:"",alt:""})}),b.jsx("h3",{children:"bot name"})]})]}),b.jsx("div",{className:"openchat-content openchat-px-6 openchat-my-3",children:(r==null?void 0:r.content)&&b.jsx(Il,{remarkPlugins:[Xc],children:r.content,className:"openchat-prose-base prose-li:openchat-leading-none openchat-prose prose-h1:openchat-text-lg !prose-headings:openchat-font-bold prose-headings:openchat-text-lg !openchat-text-sm"})}),b.jsxs("div",{className:"",children:[b.jsxs("div",{className:"openchat-px-6",children:[b.jsx("span",{className:"openchat-block openchat-my-3 openchat-w-full openchat-h-1 openchat-bg-accent"}),b.jsx("h2",{className:"openchat-text-xl openchat-font-bold openchat-text-black openchat-my-2",children:"Related Articles"})]}),b.jsx("div",{children:t==null?void 0:t.faq.slice(0,5).map(({id:a,title:o},s)=>b.jsx(pc,{className:"openchat-px-6 openchat-py-5 openchat-my-2",title:o,id:a.toString()},s))})]}),b.jsxs("div",{className:"openchat-w-full flex-center openchat-flex-col openchat-gap-2 openchat-border-t openchat-border-t-black/20 openchat-p-4 openchat-mt-4",children:[b.jsx("h2",{className:"openchat-text-sm openchat-text-accent2",children:"Did this answer your question"}),b.jsxs("div",{className:"openchat-w-full flex-center openchat-gap-3 openchat-text-3xl",children:[b.jsx("button",{className:"hover:openchat-scale-125 openchat-transition-all",children:"😞"}),b.jsx("button",{className:"hover:openchat-scale-125 openchat-transition-all",children:"😐"}),b.jsx("button",{className:"hover:openchat-scale-125 openchat-transition-all",children:"😃"})]})]})]})]})}function JR(){const[e,n]=mf(),{fullWidth:t}=f_(),i=or();return b.jsxs("div",{className:"openchat-fixed openchat-bottom-5 openchat-right-5 z-50",children:[b.jsx("div",{className:"openchat-relative",children:e&&b.jsx("div",{style:i!=null&&i.isFullScreen?{width:"100vw",height:"100vh",inset:0,position:"fixed",borderRadius:0,maxWidth:"100vw"}:{},"data-open":e,"data-full-screen":i==null?void 0:i.isFullScreen,className:hn("chat-bubble openchat-fixed openchat-inset-0 openchat-transition-all openchat-ease openchat-duration-200 openchat-w-screen openchat-h-[100dvh] openchat-rounded-none !openchat-z-[100000000000] openchat-overflow-hidden sm:openchat-rounded-xl openchat-bg-white openchat-shadow-lg sm:openchat-inset-auto sm:openchat-bottom-20 sm:openchat-right-5 sm:openchat-h-[min(704px,100%-104px)] sm:openchat-min-h-[22rem]",t&&!(i!=null&&i.isFullScreen)?"sm:openchat-w-full":"sm:openchat-w-96",e&&!(i!=null&&i.isFullScreen)&&"scale-in-br",!(i!=null&&i.isFullScreen)&&"sm:openchat-max-w-screen-sm"),children:b.jsxs(s9,{children:[b.jsx(pr,{caseSensitive:!0,path:"",element:b.jsx(L5,{})}),b.jsx(pr,{caseSensitive:!0,path:"articles/*",element:b.jsx(B5,{})}),b.jsx(pr,{caseSensitive:!0,path:"chat",element:b.jsx(qR,{})}),b.jsx(pr,{caseSensitive:!0,path:"article/:articleID",element:b.jsx(XR,{})}),b.jsx(pr,{caseSensitive:!0,path:"*",element:b.jsx("h1",{className:"openchat-w-full openchat-text-xl openchat-text-center openchat-align-middle openchat-my-10",children:"Not Found"})})]})})}),b.jsx("div",{children:b.jsx(kk,{hidden:i==null?void 0:i.isFullScreen,open:e,onClick:n})})]})}const ZR='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{scrollbar-color:initial;scrollbar-width:initial}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.openchat-pointer-events-none{pointer-events:none}.openchat-pointer-events-auto{pointer-events:auto}.openchat-static{position:static}.openchat-fixed{position:fixed}.openchat-absolute{position:absolute}.openchat-relative{position:relative}.openchat-inset-0{inset:0px}.openchat-bottom-0{bottom:0px}.openchat-bottom-5{bottom:1.25rem}.openchat-left-0{left:0px}.openchat-left-1\\/2{left:50%}.openchat-right-0{right:0px}.openchat-right-5{right:1.25rem}.openchat-right-6{right:1.5rem}.openchat-top-6{top:1.5rem}.\\!openchat-z-\\[100000000000\\]{z-index:100000000000!important}.openchat-z-\\[10000000\\]{z-index:10000000}.openchat-z-\\[1000000\\]{z-index:1000000}.openchat-z-\\[2\\]{z-index:2}.openchat-z-\\[3\\]{z-index:3}.openchat-float-right{float:right}.openchat-clear-both{clear:both}.openchat-m-0{margin:0}.-openchat-mx-2{margin-left:-.5rem;margin-right:-.5rem}.openchat-mx-1{margin-left:.25rem;margin-right:.25rem}.openchat-mx-auto{margin-left:auto;margin-right:auto}.openchat-my-10{margin-top:2.5rem;margin-bottom:2.5rem}.openchat-my-16{margin-top:4rem;margin-bottom:4rem}.openchat-my-2{margin-top:.5rem;margin-bottom:.5rem}.openchat-my-3{margin-top:.75rem;margin-bottom:.75rem}.openchat-mb-1{margin-bottom:.25rem}.openchat-mb-1\\.5{margin-bottom:.375rem}.openchat-mb-auto{margin-bottom:auto}.openchat-ml-2{margin-left:.5rem}.openchat-mr-5{margin-right:1.25rem}.openchat-mr-auto{margin-right:auto}.openchat-mt-1{margin-top:.25rem}.openchat-mt-1\\.5{margin-top:.375rem}.openchat-mt-2{margin-top:.5rem}.openchat-mt-4{margin-top:1rem}.openchat-mt-5{margin-top:1.25rem}.openchat-mt-auto{margin-top:auto}.openchat-box-border{box-sizing:border-box}.openchat-block{display:block}.openchat-inline-block{display:inline-block}.openchat-flex{display:flex}.openchat-hidden{display:none}.openchat-aspect-square{aspect-ratio:1 / 1}.openchat-h-1{height:.25rem}.openchat-h-10{height:2.5rem}.openchat-h-12{height:3rem}.openchat-h-4{height:1rem}.openchat-h-\\[100dvh\\]{height:100dvh}.openchat-h-auto{height:auto}.openchat-h-fit{height:-moz-fit-content;height:fit-content}.openchat-h-full{height:100%}.openchat-h-max{height:-moz-max-content;height:max-content}.openchat-max-h-96{max-height:24rem}.openchat-max-h-\\[200px\\]{max-height:200px}.openchat-max-h-full{max-height:100%}.openchat-min-h-\\[56px\\]{min-height:56px}.openchat-w-10{width:2.5rem}.openchat-w-12{width:3rem}.openchat-w-8{width:2rem}.openchat-w-fit{width:-moz-fit-content;width:fit-content}.openchat-w-full{width:100%}.openchat-w-screen{width:100vw}.openchat-min-w-0{min-width:0px}.openchat-max-w-\\[75\\%\\]{max-width:75%}.openchat-max-w-\\[80\\%\\]{max-width:80%}.openchat-max-w-\\[90\\%\\]{max-width:90%}.openchat-max-w-full{max-width:100%}.openchat-flex-1{flex:1 1 0%}.openchat-flex-shrink-0,.openchat-shrink-0{flex-shrink:0}.openchat-flex-grow,.openchat-grow{flex-grow:1}.-openchat-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-openchat-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.openchat-cursor-not-allowed{cursor:not-allowed}.openchat-cursor-pointer{cursor:pointer}.openchat-cursor-text{cursor:text}.openchat-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.openchat-flex-row{flex-direction:row}.openchat-flex-col{flex-direction:column}.openchat-flex-wrap{flex-wrap:wrap}.openchat-items-start{align-items:flex-start}.openchat-items-center{align-items:center}.openchat-justify-start{justify-content:flex-start}.openchat-justify-end{justify-content:flex-end}.openchat-justify-center{justify-content:center}.openchat-justify-between{justify-content:space-between}.openchat-gap-1{gap:.25rem}.openchat-gap-2{gap:.5rem}.openchat-gap-24{gap:6rem}.openchat-gap-3{gap:.75rem}.openchat-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.openchat-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.openchat-divide-black\\/5>:not([hidden])~:not([hidden]){border-color:#0000000d}.openchat-self-center{align-self:center}.openchat-overflow-auto{overflow:auto}.openchat-overflow-hidden{overflow:hidden}.openchat-overflow-y-auto{overflow-y:auto}.openchat-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.openchat-whitespace-nowrap{white-space:nowrap}.openchat-whitespace-pre-wrap{white-space:pre-wrap}.openchat-rounded-full{border-radius:9999px}.openchat-rounded-lg{border-radius:.5rem}.openchat-rounded-md{border-radius:.375rem}.openchat-rounded-none{border-radius:0}.openchat-rounded-sm{border-radius:.125rem}.openchat-rounded-xl{border-radius:.75rem}.openchat-border{border-width:1px}.openchat-border-0{border-width:0px}.openchat-border-4{border-width:4px}.openchat-border-b{border-bottom-width:1px}.openchat-border-t{border-top-width:1px}.openchat-border-none{border-style:none}.openchat-border-\\[rgb\\(225\\,_225\\,_225\\)\\]{--tw-border-opacity: 1;border-color:rgb(225 225 225 / var(--tw-border-opacity))}.openchat-border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.openchat-border-b-black\\/10{border-bottom-color:#0000001a}.openchat-border-t-black\\/10{border-top-color:#0000001a}.openchat-border-t-black\\/20{border-top-color:#0003}.openchat-bg-\\[rgb\\(250\\,_250\\,_250\\)\\]{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity))}.openchat-bg-accent{background-color:var(--accent-clr)}.openchat-bg-accent2{background-color:var(--accnet-2-clr)}.openchat-bg-black\\/40{background-color:#0006}.openchat-bg-black\\/50{background-color:#00000080}.openchat-bg-black\\/90{background-color:#000000e6}.openchat-bg-primary{background-color:var(--primary-clr)}.openchat-bg-primary-light{background-color:var(--primary-light-clr)}.openchat-bg-transparent{background-color:transparent}.openchat-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.openchat-bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.openchat-from-black\\/5{--tw-gradient-from: rgb(0 0 0 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.openchat-to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.openchat-fill-white{fill:#fff}.openchat-object-cover{-o-object-fit:cover;object-fit:cover}.openchat-p-0{padding:0}.openchat-p-0\\.5{padding:.125rem}.openchat-p-1{padding:.25rem}.openchat-p-1\\.5{padding:.375rem}.openchat-p-2{padding:.5rem}.openchat-p-2\\.5{padding:.625rem}.openchat-p-3{padding:.75rem}.openchat-p-4{padding:1rem}.openchat-p-5{padding:1.25rem}.openchat-p-6{padding:1.5rem}.openchat-p-7{padding:1.75rem}.openchat-px-1{padding-left:.25rem;padding-right:.25rem}.openchat-px-2{padding-left:.5rem;padding-right:.5rem}.openchat-px-2\\.5{padding-left:.625rem;padding-right:.625rem}.openchat-px-3{padding-left:.75rem;padding-right:.75rem}.openchat-px-4{padding-left:1rem;padding-right:1rem}.openchat-px-5{padding-left:1.25rem;padding-right:1.25rem}.openchat-px-6{padding-left:1.5rem;padding-right:1.5rem}.openchat-px-\\[3\\.5px\\]{padding-left:3.5px;padding-right:3.5px}.openchat-py-1{padding-top:.25rem;padding-bottom:.25rem}.openchat-py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.openchat-py-2{padding-top:.5rem;padding-bottom:.5rem}.openchat-py-3{padding-top:.75rem;padding-bottom:.75rem}.openchat-py-4{padding-top:1rem;padding-bottom:1rem}.openchat-py-5{padding-top:1.25rem;padding-bottom:1.25rem}.openchat-py-\\[3px\\]{padding-top:3px;padding-bottom:3px}.openchat-pb-0{padding-bottom:0}.openchat-pb-1{padding-bottom:.25rem}.openchat-pb-10{padding-bottom:2.5rem}.openchat-pb-3{padding-bottom:.75rem}.openchat-ps-\\[52px\\]{-webkit-padding-start:52px;padding-inline-start:52px}.openchat-pt-4{padding-top:1rem}.openchat-text-center{text-align:center}.openchat-text-start{text-align:start}.openchat-align-middle{vertical-align:middle}.openchat-font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.\\!openchat-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.openchat-text-2xl{font-size:1.5rem;line-height:2rem}.openchat-text-3xl{font-size:1.875rem;line-height:2.25rem}.openchat-text-4xl{font-size:2.25rem;line-height:2.5rem}.openchat-text-8xl{font-size:6rem;line-height:1}.openchat-text-\\[14px\\]{font-size:14px}.openchat-text-\\[9px\\]{font-size:9px}.openchat-text-base{font-size:1rem;line-height:1.5rem}.openchat-text-lg{font-size:1.125rem;line-height:1.75rem}.openchat-text-sm{font-size:.875rem;line-height:1.25rem}.openchat-text-xl{font-size:1.25rem;line-height:1.75rem}.openchat-text-xs{font-size:.75rem;line-height:1rem}.openchat-font-bold{font-weight:700}.openchat-font-normal{font-weight:400}.openchat-font-semibold{font-weight:600}.openchat-lowercase{text-transform:lowercase}.openchat-tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.openchat-leading-4{line-height:1rem}.openchat-leading-5{line-height:1.25rem}.openchat-leading-6{line-height:1.5rem}.openchat-leading-\\[20px\\]{line-height:20px}.openchat-leading-none{line-height:1}.openchat-leading-tight{line-height:1.25}.openchat-text-\\[green\\]{--tw-text-opacity: 1;color:rgb(0 128 0 / var(--tw-text-opacity))}.openchat-text-\\[red\\]{--tw-text-opacity: 1;color:rgb(255 0 0 / var(--tw-text-opacity))}.openchat-text-\\[rgb\\(26\\,26\\,26\\)\\]{--tw-text-opacity: 1;color:rgb(26 26 26 / var(--tw-text-opacity))}.openchat-text-accent2{color:var(--accnet-2-clr)}.openchat-text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.openchat-text-black\\/60{color:#0009}.openchat-text-primary{color:var(--primary-clr)}.openchat-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.openchat-opacity-100{opacity:1}.openchat-opacity-75{opacity:.75}.openchat-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.openchat-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.openchat-outline-none{outline:2px solid transparent;outline-offset:2px}.openchat-outline{outline-style:solid}.openchat-outline-1{outline-width:1px}.openchat-outline-\\[red\\]{outline-color:red}.openchat-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.openchat-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.openchat-transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.openchat-transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.openchat-duration-200{transition-duration:.2s}.openchat-scrollbar-thin{scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.openchat-scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.openchat-scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.openchat-scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.openchat-scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.openchat-scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.openchat-scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.openchat-scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.openchat-scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.openchat-scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.openchat-scrollbar-thin{scrollbar-width:thin}.openchat-scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.openchat-scrollbar-track-transparent{--scrollbar-track: transparent !important}.openchat-scrollbar-thumb-accent{--scrollbar-thumb: var(--accent-clr) !important}.openchat-container{width:100%}@media (min-width: 640px){.openchat-container{max-width:640px}}@media (min-width: 768px){.openchat-container{max-width:768px}}@media (min-width: 1024px){.openchat-container{max-width:1024px}}@media (min-width: 1280px){.openchat-container{max-width:1280px}}@media (min-width: 1536px){.openchat-container{max-width:1536px}}.openchat-prose{color:var(--tw-prose-body);max-width:65ch}.openchat-prose :where(p):not(:where([class~="openchat-not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.openchat-prose :where([class~="lead"]):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.openchat-prose :where(a):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.openchat-prose :where(strong):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-bold);font-weight:600}.openchat-prose :where(a strong):not(:where([class~="openchat-not-prose"] *)){color:inherit}.openchat-prose :where(blockquote strong):not(:where([class~="openchat-not-prose"] *)){color:inherit}.openchat-prose :where(thead th strong):not(:where([class~="openchat-not-prose"] *)){color:inherit}.openchat-prose :where(ol):not(:where([class~="openchat-not-prose"] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.openchat-prose :where(ol[type="A"]):not(:where([class~="openchat-not-prose"] *)){list-style-type:upper-alpha}.openchat-prose :where(ol[type="a"]):not(:where([class~="openchat-not-prose"] *)){list-style-type:lower-alpha}.openchat-prose :where(ol[type="A" s]):not(:where([class~="openchat-not-prose"] *)){list-style-type:upper-alpha}.openchat-prose :where(ol[type="a" s]):not(:where([class~="openchat-not-prose"] *)){list-style-type:lower-alpha}.openchat-prose :where(ol[type="I"]):not(:where([class~="openchat-not-prose"] *)){list-style-type:upper-roman}.openchat-prose :where(ol[type="i"]):not(:where([class~="openchat-not-prose"] *)){list-style-type:lower-roman}.openchat-prose :where(ol[type="I" s]):not(:where([class~="openchat-not-prose"] *)){list-style-type:upper-roman}.openchat-prose :where(ol[type="i" s]):not(:where([class~="openchat-not-prose"] *)){list-style-type:lower-roman}.openchat-prose :where(ol[type="1"]):not(:where([class~="openchat-not-prose"] *)){list-style-type:decimal}.openchat-prose :where(ul):not(:where([class~="openchat-not-prose"] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.openchat-prose :where(ol > li):not(:where([class~="openchat-not-prose"] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.openchat-prose :where(ul > li):not(:where([class~="openchat-not-prose"] *))::marker{color:var(--tw-prose-bullets)}.openchat-prose :where(hr):not(:where([class~="openchat-not-prose"] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.openchat-prose :where(blockquote):not(:where([class~="openchat-not-prose"] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.openchat-prose :where(blockquote p:first-of-type):not(:where([class~="openchat-not-prose"] *)):before{content:open-quote}.openchat-prose :where(blockquote p:last-of-type):not(:where([class~="openchat-not-prose"] *)):after{content:close-quote}.openchat-prose :where(h1):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.openchat-prose :where(h1 strong):not(:where([class~="openchat-not-prose"] *)){font-weight:900;color:inherit}.openchat-prose :where(h2):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.openchat-prose :where(h2 strong):not(:where([class~="openchat-not-prose"] *)){font-weight:800;color:inherit}.openchat-prose :where(h3):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.openchat-prose :where(h3 strong):not(:where([class~="openchat-not-prose"] *)){font-weight:700;color:inherit}.openchat-prose :where(h4):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.openchat-prose :where(h4 strong):not(:where([class~="openchat-not-prose"] *)){font-weight:700;color:inherit}.openchat-prose :where(img):not(:where([class~="openchat-not-prose"] *)){margin-top:2em;margin-bottom:2em}.openchat-prose :where(figure > *):not(:where([class~="openchat-not-prose"] *)){margin-top:0;margin-bottom:0}.openchat-prose :where(figcaption):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.openchat-prose :where(code):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.openchat-prose :where(code):not(:where([class~="openchat-not-prose"] *)):before{content:"`"}.openchat-prose :where(code):not(:where([class~="openchat-not-prose"] *)):after{content:"`"}.openchat-prose :where(a code):not(:where([class~="openchat-not-prose"] *)){color:inherit}.openchat-prose :where(h1 code):not(:where([class~="openchat-not-prose"] *)){color:inherit}.openchat-prose :where(h2 code):not(:where([class~="openchat-not-prose"] *)){color:inherit;font-size:.875em}.openchat-prose :where(h3 code):not(:where([class~="openchat-not-prose"] *)){color:inherit;font-size:.9em}.openchat-prose :where(h4 code):not(:where([class~="openchat-not-prose"] *)){color:inherit}.openchat-prose :where(blockquote code):not(:where([class~="openchat-not-prose"] *)){color:inherit}.openchat-prose :where(thead th code):not(:where([class~="openchat-not-prose"] *)){color:inherit}.openchat-prose :where(pre):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.openchat-prose :where(pre code):not(:where([class~="openchat-not-prose"] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.openchat-prose :where(pre code):not(:where([class~="openchat-not-prose"] *)):before{content:none}.openchat-prose :where(pre code):not(:where([class~="openchat-not-prose"] *)):after{content:none}.openchat-prose :where(table):not(:where([class~="openchat-not-prose"] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.openchat-prose :where(thead):not(:where([class~="openchat-not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.openchat-prose :where(thead th):not(:where([class~="openchat-not-prose"] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.openchat-prose :where(tbody tr):not(:where([class~="openchat-not-prose"] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.openchat-prose :where(tbody tr:last-child):not(:where([class~="openchat-not-prose"] *)){border-bottom-width:0}.openchat-prose :where(tbody td):not(:where([class~="openchat-not-prose"] *)){vertical-align:baseline}.openchat-prose :where(tfoot):not(:where([class~="openchat-not-prose"] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.openchat-prose :where(tfoot td):not(:where([class~="openchat-not-prose"] *)){vertical-align:top}.openchat-prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.openchat-prose :where(video):not(:where([class~="openchat-not-prose"] *)){margin-top:2em;margin-bottom:2em}.openchat-prose :where(figure):not(:where([class~="openchat-not-prose"] *)){margin-top:2em;margin-bottom:2em}.openchat-prose :where(li):not(:where([class~="openchat-not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.openchat-prose :where(ol > li):not(:where([class~="openchat-not-prose"] *)){padding-left:.375em}.openchat-prose :where(ul > li):not(:where([class~="openchat-not-prose"] *)){padding-left:.375em}.openchat-prose :where(.openchat-prose > ul > li p):not(:where([class~="openchat-not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.openchat-prose :where(.openchat-prose > ul > li > *:first-child):not(:where([class~="openchat-not-prose"] *)){margin-top:1.25em}.openchat-prose :where(.openchat-prose > ul > li > *:last-child):not(:where([class~="openchat-not-prose"] *)){margin-bottom:1.25em}.openchat-prose :where(.openchat-prose > ol > li > *:first-child):not(:where([class~="openchat-not-prose"] *)){margin-top:1.25em}.openchat-prose :where(.openchat-prose > ol > li > *:last-child):not(:where([class~="openchat-not-prose"] *)){margin-bottom:1.25em}.openchat-prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="openchat-not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.openchat-prose :where(hr + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose :where(h2 + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose :where(h3 + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose :where(h4 + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose :where(thead th:first-child):not(:where([class~="openchat-not-prose"] *)){padding-left:0}.openchat-prose :where(thead th:last-child):not(:where([class~="openchat-not-prose"] *)){padding-right:0}.openchat-prose :where(tbody td,tfoot td):not(:where([class~="openchat-not-prose"] *)){padding:.5714286em}.openchat-prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="openchat-not-prose"] *)){padding-left:0}.openchat-prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="openchat-not-prose"] *)){padding-right:0}.openchat-prose :where(.openchat-prose > :first-child):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose :where(.openchat-prose > :last-child):not(:where([class~="openchat-not-prose"] *)){margin-bottom:0}.openchat-prose-sm{font-size:.875rem;line-height:1.7142857}.openchat-prose-sm :where(p):not(:where([class~="openchat-not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.openchat-prose-sm :where([class~="lead"]):not(:where([class~="openchat-not-prose"] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.openchat-prose-sm :where(blockquote):not(:where([class~="openchat-not-prose"] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.openchat-prose-sm :where(h1):not(:where([class~="openchat-not-prose"] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.openchat-prose-sm :where(h2):not(:where([class~="openchat-not-prose"] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.openchat-prose-sm :where(h3):not(:where([class~="openchat-not-prose"] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.openchat-prose-sm :where(h4):not(:where([class~="openchat-not-prose"] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.openchat-prose-sm :where(img):not(:where([class~="openchat-not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.openchat-prose-sm :where(video):not(:where([class~="openchat-not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.openchat-prose-sm :where(figure):not(:where([class~="openchat-not-prose"] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.openchat-prose-sm :where(figure > *):not(:where([class~="openchat-not-prose"] *)){margin-top:0;margin-bottom:0}.openchat-prose-sm :where(figcaption):not(:where([class~="openchat-not-prose"] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.openchat-prose-sm :where(code):not(:where([class~="openchat-not-prose"] *)){font-size:.8571429em}.openchat-prose-sm :where(h2 code):not(:where([class~="openchat-not-prose"] *)){font-size:.9em}.openchat-prose-sm :where(h3 code):not(:where([class~="openchat-not-prose"] *)){font-size:.8888889em}.openchat-prose-sm :where(pre):not(:where([class~="openchat-not-prose"] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.openchat-prose-sm :where(ol):not(:where([class~="openchat-not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.openchat-prose-sm :where(ul):not(:where([class~="openchat-not-prose"] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.openchat-prose-sm :where(li):not(:where([class~="openchat-not-prose"] *)){margin-top:.2857143em;margin-bottom:.2857143em}.openchat-prose-sm :where(ol > li):not(:where([class~="openchat-not-prose"] *)){padding-left:.4285714em}.openchat-prose-sm :where(ul > li):not(:where([class~="openchat-not-prose"] *)){padding-left:.4285714em}.openchat-prose-sm :where(.openchat-prose-sm > ul > li p):not(:where([class~="openchat-not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.openchat-prose-sm :where(.openchat-prose-sm > ul > li > *:first-child):not(:where([class~="openchat-not-prose"] *)){margin-top:1.1428571em}.openchat-prose-sm :where(.openchat-prose-sm > ul > li > *:last-child):not(:where([class~="openchat-not-prose"] *)){margin-bottom:1.1428571em}.openchat-prose-sm :where(.openchat-prose-sm > ol > li > *:first-child):not(:where([class~="openchat-not-prose"] *)){margin-top:1.1428571em}.openchat-prose-sm :where(.openchat-prose-sm > ol > li > *:last-child):not(:where([class~="openchat-not-prose"] *)){margin-bottom:1.1428571em}.openchat-prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="openchat-not-prose"] *)){margin-top:.5714286em;margin-bottom:.5714286em}.openchat-prose-sm :where(hr):not(:where([class~="openchat-not-prose"] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.openchat-prose-sm :where(hr + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-sm :where(h2 + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-sm :where(h3 + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-sm :where(h4 + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-sm :where(table):not(:where([class~="openchat-not-prose"] *)){font-size:.8571429em;line-height:1.5}.openchat-prose-sm :where(thead th):not(:where([class~="openchat-not-prose"] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.openchat-prose-sm :where(thead th:first-child):not(:where([class~="openchat-not-prose"] *)){padding-left:0}.openchat-prose-sm :where(thead th:last-child):not(:where([class~="openchat-not-prose"] *)){padding-right:0}.openchat-prose-sm :where(tbody td,tfoot td):not(:where([class~="openchat-not-prose"] *)){padding:.6666667em 1em}.openchat-prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="openchat-not-prose"] *)){padding-left:0}.openchat-prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="openchat-not-prose"] *)){padding-right:0}.openchat-prose-sm :where(.openchat-prose-sm > :first-child):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-sm :where(.openchat-prose-sm > :last-child):not(:where([class~="openchat-not-prose"] *)){margin-bottom:0}.openchat-prose-base{font-size:1rem;line-height:1.75}.openchat-prose-base :where(p):not(:where([class~="openchat-not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em}.openchat-prose-base :where([class~="lead"]):not(:where([class~="openchat-not-prose"] *)){font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.openchat-prose-base :where(blockquote):not(:where([class~="openchat-not-prose"] *)){margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.openchat-prose-base :where(h1):not(:where([class~="openchat-not-prose"] *)){font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.openchat-prose-base :where(h2):not(:where([class~="openchat-not-prose"] *)){font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.openchat-prose-base :where(h3):not(:where([class~="openchat-not-prose"] *)){font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.openchat-prose-base :where(h4):not(:where([class~="openchat-not-prose"] *)){margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.openchat-prose-base :where(img):not(:where([class~="openchat-not-prose"] *)){margin-top:2em;margin-bottom:2em}.openchat-prose-base :where(video):not(:where([class~="openchat-not-prose"] *)){margin-top:2em;margin-bottom:2em}.openchat-prose-base :where(figure):not(:where([class~="openchat-not-prose"] *)){margin-top:2em;margin-bottom:2em}.openchat-prose-base :where(figure > *):not(:where([class~="openchat-not-prose"] *)){margin-top:0;margin-bottom:0}.openchat-prose-base :where(figcaption):not(:where([class~="openchat-not-prose"] *)){font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.openchat-prose-base :where(code):not(:where([class~="openchat-not-prose"] *)){font-size:.875em}.openchat-prose-base :where(h2 code):not(:where([class~="openchat-not-prose"] *)){font-size:.875em}.openchat-prose-base :where(h3 code):not(:where([class~="openchat-not-prose"] *)){font-size:.9em}.openchat-prose-base :where(pre):not(:where([class~="openchat-not-prose"] *)){font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.openchat-prose-base :where(ol):not(:where([class~="openchat-not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.openchat-prose-base :where(ul):not(:where([class~="openchat-not-prose"] *)){margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.openchat-prose-base :where(li):not(:where([class~="openchat-not-prose"] *)){margin-top:.5em;margin-bottom:.5em}.openchat-prose-base :where(ol > li):not(:where([class~="openchat-not-prose"] *)){padding-left:.375em}.openchat-prose-base :where(ul > li):not(:where([class~="openchat-not-prose"] *)){padding-left:.375em}.openchat-prose-base :where(.openchat-prose-base > ul > li p):not(:where([class~="openchat-not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.openchat-prose-base :where(.openchat-prose-base > ul > li > *:first-child):not(:where([class~="openchat-not-prose"] *)){margin-top:1.25em}.openchat-prose-base :where(.openchat-prose-base > ul > li > *:last-child):not(:where([class~="openchat-not-prose"] *)){margin-bottom:1.25em}.openchat-prose-base :where(.openchat-prose-base > ol > li > *:first-child):not(:where([class~="openchat-not-prose"] *)){margin-top:1.25em}.openchat-prose-base :where(.openchat-prose-base > ol > li > *:last-child):not(:where([class~="openchat-not-prose"] *)){margin-bottom:1.25em}.openchat-prose-base :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~="openchat-not-prose"] *)){margin-top:.75em;margin-bottom:.75em}.openchat-prose-base :where(hr):not(:where([class~="openchat-not-prose"] *)){margin-top:3em;margin-bottom:3em}.openchat-prose-base :where(hr + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-base :where(h2 + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-base :where(h3 + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-base :where(h4 + *):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-base :where(table):not(:where([class~="openchat-not-prose"] *)){font-size:.875em;line-height:1.7142857}.openchat-prose-base :where(thead th):not(:where([class~="openchat-not-prose"] *)){padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.openchat-prose-base :where(thead th:first-child):not(:where([class~="openchat-not-prose"] *)){padding-left:0}.openchat-prose-base :where(thead th:last-child):not(:where([class~="openchat-not-prose"] *)){padding-right:0}.openchat-prose-base :where(tbody td,tfoot td):not(:where([class~="openchat-not-prose"] *)){padding:.5714286em}.openchat-prose-base :where(tbody td:first-child,tfoot td:first-child):not(:where([class~="openchat-not-prose"] *)){padding-left:0}.openchat-prose-base :where(tbody td:last-child,tfoot td:last-child):not(:where([class~="openchat-not-prose"] *)){padding-right:0}.openchat-prose-base :where(.openchat-prose-base > :first-child):not(:where([class~="openchat-not-prose"] *)){margin-top:0}.openchat-prose-base :where(.openchat-prose-base > :last-child):not(:where([class~="openchat-not-prose"] *)){margin-bottom:0}@keyframes scale-in-br{0%{transform:scale(0);opacity:0}50%{opacity:1}to{transform:scale(1)}}.scale-in-br{transform-origin:bottom right;animation:scale-in-br .4s ease forwards}@keyframes rotate-in-2-cw{0%{transform:rotate(-45deg);opacity:0}to{transform:rotate(0);opacity:1}}.rotate-in{animation:rotate-in-2-cw .2s ease-in-out both}@keyframes scale-in-center{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.scale-in-center{animation:scale-in-center .2s ease-out both}@keyframes fade-in-bottom{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.fade-in-bottom{animation:fade-in-bottom .4s cubic-bezier(.39,.575,.565,1) both}#chat-bubble-container{--primary-clr: rgb(0, 87, 255);--primary-light-clr: rgba(0, 87, 255, .1);--accent-clr: rgb(242, 242, 242);--accnet-2-clr: rgb(115, 115, 115);font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}#chat-bubble-container>*{scroll-behavior:smooth}.flex-center{display:flex;align-items:center;justify-content:center}@keyframes fade-in-top{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}.fade-in-top{animation:fade-in-top .6s cubic-bezier(.39,.575,.565,1) both}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.fade-in{animation:fade-in 1.2s cubic-bezier(.39,.575,.565,1) both}em-emoji-picker{--background-rgb: 85, 170, 255;--border-radius: 10px;--category-icon-size: 24px;--font-family: inherit;--font-size: 14px;min-height:250px;max-height:300px}.PopoverContent{transform-origin:var(--radix-popover-content-transform-origin);animation:scaleIn .5s ease-out}@keyframes scaleIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}.PopoverContent{animation-duration:.6s;animation-timing-function:cubic-bezier(.16,1,.3,1)}.PopoverContent[data-side=top]{animation-name:slideUp}.PopoverContent[data-side=bottom]{animation-name:slideDown}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in-right{0%{transform:translate(50px);opacity:0}to{transform:translate(0);opacity:1}}.fade-in-right{animation:fade-in-right .6s both}@keyframes scale-out-br{0%{transform:scale(1);transform-origin:100% 100%;opacity:1}to{transform:scale(0);transform-origin:100% 100%;opacity:1}}.scale-out-br{animation:scale-out-br .5s ease-in-out forwards}.placeholder\\:openchat-align-middle::-moz-placeholder{vertical-align:middle}.placeholder\\:openchat-align-middle::placeholder{vertical-align:middle}.placeholder\\:openchat-text-xs::-moz-placeholder{font-size:.75rem;line-height:1rem}.placeholder\\:openchat-text-xs::placeholder{font-size:.75rem;line-height:1rem}.placeholder\\:openchat-text-accent2::-moz-placeholder{color:var(--accnet-2-clr)}.placeholder\\:openchat-text-accent2::placeholder{color:var(--accnet-2-clr)}.placeholder\\:openchat-transition-all::-moz-placeholder{-moz-transition-property:all;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.placeholder\\:openchat-transition-all::placeholder{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.last-of-type\\:openchat-mb-10:last-of-type{margin-bottom:2.5rem}.focus-within\\:openchat-shadow-\\[0_-5px_40px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]:focus-within{--tw-shadow: 0 -5px 40px rgba(0,0,0,.04);--tw-shadow-colored: 0 -5px 40px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus-within\\:openchat-outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.openchat-group:last-of-type .group-last-of-type\\:openchat-inline{display:inline}.openchat-group:hover .group-hover\\:openchat-text-primary{color:var(--primary-clr)}.data-\\[state\\=open\\]\\:openchat-bg-primary[data-state=open]{background-color:var(--primary-clr)}.data-\\[state\\=open\\]\\:openchat-text-white[data-state=open]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\\:openchat-scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:openchat-scale-125:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:openchat-bg-black\\/20:hover{background-color:#0003}.hover\\:openchat-bg-primary:hover{background-color:var(--primary-clr)}.hover\\:openchat-bg-primary-light:hover{background-color:var(--primary-light-clr)}.hover\\:openchat-text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:openchat-border-none:focus{border-style:none}.focus\\:openchat-bg-transparent:focus{background-color:transparent}.focus\\:openchat-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\\:openchat-select-none:disabled{-webkit-user-select:none;-moz-user-select:none;user-select:none}.disabled\\:openchat-bg-transparent:disabled{background-color:transparent}.selection\\:disabled\\:openchat-bg-transparent:disabled *::-moz-selection{background-color:transparent}.selection\\:disabled\\:openchat-bg-transparent:disabled *::selection{background-color:transparent}.selection\\:disabled\\:openchat-bg-transparent:disabled::-moz-selection{background-color:transparent}.selection\\:disabled\\:openchat-bg-transparent:disabled::selection{background-color:transparent}.prose-headings\\:openchat-my-1 :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~="openchat-not-prose"] *))){margin-top:.25rem;margin-bottom:.25rem}.prose-headings\\:openchat-text-lg :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~="openchat-not-prose"] *))){font-size:1.125rem;line-height:1.75rem}.prose-h1\\:openchat-text-lg :is(:where(h1):not(:where([class~="openchat-not-prose"] *))){font-size:1.125rem;line-height:1.75rem}.prose-h1\\:openchat-font-medium :is(:where(h1):not(:where([class~="openchat-not-prose"] *))){font-weight:500}.prose-h2\\:openchat-font-normal :is(:where(h2):not(:where([class~="openchat-not-prose"] *))){font-weight:400}.prose-li\\:openchat-leading-none :is(:where(li):not(:where([class~="openchat-not-prose"] *))){line-height:1}@media (min-width: 640px){.sm\\:openchat-inset-auto{inset:auto}.sm\\:openchat-bottom-20{bottom:5rem}.sm\\:openchat-right-5{right:1.25rem}.sm\\:openchat-flex{display:flex}.sm\\:openchat-hidden{display:none}.sm\\:openchat-h-\\[min\\(704px\\,100\\%-104px\\)\\]{height:min(704px,100% - 104px)}.sm\\:openchat-min-h-\\[22rem\\]{min-height:22rem}.sm\\:openchat-w-96{width:24rem}.sm\\:openchat-w-full{width:100%}.sm\\:openchat-max-w-screen-sm{max-width:640px}.sm\\:openchat-rounded-xl{border-radius:.75rem}}\n';function ez({initialMessages:e,token:n,isFullScreen:t}){const i=document.createElement("style");i.innerHTML=ZR,document.body.appendChild(i);const r=document.createElement("div");r.id="chat-bubble-container",document.body.appendChild(r),ud.createRoot(r).render(b.jsx(a9,{children:b.jsx(v9,{initialMessages:e,token:n,isFullScreen:t,children:b.jsx(g9,{children:b.jsx(GR,{children:b.jsx(z5,{children:b.jsx(M5,{children:b.jsx(JR,{})})})})})})}))}window.initializeChatWidget=ez; diff --git a/backend-server/public/operator.2b750c4a-a89eff38.mp3 b/backend-server/public/operator.2b750c4a-a89eff38.mp3 new file mode 100644 index 00000000..aa394057 Binary files /dev/null and b/backend-server/public/operator.2b750c4a-a89eff38.mp3 differ diff --git a/backend-server/public/submit.3abafccd-cfb52721.mp3 b/backend-server/public/submit.3abafccd-cfb52721.mp3 new file mode 100644 index 00000000..2f673719 Binary files /dev/null and b/backend-server/public/submit.3abafccd-cfb52721.mp3 differ diff --git a/widgets/chat/legacy-chat.js b/widgets/chat/legacy-chat.js deleted file mode 100644 index b1eb7e81..00000000 --- a/widgets/chat/legacy-chat.js +++ /dev/null @@ -1,25 +0,0 @@ -function toggleChat() { - var e = document.getElementById("chat-box"); - e.classList.contains("open") ? (e.classList.remove("open"), e.classList.add("closed")) : (e.classList.remove("closed"), e.classList.add("open")) -} - -function initializeChatWidget(e) { - setTimeout(function () { - var t = document.createElement("div"); - t.id = "chat-container"; - var a = document.createElement("div"); - a.id = "chat-bubble", a.onclick = toggleChat, a.innerHTML = ''; - var i = document.createElement("div"); - i.id = "chat-box", i.classList.add("closed"); - var d = "http://localhost:8000/chat/" + e.token; - i.innerHTML = '', t.appendChild(a), t.appendChild(i), document.body.appendChild(t) - }, 0) -} - -function loadCSS() { - var e = document.createElement("link"); - e.rel = "stylesheet", e.href = "http://localhost:8000/chat.css", document.head.appendChild(e) -} - -loadCSS(); -