@snf/access-qa-bot 3.1.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- var AccessQABot=function(En){"use strict";var $t,q,Io,xt,To,Qo,Mo,Oo,tr,nr,rr,No,Jt={},Lo=[],rA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zt=Array.isArray;function Je(e,t){for(var n in t)e[n]=t[n];return e}function or(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ie(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?$t.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return en(e,s,r,o,null)}function en(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Io,__i:-1,__u:0};return o==null&&q.vnode!=null&&q.vnode(i),i}function Ro(){return{current:null}}function Ae(e){return e.children}function Ze(e,t){this.props=e,this.context=t}function Ot(e,t){if(t==null)return e.__?Ot(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ot(e):null}function Ho(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ho(e)}}function ir(e){(!e.__d&&(e.__d=!0)&&xt.push(e)&&!_n.__r++||To!=q.debounceRendering)&&((To=q.debounceRendering)||Qo)(_n)}function _n(){for(var e,t,n,r,o,i,s,A=1;xt.length;)xt.length>A&&xt.sort(Mo),e=xt.shift(),A=xt.length,e.__d&&(n=void 0,r=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=Je({},r)).__v=r.__v+1,q.vnode&&q.vnode(n),ar(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Ot(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Wo(i,n,s),r.__e=r.__=null,n.__e!=o&&Ho(n)));_n.__r=0}function Uo(e,t,n,r,o,i,s,A,a,l,c){var u,d,p,h,m,f,v,y=r&&r.__k||Lo,g=t.length;for(a=oA(n,t,y,a,g),u=0;u<g;u++)(p=n.__k[u])!=null&&(d=p.__i==-1?Jt:y[p.__i]||Jt,p.__i=u,f=ar(e,p,d,o,i,s,A,a,l,c),h=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&Ar(d.ref,null,p),c.push(p.ref,p.__c||h,p)),m==null&&h!=null&&(m=h),(v=!!(4&p.__u))||d.__k===p.__k?a=Fo(p,a,e,v):typeof p.type=="function"&&f!==void 0?a=f:h&&(a=h.nextSibling),p.__u&=-7);return n.__e=m,a}function oA(e,t,n,r,o){var i,s,A,a,l,c=n.length,u=c,d=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(a=i+d,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?en(null,s,null,null,null):Zt(s)?en(Ae,{children:s},null,null,null):s.constructor==null&&s.__b>0?en(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,A=null,(l=s.__i=iA(s,n,a,u))!=-1&&(u--,(A=n[l])&&(A.__u|=2)),A==null||A.__v==null?(l==-1&&(o>c?d--:o<c&&d++),typeof s.type!="function"&&(s.__u|=4)):l!=a&&(l==a-1?d--:l==a+1?d++:(l>a?d--:d++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<c;i++)(A=n[i])!=null&&!(2&A.__u)&&(A.__e==r&&(r=Ot(A)),Go(A,A));return r}function Fo(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Fo(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Ot(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function lt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Zt(e)?e.some(function(n){lt(n,t)}):t.push(e)),t}function iA(e,t,n,r){var o,i,s,A=e.key,a=e.type,l=t[n],c=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||c&&A==l.key&&a==l.type)return n;if(r>(c?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((l=t[s=o>=0?o--:i++])!=null&&!(2&l.__u)&&A==l.key&&a==l.type)return s}return-1}function zo(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||rA.test(t)?n:n+"px"}function kn(e,t,n,r,o){var i,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||zo(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||zo(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Oo,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=tr,e.addEventListener(t,i?rr:nr,i)):e.removeEventListener(t,i?rr:nr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function jo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=tr++;else if(t.t<n.u)return;return n(q.event?q.event(t):t)}}}function ar(e,t,n,r,o,i,s,A,a,l){var c,u,d,p,h,m,f,v,y,g,x,k,E,C,I,S,P,D=t.type;if(t.constructor!=null)return null;128&n.__u&&(a=!!(32&n.__u),i=[A=t.__e=n.__e]),(c=q.__b)&&c(t);e:if(typeof D=="function")try{if(v=t.props,y="prototype"in D&&D.prototype.render,g=(c=D.contextType)&&r[c.__c],x=c?g?g.props.value:c.__:r,n.__c?f=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new D(v,x):(t.__c=u=new Ze(v,x),u.constructor=D,u.render=sA),g&&g.sub(u),u.props=v,u.state||(u.state={}),u.context=x,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&D.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Je({},u.__s)),Je(u.__s,D.getDerivedStateFromProps(v,u.__s))),p=u.props,h=u.state,u.__v=t,d)y&&D.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&D.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,x),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(B){B&&(B.__=t)}),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,x),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,h,m)})}if(u.context=x,u.props=v,u.__P=e,u.__e=!1,E=q.__r,C=0,y){for(u.state=u.__s,u.__d=!1,E&&E(t),c=u.render(u.props,u.state,u.context),I=0;I<u._sb.length;I++)u.__h.push(u._sb[I]);u._sb=[]}else do u.__d=!1,E&&E(t),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++C<25);u.state=u.__s,u.getChildContext!=null&&(r=Je(Je({},r),u.getChildContext())),y&&!d&&u.getSnapshotBeforeUpdate!=null&&(m=u.getSnapshotBeforeUpdate(p,h)),S=c,c!=null&&c.type===Ae&&c.key==null&&(S=qo(c.props.children)),A=Uo(e,Zt(S)?S:[S],t,n,r,o,i,s,A,a,l),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),f&&(u.__E=u.__=null)}catch(B){if(t.__v=null,a||i!=null)if(B.then){for(t.__u|=a?160:128;A&&A.nodeType==8&&A.nextSibling;)A=A.nextSibling;i[i.indexOf(A)]=null,t.__e=A}else{for(P=i.length;P--;)or(i[P]);sr(t)}else t.__e=n.__e,t.__k=n.__k,B.then||sr(t);q.__e(B,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):A=t.__e=aA(n.__e,t,n,r,o,i,s,a,l);return(c=q.diffed)&&c(t),128&t.__u?void 0:A}function sr(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(sr)}function Wo(e,t,n){for(var r=0;r<n.length;r++)Ar(n[r],n[++r],n[++r]);q.__c&&q.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){q.__e(i,o.__v)}})}function qo(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Zt(e)?e.map(qo):Je({},e)}function aA(e,t,n,r,o,i,s,A,a){var l,c,u,d,p,h,m,f=n.props,v=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((p=i[l])&&"setAttribute"in p==!!y&&(y?p.localName==y:p.nodeType==3)){e=p,i[l]=null;break}}if(e==null){if(y==null)return document.createTextNode(v);e=document.createElementNS(o,y,v.is&&v),A&&(q.__m&&q.__m(t,i),A=!1),i=null}if(y==null)f===v||A&&e.data==v||(e.data=v);else{if(i=i&&$t.call(e.childNodes),f=n.props||Jt,!A&&i!=null)for(f={},l=0;l<e.attributes.length;l++)f[(p=e.attributes[l]).name]=p.value;for(l in f)if(p=f[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=p;else if(!(l in v)){if(l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v)continue;kn(e,l,null,p,o)}}for(l in v)p=v[l],l=="children"?d=p:l=="dangerouslySetInnerHTML"?c=p:l=="value"?h=p:l=="checked"?m=p:A&&typeof p!="function"||f[l]===p||kn(e,l,p,f[l],o);if(c)A||u&&(c.__html==u.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(u&&(e.innerHTML=""),Uo(t.type=="template"?e.content:e,Zt(d)?d:[d],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Ot(n,0),A,a),i!=null)for(l=i.length;l--;)or(i[l]);A||(l="value",y=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[l]||y=="progress"&&!h||y=="option"&&h!=f[l])&&kn(e,l,h,f[l],o),l="checked",m!=null&&m!=e[l]&&kn(e,l,m,f[l],o))}return e}function Ar(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){q.__e(o,n)}}function Go(e,t,n){var r,o;if(q.unmount&&q.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Ar(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){q.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Go(r[o],t,n||typeof e.type!="function");n||or(e.__e),e.__c=e.__=e.__e=void 0}function sA(e,t,n){return this.constructor(e,n)}function tn(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),q.__&&q.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],ar(t,e=(!r&&n||t).__k=ie(Ae,null,[e]),o||Jt,Jt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?$t.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Wo(i,e,s)}function Yo(e,t){tn(e,t,Yo)}function AA(e,t,n){var r,o,i,s,A=Je({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:A[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(A.children=arguments.length>3?$t.call(arguments,2):n),en(e.type,A,r||e.key,o||e.ref,null)}function Ye(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,ir(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+No++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}$t=Lo.slice,q={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(A){e=A}throw e}},Io=0,Ze.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Je({},this.state),typeof e=="function"&&(e=e(Je({},n),this.props)),e&&Je(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ir(this))},Ze.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ir(this))},Ze.prototype.render=Ae,xt=[],Qo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mo=function(e,t){return e.__v.__b-t.__v.__b},_n.__r=0,Oo=/(PointerCapture)$|Capture$/i,tr=0,nr=jo(!1),rr=jo(!0),No=0;var pt,ge,lr,Xo,Nt=0,Vo=[],me=q,Ko=me.__b,$o=me.__r,Jo=me.diffed,Zo=me.__c,ei=me.unmount,ti=me.__;function Lt(e,t){me.__h&&me.__h(ge,e,Nt||t),Nt=0;var n=ge.__H||(ge.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function J(e){return Nt=1,cr(ii,e)}function cr(e,t,n){var r=Lt(pt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ii(void 0,t),function(A){var a=r.__N?r.__N[0]:r.__[0],l=r.t(a,A);a!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=ge,!ge.__f)){var o=function(A,a,l){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(d){return!!d.__c});if(c.every(function(d){return!d.__N}))return!i||i.call(this,A,a,l);var u=r.__c.props!==A;return c.forEach(function(d){if(d.__N){var p=d.__[0];d.__=d.__N,d.__N=void 0,p!==d.__[0]&&(u=!0)}}),i&&i.call(this,A,a,l)||u};ge.__f=!0;var i=ge.shouldComponentUpdate,s=ge.componentWillUpdate;ge.componentWillUpdate=function(A,a,l){if(this.__e){var c=i;i=void 0,o(A,a,l),i=c}s&&s.call(this,A,a,l)},ge.shouldComponentUpdate=o}return r.__N||r.__}function Z(e,t){var n=Lt(pt++,3);!me.__s&&dr(n.__H,t)&&(n.__=e,n.u=t,ge.__H.__h.push(n))}function nn(e,t){var n=Lt(pt++,4);!me.__s&&dr(n.__H,t)&&(n.__=e,n.u=t,ge.__h.push(n))}function ae(e){return Nt=5,be(function(){return{current:e}},[])}function Pn(e,t,n){Nt=6,nn(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function be(e,t){var n=Lt(pt++,7);return dr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function W(e,t){return Nt=8,be(function(){return e},t)}function ze(e){var t=ge.context[e.__c],n=Lt(pt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ge)),t.props.value):e.__}function ni(e,t){me.useDebugValue&&me.useDebugValue(t?t(e):e)}function ri(){var e=Lt(pt++,11);if(!e.__){for(var t=ge.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function lA(){for(var e;e=Vo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Cn),e.__H.__h.forEach(ur),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}me.__b=function(e){ge=null,Ko&&Ko(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ti&&ti(e,t)},me.__r=function(e){$o&&$o(e),pt=0;var t=(ge=e.__c).__H;t&&(lr===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Cn),t.__h.forEach(ur),t.__h=[],pt=0)),lr=ge},me.diffed=function(e){Jo&&Jo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Vo.push(t)!==1&&Xo===me.requestAnimationFrame||((Xo=me.requestAnimationFrame)||cA)(lA)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),lr=ge=null},me.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Cn),n.__h=n.__h.filter(function(r){return!r.__||ur(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],me.__e(r,n.__v)}}),Zo&&Zo(e,t)},me.unmount=function(e){ei&&ei(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Cn(r)}catch(o){t=o}}),n.__H=void 0,t&&me.__e(t,n.__v))};var oi=typeof requestAnimationFrame=="function";function cA(e){var t,n=function(){clearTimeout(r),oi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);oi&&(t=requestAnimationFrame(n))}function Cn(e){var t=ge,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ge=t}function ur(e){var t=ge;e.__c=e.__(),ge=t}function dr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ii(e,t){return typeof t=="function"?t(e):t}function ai(e,t){for(var n in t)e[n]=t[n];return e}function pr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function si(e,t){var n=t(),r=J({t:{__:n,u:t}}),o=r[0].t,i=r[1];return nn(function(){o.__=n,o.u=t,fr(o)&&i({t:o})},[e,n,t]),Z(function(){return fr(o)&&i({t:o}),e(function(){fr(o)&&i({t:o})})},[e]),n}function fr(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Ai(e){e()}function li(e){return e}function ci(){return[!1,Ai]}var ui=nn;function hr(e,t){this.props=e,this.context=t}function uA(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:pr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,ie(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(hr.prototype=new Ze).isPureReactComponent=!0,hr.prototype.shouldComponentUpdate=function(e,t){return pr(this.props,e)||pr(this.state,t)};var di=q.__b;q.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),di&&di(e)};var dA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ie(e){function t(n){var r=ai({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=dA,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pi=function(e,t){return e==null?null:lt(lt(e).map(t))},pA={map:pi,forEach:pi,count:function(e){return e?lt(e).length:0},only:function(e){var t=lt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:lt},fA=q.__e;q.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}fA(e,t,n,r)};var fi=q.unmount;function hi(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=ai({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return hi(r,t,n)})),e}function gi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return gi(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Dn(){this.__u=0,this.o=null,this.__b=null}function mi(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function hA(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return ie(n,i)}return o.displayName="Lazy",o.__f=!0,o}function rn(){this.i=null,this.l=null}q.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),fi&&fi(e)},(Dn.prototype=new Ze).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=mi(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(A):A())};n.__R=s;var A=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=gi(a,a.__c.__P,a.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Dn.prototype.componentWillUnmount=function(){this.o=[]},Dn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=hi(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&ie(Ae,null,e.fallback);return o&&(o.__u&=-33),[ie(Ae,null,t.__a?null:e.children),o]};var yi=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function gA(e){return this.getChildContext=function(){return e.context},e.children}function mA(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){tn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}tn(ie(gA,{context:t.context},e.__v),t.v)}function yA(e,t){var n=ie(mA,{__v:e,h:t});return n.containerInfo=t,n}(rn.prototype=new Ze).__a=function(e){var t=this,n=mi(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),yi(t,e,r)):o()};n?n(i):i()}},rn.prototype.render=function(e){this.i=null,this.l=new Map;var t=lt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},rn.prototype.componentDidUpdate=rn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){yi(e,n,t)})};var vi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vA=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,bA=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,wA=/[A-Z0-9]/g,xA=typeof document<"u",EA=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function bi(e,t,n){return t.__k==null&&(t.textContent=""),tn(e,t),typeof n=="function"&&n(),e?e.__c:null}function _A(e,t,n){return Yo(e,t),typeof n=="function"&&n(),e?e.__c:null}Ze.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ze.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var wi=q.event;function kA(){}function PA(){return this.cancelBubble}function CA(){return this.defaultPrevented}q.event=function(e){return wi&&(e=wi(e)),e.persist=kA,e.isPropagationStopped=PA,e.isDefaultPrevented=CA,e.nativeEvent=e};var gr,DA={enumerable:!1,configurable:!0,get:function(){return this.class}},xi=q.vnode;q.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var A=n[s];if(!(s==="value"&&"defaultValue"in n&&A==null||xA&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&A===!0?A="":a==="translate"&&A==="no"?A=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||EA(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":bA.test(s)&&(s=a):a=s="oninput":i&&vA.test(s)?s=s.replace(wA,"-$&").toLowerCase():A===null&&(A=void 0),a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=A}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=lt(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=lt(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",DA)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=vi,xi&&xi(e)};var Ei=q.__r;q.__r=function(e){Ei&&Ei(e),gr=e.__c};var _i=q.diffed;q.diffed=function(e){_i&&_i(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),gr=null};var SA={ReactCurrentDispatcher:{current:{readContext:function(e){return gr.__n[e.__c].props.value},useCallback:W,useContext:ze,useDebugValue:ni,useDeferredValue:li,useEffect:Z,useId:ri,useImperativeHandle:Pn,useInsertionEffect:ui,useLayoutEffect:nn,useMemo:be,useReducer:cr,useRef:ae,useState:J,useSyncExternalStore:si,useTransition:ci}}};function BA(e){return ie.bind(null,e)}function Et(e){return!!e&&e.$$typeof===vi}function IA(e){return Et(e)&&e.type===Ae}function TA(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function QA(e){return Et(e)?AA.apply(null,arguments):e}function ki(e){return!!e.__k&&(tn(null,e),!0)}function MA(e){return e&&(e.base||e.nodeType===1&&e)||null}var OA=function(e,t){return e(t)},NA=function(e,t){return e(t)},LA=Ae,RA=Et,L={useState:J,useId:ri,useReducer:cr,useEffect:Z,useLayoutEffect:nn,useInsertionEffect:ui,useTransition:ci,useDeferredValue:li,useSyncExternalStore:si,startTransition:Ai,useRef:ae,useImperativeHandle:Pn,useMemo:be,useCallback:W,useContext:ze,useDebugValue:ni,version:"18.3.1",Children:pA,render:bi,hydrate:_A,unmountComponentAtNode:ki,createPortal:yA,createElement:ie,createContext:Ye,createFactory:BA,cloneElement:QA,createRef:Ro,Fragment:Ae,isValidElement:Et,isElement:RA,isFragment:IA,isMemo:TA,findDOMNode:MA,Component:Ze,PureComponent:hr,memo:uA,forwardRef:Ie,flushSync:NA,unstable_batchedUpdates:OA,StrictMode:LA,Suspense:Dn,SuspenseList:rn,lazy:hA,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:SA},HA=0;function _(e,t,n,r,o,i){t||(t={});var s,A,a=t;if("ref"in a)for(A in a={},t)A=="ref"?s=t[A]:a[A]=t[A];var l={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--HA,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(A in s)a[A]===void 0&&(a[A]=s[A]);return q.vnode&&q.vnode(l),l}function UA(e){return{render:function(t){bi(t,e)},unmount:function(){ki(e)}}}var FA="diffed",Pi="__c",mr="__s",Rt="__c",Ci="__k",yr="__d",Ht="__s",Di=/[\s\n\\/='"\0<>]/,Si=/^(xlink|xmlns|xml)([A-Z])/,zA=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,jA=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,WA=new Set(["draggable","spellcheck"]);function Bi(e){e.__g!==void 0?e.__g|=8:e[yr]=!0}function qA(e){e.__g!==void 0?e.__g&=-9:e[yr]=!1}function Ii(e){return e.__g!==void 0?!!(8&e.__g):e[yr]===!0}var GA=/["&<]/;function Sn(e){if(e.length===0||GA.test(e)===!1)return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var Ti={},YA=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),XA=/[A-Z]/g;function VA(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:Ti[n]||(Ti[n]=n.replace(XA,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||YA.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function Qi(){this.__d=!0}function KA(e,t){return{__v:e,context:t,props:e.props,setState:Qi,forceUpdate:Qi,__d:!0,__h:new Array(0)}}var vr,_t,on,an,br={},Mi=[],Ut=Array.isArray,wr=Object.assign,Te="",xr="<!--$s-->",Er="<!--/$s-->";function Oi(e,t,n){var r=q[mr];q[mr]=!0,vr=q.__b,_t=q[FA],on=q.__r,an=q.unmount;var o=ie(Ae,null);o[Ci]=[e];try{var i=ft(e,t||br,!1,void 0,o,!1,n);return Ut(i)?i.join(Te):i}catch(s){throw s.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):s}finally{q[Pi]&&q[Pi](e,Mi),q[mr]=r,Mi.length=0}}function Ni(e,t){var n,r=e.type,o=!0;return e[Rt]?(o=!1,(n=e[Rt]).state=n[Ht]):n=new r(e.props,t),e[Rt]=n,n.__v=e,n.props=e.props,n.context=t,Bi(n),n.state==null&&(n.state=br),n[Ht]==null&&(n[Ht]=n.state),r.getDerivedStateFromProps?n.state=wr({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n[Ht]!==n.state?n[Ht]:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),on&&on(e),n.render(n.props,n.state,t)}function ft(e,t,n,r,o,i,s){if(e==null||e===!0||e===!1||e===Te)return Te;var A=typeof e;if(A!="object")return A=="function"?Te:A=="string"?Sn(e):e+Te;if(Ut(e)){var a,l=Te;o[Ci]=e;for(var c=e.length,u=0;u<c;u++){var d=e[u];if(d!=null&&typeof d!="boolean"){var p,h=ft(d,t,n,r,o,i,s);typeof h=="string"?l+=h:(a||(a=new Array(c)),l&&a.push(l),l=Te,Ut(h)?(p=a).push.apply(p,h):a.push(h))}}return a?(l&&a.push(l),a):l}if(e.constructor!==void 0)return Te;e.__=o,vr&&vr(e);var m=e.type,f=e.props;if(typeof m=="function"){var v,y,g,x=t;if(m===Ae){if("tpl"in f){for(var k=Te,E=0;E<f.tpl.length;E++)if(k+=f.tpl[E],f.exprs&&E<f.exprs.length){var C=f.exprs[E];if(C==null)continue;typeof C!="object"||C.constructor!==void 0&&!Ut(C)?k+=C:k+=ft(C,t,n,r,e,i,s)}return k}if("UNSTABLE_comment"in f)return"<!--"+Sn(f.UNSTABLE_comment)+"-->";y=f.children}else{if((v=m.contextType)!=null){var I=t[v.__c];x=I?I.props.value:v.__}var S=m.prototype&&typeof m.prototype.render=="function";if(S)y=Ni(e,x),g=e[Rt];else{e[Rt]=g=KA(e,x);for(var P=0;Ii(g)&&P++<25;){qA(g),on&&on(e);try{y=m.call(g,f,x)}catch(w){throw w}}Bi(g)}if(g.getChildContext!=null&&(t=wr({},t,g.getChildContext())),S&&q.errorBoundaries&&(m.getDerivedStateFromError||g.componentDidCatch)){y=y!=null&&y.type===Ae&&y.key==null&&y.props.tpl==null?y.props.children:y;try{return ft(y,t,n,r,e,i,!1)}catch(w){return m.getDerivedStateFromError&&(g[Ht]=m.getDerivedStateFromError(w)),g.componentDidCatch&&g.componentDidCatch(w,br),Ii(g)?(y=Ni(e,t),(g=e[Rt]).getChildContext!=null&&(t=wr({},t,g.getChildContext())),ft(y=y!=null&&y.type===Ae&&y.key==null&&y.props.tpl==null?y.props.children:y,t,n,r,e,i,s)):Te}finally{_t&&_t(e),an&&an(e)}}}y=y!=null&&y.type===Ae&&y.key==null&&y.props.tpl==null?y.props.children:y;try{var D=ft(y,t,n,r,e,i,s);return _t&&_t(e),q.unmount&&q.unmount(e),e._suspended?typeof D=="string"?xr+D+Er:Ut(D)?(D.unshift(xr),D.push(Er),D):D.then(function(w){return xr+w+Er}):D}catch(w){if(s&&s.onError){var B=s.onError(w,e,function($,F){return ft($,t,n,r,F,i,s)});if(B!==void 0)return B;var R=q.__e;return R&&R(w,e),Te}throw w}}var N,Q="<"+m,z=Te;for(var M in f){var U=f[M];if(typeof(U=JA(U)?U.value:U)!="function"||M==="class"||M==="className"){switch(M){case"children":N=U;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in f)continue;M="for";break;case"className":if("class"in f)continue;M="class";break;case"defaultChecked":M="checked";break;case"defaultSelected":M="selected";break;case"defaultValue":case"value":switch(M="value",m){case"textarea":N=U;continue;case"select":r=U;continue;case"option":r!=U||"selected"in f||(Q+=" selected")}break;case"dangerouslySetInnerHTML":z=U&&U.__html;continue;case"style":typeof U=="object"&&(U=VA(U));break;case"acceptCharset":M="accept-charset";break;case"httpEquiv":M="http-equiv";break;default:if(Si.test(M))M=M.replace(Si,"$1:$2").toLowerCase();else{if(Di.test(M))continue;M[4]!=="-"&&!WA.has(M)||U==null?n?jA.test(M)&&(M=M==="panose1"?"panose-1":M.replace(/([A-Z])/g,"-$1").toLowerCase()):zA.test(M)&&(M=M.toLowerCase()):U+=Te}}U!=null&&U!==!1&&(Q=U===!0||U===Te?Q+" "+M:Q+" "+M+'="'+(typeof U=="string"?Sn(U):U+Te)+'"')}}if(Di.test(m))throw new Error(m+" is not a valid HTML tag name in "+Q+">");if(z||(typeof N=="string"?z=Sn(N):N!=null&&N!==!1&&N!==!0&&(z=ft(N,t,m==="svg"||m!=="foreignObject"&&n,r,e,i,s))),_t&&_t(e),an&&an(e),!z&&$A.has(m))return Q+"/>";var b="</"+m+">",re=Q+">";return Ut(z)?[re].concat(z,[b]):typeof z!="string"?[re,z,b]:re+z+b}var $A=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function JA(e){return e!==null&&typeof e=="object"&&typeof e.peek=="function"&&"value"in e}const ZA={renderToString:Oi,renderToStaticMarkup:Oi};function Li(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Li('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const ye={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},Ri="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",Hi=Ie((e,t)=>ie("svg",{viewBox:"0 0 637 637",ref:t,...e},ie("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),ie("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),Ui=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),el=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),tl=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),nl=Ie((e,t)=>ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},ie("g",{strokeLinecap:"round",strokeWidth:10},ie("path",{d:"m19 19 61 61M80 19 19 80"})))),rl=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),ol=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),il=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),Fi=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),al=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),sl=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),zi={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:Hi},header:{title:_("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:Ri,buttons:[ye.NOTIFICATION_BUTTON,ye.AUDIO_BUTTON,ye.CLOSE_CHAT_BUTTON],closeChatIcon:nl},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:el,iconDisabled:tl,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////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ABwAQABUA1f8BALH/7/+u/+T/xf/0/+7/GwAfAC4APgAiAFUACABDANr/KgDW//D/4f+6/woAo/8kAKX/KwDh/xQAGQDz/1sA3P9aAOz/QgACACIAAgDn/wIAv//1/6n/6f+///L/3f8VAA4ALgA0ACYAVQAOAEgA6/8wANL/AQDc/8b/+f+k/x0Anf8oAND/HwAMAPf/SADw/2AA8v9KAPX/KgD3//H/+P/F//z/rv/i/7r/6v/Z/wYABwAoADAAKQBOABkATAD0/zQA1P8PANv/0//v/6//FwCi/ywAxP8oAPn//v82APT/WwD4/00A+/8yAPv//f/8/83/+v+w/+T/sf/j/9b/AQACACoAIgAtAEIAHwBPAAEAQADe/xcA0v/k/+X/t/8IAKv/IgC//yEA6/8EACMA9/9PAPf/VAD+/zcA+/8JAPn/1P8AALf/6f+w/+P/zf////j/HAAdAC0APgAfAEsABwBCAOP/IADV/+//2v/B//3/rP8PALv/GADd/xEAFgABAEMABABaAP//QgACABcA+//n/wAAwP/w/67/4v+///3/6f8WABcAKQA0ACIARgAQAEcA8f8pANn/9f/U/87/7f+v/wgAtP8RANP/FgANAAIAOQACAFQA/f9HAAAAIAABAO3//P/E/wEAs//q/7n/9P/i/wYAEQAZADEAJABBABMASAAAADEA3/8CANL/1v/g/7H/AACy/w8Axf8ZAPv/CQAzAAIAVQD//1AAAAAsAAIA9v/7/8r/AwC2//P/tf/m/+H/AwADABEAKQApADoAHgBHAAgAPADr/wkA1//f/93/vP/6/7L/CgDA/x4A7/8hACkAAgBPAPz/UgD1/zIABAAEAPz/0v/5/7f/AACy//H/2f/+/wEAAAAkABUAMwAdADoAEQA9APD/EADU//L/1P/H/+z/tf8LALv/HADk/ygAGgADAEMA//9TAPn/QAAAABAAAQDc//z/wf8DALD/7P/Q//z/9/8HABoAFgA3ACMAMAAOADwA+P8ZANv/+P/Y/9H/5v+8/wUAu/8WANf/HgAMAAoAPQABAFMA/f9HAP7/HwAEAN//+v/H/wMAs//2/8r/8//y/wMADgAQAC4AIwAyABMAJ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AOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:al,iconDisabled:sl},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:rl,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[ye.VOICE_MESSAGE_BUTTON,ye.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:Ri,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:ol,iconDisabled:il},footer:{text:_("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[_("span",{children:"Powered By "},0),_("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:_(Hi,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),_("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[ye.FILE_ATTACHMENT_BUTTON,ye.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Ui,iconDisabled:Ui,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Fi,iconDisabled:Fi,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},ji=Ye({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),ne=()=>ze(ji),Al=({children:e,settings:t=zi,setSyncedSettings:n,syncedSettingsRef:r})=>_(ji.Provider,{value:{settings:t,setSyncedSettings:n,syncedSettingsRef:r},children:e}),Wi={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},qi=Ye({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),de=()=>ze(qi),ll=({children:e,styles:t=Wi,setSyncedStyles:n,syncedStylesRef:r})=>_(qi.Provider,{value:{styles:t,setSyncedStyles:n,syncedStylesRef:r},children:e}),cl=({buttons:e})=>{var t,n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),c={backgroundImage:`linear-gradient(to right, ${(t=a.general)==null?void 0:t.secondaryColor},
2
- ${(n=a.general)==null?void 0:n.primaryColor})`,...l.headerStyle};return _("div",{style:c,className:"rcb-chat-header-container",children:[_("div",{className:"rcb-chat-header",children:[((r=a.header)==null?void 0:r.showAvatar)&&_("div",{style:{backgroundImage:`url("${(o=a.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),Et((i=a.header)==null?void 0:i.title)?(s=a.header)==null?void 0:s.title:_("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(A=a.header)==null?void 0:A.title})]}),_("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((u,d)=>_(Ae,{children:u},d))})]})},Gi=Ye({}),we=()=>ze(Gi),ul=({children:e,botIdRef:t,flowRef:n})=>{const r=ae(null),o=ae(""),i=ae(null),s=ae(new Map),A=ae(null),a=ae(""),l=ae(!1),c=ae(null),u=ae(null),d=ae(null);return _(Gi.Provider,{value:{botIdRef:t,flowRef:n,inputRef:r,timeoutIdRef:i,streamMessageMap:s,chatBodyRef:A,paramsInputRef:a,keepVoiceOnRef:l,audioContextRef:c,audioBufferRef:u,gainNodeRef:d,prevInputRef:o},children:e})},Le=e=>{const[t,n]=J(e),r=ae(e);return[t,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},Yi=Ye({}),Ee=()=>ze(Yi),dl=({children:e,settings:t})=>{var n,r,o,i,s,A;const[a,l,c]=Le(!1),[u,d,p]=Le(((n=t==null?void 0:t.chatWindow)==null?void 0:n.defaultOpen)??!1),[h,m,f]=Le(((r=t==null?void 0:t.audio)==null?void 0:r.defaultToggledOn)??!1),[v,y,g]=Le(((o=t==null?void 0:t.voice)==null?void 0:o.defaultToggledOn)??!1),[x,k,E]=Le(((i=t==null?void 0:t.notification)==null?void 0:i.defaultToggledOn)??!0),[C,I]=J(!1),[S,P]=J(!1),[D,B,R]=Le(!1),[N,Q,z]=Le(!0),[M,U,b]=Le(!1),[re,w]=J(!1),[$,F]=J(!1),[H,Y]=J(0),[te,oe]=J(0),[ce,pe]=J(!1),[ve,Ve]=J(((s=window.visualViewport)==null?void 0:s.height)??window.innerHeight),[Tt,Qt]=J(((A=window.visualViewport)==null?void 0:A.width)??window.innerWidth);return _(Yi.Provider,{value:{isBotTyping:a,setSyncedIsBotTyping:l,syncedIsBotTypingRef:c,isChatWindowOpen:u,setSyncedIsChatWindowOpen:d,syncedIsChatWindowOpenRef:p,audioToggledOn:h,setSyncedAudioToggledOn:m,syncedAudioToggledOnRef:f,voiceToggledOn:v,setSyncedVoiceToggledOn:y,syncedVoiceToggledOnRef:g,notificationsToggledOn:x,setSyncedNotificationsToggledOn:k,syncedNotificationsToggledOnRef:E,isLoadingChatHistory:C,setIsLoadingChatHistory:I,hasChatHistoryLoaded:S,setHasChatHistoryLoaded:P,isScrolling:D,setSyncedIsScrolling:B,syncedIsScrollingRef:R,textAreaDisabled:N,setSyncedTextAreaDisabled:Q,syncedTextAreaDisabledRef:z,textAreaSensitiveMode:M,setSyncedTextAreaSensitiveMode:U,syncedTextAreaSensitiveModeRef:b,hasInteractedPage:re,setHasInteractedPage:w,hasFlowStarted:$,setHasFlowStarted:F,unreadCount:H,setUnreadCount:Y,inputLength:te,setInputLength:oe,blockAllowsAttachment:ce,setBlockAllowsAttachment:pe,viewportHeight:ve,setViewportHeight:Ve,viewportWidth:Tt,setViewportWidth:Qt},children:e})};var j=(e=>(e.START_SPEAK_AUDIO="rcb-start-speak-audio",e.TOGGLE_AUDIO="rcb-toggle-audio",e.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",e.TOGGLE_VOICE="rcb-toggle-voice",e.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",e.PRE_INJECT_MESSAGE="rcb-pre-inject-message",e.POST_INJECT_MESSAGE="rcb-post-inject-message",e.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",e.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",e.START_STREAM_MESSAGE="rcb-start-stream-message",e.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",e.STOP_STREAM_MESSAGE="rcb-stop-stream-message",e.REMOVE_MESSAGE="rcb-remove-message",e.LOAD_CHAT_HISTORY="rcb-load-chat-history",e.CHANGE_PATH="rcb-change-path",e.SHOW_TOAST="rcb-show-toast",e.DISMISS_TOAST="rcb-dismiss-toast",e.USER_SUBMIT_TEXT="rcb-user-submit-text",e.USER_UPLOAD_FILE="rcb-user-upload-file",e.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",e.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",e.POST_LOAD_CHATBOT="rcb-post-load-chatbot",e.PRE_PROCESS_BLOCK="rcb-pre-process-block",e.POST_PROCESS_BLOCK="rcb-post-process-block",e))(j||{});const pl={[j.START_SPEAK_AUDIO]:!0,[j.TOGGLE_AUDIO]:!0,[j.TOGGLE_VOICE]:!0,[j.TOGGLE_NOTIFICATIONS]:!0,[j.TOGGLE_CHAT_WINDOW]:!0,[j.PRE_INJECT_MESSAGE]:!0,[j.POST_INJECT_MESSAGE]:!1,[j.PRE_LOAD_CHATBOT]:!0,[j.POST_LOAD_CHATBOT]:!1,[j.START_SIMULATE_STREAM_MESSAGE]:!0,[j.STOP_SIMULATE_STREAM_MESSAGE]:!1,[j.START_STREAM_MESSAGE]:!0,[j.CHUNK_STREAM_MESSAGE]:!0,[j.STOP_STREAM_MESSAGE]:!0,[j.REMOVE_MESSAGE]:!0,[j.LOAD_CHAT_HISTORY]:!0,[j.CHANGE_PATH]:!0,[j.SHOW_TOAST]:!0,[j.DISMISS_TOAST]:!0,[j.USER_SUBMIT_TEXT]:!0,[j.USER_UPLOAD_FILE]:!0,[j.TEXT_AREA_CHANGE_VALUE]:!0,[j.PRE_PROCESS_BLOCK]:!0,[j.POST_PROCESS_BLOCK]:!0},_r=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:pl[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Xi=Ye({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),sn=()=>ze(Xi),fl=({children:e})=>{const[t,n,r]=Le([]);return _(Xi.Provider,{value:{paths:t,setSyncedPaths:n,syncedPathsRef:r},children:e})},Xe=()=>{const{botIdRef:e}=we(),{syncedPathsRef:t}=sn(),n=W(()=>t.current.length>0?t.current.at(-1)??null:null,[]),r=W(()=>t.current.length>1?t.current.at(-2)??null:null,[]);return{dispatchRcbEvent:W(async(o,i)=>{const s={botId:e.current,currPath:n(),prevPath:r()};return await _r(o,s,i)},[e])}},Re=()=>{const{settings:e}=ne(),{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,setUnreadCount:A,setSyncedIsBotTyping:a,setSyncedIsScrolling:l,syncedIsBotTypingRef:c,syncedIsChatWindowOpenRef:u}=Ee(),{chatBodyRef:d}=we(),{dispatchRcbEvent:p}=Xe(),h=W(()=>{if(!d.current)return!1;const g=d.current.getBoundingClientRect(),x=window.innerHeight??document.documentElement.clientHeight,k=window.innerWidth??document.documentElement.clientWidth;return g.top>=0&&g.left>=0&&g.bottom<=x&&g.right<=k},[d]),m=W(async g=>{var x;g!==u.current&&((x=e.event)!=null&&x.rcbToggleChatWindow&&(await p(j.TOGGLE_CHAT_WINDOW,{currState:u.current,newState:!u.current})).defaultPrevented||n(k=>(k||A(0),!k)))},[u]),f=W(async g=>{g!==c.current&&a(x=>!x)},[c]),v=W((g,x,k,E)=>(g/=E/2)<1?k/2*g*g+x:-k/2*(--g*(g-2)-1)+x,[]),y=W((g=0)=>{if(!d.current)return;const x=d.current.scrollHeight-d.current.clientHeight;if(g<=0)return d.current.scrollTop=x,void l(!1);const k=d.current.scrollTop,E=x-k;let C=0;const I=()=>{if(!d.current)return;C+=20;const S=v(C,k,E,g);d.current.scrollTop=S,C<g?requestAnimationFrame(I):l(!1)};I()},[d]);return{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,toggleChatWindow:m,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,toggleIsBotTyping:f,scrollToBottom:y,getIsChatBotVisible:h}},hl=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{unreadCount:i,isScrolling:s}=Ee(),{chatBodyRef:A}=we(),{scrollToBottom:a}=Re(),[l,c]=J(!1),u={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatMessagePromptHoveredStyle};return _("div",{className:"rcb-message-prompt-container "+(A.current&&((d=r.chatWindow)!=null&&d.showMessagePrompt)&&s&&i>0?"visible":"hidden"),children:_("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:{...o.chatMessagePromptStyle},onMouseDown:p=>{p.preventDefault(),a(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var d},Vi=Ye({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),kr=()=>ze(Vi),gl=({children:e})=>{const[t,n,r]=Le([]);return _(Vi.Provider,{value:{messages:t,setSyncedMessages:n,syncedMessagesRef:r},children:e})},ml=({message:e,isNewSender:t})=>{var n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?_(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=a.general)==null?void 0:n.primaryColor,color:"#fff",maxWidth:(r=a.userBubble)!=null&&r.showAvatar?"65%":"70%",...l.userBubbleStyle},h=(o=a.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",m=((i=a.userBubble)==null?void 0:i.showAvatar)&&t,f="rcb-user-message"+(!t&&(s=a.userBubble)!=null&&s.showAvatar?" rcb-user-message-offset":"");return _("div",{className:"rcb-user-message-container",children:[c?_("div",{style:p,className:`${f} ${h}`,children:d}):_(Ae,{children:d}),m&&_("div",{style:{backgroundImage:`url("${(A=a.userBubble)==null?void 0:A.avatar}")`},className:"rcb-message-user-avatar"})]})},yl=({message:e,isNewSender:t})=>{var n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?_(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=a.general)==null?void 0:n.secondaryColor,color:"#fff",maxWidth:(r=a.botBubble)!=null&&r.showAvatar?"65%":"70%",...l.botBubbleStyle},h=(o=a.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",m=((i=a.botBubble)==null?void 0:i.showAvatar)&&t,f="rcb-bot-message"+(!t&&(s=a.botBubble)!=null&&s.showAvatar?" rcb-bot-message-offset":"");return _("div",{className:"rcb-bot-message-container",children:[m&&_("div",{style:{backgroundImage:`url("${(A=a.botBubble)==null?void 0:A.avatar}")`},className:"rcb-message-bot-avatar"}),c?_("div",{style:p,className:`${f} ${h}`,children:d}):_(Ae,{children:d})]})},vl=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),i=(e=r.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return _("div",{className:"rcb-bot-message-container",children:[((t=r.botBubble)==null?void 0:t.showAvatar)&&_("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),_("div",{onMouseDown:s=>{s.preventDefault()},className:`rcb-bot-message ${i}`,children:_("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[_("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),_("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),_("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},bl=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{messages:i}=kr(),{scrollToBottom:s}=Re(),{isBotTyping:A,syncedIsScrollingRef:a}=Ee(),{chatBodyRef:l}=we(),c={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=r.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return Z(()=>{a.current||s()},[(t=l.current)==null?void 0:t.scrollHeight]),_("div",{style:c,className:"rcb-chat-body-container",ref:l,children:[i.map((u,d)=>{const p=(h=>h===0||i[h].sender!==i[h-1].sender)(d);return u.sender.toUpperCase()==="USER"?_(ml,{message:u,isNewSender:p},d):u.sender.toUpperCase()==="BOT"?_(yl,{message:u,isNewSender:p},d):_("div",{children:u.content},d)}),A&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&_(vl,{}),_(hl,{})]})},wl=({checkboxes:e,checkedItems:t,path:n})=>{var r,o,i,s,A,a,l,c,u,d,p;const{settings:h}=ne(),{styles:m}=de(),{paths:f}=sn(),{handleSubmitText:v}=zt(),[y,g]=J(new Set),[x,k]=J(!1),E={cursor:x?`url("${(r=h.general)==null?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:(o=h.general)==null?void 0:o.primaryColor,borderColor:(i=h.general)==null?void 0:i.primaryColor,...m.botCheckboxRowStyle},C={cursor:x||y.size<e.min?`url("${(s=h.general)==null?void 0:s.actionDisabledIcon}"), auto`:"pointer",color:(A=h.general)==null?void 0:A.primaryColor,borderColor:(a=h.general)==null?void 0:a.primaryColor,...m.botCheckboxNextStyle},I={cursor:x?`url("${(l=h.general)==null?void 0:l.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...m.botCheckMarkStyle},S={cursor:x?`url("${(c=h.general)==null?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(u=h.general)==null?void 0:u.primaryColor,backgroundColor:(d=h.general)==null?void 0:d.primaryColor,...m.botCheckMarkSelectedStyle};return Z(()=>{f.length>0&&f[f.length-1]!==n&&k(!e.reusable)},[f]),_("div",{className:"rcb-checkbox-container "+((p=h.botBubble)!=null&&p.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(P=>_("div",{onMouseDown:D=>{D.preventDefault(),(B=>{x||g(R=>{const N=new Set(R);if(N.has(B))t.delete(B),N.delete(B);else{if(y.size==e.max)return R;t.add(B),N.add(B)}return N})})(P)},style:E,className:"rcb-checkbox-row-container",children:_("div",{className:"rcb-checkbox-row",children:[_("div",{style:y.has(P)?S:I,className:"rcb-checkbox-mark"}),_("div",{className:"rcb-checkbox-label",children:P})]})},P)),_("div",{style:C,className:"rcb-checkbox-next-button",onMouseDown:P=>{var D;if(P.preventDefault(),x||y.size<e.min)return;const B=Array.from(t).join(", ");let R;k(!e.reusable),R=e.sendOutput!=null?e.sendOutput:((D=h.chatInput)==null?void 0:D.sendCheckboxOutput)??!0,v(B,R)}})]})},xl=async(e,t)=>{const n=e.checkboxes;if(!n)return;let r;if(typeof n=="function"?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.min==null&&(r.min=1),r.max==null&&(r.max=r.items.length),r.min>r.max&&(r.min=r.max),r.reusable==null&&(r.reusable=!1);const o=new Set,i=t.currPath,s=_(wl,{checkboxes:r,checkedItems:o,path:i});await t.injectMessage(s)},El=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},_l=async(e,t,n)=>{const r=e.message;if(!r)return;if(typeof r=="string")return void(r.trim()!==""&&(n?await t.simulateStreamMessage(r):await t.injectMessage(r)));let o=r(t);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(n?await t.simulateStreamMessage(o):await t.injectMessage(o))},kl=({options:e,path:t})=>{var n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),{paths:c}=sn(),{handleSubmitText:u}=zt(),[d,p]=J([]),[h,m]=J(!1),f={cursor:h?`url("${(n=a.general)==null?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:(r=a.general)==null?void 0:r.primaryColor,borderColor:(o=a.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...l.botOptionStyle},v={color:"#fff",borderColor:(i=a.general)==null?void 0:i.primaryColor,backgroundColor:(s=a.general)==null?void 0:s.primaryColor,...l.botOptionHoveredStyle};return Z(()=>{c.length>0&&c[c.length-1]!==t&&m(!e.reusable)},[c]),_("div",{className:"rcb-options-container "+((A=a.botBubble)!=null&&A.showAvatar?"rcb-options-offset":""),children:e.items.map((y,g)=>{const x=d[g]&&!h;return _("div",{className:"rcb-options",style:x?v:f,onMouseEnter:()=>(k=>{p(E=>{const C=[...E];return C[k]=!0,C})})(g),onMouseLeave:()=>(k=>{p(E=>{const C=[...E];return C[k]=!1,C})})(g),onMouseDown:k=>{var E;if(k.preventDefault(),h)return;let C;m(!e.reusable),C=e.sendOutput!=null?e.sendOutput:((E=a.chatInput)==null?void 0:E.sendOptionOutput)??!0,u(y,C)},children:y},y)})})},Pl=async(e,t)=>{const n=e.options;if(!n)return;let r;if(typeof n=="function"?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.reusable==null&&(r.reusable=!1);const o=t.currPath,i=_(kl,{options:r,path:o});await t.injectMessage(i)},Cl=async(e,t)=>{const n=e.component;if(n){if(typeof n=="function"){let r=n(t);return r instanceof Promise&&(r=await r),r?void await t.injectMessage(r):void 0}await t.injectMessage(n)}},Dl=async(e,t,n,r)=>{const o=e.transition;let i;if(typeof o=="function"?(i=o(t),i instanceof Promise&&(i=await i)):i=o,typeof i=="number"&&(i={duration:i}),!i||i instanceof Promise||i.duration==null||typeof i.duration!="number")return;i.interruptable==null&&(i.interruptable=!1);const s=setTimeout(async()=>{const A=await r(e);A&&await $i(A,t)},i.duration);i.interruptable&&(n.current=s)},Sl=async(e,t,n)=>{const r=e.chatDisabled;if(r==null)return;let o;typeof r=="function"?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},Ki=async(e,t,n)=>{const r=e.isSensitive;if(!r)return void n(!1);let o;typeof r=="function"?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},$i=async(e,t)=>{if(!e)throw new Error("Block is not valid.");const n=Object.keys(e);for(const r of n)r==="function"&&await El(e,t);n.includes("path")&&await(async(r,o)=>{const i=r.path;if(!i)return!1;if(typeof i=="string")return await o.goToPath(i),!0;let s=i(o);if(s instanceof Promise&&(s=await s),!s)return!1;const A=s;return await o.goToPath(A),!0})(e,t)},Bl=()=>{var e;const{settings:t}=ne(),{styles:n}=de();return _("div",{className:"rcb-line-break-container",children:_("div",{style:{...n.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(e=t.chatHistory)==null?void 0:e.chatHistoryLineBreakText})})},Il=()=>{var e;const{settings:t}=ne(),{styles:n}=de(),r={borderTop:`4px solid ${(e=t.general)==null?void 0:e.primaryColor}`,...n.loadingSpinnerStyle};return _("div",{className:"rcb-spinner-container",children:_("div",{style:r,className:"rcb-spinner"})})},Bn=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const n=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(t==="x"?n:3&n|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},ht=(e,t)=>({id:Bn(),content:e,sender:t,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let gt,Ji=!1,In="rcb-history",Tn=30,Zi=!1,An=[];const Pr=async e=>{if(Zi||!gt)return;const t=[],n=Ji?An.length:0;for(let o=e.length-1;o>=n;o--){const i=e[o];if(i.sender.toUpperCase()!=="SYSTEM"&&(i.content!==""&&t.unshift(i),t.length===Tn))break}let r=t.map(Ql);if(r.length<Tn){const o=Tn-r.length;r=[...An.slice(-o),...r]}ea(r)},Cr=()=>An,Tl=e=>{ea(e),An=e},ea=e=>{gt&&gt.setItem(In,JSON.stringify(e))},Dr=e=>{var t,n,r,o,i;gt=((n=(t=e.chatHistory)==null?void 0:t.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,In=(r=e.chatHistory)==null?void 0:r.storageKey,Tn=(o=e.chatHistory)==null?void 0:o.maxEntries,Zi=(i=e.chatHistory)==null?void 0:i.disabled,An=(s=>{if(s!=null)try{return JSON.parse(s)}catch{return[]}return[]})(gt.getItem(In))},Ql=e=>Et(e.content)?structuredClone({id:e.id,content:ZA.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,ta=(e,t,n)=>{const r=new DOMParser().parseFromString(e,"text/html");return Array.from(r.body.childNodes).map((o,i)=>{var s;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const A=o.tagName.toLowerCase();let a=Array.from(o.attributes).reduce((l,c)=>{const u=c.name.toLowerCase();if(u==="style"){const d=c.value.split(";").filter(h=>h.trim()!==""),p={};d.forEach(h=>{const[m,f]=h.split(":").map(y=>y.trim()),v=m.replace(/-([a-z])/g,(y,g)=>g.toUpperCase());p[v]=f}),l[u]=p}else A!=="audio"&&A!=="video"||u!=="controls"||c.value!==""?l[u]=c.value:l[u]="true";return l},{});if(Object.prototype.hasOwnProperty.call(a,"class")){const l=o.classList;a.className=l.toString(),delete a.class,(s=t.botBubble)!=null&&s.showAvatar&&(a=Ml(l,a)),a=Ol(l,a,t,n),a=Nl(l,a,t,n),a=Ll(l,a,t,n),a=Rl(l,a,t,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(A))return ie(A,{key:i,...a});{const l=ta(o.innerHTML,t,n);return ie(A,{key:i,...a},...l)}}})},Ml=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),Ol=(e,t,n,r)=>{var o,i,s,A,a;return e.contains("rcb-options")&&(t.style={...t.style,color:((o=r.botOptionStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botOptionStyle)==null?void 0:s.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botOptionStyle}),t},Nl=(e,t,n,r)=>{var o,i,s,A,a;return e.contains("rcb-checkbox-row-container")&&(t.style={...t.style,color:((o=r.botCheckboxRowStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxRowStyle)==null?void 0:s.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),t},Ll=(e,t,n,r)=>{var o,i,s,A,a;return e.contains("rcb-checkbox-next-button")&&(t.style={...t.style,color:((o=r.botCheckboxNextStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxNextStyle)==null?void 0:s.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),t},Rl=(e,t,n,r)=>{var o,i;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(t.style={...t.style,backgroundColor:(o=n.general)==null?void 0:o.primaryColor,maxWidth:(i=n.userBubble)!=null&&i.showAvatar?"65%":"70%",...r.mediaDisplayContainerStyle}),t},Sr=()=>{const{settings:e}=ne(),{notificationsToggledOn:t,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:s}=Ee(),{audioBufferRef:A,audioContextRef:a,gainNodeRef:l}=we(),{dispatchRcbEvent:c}=Xe(),u=W(async()=>{var p,h;const m=(p=e.notification)==null?void 0:p.sound;a.current=new AudioContext;const f=a.current.createGain();let v;if(f.gain.value=((h=e.notification)==null?void 0:h.volume)??.2,l.current=f,m!=null&&m.startsWith("data:audio")){const y=atob(m.split(",")[1]),g=new ArrayBuffer(y.length),x=new Uint8Array(g);for(let k=0;k<y.length;k++)x[k]=y.charCodeAt(k);v=g}else v=await(await fetch(m)).arrayBuffer();A.current=await a.current.decodeAudioData(v)},[e.notification]),d=W(()=>{var p;if((p=e.notification)!=null&&p.disabled||!s.current||!r||!a.current||!A.current)return;const h=a.current.createBufferSource();h.buffer=A.current,h.connect(l.current).connect(a.current.destination),h.start()},[e.notification,s,r,a,A,l]);return{unreadCount:o,setUnreadCount:i,notificationsToggledOn:t,toggleNotifications:W(async p=>{var h;p!==s.current&&((h=e.event)!=null&&h.rcbToggleNotifications&&(await c(j.TOGGLE_NOTIFICATIONS,{currState:s.current,newState:!s.current})).defaultPrevented||n(m=>!m))},[s]),playNotificationSound:d,setUpNotifications:u}},Hl=(e,t)=>{var n,r,o,i;((s,A,a,l,c)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const u=new window.SpeechSynthesisUtterance;u.text=s,u.lang=A,u.rate=l,u.volume=c;let d=!1;for(const p of a)if(window.speechSynthesis.getVoices().find(h=>{if(h.name===p)return u.voice=h,window.speechSynthesis.speak(u),void(d=!0)}),d)break;d||window.speechSynthesis.speak(u)})(t,(n=e.audio)==null?void 0:n.language,(r=e.audio)==null?void 0:r.voiceNames,(o=e.audio)==null?void 0:o.rate,(i=e.audio)==null?void 0:i.volume)},na=()=>{const{settings:e}=ne(),{audioToggledOn:t,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=Ee(),{dispatchRcbEvent:o}=Xe(),i=W(async A=>{var a;A!==r.current&&((a=e.event)!=null&&a.rcbToggleAudio&&(await o(j.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),s=W(async A=>{var a,l;if((a=e.audio)!=null&&a.disabled||!r.current)return;let c=A;if((l=e.event)!=null&&l.rcbStartSpeakAudio){const u=await o(j.START_SPEAK_AUDIO,{textToRead:c});if(u.defaultPrevented)return;c=u.data.textToRead}Hl(e,c)},[e,r]);return{audioToggledOn:t,speakAudio:s,toggleAudio:i}},kt=()=>{var e,t;const{settings:n}=ne(),{messages:r,setSyncedMessages:o,syncedMessagesRef:i}=kr(),{setSyncedIsBotTyping:s,setUnreadCount:A,syncedIsScrollingRef:a,syncedIsChatWindowOpenRef:l}=Ee(),{streamMessageMap:c,chatBodyRef:u,paramsInputRef:d}=we(),{scrollToBottom:p,getIsChatBotVisible:h}=Re(),{dispatchRcbEvent:m}=Xe(),{speakAudio:f}=na(),{playNotificationSound:v}=Sr(),y=W((S,P=!1)=>{var D,B;Pr(S);let R=!0;const N=S[S.length-1];if(!N)return;const Q=N.sender.toUpperCase();Q==="USER"&&(R=!1),(D=n.general)!=null&&D.embedded&&h()&&(R=!1),(l.current&&!a.current||P)&&(R=!1),R&&v(),!P&&(Q!=="USER"&&(B=n.chatWindow)!=null&&B.autoJumpToBottom||Q==="USER"||!a.current)&&setTimeout(()=>p(),1)},[n,u,l,a,v,p,h]),g=W(async(S,P="BOT",D=null)=>{var B,R,N,Q,z;if(typeof S!="string")throw new Error("Content must be of type string to simulate stream.");P=P.toUpperCase();let M=ht(S,P);if((B=n.event)!=null&&B.rcbStartSimulateStreamMessage){const H=await m(j.START_SIMULATE_STREAM_MESSAGE,{message:M});if(H.defaultPrevented)return null;D=H.data.simulateStreamChunker||D,M=H.data.message}s(!1);let U=30;U=P==="BOT"?(R=n.botBubble)==null?void 0:R.streamSpeed:(N=n.userBubble)==null?void 0:N.streamSpeed;const b={...M,content:""};o(H=>[...H,b]),y(i.current);let re=M.content;D&&(re=D(re));let w=0;const $=re.length;M.sender.toUpperCase()==="BOT"&&(l.current||(Q=n.general)!=null&&Q.embedded)&&typeof M.content=="string"&&M.content.trim()!==""&&f(M.content);const F=new Promise(H=>{const Y=setInterval(()=>{if(w>=$)return clearInterval(Y),void H();o(te=>{const oe=[...te];for(let ce=oe.length-1;ce>=0;ce--)if(oe[ce].id===b.id){const pe=re[w];pe&&(b.content+=pe,oe[ce]=b),w++;break}return oe})},U)});return(a.current||!l.current)&&A(H=>H+1),await F,Pr(i.current),(z=n.event)!=null&&z.rcbStopSimulateStreamMessage&&await m(j.STOP_SIMULATE_STREAM_MESSAGE,{message:M}),P==="USER"&&(d.current=S),M},[n,m,y,i,d,s,A,l,f]),x=W(async(S,P="BOT")=>{var D,B,R;P=P.toUpperCase();let N=ht(S,P);if((D=n.event)!=null&&D.rcbPreInjectMessage){const Q=await m(j.PRE_INJECT_MESSAGE,{message:N});if(Q.defaultPrevented)return null;N=Q.data.message}return N.sender.toUpperCase()==="BOT"&&(l.current||(B=n.general)!=null&&B.embedded)&&typeof N.content=="string"&&N.content.trim()!==""&&f(N.content),(a.current||!l.current)&&A(Q=>Q+1),(R=n.event)!=null&&R.rcbPostInjectMessage&&await m(j.POST_INJECT_MESSAGE,{message:N}),o(Q=>[...Q,N]),y(i.current),P==="USER"&&typeof S=="string"&&(d.current=S),N},[n,m,y,d,i,l,f,A]),k=W(async S=>{var P;const D=i.current.find(B=>B.id===S);return!D||(P=n.event)!=null&&P.rcbRemoveMessage&&(await m(j.REMOVE_MESSAGE,{message:D})).defaultPrevented?null:(o(B=>B.filter(R=>R.id!==S)),y(i.current),A(B=>Math.max(B-1,0)),D)},[m,(e=n.event)==null?void 0:e.rcbRemoveMessage,y,i,A]),E=W(async(S,P="BOT")=>{var D,B;if(P=P.toUpperCase(),!c.current.has(P)){const N=ht(S,P);return(D=n.event)!=null&&D.rcbStartStreamMessage&&(await m(j.START_STREAM_MESSAGE,{message:N})).defaultPrevented?null:(s(!1),o(Q=>[...Q,N]),y(i.current),c.current.set(P,N.id),(a.current||!l.current)&&A(Q=>Q+1),N)}const R={...ht(S,P),id:c.current.get(P)};return(B=n.event)!=null&&B.rcbChunkStreamMessage&&(await m(j.CHUNK_STREAM_MESSAGE,{message:R})).defaultPrevented?null:(o(N=>N.map(Q=>Q.id===R.id?R:Q)),y(i.current,!0),R)},[m,n.event,y,i,s,A,c]),C=W(async(S="BOT")=>{var P;if(S=S.toUpperCase(),!c.current.has(S))return!0;const D=c.current.get(S);let B;for(let R=0;R<3;R++){const N=i.current.find(Q=>Q.id===D);N&&(B=N),await new Promise(Q=>setTimeout(Q,20))}return((P=n.event)==null||!P.rcbStopStreamMessage||!(await m(j.STOP_STREAM_MESSAGE,{message:B})).defaultPrevented)&&(c.current.delete(S),Pr(i.current),S==="USER"&&typeof(B==null?void 0:B.content)=="string"&&(d.current=B.content),!0)},[m,(t=n.event)==null?void 0:t.rcbStopStreamMessage,c,d]),I=W(S=>{const P=typeof S=="function"?S(i.current):S;o(P),y(P)},[y,i]);return{simulateStreamMessage:g,injectMessage:x,removeMessage:k,streamMessage:E,endStreamMessage:C,replaceMessages:I,messages:r}};let Br,et,Qn,mt=!1,tt=null;const Ir=()=>{if(!Br){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Br=e!=null?new e:null}return Br},Ul=(e,t,n,r,o,i)=>{var s,A,a;const l=Ir();if(!l)return;if(!mt)try{mt=!0,l.lang=(s=e.voice)==null?void 0:s.language,l.start()}catch{}const c=(A=e.voice)==null?void 0:A.timeoutPeriod,u=(a=e.voice)==null?void 0:a.autoSendPeriod;l.onresult=d=>{var p,h;clearTimeout(et),et=null,clearTimeout(Qn);const m=d.results[d.results.length-1][0].transcript;if(i.current){const f=(p=e.chatInput)==null?void 0:p.characterLimit,v=i.current.value+m;f!=null&&f>=0&&v.length>f?r(v.slice(0,f)):r(v),o(i.current.value.length)}c&&(et=setTimeout(async()=>await Qr(t,i),c)),(h=e.voice)!=null&&h.autoSendDisabled||(Qn=setTimeout(n,u))},l.onend=()=>{mt?(l.start(),!et&&c&&(et=setTimeout(async()=>await Qr(t,i),c))):(clearTimeout(et),et=null,clearTimeout(Qn))},c&&(et=setTimeout(async()=>await Qr(t,i),c))},Fl=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(tt=new MediaRecorder(n),!mt)try{mt=!0,tt.start()}catch{}tt.ondataavailable=r=>{t.current&&t.current.push(r.data)},tt.onstop=()=>{e(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},Tr=()=>{const e=Ir();e&&(mt=!1,e&&e.stop(),tt&&tt.state!=="inactive"&&(tt.stop(),tt=null),clearTimeout(et),et=null,clearTimeout(Qn))},Qr=async(e,t)=>{var n;(n=t.current)!=null&&n.disabled||await e(),Tr()},Mr=()=>{const{settings:e}=ne(),{voiceToggledOn:t,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=Ee(),{dispatchRcbEvent:o}=Xe(),i=W(async A=>{var a;A!==r.current&&((a=e.event)!=null&&a.rcbToggleVoice&&(await o(j.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),s=W(A=>{((a,l)=>{var c,u,d;const p=Ir();(c=l.voice)!=null&&c.disabled||(u=l.chatInput)==null||!u.blockSpam||!p||(a&&!mt?(mt=!0,(d=l.voice)!=null&&d.sendAsAudio?tt==null||tt.start():p.start()):a||Tr())})(A,e)},[e]);return{voiceToggledOn:t,toggleVoice:i,syncVoice:s}},Pt=()=>{var e;const{settings:t}=ne(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:A,syncedTextAreaDisabledRef:a,syncedTextAreaSensitiveModeRef:l}=Ee(),{inputRef:c,chatBodyRef:u,prevInputRef:d}=we(),{dispatchRcbEvent:p}=Xe(),{getIsChatBotVisible:h}=Re(),m=W(async E=>{var C,I,S;if(a.current&&c.current)c.current.value="";else if(c.current&&d.current!==null){const P=(C=t.chatInput)==null?void 0:C.characterLimit,D=(I=t.chatInput)!=null&&I.allowNewline?E:E.replace(/\n/g," ");if(P!=null&&P>=0&&D.length>P?c.current.value=D.slice(0,P):c.current.value=D,(S=t.event)!=null&&S.rcbTextAreaChangeValue&&(await p(j.TEXT_AREA_CHANGE_VALUE,{currValue:c.current.value,prevValue:d.current})).defaultPrevented)return void(c.current.value=d.current);d.current=c.current.value}},[a,c,d,t,p]),f=W(E=>{var C;(C=c.current)!=null&&C.disabled||setTimeout(()=>{var I,S,P;(I=t.general)!=null&&I.embedded?h()&&((S=c.current)==null||S.focus()):E!=="start"&&((P=c.current)==null||P.focus())},100)},[c,(e=t.general)==null?void 0:e.embedded,u,h]),v=W(()=>{c.current&&c.current.focus()},[]),y=W(()=>{c.current&&c.current.blur()},[]),g=W(()=>c&&c.current?c.current.value:"",[]),x=W(E=>{E!==a.current&&i(C=>!C)},[a]),k=W(E=>{E!==l.current&&A(C=>!C)},[l]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:A,inputLength:n,setInputLength:r,getTextAreaValue:g,setTextAreaValue:m,updateTextAreaFocus:f,focusTextArea:v,blurTextArea:y,toggleTextAreaDisabled:x,toggleTextAreaSensitiveMode:k}},ra=Ye({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),oa=()=>ze(ra),zl=({children:e})=>{const[t,n,r]=Le([]);return _(ra.Provider,{value:{toasts:t,setSyncedToasts:n,syncedToastsRef:r},children:e})},Ft=()=>{const{settings:e}=ne(),{toasts:t,setSyncedToasts:n,syncedToastsRef:r}=oa(),{dispatchRcbEvent:o}=Xe(),i=W(async(a,l)=>{var c,u,d,p;let h=null;if(r.current.length>=(((c=e.toast)==null?void 0:c.maxCount)??3)){if((u=e.toast)!=null&&u.forbidOnMax)return null;h=Bn();let f={id:h,content:a,timeout:l};if((d=e.event)!=null&&d.rcbShowToast){const v=await o(j.SHOW_TOAST,{toast:f});if(v.defaultPrevented)return null;f=v.data.toast}return n(v=>[...v.slice(1),f]),h}h=Bn();let m={id:h,content:a,timeout:l};if((p=e.event)!=null&&p.rcbShowToast){const f=await o(j.SHOW_TOAST,{toast:m});if(f.defaultPrevented)return null;m=f.data.toast}return n(f=>[...f,m]),h},[e,o]),s=W(async a=>{var l;const c=r.current.find(u=>u.id===a);return!c||(l=e.event)!=null&&l.rcbDismissToast&&(await o(j.DISMISS_TOAST,{toast:c})).defaultPrevented?null:(n(u=>u.filter(d=>d.id!==a)),a)},[o]),A=W(a=>{const l=typeof a=="function"?a(r.current):a;n(l)},[r]);return{showToast:i,dismissToast:s,toasts:t,replaceToasts:A}},Mn=()=>{var e,t,n,r,o;const{settings:i}=ne(),{paths:s,setSyncedPaths:A,syncedPathsRef:a}=sn(),{flowRef:l,streamMessageMap:c,paramsInputRef:u,keepVoiceOnRef:d,timeoutIdRef:p}=we(),{setSyncedIsBotTyping:h,setSyncedTextAreaDisabled:m,setSyncedTextAreaSensitiveMode:f,blockAllowsAttachment:v,setBlockAllowsAttachment:y}=Ee(),{dispatchRcbEvent:g}=Xe(),{endStreamMessage:x,injectMessage:k,removeMessage:E,simulateStreamMessage:C,streamMessage:I}=kt(),{showToast:S,dismissToast:P}=Ft(),{toggleChatWindow:D}=Re(),{updateTextAreaFocus:B,setTextAreaValue:R}=Pt(),{syncVoice:N}=Mr(),Q=W(async w=>{var $;if(($=i.event)!=null&&$.rcbPostProcessBlock){const F=await g(j.POST_PROCESS_BLOCK,{block:w});if(F.defaultPrevented)return null;w=F.data.block}return w},[(e=i.event)==null?void 0:e.rcbPostProcessBlock,g]),z=W(async(w,$)=>{var F,H,Y,te;if(!w)return;let oe=l.current[w];if(!oe)return void h(!1);if((F=i.event)!=null&&F.rcbPreProcessBlock){const pe=await g(j.PRE_PROCESS_BLOCK,{block:oe});if(pe.defaultPrevented)return;oe=pe.data.block}h(!0),(H=i.chatInput)!=null&&H.blockSpam&&m(!0),f(!1);const ce={prevPath:$,currPath:w,goToPath:b,setTextAreaValue:R,userInput:u.current,endStreamMessage:x,injectMessage:k,removeMessage:E,simulateStreamMessage:C,streamMessage:I,toggleChatWindow:D,showToast:S,dismissToast:P};await(async(pe,ve,Ve,Tt,Qt,st,Ne)=>{if(!pe)throw new Error("Block is not valid.");for(const Ke of Object.keys(pe))switch(Ke){case"message":await _l(pe,ve,Ve);break;case"options":await Pl(pe,ve);break;case"checkboxes":await xl(pe,ve);break;case"component":await Cl(pe,ve);break;case"chatDisabled":await Sl(pe,ve,Qt);break;case"isSensitive":await Ki(pe,ve,st);break;case"transition":await Dl(pe,ve,Tt,Ne)}})(oe,ce,((Y=i.botBubble)==null?void 0:Y.simulateStream)??!1,p,m,f,Q),h(!1),"chatDisabled"in oe||m((te=i.chatInput)==null?void 0:te.disabled),"isSensitive"in oe||f(!1),y(typeof oe.file=="function"),B(w),N(d.current&&!oe.chatDisabled),w!==$&&c.current.clear()},[l,B,N,(t=i.botBubble)==null?void 0:t.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,u,x,k,E,C,I,D,S,P,d,c]),M=W(()=>a.current.length>0?a.current.at(-1)??null:null,[]),U=W(()=>a.current.length>1?a.current.at(-2)??null:null,[]),b=W(async w=>{var $;const F=M(),H=U();return(($=i.event)==null||!$.rcbChangePath||!(await g(j.CHANGE_PATH,{currPath:F,prevPath:H,nextPath:w})).defaultPrevented)&&(A(Y=>[...Y,w]),await z(w,F),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,z,g]),re=W(w=>{const $=typeof w=="function"?w(a.current):w;A($)},[a]);return{getCurrPath:M,getPrevPath:U,goToPath:b,blockAllowsAttachment:v,setBlockAllowsAttachment:y,paths:s,replacePaths:re,firePostProcessBlockEvent:Q}},zt=()=>{var e,t,n,r;const{settings:o}=ne(),{endStreamMessage:i,injectMessage:s,removeMessage:A,simulateStreamMessage:a,streamMessage:l}=kt(),{syncedPathsRef:c}=sn(),{getCurrPath:u,getPrevPath:d,goToPath:p,firePostProcessBlockEvent:h}=Mn(),{setSyncedTextAreaSensitiveMode:m,setSyncedTextAreaDisabled:f,setSyncedIsBotTyping:v,setBlockAllowsAttachment:y,setInputLength:g,syncedVoiceToggledOnRef:x,syncedTextAreaSensitiveModeRef:k}=Ee(),{flowRef:E,inputRef:C,keepVoiceOnRef:I,paramsInputRef:S,timeoutIdRef:P}=we(),{showToast:D,dismissToast:B}=Ft(),{dispatchRcbEvent:R}=Xe(),{syncVoice:N}=Mr(),{setTextAreaValue:Q}=Pt(),{toggleChatWindow:z}=Re(),M=W(async b=>{var re,w,$,F,H,Y;const te=u();if(te&&E.current[te]){if(k.current){if((re=o==null?void 0:o.sensitiveInput)!=null&&re.hideInUserBubble)return;if((w=o==null?void 0:o.sensitiveInput)!=null&&w.maskInUserBubble)return void(($=o.userBubble)!=null&&$.simulateStream?await a("*".repeat(((F=o.sensitiveInput)==null?void 0:F.asterisksCount)??10),"USER"):await s("*".repeat(((H=o.sensitiveInput)==null?void 0:H.asterisksCount)??10),"USER"))}(Y=o.userBubble)!=null&&Y.simulateStream?await a(b,"USER"):await s(b,"USER")}},[E,u,o,s,a,k]),U=W(async(b,re=!0)=>{var w,$;if((b=b.trim())==="")return;re&&await M(b),P.current&&clearTimeout(P.current),C.current&&(Q(""),g(0));const F=u();if(!F)return;let H=E.current[F];const Y=await h(H);Y&&((w=o.chatInput)!=null&&w.blockSpam&&f(!0),I.current=x.current,N(!1),setTimeout(()=>{v(!0)},400),m(!1),setTimeout(async()=>{var te;const oe={prevPath:d(),currPath:u(),goToPath:p,setTextAreaValue:Q,userInput:S.current,injectMessage:s,simulateStreamMessage:a,streamMessage:l,removeMessage:A,endStreamMessage:i,toggleChatWindow:z,showToast:D,dismissToast:B},ce=c.current.length;await $i(Y,oe),c.current.length===ce&&(f("chatDisabled"in H?!!H.chatDisabled:!((te=o.chatInput)==null||!te.disabled)),Ki(H,oe,m),y(typeof H.file=="function"),N(I.current),v(!1))},($=o.chatInput)==null?void 0:$.botDelay))},[P,(e=o.chatInput)==null?void 0:e.blockSpam,(t=o.chatInput)==null?void 0:t.botDelay,(n=o.chatInput)==null?void 0:n.disabled,I,x,N,M,d,u,p,s,a,l,A,i,z,D,B,E]);return{handleSubmitText:W(async(b,re=!0)=>{var w,$;b=b??((w=C.current)==null?void 0:w.value),!(($=o.event)!=null&&$.rcbUserSubmitText&&(await R(j.USER_SUBMIT_TEXT,{inputText:b,sendInChat:re})).defaultPrevented||!u())&&U(b,re)},[R,u,U,C,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},On=()=>{var e;const{settings:t}=ne();return be(()=>{var n;if(typeof window>"u"||!window.navigator)return!1;if((n=t.device)==null||!n.applyMobileOptimizations)return!0;const r=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r),i=window.innerWidth>=768;return o&&i},[(e=t.device)==null?void 0:e.applyMobileOptimizations])},jl=({buttons:e})=>{var t,n,r,o,i,s,A,a,l,c,u;const d=On(),{settings:p}=ne(),{styles:h}=de(),{textAreaDisabled:m,textAreaSensitiveMode:f,inputLength:v,hasFlowStarted:y,setHasFlowStarted:g,setInputLength:x}=Ee(),{inputRef:k}=we(),[E,C]=J(!1),[I,S]=J(!1),{handleSubmitText:P}=zt(),{setTextAreaValue:D}=Pt(),B={boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle},R={outline:m?"":"none",boxShadow:m?"":`0 0 5px ${(t=p.general)==null?void 0:t.primaryColor}`,boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaFocusedStyle},N={cursor:`url("${(n=p.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaDisabledStyle},Q={color:"#989898",...h.characterLimitStyle},z={color:"#ff0000",...h.characterLimitReachedStyle},M=m?(r=p.chatInput)==null?void 0:r.disabledPlaceholderText:(o=p.chatInput)==null?void 0:o.enabledPlaceholderText,U=()=>{m||C(!0)},b=()=>{C(!1)},re=()=>{S(!0)},w=()=>{S(!1)},$=async H=>{var Y;if(!I&&H.key==="Enter"){if(H.shiftKey)return void((Y=p.chatInput)!=null&&Y.allowNewline||H.preventDefault());H.preventDefault(),await P()}},F=H=>{k.current&&(D(H.target.value),x(k.current.value.length))};return _("div",{"aria-label":((i=p.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:H=>{var Y;H.stopPropagation(),!y&&((Y=p.general)==null?void 0:Y.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&g(!0)},style:{...h.chatInputContainerStyle},className:"rcb-chat-input",children:[f&&(s=p.sensitiveInput)!=null&&s.maskInTextArea?_("input",{ref:k,type:"password",className:"rcb-chat-input-textarea",style:m?N:E?R:B,placeholder:M,onChange:F,onKeyDown:$,onFocus:U,onBlur:b,onCompositionStart:re,onCompositionEnd:w}):_("textarea",{ref:k,style:m?N:E?R:B,rows:1,className:"rcb-chat-input-textarea",placeholder:M,onChange:F,onKeyDown:$,onFocus:U,onBlur:b,onCompositionStart:re,onCompositionEnd:w}),_(Ae,{children:[e==null?void 0:e.map((H,Y)=>_(Ae,{children:H},Y)),((A=p.chatInput)==null?void 0:A.showCharacterCount)&&((a=p.chatInput)==null?void 0:a.characterLimit)!=null&&((l=p.chatInput)==null?void 0:l.characterLimit)>0&&_("div",{className:"rcb-chat-input-char-counter",style:v>=((c=p.chatInput)==null?void 0:c.characterLimit)?z:Q,children:[v,"/",(u=p.chatInput)==null?void 0:u.characterLimit]})]})]})},Wl=({buttons:e})=>{var t;const{settings:n}=ne(),{styles:r}=de();return _("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[_("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,i)=>_(Ae,{children:o},i))}),_("span",{children:(t=n.footer)==null?void 0:t.text})]})},ql=()=>{var e,t,n,r,o,i,s;const{settings:A}=ne(),{styles:a}=de(),{unreadCount:l}=Ee(),{isChatWindowOpen:c,toggleChatWindow:u}=Re(),[d,p]=J(!1),h={backgroundImage:`linear-gradient(to right, ${(e=A.general)==null?void 0:e.secondaryColor},
3
- ${(t=A.general)==null?void 0:t.primaryColor})`,...a.chatButtonStyle},m={transform:"scale(1.05)",...a.chatButtonStyle,...a.chatButtonHoveredStyle},f={backgroundImage:`url(${(n=A.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...a.chatIconStyle};return _(Ae,{children:!((r=A.general)!=null&&r.embedded)&&_("div",{"aria-label":((o=A.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:d?m:h,className:"rcb-toggle-button "+(c?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},onClick:()=>u(!0),children:[(()=>{var v;const y=(v=A.chatButton)==null?void 0:v.icon;return y&&typeof y!="string"?y&&_("span",{className:"rcb-toggle-icon",children:_(y,{style:f})}):_("span",{className:"rcb-toggle-icon",style:f})})(),!((i=A.notification)!=null&&i.disabled)&&((s=A.notification)==null?void 0:s.showCount)&&_("span",{style:{...a.notificationBadgeStyle},className:"rcb-badge",children:l})]})})},Gl=()=>{var e,t,n,r;const o=On(),{settings:i}=ne(),{styles:s}=de(),{chatBodyRef:A}=we(),{isChatWindowOpen:a,toggleChatWindow:l}=Re(),[c,u]=J(!1),[d,p]=J(!1),[h,m]=J(0);Z(()=>{var y,g,x;const k=(y=i.tooltip)==null?void 0:y.mode;if(k==="ALWAYS")if(o){let E;E=a?(((g=A.current)==null?void 0:g.offsetWidth)??375)-(typeof((x=s.chatButtonStyle)==null?void 0:x.width)=="number"?s.chatButtonStyle.width:75):0,m(E),u(!0)}else u(!a);else k==="NEVER"?u(!1):k==="START"?d?u(!1):(p(!0),u(!0)):k==="CLOSE"&&u(!a)},[a]);const f={transform:`translateX(-${h}px)`,right:(((e=s.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(t=i.general)==null?void 0:t.secondaryColor,color:"#fff",...s.tooltipStyle},v={borderColor:`transparent transparent transparent ${f.backgroundColor}`};return _(Ae,{children:!((n=i.general)!=null&&n.embedded)&&_("div",{"data-testid":"chat-tooltip",style:f,className:"rcb-chat-tooltip "+(c?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>l(!0),children:[_("span",{children:(r=i.tooltip)==null?void 0:r.text}),_("span",{className:"rcb-chat-tooltip-tail",style:v})]})})},Yl=({id:e,content:t,timeout:n})=>{var r,o;const{settings:i}=ne(),{styles:s}=de(),[A]=J({toastPromptStyle:{...s.toastPromptStyle},toastPromptHoveredStyle:{...s.toastPromptHoveredStyle}}),{dismissToast:a}=Ft(),[l,c]=J(!1),u={color:(r=i.general)==null?void 0:r.primaryColor,borderColor:(o=i.general)==null?void 0:o.primaryColor,...A.toastPromptHoveredStyle};return Z(()=>{if(n){const d=setTimeout(()=>{a(e)},n);return()=>clearTimeout(d)}},[e,a,n]),typeof t=="string"?_("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:A.toastPromptStyle,onMouseDown:async d=>{var p;(p=i.toast)!=null&&p.dismissOnClick&&(d.preventDefault(),await a(e))},className:"rcb-toast-prompt",children:t}):_(Ae,{children:t})},Xl=()=>{var e,t,n,r,o,i,s,A,a,l,c,u;const{styles:d}=de(),{toasts:p}=oa(),h={bottom:`calc(${typeof((e=d.footerStyle)==null?void 0:e.height)=="number"?`${(t=d.footerStyle)==null?void 0:t.height}px`:((n=d.footerStyle)==null?void 0:n.height)??"50px"} + ${typeof((r=d.chatInputContainerStyle)==null?void 0:r.height)=="number"?`${(o=d.chatInputContainerStyle)==null?void 0:o.height}px`:((i=d.chatInputContainerStyle)==null?void 0:i.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((s=d.chatWindowStyle)==null?void 0:s.width)=="number"?`${(A=d.chatWindowStyle)==null?void 0:A.width}px`:((a=d.chatWindowStyle)==null?void 0:a.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((l=d.chatWindowStyle)==null?void 0:l.width)=="number"?`${(c=d.chatWindowStyle)==null?void 0:c.width}px`:((u=d.chatWindowStyle)==null?void 0:u.width)??"375px"} - 50px)`,...d.toastPromptContainerStyle};return _("div",{className:"rcb-toast-prompt-container",style:h,children:p.map(m=>_(Yl,{id:m.id,content:m.content,timeout:m.timeout},m.id))})},ia=({file:e,fileType:t,fileUrl:n})=>{var r,o,i;const{settings:s}=ne(),{styles:A}=de(),a={backgroundColor:(r=s.general)==null?void 0:r.primaryColor,maxWidth:(o=s.userBubble)!=null&&o.showAvatar?"65%":"70%",...A.mediaDisplayContainerStyle};return _(Ae,{children:n?_(Ae,{children:[t==="image"&&n&&_("div",{style:a,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:_("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),t==="video"&&n&&_("div",{style:a,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:_("video",{controls:!0,className:"rcb-media-display-video",children:[_("source",{src:n,type:e.type}),"Your browser does not support the video tag."]})}),t==="audio"&&n&&_("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(i=s.userBubble)!=null&&i.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[_("source",{src:n,type:e.type}),"Your browser does not support the audio tag."]})]}):_(Ae,{})})},aa=async e=>{if(!e)return{fileType:null,fileUrl:null};const t=e.type.split("/")[0];if(!["image","video","audio"].includes(t))return{fileType:null,fileUrl:null};try{return{fileType:t,fileUrl:await new Promise((n,r)=>{const o=new FileReader;o.onload=()=>n(o.result),o.onerror=()=>r(new Error("File reading failed")),o.readAsDataURL(e)})}}catch(n){return console.error(n),{fileType:null,fileUrl:null}}},Vl=()=>{var e,t,n,r,o,i;const{settings:s}=ne(),{styles:A}=de(),{injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d}=kt(),{getCurrPath:p,getPrevPath:h,goToPath:m,blockAllowsAttachment:f}=Mn(),{flowRef:v,inputRef:y}=we(),g=v.current,{showToast:x,dismissToast:k}=Ft(),{dispatchRcbEvent:E}=Xe(),{toggleChatWindow:C}=Re(),{setTextAreaValue:I}=Pt(),{handleSubmitText:S}=zt(),P={cursor:`url("${(e=s.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.fileAttachmentButtonStyle,...A.fileAttachmentButtonDisabledStyle},D={backgroundImage:`url(${(t=s.fileAttachment)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle},B={backgroundImage:`url(${(n=s.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle,...A.fileAttachmentIconDisabledStyle};return _("label",{"aria-label":((r=s.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:f?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:f?{...A.fileAttachmentButtonStyle}:P,children:[_("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async R=>{var N,Q,z,M;const U=R.target.files;if(!U)return;const b=Array.from(U);if(R.target.value="",(N=s.event)!=null&&N.rcbUserUploadFile&&(await E(j.USER_UPLOAD_FILE,{files:b})).defaultPrevented)return;const re=p();if(!re)return;const w=g[re];if(!w)return;const $=w.file;if($!=null){const F=[];for(let H=0;H<b.length;H++){if(F.push(b[H].name),(Q=s.fileAttachment)==null||!Q.showMediaDisplay)continue;const Y=await aa(b[H]);!Y.fileType||!Y.fileUrl||await a(_(ia,{file:b[H],fileType:Y.fileType,fileUrl:Y.fileUrl}),"USER")}await S("📄 "+F.join(", "),(z=s.fileAttachment)==null?void 0:z.sendFileName),await $({userInput:(M=y.current)==null?void 0:M.value,prevPath:h(),currPath:p(),goToPath:m,setTextAreaValue:I,injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d,toggleChatWindow:C,showToast:x,dismissToast:k,files:b})}},multiple:(o=s.fileAttachment)==null?void 0:o.multiple,accept:(i=s.fileAttachment)==null?void 0:i.accept,disabled:!f}),(()=>{var R,N;const Q=f?(R=s.fileAttachment)==null?void 0:R.icon:(N=s.fileAttachment)==null?void 0:N.iconDisabled;return Q&&typeof Q!="string"?Q&&_("span",{className:f?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:_(Q,{style:f?D:B})}):_("span",{className:f?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:f?D:B})})()]})},Kl=()=>{var e,t,n,r,o,i;const{settings:s}=ne(),{styles:A}=de(),{syncedTextAreaDisabledRef:a}=Ee(),{inputRef:l}=we(),{textAreaDisabled:c,setTextAreaValue:u}=Pt(),d=ae(null),p=ae(null),[h,m]=J(!1),f={cursor:`url("${(e=s.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.emojiButtonStyle,...A.emojiButtonDisabledStyle},v={backgroundImage:`url(${(t=s.emoji)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.emojiIconStyle},y={backgroundImage:`url(${(n=s.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.emojiIconStyle,...A.emojiIconDisabledStyle};return Z(()=>{const g=k=>{const E=k.composedPath();d.current&&!E.includes(d.current)&&p.current&&!E.includes(p.current)&&m(!1)},x=()=>{(()=>{if(d.current&&p.current){const k=p.current.getBoundingClientRect(),E=d.current.offsetHeight,C=k.top-E-8;d.current.style.left=`${k.left}px`,d.current.style.top=`${C}px`}})()};return document.addEventListener("mousedown",g),window.addEventListener("resize",x),()=>{document.removeEventListener("mousedown",g),window.removeEventListener("resize",x)}},[]),_(Ae,{children:[_("div",{"aria-label":((r=s.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:p,className:c?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:c?f:{...A.emojiButtonStyle},onMouseDown:g=>{g.preventDefault(),a.current?m(!1):m(x=>!x)},children:(()=>{var g,x;const k=c?(g=s.emoji)==null?void 0:g.iconDisabled:(x=s.emoji)==null?void 0:x.icon;return k&&typeof k!="string"?k&&_("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:_(k,{style:c?y:v})}):_("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:c?y:v})})()}),h&&_("div",{className:"rcb-emoji-button-popup",ref:d,children:(i=(o=s.emoji)==null?void 0:o.list)==null?void 0:i.map((g,x)=>_("span",{className:"rcb-emoji",onMouseDown:k=>((E,C)=>{E.preventDefault(),l.current&&(u(l.current.value+C),setTimeout(()=>{const I=l.current;if(I){I.focus();const S=I.value.length;I.setSelectionRange(S,S)}},50)),m(!1)})(k,g),children:g},x))})]})},$l=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{audioToggledOn:i,toggleAudio:s}=na(),A={backgroundImage:`url(${(e=r.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},a={backgroundImage:`url(${(t=r.audio)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return _("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async l=>{l.preventDefault(),await s()},style:i?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var l,c;const u=i?(l=r.audio)==null?void 0:l.icon:(c=r.audio)==null?void 0:c.iconDisabled;return u&&typeof u!="string"?u&&_("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:_(u,{style:i?A:a,"data-testid":"rcb-audio-icon-svg"})}):_("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?A:a})})()})},Jl=()=>{var e,t;const{settings:n}=ne(),{styles:r}=de(),{toggleChatWindow:o}=Re(),i={backgroundImage:`url(${(e=n.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return _("div",{"aria-label":((t=n.ariaLabel)==null?void 0:t.closeChatButton)??"close chat",role:"button",onMouseDown:s=>{s.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var s;const A=(s=n.header)==null?void 0:s.closeChatIcon;return A&&typeof A!="string"?A&&_("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:_(A,{style:i})}):_("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},Zl=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{notificationsToggledOn:i,toggleNotifications:s}=(()=>{const{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}=Sr();return{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}})(),A={backgroundImage:`url(${(e=r.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},a={backgroundImage:`url(${(t=r.notification)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return _("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async l=>{l.preventDefault(),await s()},style:i?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var l,c;const u=i?(l=r.notification)==null?void 0:l.icon:(c=r.notification)==null?void 0:c.iconDisabled;return u&&typeof u!="string"?u&&_("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:_(u,{style:i?A:a,"data-testid":"rcb-notification-icon-svg"})}):_("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?A:a})})()})},ec=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{injectMessage:i}=kt(),{inputRef:s}=we(),{voiceToggledOn:A,toggleVoice:a}=Mr(),{setInputLength:l,setTextAreaValue:c,textAreaDisabled:u}=Pt(),{handleSubmitText:d}=zt(),p=ae([]),[h,m]=J(!1);Z(()=>{var x;(x=r.voice)!=null&&x.sendAsAudio?(g(),p.current=[]):d()},[h]),Z(()=>{A?((x,k,E,C,I,S,P)=>{var D;(D=x.voice)!=null&&D.sendAsAudio?Fl(E,S):Ul(x,k,E,C,I,P)})(r,a,y,c,l,p,s):Tr()},[A]);const f={backgroundImage:`url(${(e=r.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},v={backgroundImage:`url(${(t=r.voice)==null?void 0:t.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},y=()=>{m(x=>!x)},g=async()=>{const x=new Blob(p.current,{type:"audio/wav"}),k=new File([x],"voice-input.wav",{type:"audio/wav"}),E=await aa(k);!E.fileType||!E.fileUrl||await i(_(ia,{file:k,fileType:E.fileType,fileUrl:E.fileUrl}),"USER")};return _("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async x=>{x.preventDefault(),!u&&await a()},style:A&&!u?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:A&&!u?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var x,k;const E=A?(x=r.voice)==null?void 0:x.icon:(k=r.voice)==null?void 0:k.iconDisabled;return E&&typeof E!="string"?E&&_("span",{className:"rcb-voice-icon "+(A&&!u?"on":""),children:_(E,{style:A&&!u?f:v})}):_("span",{className:"rcb-voice-icon"+(A&&!u?"-on":""),"data-testid":"rcb-voice-icon",style:A&&!u?f:v})})()})},tc=()=>{var e,t,n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),{textAreaDisabled:c}=Ee(),[u,d]=J(!1),{handleSubmitText:p}=zt(),h={backgroundColor:(e=a.general)==null?void 0:e.primaryColor,...l.sendButtonStyle},m={cursor:`url("${(t=a.general)==null?void 0:t.actionDisabledIcon}"), auto`,backgroundColor:(n=a.general)==null?void 0:n.primaryColor,...l.sendButtonStyle,...l.sendButtonDisabledStyle},f={backgroundColor:(r=a.general)==null?void 0:r.secondaryColor,...l.sendButtonStyle,...l.sendButtonHoveredStyle},v={backgroundImage:`url(${(o=a.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle},y={backgroundImage:`url(${(i=a.chatInput)==null?void 0:i.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconDisabledStyle},g={backgroundImage:`url(${(s=a.chatInput)==null?void 0:s.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconHoveredStyle};return _("div",{"aria-label":((A=a.ariaLabel)==null?void 0:A.sendButton)??"send message",role:"button",onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},onMouseDown:async x=>{x==null||x.preventDefault(),!c&&await p()},style:c?m:u?f:h,className:"rcb-send-button",children:(()=>{var x;const k=(x=a.chatInput)==null?void 0:x.sendButtonIcon;return k&&typeof k!="string"?k&&_("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:_(k,{style:c?y:u?g:v})}):_("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:c?y:u?g:v})})()})},nc=(e,t)=>{var n,r,o,i,s,A,a,l,c;const u={[ye.AUDIO_BUTTON]:(n=e.audio)==null?void 0:n.disabled,[ye.CLOSE_CHAT_BUTTON]:(r=e.general)==null?void 0:r.embedded,[ye.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[ye.FILE_ATTACHMENT_BUTTON]:(i=e.fileAttachment)==null?void 0:i.disabled,[ye.NOTIFICATION_BUTTON]:(s=e.notification)==null?void 0:s.disabled,[ye.SEND_MESSAGE_BUTTON]:!1,[ye.VOICE_MESSAGE_BUTTON]:(A=e.voice)==null?void 0:A.disabled},d={},p=h=>h?h.map(m=>{if(typeof m=="string"){if((f=>Object.values(ye).includes(f))(m)&&!u[m]){if(d[m])return d[m];const f=t[m];if(typeof f=="function"){const v=f();return d[m]=v,v}return null}return null}return m}).filter(m=>m!==null):[];return{header:p((a=e.header)==null?void 0:a.buttons),chatInput:p((l=e.chatInput)==null?void 0:l.buttons),footer:p((c=e.footer)==null?void 0:c.buttons)}},rc=()=>{const{settings:e}=ne(),t=be(()=>({[ye.CLOSE_CHAT_BUTTON]:()=>_(Jl,{}),[ye.AUDIO_BUTTON]:()=>_($l,{}),[ye.NOTIFICATION_BUTTON]:()=>_(Zl,{}),[ye.EMOJI_PICKER_BUTTON]:()=>_(Kl,{}),[ye.FILE_ATTACHMENT_BUTTON]:()=>_(Vl,{}),[ye.SEND_MESSAGE_BUTTON]:()=>_(tc,{}),[ye.VOICE_MESSAGE_BUTTON]:()=>_(ec,{})}),[]),{header:n,chatInput:r,footer:o}=be(()=>nc(e,t),[e,t]);return{headerButtons:be(()=>n,[n]),chatInputButtons:be(()=>r,[r]),footerButtons:be(()=>o,[o])}},Or=()=>{const{settings:e}=ne(),{styles:t}=de(),{setSyncedMessages:n,syncedMessagesRef:r}=kr(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,setHasChatHistoryLoaded:A}=Ee(),{chatBodyRef:a}=we(),{dispatchRcbEvent:l}=Xe(),c=W(async()=>{var u,d;const p=Cr();if(!p||(u=e.event)!=null&&u.rcbLoadChatHistory&&(await l(j.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const h=((d=a.current)==null?void 0:d.scrollHeight)??0;((m,f,v,y,g,x,k,E,C)=>{var I;if(Ji=!0,v!=null)try{const S=ht(_(Il,{}),"SYSTEM"),P=g.current.slice(1);y([S,...P]);const D=v.map(B=>{if(B.type==="object"){const R=ta(B.content,m,f);return{...B,content:R}}return B});setTimeout(()=>{var B;const R=g.current.slice(1);let N=(B=m.chatHistory)!=null&&B.autoLoad?ht(_(Ae,{}),"SYSTEM"):ht(_(Bl,{}),"SYSTEM");y([...D,N,...R]),C(!0)},500),setTimeout(()=>{if(!x.current)return;const{scrollHeight:B}=x.current,R=B-k;x.current.scrollTop+=R,E(!1)},510)}catch{gt.removeItem((I=m.chatHistory)==null?void 0:I.storageKey)}})(e,t,p,n,r,a,h,i,A)},[e,t,l,r,a,i,A]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,showChatHistory:c}},oc=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{showChatHistory:i}=Or(),[s,A]=J(!1),a={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return _("div",{className:"rcb-view-history-container",children:_("div",{onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},style:s?a:{...o.chatHistoryButtonStyle},onMouseDown:l=>{l.preventDefault(),i()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:_("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},ic=()=>{var e,t,n,r;const o=On(),{settings:i}=ne(),{replaceMessages:s}=kt(),{isBotTyping:A,isChatWindowOpen:a,setUnreadCount:l,setSyncedIsChatWindowOpen:c,setSyncedTextAreaDisabled:u,setSyncedAudioToggledOn:d,setSyncedVoiceToggledOn:p,setSyncedIsScrolling:h,syncedIsScrollingRef:m,syncedIsChatWindowOpenRef:f}=Ee(),{chatBodyRef:v}=we(),{viewportHeight:y,setViewportHeight:g,setViewportWidth:x,scrollToBottom:k}=Re(),{setUpNotifications:E}=Sr(),{handleFirstInteraction:C}=(()=>{var D;const{settings:B}=ne(),{hasInteractedPage:R,setHasInteractedPage:N,hasFlowStarted:Q,setHasFlowStarted:z}=Ee(),M=W(()=>{var U;if(N(!0),!Q&&((U=B.general)==null?void 0:U.flowStartTrigger)==="ON_PAGE_INTERACT"&&z(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const b=new window.SpeechSynthesisUtterance;b.text="",b.onend=()=>{window.removeEventListener("click",M),window.removeEventListener("keydown",M),window.removeEventListener("touchstart",M)},window.speechSynthesis.speak(b)},[Q,(D=B.general)==null?void 0:D.flowStartTrigger]);return{hasInteractedPage:R,handleFirstInteraction:M}})(),{showChatHistory:I}=Or(),S=ae(0),P=ae(!1);Z(()=>(window.addEventListener("click",C),window.addEventListener("keydown",C),window.addEventListener("touchstart",C),()=>{window.removeEventListener("click",C),window.removeEventListener("keydown",C),window.removeEventListener("touchstart",C)}),[]),Z(()=>{const D=v.current;if(!D)return;const B=()=>{P.current||(P.current=!0,requestAnimationFrame(()=>{var R,N;if(!D)return;const{scrollTop:Q,clientHeight:z,scrollHeight:M}=D,U=Q+z<M-(((R=i.chatWindow)==null?void 0:R.messagePromptOffset)??30);h(U),m.current=U,U||(Q+z>=M-1&&(D.scrollTop=M-z-1),(f.current||(N=i.general)!=null&&N.embedded)&&l(0)),P.current=!1}))};return D.addEventListener("wheel",B,{passive:!0}),D.addEventListener("touchmove",B,{passive:!0}),()=>{D.removeEventListener("wheel",B),D.removeEventListener("touchmove",B)}},[]),Z(()=>{var D,B,R;u((D=i.chatInput)==null?void 0:D.disabled),c((B=i.chatWindow)==null?void 0:B.defaultOpen),d((R=i.audio)==null?void 0:R.defaultToggledOn),setTimeout(()=>{var N;p((N=i.voice)==null?void 0:N.defaultToggledOn)},1)},[]),Z(()=>{var D;(D=i.notification)!=null&&D.disabled||E()},[(e=i.notification)==null?void 0:e.disabled]),Z(()=>{!m.current&&v!=null&&v.current&&k()},[A]),Z(()=>{var D,B;if((D=i.chatHistory)!=null&&D.disabled)gt&&gt.removeItem(In);else if(Dr(i),Cr().length>0){const R=ht(_(oc,{}),"SYSTEM");s([R]),(B=i.chatHistory)!=null&&B.autoLoad&&I()}},[(t=i.chatHistory)==null?void 0:t.storageKey,(n=i.chatHistory)==null?void 0:n.maxEntries,(r=i.chatHistory)==null?void 0:r.disabled]),Z(()=>{var D;o||(D=i.general)!=null&&D.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",B=>{if(!B.target)return;const{x:R,y:N,width:Q,height:z}=B.target.boundingRect;R==0&&N==0&&Q==0&&z==0?(setTimeout(()=>{var M;g((M=window.visualViewport)==null?void 0:M.height)},101),setTimeout(()=>{var M,U;y!=((M=window.visualViewport)==null?void 0:M.height)&&g((U=window.visualViewport)==null?void 0:U.height)},1001)):setTimeout(()=>{var M;g(((M=window.visualViewport)==null?void 0:M.height)-z)},101)}))},[o]),Z(()=>{var D,B,R,N;if(o)return;a&&(g((D=window.visualViewport)==null?void 0:D.height),x((B=window.visualViewport)==null?void 0:B.width));const Q=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),z=()=>S.current=window.scrollY,M=()=>{var b,re;g((b=window.visualViewport)==null?void 0:b.height),x((re=window.visualViewport)==null?void 0:re.width)},U=()=>{var b;window.removeEventListener("scroll",Q),window.removeEventListener("scroll",z),(b=window.visualViewport)==null||b.removeEventListener("resize",M)};return a?(U(),document.body.style.position="fixed",window.addEventListener("scroll",Q),(R=window.visualViewport)==null||R.addEventListener("resize",M)):(document.body.style.position="static",U(),window.scrollTo({top:S.current,left:0,behavior:"auto"}),window.addEventListener("scroll",z),(N=window.visualViewport)==null||N.removeEventListener("resize",M)),U},[a,o])},ac="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",sc="2592000",sa="RCB_THEME_CACHE_DATA",Aa=async(e,t)=>{const{id:n,version:r,baseUrl:o=ac,cacheDuration:i=sc}=t,s=r||await(async(v,y)=>{const g=`${y}/${v}/meta.json`;try{const x=await fetch(g);return x.ok?(await x.json()).version:(console.error(`Failed to fetch meta.json from ${g}`),null)}catch(x){return console.error(`Failed to fetch meta.json from ${g}`,x),null}})(n,o);if(!s)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const A=((v,y,g)=>{const x=localStorage.getItem(`${sa}_${v}_${y}`);if(!x)return null;try{const k=JSON.parse(x),E=new Date().getTime(),C=Math.floor(E/1e3);return k.cacheDate+g>=C?k:null}catch(k){return console.error(`Unable to fetch cache for ${v}`,k),null}})(n,s,i);if(A){const v=la(e,A.cssStylesText);return{settings:A.settings,inlineStyles:A.inlineStyles,cssStylesText:v}}const a=`${o}/${n}/${s}/styles.css`,l=`${o}/${n}/${s}/settings.json`,c=`${o}/${n}/${s}/styles.json`;let u="";const d=await fetch(a);d.ok?u=await d.text():console.info(`Could not fetch styles.css from ${a}`);const p=await fetch(l);let h={};p.ok?h=await p.json():console.info(`Could not fetch settings.json from ${l}`);const m=await fetch(c);let f={};return m.ok?f=await m.json():console.info(`Could not fetch styles.json from ${c}`),((v,y,g,x,k)=>{const E=new Date().getTime(),C={settings:g,inlineStyles:x,cssStylesText:k,cacheDate:Math.floor(E/1e3)};localStorage.setItem(`${sa}_${v}_${y}`,JSON.stringify(C))})(n,s,h,f,u),{settings:h,inlineStyles:f,cssStylesText:la(e,u)}},la=(e,t)=>t.split(new RegExp("(?<=})")).map(n=>{const r=n.trim();return r.startsWith("@import")||r.startsWith("@keyframes")||r.startsWith("@media")?r:r?`#${e} ${r}`:""}).join(`
1
+ var AccessQABot=function(En){"use strict";var $t,q,Io,xt,To,Qo,Mo,Oo,tr,nr,rr,No,Jt={},Lo=[],rA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zt=Array.isArray;function Je(e,t){for(var n in t)e[n]=t[n];return e}function or(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ie(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?$t.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return en(e,s,r,o,null)}function en(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Io,__i:-1,__u:0};return o==null&&q.vnode!=null&&q.vnode(i),i}function Ro(){return{current:null}}function Ae(e){return e.children}function Ze(e,t){this.props=e,this.context=t}function Ot(e,t){if(t==null)return e.__?Ot(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Ot(e):null}function Ho(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ho(e)}}function ir(e){(!e.__d&&(e.__d=!0)&&xt.push(e)&&!_n.__r++||To!=q.debounceRendering)&&((To=q.debounceRendering)||Qo)(_n)}function _n(){for(var e,t,n,r,o,i,s,A=1;xt.length;)xt.length>A&&xt.sort(Mo),e=xt.shift(),A=xt.length,e.__d&&(n=void 0,r=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=Je({},r)).__v=r.__v+1,q.vnode&&q.vnode(n),ar(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Ot(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Wo(i,n,s),r.__e=r.__=null,n.__e!=o&&Ho(n)));_n.__r=0}function Uo(e,t,n,r,o,i,s,A,a,l,c){var u,d,p,h,m,f,v,y=r&&r.__k||Lo,g=t.length;for(a=oA(n,t,y,a,g),u=0;u<g;u++)(p=n.__k[u])!=null&&(d=p.__i==-1?Jt:y[p.__i]||Jt,p.__i=u,f=ar(e,p,d,o,i,s,A,a,l,c),h=p.__e,p.ref&&d.ref!=p.ref&&(d.ref&&Ar(d.ref,null,p),c.push(p.ref,p.__c||h,p)),m==null&&h!=null&&(m=h),(v=!!(4&p.__u))||d.__k===p.__k?a=Fo(p,a,e,v):typeof p.type=="function"&&f!==void 0?a=f:h&&(a=h.nextSibling),p.__u&=-7);return n.__e=m,a}function oA(e,t,n,r,o){var i,s,A,a,l,c=n.length,u=c,d=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(a=i+d,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?en(null,s,null,null,null):Zt(s)?en(Ae,{children:s},null,null,null):s.constructor==null&&s.__b>0?en(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,A=null,(l=s.__i=iA(s,n,a,u))!=-1&&(u--,(A=n[l])&&(A.__u|=2)),A==null||A.__v==null?(l==-1&&(o>c?d--:o<c&&d++),typeof s.type!="function"&&(s.__u|=4)):l!=a&&(l==a-1?d--:l==a+1?d++:(l>a?d--:d++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<c;i++)(A=n[i])!=null&&!(2&A.__u)&&(A.__e==r&&(r=Ot(A)),Go(A,A));return r}function Fo(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Fo(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Ot(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function lt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Zt(e)?e.some(function(n){lt(n,t)}):t.push(e)),t}function iA(e,t,n,r){var o,i,s,A=e.key,a=e.type,l=t[n],c=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||c&&A==l.key&&a==l.type)return n;if(r>(c?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((l=t[s=o>=0?o--:i++])!=null&&!(2&l.__u)&&A==l.key&&a==l.type)return s}return-1}function zo(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||rA.test(t)?n:n+"px"}function kn(e,t,n,r,o){var i,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||zo(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||zo(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Oo,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=tr,e.addEventListener(t,i?rr:nr,i)):e.removeEventListener(t,i?rr:nr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function jo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=tr++;else if(t.t<n.u)return;return n(q.event?q.event(t):t)}}}function ar(e,t,n,r,o,i,s,A,a,l){var c,u,d,p,h,m,f,v,y,g,x,k,E,C,I,S,P,D=t.type;if(t.constructor!=null)return null;128&n.__u&&(a=!!(32&n.__u),i=[A=t.__e=n.__e]),(c=q.__b)&&c(t);e:if(typeof D=="function")try{if(v=t.props,y="prototype"in D&&D.prototype.render,g=(c=D.contextType)&&r[c.__c],x=c?g?g.props.value:c.__:r,n.__c?f=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new D(v,x):(t.__c=u=new Ze(v,x),u.constructor=D,u.render=sA),g&&g.sub(u),u.props=v,u.state||(u.state={}),u.context=x,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&D.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Je({},u.__s)),Je(u.__s,D.getDerivedStateFromProps(v,u.__s))),p=u.props,h=u.state,u.__v=t,d)y&&D.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&D.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,x),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,x)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(B){B&&(B.__=t)}),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,x),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,h,m)})}if(u.context=x,u.props=v,u.__P=e,u.__e=!1,E=q.__r,C=0,y){for(u.state=u.__s,u.__d=!1,E&&E(t),c=u.render(u.props,u.state,u.context),I=0;I<u._sb.length;I++)u.__h.push(u._sb[I]);u._sb=[]}else do u.__d=!1,E&&E(t),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++C<25);u.state=u.__s,u.getChildContext!=null&&(r=Je(Je({},r),u.getChildContext())),y&&!d&&u.getSnapshotBeforeUpdate!=null&&(m=u.getSnapshotBeforeUpdate(p,h)),S=c,c!=null&&c.type===Ae&&c.key==null&&(S=qo(c.props.children)),A=Uo(e,Zt(S)?S:[S],t,n,r,o,i,s,A,a,l),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),f&&(u.__E=u.__=null)}catch(B){if(t.__v=null,a||i!=null)if(B.then){for(t.__u|=a?160:128;A&&A.nodeType==8&&A.nextSibling;)A=A.nextSibling;i[i.indexOf(A)]=null,t.__e=A}else{for(P=i.length;P--;)or(i[P]);sr(t)}else t.__e=n.__e,t.__k=n.__k,B.then||sr(t);q.__e(B,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):A=t.__e=aA(n.__e,t,n,r,o,i,s,a,l);return(c=q.diffed)&&c(t),128&t.__u?void 0:A}function sr(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(sr)}function Wo(e,t,n){for(var r=0;r<n.length;r++)Ar(n[r],n[++r],n[++r]);q.__c&&q.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){q.__e(i,o.__v)}})}function qo(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Zt(e)?e.map(qo):Je({},e)}function aA(e,t,n,r,o,i,s,A,a){var l,c,u,d,p,h,m,f=n.props,v=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((p=i[l])&&"setAttribute"in p==!!y&&(y?p.localName==y:p.nodeType==3)){e=p,i[l]=null;break}}if(e==null){if(y==null)return document.createTextNode(v);e=document.createElementNS(o,y,v.is&&v),A&&(q.__m&&q.__m(t,i),A=!1),i=null}if(y==null)f===v||A&&e.data==v||(e.data=v);else{if(i=i&&$t.call(e.childNodes),f=n.props||Jt,!A&&i!=null)for(f={},l=0;l<e.attributes.length;l++)f[(p=e.attributes[l]).name]=p.value;for(l in f)if(p=f[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=p;else if(!(l in v)){if(l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v)continue;kn(e,l,null,p,o)}}for(l in v)p=v[l],l=="children"?d=p:l=="dangerouslySetInnerHTML"?c=p:l=="value"?h=p:l=="checked"?m=p:A&&typeof p!="function"||f[l]===p||kn(e,l,p,f[l],o);if(c)A||u&&(c.__html==u.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(u&&(e.innerHTML=""),Uo(t.type=="template"?e.content:e,Zt(d)?d:[d],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Ot(n,0),A,a),i!=null)for(l=i.length;l--;)or(i[l]);A||(l="value",y=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[l]||y=="progress"&&!h||y=="option"&&h!=f[l])&&kn(e,l,h,f[l],o),l="checked",m!=null&&m!=e[l]&&kn(e,l,m,f[l],o))}return e}function Ar(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){q.__e(o,n)}}function Go(e,t,n){var r,o;if(q.unmount&&q.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Ar(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){q.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Go(r[o],t,n||typeof e.type!="function");n||or(e.__e),e.__c=e.__=e.__e=void 0}function sA(e,t,n){return this.constructor(e,n)}function tn(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),q.__&&q.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],ar(t,e=(!r&&n||t).__k=ie(Ae,null,[e]),o||Jt,Jt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?$t.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Wo(i,e,s)}function Yo(e,t){tn(e,t,Yo)}function AA(e,t,n){var r,o,i,s,A=Je({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:A[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(A.children=arguments.length>3?$t.call(arguments,2):n),en(e.type,A,r||e.key,o||e.ref,null)}function Ye(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,ir(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+No++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}$t=Lo.slice,q={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(A){e=A}throw e}},Io=0,Ze.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Je({},this.state),typeof e=="function"&&(e=e(Je({},n),this.props)),e&&Je(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ir(this))},Ze.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ir(this))},Ze.prototype.render=Ae,xt=[],Qo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mo=function(e,t){return e.__v.__b-t.__v.__b},_n.__r=0,Oo=/(PointerCapture)$|Capture$/i,tr=0,nr=jo(!1),rr=jo(!0),No=0;var pt,ge,lr,Xo,Nt=0,Vo=[],me=q,Ko=me.__b,$o=me.__r,Jo=me.diffed,Zo=me.__c,ei=me.unmount,ti=me.__;function Lt(e,t){me.__h&&me.__h(ge,e,Nt||t),Nt=0;var n=ge.__H||(ge.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function J(e){return Nt=1,cr(ii,e)}function cr(e,t,n){var r=Lt(pt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ii(void 0,t),function(A){var a=r.__N?r.__N[0]:r.__[0],l=r.t(a,A);a!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=ge,!ge.__f)){var o=function(A,a,l){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(d){return!!d.__c});if(c.every(function(d){return!d.__N}))return!i||i.call(this,A,a,l);var u=r.__c.props!==A;return c.forEach(function(d){if(d.__N){var p=d.__[0];d.__=d.__N,d.__N=void 0,p!==d.__[0]&&(u=!0)}}),i&&i.call(this,A,a,l)||u};ge.__f=!0;var i=ge.shouldComponentUpdate,s=ge.componentWillUpdate;ge.componentWillUpdate=function(A,a,l){if(this.__e){var c=i;i=void 0,o(A,a,l),i=c}s&&s.call(this,A,a,l)},ge.shouldComponentUpdate=o}return r.__N||r.__}function Z(e,t){var n=Lt(pt++,3);!me.__s&&dr(n.__H,t)&&(n.__=e,n.u=t,ge.__H.__h.push(n))}function nn(e,t){var n=Lt(pt++,4);!me.__s&&dr(n.__H,t)&&(n.__=e,n.u=t,ge.__h.push(n))}function ae(e){return Nt=5,be(function(){return{current:e}},[])}function Pn(e,t,n){Nt=6,nn(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function be(e,t){var n=Lt(pt++,7);return dr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function W(e,t){return Nt=8,be(function(){return e},t)}function ze(e){var t=ge.context[e.__c],n=Lt(pt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ge)),t.props.value):e.__}function ni(e,t){me.useDebugValue&&me.useDebugValue(t?t(e):e)}function ri(){var e=Lt(pt++,11);if(!e.__){for(var t=ge.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function lA(){for(var e;e=Vo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Cn),e.__H.__h.forEach(ur),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}me.__b=function(e){ge=null,Ko&&Ko(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ti&&ti(e,t)},me.__r=function(e){$o&&$o(e),pt=0;var t=(ge=e.__c).__H;t&&(lr===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(Cn),t.__h.forEach(ur),t.__h=[],pt=0)),lr=ge},me.diffed=function(e){Jo&&Jo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Vo.push(t)!==1&&Xo===me.requestAnimationFrame||((Xo=me.requestAnimationFrame)||cA)(lA)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),lr=ge=null},me.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Cn),n.__h=n.__h.filter(function(r){return!r.__||ur(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],me.__e(r,n.__v)}}),Zo&&Zo(e,t)},me.unmount=function(e){ei&&ei(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Cn(r)}catch(o){t=o}}),n.__H=void 0,t&&me.__e(t,n.__v))};var oi=typeof requestAnimationFrame=="function";function cA(e){var t,n=function(){clearTimeout(r),oi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);oi&&(t=requestAnimationFrame(n))}function Cn(e){var t=ge,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ge=t}function ur(e){var t=ge;e.__c=e.__(),ge=t}function dr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ii(e,t){return typeof t=="function"?t(e):t}function ai(e,t){for(var n in t)e[n]=t[n];return e}function pr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function si(e,t){var n=t(),r=J({t:{__:n,u:t}}),o=r[0].t,i=r[1];return nn(function(){o.__=n,o.u=t,fr(o)&&i({t:o})},[e,n,t]),Z(function(){return fr(o)&&i({t:o}),e(function(){fr(o)&&i({t:o})})},[e]),n}function fr(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Ai(e){e()}function li(e){return e}function ci(){return[!1,Ai]}var ui=nn;function hr(e,t){this.props=e,this.context=t}function uA(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:pr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,ie(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(hr.prototype=new Ze).isPureReactComponent=!0,hr.prototype.shouldComponentUpdate=function(e,t){return pr(this.props,e)||pr(this.state,t)};var di=q.__b;q.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),di&&di(e)};var dA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ie(e){function t(n){var r=ai({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=dA,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pi=function(e,t){return e==null?null:lt(lt(e).map(t))},pA={map:pi,forEach:pi,count:function(e){return e?lt(e).length:0},only:function(e){var t=lt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:lt},fA=q.__e;q.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}fA(e,t,n,r)};var fi=q.unmount;function hi(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=ai({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return hi(r,t,n)})),e}function gi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return gi(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Dn(){this.__u=0,this.o=null,this.__b=null}function mi(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function hA(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return ie(n,i)}return o.displayName="Lazy",o.__f=!0,o}function rn(){this.i=null,this.l=null}q.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),fi&&fi(e)},(Dn.prototype=new Ze).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=mi(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(A):A())};n.__R=s;var A=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=gi(a,a.__c.__P,a.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Dn.prototype.componentWillUnmount=function(){this.o=[]},Dn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=hi(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&ie(Ae,null,e.fallback);return o&&(o.__u&=-33),[ie(Ae,null,t.__a?null:e.children),o]};var yi=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function gA(e){return this.getChildContext=function(){return e.context},e.children}function mA(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){tn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}tn(ie(gA,{context:t.context},e.__v),t.v)}function yA(e,t){var n=ie(mA,{__v:e,h:t});return n.containerInfo=t,n}(rn.prototype=new Ze).__a=function(e){var t=this,n=mi(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),yi(t,e,r)):o()};n?n(i):i()}},rn.prototype.render=function(e){this.i=null,this.l=new Map;var t=lt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},rn.prototype.componentDidUpdate=rn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){yi(e,n,t)})};var vi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vA=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,bA=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,wA=/[A-Z0-9]/g,xA=typeof document<"u",EA=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function bi(e,t,n){return t.__k==null&&(t.textContent=""),tn(e,t),typeof n=="function"&&n(),e?e.__c:null}function _A(e,t,n){return Yo(e,t),typeof n=="function"&&n(),e?e.__c:null}Ze.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ze.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var wi=q.event;function kA(){}function PA(){return this.cancelBubble}function CA(){return this.defaultPrevented}q.event=function(e){return wi&&(e=wi(e)),e.persist=kA,e.isPropagationStopped=PA,e.isDefaultPrevented=CA,e.nativeEvent=e};var gr,DA={enumerable:!1,configurable:!0,get:function(){return this.class}},xi=q.vnode;q.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var A=n[s];if(!(s==="value"&&"defaultValue"in n&&A==null||xA&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&A===!0?A="":a==="translate"&&A==="no"?A=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||EA(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":bA.test(s)&&(s=a):a=s="oninput":i&&vA.test(s)?s=s.replace(wA,"-$&").toLowerCase():A===null&&(A=void 0),a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=A}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=lt(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=lt(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",DA)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=vi,xi&&xi(e)};var Ei=q.__r;q.__r=function(e){Ei&&Ei(e),gr=e.__c};var _i=q.diffed;q.diffed=function(e){_i&&_i(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),gr=null};var SA={ReactCurrentDispatcher:{current:{readContext:function(e){return gr.__n[e.__c].props.value},useCallback:W,useContext:ze,useDebugValue:ni,useDeferredValue:li,useEffect:Z,useId:ri,useImperativeHandle:Pn,useInsertionEffect:ui,useLayoutEffect:nn,useMemo:be,useReducer:cr,useRef:ae,useState:J,useSyncExternalStore:si,useTransition:ci}}};function BA(e){return ie.bind(null,e)}function Et(e){return!!e&&e.$$typeof===vi}function IA(e){return Et(e)&&e.type===Ae}function TA(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function QA(e){return Et(e)?AA.apply(null,arguments):e}function ki(e){return!!e.__k&&(tn(null,e),!0)}function MA(e){return e&&(e.base||e.nodeType===1&&e)||null}var OA=function(e,t){return e(t)},NA=function(e,t){return e(t)},LA=Ae,RA=Et,R={useState:J,useId:ri,useReducer:cr,useEffect:Z,useLayoutEffect:nn,useInsertionEffect:ui,useTransition:ci,useDeferredValue:li,useSyncExternalStore:si,startTransition:Ai,useRef:ae,useImperativeHandle:Pn,useMemo:be,useCallback:W,useContext:ze,useDebugValue:ni,version:"18.3.1",Children:pA,render:bi,hydrate:_A,unmountComponentAtNode:ki,createPortal:yA,createElement:ie,createContext:Ye,createFactory:BA,cloneElement:QA,createRef:Ro,Fragment:Ae,isValidElement:Et,isElement:RA,isFragment:IA,isMemo:TA,findDOMNode:MA,Component:Ze,PureComponent:hr,memo:uA,forwardRef:Ie,flushSync:NA,unstable_batchedUpdates:OA,StrictMode:LA,Suspense:Dn,SuspenseList:rn,lazy:hA,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:SA},HA=0;function _(e,t,n,r,o,i){t||(t={});var s,A,a=t;if("ref"in a)for(A in a={},t)A=="ref"?s=t[A]:a[A]=t[A];var l={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--HA,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(A in s)a[A]===void 0&&(a[A]=s[A]);return q.vnode&&q.vnode(l),l}function UA(e){return{render:function(t){bi(t,e)},unmount:function(){ki(e)}}}var FA="diffed",Pi="__c",mr="__s",Rt="__c",Ci="__k",yr="__d",Ht="__s",Di=/[\s\n\\/='"\0<>]/,Si=/^(xlink|xmlns|xml)([A-Z])/,zA=/^(?:accessK|auto[A-Z]|cell|ch|col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|src[A-Z]|tabI|useM|item[A-Z])/,jA=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,WA=new Set(["draggable","spellcheck"]);function Bi(e){e.__g!==void 0?e.__g|=8:e[yr]=!0}function qA(e){e.__g!==void 0?e.__g&=-9:e[yr]=!1}function Ii(e){return e.__g!==void 0?!!(8&e.__g):e[yr]===!0}var GA=/["&<]/;function Sn(e){if(e.length===0||GA.test(e)===!1)return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 60:o="&lt;";break;default:continue}n!==t&&(r+=e.slice(t,n)),r+=o,t=n+1}return n!==t&&(r+=e.slice(t,n)),r}var Ti={},YA=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),XA=/[A-Z]/g;function VA(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:Ti[n]||(Ti[n]=n.replace(XA,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||YA.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function Qi(){this.__d=!0}function KA(e,t){return{__v:e,context:t,props:e.props,setState:Qi,forceUpdate:Qi,__d:!0,__h:new Array(0)}}var vr,_t,on,an,br={},Mi=[],Ut=Array.isArray,wr=Object.assign,Te="",xr="<!--$s-->",Er="<!--/$s-->";function Oi(e,t,n){var r=q[mr];q[mr]=!0,vr=q.__b,_t=q[FA],on=q.__r,an=q.unmount;var o=ie(Ae,null);o[Ci]=[e];try{var i=ft(e,t||br,!1,void 0,o,!1,n);return Ut(i)?i.join(Te):i}catch(s){throw s.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):s}finally{q[Pi]&&q[Pi](e,Mi),q[mr]=r,Mi.length=0}}function Ni(e,t){var n,r=e.type,o=!0;return e[Rt]?(o=!1,(n=e[Rt]).state=n[Ht]):n=new r(e.props,t),e[Rt]=n,n.__v=e,n.props=e.props,n.context=t,Bi(n),n.state==null&&(n.state=br),n[Ht]==null&&(n[Ht]=n.state),r.getDerivedStateFromProps?n.state=wr({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n[Ht]!==n.state?n[Ht]:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),on&&on(e),n.render(n.props,n.state,t)}function ft(e,t,n,r,o,i,s){if(e==null||e===!0||e===!1||e===Te)return Te;var A=typeof e;if(A!="object")return A=="function"?Te:A=="string"?Sn(e):e+Te;if(Ut(e)){var a,l=Te;o[Ci]=e;for(var c=e.length,u=0;u<c;u++){var d=e[u];if(d!=null&&typeof d!="boolean"){var p,h=ft(d,t,n,r,o,i,s);typeof h=="string"?l+=h:(a||(a=new Array(c)),l&&a.push(l),l=Te,Ut(h)?(p=a).push.apply(p,h):a.push(h))}}return a?(l&&a.push(l),a):l}if(e.constructor!==void 0)return Te;e.__=o,vr&&vr(e);var m=e.type,f=e.props;if(typeof m=="function"){var v,y,g,x=t;if(m===Ae){if("tpl"in f){for(var k=Te,E=0;E<f.tpl.length;E++)if(k+=f.tpl[E],f.exprs&&E<f.exprs.length){var C=f.exprs[E];if(C==null)continue;typeof C!="object"||C.constructor!==void 0&&!Ut(C)?k+=C:k+=ft(C,t,n,r,e,i,s)}return k}if("UNSTABLE_comment"in f)return"<!--"+Sn(f.UNSTABLE_comment)+"-->";y=f.children}else{if((v=m.contextType)!=null){var I=t[v.__c];x=I?I.props.value:v.__}var S=m.prototype&&typeof m.prototype.render=="function";if(S)y=Ni(e,x),g=e[Rt];else{e[Rt]=g=KA(e,x);for(var P=0;Ii(g)&&P++<25;){qA(g),on&&on(e);try{y=m.call(g,f,x)}catch(w){throw w}}Bi(g)}if(g.getChildContext!=null&&(t=wr({},t,g.getChildContext())),S&&q.errorBoundaries&&(m.getDerivedStateFromError||g.componentDidCatch)){y=y!=null&&y.type===Ae&&y.key==null&&y.props.tpl==null?y.props.children:y;try{return ft(y,t,n,r,e,i,!1)}catch(w){return m.getDerivedStateFromError&&(g[Ht]=m.getDerivedStateFromError(w)),g.componentDidCatch&&g.componentDidCatch(w,br),Ii(g)?(y=Ni(e,t),(g=e[Rt]).getChildContext!=null&&(t=wr({},t,g.getChildContext())),ft(y=y!=null&&y.type===Ae&&y.key==null&&y.props.tpl==null?y.props.children:y,t,n,r,e,i,s)):Te}finally{_t&&_t(e),an&&an(e)}}}y=y!=null&&y.type===Ae&&y.key==null&&y.props.tpl==null?y.props.children:y;try{var D=ft(y,t,n,r,e,i,s);return _t&&_t(e),q.unmount&&q.unmount(e),e._suspended?typeof D=="string"?xr+D+Er:Ut(D)?(D.unshift(xr),D.push(Er),D):D.then(function(w){return xr+w+Er}):D}catch(w){if(s&&s.onError){var B=s.onError(w,e,function($,F){return ft($,t,n,r,F,i,s)});if(B!==void 0)return B;var N=q.__e;return N&&N(w,e),Te}throw w}}var L,Q="<"+m,z=Te;for(var M in f){var U=f[M];if(typeof(U=JA(U)?U.value:U)!="function"||M==="class"||M==="className"){switch(M){case"children":L=U;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in f)continue;M="for";break;case"className":if("class"in f)continue;M="class";break;case"defaultChecked":M="checked";break;case"defaultSelected":M="selected";break;case"defaultValue":case"value":switch(M="value",m){case"textarea":L=U;continue;case"select":r=U;continue;case"option":r!=U||"selected"in f||(Q+=" selected")}break;case"dangerouslySetInnerHTML":z=U&&U.__html;continue;case"style":typeof U=="object"&&(U=VA(U));break;case"acceptCharset":M="accept-charset";break;case"httpEquiv":M="http-equiv";break;default:if(Si.test(M))M=M.replace(Si,"$1:$2").toLowerCase();else{if(Di.test(M))continue;M[4]!=="-"&&!WA.has(M)||U==null?n?jA.test(M)&&(M=M==="panose1"?"panose-1":M.replace(/([A-Z])/g,"-$1").toLowerCase()):zA.test(M)&&(M=M.toLowerCase()):U+=Te}}U!=null&&U!==!1&&(Q=U===!0||U===Te?Q+" "+M:Q+" "+M+'="'+(typeof U=="string"?Sn(U):U+Te)+'"')}}if(Di.test(m))throw new Error(m+" is not a valid HTML tag name in "+Q+">");if(z||(typeof L=="string"?z=Sn(L):L!=null&&L!==!1&&L!==!0&&(z=ft(L,t,m==="svg"||m!=="foreignObject"&&n,r,e,i,s))),_t&&_t(e),an&&an(e),!z&&$A.has(m))return Q+"/>";var b="</"+m+">",re=Q+">";return Ut(z)?[re].concat(z,[b]):typeof z!="string"?[re,z,b]:re+z+b}var $A=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function JA(e){return e!==null&&typeof e=="object"&&typeof e.peek=="function"&&"value"in e}const ZA={renderToString:Oi,renderToStaticMarkup:Oi};function Li(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Li('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const ye={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},Ri="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",Hi=Ie((e,t)=>ie("svg",{viewBox:"0 0 637 637",ref:t,...e},ie("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),ie("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),Ui=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),el=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),tl=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),nl=Ie((e,t)=>ie("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},ie("g",{strokeLinecap:"round",strokeWidth:10},ie("path",{d:"m19 19 61 61M80 19 19 80"})))),rl=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),ol=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),il=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),Fi=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),al=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),sl=Ie((e,t)=>ie("svg",{viewBox:"0 -960 960 960",ref:t,...e},ie("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),zi={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:Hi},header:{title:_("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:Ri,buttons:[ye.NOTIFICATION_BUTTON,ye.AUDIO_BUTTON,ye.CLOSE_CHAT_BUTTON],closeChatIcon:nl},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:el,iconDisabled:tl,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABAAAAAAA//8AAAEAAAAAAAAA/v8AAP//AAAAAAAAAAD//wAAAAD///////8BAAEAAAD/////AgABAAEA/v/+/wAAAQACAAEAAAD//wAAAwABAP//AgD+/wAA/v8AAAAAAAAAAAEA//8AAAEAAAD+/wEAAAAAAAEAAgAAAAEAAAABAP//AQD+/wIA/////wAAAQD//wAAAQD+/wAAAQABAAAA////////AAACAAAAAQAAAAIA//8BAP///v///wEA//8BAAEAAQD+/wAAAQD9/wAAAQAAAAEAAAABAAAAAgAAAP//AAD+/wAA/f8AAAAA////////AgAAAAcAAQD7/wEA/f8AAAIA//8GAP7//v/+//b/AQD//wQADgD///3/9/8FAPr/6/8EABAACQD9/wIA/P/5/w4A///t/wQA/P8LAB0ACQD5////AQD2/+7/AgD6//r//v/z/xIA9f8oAAMA4f8OANz/EQAdAAAA5P/w/2MAAQDq/w0A1/8bALz/BgDb/+j/lQD9/yMABAACAA0Alf8NAKr/CwCMAPD/QwDq/wkA9v+g/wgAk/8QAD0ABgAWAAQAMwD7/9T/8//f//z/JwAEAOL/DwBxAAwAzf/+/xUA8v+O//H/fAD5/xUA+/9m//P/yf/r/y8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Q/wMAz/8JAOP/CwDx////EAAHADEAAQArAAIAHQAEAAcAAADr/wEAzv8CANj//f/k/wEA+f/+/xQABwAqAB4ALAD+/x4A8P8SAOb/8//f/9j//f/N/wEA3v8LAO7/AgAMAAQALAAEAC0AAQAdAAQADwABAPP/BADV/wMA0/8AAOH/AQD1/wAAEAADACQAGwAwAAQAHwD0/xUA8f/4/+L/2//7/8z/AwDc/woA6f8AAAQAAwAoAAcANAAAACcAAgAUAAEA+P8CANv/AgDR/wEA4v8BAOz/AgAIAPv/JAAVADMAFAAhAPP/GQDz//7/3P/l/+3/z/8BANf/CgDn/wkA/P///xoABwAwAAIAJwACABcAAwABAAIA4f8BAND/AgDd//3/6P8CAAYA/f8YAAwALwAZACUA9v8bAPj/AwDq/+r/7P/S//7/1/8EAOX/CQD6//7/GQAFAC8AAQApAAEAGQACAAMAAgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:al,iconDisabled:sl},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:rl,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[ye.VOICE_MESSAGE_BUTTON,ye.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:Ri,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:ol,iconDisabled:il},footer:{text:_("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[_("span",{children:"Powered By "},0),_("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:_(Hi,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),_("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[ye.FILE_ATTACHMENT_BUTTON,ye.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:Ui,iconDisabled:Ui,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Fi,iconDisabled:Fi,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},ji=Ye({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),ne=()=>ze(ji),Al=({children:e,settings:t=zi,setSyncedSettings:n,syncedSettingsRef:r})=>_(ji.Provider,{value:{settings:t,setSyncedSettings:n,syncedSettingsRef:r},children:e}),Wi={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},qi=Ye({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),de=()=>ze(qi),ll=({children:e,styles:t=Wi,setSyncedStyles:n,syncedStylesRef:r})=>_(qi.Provider,{value:{styles:t,setSyncedStyles:n,syncedStylesRef:r},children:e}),cl=({buttons:e})=>{var t,n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),c={backgroundImage:`linear-gradient(to right, ${(t=a.general)==null?void 0:t.secondaryColor},
2
+ ${(n=a.general)==null?void 0:n.primaryColor})`,...l.headerStyle};return _("div",{style:c,className:"rcb-chat-header-container",children:[_("div",{className:"rcb-chat-header",children:[((r=a.header)==null?void 0:r.showAvatar)&&_("div",{style:{backgroundImage:`url("${(o=a.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),Et((i=a.header)==null?void 0:i.title)?(s=a.header)==null?void 0:s.title:_("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(A=a.header)==null?void 0:A.title})]}),_("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((u,d)=>_(Ae,{children:u},d))})]})},Gi=Ye({}),we=()=>ze(Gi),ul=({children:e,botIdRef:t,flowRef:n})=>{const r=ae(null),o=ae(""),i=ae(null),s=ae(new Map),A=ae(null),a=ae(""),l=ae(!1),c=ae(null),u=ae(null),d=ae(null);return _(Gi.Provider,{value:{botIdRef:t,flowRef:n,inputRef:r,timeoutIdRef:i,streamMessageMap:s,chatBodyRef:A,paramsInputRef:a,keepVoiceOnRef:l,audioContextRef:c,audioBufferRef:u,gainNodeRef:d,prevInputRef:o},children:e})},Le=e=>{const[t,n]=J(e),r=ae(e);return[t,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},Yi=Ye({}),Ee=()=>ze(Yi),dl=({children:e,settings:t})=>{var n,r,o,i,s,A;const[a,l,c]=Le(!1),[u,d,p]=Le(((n=t==null?void 0:t.chatWindow)==null?void 0:n.defaultOpen)??!1),[h,m,f]=Le(((r=t==null?void 0:t.audio)==null?void 0:r.defaultToggledOn)??!1),[v,y,g]=Le(((o=t==null?void 0:t.voice)==null?void 0:o.defaultToggledOn)??!1),[x,k,E]=Le(((i=t==null?void 0:t.notification)==null?void 0:i.defaultToggledOn)??!0),[C,I]=J(!1),[S,P]=J(!1),[D,B,N]=Le(!1),[L,Q,z]=Le(!0),[M,U,b]=Le(!1),[re,w]=J(!1),[$,F]=J(!1),[H,Y]=J(0),[te,oe]=J(0),[ce,pe]=J(!1),[ve,Ve]=J(((s=window.visualViewport)==null?void 0:s.height)??window.innerHeight),[Tt,Qt]=J(((A=window.visualViewport)==null?void 0:A.width)??window.innerWidth);return _(Yi.Provider,{value:{isBotTyping:a,setSyncedIsBotTyping:l,syncedIsBotTypingRef:c,isChatWindowOpen:u,setSyncedIsChatWindowOpen:d,syncedIsChatWindowOpenRef:p,audioToggledOn:h,setSyncedAudioToggledOn:m,syncedAudioToggledOnRef:f,voiceToggledOn:v,setSyncedVoiceToggledOn:y,syncedVoiceToggledOnRef:g,notificationsToggledOn:x,setSyncedNotificationsToggledOn:k,syncedNotificationsToggledOnRef:E,isLoadingChatHistory:C,setIsLoadingChatHistory:I,hasChatHistoryLoaded:S,setHasChatHistoryLoaded:P,isScrolling:D,setSyncedIsScrolling:B,syncedIsScrollingRef:N,textAreaDisabled:L,setSyncedTextAreaDisabled:Q,syncedTextAreaDisabledRef:z,textAreaSensitiveMode:M,setSyncedTextAreaSensitiveMode:U,syncedTextAreaSensitiveModeRef:b,hasInteractedPage:re,setHasInteractedPage:w,hasFlowStarted:$,setHasFlowStarted:F,unreadCount:H,setUnreadCount:Y,inputLength:te,setInputLength:oe,blockAllowsAttachment:ce,setBlockAllowsAttachment:pe,viewportHeight:ve,setViewportHeight:Ve,viewportWidth:Tt,setViewportWidth:Qt},children:e})};var j=(e=>(e.START_SPEAK_AUDIO="rcb-start-speak-audio",e.TOGGLE_AUDIO="rcb-toggle-audio",e.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",e.TOGGLE_VOICE="rcb-toggle-voice",e.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",e.PRE_INJECT_MESSAGE="rcb-pre-inject-message",e.POST_INJECT_MESSAGE="rcb-post-inject-message",e.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",e.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",e.START_STREAM_MESSAGE="rcb-start-stream-message",e.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",e.STOP_STREAM_MESSAGE="rcb-stop-stream-message",e.REMOVE_MESSAGE="rcb-remove-message",e.LOAD_CHAT_HISTORY="rcb-load-chat-history",e.CHANGE_PATH="rcb-change-path",e.SHOW_TOAST="rcb-show-toast",e.DISMISS_TOAST="rcb-dismiss-toast",e.USER_SUBMIT_TEXT="rcb-user-submit-text",e.USER_UPLOAD_FILE="rcb-user-upload-file",e.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",e.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",e.POST_LOAD_CHATBOT="rcb-post-load-chatbot",e.PRE_PROCESS_BLOCK="rcb-pre-process-block",e.POST_PROCESS_BLOCK="rcb-post-process-block",e))(j||{});const pl={[j.START_SPEAK_AUDIO]:!0,[j.TOGGLE_AUDIO]:!0,[j.TOGGLE_VOICE]:!0,[j.TOGGLE_NOTIFICATIONS]:!0,[j.TOGGLE_CHAT_WINDOW]:!0,[j.PRE_INJECT_MESSAGE]:!0,[j.POST_INJECT_MESSAGE]:!1,[j.PRE_LOAD_CHATBOT]:!0,[j.POST_LOAD_CHATBOT]:!1,[j.START_SIMULATE_STREAM_MESSAGE]:!0,[j.STOP_SIMULATE_STREAM_MESSAGE]:!1,[j.START_STREAM_MESSAGE]:!0,[j.CHUNK_STREAM_MESSAGE]:!0,[j.STOP_STREAM_MESSAGE]:!0,[j.REMOVE_MESSAGE]:!0,[j.LOAD_CHAT_HISTORY]:!0,[j.CHANGE_PATH]:!0,[j.SHOW_TOAST]:!0,[j.DISMISS_TOAST]:!0,[j.USER_SUBMIT_TEXT]:!0,[j.USER_UPLOAD_FILE]:!0,[j.TEXT_AREA_CHANGE_VALUE]:!0,[j.PRE_PROCESS_BLOCK]:!0,[j.POST_PROCESS_BLOCK]:!0},_r=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:pl[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Xi=Ye({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),sn=()=>ze(Xi),fl=({children:e})=>{const[t,n,r]=Le([]);return _(Xi.Provider,{value:{paths:t,setSyncedPaths:n,syncedPathsRef:r},children:e})},Xe=()=>{const{botIdRef:e}=we(),{syncedPathsRef:t}=sn(),n=W(()=>t.current.length>0?t.current.at(-1)??null:null,[]),r=W(()=>t.current.length>1?t.current.at(-2)??null:null,[]);return{dispatchRcbEvent:W(async(o,i)=>{const s={botId:e.current,currPath:n(),prevPath:r()};return await _r(o,s,i)},[e])}},Re=()=>{const{settings:e}=ne(),{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,setUnreadCount:A,setSyncedIsBotTyping:a,setSyncedIsScrolling:l,syncedIsBotTypingRef:c,syncedIsChatWindowOpenRef:u}=Ee(),{chatBodyRef:d}=we(),{dispatchRcbEvent:p}=Xe(),h=W(()=>{if(!d.current)return!1;const g=d.current.getBoundingClientRect(),x=window.innerHeight??document.documentElement.clientHeight,k=window.innerWidth??document.documentElement.clientWidth;return g.top>=0&&g.left>=0&&g.bottom<=x&&g.right<=k},[d]),m=W(async g=>{var x;g!==u.current&&((x=e.event)!=null&&x.rcbToggleChatWindow&&(await p(j.TOGGLE_CHAT_WINDOW,{currState:u.current,newState:!u.current})).defaultPrevented||n(k=>(k||A(0),!k)))},[u]),f=W(async g=>{g!==c.current&&a(x=>!x)},[c]),v=W((g,x,k,E)=>(g/=E/2)<1?k/2*g*g+x:-k/2*(--g*(g-2)-1)+x,[]),y=W((g=0)=>{if(!d.current)return;const x=d.current.scrollHeight-d.current.clientHeight;if(g<=0)return d.current.scrollTop=x,void l(!1);const k=d.current.scrollTop,E=x-k;let C=0;const I=()=>{if(!d.current)return;C+=20;const S=v(C,k,E,g);d.current.scrollTop=S,C<g?requestAnimationFrame(I):l(!1)};I()},[d]);return{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,toggleChatWindow:m,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,toggleIsBotTyping:f,scrollToBottom:y,getIsChatBotVisible:h}},hl=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{unreadCount:i,isScrolling:s}=Ee(),{chatBodyRef:A}=we(),{scrollToBottom:a}=Re(),[l,c]=J(!1),u={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatMessagePromptHoveredStyle};return _("div",{className:"rcb-message-prompt-container "+(A.current&&((d=r.chatWindow)!=null&&d.showMessagePrompt)&&s&&i>0?"visible":"hidden"),children:_("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:{...o.chatMessagePromptStyle},onMouseDown:p=>{p.preventDefault(),a(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var d},Vi=Ye({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),kr=()=>ze(Vi),gl=({children:e})=>{const[t,n,r]=Le([]);return _(Vi.Provider,{value:{messages:t,setSyncedMessages:n,syncedMessagesRef:r},children:e})},ml=({message:e,isNewSender:t})=>{var n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?_(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=a.general)==null?void 0:n.primaryColor,color:"#fff",maxWidth:(r=a.userBubble)!=null&&r.showAvatar?"65%":"70%",...l.userBubbleStyle},h=(o=a.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",m=((i=a.userBubble)==null?void 0:i.showAvatar)&&t,f="rcb-user-message"+(!t&&(s=a.userBubble)!=null&&s.showAvatar?" rcb-user-message-offset":"");return _("div",{className:"rcb-user-message-container",children:[c?_("div",{style:p,className:`${f} ${h}`,children:d}):_(Ae,{children:d}),m&&_("div",{style:{backgroundImage:`url("${(A=a.userBubble)==null?void 0:A.avatar}")`},className:"rcb-message-user-avatar"})]})},yl=({message:e,isNewSender:t})=>{var n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?_(e.contentWrapper,{children:u}):u,p={backgroundColor:(n=a.general)==null?void 0:n.secondaryColor,color:"#fff",maxWidth:(r=a.botBubble)!=null&&r.showAvatar?"65%":"70%",...l.botBubbleStyle},h=(o=a.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",m=((i=a.botBubble)==null?void 0:i.showAvatar)&&t,f="rcb-bot-message"+(!t&&(s=a.botBubble)!=null&&s.showAvatar?" rcb-bot-message-offset":"");return _("div",{className:"rcb-bot-message-container",children:[m&&_("div",{style:{backgroundImage:`url("${(A=a.botBubble)==null?void 0:A.avatar}")`},className:"rcb-message-bot-avatar"}),c?_("div",{style:p,className:`${f} ${h}`,children:d}):_(Ae,{children:d})]})},vl=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),i=(e=r.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return _("div",{className:"rcb-bot-message-container",children:[((t=r.botBubble)==null?void 0:t.showAvatar)&&_("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),_("div",{onMouseDown:s=>{s.preventDefault()},className:`rcb-bot-message ${i}`,children:_("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[_("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),_("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),_("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},bl=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{messages:i}=kr(),{scrollToBottom:s}=Re(),{isBotTyping:A,syncedIsScrollingRef:a}=Ee(),{chatBodyRef:l}=we(),c={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=r.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return Z(()=>{a.current||s()},[(t=l.current)==null?void 0:t.scrollHeight]),_("div",{style:c,className:"rcb-chat-body-container",ref:l,children:[i.map((u,d)=>{const p=(h=>h===0||i[h].sender!==i[h-1].sender)(d);return u.sender.toUpperCase()==="USER"?_(ml,{message:u,isNewSender:p},d):u.sender.toUpperCase()==="BOT"?_(yl,{message:u,isNewSender:p},d):_("div",{children:u.content},d)}),A&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&_(vl,{}),_(hl,{})]})},wl=({checkboxes:e,checkedItems:t,path:n})=>{var r,o,i,s,A,a,l,c,u,d,p;const{settings:h}=ne(),{styles:m}=de(),{paths:f}=sn(),{handleSubmitText:v}=zt(),[y,g]=J(new Set),[x,k]=J(!1),E={cursor:x?`url("${(r=h.general)==null?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:(o=h.general)==null?void 0:o.primaryColor,borderColor:(i=h.general)==null?void 0:i.primaryColor,...m.botCheckboxRowStyle},C={cursor:x||y.size<e.min?`url("${(s=h.general)==null?void 0:s.actionDisabledIcon}"), auto`:"pointer",color:(A=h.general)==null?void 0:A.primaryColor,borderColor:(a=h.general)==null?void 0:a.primaryColor,...m.botCheckboxNextStyle},I={cursor:x?`url("${(l=h.general)==null?void 0:l.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...m.botCheckMarkStyle},S={cursor:x?`url("${(c=h.general)==null?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(u=h.general)==null?void 0:u.primaryColor,backgroundColor:(d=h.general)==null?void 0:d.primaryColor,...m.botCheckMarkSelectedStyle};return Z(()=>{f.length>0&&f[f.length-1]!==n&&k(!e.reusable)},[f]),_("div",{className:"rcb-checkbox-container "+((p=h.botBubble)!=null&&p.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(P=>_("div",{onMouseDown:D=>{D.preventDefault(),(B=>{x||g(N=>{const L=new Set(N);if(L.has(B))t.delete(B),L.delete(B);else{if(y.size==e.max)return N;t.add(B),L.add(B)}return L})})(P)},style:E,className:"rcb-checkbox-row-container",children:_("div",{className:"rcb-checkbox-row",children:[_("div",{style:y.has(P)?S:I,className:"rcb-checkbox-mark"}),_("div",{className:"rcb-checkbox-label",children:P})]})},P)),_("div",{style:C,className:"rcb-checkbox-next-button",onMouseDown:P=>{var D;if(P.preventDefault(),x||y.size<e.min)return;const B=Array.from(t).join(", ");let N;k(!e.reusable),N=e.sendOutput!=null?e.sendOutput:((D=h.chatInput)==null?void 0:D.sendCheckboxOutput)??!0,v(B,N)}})]})},xl=async(e,t)=>{const n=e.checkboxes;if(!n)return;let r;if(typeof n=="function"?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.min==null&&(r.min=1),r.max==null&&(r.max=r.items.length),r.min>r.max&&(r.min=r.max),r.reusable==null&&(r.reusable=!1);const o=new Set,i=t.currPath,s=_(wl,{checkboxes:r,checkedItems:o,path:i});await t.injectMessage(s)},El=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},_l=async(e,t,n)=>{const r=e.message;if(!r)return;if(typeof r=="string")return void(r.trim()!==""&&(n?await t.simulateStreamMessage(r):await t.injectMessage(r)));let o=r(t);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(n?await t.simulateStreamMessage(o):await t.injectMessage(o))},kl=({options:e,path:t})=>{var n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),{paths:c}=sn(),{handleSubmitText:u}=zt(),[d,p]=J([]),[h,m]=J(!1),f={cursor:h?`url("${(n=a.general)==null?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:(r=a.general)==null?void 0:r.primaryColor,borderColor:(o=a.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...l.botOptionStyle},v={color:"#fff",borderColor:(i=a.general)==null?void 0:i.primaryColor,backgroundColor:(s=a.general)==null?void 0:s.primaryColor,...l.botOptionHoveredStyle};return Z(()=>{c.length>0&&c[c.length-1]!==t&&m(!e.reusable)},[c]),_("div",{className:"rcb-options-container "+((A=a.botBubble)!=null&&A.showAvatar?"rcb-options-offset":""),children:e.items.map((y,g)=>{const x=d[g]&&!h;return _("div",{className:"rcb-options",style:x?v:f,onMouseEnter:()=>(k=>{p(E=>{const C=[...E];return C[k]=!0,C})})(g),onMouseLeave:()=>(k=>{p(E=>{const C=[...E];return C[k]=!1,C})})(g),onMouseDown:k=>{var E;if(k.preventDefault(),h)return;let C;m(!e.reusable),C=e.sendOutput!=null?e.sendOutput:((E=a.chatInput)==null?void 0:E.sendOptionOutput)??!0,u(y,C)},children:y},y)})})},Pl=async(e,t)=>{const n=e.options;if(!n)return;let r;if(typeof n=="function"?(r=n(t),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.reusable==null&&(r.reusable=!1);const o=t.currPath,i=_(kl,{options:r,path:o});await t.injectMessage(i)},Cl=async(e,t)=>{const n=e.component;if(n){if(typeof n=="function"){let r=n(t);return r instanceof Promise&&(r=await r),r?void await t.injectMessage(r):void 0}await t.injectMessage(n)}},Dl=async(e,t,n,r)=>{const o=e.transition;let i;if(typeof o=="function"?(i=o(t),i instanceof Promise&&(i=await i)):i=o,typeof i=="number"&&(i={duration:i}),!i||i instanceof Promise||i.duration==null||typeof i.duration!="number")return;i.interruptable==null&&(i.interruptable=!1);const s=setTimeout(async()=>{const A=await r(e);A&&await $i(A,t)},i.duration);i.interruptable&&(n.current=s)},Sl=async(e,t,n)=>{const r=e.chatDisabled;if(r==null)return;let o;typeof r=="function"?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},Ki=async(e,t,n)=>{const r=e.isSensitive;if(!r)return void n(!1);let o;typeof r=="function"?(o=r(t),o instanceof Promise&&(o=await o)):o=r,n(o)},$i=async(e,t)=>{if(!e)throw new Error("Block is not valid.");const n=Object.keys(e);for(const r of n)r==="function"&&await El(e,t);n.includes("path")&&await(async(r,o)=>{const i=r.path;if(!i)return!1;if(typeof i=="string")return await o.goToPath(i),!0;let s=i(o);if(s instanceof Promise&&(s=await s),!s)return!1;const A=s;return await o.goToPath(A),!0})(e,t)},Bl=()=>{var e;const{settings:t}=ne(),{styles:n}=de();return _("div",{className:"rcb-line-break-container",children:_("div",{style:{...n.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(e=t.chatHistory)==null?void 0:e.chatHistoryLineBreakText})})},Il=()=>{var e;const{settings:t}=ne(),{styles:n}=de(),r={borderTop:`4px solid ${(e=t.general)==null?void 0:e.primaryColor}`,...n.loadingSpinnerStyle};return _("div",{className:"rcb-spinner-container",children:_("div",{style:r,className:"rcb-spinner"})})},Bn=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(e){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const n=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(t==="x"?n:3&n|8).toString(16)});throw console.error(e),new Error("crypto.getRandomValues is also not available")}},ht=(e,t)=>({id:Bn(),content:e,sender:t,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let gt,Ji=!1,In="rcb-history",Tn=30,Zi=!1,An=[];const Pr=async e=>{if(Zi||!gt)return;const t=[],n=Ji?An.length:0;for(let o=e.length-1;o>=n;o--){const i=e[o];if(i.sender.toUpperCase()!=="SYSTEM"&&(i.content!==""&&t.unshift(i),t.length===Tn))break}let r=t.map(Ql);if(r.length<Tn){const o=Tn-r.length;r=[...An.slice(-o),...r]}ea(r)},Cr=()=>An,Tl=e=>{ea(e),An=e},ea=e=>{gt&&gt.setItem(In,JSON.stringify(e))},Dr=e=>{var t,n,r,o,i;gt=((n=(t=e.chatHistory)==null?void 0:t.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,In=(r=e.chatHistory)==null?void 0:r.storageKey,Tn=(o=e.chatHistory)==null?void 0:o.maxEntries,Zi=(i=e.chatHistory)==null?void 0:i.disabled,An=(s=>{if(s!=null)try{return JSON.parse(s)}catch{return[]}return[]})(gt.getItem(In))},Ql=e=>Et(e.content)?structuredClone({id:e.id,content:ZA.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,ta=(e,t,n)=>{const r=new DOMParser().parseFromString(e,"text/html");return Array.from(r.body.childNodes).map((o,i)=>{var s;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const A=o.tagName.toLowerCase();let a=Array.from(o.attributes).reduce((l,c)=>{const u=c.name.toLowerCase();if(u==="style"){const d=c.value.split(";").filter(h=>h.trim()!==""),p={};d.forEach(h=>{const[m,f]=h.split(":").map(y=>y.trim()),v=m.replace(/-([a-z])/g,(y,g)=>g.toUpperCase());p[v]=f}),l[u]=p}else A!=="audio"&&A!=="video"||u!=="controls"||c.value!==""?l[u]=c.value:l[u]="true";return l},{});if(Object.prototype.hasOwnProperty.call(a,"class")){const l=o.classList;a.className=l.toString(),delete a.class,(s=t.botBubble)!=null&&s.showAvatar&&(a=Ml(l,a)),a=Ol(l,a,t,n),a=Nl(l,a,t,n),a=Ll(l,a,t,n),a=Rl(l,a,t,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(A))return ie(A,{key:i,...a});{const l=ta(o.innerHTML,t,n);return ie(A,{key:i,...a},...l)}}})},Ml=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),Ol=(e,t,n,r)=>{var o,i,s,A,a;return e.contains("rcb-options")&&(t.style={...t.style,color:((o=r.botOptionStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botOptionStyle)==null?void 0:s.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botOptionStyle}),t},Nl=(e,t,n,r)=>{var o,i,s,A,a;return e.contains("rcb-checkbox-row-container")&&(t.style={...t.style,color:((o=r.botCheckboxRowStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxRowStyle)==null?void 0:s.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),t},Ll=(e,t,n,r)=>{var o,i,s,A,a;return e.contains("rcb-checkbox-next-button")&&(t.style={...t.style,color:((o=r.botCheckboxNextStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((s=r.botCheckboxNextStyle)==null?void 0:s.color)??((A=n.general)==null?void 0:A.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),t},Rl=(e,t,n,r)=>{var o,i;return(e.contains("rcb-media-display-image-container")||e.contains("rcb-media-display-video-container"))&&(t.style={...t.style,backgroundColor:(o=n.general)==null?void 0:o.primaryColor,maxWidth:(i=n.userBubble)!=null&&i.showAvatar?"65%":"70%",...r.mediaDisplayContainerStyle}),t},Sr=()=>{const{settings:e}=ne(),{notificationsToggledOn:t,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:s}=Ee(),{audioBufferRef:A,audioContextRef:a,gainNodeRef:l}=we(),{dispatchRcbEvent:c}=Xe(),u=W(async()=>{var p,h;const m=(p=e.notification)==null?void 0:p.sound;a.current=new AudioContext;const f=a.current.createGain();let v;if(f.gain.value=((h=e.notification)==null?void 0:h.volume)??.2,l.current=f,m!=null&&m.startsWith("data:audio")){const y=atob(m.split(",")[1]),g=new ArrayBuffer(y.length),x=new Uint8Array(g);for(let k=0;k<y.length;k++)x[k]=y.charCodeAt(k);v=g}else v=await(await fetch(m)).arrayBuffer();A.current=await a.current.decodeAudioData(v)},[e.notification]),d=W(()=>{var p;if((p=e.notification)!=null&&p.disabled||!s.current||!r||!a.current||!A.current)return;const h=a.current.createBufferSource();h.buffer=A.current,h.connect(l.current).connect(a.current.destination),h.start()},[e.notification,s,r,a,A,l]);return{unreadCount:o,setUnreadCount:i,notificationsToggledOn:t,toggleNotifications:W(async p=>{var h;p!==s.current&&((h=e.event)!=null&&h.rcbToggleNotifications&&(await c(j.TOGGLE_NOTIFICATIONS,{currState:s.current,newState:!s.current})).defaultPrevented||n(m=>!m))},[s]),playNotificationSound:d,setUpNotifications:u}},Hl=(e,t)=>{var n,r,o,i;((s,A,a,l,c)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const u=new window.SpeechSynthesisUtterance;u.text=s,u.lang=A,u.rate=l,u.volume=c;let d=!1;for(const p of a)if(window.speechSynthesis.getVoices().find(h=>{if(h.name===p)return u.voice=h,window.speechSynthesis.speak(u),void(d=!0)}),d)break;d||window.speechSynthesis.speak(u)})(t,(n=e.audio)==null?void 0:n.language,(r=e.audio)==null?void 0:r.voiceNames,(o=e.audio)==null?void 0:o.rate,(i=e.audio)==null?void 0:i.volume)},na=()=>{const{settings:e}=ne(),{audioToggledOn:t,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=Ee(),{dispatchRcbEvent:o}=Xe(),i=W(async A=>{var a;A!==r.current&&((a=e.event)!=null&&a.rcbToggleAudio&&(await o(j.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),s=W(async A=>{var a,l;if((a=e.audio)!=null&&a.disabled||!r.current)return;let c=A;if((l=e.event)!=null&&l.rcbStartSpeakAudio){const u=await o(j.START_SPEAK_AUDIO,{textToRead:c});if(u.defaultPrevented)return;c=u.data.textToRead}Hl(e,c)},[e,r]);return{audioToggledOn:t,speakAudio:s,toggleAudio:i}},kt=()=>{var e,t;const{settings:n}=ne(),{messages:r,setSyncedMessages:o,syncedMessagesRef:i}=kr(),{setSyncedIsBotTyping:s,setUnreadCount:A,syncedIsScrollingRef:a,syncedIsChatWindowOpenRef:l}=Ee(),{streamMessageMap:c,chatBodyRef:u,paramsInputRef:d}=we(),{scrollToBottom:p,getIsChatBotVisible:h}=Re(),{dispatchRcbEvent:m}=Xe(),{speakAudio:f}=na(),{playNotificationSound:v}=Sr(),y=W((S,P=!1)=>{var D,B;Pr(S);let N=!0;const L=S[S.length-1];if(!L)return;const Q=L.sender.toUpperCase();Q==="USER"&&(N=!1),(D=n.general)!=null&&D.embedded&&h()&&(N=!1),(l.current&&!a.current||P)&&(N=!1),N&&v(),!P&&(Q!=="USER"&&(B=n.chatWindow)!=null&&B.autoJumpToBottom||Q==="USER"||!a.current)&&setTimeout(()=>p(),1)},[n,u,l,a,v,p,h]),g=W(async(S,P="BOT",D=null)=>{var B,N,L,Q,z;if(typeof S!="string")throw new Error("Content must be of type string to simulate stream.");P=P.toUpperCase();let M=ht(S,P);if((B=n.event)!=null&&B.rcbStartSimulateStreamMessage){const H=await m(j.START_SIMULATE_STREAM_MESSAGE,{message:M});if(H.defaultPrevented)return null;D=H.data.simulateStreamChunker||D,M=H.data.message}s(!1);let U=30;U=P==="BOT"?(N=n.botBubble)==null?void 0:N.streamSpeed:(L=n.userBubble)==null?void 0:L.streamSpeed;const b={...M,content:""};o(H=>[...H,b]),y(i.current);let re=M.content;D&&(re=D(re));let w=0;const $=re.length;M.sender.toUpperCase()==="BOT"&&(l.current||(Q=n.general)!=null&&Q.embedded)&&typeof M.content=="string"&&M.content.trim()!==""&&f(M.content);const F=new Promise(H=>{const Y=setInterval(()=>{if(w>=$)return clearInterval(Y),void H();o(te=>{const oe=[...te];for(let ce=oe.length-1;ce>=0;ce--)if(oe[ce].id===b.id){const pe=re[w];pe&&(b.content+=pe,oe[ce]=b),w++;break}return oe})},U)});return(a.current||!l.current)&&A(H=>H+1),await F,Pr(i.current),(z=n.event)!=null&&z.rcbStopSimulateStreamMessage&&await m(j.STOP_SIMULATE_STREAM_MESSAGE,{message:M}),P==="USER"&&(d.current=S),M},[n,m,y,i,d,s,A,l,f]),x=W(async(S,P="BOT")=>{var D,B,N;P=P.toUpperCase();let L=ht(S,P);if((D=n.event)!=null&&D.rcbPreInjectMessage){const Q=await m(j.PRE_INJECT_MESSAGE,{message:L});if(Q.defaultPrevented)return null;L=Q.data.message}return L.sender.toUpperCase()==="BOT"&&(l.current||(B=n.general)!=null&&B.embedded)&&typeof L.content=="string"&&L.content.trim()!==""&&f(L.content),(a.current||!l.current)&&A(Q=>Q+1),(N=n.event)!=null&&N.rcbPostInjectMessage&&await m(j.POST_INJECT_MESSAGE,{message:L}),o(Q=>[...Q,L]),y(i.current),P==="USER"&&typeof S=="string"&&(d.current=S),L},[n,m,y,d,i,l,f,A]),k=W(async S=>{var P;const D=i.current.find(B=>B.id===S);return!D||(P=n.event)!=null&&P.rcbRemoveMessage&&(await m(j.REMOVE_MESSAGE,{message:D})).defaultPrevented?null:(o(B=>B.filter(N=>N.id!==S)),y(i.current),A(B=>Math.max(B-1,0)),D)},[m,(e=n.event)==null?void 0:e.rcbRemoveMessage,y,i,A]),E=W(async(S,P="BOT")=>{var D,B;if(P=P.toUpperCase(),!c.current.has(P)){const L=ht(S,P);return(D=n.event)!=null&&D.rcbStartStreamMessage&&(await m(j.START_STREAM_MESSAGE,{message:L})).defaultPrevented?null:(s(!1),o(Q=>[...Q,L]),y(i.current),c.current.set(P,L.id),(a.current||!l.current)&&A(Q=>Q+1),L)}const N={...ht(S,P),id:c.current.get(P)};return(B=n.event)!=null&&B.rcbChunkStreamMessage&&(await m(j.CHUNK_STREAM_MESSAGE,{message:N})).defaultPrevented?null:(o(L=>L.map(Q=>Q.id===N.id?N:Q)),y(i.current,!0),N)},[m,n.event,y,i,s,A,c]),C=W(async(S="BOT")=>{var P;if(S=S.toUpperCase(),!c.current.has(S))return!0;const D=c.current.get(S);let B;for(let N=0;N<3;N++){const L=i.current.find(Q=>Q.id===D);L&&(B=L),await new Promise(Q=>setTimeout(Q,20))}return((P=n.event)==null||!P.rcbStopStreamMessage||!(await m(j.STOP_STREAM_MESSAGE,{message:B})).defaultPrevented)&&(c.current.delete(S),Pr(i.current),S==="USER"&&typeof(B==null?void 0:B.content)=="string"&&(d.current=B.content),!0)},[m,(t=n.event)==null?void 0:t.rcbStopStreamMessage,c,d]),I=W(S=>{const P=typeof S=="function"?S(i.current):S;o(P),y(P)},[y,i]);return{simulateStreamMessage:g,injectMessage:x,removeMessage:k,streamMessage:E,endStreamMessage:C,replaceMessages:I,messages:r}};let Br,et,Qn,mt=!1,tt=null;const Ir=()=>{if(!Br){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Br=e!=null?new e:null}return Br},Ul=(e,t,n,r,o,i)=>{var s,A,a;const l=Ir();if(!l)return;if(!mt)try{mt=!0,l.lang=(s=e.voice)==null?void 0:s.language,l.start()}catch{}const c=(A=e.voice)==null?void 0:A.timeoutPeriod,u=(a=e.voice)==null?void 0:a.autoSendPeriod;l.onresult=d=>{var p,h;clearTimeout(et),et=null,clearTimeout(Qn);const m=d.results[d.results.length-1][0].transcript;if(i.current){const f=(p=e.chatInput)==null?void 0:p.characterLimit,v=i.current.value+m;f!=null&&f>=0&&v.length>f?r(v.slice(0,f)):r(v),o(i.current.value.length)}c&&(et=setTimeout(async()=>await Qr(t,i),c)),(h=e.voice)!=null&&h.autoSendDisabled||(Qn=setTimeout(n,u))},l.onend=()=>{mt?(l.start(),!et&&c&&(et=setTimeout(async()=>await Qr(t,i),c))):(clearTimeout(et),et=null,clearTimeout(Qn))},c&&(et=setTimeout(async()=>await Qr(t,i),c))},Fl=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(tt=new MediaRecorder(n),!mt)try{mt=!0,tt.start()}catch{}tt.ondataavailable=r=>{t.current&&t.current.push(r.data)},tt.onstop=()=>{e(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},Tr=()=>{const e=Ir();e&&(mt=!1,e&&e.stop(),tt&&tt.state!=="inactive"&&(tt.stop(),tt=null),clearTimeout(et),et=null,clearTimeout(Qn))},Qr=async(e,t)=>{var n;(n=t.current)!=null&&n.disabled||await e(),Tr()},Mr=()=>{const{settings:e}=ne(),{voiceToggledOn:t,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=Ee(),{dispatchRcbEvent:o}=Xe(),i=W(async A=>{var a;A!==r.current&&((a=e.event)!=null&&a.rcbToggleVoice&&(await o(j.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),s=W(A=>{((a,l)=>{var c,u,d;const p=Ir();(c=l.voice)!=null&&c.disabled||(u=l.chatInput)==null||!u.blockSpam||!p||(a&&!mt?(mt=!0,(d=l.voice)!=null&&d.sendAsAudio?tt==null||tt.start():p.start()):a||Tr())})(A,e)},[e]);return{voiceToggledOn:t,toggleVoice:i,syncVoice:s}},Pt=()=>{var e;const{settings:t}=ne(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:A,syncedTextAreaDisabledRef:a,syncedTextAreaSensitiveModeRef:l}=Ee(),{inputRef:c,chatBodyRef:u,prevInputRef:d}=we(),{dispatchRcbEvent:p}=Xe(),{getIsChatBotVisible:h}=Re(),m=W(async E=>{var C,I,S;if(a.current&&c.current)c.current.value="";else if(c.current&&d.current!==null){const P=(C=t.chatInput)==null?void 0:C.characterLimit,D=(I=t.chatInput)!=null&&I.allowNewline?E:E.replace(/\n/g," ");if(P!=null&&P>=0&&D.length>P?c.current.value=D.slice(0,P):c.current.value=D,(S=t.event)!=null&&S.rcbTextAreaChangeValue&&(await p(j.TEXT_AREA_CHANGE_VALUE,{currValue:c.current.value,prevValue:d.current})).defaultPrevented)return void(c.current.value=d.current);d.current=c.current.value}},[a,c,d,t,p]),f=W(E=>{var C;(C=c.current)!=null&&C.disabled||setTimeout(()=>{var I,S,P;(I=t.general)!=null&&I.embedded?h()&&((S=c.current)==null||S.focus()):E!=="start"&&((P=c.current)==null||P.focus())},100)},[c,(e=t.general)==null?void 0:e.embedded,u,h]),v=W(()=>{c.current&&c.current.focus()},[]),y=W(()=>{c.current&&c.current.blur()},[]),g=W(()=>c&&c.current?c.current.value:"",[]),x=W(E=>{E!==a.current&&i(C=>!C)},[a]),k=W(E=>{E!==l.current&&A(C=>!C)},[l]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:A,inputLength:n,setInputLength:r,getTextAreaValue:g,setTextAreaValue:m,updateTextAreaFocus:f,focusTextArea:v,blurTextArea:y,toggleTextAreaDisabled:x,toggleTextAreaSensitiveMode:k}},ra=Ye({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),oa=()=>ze(ra),zl=({children:e})=>{const[t,n,r]=Le([]);return _(ra.Provider,{value:{toasts:t,setSyncedToasts:n,syncedToastsRef:r},children:e})},Ft=()=>{const{settings:e}=ne(),{toasts:t,setSyncedToasts:n,syncedToastsRef:r}=oa(),{dispatchRcbEvent:o}=Xe(),i=W(async(a,l)=>{var c,u,d,p;let h=null;if(r.current.length>=(((c=e.toast)==null?void 0:c.maxCount)??3)){if((u=e.toast)!=null&&u.forbidOnMax)return null;h=Bn();let f={id:h,content:a,timeout:l};if((d=e.event)!=null&&d.rcbShowToast){const v=await o(j.SHOW_TOAST,{toast:f});if(v.defaultPrevented)return null;f=v.data.toast}return n(v=>[...v.slice(1),f]),h}h=Bn();let m={id:h,content:a,timeout:l};if((p=e.event)!=null&&p.rcbShowToast){const f=await o(j.SHOW_TOAST,{toast:m});if(f.defaultPrevented)return null;m=f.data.toast}return n(f=>[...f,m]),h},[e,o]),s=W(async a=>{var l;const c=r.current.find(u=>u.id===a);return!c||(l=e.event)!=null&&l.rcbDismissToast&&(await o(j.DISMISS_TOAST,{toast:c})).defaultPrevented?null:(n(u=>u.filter(d=>d.id!==a)),a)},[o]),A=W(a=>{const l=typeof a=="function"?a(r.current):a;n(l)},[r]);return{showToast:i,dismissToast:s,toasts:t,replaceToasts:A}},Mn=()=>{var e,t,n,r,o;const{settings:i}=ne(),{paths:s,setSyncedPaths:A,syncedPathsRef:a}=sn(),{flowRef:l,streamMessageMap:c,paramsInputRef:u,keepVoiceOnRef:d,timeoutIdRef:p}=we(),{setSyncedIsBotTyping:h,setSyncedTextAreaDisabled:m,setSyncedTextAreaSensitiveMode:f,blockAllowsAttachment:v,setBlockAllowsAttachment:y}=Ee(),{dispatchRcbEvent:g}=Xe(),{endStreamMessage:x,injectMessage:k,removeMessage:E,simulateStreamMessage:C,streamMessage:I}=kt(),{showToast:S,dismissToast:P}=Ft(),{toggleChatWindow:D}=Re(),{updateTextAreaFocus:B,setTextAreaValue:N}=Pt(),{syncVoice:L}=Mr(),Q=W(async w=>{var $;if(($=i.event)!=null&&$.rcbPostProcessBlock){const F=await g(j.POST_PROCESS_BLOCK,{block:w});if(F.defaultPrevented)return null;w=F.data.block}return w},[(e=i.event)==null?void 0:e.rcbPostProcessBlock,g]),z=W(async(w,$)=>{var F,H,Y,te;if(!w)return;let oe=l.current[w];if(!oe)return void h(!1);if((F=i.event)!=null&&F.rcbPreProcessBlock){const pe=await g(j.PRE_PROCESS_BLOCK,{block:oe});if(pe.defaultPrevented)return;oe=pe.data.block}h(!0),(H=i.chatInput)!=null&&H.blockSpam&&m(!0),f(!1);const ce={prevPath:$,currPath:w,goToPath:b,setTextAreaValue:N,userInput:u.current,endStreamMessage:x,injectMessage:k,removeMessage:E,simulateStreamMessage:C,streamMessage:I,toggleChatWindow:D,showToast:S,dismissToast:P};await(async(pe,ve,Ve,Tt,Qt,st,Ne)=>{if(!pe)throw new Error("Block is not valid.");for(const Ke of Object.keys(pe))switch(Ke){case"message":await _l(pe,ve,Ve);break;case"options":await Pl(pe,ve);break;case"checkboxes":await xl(pe,ve);break;case"component":await Cl(pe,ve);break;case"chatDisabled":await Sl(pe,ve,Qt);break;case"isSensitive":await Ki(pe,ve,st);break;case"transition":await Dl(pe,ve,Tt,Ne)}})(oe,ce,((Y=i.botBubble)==null?void 0:Y.simulateStream)??!1,p,m,f,Q),h(!1),"chatDisabled"in oe||m((te=i.chatInput)==null?void 0:te.disabled),"isSensitive"in oe||f(!1),y(typeof oe.file=="function"),B(w),L(d.current&&!oe.chatDisabled),w!==$&&c.current.clear()},[l,B,L,(t=i.botBubble)==null?void 0:t.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,u,x,k,E,C,I,D,S,P,d,c]),M=W(()=>a.current.length>0?a.current.at(-1)??null:null,[]),U=W(()=>a.current.length>1?a.current.at(-2)??null:null,[]),b=W(async w=>{var $;const F=M(),H=U();return(($=i.event)==null||!$.rcbChangePath||!(await g(j.CHANGE_PATH,{currPath:F,prevPath:H,nextPath:w})).defaultPrevented)&&(A(Y=>[...Y,w]),await z(w,F),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,z,g]),re=W(w=>{const $=typeof w=="function"?w(a.current):w;A($)},[a]);return{getCurrPath:M,getPrevPath:U,goToPath:b,blockAllowsAttachment:v,setBlockAllowsAttachment:y,paths:s,replacePaths:re,firePostProcessBlockEvent:Q}},zt=()=>{var e,t,n,r;const{settings:o}=ne(),{endStreamMessage:i,injectMessage:s,removeMessage:A,simulateStreamMessage:a,streamMessage:l}=kt(),{syncedPathsRef:c}=sn(),{getCurrPath:u,getPrevPath:d,goToPath:p,firePostProcessBlockEvent:h}=Mn(),{setSyncedTextAreaSensitiveMode:m,setSyncedTextAreaDisabled:f,setSyncedIsBotTyping:v,setBlockAllowsAttachment:y,setInputLength:g,syncedVoiceToggledOnRef:x,syncedTextAreaSensitiveModeRef:k}=Ee(),{flowRef:E,inputRef:C,keepVoiceOnRef:I,paramsInputRef:S,timeoutIdRef:P}=we(),{showToast:D,dismissToast:B}=Ft(),{dispatchRcbEvent:N}=Xe(),{syncVoice:L}=Mr(),{setTextAreaValue:Q}=Pt(),{toggleChatWindow:z}=Re(),M=W(async b=>{var re,w,$,F,H,Y;const te=u();if(te&&E.current[te]){if(k.current){if((re=o==null?void 0:o.sensitiveInput)!=null&&re.hideInUserBubble)return;if((w=o==null?void 0:o.sensitiveInput)!=null&&w.maskInUserBubble)return void(($=o.userBubble)!=null&&$.simulateStream?await a("*".repeat(((F=o.sensitiveInput)==null?void 0:F.asterisksCount)??10),"USER"):await s("*".repeat(((H=o.sensitiveInput)==null?void 0:H.asterisksCount)??10),"USER"))}(Y=o.userBubble)!=null&&Y.simulateStream?await a(b,"USER"):await s(b,"USER")}},[E,u,o,s,a,k]),U=W(async(b,re=!0)=>{var w,$;if((b=b.trim())==="")return;re&&await M(b),P.current&&clearTimeout(P.current),C.current&&(Q(""),g(0));const F=u();if(!F)return;let H=E.current[F];const Y=await h(H);Y&&((w=o.chatInput)!=null&&w.blockSpam&&f(!0),I.current=x.current,L(!1),setTimeout(()=>{v(!0)},400),m(!1),setTimeout(async()=>{var te;const oe={prevPath:d(),currPath:u(),goToPath:p,setTextAreaValue:Q,userInput:S.current,injectMessage:s,simulateStreamMessage:a,streamMessage:l,removeMessage:A,endStreamMessage:i,toggleChatWindow:z,showToast:D,dismissToast:B},ce=c.current.length;await $i(Y,oe),c.current.length===ce&&(f("chatDisabled"in H?!!H.chatDisabled:!((te=o.chatInput)==null||!te.disabled)),Ki(H,oe,m),y(typeof H.file=="function"),L(I.current),v(!1))},($=o.chatInput)==null?void 0:$.botDelay))},[P,(e=o.chatInput)==null?void 0:e.blockSpam,(t=o.chatInput)==null?void 0:t.botDelay,(n=o.chatInput)==null?void 0:n.disabled,I,x,L,M,d,u,p,s,a,l,A,i,z,D,B,E]);return{handleSubmitText:W(async(b,re=!0)=>{var w,$;b=b??((w=C.current)==null?void 0:w.value),!(($=o.event)!=null&&$.rcbUserSubmitText&&(await N(j.USER_SUBMIT_TEXT,{inputText:b,sendInChat:re})).defaultPrevented||!u())&&U(b,re)},[N,u,U,C,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},On=()=>{var e;const{settings:t}=ne();return be(()=>{var n;if(typeof window>"u"||!window.navigator)return!1;if((n=t.device)==null||!n.applyMobileOptimizations)return!0;const r=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r),i=window.innerWidth>=768;return o&&i},[(e=t.device)==null?void 0:e.applyMobileOptimizations])},jl=({buttons:e})=>{var t,n,r,o,i,s,A,a,l,c,u;const d=On(),{settings:p}=ne(),{styles:h}=de(),{textAreaDisabled:m,textAreaSensitiveMode:f,inputLength:v,hasFlowStarted:y,setHasFlowStarted:g,setInputLength:x}=Ee(),{inputRef:k}=we(),[E,C]=J(!1),[I,S]=J(!1),{handleSubmitText:P}=zt(),{setTextAreaValue:D}=Pt(),B={boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle},N={outline:m?"":"none",boxShadow:m?"":`0 0 5px ${(t=p.general)==null?void 0:t.primaryColor}`,boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaFocusedStyle},L={cursor:`url("${(n=p.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaDisabledStyle},Q={color:"#989898",...h.characterLimitStyle},z={color:"#ff0000",...h.characterLimitReachedStyle},M=m?(r=p.chatInput)==null?void 0:r.disabledPlaceholderText:(o=p.chatInput)==null?void 0:o.enabledPlaceholderText,U=()=>{m||C(!0)},b=()=>{C(!1)},re=()=>{S(!0)},w=()=>{S(!1)},$=async H=>{var Y;if(!I&&H.key==="Enter"){if(H.shiftKey)return void((Y=p.chatInput)!=null&&Y.allowNewline||H.preventDefault());H.preventDefault(),await P()}},F=H=>{k.current&&(D(H.target.value),x(k.current.value.length))};return _("div",{"aria-label":((i=p.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:H=>{var Y;H.stopPropagation(),!y&&((Y=p.general)==null?void 0:Y.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&g(!0)},style:{...h.chatInputContainerStyle},className:"rcb-chat-input",children:[f&&(s=p.sensitiveInput)!=null&&s.maskInTextArea?_("input",{ref:k,type:"password",className:"rcb-chat-input-textarea",style:m?L:E?N:B,placeholder:M,onChange:F,onKeyDown:$,onFocus:U,onBlur:b,onCompositionStart:re,onCompositionEnd:w}):_("textarea",{ref:k,style:m?L:E?N:B,rows:1,className:"rcb-chat-input-textarea",placeholder:M,onChange:F,onKeyDown:$,onFocus:U,onBlur:b,onCompositionStart:re,onCompositionEnd:w}),_(Ae,{children:[e==null?void 0:e.map((H,Y)=>_(Ae,{children:H},Y)),((A=p.chatInput)==null?void 0:A.showCharacterCount)&&((a=p.chatInput)==null?void 0:a.characterLimit)!=null&&((l=p.chatInput)==null?void 0:l.characterLimit)>0&&_("div",{className:"rcb-chat-input-char-counter",style:v>=((c=p.chatInput)==null?void 0:c.characterLimit)?z:Q,children:[v,"/",(u=p.chatInput)==null?void 0:u.characterLimit]})]})]})},Wl=({buttons:e})=>{var t;const{settings:n}=ne(),{styles:r}=de();return _("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[_("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,i)=>_(Ae,{children:o},i))}),_("span",{children:(t=n.footer)==null?void 0:t.text})]})},ql=()=>{var e,t,n,r,o,i,s;const{settings:A}=ne(),{styles:a}=de(),{unreadCount:l}=Ee(),{isChatWindowOpen:c,toggleChatWindow:u}=Re(),[d,p]=J(!1),h={backgroundImage:`linear-gradient(to right, ${(e=A.general)==null?void 0:e.secondaryColor},
3
+ ${(t=A.general)==null?void 0:t.primaryColor})`,...a.chatButtonStyle},m={transform:"scale(1.05)",...a.chatButtonStyle,...a.chatButtonHoveredStyle},f={backgroundImage:`url(${(n=A.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...a.chatIconStyle};return _(Ae,{children:!((r=A.general)!=null&&r.embedded)&&_("div",{"aria-label":((o=A.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:d?m:h,className:"rcb-toggle-button "+(c?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},onClick:()=>u(!0),children:[(()=>{var v;const y=(v=A.chatButton)==null?void 0:v.icon;return y&&typeof y!="string"?y&&_("span",{className:"rcb-toggle-icon",children:_(y,{style:f})}):_("span",{className:"rcb-toggle-icon",style:f})})(),!((i=A.notification)!=null&&i.disabled)&&((s=A.notification)==null?void 0:s.showCount)&&_("span",{style:{...a.notificationBadgeStyle},className:"rcb-badge",children:l})]})})},Gl=()=>{var e,t,n,r;const o=On(),{settings:i}=ne(),{styles:s}=de(),{chatBodyRef:A}=we(),{isChatWindowOpen:a,toggleChatWindow:l}=Re(),[c,u]=J(!1),[d,p]=J(!1),[h,m]=J(0);Z(()=>{var y,g,x;const k=(y=i.tooltip)==null?void 0:y.mode;if(k==="ALWAYS")if(o){let E;E=a?(((g=A.current)==null?void 0:g.offsetWidth)??375)-(typeof((x=s.chatButtonStyle)==null?void 0:x.width)=="number"?s.chatButtonStyle.width:75):0,m(E),u(!0)}else u(!a);else k==="NEVER"?u(!1):k==="START"?d?u(!1):(p(!0),u(!0)):k==="CLOSE"&&u(!a)},[a]);const f={transform:`translateX(-${h}px)`,right:(((e=s.chatButtonStyle)==null?void 0:e.width)??75)+40,bottom:30,backgroundColor:(t=i.general)==null?void 0:t.secondaryColor,color:"#fff",...s.tooltipStyle},v={borderColor:`transparent transparent transparent ${f.backgroundColor}`};return _(Ae,{children:!((n=i.general)!=null&&n.embedded)&&_("div",{"data-testid":"chat-tooltip",style:f,className:"rcb-chat-tooltip "+(c?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>l(!0),children:[_("span",{children:(r=i.tooltip)==null?void 0:r.text}),_("span",{className:"rcb-chat-tooltip-tail",style:v})]})})},Yl=({id:e,content:t,timeout:n})=>{var r,o;const{settings:i}=ne(),{styles:s}=de(),[A]=J({toastPromptStyle:{...s.toastPromptStyle},toastPromptHoveredStyle:{...s.toastPromptHoveredStyle}}),{dismissToast:a}=Ft(),[l,c]=J(!1),u={color:(r=i.general)==null?void 0:r.primaryColor,borderColor:(o=i.general)==null?void 0:o.primaryColor,...A.toastPromptHoveredStyle};return Z(()=>{if(n){const d=setTimeout(()=>{a(e)},n);return()=>clearTimeout(d)}},[e,a,n]),typeof t=="string"?_("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:A.toastPromptStyle,onMouseDown:async d=>{var p;(p=i.toast)!=null&&p.dismissOnClick&&(d.preventDefault(),await a(e))},className:"rcb-toast-prompt",children:t}):_(Ae,{children:t})},Xl=()=>{var e,t,n,r,o,i,s,A,a,l,c,u;const{styles:d}=de(),{toasts:p}=oa(),h={bottom:`calc(${typeof((e=d.footerStyle)==null?void 0:e.height)=="number"?`${(t=d.footerStyle)==null?void 0:t.height}px`:((n=d.footerStyle)==null?void 0:n.height)??"50px"} + ${typeof((r=d.chatInputContainerStyle)==null?void 0:r.height)=="number"?`${(o=d.chatInputContainerStyle)==null?void 0:o.height}px`:((i=d.chatInputContainerStyle)==null?void 0:i.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((s=d.chatWindowStyle)==null?void 0:s.width)=="number"?`${(A=d.chatWindowStyle)==null?void 0:A.width}px`:((a=d.chatWindowStyle)==null?void 0:a.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((l=d.chatWindowStyle)==null?void 0:l.width)=="number"?`${(c=d.chatWindowStyle)==null?void 0:c.width}px`:((u=d.chatWindowStyle)==null?void 0:u.width)??"375px"} - 50px)`,...d.toastPromptContainerStyle};return _("div",{className:"rcb-toast-prompt-container",style:h,children:p.map(m=>_(Yl,{id:m.id,content:m.content,timeout:m.timeout},m.id))})},ia=({file:e,fileType:t,fileUrl:n})=>{var r,o,i;const{settings:s}=ne(),{styles:A}=de(),a={backgroundColor:(r=s.general)==null?void 0:r.primaryColor,maxWidth:(o=s.userBubble)!=null&&o.showAvatar?"65%":"70%",...A.mediaDisplayContainerStyle};return _(Ae,{children:n?_(Ae,{children:[t==="image"&&n&&_("div",{style:a,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:_("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),t==="video"&&n&&_("div",{style:a,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:_("video",{controls:!0,className:"rcb-media-display-video",children:[_("source",{src:n,type:e.type}),"Your browser does not support the video tag."]})}),t==="audio"&&n&&_("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(i=s.userBubble)!=null&&i.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[_("source",{src:n,type:e.type}),"Your browser does not support the audio tag."]})]}):_(Ae,{})})},aa=async e=>{if(!e)return{fileType:null,fileUrl:null};const t=e.type.split("/")[0];if(!["image","video","audio"].includes(t))return{fileType:null,fileUrl:null};try{return{fileType:t,fileUrl:await new Promise((n,r)=>{const o=new FileReader;o.onload=()=>n(o.result),o.onerror=()=>r(new Error("File reading failed")),o.readAsDataURL(e)})}}catch(n){return console.error(n),{fileType:null,fileUrl:null}}},Vl=()=>{var e,t,n,r,o,i;const{settings:s}=ne(),{styles:A}=de(),{injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d}=kt(),{getCurrPath:p,getPrevPath:h,goToPath:m,blockAllowsAttachment:f}=Mn(),{flowRef:v,inputRef:y}=we(),g=v.current,{showToast:x,dismissToast:k}=Ft(),{dispatchRcbEvent:E}=Xe(),{toggleChatWindow:C}=Re(),{setTextAreaValue:I}=Pt(),{handleSubmitText:S}=zt(),P={cursor:`url("${(e=s.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.fileAttachmentButtonStyle,...A.fileAttachmentButtonDisabledStyle},D={backgroundImage:`url(${(t=s.fileAttachment)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle},B={backgroundImage:`url(${(n=s.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle,...A.fileAttachmentIconDisabledStyle};return _("label",{"aria-label":((r=s.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:f?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:f?{...A.fileAttachmentButtonStyle}:P,children:[_("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async N=>{var L,Q,z,M;const U=N.target.files;if(!U)return;const b=Array.from(U);if(N.target.value="",(L=s.event)!=null&&L.rcbUserUploadFile&&(await E(j.USER_UPLOAD_FILE,{files:b})).defaultPrevented)return;const re=p();if(!re)return;const w=g[re];if(!w)return;const $=w.file;if($!=null){const F=[];for(let H=0;H<b.length;H++){if(F.push(b[H].name),(Q=s.fileAttachment)==null||!Q.showMediaDisplay)continue;const Y=await aa(b[H]);!Y.fileType||!Y.fileUrl||await a(_(ia,{file:b[H],fileType:Y.fileType,fileUrl:Y.fileUrl}),"USER")}await S("📄 "+F.join(", "),(z=s.fileAttachment)==null?void 0:z.sendFileName),await $({userInput:(M=y.current)==null?void 0:M.value,prevPath:h(),currPath:p(),goToPath:m,setTextAreaValue:I,injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d,toggleChatWindow:C,showToast:x,dismissToast:k,files:b})}},multiple:(o=s.fileAttachment)==null?void 0:o.multiple,accept:(i=s.fileAttachment)==null?void 0:i.accept,disabled:!f}),(()=>{var N,L;const Q=f?(N=s.fileAttachment)==null?void 0:N.icon:(L=s.fileAttachment)==null?void 0:L.iconDisabled;return Q&&typeof Q!="string"?Q&&_("span",{className:f?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:_(Q,{style:f?D:B})}):_("span",{className:f?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:f?D:B})})()]})},Kl=()=>{var e,t,n,r,o,i;const{settings:s}=ne(),{styles:A}=de(),{syncedTextAreaDisabledRef:a}=Ee(),{inputRef:l}=we(),{textAreaDisabled:c,setTextAreaValue:u}=Pt(),d=ae(null),p=ae(null),[h,m]=J(!1),f={cursor:`url("${(e=s.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.emojiButtonStyle,...A.emojiButtonDisabledStyle},v={backgroundImage:`url(${(t=s.emoji)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.emojiIconStyle},y={backgroundImage:`url(${(n=s.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.emojiIconStyle,...A.emojiIconDisabledStyle};return Z(()=>{const g=k=>{const E=k.composedPath();d.current&&!E.includes(d.current)&&p.current&&!E.includes(p.current)&&m(!1)},x=()=>{(()=>{if(d.current&&p.current){const k=p.current.getBoundingClientRect(),E=d.current.offsetHeight,C=k.top-E-8;d.current.style.left=`${k.left}px`,d.current.style.top=`${C}px`}})()};return document.addEventListener("mousedown",g),window.addEventListener("resize",x),()=>{document.removeEventListener("mousedown",g),window.removeEventListener("resize",x)}},[]),_(Ae,{children:[_("div",{"aria-label":((r=s.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:p,className:c?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:c?f:{...A.emojiButtonStyle},onMouseDown:g=>{g.preventDefault(),a.current?m(!1):m(x=>!x)},children:(()=>{var g,x;const k=c?(g=s.emoji)==null?void 0:g.iconDisabled:(x=s.emoji)==null?void 0:x.icon;return k&&typeof k!="string"?k&&_("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:_(k,{style:c?y:v})}):_("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:c?y:v})})()}),h&&_("div",{className:"rcb-emoji-button-popup",ref:d,children:(i=(o=s.emoji)==null?void 0:o.list)==null?void 0:i.map((g,x)=>_("span",{className:"rcb-emoji",onMouseDown:k=>((E,C)=>{E.preventDefault(),l.current&&(u(l.current.value+C),setTimeout(()=>{const I=l.current;if(I){I.focus();const S=I.value.length;I.setSelectionRange(S,S)}},50)),m(!1)})(k,g),children:g},x))})]})},$l=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{audioToggledOn:i,toggleAudio:s}=na(),A={backgroundImage:`url(${(e=r.audio)==null?void 0:e.icon})`,fill:"#fcec3d",...o.audioIconStyle},a={backgroundImage:`url(${(t=r.audio)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return _("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async l=>{l.preventDefault(),await s()},style:i?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var l,c;const u=i?(l=r.audio)==null?void 0:l.icon:(c=r.audio)==null?void 0:c.iconDisabled;return u&&typeof u!="string"?u&&_("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:_(u,{style:i?A:a,"data-testid":"rcb-audio-icon-svg"})}):_("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?A:a})})()})},Jl=()=>{var e,t;const{settings:n}=ne(),{styles:r}=de(),{toggleChatWindow:o}=Re(),i={backgroundImage:`url(${(e=n.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return _("div",{"aria-label":((t=n.ariaLabel)==null?void 0:t.closeChatButton)??"close chat",role:"button",onMouseDown:s=>{s.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var s;const A=(s=n.header)==null?void 0:s.closeChatIcon;return A&&typeof A!="string"?A&&_("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:_(A,{style:i})}):_("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},Zl=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{notificationsToggledOn:i,toggleNotifications:s}=(()=>{const{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}=Sr();return{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}})(),A={backgroundImage:`url(${(e=r.notification)==null?void 0:e.icon})`,fill:"#fcec3d",...o.notificationIconStyle},a={backgroundImage:`url(${(t=r.notification)==null?void 0:t.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return _("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async l=>{l.preventDefault(),await s()},style:i?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var l,c;const u=i?(l=r.notification)==null?void 0:l.icon:(c=r.notification)==null?void 0:c.iconDisabled;return u&&typeof u!="string"?u&&_("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:_(u,{style:i?A:a,"data-testid":"rcb-notification-icon-svg"})}):_("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?A:a})})()})},ec=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{injectMessage:i}=kt(),{inputRef:s}=we(),{voiceToggledOn:A,toggleVoice:a}=Mr(),{setInputLength:l,setTextAreaValue:c,textAreaDisabled:u}=Pt(),{handleSubmitText:d}=zt(),p=ae([]),[h,m]=J(!1);Z(()=>{var x;(x=r.voice)!=null&&x.sendAsAudio?(g(),p.current=[]):d()},[h]),Z(()=>{A?((x,k,E,C,I,S,P)=>{var D;(D=x.voice)!=null&&D.sendAsAudio?Fl(E,S):Ul(x,k,E,C,I,P)})(r,a,y,c,l,p,s):Tr()},[A]);const f={backgroundImage:`url(${(e=r.voice)==null?void 0:e.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},v={backgroundImage:`url(${(t=r.voice)==null?void 0:t.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},y=()=>{m(x=>!x)},g=async()=>{const x=new Blob(p.current,{type:"audio/wav"}),k=new File([x],"voice-input.wav",{type:"audio/wav"}),E=await aa(k);!E.fileType||!E.fileUrl||await i(_(ia,{file:k,fileType:E.fileType,fileUrl:E.fileUrl}),"USER")};return _("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async x=>{x.preventDefault(),!u&&await a()},style:A&&!u?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:A&&!u?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var x,k;const E=A?(x=r.voice)==null?void 0:x.icon:(k=r.voice)==null?void 0:k.iconDisabled;return E&&typeof E!="string"?E&&_("span",{className:"rcb-voice-icon "+(A&&!u?"on":""),children:_(E,{style:A&&!u?f:v})}):_("span",{className:"rcb-voice-icon"+(A&&!u?"-on":""),"data-testid":"rcb-voice-icon",style:A&&!u?f:v})})()})},tc=()=>{var e,t,n,r,o,i,s,A;const{settings:a}=ne(),{styles:l}=de(),{textAreaDisabled:c}=Ee(),[u,d]=J(!1),{handleSubmitText:p}=zt(),h={backgroundColor:(e=a.general)==null?void 0:e.primaryColor,...l.sendButtonStyle},m={cursor:`url("${(t=a.general)==null?void 0:t.actionDisabledIcon}"), auto`,backgroundColor:(n=a.general)==null?void 0:n.primaryColor,...l.sendButtonStyle,...l.sendButtonDisabledStyle},f={backgroundColor:(r=a.general)==null?void 0:r.secondaryColor,...l.sendButtonStyle,...l.sendButtonHoveredStyle},v={backgroundImage:`url(${(o=a.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle},y={backgroundImage:`url(${(i=a.chatInput)==null?void 0:i.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconDisabledStyle},g={backgroundImage:`url(${(s=a.chatInput)==null?void 0:s.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconHoveredStyle};return _("div",{"aria-label":((A=a.ariaLabel)==null?void 0:A.sendButton)??"send message",role:"button",onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},onMouseDown:async x=>{x==null||x.preventDefault(),!c&&await p()},style:c?m:u?f:h,className:"rcb-send-button",children:(()=>{var x;const k=(x=a.chatInput)==null?void 0:x.sendButtonIcon;return k&&typeof k!="string"?k&&_("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:_(k,{style:c?y:u?g:v})}):_("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:c?y:u?g:v})})()})},nc=(e,t)=>{var n,r,o,i,s,A,a,l,c;const u={[ye.AUDIO_BUTTON]:(n=e.audio)==null?void 0:n.disabled,[ye.CLOSE_CHAT_BUTTON]:(r=e.general)==null?void 0:r.embedded,[ye.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[ye.FILE_ATTACHMENT_BUTTON]:(i=e.fileAttachment)==null?void 0:i.disabled,[ye.NOTIFICATION_BUTTON]:(s=e.notification)==null?void 0:s.disabled,[ye.SEND_MESSAGE_BUTTON]:!1,[ye.VOICE_MESSAGE_BUTTON]:(A=e.voice)==null?void 0:A.disabled},d={},p=h=>h?h.map(m=>{if(typeof m=="string"){if((f=>Object.values(ye).includes(f))(m)&&!u[m]){if(d[m])return d[m];const f=t[m];if(typeof f=="function"){const v=f();return d[m]=v,v}return null}return null}return m}).filter(m=>m!==null):[];return{header:p((a=e.header)==null?void 0:a.buttons),chatInput:p((l=e.chatInput)==null?void 0:l.buttons),footer:p((c=e.footer)==null?void 0:c.buttons)}},rc=()=>{const{settings:e}=ne(),t=be(()=>({[ye.CLOSE_CHAT_BUTTON]:()=>_(Jl,{}),[ye.AUDIO_BUTTON]:()=>_($l,{}),[ye.NOTIFICATION_BUTTON]:()=>_(Zl,{}),[ye.EMOJI_PICKER_BUTTON]:()=>_(Kl,{}),[ye.FILE_ATTACHMENT_BUTTON]:()=>_(Vl,{}),[ye.SEND_MESSAGE_BUTTON]:()=>_(tc,{}),[ye.VOICE_MESSAGE_BUTTON]:()=>_(ec,{})}),[]),{header:n,chatInput:r,footer:o}=be(()=>nc(e,t),[e,t]);return{headerButtons:be(()=>n,[n]),chatInputButtons:be(()=>r,[r]),footerButtons:be(()=>o,[o])}},Or=()=>{const{settings:e}=ne(),{styles:t}=de(),{setSyncedMessages:n,syncedMessagesRef:r}=kr(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,setHasChatHistoryLoaded:A}=Ee(),{chatBodyRef:a}=we(),{dispatchRcbEvent:l}=Xe(),c=W(async()=>{var u,d;const p=Cr();if(!p||(u=e.event)!=null&&u.rcbLoadChatHistory&&(await l(j.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const h=((d=a.current)==null?void 0:d.scrollHeight)??0;((m,f,v,y,g,x,k,E,C)=>{var I;if(Ji=!0,v!=null)try{const S=ht(_(Il,{}),"SYSTEM"),P=g.current.slice(1);y([S,...P]);const D=v.map(B=>{if(B.type==="object"){const N=ta(B.content,m,f);return{...B,content:N}}return B});setTimeout(()=>{var B;const N=g.current.slice(1);let L=(B=m.chatHistory)!=null&&B.autoLoad?ht(_(Ae,{}),"SYSTEM"):ht(_(Bl,{}),"SYSTEM");y([...D,L,...N]),C(!0)},500),setTimeout(()=>{if(!x.current)return;const{scrollHeight:B}=x.current,N=B-k;x.current.scrollTop+=N,E(!1)},510)}catch{gt.removeItem((I=m.chatHistory)==null?void 0:I.storageKey)}})(e,t,p,n,r,a,h,i,A)},[e,t,l,r,a,i,A]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,showChatHistory:c}},oc=()=>{var e,t,n;const{settings:r}=ne(),{styles:o}=de(),{showChatHistory:i}=Or(),[s,A]=J(!1),a={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return _("div",{className:"rcb-view-history-container",children:_("div",{onMouseEnter:()=>{A(!0)},onMouseLeave:()=>{A(!1)},style:s?a:{...o.chatHistoryButtonStyle},onMouseDown:l=>{l.preventDefault(),i()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:_("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},ic=()=>{var e,t,n,r;const o=On(),{settings:i}=ne(),{replaceMessages:s}=kt(),{isBotTyping:A,isChatWindowOpen:a,setUnreadCount:l,setSyncedIsChatWindowOpen:c,setSyncedTextAreaDisabled:u,setSyncedAudioToggledOn:d,setSyncedVoiceToggledOn:p,setSyncedIsScrolling:h,syncedIsScrollingRef:m,syncedIsChatWindowOpenRef:f}=Ee(),{chatBodyRef:v}=we(),{viewportHeight:y,setViewportHeight:g,setViewportWidth:x,scrollToBottom:k}=Re(),{setUpNotifications:E}=Sr(),{handleFirstInteraction:C}=(()=>{var D;const{settings:B}=ne(),{hasInteractedPage:N,setHasInteractedPage:L,hasFlowStarted:Q,setHasFlowStarted:z}=Ee(),M=W(()=>{var U;if(L(!0),!Q&&((U=B.general)==null?void 0:U.flowStartTrigger)==="ON_PAGE_INTERACT"&&z(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const b=new window.SpeechSynthesisUtterance;b.text="",b.onend=()=>{window.removeEventListener("click",M),window.removeEventListener("keydown",M),window.removeEventListener("touchstart",M)},window.speechSynthesis.speak(b)},[Q,(D=B.general)==null?void 0:D.flowStartTrigger]);return{hasInteractedPage:N,handleFirstInteraction:M}})(),{showChatHistory:I}=Or(),S=ae(0),P=ae(!1);Z(()=>(window.addEventListener("click",C),window.addEventListener("keydown",C),window.addEventListener("touchstart",C),()=>{window.removeEventListener("click",C),window.removeEventListener("keydown",C),window.removeEventListener("touchstart",C)}),[]),Z(()=>{const D=v.current;if(!D)return;const B=()=>{P.current||(P.current=!0,requestAnimationFrame(()=>{var N,L;if(!D)return;const{scrollTop:Q,clientHeight:z,scrollHeight:M}=D,U=Q+z<M-(((N=i.chatWindow)==null?void 0:N.messagePromptOffset)??30);h(U),m.current=U,U||(Q+z>=M-1&&(D.scrollTop=M-z-1),(f.current||(L=i.general)!=null&&L.embedded)&&l(0)),P.current=!1}))};return D.addEventListener("wheel",B,{passive:!0}),D.addEventListener("touchmove",B,{passive:!0}),()=>{D.removeEventListener("wheel",B),D.removeEventListener("touchmove",B)}},[]),Z(()=>{var D,B,N;u((D=i.chatInput)==null?void 0:D.disabled),c((B=i.chatWindow)==null?void 0:B.defaultOpen),d((N=i.audio)==null?void 0:N.defaultToggledOn),setTimeout(()=>{var L;p((L=i.voice)==null?void 0:L.defaultToggledOn)},1)},[]),Z(()=>{var D;(D=i.notification)!=null&&D.disabled||E()},[(e=i.notification)==null?void 0:e.disabled]),Z(()=>{!m.current&&v!=null&&v.current&&k()},[A]),Z(()=>{var D,B;if((D=i.chatHistory)!=null&&D.disabled)gt&&gt.removeItem(In);else if(Dr(i),Cr().length>0){const N=ht(_(oc,{}),"SYSTEM");s([N]),(B=i.chatHistory)!=null&&B.autoLoad&&I()}},[(t=i.chatHistory)==null?void 0:t.storageKey,(n=i.chatHistory)==null?void 0:n.maxEntries,(r=i.chatHistory)==null?void 0:r.disabled]),Z(()=>{var D;o||(D=i.general)!=null&&D.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",B=>{if(!B.target)return;const{x:N,y:L,width:Q,height:z}=B.target.boundingRect;N==0&&L==0&&Q==0&&z==0?(setTimeout(()=>{var M;g((M=window.visualViewport)==null?void 0:M.height)},101),setTimeout(()=>{var M,U;y!=((M=window.visualViewport)==null?void 0:M.height)&&g((U=window.visualViewport)==null?void 0:U.height)},1001)):setTimeout(()=>{var M;g(((M=window.visualViewport)==null?void 0:M.height)-z)},101)}))},[o]),Z(()=>{var D,B,N,L;if(o)return;a&&(g((D=window.visualViewport)==null?void 0:D.height),x((B=window.visualViewport)==null?void 0:B.width));const Q=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),z=()=>S.current=window.scrollY,M=()=>{var b,re;g((b=window.visualViewport)==null?void 0:b.height),x((re=window.visualViewport)==null?void 0:re.width)},U=()=>{var b;window.removeEventListener("scroll",Q),window.removeEventListener("scroll",z),(b=window.visualViewport)==null||b.removeEventListener("resize",M)};return a?(U(),document.body.style.position="fixed",window.addEventListener("scroll",Q),(N=window.visualViewport)==null||N.addEventListener("resize",M)):(document.body.style.position="static",U(),window.scrollTo({top:S.current,left:0,behavior:"auto"}),window.addEventListener("scroll",z),(L=window.visualViewport)==null||L.removeEventListener("resize",M)),U},[a,o])},ac="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",sc="2592000",sa="RCB_THEME_CACHE_DATA",Aa=async(e,t)=>{const{id:n,version:r,baseUrl:o=ac,cacheDuration:i=sc}=t,s=r||await(async(v,y)=>{const g=`${y}/${v}/meta.json`;try{const x=await fetch(g);return x.ok?(await x.json()).version:(console.error(`Failed to fetch meta.json from ${g}`),null)}catch(x){return console.error(`Failed to fetch meta.json from ${g}`,x),null}})(n,o);if(!s)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const A=((v,y,g)=>{const x=localStorage.getItem(`${sa}_${v}_${y}`);if(!x)return null;try{const k=JSON.parse(x),E=new Date().getTime(),C=Math.floor(E/1e3);return k.cacheDate+g>=C?k:null}catch(k){return console.error(`Unable to fetch cache for ${v}`,k),null}})(n,s,i);if(A){const v=la(e,A.cssStylesText);return{settings:A.settings,inlineStyles:A.inlineStyles,cssStylesText:v}}const a=`${o}/${n}/${s}/styles.css`,l=`${o}/${n}/${s}/settings.json`,c=`${o}/${n}/${s}/styles.json`;let u="";const d=await fetch(a);d.ok?u=await d.text():console.info(`Could not fetch styles.css from ${a}`);const p=await fetch(l);let h={};p.ok?h=await p.json():console.info(`Could not fetch settings.json from ${l}`);const m=await fetch(c);let f={};return m.ok?f=await m.json():console.info(`Could not fetch styles.json from ${c}`),((v,y,g,x,k)=>{const E=new Date().getTime(),C={settings:g,inlineStyles:x,cssStylesText:k,cacheDate:Math.floor(E/1e3)};localStorage.setItem(`${sa}_${v}_${y}`,JSON.stringify(C))})(n,s,h,f,u),{settings:h,inlineStyles:f,cssStylesText:la(e,u)}},la=(e,t)=>t.split(new RegExp("(?<=})")).map(n=>{const r=n.trim();return r.startsWith("@import")||r.startsWith("@keyframes")||r.startsWith("@media")?r:r?`#${e} ${r}`:""}).join(`
4
4
  `),Ac=async(e,t,n,r)=>{var o,i;let s=Nn(zi),A=Nn(Wi),a="";if(r!=null)if(Array.isArray(r))for(const l of r){const c=await Aa(e,l);s=nt(c.settings,s),A=nt(c.inlineStyles,A),a+=c.cssStylesText}else{const l=await Aa(e,r);s=nt(l.settings,s),A=nt(l.inlineStyles,A),a+=l.cssStylesText}return t!=null&&(s=nt(t,s)),n!=null&&(A=nt(n,A)),((o=s.chatInput)==null?void 0:o.botDelay)!=null&&((i=s.chatInput)==null?void 0:i.botDelay)<500&&(s.chatInput.botDelay=500),{settings:s,inlineStyles:A,cssStylesText:a}},nt=(e,t)=>{const n=[{source:e,target:t}];for(;n.length;){const r=n.pop();if(r==null)continue;const{source:o,target:i}=r;for(const s of Object.keys(o)){const A=s;if(Et(o[A]))i[A]=o[A];else if(typeof o[A]!="object"||o[A]===null||Array.isArray(o[A]))try{i[A]=o[A]}catch{}else(typeof i[A]!="object"||i[A]===null)&&(i[A]={}),n.push({source:o[A],target:i[A]})}}return t},Nn=e=>{if(e===null||typeof e!="object")return e;const t=Array.isArray(e)?[]:{},n=[{source:e,target:t}],r=new WeakMap;for(r.set(e,t);n.length;){const o=n.pop();if(o==null)continue;const{source:i,target:s}=o;for(const A in i)if(Object.prototype.hasOwnProperty.call(i,A)){const a=i[A];if(a&&typeof a=="object")if(r.has(a))s[A]=r.get(a);else{const l=Array.isArray(a)?[]:{};r.set(a,l),s[A]=l,n.push({source:a,target:l})}else s[A]=a}}return t},ca=()=>{const{settings:e,setSyncedSettings:t,syncedSettingsRef:n}=ne(),r=W(i=>{!i||Object.keys(i).length===0||t(Nn(nt(i,e)))},[e]),o=W(i=>{const s=typeof i=="function"?i(n.current):i;t(s)},[n]);return{settings:e,replaceSettings:o,updateSettings:r}},ua=()=>{const{styles:e,setSyncedStyles:t,syncedStylesRef:n}=de(),r=W(i=>{!i||Object.keys(i).length===0||t(Nn(nt(i,e)))},[e]),o=W(i=>{const s=typeof i=="function"?i(n.current):i;t(s)},[n]);return{styles:e,replaceStyles:o,updateStyles:r}},lc=({plugins:e,slots:t})=>{var n,r;const o=On(),{settings:i}=ne(),{styles:s}=de(),{hasFlowStarted:A,setHasFlowStarted:a}=Ee(),{inputRef:l}=we(),{viewportHeight:c,viewportWidth:u,isChatWindowOpen:d}=Re(),{goToPath:p}=Mn(),{headerButtons:h,chatInputButtons:m,footerButtons:f}=rc();ic(),(y=>{const{updateSettings:g}=ca(),{updateStyles:x}=ua(),k=y==null?void 0:y.map(E=>E());Z(()=>{let E={},C={};k==null||k.forEach(I=>{I!=null&&I.settings&&Object.keys(I==null?void 0:I.settings).length!==0&&(E=nt(I.settings,E)),I!=null&&I.styles&&Object.keys(I==null?void 0:I.styles).length!==0&&(C=nt(I.styles,C))}),g(E),x(C)},[])})(e),Z(()=>{var y;(A||((y=i.general)==null?void 0:y.flowStartTrigger)==="ON_LOAD")&&p("start")},[A,(n=i.general)==null?void 0:n.flowStartTrigger]);const v=be(()=>{var y;const g="rcb-chatbot-global ";return(y=i.general)!=null&&y.embedded?g+"rcb-window-embedded":d?g+"rcb-window-open":g+"rcb-window-close"},[i,d]);return _(Ae,{children:(()=>{var y,g;return o&&((y=i.device)==null?void 0:y.desktopEnabled)||!o&&((g=i.device)==null?void 0:g.mobileEnabled)})()&&_("div",{onMouseDown:y=>{var g,x;!A&&((g=i.general)==null?void 0:g.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&a(!0),o?(x=l.current)==null||x.blur():y==null||y.preventDefault()},className:v,children:[_(Gl,{}),_(ql,{}),d&&!o&&!((r=i.general)!=null&&r.embedded)&&_(Ae,{children:[_("style",{children:`
5
5
  html {
6
6
  overflow: hidden !important;
7
7
  touch-action: none !important;
8
8
  scroll-behavior: auto !important;
9
9
  }
10
- `}),_("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),_("div",{style:(()=>{var y,g;return o||(y=i.general)!=null&&y.embedded?(g=i.general)!=null&&g.embedded?{...s.chatWindowStyle}:{...s.chatWindowStyle,zIndex:1e4}:{...s.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${u}px`,height:`${c}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var y,g,x;const k=(t==null?void 0:t.chatBotHeader)||cl,E=(t==null?void 0:t.chatBotBody)||bl,C=(t==null?void 0:t.chatBotInput)||jl,I=(t==null?void 0:t.chatBotFooter)||Wl;return _(Ae,{children:[((y=i.general)==null?void 0:y.showHeader)&&_(k,{buttons:h}),_(E,{}),_(Xl,{}),((g=i.general)==null?void 0:g.showInputRow)&&_(C,{buttons:m}),((x=i.general)==null?void 0:x.showFooter)&&_(I,{buttons:f})]})})()})]})})},da=Ye(void 0),pa=()=>ze(da),fa=({children:e})=>{var t;const n=ae(""),r=ae({}),[o,i,s]=Le({}),[A,a,l]=Le({}),[c,u]=J(!1);return Z(()=>{u(!0)},[]),c?_("div",{style:{fontFamily:(t=o.general)==null?void 0:t.fontFamily},children:_(da.Provider,{value:{loadConfig:async(d,p,h,m,f,v)=>{n.current=d,r.current=p;const y=await Ac(d,h,m,f);v.current&&(v.current.textContent=y.cssStylesText),i(y.settings),a(y.inlineStyles)}},children:_(Al,{settings:o,setSyncedSettings:i,syncedSettingsRef:s,children:_(ll,{styles:A,setSyncedStyles:a,syncedStylesRef:l,children:_(zl,{children:_(ul,{botIdRef:n,flowRef:r,children:_(fl,{children:_(dl,{settings:o,children:_(gl,{children:e})})})})})})})})}):null},cc=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,setConfigLoaded:s,styleRootRef:A})=>{const a=be(()=>e,[]),l=pa(),{flowRef:c}=we();return c&&c.current!==t&&(c.current=t),Z(()=>{(async()=>{var u,d;(u=n.event)!=null&&u.rcbPreLoadChatBot&&(await _r(j.PRE_LOAD_CHATBOT,{botId:a,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:i})).defaultPrevented||(l!=null&&l.loadConfig&&(await l.loadConfig(a,t,n,r,o,A),s(!0)),(d=n.event)!=null&&d.rcbPostLoadChatBot&&_r(j.POST_LOAD_CHATBOT,{botId:a,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:i}))})()},[o]),null},Nr=["Quickstart","API Docs","Examples","Github","Discord"],uc={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:Nr,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:Nr,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:Nr,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let t="";switch(e.userInput){case"Quickstart":t="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":t="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":t="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":t="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":t="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(t)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},dc=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,slots:s})=>{const A=be(()=>e||"rcb-"+Bn(),[]),a=t&&Object.keys(t).length!==0?t:uc,l=n||{},c=r||{},u=i||[],[d,p]=J(!1),h=pa(),m=ae(null),[f,v]=J(o||[]);Z(()=>{o&&v(o)},[o]);const y=()=>_(Ae,{children:[_(cc,{styleRootRef:m,id:A,flow:a,settings:l,styles:c,themes:f,plugins:u,setConfigLoaded:p}),d&&_(lc,{plugins:i,slots:s})]});return _(h==null?fa:Ae,{children:[_("style",{ref:m}),_("div",{id:A,children:y()})]})},pc=()=>{const{getBotId:e}=(()=>{const{botIdRef:t}=we();return{getBotId:W(()=>t.current,[t])}})();return{getBotId:e}},Ln=()=>{const{hasFlowStarted:e,restartFlow:t,getFlow:n}=(()=>{const{replaceMessages:r}=kt(),{replacePaths:o,goToPath:i}=Mn(),{replaceToasts:s}=Ft(),{hasFlowStarted:A}=Ee(),{flowRef:a,timeoutIdRef:l}=we(),{settings:c}=ne();return{hasFlowStarted:A,restartFlow:W(async()=>{Dr(c),l.current&&clearTimeout(l.current),r([]),s([]),o([]),await i("start")},[l,c,r,s,o,Dr,i]),getFlow:W(()=>(a==null?void 0:a.current)??{},[a])}})();return{hasFlowStarted:e,restartFlow:t,getFlow:n}},ln=()=>{const{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s}=kt();return{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s}},je=(e,t)=>{const{getBotId:n}=pc();Z(()=>{const r=o=>{o.detail.botId===n()&&t(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[n,e,t])},ha=()=>{const{settings:e,replaceSettings:t,updateSettings:n}=ca();return{settings:e,replaceSettings:t,updateSettings:n}},ga=()=>{const{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:A}=Pt();return{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:A}},ma=()=>{const{showChatHistory:e,hasChatHistoryLoaded:t}=Or();return{showChatHistory:e,getHistoryMessages:Cr,setHistoryMessages:Tl,hasChatHistoryLoaded:t}},Lr={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function Ct(e){return t=>{Lr[t]={...e,...Lr[t]}}}["address","main","div","figure","p","pre"].forEach(Ct({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(Ct({content:8,type:73})),["p","pre"].forEach(Ct({content:8,type:65})),["s","small","span","del","ins"].forEach(Ct({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Ct({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Ct({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Ct({type:89}));const Rr=Object.freeze(Lr),fc=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],hc=Object.keys(Rr).filter(e=>e!=="canvas"&&e!=="iframe"),ya=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),gc=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function Rn(){return Rn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rn.apply(this,arguments)}function va({attributes:e={},className:t,children:n=null,selfClose:r=!1,tagName:o}){const i=o;return r?L.createElement(i,Rn({className:t},e)):L.createElement(i,Rn({className:t},e),n)}class mc{attribute(t,n){return n}node(t,n){return n}}function yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
10
+ `}),_("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),_("div",{style:(()=>{var y,g;return o||(y=i.general)!=null&&y.embedded?(g=i.general)!=null&&g.embedded?{...s.chatWindowStyle}:{...s.chatWindowStyle,zIndex:1e4}:{...s.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${u}px`,height:`${c}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var y,g,x;const k=(t==null?void 0:t.chatBotHeader)||cl,E=(t==null?void 0:t.chatBotBody)||bl,C=(t==null?void 0:t.chatBotInput)||jl,I=(t==null?void 0:t.chatBotFooter)||Wl;return _(Ae,{children:[((y=i.general)==null?void 0:y.showHeader)&&_(k,{buttons:h}),_(E,{}),_(Xl,{}),((g=i.general)==null?void 0:g.showInputRow)&&_(C,{buttons:m}),((x=i.general)==null?void 0:x.showFooter)&&_(I,{buttons:f})]})})()})]})})},da=Ye(void 0),pa=()=>ze(da),fa=({children:e})=>{var t;const n=ae(""),r=ae({}),[o,i,s]=Le({}),[A,a,l]=Le({}),[c,u]=J(!1);return Z(()=>{u(!0)},[]),c?_("div",{style:{fontFamily:(t=o.general)==null?void 0:t.fontFamily},children:_(da.Provider,{value:{loadConfig:async(d,p,h,m,f,v)=>{n.current=d,r.current=p;const y=await Ac(d,h,m,f);v.current&&(v.current.textContent=y.cssStylesText),i(y.settings),a(y.inlineStyles)}},children:_(Al,{settings:o,setSyncedSettings:i,syncedSettingsRef:s,children:_(ll,{styles:A,setSyncedStyles:a,syncedStylesRef:l,children:_(zl,{children:_(ul,{botIdRef:n,flowRef:r,children:_(fl,{children:_(dl,{settings:o,children:_(gl,{children:e})})})})})})})})}):null},cc=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,setConfigLoaded:s,styleRootRef:A})=>{const a=be(()=>e,[]),l=pa(),{flowRef:c}=we();return c&&c.current!==t&&(c.current=t),Z(()=>{(async()=>{var u,d;(u=n.event)!=null&&u.rcbPreLoadChatBot&&(await _r(j.PRE_LOAD_CHATBOT,{botId:a,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:i})).defaultPrevented||(l!=null&&l.loadConfig&&(await l.loadConfig(a,t,n,r,o,A),s(!0)),(d=n.event)!=null&&d.rcbPostLoadChatBot&&_r(j.POST_LOAD_CHATBOT,{botId:a,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:i}))})()},[o]),null},Nr=["Quickstart","API Docs","Examples","Github","Discord"],uc={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:Nr,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:Nr,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:Nr,path:"process_options"},process_options:{transition:{duration:0},path:e=>{let t="";switch(e.userInput){case"Quickstart":t="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":t="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":t="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":t="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":t="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return e.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(t)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},dc=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,slots:s})=>{const A=be(()=>e||"rcb-"+Bn(),[]),a=t&&Object.keys(t).length!==0?t:uc,l=n||{},c=r||{},u=i||[],[d,p]=J(!1),h=pa(),m=ae(null),[f,v]=J(o||[]);Z(()=>{o&&v(o)},[o]);const y=()=>_(Ae,{children:[_(cc,{styleRootRef:m,id:A,flow:a,settings:l,styles:c,themes:f,plugins:u,setConfigLoaded:p}),d&&_(lc,{plugins:i,slots:s})]});return _(h==null?fa:Ae,{children:[_("style",{ref:m}),_("div",{id:A,children:y()})]})},pc=()=>{const{getBotId:e}=(()=>{const{botIdRef:t}=we();return{getBotId:W(()=>t.current,[t])}})();return{getBotId:e}},Ln=()=>{const{hasFlowStarted:e,restartFlow:t,getFlow:n}=(()=>{const{replaceMessages:r}=kt(),{replacePaths:o,goToPath:i}=Mn(),{replaceToasts:s}=Ft(),{hasFlowStarted:A}=Ee(),{flowRef:a,timeoutIdRef:l}=we(),{settings:c}=ne();return{hasFlowStarted:A,restartFlow:W(async()=>{Dr(c),l.current&&clearTimeout(l.current),r([]),s([]),o([]),await i("start")},[l,c,r,s,o,Dr,i]),getFlow:W(()=>(a==null?void 0:a.current)??{},[a])}})();return{hasFlowStarted:e,restartFlow:t,getFlow:n}},ln=()=>{const{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s}=kt();return{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s}},je=(e,t)=>{const{getBotId:n}=pc();Z(()=>{const r=o=>{o.detail.botId===n()&&t(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[n,e,t])},ha=()=>{const{settings:e,replaceSettings:t,updateSettings:n}=ca();return{settings:e,replaceSettings:t,updateSettings:n}},ga=()=>{const{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:A}=Pt();return{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:A}},ma=()=>{const{showChatHistory:e,hasChatHistoryLoaded:t}=Or();return{showChatHistory:e,getHistoryMessages:Cr,setHistoryMessages:Tl,hasChatHistoryLoaded:t}},Lr={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function Ct(e){return t=>{Lr[t]={...e,...Lr[t]}}}["address","main","div","figure","p","pre"].forEach(Ct({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(Ct({content:8,type:73})),["p","pre"].forEach(Ct({content:8,type:65})),["s","small","span","del","ins"].forEach(Ct({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Ct({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Ct({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Ct({type:89}));const Rr=Object.freeze(Lr),fc=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],hc=Object.keys(Rr).filter(e=>e!=="canvas"&&e!=="iframe"),ya=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),gc=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function Rn(){return Rn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rn.apply(this,arguments)}function va({attributes:e={},className:t,children:n=null,selfClose:r=!1,tagName:o}){const i=o;return r?R.createElement(i,Rn({className:t},e)):R.createElement(i,Rn({className:t},e),n)}class mc{attribute(t,n){return n}node(t,n){return n}}function yc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
11
11
  * escape-html
12
12
  * Copyright(c) 2012-2013 TJ Holowaychuk
13
13
  * Copyright(c) 2015 Andreas Lubbe
@@ -17,10 +17,10 @@ var AccessQABot=function(En){"use strict";var $t,q,Io,xt,To,Qo,Mo,Oo,tr,nr,rr,No
17
17
  `);return r=r.replace(/\n{3,}/g,`
18
18
 
19
19
 
20
- `),r=r.replace(/\n/g,"<br/>"),r}createContainer(e){var t;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||kc)();if(!n)return;const r=(t=this.props.containerTagName)!==null&&t!==void 0?t:"body",o=r==="body"||r==="fragment"?n.body:n.createElement(r);if(e.match(xc)){if(process.env.NODE_ENV!=="production")throw new Error("HTML documents as Interweave content are not supported.")}else o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?vc(e):e);return o}extractAttributes(e){const{allowAttributes:t}=this.props,n={};let r=0;return e.nodeType===1&&e.attributes&&([...e.attributes].forEach(o=>{const{name:i,value:s}=o,A=i.toLowerCase(),a=ya[A]||ya[i];if(!this.isSafe(e)||!A.match(Ec)&&(!t&&(!a||a===2)||A.startsWith("on")||s.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let l=A==="style"?this.extractStyleAttribute(e):s;a===4?l=!0:a===3?l=Number.parseFloat(String(l)):a!==5&&(l=String(l)),n[gc[A]||A]=this.applyAttributeFilters(A,l),r+=1}),r!==0)?n:null}extractStyleAttribute(e){const t={};return Array.from(e.style).forEach(n=>{const r=e.style[n];(typeof r=="string"||typeof r=="number")&&(t[n.replace(/-([a-z])/g,(o,i)=>String(i).toUpperCase())]=r)}),t}getTagConfig(e){const t={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return Rr[e]?{...t,...Rr[e],tagName:e}:t}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const t=e.getAttribute("href");if(t!=null&&t.startsWith("#"))return!0;const n=e.protocol.toLowerCase();return n===":"||n==="http:"||n==="https:"||n==="mailto:"||n==="tel:"}return!0}isTagAllowed(e){return!this.banned.has(e)&&!this.blocked.has(e)&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,t){const{noHtml:n,noHtmlExceptMatchers:r,allowElements:o,transform:i,transformOnlyAllowList:s}=this.props;let A=[],a="";return[...e.childNodes].forEach(l=>{if(l.nodeType===1){const u=l.nodeName.toLowerCase(),d=this.getTagConfig(u);a&&(A.push(a),a="");const p=this.applyNodeFilters(u,l);if(!p)return;let h;if(i&&(!s||this.isTagAllowed(u))){this.keyIndex+=1;const m=this.keyIndex;h=this.parseNode(p,d);const f=i(p,h,d);if(f===null)return;if(typeof f<"u")return void A.push(L.cloneElement(f,{key:m}));this.keyIndex=m-1}if(this.banned.has(u))return;if(n||r&&u!=="br"||!this.isTagAllowed(u)||!o&&!this.canRenderChild(t,d))A=[...A,...this.parseNode(p,d.tagName?d:t)];else{var c;this.keyIndex+=1;const m=this.extractAttributes(p),f={tagName:u};m&&(f.attributes=m),d.void&&(f.selfClose=d.void),A.push(L.createElement(va,{...f,key:this.keyIndex},(c=h)!==null&&c!==void 0?c:this.parseNode(p,d)))}}else if(l.nodeType===3){const u=n&&!r?l.textContent:this.applyMatchers(l.textContent||"",t);Array.isArray(u)?A=[...A,...u]:a+=u}}),a&&A.push(a),A}replaceTokens(e,t){if(!e.includes("{{{"))return e;const n=[];let r=e,o=null;for(;o=r.match(_c);){const[i,s]=o,A=o.index,a=i.includes("/");if(process.env.NODE_ENV!=="production"&&!t[s])throw new Error(`Token "${s}" found but no matching element to replace with.`);A>0&&(n.push(r.slice(0,A)),r=r.slice(A));const{children:l,matcher:c,props:u}=t[s];let d;if(a)d=i.length,n.push(c.createElement(l,u));else{const p=r.match(new RegExp(`{{{/${s}}}}`));if(process.env.NODE_ENV!=="production"&&!p)throw new Error(`Closing token missing for interpolated element "${s}".`);d=p.index+p[0].length,n.push(c.createElement(this.replaceTokens(r.slice(i.length,p.index),t),u))}r=r.slice(d)}return r.length>0&&n.push(r),n.length===0?"":n.length===1&&typeof n[0]=="string"?n[0]:n}};function Pc(e){var t;const{attributes:n,className:r,containerTagName:o,content:i,emptyContent:s,parsedContent:A,tagName:a,noWrap:l}=e,c=(t=o??a)!==null&&t!==void 0?t:"span",u=c==="fragment"||l;let d;if(A)d=A;else{const p=new xa(i??"",e).parse();p.length>0&&(d=p)}return d||(d=s),u?L.createElement(L.Fragment,null,d):L.createElement(va,{attributes:n,className:r,tagName:c},d)}function Cc(e){const{attributes:t,className:n,content:r="",disableFilters:o=!1,disableMatchers:i=!1,emptyContent:s=null,filters:A=[],matchers:a=[],onAfterParse:l=null,onBeforeParse:c=null,tagName:u="span",noWrap:d=!1,...p}=e,h=i?[]:a,m=o?[]:A,f=c?[c]:[],v=l?[l]:[];h.forEach(k=>{k.onBeforeParse&&f.push(k.onBeforeParse.bind(k)),k.onAfterParse&&v.push(k.onAfterParse.bind(k))});const y=f.reduce((k,E)=>{const C=E(k,e);if(process.env.NODE_ENV!=="production"&&typeof C!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return C},r??""),g=new xa(y,p,h,m),x=v.reduce((k,E)=>{const C=E(k,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(C))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return C},g.parse());return L.createElement(Pc,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:s,noWrap:d,parsedContent:x.length===0?void 0:x,tagName:u})}const Dc=({children:e})=>_("div",{style:{whiteSpace:"normal"},children:_(Cc,{content:typeof e=="string"?e:""})}),Sc={autoConfig:!0},Ea=(e,t,n)=>{var r;if(!e.detail.currPath)return!1;const o=t[e.detail.currPath];return!!o&&(((r=o.renderHtml)==null?void 0:r.map(i=>i.toUpperCase()).includes(n))??!1)},Bc=e=>{const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];i==="<"?r?(t.push(n),n=i):(r=!0,n=i):i===">"?(n+=i,t.push(n),n="",r=!1):r?n+=i:t.push(i)}return n!==""&&t.push(n),t},Ic=e=>{const{getFlow:t}=Ln(),{messages:n,replaceMessages:r}=ln(),{settings:o}=ha(),{hasChatHistoryLoaded:i}=ma(),s={...e,...Sc},A=s.htmlComponent?s.htmlComponent:Dc;Z(()=>{var c,u;if(i){const d=[...n];for(let p=0;p<d.length&&p<(((c=o.chatHistory)==null?void 0:c.maxEntries)??30);p++){const h=d[p];(u=h.tags)!=null&&u.includes("rcb-html-renderer-plugin:parsed")&&(h.contentWrapper=A)}r(d)}},[i]);const a=async c=>{var u;const d=(u=c.data.message)==null?void 0:u.sender.toUpperCase();typeof c.data.message.content=="string"&&Ea(c,t(),d)&&(c.type==="rcb-start-simulate-stream-message"&&(c.data.simulateStreamChunker=Bc),c.data.message.contentWrapper=A,c.data.message.tags||(c.data.message.tags=[]),c.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};je(j.PRE_INJECT_MESSAGE,a),je(j.CHUNK_STREAM_MESSAGE,a),je(j.START_STREAM_MESSAGE,a),je(j.START_SIMULATE_STREAM_MESSAGE,a),je(j.START_SPEAK_AUDIO,async c=>{Ea(c,t(),"BOT")&&(c.data.textToRead=(u=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(u,"text/html").body.textContent||"":u.replace(/<\/?[^>]+(>|$)/g,""))(c.data.textToRead))});const l={name:"@rcb-plugins/html-renderer"};return s!=null&&s.autoConfig&&(l.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),l},Tc=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qc=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mc={};function _a(e,t){return(Mc.jsx?Qc:Tc).test(e)}const Oc=/[ \t\n\f\r]/g;function ka(e){return e.replace(Oc,"")===""}class cn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}function Pa(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new cn(n,r,t)}function Hr(e){return e.toLowerCase()}cn.prototype.property={},cn.prototype.normal={},cn.prototype.space=null;class We{constructor(t,n){this.property=t,this.attribute=n}}We.prototype.space=null,We.prototype.boolean=!1,We.prototype.booleanish=!1,We.prototype.overloadedBoolean=!1,We.prototype.number=!1,We.prototype.commaSeparated=!1,We.prototype.spaceSeparated=!1,We.prototype.commaOrSpaceSeparated=!1,We.prototype.mustUseProperty=!1,We.prototype.defined=!1;let Nc=0;const ee=Dt(),xe=Dt(),Ca=Dt(),O=Dt(),fe=Dt(),jt=Dt(),He=Dt();function Dt(){return 2**++Nc}const Ur=Object.freeze(Object.defineProperty({__proto__:null,boolean:ee,booleanish:xe,commaOrSpaceSeparated:He,commaSeparated:jt,number:O,overloadedBoolean:Ca,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),Fr=Object.keys(Ur);class zr extends We{constructor(t,n,r,o){let i=-1;if(super(t,n),Da(this,"space",o),typeof r=="number")for(;++i<Fr.length;){const s=Fr[i];Da(this,Fr[i],(r&Ur[s])===Ur[s])}}}function Da(e,t,n){n&&(e[t]=n)}zr.prototype.defined=!0;const Lc={}.hasOwnProperty;function Wt(e){const t={},n={};let r;for(r in e.properties)if(Lc.call(e.properties,r)){const o=e.properties[r],i=new zr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Hr(r)]=r,n[Hr(i.attribute)]=r}return new cn(t,n,e.space)}const Sa=Wt({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ba=Wt({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ia(e,t){return t in e?e[t]:t}function Ta(e,t){return Ia(e,t.toLowerCase())}const Qa=Wt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ta,properties:{xmlns:null,xmlnsXLink:null}}),Ma=Wt({transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:fe,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:O,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:fe,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:xe,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null}}),Rc=Wt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ta,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jt,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:fe,autoFocus:ee,autoPlay:ee,blocking:fe,capture:null,charSet:null,checked:ee,cite:null,className:fe,cols:O,colSpan:null,content:null,contentEditable:xe,controls:ee,controlsList:fe,coords:O|jt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:Ca,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:fe,height:O,hidden:ee,high:O,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:fe,itemRef:fe,itemScope:ee,itemType:fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ee,optimum:O,pattern:null,ping:fe,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:fe,required:ee,reversed:ee,rows:O,rowSpan:O,sandbox:fe,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:xe,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:xe,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:O,security:null,unselectable:null}}),Hc=Wt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Ia,properties:{about:He,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:fe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jt,g2:jt,glyphName:jt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:He,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:He,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:He,rev:He,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:He,requiredFeatures:He,requiredFonts:He,requiredFormats:He,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:He,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:He,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:He,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Uc=/^data[-\w.:]+$/i,Oa=/-[a-z]/g,Fc=/[A-Z]/g;function zc(e){return"-"+e.toLowerCase()}function jc(e){return e.charAt(1).toUpperCase()}const Wc={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"},qc=Pa([Ba,Sa,Qa,Ma,Rc],"html"),jr=Pa([Ba,Sa,Qa,Ma,Hc],"svg");function Na(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wr,La,Ra,qt={},Gc=function(){if(Ra)return qt;Ra=1;var e=qt&&qt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(qt,"__esModule",{value:!0}),qt.default=function(n,r){var o=null;if(!n||typeof n!="string")return o;var i=(0,t.default)(n),s=typeof r=="function";return i.forEach(function(A){if(A.type==="declaration"){var a=A.property,l=A.value;s?r(a,l,A):l&&((o=o||{})[a]=l)}}),o};var t=e(function(){if(La)return Wr;La=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,A=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(d){return d?d.replace(l,c):c}return Wr=function(d,p){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];p=p||{};var h=1,m=1;function f(S){var P=S.match(r);P&&(h+=P.length);var D=S.lastIndexOf(`
21
- `);m=~D?S.length-D:m+S.length}function v(){var S={line:h,column:m};return function(P){return P.position=new y(S),k(),P}}function y(S){this.start=S,this.end={line:h,column:m},this.source=p.source}function g(S){var P=new Error(p.source+":"+h+":"+m+": "+S);if(P.reason=S,P.filename=p.source,P.line=h,P.column=m,P.source=d,!p.silent)throw P}function x(S){var P=S.exec(d);if(P){var D=P[0];return f(D),d=d.slice(D.length),P}}function k(){x(o)}function E(S){var P;for(S=S||[];P=C();)P!==!1&&S.push(P);return S}function C(){var S=v();if(d.charAt(0)=="/"&&d.charAt(1)=="*"){for(var P=2;c!=d.charAt(P)&&(d.charAt(P)!="*"||d.charAt(P+1)!="/");)++P;if(P+=2,c===d.charAt(P-1))return g("End of comment missing");var D=d.slice(2,P-2);return m+=2,f(D),d=d.slice(P),m+=2,S({type:"comment",comment:D})}}function I(){var S=v(),P=x(i);if(P){if(C(),!x(s))return g("property missing ':'");var D=x(A),B=S({type:"declaration",property:u(P[0].replace(n,c)),value:D?u(D[0].replace(n,c)):c});return x(a),B}}return y.prototype.content=d,k(),function(){var S,P=[];for(E(P);S=I();)S!==!1&&(P.push(S),E(P));return P}()},Wr}());return qt}();const Ha=Na(Gc),Yc=Ha.default||Ha,Ua=Fa("end"),qr=Fa("start");function Fa(e){return function(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function un(e){return e&&typeof e=="object"?"position"in e||"type"in e?za(e.position):"start"in e||"end"in e?za(e):"line"in e||"column"in e?Gr(e):"":""}function Gr(e){return ja(e&&e.line)+":"+ja(e&&e.column)}function za(e){return Gr(e&&e.start)+"-"+Gr(e&&e.end)}function ja(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!1;if(n&&(i="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:{...n}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?i.ruleId=r:(i.source=r.slice(0,a),i.ruleId=r.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const A=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=A?A.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=A?A.line:void 0,this.name=un(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Be.prototype.file="",Be.prototype.name="",Be.prototype.reason="",Be.prototype.message="",Be.prototype.stack="",Be.prototype.column=void 0,Be.prototype.line=void 0,Be.prototype.ancestors=void 0,Be.prototype.cause=void 0,Be.prototype.fatal=void 0,Be.prototype.place=void 0,Be.prototype.ruleId=void 0,Be.prototype.source=void 0;const Yr={}.hasOwnProperty,Xc=new Map,Vc=/[A-Z]/g,Kc=/-([a-z])/g,$c=new Set(["table","tbody","thead","tfoot","tr"]),Jc=new Set(["td","th"]),Wa="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Zc(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(s,A){return a;function a(l,c,u,d){const p=Array.isArray(u.children),h=qr(l);return A(c,u,d,p,{columnNumber:h?h.column-1:void 0,fileName:s,lineNumber:h?h.line:void 0},void 0)}}(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=function(s,A,a){return l;function l(c,u,d,p){const h=Array.isArray(d.children)?a:A;return p?h(u,d,p):h(u,d)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?jr:qc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=qa(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function qa(e,t,n){return t.type==="element"?function(r,o,i){const s=r.schema;let A=s;o.tagName.toLowerCase()==="svg"&&s.space==="html"&&(A=jr,r.schema=A),r.ancestors.push(o);const a=Ya(r,o.tagName,!1),l=function(u,d){const p={};let h,m;for(m in d.properties)if(m!=="children"&&Yr.call(d.properties,m)){const f=eu(u,m,d.properties[m]);if(f){const[v,y]=f;u.tableCellAlignToStyle&&v==="align"&&typeof y=="string"&&Jc.has(d.tagName)?h=y:p[v]=y}}return h&&((p.style||(p.style={}))[u.stylePropertyNameCase==="css"?"text-align":"textAlign"]=h),p}(r,o);let c=Vr(r,o);return $c.has(o.tagName)&&(c=c.filter(function(u){return typeof u!="string"||!function(d){return typeof d=="object"?d.type==="text"&&ka(d.value):ka(d)}(u)})),Ga(r,l,a,o),Xr(l,c),r.ancestors.pop(),r.schema=s,r.create(o,a,l,i)}(e,t,n):t.type==="mdxFlowExpression"||t.type==="mdxTextExpression"?function(r,o){if(o.data&&o.data.estree&&r.evaluater){const i=o.data.estree.body[0];return i.type,r.evaluater.evaluateExpression(i.expression)}dn(r,o.position)}(e,t):t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"?function(r,o,i){const s=r.schema;let A=s;o.name==="svg"&&s.space==="html"&&(A=jr,r.schema=A),r.ancestors.push(o);const a=o.name===null?r.Fragment:Ya(r,o.name,!0),l=function(u,d){const p={};for(const h of d.attributes)if(h.type==="mdxJsxExpressionAttribute")if(h.data&&h.data.estree&&u.evaluater){const m=h.data.estree.body[0];m.type;const f=m.expression;f.type;const v=f.properties[0];v.type,Object.assign(p,u.evaluater.evaluateExpression(v.argument))}else dn(u,d.position);else{const m=h.name;let f;if(h.value&&typeof h.value=="object")if(h.value.data&&h.value.data.estree&&u.evaluater){const v=h.value.data.estree.body[0];v.type,f=u.evaluater.evaluateExpression(v.expression)}else dn(u,d.position);else f=h.value===null||h.value;p[m]=f}return p}(r,o),c=Vr(r,o);return Ga(r,l,a,o),Xr(l,c),r.ancestors.pop(),r.schema=s,r.create(o,a,l,i)}(e,t,n):t.type==="mdxjsEsm"?function(r,o){if(o.data&&o.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(o.data.estree);dn(r,o.position)}(e,t):t.type==="root"?function(r,o,i){const s={};return Xr(s,Vr(r,o)),r.create(o,r.Fragment,s,i)}(e,t,n):t.type==="text"?function(r,o){return o.value}(0,t):void 0}function Ga(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Vr(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Xc;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const a=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(a){const l=o.get(a)||0;s=a+"-"+l,o.set(a,l+1)}}const A=qa(e,i,s);A!==void 0&&n.push(A)}return n}function eu(e,t,n){const r=function(o,i){const s=Hr(i);let A=i,a=We;if(s in o.normal)return o.property[o.normal[s]];if(s.length>4&&s.slice(0,4)==="data"&&Uc.test(i)){if(i.charAt(4)==="-"){const l=i.slice(5).replace(Oa,jc);A="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=i.slice(4);if(!Oa.test(l)){let c=l.replace(Fc,zc);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}a=zr}return new a(A,i)}(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(o){const i={};return(o[o.length-1]===""?[...o,""]:o).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}(n):function(o){return o.join(" ").trim()}(n)),r.property==="style"){let o=typeof n=="object"?n:function(i,s){const A={};try{Yc(s,a)}catch(l){if(!i.ignoreInvalidStyle){const c=l,u=new Be("Cannot parse `style` attribute",{ancestors:i.ancestors,cause:c,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=i.filePath||void 0,u.url=Wa+"#cannot-parse-style-attribute",u}}return A;function a(l,c){let u=l;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(Kc,nu)),A[u]=c}}(e,String(n));return e.stylePropertyNameCase==="css"&&(o=function(i){const s={};let A;for(A in i)Yr.call(i,A)&&(s[tu(A)]=i[A]);return s}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Wc[r.property]||r.property:r.attribute,n]}}function Ya(e,t,n){let r;if(n)if(t.includes(".")){const o=t.split(".");let i,s=-1;for(;++s<o.length;){const A=_a(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};i=i?{type:"MemberExpression",object:i,property:A,computed:!(!s||A.type!=="Literal"),optional:!1}:A}r=i}else r=_a(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Yr.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);dn(e)}function dn(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Wa+"#cannot-handle-mdx-estrees-without-createevaluater",n}function tu(e){let t=e.replace(Vc,ru);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function nu(e,t){return t.toUpperCase()}function ru(e){return"-"+e.toLowerCase()}const Kr={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Hn={};function Xa(e,t,n){if(function(r){return!(!r||typeof r!="object")}(e)){if("value"in e)return e.type!=="html"||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Va(e.children,t,n)}return Array.isArray(e)?Va(e,t,n):""}function Va(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Xa(e[o],t,n);return r.join("")}const Ka=document.createElement("i");function $r(e){const t="&"+e+";";Ka.innerHTML=t;const n=Ka.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function rt(e,t,n,r){const o=e.length;let i,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function qe(e,t){return e.length>0?(rt(e,e.length,0,t),e):t}const $a={}.hasOwnProperty;function ou(e){const t={};let n=-1;for(;++n<e.length;)iu(t,e[n]);return t}function iu(e,t){let n;for(n in t){const r=($a.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){$a.call(r,i)||(r[i]=[]);const s=o[i];au(r[i],Array.isArray(s)?s:s?[s]:[])}}}function au(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);rt(e,0,0,r)}function Ja(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function Gt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ot=yt(/[A-Za-z]/),Ue=yt(/[\dA-Za-z]/),su=yt(/[#-'*+\--9=?A-Z^-~]/);function Jr(e){return e!==null&&(e<32||e===127)}const Zr=yt(/\d/),Au=yt(/[\dA-Fa-f]/),lu=yt(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function Me(e){return e!==null&&(e<0||e===32)}function ue(e){return e===-2||e===-1||e===32}const cu=yt(new RegExp("\\p{P}|\\p{S}","u")),uu=yt(/\s/);function yt(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Yt(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Ue(e.charCodeAt(n+1))&&Ue(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const A=e.charCodeAt(n+1);i<56320&&A>56319&&A<57344?(s=String.fromCharCode(i,A),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function he(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(A){return ue(A)?(e.enter(n),s(A)):t(A)};function s(A){return ue(A)&&i++<o?(e.consume(A),s):(e.exit(n),t(A))}}const du={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(i){return i===null?void e.consume(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),he(e,t,"linePrefix"))},function(i){return e.enter("paragraph"),r(i)});let n;return t;function r(i){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(i)}function o(i){return i===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(i)):V(i)?(e.consume(i),e.exit("chunkText"),r):(e.consume(i),o)}}},pu={tokenize:function(e){const t=this,n=[];let r,o,i,s=0;return A;function A(g){if(s<n.length){const x=n[s];return t.containerState=x[1],e.attempt(x[0].continuation,a,l)(g)}return l(g)}function a(g){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const x=t.events.length;let k,E=x;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){k=t.events[E][1].end;break}v(s);let C=x;for(;C<t.events.length;)t.events[C][1].end={...k},C++;return rt(t.events,E+1,0,t.events.slice(x)),t.events.length=C,l(g)}return A(g)}function l(g){if(s===n.length){if(!r)return d(g);if(r.currentConstruct&&r.currentConstruct.concrete)return h(g);t.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Za,c,u)(g)}function c(g){return r&&y(),v(s),d(g)}function u(g){return t.parser.lazy[t.now().line]=s!==n.length,i=t.now().offset,h(g)}function d(g){return t.containerState={},e.attempt(Za,p,h)(g)}function p(g){return s++,n.push([t.currentConstruct,t.containerState]),d(g)}function h(g){return g===null?(r&&y(),v(0),void e.consume(g)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(g))}function m(g){return g===null?(f(e.exit("chunkFlow"),!0),v(0),void e.consume(g)):V(g)?(e.consume(g),f(e.exit("chunkFlow")),s=0,t.interrupt=void 0,A):(e.consume(g),m)}function f(g,x){const k=t.sliceStream(g);if(x&&k.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(k),t.parser.lazy[g.start.line]){let E=r.events.length;for(;E--;)if(r.events[E][1].start.offset<i&&(!r.events[E][1].end||r.events[E][1].end.offset>i))return;const C=t.events.length;let I,S,P=C;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(I){S=t.events[P][1].end;break}I=!0}for(v(s),E=C;E<t.events.length;)t.events[E][1].end={...S},E++;rt(t.events,P+1,0,t.events.slice(C)),t.events.length=E}}function v(g){let x=n.length;for(;x-- >g;){const k=n[x];t.containerState=k[1],k[0].exit.call(t,e)}n.length=g}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Za={tokenize:function(e,t,n){return he(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function es(e){return e===null||Me(e)||uu(e)?1:cu(e)?2:void 0}function eo(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const to={name:"attention",resolveAll:function(e,t){let n,r,o,i,s,A,a,l,c=-1;for(;++c<e.length;)if(e[c][0]==="enter"&&e[c][1].type==="attentionSequence"&&e[c][1]._close){for(n=c;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;A=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const u={...e[n][1].end},d={...e[c][1].start};ts(u,-A),ts(d,A),i={type:A>1?"strongSequence":"emphasisSequence",start:u,end:{...e[n][1].end}},s={type:A>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},o={type:A>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:A>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[n][1].end={...i.start},e[c][1].start={...s.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=qe(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=qe(a,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),a=qe(a,eo(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=qe(a,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,a=qe(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,rt(e,n-1,c-n+3,a),c=n+a.length-l-2;break}}for(c=-1;++c<e.length;)e[c][1].type==="attentionSequence"&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=es(r);let i;return function(A){return i=A,e.enter("attentionSequence"),s(A)};function s(A){if(A===i)return e.consume(A),s;const a=e.exit("attentionSequence"),l=es(A),c=!l||l===2&&o||n.includes(A),u=!o||o===2&&l||n.includes(r);return a._open=!!(i===42?c:c&&(o||!u)),a._close=!!(i===42?u:u&&(l||!c)),t(A)}}};function ts(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fu={name:"autolink",tokenize:function(e,t,n){let r=0;return function(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(d){return ot(d)?(e.consume(d),i):d===64?n(d):a(d)}function i(d){return d===43||d===45||d===46||Ue(d)?(r=1,s(d)):a(d)}function s(d){return d===58?(e.consume(d),r=0,A):(d===43||d===45||d===46||Ue(d))&&r++<32?(e.consume(d),s):(r=0,a(d))}function A(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Jr(d)?n(d):(e.consume(d),A)}function a(d){return d===64?(e.consume(d),l):su(d)?(e.consume(d),a):n(d)}function l(d){return Ue(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,l):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):u(d)}function u(d){if((d===45||Ue(d))&&r++<63){const p=d===45?u:c;return e.consume(d),p}return n(d)}}},Un={partial:!0,tokenize:function(e,t,n){return function(o){return ue(o)?he(e,r,"linePrefix")(o):r(o)};function r(o){return o===null||V(o)?t(o):n(o)}}},ns={continuation:{tokenize:function(e,t,n){const r=this;return function(i){return ue(i)?he(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return e.attempt(ns,t,n)(i)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(i){if(i===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return n(i)};function o(i){return ue(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}},rs={name:"characterEscape",tokenize:function(e,t,n){return function(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r};function r(o){return lu(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}},os={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,s=0;return function(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),A};function A(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,i=Ue,l(c))}function a(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Au,l):(e.enter("characterReferenceValue"),o=7,i=Zr,l(c))}function l(c){if(c===59&&s){const u=e.exit("characterReferenceValue");return i!==Ue||$r(r.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(c)}return i(c)&&s++<o?(e.consume(c),l):n(c)}}},is={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)};function o(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}},as={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(g,x,k){let E=0;return C;function C(B){return g.enter("lineEnding"),g.consume(B),g.exit("lineEnding"),I}function I(B){return g.enter("codeFencedFence"),ue(B)?he(g,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):S(B)}function S(B){return B===i?(g.enter("codeFencedFenceSequence"),P(B)):k(B)}function P(B){return B===i?(E++,g.consume(B),P):E>=A?(g.exit("codeFencedFenceSequence"),ue(B)?he(g,D,"whitespace")(B):D(B)):k(B)}function D(B){return B===null||V(B)?(g.exit("codeFencedFence"),x(B)):k(B)}}};let i,s=0,A=0;return function(g){return function(x){const k=r.events[r.events.length-1];return s=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,i=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(x)}(g)};function a(g){return g===i?(A++,e.consume(g),a):A<3?n(g):(e.exit("codeFencedFenceSequence"),ue(g)?he(e,l,"whitespace")(g):l(g))}function l(g){return g===null||V(g)?(e.exit("codeFencedFence"),r.interrupt?t(g):e.check(is,p,y)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===null||V(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(g)):ue(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),he(e,u,"whitespace")(g)):g===96&&g===i?n(g):(e.consume(g),c)}function u(g){return g===null||V(g)?l(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||V(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(g)):g===96&&g===i?n(g):(e.consume(g),d)}function p(g){return e.attempt(o,y,h)(g)}function h(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),m}function m(g){return s>0&&ue(g)?he(e,f,"linePrefix",s+1)(g):f(g)}function f(g){return g===null||V(g)?e.check(is,p,y)(g):(e.enter("codeFlowValue"),v(g))}function v(g){return g===null||V(g)?(e.exit("codeFlowValue"),f(g)):(e.consume(g),v)}function y(g){return e.exit("codeFenced"),t(g)}}},no={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(a){return e.enter("codeIndented"),he(e,o,"linePrefix",5)(a)};function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?i(a):n(a)}function i(a){return a===null?A(a):V(a)?e.attempt(hu,i,A)(a):(e.enter("codeFlowValue"),s(a))}function s(a){return a===null||V(a)?(e.exit("codeFlowValue"),i(a)):(e.consume(a),s)}function A(a){return e.exit("codeIndented"),t(a)}}},hu={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):V(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):he(e,i,"linePrefix",5)(s)}function i(s){const A=r.events[r.events.length-1];return A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?t(s):V(s)?o(s):n(s)}}},gu={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let t,n,r=e.length-4,o=3;if(!(e[o][1].type!=="lineEnding"&&e[o][1].type!=="space"||e[r][1].type!=="lineEnding"&&e[r][1].type!=="space")){for(t=o;++t<r;)if(e[t][1].type==="codeTextData"){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}}for(t=o-1,r++;++t<=r;)n===void 0?t!==r&&e[t][1].type!=="lineEnding"&&(n=t):(t===r||e[t][1].type==="lineEnding")&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)};function s(c){return c===96?(e.consume(c),i++,s):(e.exit("codeTextSequence"),A(c))}function A(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),A):c===96?(o=e.enter("codeTextSequence"),r=0,l(c)):V(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),A):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||V(c)?(e.exit("codeTextData"),A(c)):(e.consume(c),a)}function l(c){return c===96?(e.consume(c),r++,l):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",a(c))}}};class mu{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&pn(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),pn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),pn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);pn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);pn(this.left,n.reverse())}}}function pn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ss(e){const t={};let n,r,o,i,s,A,a,l=-1;const c=new mu(e);for(;++l<c.length;){for(;l in t;)l=t[l];if(n=c.get(l),l&&n[1].type==="chunkFlow"&&c.get(l-1)[1].type==="listItemPrefix"&&(A=n[1]._tokenizer.events,o=0,o<A.length&&A[o][1].type==="lineEndingBlank"&&(o+=2),o<A.length&&A[o][1].type==="content"))for(;++o<A.length&&A[o][1].type!=="content";)A[o][1].type==="chunkText"&&(A[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,yu(c,l)),l=t[l],a=!0);else if(n[1]._container){for(o=l,r=void 0;o--;)if(i=c.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(i[1].type!=="linePrefix")break;r&&(n[1].end={...c.get(r)[1].start},s=c.slice(r,l),s.unshift(n),c.splice(r,l-r+1,s))}}return rt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}function yu(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],s=n._tokenizer||r.parser[n.contentType](n.start),A=s.events,a=[],l={};let c,u,d=-1,p=n,h=0,m=0;const f=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),u&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++d<A.length;)A[d][0]==="exit"&&A[d-1][0]==="enter"&&A[d][1].type===A[d-1][1].type&&A[d][1].start.line!==A[d][1].end.line&&(m=d+1,f.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):f.pop(),d=f.length;d--;){const v=A.slice(f[d],f[d+1]),y=i.pop();a.push([y,y+v.length-1]),e.splice(y,2,v)}for(a.reverse(),d=-1;++d<a.length;)l[h+a[d][0]]=h+a[d][1],h+=a[d][1]-a[d][0]-1;return l}const vu={resolve:function(e){return ss(e),e},tokenize:function(e,t){let n;return function(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(s)};function r(s){return s===null?o(s):V(s)?e.check(bu,i,o)(s):(e.consume(s),r)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},bu={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),he(e,o,"linePrefix")};function o(i){if(i===null||V(i))return n(i);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function As(e,t,n,r,o,i,s,A,a){const l=a||Number.POSITIVE_INFINITY;let c=0;return function(f){return f===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(f),e.exit(i),u):f===null||f===32||f===41||Jr(f)?n(f):(e.enter(r),e.enter(s),e.enter(A),e.enter("chunkString",{contentType:"string"}),h(f))};function u(f){return f===62?(e.enter(i),e.consume(f),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(A),e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===62?(e.exit("chunkString"),e.exit(A),u(f)):f===null||f===60||V(f)?n(f):(e.consume(f),f===92?p:d)}function p(f){return f===60||f===62||f===92?(e.consume(f),d):d(f)}function h(f){return c||f!==null&&f!==41&&!Me(f)?c<l&&f===40?(e.consume(f),c++,h):f===41?(e.consume(f),c--,h):f===null||f===32||f===40||Jr(f)?n(f):(e.consume(f),f===92?m:h):(e.exit("chunkString"),e.exit(A),e.exit(s),e.exit(r),t(f))}function m(f){return f===40||f===41||f===92?(e.consume(f),h):h(f)}}function ls(e,t,n,r,o,i){const s=this;let A,a=0;return function(d){return e.enter(r),e.enter(o),e.consume(d),e.exit(o),e.enter(i),l};function l(d){return a>999||d===null||d===91||d===93&&!A||d===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):V(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||V(d)||a++>999?(e.exit("chunkString"),l(d)):(e.consume(d),A||(A=!ue(d)),d===92?u:c)}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function cs(e,t,n,r,o,i){let s;return function(u){return u===34||u===39||u===40?(e.enter(r),e.enter(o),e.consume(u),e.exit(o),s=u===40?41:u,A):n(u)};function A(u){return u===s?(e.enter(o),e.consume(u),e.exit(o),e.exit(r),t):(e.enter(i),a(u))}function a(u){return u===s?(e.exit(i),A(s)):u===null?n(u):V(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),he(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(u){return u===s||u===null||V(u)?(e.exit("chunkString"),a(u)):(e.consume(u),u===92?c:l)}function c(u){return u===s||u===92?(e.consume(u),l):l(u)}}function fn(e,t){let n;return function r(o){return V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):ue(o)?he(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const wu={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(u){return e.enter("definition"),function(d){return ls.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}(u)};function i(u){return o=Gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(e.enter("definitionMarker"),e.consume(u),e.exit("definitionMarker"),s):n(u)}function s(u){return Me(u)?fn(e,A)(u):A(u)}function A(u){return As(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(u)}function a(u){return e.attempt(xu,l,l)(u)}function l(u){return ue(u)?he(e,c,"whitespace")(u):c(u)}function c(u){return u===null||V(u)?(e.exit("definition"),r.parser.defined.push(o),t(u)):n(u)}}},xu={partial:!0,tokenize:function(e,t,n){return function(s){return Me(s)?fn(e,r)(s):n(s)};function r(s){return cs(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return ue(s)?he(e,i,"whitespace")(s):i(s)}function i(s){return s===null||V(s)?t(s):n(s)}}},Eu={name:"hardBreakEscape",tokenize:function(e,t,n){return function(o){return e.enter("hardBreakEscape"),e.consume(o),r};function r(o){return V(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}},_u={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;return e[i][1].type==="whitespace"&&(i+=2),o-2>i&&e[o][1].type==="whitespace"&&(o-=2),e[o][1].type==="atxHeadingSequence"&&(i===o-1||o-4>i&&e[o-2][1].type==="whitespace")&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},rt(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(a){return e.enter("atxHeading"),function(l){return e.enter("atxHeadingSequence"),o(l)}(a)};function o(a){return a===35&&r++<6?(e.consume(a),o):a===null||Me(a)?(e.exit("atxHeadingSequence"),i(a)):n(a)}function i(a){return a===35?(e.enter("atxHeadingSequence"),s(a)):a===null||V(a)?(e.exit("atxHeading"),t(a)):ue(a)?he(e,i,"whitespace")(a):(e.enter("atxHeadingText"),A(a))}function s(a){return a===35?(e.consume(a),s):(e.exit("atxHeadingSequence"),i(a))}function A(a){return a===null||a===35||Me(a)?(e.exit("atxHeadingText"),i(a)):(e.consume(a),A)}}},ku=["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"],us=["pre","script","style","textarea"],Pu={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&(e[t][0]!=="enter"||e[t][1].type!=="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,s,A,a;return function(w){return function($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),l}(w)};function l(w){return w===33?(e.consume(w),c):w===47?(e.consume(w),i=!0,p):w===63?(e.consume(w),o=3,r.interrupt?t:U):ot(w)?(e.consume(w),s=String.fromCharCode(w),h):n(w)}function c(w){return w===45?(e.consume(w),o=2,u):w===91?(e.consume(w),o=5,A=0,d):ot(w)?(e.consume(w),o=4,r.interrupt?t:U):n(w)}function u(w){return w===45?(e.consume(w),r.interrupt?t:U):n(w)}function d(w){return w==="CDATA[".charCodeAt(A++)?(e.consume(w),A===6?r.interrupt?t:P:d):n(w)}function p(w){return ot(w)?(e.consume(w),s=String.fromCharCode(w),h):n(w)}function h(w){if(w===null||w===47||w===62||Me(w)){const $=w===47,F=s.toLowerCase();return $||i||!us.includes(F)?ku.includes(s.toLowerCase())?(o=6,$?(e.consume(w),m):r.interrupt?t(w):P(w)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):i?f(w):v(w)):(o=1,r.interrupt?t(w):P(w))}return w===45||Ue(w)?(e.consume(w),s+=String.fromCharCode(w),h):n(w)}function m(w){return w===62?(e.consume(w),r.interrupt?t:P):n(w)}function f(w){return ue(w)?(e.consume(w),f):I(w)}function v(w){return w===47?(e.consume(w),I):w===58||w===95||ot(w)?(e.consume(w),y):ue(w)?(e.consume(w),v):I(w)}function y(w){return w===45||w===46||w===58||w===95||Ue(w)?(e.consume(w),y):g(w)}function g(w){return w===61?(e.consume(w),x):ue(w)?(e.consume(w),g):v(w)}function x(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,k):ue(w)?(e.consume(w),x):E(w)}function k(w){return w===a?(e.consume(w),a=null,C):w===null||V(w)?n(w):(e.consume(w),k)}function E(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Me(w)?g(w):(e.consume(w),E)}function C(w){return w===47||w===62||ue(w)?v(w):n(w)}function I(w){return w===62?(e.consume(w),S):n(w)}function S(w){return w===null||V(w)?P(w):ue(w)?(e.consume(w),S):n(w)}function P(w){return w===45&&o===2?(e.consume(w),N):w===60&&o===1?(e.consume(w),Q):w===62&&o===4?(e.consume(w),b):w===63&&o===3?(e.consume(w),U):w===93&&o===5?(e.consume(w),M):!V(w)||o!==6&&o!==7?w===null||V(w)?(e.exit("htmlFlowData"),D(w)):(e.consume(w),P):(e.exit("htmlFlowData"),e.check(Cu,re,D)(w))}function D(w){return e.check(Du,B,re)(w)}function B(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),R}function R(w){return w===null||V(w)?D(w):(e.enter("htmlFlowData"),P(w))}function N(w){return w===45?(e.consume(w),U):P(w)}function Q(w){return w===47?(e.consume(w),s="",z):P(w)}function z(w){if(w===62){const $=s.toLowerCase();return us.includes($)?(e.consume(w),b):P(w)}return ot(w)&&s.length<8?(e.consume(w),s+=String.fromCharCode(w),z):P(w)}function M(w){return w===93?(e.consume(w),U):P(w)}function U(w){return w===62?(e.consume(w),b):w===45&&o===2?(e.consume(w),U):P(w)}function b(w){return w===null||V(w)?(e.exit("htmlFlowData"),re(w)):(e.consume(w),b)}function re(w){return e.exit("htmlFlow"),t(w)}}},Cu={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Un,t,n)}}},Du={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):n(i)};function o(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}},Su={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,s;return function(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),A};function A(b){return b===33?(e.consume(b),a):b===47?(e.consume(b),x):b===63?(e.consume(b),y):ot(b)?(e.consume(b),C):n(b)}function a(b){return b===45?(e.consume(b),l):b===91?(e.consume(b),i=0,p):ot(b)?(e.consume(b),v):n(b)}function l(b){return b===45?(e.consume(b),d):n(b)}function c(b){return b===null?n(b):b===45?(e.consume(b),u):V(b)?(s=c,z(b)):(e.consume(b),c)}function u(b){return b===45?(e.consume(b),d):c(b)}function d(b){return b===62?Q(b):b===45?u(b):c(b)}function p(b){return b==="CDATA[".charCodeAt(i++)?(e.consume(b),i===6?h:p):n(b)}function h(b){return b===null?n(b):b===93?(e.consume(b),m):V(b)?(s=h,z(b)):(e.consume(b),h)}function m(b){return b===93?(e.consume(b),f):h(b)}function f(b){return b===62?Q(b):b===93?(e.consume(b),f):h(b)}function v(b){return b===null||b===62?Q(b):V(b)?(s=v,z(b)):(e.consume(b),v)}function y(b){return b===null?n(b):b===63?(e.consume(b),g):V(b)?(s=y,z(b)):(e.consume(b),y)}function g(b){return b===62?Q(b):y(b)}function x(b){return ot(b)?(e.consume(b),k):n(b)}function k(b){return b===45||Ue(b)?(e.consume(b),k):E(b)}function E(b){return V(b)?(s=E,z(b)):ue(b)?(e.consume(b),E):Q(b)}function C(b){return b===45||Ue(b)?(e.consume(b),C):b===47||b===62||Me(b)?I(b):n(b)}function I(b){return b===47?(e.consume(b),Q):b===58||b===95||ot(b)?(e.consume(b),S):V(b)?(s=I,z(b)):ue(b)?(e.consume(b),I):Q(b)}function S(b){return b===45||b===46||b===58||b===95||Ue(b)?(e.consume(b),S):P(b)}function P(b){return b===61?(e.consume(b),D):V(b)?(s=P,z(b)):ue(b)?(e.consume(b),P):I(b)}function D(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),o=b,B):V(b)?(s=D,z(b)):ue(b)?(e.consume(b),D):(e.consume(b),R)}function B(b){return b===o?(e.consume(b),o=void 0,N):b===null?n(b):V(b)?(s=B,z(b)):(e.consume(b),B)}function R(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||Me(b)?I(b):(e.consume(b),R)}function N(b){return b===47||b===62||Me(b)?I(b):n(b)}function Q(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function z(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),M}function M(b){return ue(b)?he(e,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):U(b)}function U(b){return e.enter("htmlTextData"),s(b)}}},ro={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&rt(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,s=e.length,A=0;for(;s--;)if(n=e[s][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[s][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(e[s][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=s,n.type!=="labelLink")){A=2;break}}else n.type==="labelEnd"&&(o=s);const a={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+A+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",a,t],["enter",l,t]],i=qe(i,e.slice(r+1,r+A+3)),i=qe(i,[["enter",c,t]]),i=qe(i,eo(t.parser.constructs.insideSpan.null,e.slice(r+A+4,o-3),t)),i=qe(i,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),i=qe(i,e.slice(o+1)),i=qe(i,[["exit",a,t]]),rt(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,s=r.events.length;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){o=r.events[s][1];break}return function(u){return o?o._inactive?c(u):(i=r.parser.defined.includes(Gt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelEnd"),A):n(u)};function A(u){return u===40?e.attempt(Bu,l,i?l:c)(u):u===91?e.attempt(Iu,l,i?a:c)(u):i?l(u):c(u)}function a(u){return e.attempt(Tu,l,c)(u)}function l(u){return t(u)}function c(u){return o._balanced=!0,n(u)}}},Bu={tokenize:function(e,t,n){return function(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),r};function r(c){return Me(c)?fn(e,o)(c):o(c)}function o(c){return c===41?l(c):As(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return Me(c)?fn(e,A)(c):l(c)}function s(c){return n(c)}function A(c){return c===34||c===39||c===40?cs(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):l(c)}function a(c){return Me(c)?fn(e,l)(c):l(c)}function l(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}},Iu={tokenize:function(e,t,n){const r=this;return function(s){return ls.call(r,e,o,i,"reference","referenceMarker","referenceString")(s)};function o(s){return r.parser.defined.includes(Gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function i(s){return n(s)}}},Tu={tokenize:function(e,t,n){return function(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r};function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}},Qu={name:"labelStartImage",resolveAll:ro.resolveAll,tokenize:function(e,t,n){const r=this;return function(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o};function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):n(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}},Mu={name:"labelStartLink",resolveAll:ro.resolveAll,tokenize:function(e,t,n){const r=this;return function(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),o};function o(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}},oo={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),he(e,t,"linePrefix")}}},Fn={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(A){return e.enter("thematicBreak"),function(a){return r=a,i(a)}(A)};function i(A){return A===r?(e.enter("thematicBreakSequence"),s(A)):o>=3&&(A===null||V(A))?(e.exit("thematicBreak"),t(A)):n(A)}function s(A){return A===r?(e.consume(A),o++,s):(e.exit("thematicBreakSequence"),ue(A)?he(e,i,"whitespace")(A):i(A))}}},Oe={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Un,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,he(e,t,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!ue(i)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(i)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Nu,t,o)(i))});function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,he(e,e.attempt(Oe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return function(d){const p=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Zr(d)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Fn,n,a)(d):a(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),A(d)}return n(d)};function A(d){return Zr(d)&&++s<10?(e.consume(d),A):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),a(d)):n(d)}function a(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Un,r.interrupt?n:l,e.attempt(Ou,u,c))}function l(d){return r.containerState.initialBlankLine=!0,i++,u(d)}function c(d){return ue(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),u):n(d)}function u(d){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}},Ou={partial:!0,tokenize:function(e,t,n){const r=this;return he(e,function(o){const i=r.events[r.events.length-1];return!ue(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):n(o)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Nu={partial:!0,tokenize:function(e,t,n){const r=this;return he(e,function(o){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(o):n(o)},"listItemIndent",r.containerState.size+1)}},ds={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){n=i;break}e[i][1].type==="paragraph"&&(r=i)}else e[i][1].type==="content"&&e.splice(i,1),!o&&e[i][1].type==="definition"&&(o=i);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(A){let a,l=r.events.length;for(;l--;)if(r.events[l][1].type!=="lineEnding"&&r.events[l][1].type!=="linePrefix"&&r.events[l][1].type!=="content"){a=r.events[l][1].type==="paragraph";break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(A):(e.enter("setextHeadingLine"),o=A,function(c){return e.enter("setextHeadingLineSequence"),i(c)}(A))};function i(A){return A===o?(e.consume(A),i):(e.exit("setextHeadingLineSequence"),ue(A)?he(e,s,"lineSuffix")(A):s(A))}function s(A){return A===null||V(A)?(e.exit("setextHeadingLine"),t(A)):n(A)}}},Lu={tokenize:function(e){const t=this,n=e.attempt(Un,function(o){return o===null?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,he(e,e.attempt(this.parser.constructs.flow,r,e.attempt(vu,r)),"linePrefix")));return n;function r(o){if(o!==null)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(o)}}},Ru={resolveAll:fs()},Hu=ps("string"),Uu=ps("text");function ps(e){return{resolveAll:fs(e==="text"?Fu:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,s);return i;function i(l){return a(l)?o(l):s(l)}function s(l){if(l!==null)return t.enter("data"),t.consume(l),A;t.consume(l)}function A(l){return a(l)?(t.exit("data"),o(l)):(t.consume(l),A)}function a(l){if(l===null)return!0;const c=r[l];let u=-1;if(c)for(;++u<c.length;){const d=c[u];if(!d.previous||d.previous.call(n,n.previous))return!0}return!1}}}}function fs(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)r===void 0?t[o]&&t[o][1].type==="data"&&(r=o,o++):(!t[o]||t[o][1].type!=="data")&&(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Fu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i,s=o.length,A=-1,a=0;for(;s--;){const l=o[s];if(typeof l=="string"){for(A=l.length;l.charCodeAt(A-1)===32;)a++,A--;if(A)break;A=-1}else if(l===-2)i=!0,a++;else if(l!==-1){s++;break}}if(a){const l={type:n===e.length||i||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?A:r.start._bufferIndex+A,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const zu={42:Oe,43:Oe,45:Oe,48:Oe,49:Oe,50:Oe,51:Oe,52:Oe,53:Oe,54:Oe,55:Oe,56:Oe,57:Oe,62:ns},ju={91:wu},Wu={[-2]:no,[-1]:no,32:no},qu={35:_u,42:Fn,45:[ds,Fn],60:Pu,61:ds,95:Fn,96:as,126:as},Gu={38:os,92:rs},Yu={[-5]:oo,[-4]:oo,[-3]:oo,33:Qu,38:os,42:to,60:[fu,Su],91:Mu,92:[Eu,rs],93:ro,95:to,96:gu},Xu={null:[to,Ru]},Vu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ju,disable:{null:[]},document:zu,flow:qu,flowInitial:Wu,insideSpan:Xu,string:Gu,text:Yu},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],A=[];const a={attempt:m(function(y,g){f(y,g.from)}),check:m(h),consume:function(y){V(y)?(r.line++,r.column=1,r.offset+=y===-3?2:1,v()):y!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=y},enter:function(y,g){const x=g||{};return x.type=y,x.start=d(),l.events.push(["enter",x,l]),A.push(x),x},exit:function(y){const g=A.pop();return g.end=d(),l.events.push(["exit",g,l]),g},interrupt:m(h,{interrupt:!0})},l={code:null,containerState:{},defineSkip:function(y){o[y.line]=y.column,v()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(y,g){return function(x,k){let E=-1;const C=[];let I;for(;++E<x.length;){const S=x[E];let P;if(typeof S=="string")P=S;else switch(S){case-5:P="\r";break;case-4:P=`
20
+ `),r=r.replace(/\n/g,"<br/>"),r}createContainer(e){var t;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||kc)();if(!n)return;const r=(t=this.props.containerTagName)!==null&&t!==void 0?t:"body",o=r==="body"||r==="fragment"?n.body:n.createElement(r);if(e.match(xc)){if(process.env.NODE_ENV!=="production")throw new Error("HTML documents as Interweave content are not supported.")}else o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?vc(e):e);return o}extractAttributes(e){const{allowAttributes:t}=this.props,n={};let r=0;return e.nodeType===1&&e.attributes&&([...e.attributes].forEach(o=>{const{name:i,value:s}=o,A=i.toLowerCase(),a=ya[A]||ya[i];if(!this.isSafe(e)||!A.match(Ec)&&(!t&&(!a||a===2)||A.startsWith("on")||s.replace(/(\s|\0|&#x0([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let l=A==="style"?this.extractStyleAttribute(e):s;a===4?l=!0:a===3?l=Number.parseFloat(String(l)):a!==5&&(l=String(l)),n[gc[A]||A]=this.applyAttributeFilters(A,l),r+=1}),r!==0)?n:null}extractStyleAttribute(e){const t={};return Array.from(e.style).forEach(n=>{const r=e.style[n];(typeof r=="string"||typeof r=="number")&&(t[n.replace(/-([a-z])/g,(o,i)=>String(i).toUpperCase())]=r)}),t}getTagConfig(e){const t={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return Rr[e]?{...t,...Rr[e],tagName:e}:t}isSafe(e){if(typeof HTMLAnchorElement<"u"&&e instanceof HTMLAnchorElement){const t=e.getAttribute("href");if(t!=null&&t.startsWith("#"))return!0;const n=e.protocol.toLowerCase();return n===":"||n==="http:"||n==="https:"||n==="mailto:"||n==="tel:"}return!0}isTagAllowed(e){return!this.banned.has(e)&&!this.blocked.has(e)&&(this.props.allowElements||this.allowed.has(e))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(e,t){const{noHtml:n,noHtmlExceptMatchers:r,allowElements:o,transform:i,transformOnlyAllowList:s}=this.props;let A=[],a="";return[...e.childNodes].forEach(l=>{if(l.nodeType===1){const u=l.nodeName.toLowerCase(),d=this.getTagConfig(u);a&&(A.push(a),a="");const p=this.applyNodeFilters(u,l);if(!p)return;let h;if(i&&(!s||this.isTagAllowed(u))){this.keyIndex+=1;const m=this.keyIndex;h=this.parseNode(p,d);const f=i(p,h,d);if(f===null)return;if(typeof f<"u")return void A.push(R.cloneElement(f,{key:m}));this.keyIndex=m-1}if(this.banned.has(u))return;if(n||r&&u!=="br"||!this.isTagAllowed(u)||!o&&!this.canRenderChild(t,d))A=[...A,...this.parseNode(p,d.tagName?d:t)];else{var c;this.keyIndex+=1;const m=this.extractAttributes(p),f={tagName:u};m&&(f.attributes=m),d.void&&(f.selfClose=d.void),A.push(R.createElement(va,{...f,key:this.keyIndex},(c=h)!==null&&c!==void 0?c:this.parseNode(p,d)))}}else if(l.nodeType===3){const u=n&&!r?l.textContent:this.applyMatchers(l.textContent||"",t);Array.isArray(u)?A=[...A,...u]:a+=u}}),a&&A.push(a),A}replaceTokens(e,t){if(!e.includes("{{{"))return e;const n=[];let r=e,o=null;for(;o=r.match(_c);){const[i,s]=o,A=o.index,a=i.includes("/");if(process.env.NODE_ENV!=="production"&&!t[s])throw new Error(`Token "${s}" found but no matching element to replace with.`);A>0&&(n.push(r.slice(0,A)),r=r.slice(A));const{children:l,matcher:c,props:u}=t[s];let d;if(a)d=i.length,n.push(c.createElement(l,u));else{const p=r.match(new RegExp(`{{{/${s}}}}`));if(process.env.NODE_ENV!=="production"&&!p)throw new Error(`Closing token missing for interpolated element "${s}".`);d=p.index+p[0].length,n.push(c.createElement(this.replaceTokens(r.slice(i.length,p.index),t),u))}r=r.slice(d)}return r.length>0&&n.push(r),n.length===0?"":n.length===1&&typeof n[0]=="string"?n[0]:n}};function Pc(e){var t;const{attributes:n,className:r,containerTagName:o,content:i,emptyContent:s,parsedContent:A,tagName:a,noWrap:l}=e,c=(t=o??a)!==null&&t!==void 0?t:"span",u=c==="fragment"||l;let d;if(A)d=A;else{const p=new xa(i??"",e).parse();p.length>0&&(d=p)}return d||(d=s),u?R.createElement(R.Fragment,null,d):R.createElement(va,{attributes:n,className:r,tagName:c},d)}function Cc(e){const{attributes:t,className:n,content:r="",disableFilters:o=!1,disableMatchers:i=!1,emptyContent:s=null,filters:A=[],matchers:a=[],onAfterParse:l=null,onBeforeParse:c=null,tagName:u="span",noWrap:d=!1,...p}=e,h=i?[]:a,m=o?[]:A,f=c?[c]:[],v=l?[l]:[];h.forEach(k=>{k.onBeforeParse&&f.push(k.onBeforeParse.bind(k)),k.onAfterParse&&v.push(k.onAfterParse.bind(k))});const y=f.reduce((k,E)=>{const C=E(k,e);if(process.env.NODE_ENV!=="production"&&typeof C!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return C},r??""),g=new xa(y,p,h,m),x=v.reduce((k,E)=>{const C=E(k,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(C))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return C},g.parse());return R.createElement(Pc,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:s,noWrap:d,parsedContent:x.length===0?void 0:x,tagName:u})}const Dc=({children:e})=>_("div",{style:{whiteSpace:"normal"},children:_(Cc,{content:typeof e=="string"?e:""})}),Sc={autoConfig:!0},Ea=(e,t,n)=>{var r;if(!e.detail.currPath)return!1;const o=t[e.detail.currPath];return!!o&&(((r=o.renderHtml)==null?void 0:r.map(i=>i.toUpperCase()).includes(n))??!1)},Bc=e=>{const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];i==="<"?r?(t.push(n),n=i):(r=!0,n=i):i===">"?(n+=i,t.push(n),n="",r=!1):r?n+=i:t.push(i)}return n!==""&&t.push(n),t},Ic=e=>{const{getFlow:t}=Ln(),{messages:n,replaceMessages:r}=ln(),{settings:o}=ha(),{hasChatHistoryLoaded:i}=ma(),s={...e,...Sc},A=s.htmlComponent?s.htmlComponent:Dc;Z(()=>{var c,u;if(i){const d=[...n];for(let p=0;p<d.length&&p<(((c=o.chatHistory)==null?void 0:c.maxEntries)??30);p++){const h=d[p];(u=h.tags)!=null&&u.includes("rcb-html-renderer-plugin:parsed")&&(h.contentWrapper=A)}r(d)}},[i]);const a=async c=>{var u;const d=(u=c.data.message)==null?void 0:u.sender.toUpperCase();typeof c.data.message.content=="string"&&Ea(c,t(),d)&&(c.type==="rcb-start-simulate-stream-message"&&(c.data.simulateStreamChunker=Bc),c.data.message.contentWrapper=A,c.data.message.tags||(c.data.message.tags=[]),c.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};je(j.PRE_INJECT_MESSAGE,a),je(j.CHUNK_STREAM_MESSAGE,a),je(j.START_STREAM_MESSAGE,a),je(j.START_SIMULATE_STREAM_MESSAGE,a),je(j.START_SPEAK_AUDIO,async c=>{Ea(c,t(),"BOT")&&(c.data.textToRead=(u=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(u,"text/html").body.textContent||"":u.replace(/<\/?[^>]+(>|$)/g,""))(c.data.textToRead))});const l={name:"@rcb-plugins/html-renderer"};return s!=null&&s.autoConfig&&(l.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),l},Tc=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qc=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mc={};function _a(e,t){return(Mc.jsx?Qc:Tc).test(e)}const Oc=/[ \t\n\f\r]/g;function ka(e){return e.replace(Oc,"")===""}class cn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}function Pa(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new cn(n,r,t)}function Hr(e){return e.toLowerCase()}cn.prototype.property={},cn.prototype.normal={},cn.prototype.space=null;class We{constructor(t,n){this.property=t,this.attribute=n}}We.prototype.space=null,We.prototype.boolean=!1,We.prototype.booleanish=!1,We.prototype.overloadedBoolean=!1,We.prototype.number=!1,We.prototype.commaSeparated=!1,We.prototype.spaceSeparated=!1,We.prototype.commaOrSpaceSeparated=!1,We.prototype.mustUseProperty=!1,We.prototype.defined=!1;let Nc=0;const ee=Dt(),xe=Dt(),Ca=Dt(),O=Dt(),fe=Dt(),jt=Dt(),He=Dt();function Dt(){return 2**++Nc}const Ur=Object.freeze(Object.defineProperty({__proto__:null,boolean:ee,booleanish:xe,commaOrSpaceSeparated:He,commaSeparated:jt,number:O,overloadedBoolean:Ca,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),Fr=Object.keys(Ur);class zr extends We{constructor(t,n,r,o){let i=-1;if(super(t,n),Da(this,"space",o),typeof r=="number")for(;++i<Fr.length;){const s=Fr[i];Da(this,Fr[i],(r&Ur[s])===Ur[s])}}}function Da(e,t,n){n&&(e[t]=n)}zr.prototype.defined=!0;const Lc={}.hasOwnProperty;function Wt(e){const t={},n={};let r;for(r in e.properties)if(Lc.call(e.properties,r)){const o=e.properties[r],i=new zr(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Hr(r)]=r,n[Hr(i.attribute)]=r}return new cn(t,n,e.space)}const Sa=Wt({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Ba=Wt({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ia(e,t){return t in e?e[t]:t}function Ta(e,t){return Ia(e,t.toLowerCase())}const Qa=Wt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ta,properties:{xmlns:null,xmlnsXLink:null}}),Ma=Wt({transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:fe,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:O,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:fe,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:xe,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null}}),Rc=Wt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ta,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jt,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:ee,allowPaymentRequest:ee,allowUserMedia:ee,alt:null,as:null,async:ee,autoCapitalize:null,autoComplete:fe,autoFocus:ee,autoPlay:ee,blocking:fe,capture:null,charSet:null,checked:ee,cite:null,className:fe,cols:O,colSpan:null,content:null,contentEditable:xe,controls:ee,controlsList:fe,coords:O|jt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ee,defer:ee,dir:null,dirName:null,disabled:ee,download:Ca,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ee,formTarget:null,headers:fe,height:O,hidden:ee,high:O,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:ee,inputMode:null,integrity:null,is:null,isMap:ee,itemId:null,itemProp:fe,itemRef:fe,itemScope:ee,itemType:fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ee,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:ee,muted:ee,name:null,nonce:null,noModule:ee,noValidate:ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ee,optimum:O,pattern:null,ping:fe,placeholder:null,playsInline:ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ee,referrerPolicy:null,rel:fe,required:ee,reversed:ee,rows:O,rowSpan:O,sandbox:fe,scope:null,scoped:ee,seamless:ee,selected:ee,shadowRootClonable:ee,shadowRootDelegatesFocus:ee,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:xe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:ee,useMap:null,value:xe,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ee,declare:ee,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:ee,noHref:ee,noShade:ee,noWrap:ee,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:xe,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ee,disableRemotePlayback:ee,prefix:null,property:null,results:O,security:null,unselectable:null}}),Hc=Wt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Ia,properties:{about:He,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:fe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jt,g2:jt,glyphName:jt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:He,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:He,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:He,rev:He,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:He,requiredFeatures:He,requiredFonts:He,requiredFormats:He,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:He,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:He,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:He,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Uc=/^data[-\w.:]+$/i,Oa=/-[a-z]/g,Fc=/[A-Z]/g;function zc(e){return"-"+e.toLowerCase()}function jc(e){return e.charAt(1).toUpperCase()}const Wc={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"},qc=Pa([Ba,Sa,Qa,Ma,Rc],"html"),jr=Pa([Ba,Sa,Qa,Ma,Hc],"svg");function Na(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wr,La,Ra,qt={},Gc=function(){if(Ra)return qt;Ra=1;var e=qt&&qt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(qt,"__esModule",{value:!0}),qt.default=function(n,r){var o=null;if(!n||typeof n!="string")return o;var i=(0,t.default)(n),s=typeof r=="function";return i.forEach(function(A){if(A.type==="declaration"){var a=A.property,l=A.value;s?r(a,l,A):l&&((o=o||{})[a]=l)}}),o};var t=e(function(){if(La)return Wr;La=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,A=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(d){return d?d.replace(l,c):c}return Wr=function(d,p){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];p=p||{};var h=1,m=1;function f(S){var P=S.match(r);P&&(h+=P.length);var D=S.lastIndexOf(`
21
+ `);m=~D?S.length-D:m+S.length}function v(){var S={line:h,column:m};return function(P){return P.position=new y(S),k(),P}}function y(S){this.start=S,this.end={line:h,column:m},this.source=p.source}function g(S){var P=new Error(p.source+":"+h+":"+m+": "+S);if(P.reason=S,P.filename=p.source,P.line=h,P.column=m,P.source=d,!p.silent)throw P}function x(S){var P=S.exec(d);if(P){var D=P[0];return f(D),d=d.slice(D.length),P}}function k(){x(o)}function E(S){var P;for(S=S||[];P=C();)P!==!1&&S.push(P);return S}function C(){var S=v();if(d.charAt(0)=="/"&&d.charAt(1)=="*"){for(var P=2;c!=d.charAt(P)&&(d.charAt(P)!="*"||d.charAt(P+1)!="/");)++P;if(P+=2,c===d.charAt(P-1))return g("End of comment missing");var D=d.slice(2,P-2);return m+=2,f(D),d=d.slice(P),m+=2,S({type:"comment",comment:D})}}function I(){var S=v(),P=x(i);if(P){if(C(),!x(s))return g("property missing ':'");var D=x(A),B=S({type:"declaration",property:u(P[0].replace(n,c)),value:D?u(D[0].replace(n,c)):c});return x(a),B}}return y.prototype.content=d,k(),function(){var S,P=[];for(E(P);S=I();)S!==!1&&(P.push(S),E(P));return P}()},Wr}());return qt}();const Ha=Na(Gc),Yc=Ha.default||Ha,Ua=Fa("end"),qr=Fa("start");function Fa(e){return function(t){const n=t&&t.position&&t.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function un(e){return e&&typeof e=="object"?"position"in e||"type"in e?za(e.position):"start"in e||"end"in e?za(e):"line"in e||"column"in e?Gr(e):"":""}function Gr(e){return ja(e&&e.line)+":"+ja(e&&e.column)}function za(e){return Gr(e&&e.start)+"-"+Gr(e&&e.end)}function ja(e){return e&&typeof e=="number"?e:1}class Be extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!1;if(n&&(i="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:{...n}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?i.ruleId=r:(i.source=r.slice(0,a),i.ruleId=r.slice(a+1))}if(!i.place&&i.ancestors&&i.ancestors){const a=i.ancestors[i.ancestors.length-1];a&&(i.place=a.position)}const A=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=A?A.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=A?A.line:void 0,this.name=un(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Be.prototype.file="",Be.prototype.name="",Be.prototype.reason="",Be.prototype.message="",Be.prototype.stack="",Be.prototype.column=void 0,Be.prototype.line=void 0,Be.prototype.ancestors=void 0,Be.prototype.cause=void 0,Be.prototype.fatal=void 0,Be.prototype.place=void 0,Be.prototype.ruleId=void 0,Be.prototype.source=void 0;const Yr={}.hasOwnProperty,Xc=new Map,Vc=/[A-Z]/g,Kc=/-([a-z])/g,$c=new Set(["table","tbody","thead","tfoot","tr"]),Jc=new Set(["td","th"]),Wa="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Zc(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(s,A){return a;function a(l,c,u,d){const p=Array.isArray(u.children),h=qr(l);return A(c,u,d,p,{columnNumber:h?h.column-1:void 0,fileName:s,lineNumber:h?h.line:void 0},void 0)}}(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=function(s,A,a){return l;function l(c,u,d,p){const h=Array.isArray(d.children)?a:A;return p?h(u,d,p):h(u,d)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?jr:qc,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=qa(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function qa(e,t,n){return t.type==="element"?function(r,o,i){const s=r.schema;let A=s;o.tagName.toLowerCase()==="svg"&&s.space==="html"&&(A=jr,r.schema=A),r.ancestors.push(o);const a=Ya(r,o.tagName,!1),l=function(u,d){const p={};let h,m;for(m in d.properties)if(m!=="children"&&Yr.call(d.properties,m)){const f=eu(u,m,d.properties[m]);if(f){const[v,y]=f;u.tableCellAlignToStyle&&v==="align"&&typeof y=="string"&&Jc.has(d.tagName)?h=y:p[v]=y}}return h&&((p.style||(p.style={}))[u.stylePropertyNameCase==="css"?"text-align":"textAlign"]=h),p}(r,o);let c=Vr(r,o);return $c.has(o.tagName)&&(c=c.filter(function(u){return typeof u!="string"||!function(d){return typeof d=="object"?d.type==="text"&&ka(d.value):ka(d)}(u)})),Ga(r,l,a,o),Xr(l,c),r.ancestors.pop(),r.schema=s,r.create(o,a,l,i)}(e,t,n):t.type==="mdxFlowExpression"||t.type==="mdxTextExpression"?function(r,o){if(o.data&&o.data.estree&&r.evaluater){const i=o.data.estree.body[0];return i.type,r.evaluater.evaluateExpression(i.expression)}dn(r,o.position)}(e,t):t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"?function(r,o,i){const s=r.schema;let A=s;o.name==="svg"&&s.space==="html"&&(A=jr,r.schema=A),r.ancestors.push(o);const a=o.name===null?r.Fragment:Ya(r,o.name,!0),l=function(u,d){const p={};for(const h of d.attributes)if(h.type==="mdxJsxExpressionAttribute")if(h.data&&h.data.estree&&u.evaluater){const m=h.data.estree.body[0];m.type;const f=m.expression;f.type;const v=f.properties[0];v.type,Object.assign(p,u.evaluater.evaluateExpression(v.argument))}else dn(u,d.position);else{const m=h.name;let f;if(h.value&&typeof h.value=="object")if(h.value.data&&h.value.data.estree&&u.evaluater){const v=h.value.data.estree.body[0];v.type,f=u.evaluater.evaluateExpression(v.expression)}else dn(u,d.position);else f=h.value===null||h.value;p[m]=f}return p}(r,o),c=Vr(r,o);return Ga(r,l,a,o),Xr(l,c),r.ancestors.pop(),r.schema=s,r.create(o,a,l,i)}(e,t,n):t.type==="mdxjsEsm"?function(r,o){if(o.data&&o.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(o.data.estree);dn(r,o.position)}(e,t):t.type==="root"?function(r,o,i){const s={};return Xr(s,Vr(r,o)),r.create(o,r.Fragment,s,i)}(e,t,n):t.type==="text"?function(r,o){return o.value}(0,t):void 0}function Ga(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xr(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Vr(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Xc;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const a=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(a){const l=o.get(a)||0;s=a+"-"+l,o.set(a,l+1)}}const A=qa(e,i,s);A!==void 0&&n.push(A)}return n}function eu(e,t,n){const r=function(o,i){const s=Hr(i);let A=i,a=We;if(s in o.normal)return o.property[o.normal[s]];if(s.length>4&&s.slice(0,4)==="data"&&Uc.test(i)){if(i.charAt(4)==="-"){const l=i.slice(5).replace(Oa,jc);A="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=i.slice(4);if(!Oa.test(l)){let c=l.replace(Fc,zc);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}a=zr}return new a(A,i)}(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(o){const i={};return(o[o.length-1]===""?[...o,""]:o).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}(n):function(o){return o.join(" ").trim()}(n)),r.property==="style"){let o=typeof n=="object"?n:function(i,s){const A={};try{Yc(s,a)}catch(l){if(!i.ignoreInvalidStyle){const c=l,u=new Be("Cannot parse `style` attribute",{ancestors:i.ancestors,cause:c,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=i.filePath||void 0,u.url=Wa+"#cannot-parse-style-attribute",u}}return A;function a(l,c){let u=l;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(Kc,nu)),A[u]=c}}(e,String(n));return e.stylePropertyNameCase==="css"&&(o=function(i){const s={};let A;for(A in i)Yr.call(i,A)&&(s[tu(A)]=i[A]);return s}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Wc[r.property]||r.property:r.attribute,n]}}function Ya(e,t,n){let r;if(n)if(t.includes(".")){const o=t.split(".");let i,s=-1;for(;++s<o.length;){const A=_a(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};i=i?{type:"MemberExpression",object:i,property:A,computed:!(!s||A.type!=="Literal"),optional:!1}:A}r=i}else r=_a(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Yr.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);dn(e)}function dn(e,t){const n=new Be("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Wa+"#cannot-handle-mdx-estrees-without-createevaluater",n}function tu(e){let t=e.replace(Vc,ru);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function nu(e,t){return t.toUpperCase()}function ru(e){return"-"+e.toLowerCase()}const Kr={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Hn={};function Xa(e,t,n){if(function(r){return!(!r||typeof r!="object")}(e)){if("value"in e)return e.type!=="html"||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Va(e.children,t,n)}return Array.isArray(e)?Va(e,t,n):""}function Va(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Xa(e[o],t,n);return r.join("")}const Ka=document.createElement("i");function $r(e){const t="&"+e+";";Ka.innerHTML=t;const n=Ka.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function rt(e,t,n,r){const o=e.length;let i,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)i=r.slice(s,s+1e4),i.unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function qe(e,t){return e.length>0?(rt(e,e.length,0,t),e):t}const $a={}.hasOwnProperty;function ou(e){const t={};let n=-1;for(;++n<e.length;)iu(t,e[n]);return t}function iu(e,t){let n;for(n in t){const r=($a.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){$a.call(r,i)||(r[i]=[]);const s=o[i];au(r[i],Array.isArray(s)?s:s?[s]:[])}}}function au(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);rt(e,0,0,r)}function Ja(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function Gt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ot=yt(/[A-Za-z]/),Ue=yt(/[\dA-Za-z]/),su=yt(/[#-'*+\--9=?A-Z^-~]/);function Jr(e){return e!==null&&(e<32||e===127)}const Zr=yt(/\d/),Au=yt(/[\dA-Fa-f]/),lu=yt(/[!-/:-@[-`{-~]/);function V(e){return e!==null&&e<-2}function Me(e){return e!==null&&(e<0||e===32)}function ue(e){return e===-2||e===-1||e===32}const cu=yt(new RegExp("\\p{P}|\\p{S}","u")),uu=yt(/\s/);function yt(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Yt(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&Ue(e.charCodeAt(n+1))&&Ue(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const A=e.charCodeAt(n+1);i<56320&&A>56319&&A<57344?(s=String.fromCharCode(i,A),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function he(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(A){return ue(A)?(e.enter(n),s(A)):t(A)};function s(A){return ue(A)&&i++<o?(e.consume(A),s):(e.exit(n),t(A))}}const du={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(i){return i===null?void e.consume(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),he(e,t,"linePrefix"))},function(i){return e.enter("paragraph"),r(i)});let n;return t;function r(i){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(i)}function o(i){return i===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(i)):V(i)?(e.consume(i),e.exit("chunkText"),r):(e.consume(i),o)}}},pu={tokenize:function(e){const t=this,n=[];let r,o,i,s=0;return A;function A(g){if(s<n.length){const x=n[s];return t.containerState=x[1],e.attempt(x[0].continuation,a,l)(g)}return l(g)}function a(g){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const x=t.events.length;let k,E=x;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){k=t.events[E][1].end;break}v(s);let C=x;for(;C<t.events.length;)t.events[C][1].end={...k},C++;return rt(t.events,E+1,0,t.events.slice(x)),t.events.length=C,l(g)}return A(g)}function l(g){if(s===n.length){if(!r)return d(g);if(r.currentConstruct&&r.currentConstruct.concrete)return h(g);t.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Za,c,u)(g)}function c(g){return r&&y(),v(s),d(g)}function u(g){return t.parser.lazy[t.now().line]=s!==n.length,i=t.now().offset,h(g)}function d(g){return t.containerState={},e.attempt(Za,p,h)(g)}function p(g){return s++,n.push([t.currentConstruct,t.containerState]),d(g)}function h(g){return g===null?(r&&y(),v(0),void e.consume(g)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(g))}function m(g){return g===null?(f(e.exit("chunkFlow"),!0),v(0),void e.consume(g)):V(g)?(e.consume(g),f(e.exit("chunkFlow")),s=0,t.interrupt=void 0,A):(e.consume(g),m)}function f(g,x){const k=t.sliceStream(g);if(x&&k.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(k),t.parser.lazy[g.start.line]){let E=r.events.length;for(;E--;)if(r.events[E][1].start.offset<i&&(!r.events[E][1].end||r.events[E][1].end.offset>i))return;const C=t.events.length;let I,S,P=C;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(I){S=t.events[P][1].end;break}I=!0}for(v(s),E=C;E<t.events.length;)t.events[E][1].end={...S},E++;rt(t.events,P+1,0,t.events.slice(C)),t.events.length=E}}function v(g){let x=n.length;for(;x-- >g;){const k=n[x];t.containerState=k[1],k[0].exit.call(t,e)}n.length=g}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Za={tokenize:function(e,t,n){return he(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function es(e){return e===null||Me(e)||uu(e)?1:cu(e)?2:void 0}function eo(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const to={name:"attention",resolveAll:function(e,t){let n,r,o,i,s,A,a,l,c=-1;for(;++c<e.length;)if(e[c][0]==="enter"&&e[c][1].type==="attentionSequence"&&e[c][1]._close){for(n=c;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;A=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const u={...e[n][1].end},d={...e[c][1].start};ts(u,-A),ts(d,A),i={type:A>1?"strongSequence":"emphasisSequence",start:u,end:{...e[n][1].end}},s={type:A>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},o={type:A>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:A>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[n][1].end={...i.start},e[c][1].start={...s.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=qe(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=qe(a,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),a=qe(a,eo(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=qe(a,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,a=qe(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,rt(e,n-1,c-n+3,a),c=n+a.length-l-2;break}}for(c=-1;++c<e.length;)e[c][1].type==="attentionSequence"&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=es(r);let i;return function(A){return i=A,e.enter("attentionSequence"),s(A)};function s(A){if(A===i)return e.consume(A),s;const a=e.exit("attentionSequence"),l=es(A),c=!l||l===2&&o||n.includes(A),u=!o||o===2&&l||n.includes(r);return a._open=!!(i===42?c:c&&(o||!u)),a._close=!!(i===42?u:u&&(l||!c)),t(A)}}};function ts(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const fu={name:"autolink",tokenize:function(e,t,n){let r=0;return function(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(d){return ot(d)?(e.consume(d),i):d===64?n(d):a(d)}function i(d){return d===43||d===45||d===46||Ue(d)?(r=1,s(d)):a(d)}function s(d){return d===58?(e.consume(d),r=0,A):(d===43||d===45||d===46||Ue(d))&&r++<32?(e.consume(d),s):(r=0,a(d))}function A(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Jr(d)?n(d):(e.consume(d),A)}function a(d){return d===64?(e.consume(d),l):su(d)?(e.consume(d),a):n(d)}function l(d){return Ue(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,l):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):u(d)}function u(d){if((d===45||Ue(d))&&r++<63){const p=d===45?u:c;return e.consume(d),p}return n(d)}}},Un={partial:!0,tokenize:function(e,t,n){return function(o){return ue(o)?he(e,r,"linePrefix")(o):r(o)};function r(o){return o===null||V(o)?t(o):n(o)}}},ns={continuation:{tokenize:function(e,t,n){const r=this;return function(i){return ue(i)?he(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return e.attempt(ns,t,n)(i)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(i){if(i===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return n(i)};function o(i){return ue(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}},rs={name:"characterEscape",tokenize:function(e,t,n){return function(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r};function r(o){return lu(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}},os={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,s=0;return function(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),A};function A(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,i=Ue,l(c))}function a(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Au,l):(e.enter("characterReferenceValue"),o=7,i=Zr,l(c))}function l(c){if(c===59&&s){const u=e.exit("characterReferenceValue");return i!==Ue||$r(r.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(c)}return i(c)&&s++<o?(e.consume(c),l):n(c)}}},is={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)};function o(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}},as={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(g,x,k){let E=0;return C;function C(B){return g.enter("lineEnding"),g.consume(B),g.exit("lineEnding"),I}function I(B){return g.enter("codeFencedFence"),ue(B)?he(g,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):S(B)}function S(B){return B===i?(g.enter("codeFencedFenceSequence"),P(B)):k(B)}function P(B){return B===i?(E++,g.consume(B),P):E>=A?(g.exit("codeFencedFenceSequence"),ue(B)?he(g,D,"whitespace")(B):D(B)):k(B)}function D(B){return B===null||V(B)?(g.exit("codeFencedFence"),x(B)):k(B)}}};let i,s=0,A=0;return function(g){return function(x){const k=r.events[r.events.length-1];return s=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,i=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(x)}(g)};function a(g){return g===i?(A++,e.consume(g),a):A<3?n(g):(e.exit("codeFencedFenceSequence"),ue(g)?he(e,l,"whitespace")(g):l(g))}function l(g){return g===null||V(g)?(e.exit("codeFencedFence"),r.interrupt?t(g):e.check(is,p,y)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===null||V(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(g)):ue(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),he(e,u,"whitespace")(g)):g===96&&g===i?n(g):(e.consume(g),c)}function u(g){return g===null||V(g)?l(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||V(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(g)):g===96&&g===i?n(g):(e.consume(g),d)}function p(g){return e.attempt(o,y,h)(g)}function h(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),m}function m(g){return s>0&&ue(g)?he(e,f,"linePrefix",s+1)(g):f(g)}function f(g){return g===null||V(g)?e.check(is,p,y)(g):(e.enter("codeFlowValue"),v(g))}function v(g){return g===null||V(g)?(e.exit("codeFlowValue"),f(g)):(e.consume(g),v)}function y(g){return e.exit("codeFenced"),t(g)}}},no={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(a){return e.enter("codeIndented"),he(e,o,"linePrefix",5)(a)};function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?i(a):n(a)}function i(a){return a===null?A(a):V(a)?e.attempt(hu,i,A)(a):(e.enter("codeFlowValue"),s(a))}function s(a){return a===null||V(a)?(e.exit("codeFlowValue"),i(a)):(e.consume(a),s)}function A(a){return e.exit("codeIndented"),t(a)}}},hu={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):V(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):he(e,i,"linePrefix",5)(s)}function i(s){const A=r.events[r.events.length-1];return A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?t(s):V(s)?o(s):n(s)}}},gu={name:"codeText",previous:function(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(e){let t,n,r=e.length-4,o=3;if(!(e[o][1].type!=="lineEnding"&&e[o][1].type!=="space"||e[r][1].type!=="lineEnding"&&e[r][1].type!=="space")){for(t=o;++t<r;)if(e[t][1].type==="codeTextData"){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}}for(t=o-1,r++;++t<=r;)n===void 0?t!==r&&e[t][1].type!=="lineEnding"&&(n=t):(t===r||e[t][1].type==="lineEnding")&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)};function s(c){return c===96?(e.consume(c),i++,s):(e.exit("codeTextSequence"),A(c))}function A(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),A):c===96?(o=e.enter("codeTextSequence"),r=0,l(c)):V(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),A):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||V(c)?(e.exit("codeTextData"),A(c)):(e.consume(c),a)}function l(c){return c===96?(e.consume(c),r++,l):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",a(c))}}};class mu{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&pn(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),pn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),pn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);pn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);pn(this.left,n.reverse())}}}function pn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ss(e){const t={};let n,r,o,i,s,A,a,l=-1;const c=new mu(e);for(;++l<c.length;){for(;l in t;)l=t[l];if(n=c.get(l),l&&n[1].type==="chunkFlow"&&c.get(l-1)[1].type==="listItemPrefix"&&(A=n[1]._tokenizer.events,o=0,o<A.length&&A[o][1].type==="lineEndingBlank"&&(o+=2),o<A.length&&A[o][1].type==="content"))for(;++o<A.length&&A[o][1].type!=="content";)A[o][1].type==="chunkText"&&(A[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,yu(c,l)),l=t[l],a=!0);else if(n[1]._container){for(o=l,r=void 0;o--;)if(i=c.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(i[1].type!=="linePrefix")break;r&&(n[1].end={...c.get(r)[1].start},s=c.slice(r,l),s.unshift(n),c.splice(r,l-r+1,s))}}return rt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}function yu(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],s=n._tokenizer||r.parser[n.contentType](n.start),A=s.events,a=[],l={};let c,u,d=-1,p=n,h=0,m=0;const f=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),u&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++d<A.length;)A[d][0]==="exit"&&A[d-1][0]==="enter"&&A[d][1].type===A[d-1][1].type&&A[d][1].start.line!==A[d][1].end.line&&(m=d+1,f.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):f.pop(),d=f.length;d--;){const v=A.slice(f[d],f[d+1]),y=i.pop();a.push([y,y+v.length-1]),e.splice(y,2,v)}for(a.reverse(),d=-1;++d<a.length;)l[h+a[d][0]]=h+a[d][1],h+=a[d][1]-a[d][0]-1;return l}const vu={resolve:function(e){return ss(e),e},tokenize:function(e,t){let n;return function(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(s)};function r(s){return s===null?o(s):V(s)?e.check(bu,i,o)(s):(e.consume(s),r)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function i(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},bu={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),he(e,o,"linePrefix")};function o(i){if(i===null||V(i))return n(i);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function As(e,t,n,r,o,i,s,A,a){const l=a||Number.POSITIVE_INFINITY;let c=0;return function(f){return f===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(f),e.exit(i),u):f===null||f===32||f===41||Jr(f)?n(f):(e.enter(r),e.enter(s),e.enter(A),e.enter("chunkString",{contentType:"string"}),h(f))};function u(f){return f===62?(e.enter(i),e.consume(f),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(A),e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===62?(e.exit("chunkString"),e.exit(A),u(f)):f===null||f===60||V(f)?n(f):(e.consume(f),f===92?p:d)}function p(f){return f===60||f===62||f===92?(e.consume(f),d):d(f)}function h(f){return c||f!==null&&f!==41&&!Me(f)?c<l&&f===40?(e.consume(f),c++,h):f===41?(e.consume(f),c--,h):f===null||f===32||f===40||Jr(f)?n(f):(e.consume(f),f===92?m:h):(e.exit("chunkString"),e.exit(A),e.exit(s),e.exit(r),t(f))}function m(f){return f===40||f===41||f===92?(e.consume(f),h):h(f)}}function ls(e,t,n,r,o,i){const s=this;let A,a=0;return function(d){return e.enter(r),e.enter(o),e.consume(d),e.exit(o),e.enter(i),l};function l(d){return a>999||d===null||d===91||d===93&&!A||d===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):V(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||V(d)||a++>999?(e.exit("chunkString"),l(d)):(e.consume(d),A||(A=!ue(d)),d===92?u:c)}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function cs(e,t,n,r,o,i){let s;return function(u){return u===34||u===39||u===40?(e.enter(r),e.enter(o),e.consume(u),e.exit(o),s=u===40?41:u,A):n(u)};function A(u){return u===s?(e.enter(o),e.consume(u),e.exit(o),e.exit(r),t):(e.enter(i),a(u))}function a(u){return u===s?(e.exit(i),A(s)):u===null?n(u):V(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),he(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(u){return u===s||u===null||V(u)?(e.exit("chunkString"),a(u)):(e.consume(u),u===92?c:l)}function c(u){return u===s||u===92?(e.consume(u),l):l(u)}}function fn(e,t){let n;return function r(o){return V(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):ue(o)?he(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const wu={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(u){return e.enter("definition"),function(d){return ls.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}(u)};function i(u){return o=Gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(e.enter("definitionMarker"),e.consume(u),e.exit("definitionMarker"),s):n(u)}function s(u){return Me(u)?fn(e,A)(u):A(u)}function A(u){return As(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(u)}function a(u){return e.attempt(xu,l,l)(u)}function l(u){return ue(u)?he(e,c,"whitespace")(u):c(u)}function c(u){return u===null||V(u)?(e.exit("definition"),r.parser.defined.push(o),t(u)):n(u)}}},xu={partial:!0,tokenize:function(e,t,n){return function(s){return Me(s)?fn(e,r)(s):n(s)};function r(s){return cs(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return ue(s)?he(e,i,"whitespace")(s):i(s)}function i(s){return s===null||V(s)?t(s):n(s)}}},Eu={name:"hardBreakEscape",tokenize:function(e,t,n){return function(o){return e.enter("hardBreakEscape"),e.consume(o),r};function r(o){return V(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}},_u={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;return e[i][1].type==="whitespace"&&(i+=2),o-2>i&&e[o][1].type==="whitespace"&&(o-=2),e[o][1].type==="atxHeadingSequence"&&(i===o-1||o-4>i&&e[o-2][1].type==="whitespace")&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},rt(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(a){return e.enter("atxHeading"),function(l){return e.enter("atxHeadingSequence"),o(l)}(a)};function o(a){return a===35&&r++<6?(e.consume(a),o):a===null||Me(a)?(e.exit("atxHeadingSequence"),i(a)):n(a)}function i(a){return a===35?(e.enter("atxHeadingSequence"),s(a)):a===null||V(a)?(e.exit("atxHeading"),t(a)):ue(a)?he(e,i,"whitespace")(a):(e.enter("atxHeadingText"),A(a))}function s(a){return a===35?(e.consume(a),s):(e.exit("atxHeadingSequence"),i(a))}function A(a){return a===null||a===35||Me(a)?(e.exit("atxHeadingText"),i(a)):(e.consume(a),A)}}},ku=["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"],us=["pre","script","style","textarea"],Pu={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&(e[t][0]!=="enter"||e[t][1].type!=="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){const r=this;let o,i,s,A,a;return function(w){return function($){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume($),l}(w)};function l(w){return w===33?(e.consume(w),c):w===47?(e.consume(w),i=!0,p):w===63?(e.consume(w),o=3,r.interrupt?t:U):ot(w)?(e.consume(w),s=String.fromCharCode(w),h):n(w)}function c(w){return w===45?(e.consume(w),o=2,u):w===91?(e.consume(w),o=5,A=0,d):ot(w)?(e.consume(w),o=4,r.interrupt?t:U):n(w)}function u(w){return w===45?(e.consume(w),r.interrupt?t:U):n(w)}function d(w){return w==="CDATA[".charCodeAt(A++)?(e.consume(w),A===6?r.interrupt?t:P:d):n(w)}function p(w){return ot(w)?(e.consume(w),s=String.fromCharCode(w),h):n(w)}function h(w){if(w===null||w===47||w===62||Me(w)){const $=w===47,F=s.toLowerCase();return $||i||!us.includes(F)?ku.includes(s.toLowerCase())?(o=6,$?(e.consume(w),m):r.interrupt?t(w):P(w)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):i?f(w):v(w)):(o=1,r.interrupt?t(w):P(w))}return w===45||Ue(w)?(e.consume(w),s+=String.fromCharCode(w),h):n(w)}function m(w){return w===62?(e.consume(w),r.interrupt?t:P):n(w)}function f(w){return ue(w)?(e.consume(w),f):I(w)}function v(w){return w===47?(e.consume(w),I):w===58||w===95||ot(w)?(e.consume(w),y):ue(w)?(e.consume(w),v):I(w)}function y(w){return w===45||w===46||w===58||w===95||Ue(w)?(e.consume(w),y):g(w)}function g(w){return w===61?(e.consume(w),x):ue(w)?(e.consume(w),g):v(w)}function x(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,k):ue(w)?(e.consume(w),x):E(w)}function k(w){return w===a?(e.consume(w),a=null,C):w===null||V(w)?n(w):(e.consume(w),k)}function E(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Me(w)?g(w):(e.consume(w),E)}function C(w){return w===47||w===62||ue(w)?v(w):n(w)}function I(w){return w===62?(e.consume(w),S):n(w)}function S(w){return w===null||V(w)?P(w):ue(w)?(e.consume(w),S):n(w)}function P(w){return w===45&&o===2?(e.consume(w),L):w===60&&o===1?(e.consume(w),Q):w===62&&o===4?(e.consume(w),b):w===63&&o===3?(e.consume(w),U):w===93&&o===5?(e.consume(w),M):!V(w)||o!==6&&o!==7?w===null||V(w)?(e.exit("htmlFlowData"),D(w)):(e.consume(w),P):(e.exit("htmlFlowData"),e.check(Cu,re,D)(w))}function D(w){return e.check(Du,B,re)(w)}function B(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),N}function N(w){return w===null||V(w)?D(w):(e.enter("htmlFlowData"),P(w))}function L(w){return w===45?(e.consume(w),U):P(w)}function Q(w){return w===47?(e.consume(w),s="",z):P(w)}function z(w){if(w===62){const $=s.toLowerCase();return us.includes($)?(e.consume(w),b):P(w)}return ot(w)&&s.length<8?(e.consume(w),s+=String.fromCharCode(w),z):P(w)}function M(w){return w===93?(e.consume(w),U):P(w)}function U(w){return w===62?(e.consume(w),b):w===45&&o===2?(e.consume(w),U):P(w)}function b(w){return w===null||V(w)?(e.exit("htmlFlowData"),re(w)):(e.consume(w),b)}function re(w){return e.exit("htmlFlow"),t(w)}}},Cu={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Un,t,n)}}},Du={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return V(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):n(i)};function o(i){return r.parser.lazy[r.now().line]?n(i):t(i)}}},Su={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,s;return function(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),A};function A(b){return b===33?(e.consume(b),a):b===47?(e.consume(b),x):b===63?(e.consume(b),y):ot(b)?(e.consume(b),C):n(b)}function a(b){return b===45?(e.consume(b),l):b===91?(e.consume(b),i=0,p):ot(b)?(e.consume(b),v):n(b)}function l(b){return b===45?(e.consume(b),d):n(b)}function c(b){return b===null?n(b):b===45?(e.consume(b),u):V(b)?(s=c,z(b)):(e.consume(b),c)}function u(b){return b===45?(e.consume(b),d):c(b)}function d(b){return b===62?Q(b):b===45?u(b):c(b)}function p(b){return b==="CDATA[".charCodeAt(i++)?(e.consume(b),i===6?h:p):n(b)}function h(b){return b===null?n(b):b===93?(e.consume(b),m):V(b)?(s=h,z(b)):(e.consume(b),h)}function m(b){return b===93?(e.consume(b),f):h(b)}function f(b){return b===62?Q(b):b===93?(e.consume(b),f):h(b)}function v(b){return b===null||b===62?Q(b):V(b)?(s=v,z(b)):(e.consume(b),v)}function y(b){return b===null?n(b):b===63?(e.consume(b),g):V(b)?(s=y,z(b)):(e.consume(b),y)}function g(b){return b===62?Q(b):y(b)}function x(b){return ot(b)?(e.consume(b),k):n(b)}function k(b){return b===45||Ue(b)?(e.consume(b),k):E(b)}function E(b){return V(b)?(s=E,z(b)):ue(b)?(e.consume(b),E):Q(b)}function C(b){return b===45||Ue(b)?(e.consume(b),C):b===47||b===62||Me(b)?I(b):n(b)}function I(b){return b===47?(e.consume(b),Q):b===58||b===95||ot(b)?(e.consume(b),S):V(b)?(s=I,z(b)):ue(b)?(e.consume(b),I):Q(b)}function S(b){return b===45||b===46||b===58||b===95||Ue(b)?(e.consume(b),S):P(b)}function P(b){return b===61?(e.consume(b),D):V(b)?(s=P,z(b)):ue(b)?(e.consume(b),P):I(b)}function D(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),o=b,B):V(b)?(s=D,z(b)):ue(b)?(e.consume(b),D):(e.consume(b),N)}function B(b){return b===o?(e.consume(b),o=void 0,L):b===null?n(b):V(b)?(s=B,z(b)):(e.consume(b),B)}function N(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||Me(b)?I(b):(e.consume(b),N)}function L(b){return b===47||b===62||Me(b)?I(b):n(b)}function Q(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function z(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),M}function M(b){return ue(b)?he(e,U,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):U(b)}function U(b){return e.enter("htmlTextData"),s(b)}}},ro={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&rt(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,s=e.length,A=0;for(;s--;)if(n=e[s][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[s][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(e[s][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=s,n.type!=="labelLink")){A=2;break}}else n.type==="labelEnd"&&(o=s);const a={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+A+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",a,t],["enter",l,t]],i=qe(i,e.slice(r+1,r+A+3)),i=qe(i,[["enter",c,t]]),i=qe(i,eo(t.parser.constructs.insideSpan.null,e.slice(r+A+4,o-3),t)),i=qe(i,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),i=qe(i,e.slice(o+1)),i=qe(i,[["exit",a,t]]),rt(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,s=r.events.length;for(;s--;)if((r.events[s][1].type==="labelImage"||r.events[s][1].type==="labelLink")&&!r.events[s][1]._balanced){o=r.events[s][1];break}return function(u){return o?o._inactive?c(u):(i=r.parser.defined.includes(Gt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelEnd"),A):n(u)};function A(u){return u===40?e.attempt(Bu,l,i?l:c)(u):u===91?e.attempt(Iu,l,i?a:c)(u):i?l(u):c(u)}function a(u){return e.attempt(Tu,l,c)(u)}function l(u){return t(u)}function c(u){return o._balanced=!0,n(u)}}},Bu={tokenize:function(e,t,n){return function(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),r};function r(c){return Me(c)?fn(e,o)(c):o(c)}function o(c){return c===41?l(c):As(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return Me(c)?fn(e,A)(c):l(c)}function s(c){return n(c)}function A(c){return c===34||c===39||c===40?cs(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):l(c)}function a(c){return Me(c)?fn(e,l)(c):l(c)}function l(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}},Iu={tokenize:function(e,t,n){const r=this;return function(s){return ls.call(r,e,o,i,"reference","referenceMarker","referenceString")(s)};function o(s){return r.parser.defined.includes(Gt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function i(s){return n(s)}}},Tu={tokenize:function(e,t,n){return function(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r};function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}},Qu={name:"labelStartImage",resolveAll:ro.resolveAll,tokenize:function(e,t,n){const r=this;return function(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o};function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),i):n(s)}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}},Mu={name:"labelStartLink",resolveAll:ro.resolveAll,tokenize:function(e,t,n){const r=this;return function(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),o};function o(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}},oo={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),he(e,t,"linePrefix")}}},Fn={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(A){return e.enter("thematicBreak"),function(a){return r=a,i(a)}(A)};function i(A){return A===r?(e.enter("thematicBreakSequence"),s(A)):o>=3&&(A===null||V(A))?(e.exit("thematicBreak"),t(A)):n(A)}function s(A){return A===r?(e.consume(A),o++,s):(e.exit("thematicBreakSequence"),ue(A)?he(e,i,"whitespace")(A):i(A))}}},Oe={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Un,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,he(e,t,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!ue(i)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(i)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Nu,t,o)(i))});function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,he(e,e.attempt(Oe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return function(d){const p=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Zr(d)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Fn,n,a)(d):a(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),A(d)}return n(d)};function A(d){return Zr(d)&&++s<10?(e.consume(d),A):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),a(d)):n(d)}function a(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Un,r.interrupt?n:l,e.attempt(Ou,u,c))}function l(d){return r.containerState.initialBlankLine=!0,i++,u(d)}function c(d){return ue(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),u):n(d)}function u(d){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}},Ou={partial:!0,tokenize:function(e,t,n){const r=this;return he(e,function(o){const i=r.events[r.events.length-1];return!ue(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):n(o)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Nu={partial:!0,tokenize:function(e,t,n){const r=this;return he(e,function(o){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(o):n(o)},"listItemIndent",r.containerState.size+1)}},ds={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){n=i;break}e[i][1].type==="paragraph"&&(r=i)}else e[i][1].type==="content"&&e.splice(i,1),!o&&e[i][1].type==="definition"&&(o=i);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(A){let a,l=r.events.length;for(;l--;)if(r.events[l][1].type!=="lineEnding"&&r.events[l][1].type!=="linePrefix"&&r.events[l][1].type!=="content"){a=r.events[l][1].type==="paragraph";break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(A):(e.enter("setextHeadingLine"),o=A,function(c){return e.enter("setextHeadingLineSequence"),i(c)}(A))};function i(A){return A===o?(e.consume(A),i):(e.exit("setextHeadingLineSequence"),ue(A)?he(e,s,"lineSuffix")(A):s(A))}function s(A){return A===null||V(A)?(e.exit("setextHeadingLine"),t(A)):n(A)}}},Lu={tokenize:function(e){const t=this,n=e.attempt(Un,function(o){return o===null?void e.consume(o):(e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,he(e,e.attempt(this.parser.constructs.flow,r,e.attempt(vu,r)),"linePrefix")));return n;function r(o){if(o!==null)return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(o)}}},Ru={resolveAll:fs()},Hu=ps("string"),Uu=ps("text");function ps(e){return{resolveAll:fs(e==="text"?Fu:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,s);return i;function i(l){return a(l)?o(l):s(l)}function s(l){if(l!==null)return t.enter("data"),t.consume(l),A;t.consume(l)}function A(l){return a(l)?(t.exit("data"),o(l)):(t.consume(l),A)}function a(l){if(l===null)return!0;const c=r[l];let u=-1;if(c)for(;++u<c.length;){const d=c[u];if(!d.previous||d.previous.call(n,n.previous))return!0}return!1}}}}function fs(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)r===void 0?t[o]&&t[o][1].type==="data"&&(r=o,o++):(!t[o]||t[o][1].type!=="data")&&(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Fu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i,s=o.length,A=-1,a=0;for(;s--;){const l=o[s];if(typeof l=="string"){for(A=l.length;l.charCodeAt(A-1)===32;)a++,A--;if(A)break;A=-1}else if(l===-2)i=!0,a++;else if(l!==-1){s++;break}}if(a){const l={type:n===e.length||i||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?A:r.start._bufferIndex+A,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}const zu={42:Oe,43:Oe,45:Oe,48:Oe,49:Oe,50:Oe,51:Oe,52:Oe,53:Oe,54:Oe,55:Oe,56:Oe,57:Oe,62:ns},ju={91:wu},Wu={[-2]:no,[-1]:no,32:no},qu={35:_u,42:Fn,45:[ds,Fn],60:Pu,61:ds,95:Fn,96:as,126:as},Gu={38:os,92:rs},Yu={[-5]:oo,[-4]:oo,[-3]:oo,33:Qu,38:os,42:to,60:[fu,Su],91:Mu,92:[Eu,rs],93:ro,95:to,96:gu},Xu={null:[to,Ru]},Vu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ju,disable:{null:[]},document:zu,flow:qu,flowInitial:Wu,insideSpan:Xu,string:Gu,text:Yu},Symbol.toStringTag,{value:"Module"}));function Ku(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],A=[];const a={attempt:m(function(y,g){f(y,g.from)}),check:m(h),consume:function(y){V(y)?(r.line++,r.column=1,r.offset+=y===-3?2:1,v()):y!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=y},enter:function(y,g){const x=g||{};return x.type=y,x.start=d(),l.events.push(["enter",x,l]),A.push(x),x},exit:function(y){const g=A.pop();return g.end=d(),l.events.push(["exit",g,l]),g},interrupt:m(h,{interrupt:!0})},l={code:null,containerState:{},defineSkip:function(y){o[y.line]=y.column,v()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(y,g){return function(x,k){let E=-1;const C=[];let I;for(;++E<x.length;){const S=x[E];let P;if(typeof S=="string")P=S;else switch(S){case-5:P="\r";break;case-4:P=`
22
22
  `;break;case-3:P=`\r
23
- `;break;case-2:P=k?" ":" ";break;case-1:if(!k&&I)continue;P=" ";break;default:P=String.fromCharCode(S)}I=S===-2,C.push(P)}return C.join("")}(u(y),g)},sliceStream:u,write:function(y){return s=qe(s,y),function(){let g;for(;r._index<s.length;){const x=s[r._index];if(typeof x=="string")for(g=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===g&&r._bufferIndex<x.length;)p(x.charCodeAt(r._bufferIndex));else p(x)}}(),s[s.length-1]!==null?[]:(f(t,0),l.events=eo(i,l.events,l),l.events)}};let c=t.tokenize.call(l,a);return t.resolveAll&&i.push(t),l;function u(y){return function(g,x){const k=x.start._index,E=x.start._bufferIndex,C=x.end._index,I=x.end._bufferIndex;let S;if(k===C)S=[g[k].slice(E,I)];else{if(S=g.slice(k,C),E>-1){const P=S[0];typeof P=="string"?S[0]=P.slice(E):S.shift()}I>0&&S.push(g[C].slice(0,I))}return S}(s,y)}function d(){const{_bufferIndex:y,_index:g,line:x,column:k,offset:E}=r;return{_bufferIndex:y,_index:g,line:x,column:k,offset:E}}function p(y){c=c(y)}function h(y,g){g.restore()}function m(y,g){return function(x,k,E){let C,I,S,P;return Array.isArray(x)?D(x):"tokenize"in x?D([x]):function(Q){return z;function z(M){const U=M!==null&&Q[M],b=M!==null&&Q.null;return D([...Array.isArray(U)?U:U?[U]:[],...Array.isArray(b)?b:b?[b]:[]])(M)}}(x);function D(Q){return C=Q,I=0,Q.length===0?E:B(Q[I])}function B(Q){return function(z){return P=function(){const M=d(),U=l.previous,b=l.currentConstruct,re=l.events.length,w=Array.from(A);return{from:re,restore:$};function $(){r=M,l.previous=U,l.currentConstruct=b,l.events.length=re,A=w,v()}}(),S=Q,Q.partial||(l.currentConstruct=Q),Q.name&&l.parser.constructs.disable.null.includes(Q.name)?N():Q.tokenize.call(g?Object.assign(Object.create(l),g):l,a,R,N)(z)}}function R(Q){return y(S,P),k}function N(Q){return P.restore(),++I<C.length?B(C[I]):E}}}function f(y,g){y.resolveAll&&!i.includes(y)&&i.push(y),y.resolve&&rt(l.events,g,l.events.length-g,y.resolve(l.events.slice(g),l)),y.resolveTo&&(l.events=y.resolveTo(l.events,l))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const hs=/[\0\t\n\r]/g,$u=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ju(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Ja(n.slice(o?2:1),o?16:10)}return $r(n)||e}const gs={}.hasOwnProperty;function Zu(e,t,n){return typeof t!="string"&&(n=t,t=void 0),function(r){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a($e),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(ut),blockQuote:a(Qt),characterEscape:B,characterReference:B,codeFenced:a(st),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(st,l),codeText:a(Ne,l),codeTextData:B,data:B,codeFlowValue:B,definition:a(Ke),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(er),hardBreakEscape:a(At),hardBreakTrailing:a(At),htmlFlow:a(ke,l),htmlFlowData:B,htmlText:a(ke,l),htmlTextData:B,image:a(Ge),label:l,link:a($e),listItem:a(So),listItemValue:m,listOrdered:a(bn,h),listUnordered:a(bn),paragraph:a(wn),reference:te,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(ut),strong:a(Bo),thematicBreak:a(xn)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:Tt,autolinkProtocol:Ve,blockQuote:u(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:pe,characterReference:ve,codeFenced:u(g),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:v,codeFlowValue:R,codeIndented:u(x),codeText:u(U),codeTextData:R,data:R,definition:u(),definitionDestinationString:C,definitionLabelString:k,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(Q),hardBreakTrailing:u(Q),htmlFlow:u(z),htmlFlowData:R,htmlText:u(M),htmlTextData:R,image:u(re),label:$,labelText:w,lineEnding:N,link:u(b),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:oe,resourceDestinationString:F,resourceTitleString:H,resource:Y,setextHeading:u(D),setextHeadingLineSequence:P,setextHeadingText:S,strong:u(),thematicBreak:u()}};ms(o,(r||{}).mdastExtensions||[]);const i={};return s;function s(T){let G={type:"root",children:[]};const K={stack:[G],tokenStack:[],config:o,enter:c,exit:d,buffer:l,resume:p,data:i},le=[];let se=-1;for(;++se<T.length;)(T[se][1].type==="listOrdered"||T[se][1].type==="listUnordered")&&(T[se][0]==="enter"?le.push(se):se=A(T,le.pop(),se));for(se=-1;++se<T.length;){const _e=o[T[se][0]];gs.call(_e,T[se][1].type)&&_e[T[se][1].type].call(Object.assign({sliceSerialize:T[se][2].sliceSerialize},K),T[se][1])}if(K.tokenStack.length>0){const _e=K.tokenStack[K.tokenStack.length-1];(_e[1]||ys).call(K,void 0,_e[0])}for(G.position={start:vt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:vt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},se=-1;++se<o.transforms.length;)G=o.transforms[se](G)||G;return G}function A(T,G,K){let le,se,_e,Qe,Se=G-1,wt=-1,nA=!1;for(;++Se<=K;){const Fe=T[Se];switch(Fe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Fe[0]==="enter"?wt++:wt--,Qe=void 0;break;case"lineEndingBlank":Fe[0]==="enter"&&(le&&!Qe&&!wt&&!_e&&(_e=Se),Qe=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qe=void 0}if(!wt&&Fe[0]==="enter"&&Fe[1].type==="listItemPrefix"||wt===-1&&Fe[0]==="exit"&&(Fe[1].type==="listUnordered"||Fe[1].type==="listOrdered")){if(le){let Kt=Se;for(se=void 0;Kt--;){const dt=T[Kt];if(dt[1].type==="lineEnding"||dt[1].type==="lineEndingBlank"){if(dt[0]==="exit")continue;se&&(T[se][1].type="lineEndingBlank",nA=!0),dt[1].type="lineEnding",se=Kt}else if(dt[1].type!=="linePrefix"&&dt[1].type!=="blockQuotePrefix"&&dt[1].type!=="blockQuotePrefixWhitespace"&&dt[1].type!=="blockQuoteMarker"&&dt[1].type!=="listItemIndent")break}_e&&(!se||_e<se)&&(le._spread=!0),le.end=Object.assign({},se?T[se][1].start:Fe[1].end),T.splice(se||Se,0,["exit",le,Fe[2]]),Se++,K++}if(Fe[1].type==="listItemPrefix"){const Kt={type:"listItem",_spread:!1,start:Object.assign({},Fe[1].start),end:void 0};le=Kt,T.splice(Se,0,["enter",Kt,Fe[2]]),Se++,K++,_e=void 0,Qe=!0}}}return T[G][1]._spread=nA,K}function a(T,G){return K;function K(le){c.call(this,T(le),le),G&&G.call(this,le)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(T,G,K){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([G,K||void 0]),T.position={start:vt(G.start),end:void 0}}function u(T){return G;function G(K){T&&T.call(this,K),d.call(this,K)}}function d(T,G){const K=this.stack.pop(),le=this.tokenStack.pop();if(!le)throw new Error("Cannot close `"+T.type+"` ("+un({start:T.start,end:T.end})+"): it’s not open");le[0].type!==T.type&&(G?G.call(this,T,le[0]):(le[1]||ys).call(this,T,le[0])),K.position.end=vt(T.end)}function p(){return function(T){return Xa(T,typeof Hn.includeImageAlt!="boolean"||Hn.includeImageAlt,typeof Hn.includeHtml!="boolean"||Hn.includeHtml)}(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function m(T){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0)}function f(){const T=this.resume();this.stack[this.stack.length-1].lang=T}function v(){const T=this.resume();this.stack[this.stack.length-1].meta=T}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const T=this.resume();this.stack[this.stack.length-1].value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const T=this.resume();this.stack[this.stack.length-1].value=T.replace(/(\r?\n|\r)$/g,"")}function k(T){const G=this.resume(),K=this.stack[this.stack.length-1];K.label=G,K.identifier=Gt(this.sliceSerialize(T)).toLowerCase()}function E(){const T=this.resume();this.stack[this.stack.length-1].title=T}function C(){const T=this.resume();this.stack[this.stack.length-1].url=T}function I(T){const G=this.stack[this.stack.length-1];if(!G.depth){const K=this.sliceSerialize(T).length;G.depth=K}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function P(T){this.stack[this.stack.length-1].depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function B(T){const G=this.stack[this.stack.length-1].children;let K=G[G.length-1];(!K||K.type!=="text")&&(K=Mt(),K.position={start:vt(T.start),end:void 0},G.push(K)),this.stack.push(K)}function R(T){const G=this.stack.pop();G.value+=this.sliceSerialize(T),G.position.end=vt(T.end)}function N(T){const G=this.stack[this.stack.length-1];if(this.data.atHardBreak)return G.children[G.children.length-1].position.end=vt(T.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(G.type)&&(B.call(this,T),R.call(this,T))}function Q(){this.data.atHardBreak=!0}function z(){const T=this.resume();this.stack[this.stack.length-1].value=T}function M(){const T=this.resume();this.stack[this.stack.length-1].value=T}function U(){const T=this.resume();this.stack[this.stack.length-1].value=T}function b(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=G,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function re(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=G,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function w(T){const G=this.sliceSerialize(T),K=this.stack[this.stack.length-2];K.label=function(le){return le.replace($u,Ju)}(G),K.identifier=Gt(G).toLowerCase()}function $(){const T=this.stack[this.stack.length-1],G=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const le=T.children;K.children=le}else K.alt=G}function F(){const T=this.resume();this.stack[this.stack.length-1].url=T}function H(){const T=this.resume();this.stack[this.stack.length-1].title=T}function Y(){this.data.inReference=void 0}function te(){this.data.referenceType="collapsed"}function oe(T){const G=this.resume(),K=this.stack[this.stack.length-1];K.label=G,K.identifier=Gt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function ce(T){this.data.characterReferenceType=T.type}function pe(T){const G=this.sliceSerialize(T),K=this.data.characterReferenceType;let le;K?(le=Ja(G,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=$r(G),this.stack[this.stack.length-1].value+=le}function ve(T){this.stack.pop().position.end=vt(T.end)}function Ve(T){R.call(this,T),this.stack[this.stack.length-1].url=this.sliceSerialize(T)}function Tt(T){R.call(this,T),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(T)}function Qt(){return{type:"blockquote",children:[]}}function st(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function Ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function er(){return{type:"emphasis",children:[]}}function ut(){return{type:"heading",depth:0,children:[]}}function At(){return{type:"break"}}function ke(){return{type:"html",value:""}}function Ge(){return{type:"image",title:null,url:"",alt:null}}function $e(){return{type:"link",title:null,url:"",children:[]}}function bn(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function So(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function wn(){return{type:"paragraph",children:[]}}function Bo(){return{type:"strong",children:[]}}function Mt(){return{type:"text",value:""}}function xn(){return{type:"thematicBreak"}}}(n)(function(r){for(;!ss(r););return r}(function(r){const o={constructs:ou([Vu,...(r||{}).extensions||[]]),content:i(du),defined:[],document:i(pu),flow:i(Lu),lazy:{},string:i(Hu),text:i(Uu)};return o;function i(s){return function(A){return Ku(o,s,A)}}}(n).document().write(function(){let r,o=1,i="",s=!0;return function(A,a,l){const c=[];let u,d,p,h,m;for(A=i+(typeof A=="string"?A.toString():new TextDecoder(a||void 0).decode(A)),p=0,i="",s&&(A.charCodeAt(0)===65279&&p++,s=void 0);p<A.length;){if(hs.lastIndex=p,u=hs.exec(A),h=u&&u.index!==void 0?u.index:A.length,m=A.charCodeAt(h),!u){i=A.slice(p);break}if(m===10&&p===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<h&&(c.push(A.slice(p,h)),o+=h-p),m){case 0:c.push(65533),o++;break;case 9:for(d=4*Math.ceil(o/4),c.push(-2);o++<d;)c.push(-1);break;case 10:c.push(-4),o=1;break;default:r=!0,o=1}p=h+1}return l&&(r&&c.push(-5),i&&c.push(i),c.push(null)),c}}()(e,t,!0))))}function vt(e){return{line:e.line,column:e.column,offset:e.offset}}function ms(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ms(e,r):ed(e,r)}}function ed(e,t){let n;for(n in t)if(gs.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ys(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+un({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+un({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+un({start:t.start,end:t.end})+") is still open")}function td(e){const t=this;t.parser=function(n){return Zu(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function vs(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function bs(e){return e.spread??e.children.length>1}function nd(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(ws(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(ws(t.slice(o),o>0,!1)),i.join("")}function ws(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===9||i===32;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===9||i===32;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const rd={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
23
+ `;break;case-2:P=k?" ":" ";break;case-1:if(!k&&I)continue;P=" ";break;default:P=String.fromCharCode(S)}I=S===-2,C.push(P)}return C.join("")}(u(y),g)},sliceStream:u,write:function(y){return s=qe(s,y),function(){let g;for(;r._index<s.length;){const x=s[r._index];if(typeof x=="string")for(g=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===g&&r._bufferIndex<x.length;)p(x.charCodeAt(r._bufferIndex));else p(x)}}(),s[s.length-1]!==null?[]:(f(t,0),l.events=eo(i,l.events,l),l.events)}};let c=t.tokenize.call(l,a);return t.resolveAll&&i.push(t),l;function u(y){return function(g,x){const k=x.start._index,E=x.start._bufferIndex,C=x.end._index,I=x.end._bufferIndex;let S;if(k===C)S=[g[k].slice(E,I)];else{if(S=g.slice(k,C),E>-1){const P=S[0];typeof P=="string"?S[0]=P.slice(E):S.shift()}I>0&&S.push(g[C].slice(0,I))}return S}(s,y)}function d(){const{_bufferIndex:y,_index:g,line:x,column:k,offset:E}=r;return{_bufferIndex:y,_index:g,line:x,column:k,offset:E}}function p(y){c=c(y)}function h(y,g){g.restore()}function m(y,g){return function(x,k,E){let C,I,S,P;return Array.isArray(x)?D(x):"tokenize"in x?D([x]):function(Q){return z;function z(M){const U=M!==null&&Q[M],b=M!==null&&Q.null;return D([...Array.isArray(U)?U:U?[U]:[],...Array.isArray(b)?b:b?[b]:[]])(M)}}(x);function D(Q){return C=Q,I=0,Q.length===0?E:B(Q[I])}function B(Q){return function(z){return P=function(){const M=d(),U=l.previous,b=l.currentConstruct,re=l.events.length,w=Array.from(A);return{from:re,restore:$};function $(){r=M,l.previous=U,l.currentConstruct=b,l.events.length=re,A=w,v()}}(),S=Q,Q.partial||(l.currentConstruct=Q),Q.name&&l.parser.constructs.disable.null.includes(Q.name)?L():Q.tokenize.call(g?Object.assign(Object.create(l),g):l,a,N,L)(z)}}function N(Q){return y(S,P),k}function L(Q){return P.restore(),++I<C.length?B(C[I]):E}}}function f(y,g){y.resolveAll&&!i.includes(y)&&i.push(y),y.resolve&&rt(l.events,g,l.events.length-g,y.resolve(l.events.slice(g),l)),y.resolveTo&&(l.events=y.resolveTo(l.events,l))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const hs=/[\0\t\n\r]/g,$u=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ju(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Ja(n.slice(o?2:1),o?16:10)}return $r(n)||e}const gs={}.hasOwnProperty;function Zu(e,t,n){return typeof t!="string"&&(n=t,t=void 0),function(r){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a($e),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(ut),blockQuote:a(Qt),characterEscape:B,characterReference:B,codeFenced:a(st),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(st,l),codeText:a(Ne,l),codeTextData:B,data:B,codeFlowValue:B,definition:a(Ke),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(er),hardBreakEscape:a(At),hardBreakTrailing:a(At),htmlFlow:a(ke,l),htmlFlowData:B,htmlText:a(ke,l),htmlTextData:B,image:a(Ge),label:l,link:a($e),listItem:a(So),listItemValue:m,listOrdered:a(bn,h),listUnordered:a(bn),paragraph:a(wn),reference:te,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(ut),strong:a(Bo),thematicBreak:a(xn)},exit:{atxHeading:u(),atxHeadingSequence:I,autolink:u(),autolinkEmail:Tt,autolinkProtocol:Ve,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:pe,characterReference:ve,codeFenced:u(g),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:v,codeFlowValue:N,codeIndented:u(x),codeText:u(U),codeTextData:N,data:N,definition:u(),definitionDestinationString:C,definitionLabelString:k,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(Q),hardBreakTrailing:u(Q),htmlFlow:u(z),htmlFlowData:N,htmlText:u(M),htmlTextData:N,image:u(re),label:$,labelText:w,lineEnding:L,link:u(b),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:oe,resourceDestinationString:F,resourceTitleString:H,resource:Y,setextHeading:u(D),setextHeadingLineSequence:P,setextHeadingText:S,strong:u(),thematicBreak:u()}};ms(o,(r||{}).mdastExtensions||[]);const i={};return s;function s(T){let G={type:"root",children:[]};const K={stack:[G],tokenStack:[],config:o,enter:c,exit:d,buffer:l,resume:p,data:i},le=[];let se=-1;for(;++se<T.length;)(T[se][1].type==="listOrdered"||T[se][1].type==="listUnordered")&&(T[se][0]==="enter"?le.push(se):se=A(T,le.pop(),se));for(se=-1;++se<T.length;){const _e=o[T[se][0]];gs.call(_e,T[se][1].type)&&_e[T[se][1].type].call(Object.assign({sliceSerialize:T[se][2].sliceSerialize},K),T[se][1])}if(K.tokenStack.length>0){const _e=K.tokenStack[K.tokenStack.length-1];(_e[1]||ys).call(K,void 0,_e[0])}for(G.position={start:vt(T.length>0?T[0][1].start:{line:1,column:1,offset:0}),end:vt(T.length>0?T[T.length-2][1].end:{line:1,column:1,offset:0})},se=-1;++se<o.transforms.length;)G=o.transforms[se](G)||G;return G}function A(T,G,K){let le,se,_e,Qe,Se=G-1,wt=-1,nA=!1;for(;++Se<=K;){const Fe=T[Se];switch(Fe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Fe[0]==="enter"?wt++:wt--,Qe=void 0;break;case"lineEndingBlank":Fe[0]==="enter"&&(le&&!Qe&&!wt&&!_e&&(_e=Se),Qe=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Qe=void 0}if(!wt&&Fe[0]==="enter"&&Fe[1].type==="listItemPrefix"||wt===-1&&Fe[0]==="exit"&&(Fe[1].type==="listUnordered"||Fe[1].type==="listOrdered")){if(le){let Kt=Se;for(se=void 0;Kt--;){const dt=T[Kt];if(dt[1].type==="lineEnding"||dt[1].type==="lineEndingBlank"){if(dt[0]==="exit")continue;se&&(T[se][1].type="lineEndingBlank",nA=!0),dt[1].type="lineEnding",se=Kt}else if(dt[1].type!=="linePrefix"&&dt[1].type!=="blockQuotePrefix"&&dt[1].type!=="blockQuotePrefixWhitespace"&&dt[1].type!=="blockQuoteMarker"&&dt[1].type!=="listItemIndent")break}_e&&(!se||_e<se)&&(le._spread=!0),le.end=Object.assign({},se?T[se][1].start:Fe[1].end),T.splice(se||Se,0,["exit",le,Fe[2]]),Se++,K++}if(Fe[1].type==="listItemPrefix"){const Kt={type:"listItem",_spread:!1,start:Object.assign({},Fe[1].start),end:void 0};le=Kt,T.splice(Se,0,["enter",Kt,Fe[2]]),Se++,K++,_e=void 0,Qe=!0}}}return T[G][1]._spread=nA,K}function a(T,G){return K;function K(le){c.call(this,T(le),le),G&&G.call(this,le)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(T,G,K){this.stack[this.stack.length-1].children.push(T),this.stack.push(T),this.tokenStack.push([G,K||void 0]),T.position={start:vt(G.start),end:void 0}}function u(T){return G;function G(K){T&&T.call(this,K),d.call(this,K)}}function d(T,G){const K=this.stack.pop(),le=this.tokenStack.pop();if(!le)throw new Error("Cannot close `"+T.type+"` ("+un({start:T.start,end:T.end})+"): it’s not open");le[0].type!==T.type&&(G?G.call(this,T,le[0]):(le[1]||ys).call(this,T,le[0])),K.position.end=vt(T.end)}function p(){return function(T){return Xa(T,typeof Hn.includeImageAlt!="boolean"||Hn.includeImageAlt,typeof Hn.includeHtml!="boolean"||Hn.includeHtml)}(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function m(T){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(T),10),this.data.expectingFirstListItemValue=void 0)}function f(){const T=this.resume();this.stack[this.stack.length-1].lang=T}function v(){const T=this.resume();this.stack[this.stack.length-1].meta=T}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const T=this.resume();this.stack[this.stack.length-1].value=T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const T=this.resume();this.stack[this.stack.length-1].value=T.replace(/(\r?\n|\r)$/g,"")}function k(T){const G=this.resume(),K=this.stack[this.stack.length-1];K.label=G,K.identifier=Gt(this.sliceSerialize(T)).toLowerCase()}function E(){const T=this.resume();this.stack[this.stack.length-1].title=T}function C(){const T=this.resume();this.stack[this.stack.length-1].url=T}function I(T){const G=this.stack[this.stack.length-1];if(!G.depth){const K=this.sliceSerialize(T).length;G.depth=K}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function P(T){this.stack[this.stack.length-1].depth=this.sliceSerialize(T).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function B(T){const G=this.stack[this.stack.length-1].children;let K=G[G.length-1];(!K||K.type!=="text")&&(K=Mt(),K.position={start:vt(T.start),end:void 0},G.push(K)),this.stack.push(K)}function N(T){const G=this.stack.pop();G.value+=this.sliceSerialize(T),G.position.end=vt(T.end)}function L(T){const G=this.stack[this.stack.length-1];if(this.data.atHardBreak)return G.children[G.children.length-1].position.end=vt(T.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(G.type)&&(B.call(this,T),N.call(this,T))}function Q(){this.data.atHardBreak=!0}function z(){const T=this.resume();this.stack[this.stack.length-1].value=T}function M(){const T=this.resume();this.stack[this.stack.length-1].value=T}function U(){const T=this.resume();this.stack[this.stack.length-1].value=T}function b(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=G,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function re(){const T=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";T.type+="Reference",T.referenceType=G,delete T.url,delete T.title}else delete T.identifier,delete T.label;this.data.referenceType=void 0}function w(T){const G=this.sliceSerialize(T),K=this.stack[this.stack.length-2];K.label=function(le){return le.replace($u,Ju)}(G),K.identifier=Gt(G).toLowerCase()}function $(){const T=this.stack[this.stack.length-1],G=this.resume(),K=this.stack[this.stack.length-1];if(this.data.inReference=!0,K.type==="link"){const le=T.children;K.children=le}else K.alt=G}function F(){const T=this.resume();this.stack[this.stack.length-1].url=T}function H(){const T=this.resume();this.stack[this.stack.length-1].title=T}function Y(){this.data.inReference=void 0}function te(){this.data.referenceType="collapsed"}function oe(T){const G=this.resume(),K=this.stack[this.stack.length-1];K.label=G,K.identifier=Gt(this.sliceSerialize(T)).toLowerCase(),this.data.referenceType="full"}function ce(T){this.data.characterReferenceType=T.type}function pe(T){const G=this.sliceSerialize(T),K=this.data.characterReferenceType;let le;K?(le=Ja(G,K==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=$r(G),this.stack[this.stack.length-1].value+=le}function ve(T){this.stack.pop().position.end=vt(T.end)}function Ve(T){N.call(this,T),this.stack[this.stack.length-1].url=this.sliceSerialize(T)}function Tt(T){N.call(this,T),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(T)}function Qt(){return{type:"blockquote",children:[]}}function st(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function Ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function er(){return{type:"emphasis",children:[]}}function ut(){return{type:"heading",depth:0,children:[]}}function At(){return{type:"break"}}function ke(){return{type:"html",value:""}}function Ge(){return{type:"image",title:null,url:"",alt:null}}function $e(){return{type:"link",title:null,url:"",children:[]}}function bn(T){return{type:"list",ordered:T.type==="listOrdered",start:null,spread:T._spread,children:[]}}function So(T){return{type:"listItem",spread:T._spread,checked:null,children:[]}}function wn(){return{type:"paragraph",children:[]}}function Bo(){return{type:"strong",children:[]}}function Mt(){return{type:"text",value:""}}function xn(){return{type:"thematicBreak"}}}(n)(function(r){for(;!ss(r););return r}(function(r){const o={constructs:ou([Vu,...(r||{}).extensions||[]]),content:i(du),defined:[],document:i(pu),flow:i(Lu),lazy:{},string:i(Hu),text:i(Uu)};return o;function i(s){return function(A){return Ku(o,s,A)}}}(n).document().write(function(){let r,o=1,i="",s=!0;return function(A,a,l){const c=[];let u,d,p,h,m;for(A=i+(typeof A=="string"?A.toString():new TextDecoder(a||void 0).decode(A)),p=0,i="",s&&(A.charCodeAt(0)===65279&&p++,s=void 0);p<A.length;){if(hs.lastIndex=p,u=hs.exec(A),h=u&&u.index!==void 0?u.index:A.length,m=A.charCodeAt(h),!u){i=A.slice(p);break}if(m===10&&p===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<h&&(c.push(A.slice(p,h)),o+=h-p),m){case 0:c.push(65533),o++;break;case 9:for(d=4*Math.ceil(o/4),c.push(-2);o++<d;)c.push(-1);break;case 10:c.push(-4),o=1;break;default:r=!0,o=1}p=h+1}return l&&(r&&c.push(-5),i&&c.push(i),c.push(null)),c}}()(e,t,!0))))}function vt(e){return{line:e.line,column:e.column,offset:e.offset}}function ms(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ms(e,r):ed(e,r)}}function ed(e,t){let n;for(n in t)if(gs.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ys(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+un({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+un({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+un({start:t.start,end:t.end})+") is still open")}function td(e){const t=this;t.parser=function(n){return Zu(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function vs(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function bs(e){return e.spread??e.children.length>1}function nd(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(ws(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(ws(t.slice(o),o>0,!1)),i.join("")}function ws(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===9||i===32;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===9||i===32;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const rd={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
24
24
  `}]},code:function(e,t){const n=t.value?t.value+`
25
25
  `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Yt(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,A=e.footnoteCounts.get(r);A===void 0?(A=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,A+=1,e.footnoteCounts.set(r,A);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(A>1?"-"+A:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,a);const l={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,l),e.applyData(t,l)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vs(e,t);const o={src:Yt(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Yt(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vs(e,t);const o={href:Yt(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Yt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(c){let u=!1;if(c.type==="list"){u=c.spread||!1;const d=c.children;let p=-1;for(;!u&&++p<d.length;)u=bs(d[p])}return u}(n):bs(t),i={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let u;c&&c.type==="element"&&c.tagName==="p"?u=c:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let A=-1;for(;++A<r.length;){const c=r[A];(o||A!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
26
26
  `}),c.type!=="element"||c.tagName!=="p"||o?s.push(c):s.push(...c.children)}const a=r[r.length-1];a&&(o||a.type!=="element"||a.tagName!=="p")&&s.push({type:"text",value:`
@@ -30,16 +30,16 @@ var AccessQABot=function(En){"use strict";var $t,q,Io,xt,To,Qo,Mo,Oo,tr,nr,rr,No
30
30
  `}),n}function Ss(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Bs(e,t){const n=dd(e,t),r=n.one(e,void 0),o=function(s){const A=typeof s.options.clobberPrefix=="string"?s.options.clobberPrefix:"user-content-",a=s.options.footnoteBackContent||ad,l=s.options.footnoteBackLabel||sd,c=s.options.footnoteLabel||"Footnotes",u=s.options.footnoteLabelTagName||"h2",d=s.options.footnoteLabelProperties||{className:["sr-only"]},p=[];let h=-1;for(;++h<s.footnoteOrder.length;){const m=s.footnoteById.get(s.footnoteOrder[h]);if(!m)continue;const f=s.all(m),v=String(m.identifier).toUpperCase(),y=Yt(v.toLowerCase());let g=0;const x=[],k=s.footnoteCounts.get(v);for(;k!==void 0&&++g<=k;){x.length>0&&x.push({type:"text",value:" "});let I=typeof a=="string"?a:a(h,g);typeof I=="string"&&(I={type:"text",value:I}),x.push({type:"element",tagName:"a",properties:{href:"#"+A+"fnref-"+y+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof l=="string"?l:l(h,g),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const E=f[f.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const I=E.children[E.children.length-1];I&&I.type==="text"?I.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...x)}else f.push(...x);const C={type:"element",tagName:"li",properties:{id:A+"fn-"+y},children:s.wrap(f,!0)};s.patch(m,C),p.push(C)}if(p.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Wn(d),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:`
31
31
  `},{type:"element",tagName:"ol",properties:{},children:s.wrap(p,!0)},{type:"text",value:`
32
32
  `}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
33
- `},o),i}function md(e,t){return e&&"run"in e?async function(n,r){const o=Bs(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Bs(n,{file:r,...e||t})}}function Is(e){if(e)throw e}var ao,Ts,yd=function(){if(Ts)return ao;Ts=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(a){return typeof Array.isArray=="function"?Array.isArray(a):t.call(a)==="[object Array]"},i=function(a){if(!a||t.call(a)!=="[object Object]")return!1;var l,c=e.call(a,"constructor"),u=a.constructor&&a.constructor.prototype&&e.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!c&&!u)return!1;for(l in a);return typeof l>"u"||e.call(a,l)},s=function(a,l){n&&l.name==="__proto__"?n(a,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):a[l.name]=l.newValue},A=function(a,l){if(l==="__proto__"){if(!e.call(a,l))return;if(r)return r(a,l).value}return a[l]};return ao=function a(){var l,c,u,d,p,h,m=arguments[0],f=1,v=arguments.length,y=!1;for(typeof m=="boolean"&&(y=m,m=arguments[1]||{},f=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});f<v;++f)if((l=arguments[f])!=null)for(c in l)u=A(m,c),m!==(d=A(l,c))&&(y&&d&&(i(d)||(p=o(d)))?(p?(p=!1,h=u&&o(u)?u:[]):h=u&&i(u)?u:{},s(m,{name:c,newValue:a(y,h,d)})):typeof d<"u"&&s(m,{name:c,newValue:d}));return m},ao}();const so=Na(yd);function Ao(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function vd(){const e=[],t={run:function(...n){let r=-1;const o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function i(s,...A){const a=e[++r];let l=-1;if(s)o(s);else{for(;++l<n.length;)(A[l]===null||A[l]===void 0)&&(A[l]=n[l]);n=A,a?function(c,u){let d;return p;function p(...f){const v=c.length>f.length;let y;v&&f.push(h);try{y=c.apply(this,f)}catch(g){if(v&&d)throw g;return h(g)}v||(y&&y.then&&typeof y.then=="function"?y.then(m,h):y instanceof Error?h(y):m(y))}function h(f,...v){d||(d=!0,u(f,...v))}function m(f){h(null,f)}}(a,i)(...A):o(null,...A)}})(null,...n)},use:function(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const it={basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gn(e);let n,r=0,o=-1,i=e.length;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,A=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),A>-1&&(e.codePointAt(i)===t.codePointAt(A--)?A<0&&(o=i):(A=-1,o=s));return r===o?o=s:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(gn(e),e.length===0)return".";let t,n=-1,r=e.length;for(;--r;)if(e.codePointAt(r)===47){if(t){n=r;break}}else t||(t=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)},extname:function(e){gn(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const A=e.codePointAt(n);if(A!==47)r<0&&(t=!0,r=n+1),A===46?i<0?i=n:s!==1&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}return i<0||r<0||s===0||s===1&&i===r-1&&i===o+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)gn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":function(r){gn(r);const o=r.codePointAt(0)===47;let i=function(s,A){let a,l,c="",u=0,d=-1,p=0,h=-1;for(;++h<=s.length;){if(h<s.length)a=s.codePointAt(h);else{if(a===47)break;a=47}if(a===47){if(d!==h-1&&p!==1)if(d!==h-1&&p===2){if(c.length<2||u!==2||c.codePointAt(c.length-1)!==46||c.codePointAt(c.length-2)!==46){if(c.length>2){if(l=c.lastIndexOf("/"),l!==c.length-1){l<0?(c="",u=0):(c=c.slice(0,l),u=c.length-1-c.lastIndexOf("/")),d=h,p=0;continue}}else if(c.length>0){c="",u=0,d=h,p=0;continue}}A&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+s.slice(d+1,h):c=s.slice(d+1,h),u=h-d-1;d=h,p=0}else a===46&&p>-1?p++:p=-1}return c}(r,!o);return i.length===0&&!o&&(i="."),i.length>0&&r.codePointAt(r.length-1)===47&&(i+="/"),o?"/"+i:i}(t)},sep:"/"};function gn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bd={cwd:function(){return"/"}};function lo(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function wd(e){if(typeof e=="string")e=new URL(e);else if(!lo(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const n=t.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const o=n.codePointAt(r+2);if(o===70||o===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}(e)}const co=["history","path","basename","stem","extname","dirname"];class Qs{constructor(t){let n;var r;n=t?lo(t)?{path:t}:typeof t=="string"||(r=t)&&typeof r=="object"&&"byteLength"in r&&"byteOffset"in r?{value:t}:t:{},this.cwd="cwd"in n?"":bd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<co.length;){const s=co[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}for(o in n)co.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?it.basename(this.path):void 0}set basename(t){po(t,"basename"),uo(t,"basename"),this.path=it.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?it.dirname(this.path):void 0}set dirname(t){Ms(this.basename,"dirname"),this.path=it.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?it.extname(this.path):void 0}set extname(t){if(uo(t,"extname"),Ms(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=it.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lo(t)&&(t=wd(t)),po(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?it.basename(this.path,this.extname):void 0}set stem(t){po(t,"stem"),uo(t,"stem"),this.path=it.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new Be(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function uo(e,t){if(e&&e.includes(it.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+it.sep+"`")}function po(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ms(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const xd=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Ed={}.hasOwnProperty;class fo extends xd{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vd()}copy(){const t=new fo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(so(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(mo("data",this.frozen),this.namespace[t]=n,this):Ed.call(this.namespace,t)&&this.namespace[t]||void 0:t?(mo("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Gn(t),r=this.parser||this.Parser;return ho("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ho("process",this.parser||this.Parser),go("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,s){const A=Gn(t),a=r.parse(A);function l(c,u){c||!u?s(c):i?i(u):n(void 0,u)}r.run(a,A,function(c,u,d){if(c||!u||!d)return l(c);const p=u,h=r.stringify(p,d);var m;typeof(m=h)=="string"||function(f){return!!(f&&typeof f=="object"&&"byteLength"in f&&"byteOffset"in f)}(m)?d.value=h:d.result=h,l(c,d)})}}processSync(t){let n,r=!1;return this.freeze(),ho("processSync",this.parser||this.Parser),go("processSync",this.compiler||this.Compiler),this.process(t,function(o,i){r=!0,Is(o),n=i}),Ns("processSync","process",r),n}run(t,n,r){Os(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,A){const a=Gn(n);o.run(t,a,function(l,c,u){const d=c||t;l?A(l):s?s(d):r(void 0,d,u)})}}runSync(t,n){let r,o=!1;return this.run(t,n,function(i,s){Is(i),r=s,o=!0}),Ns("runSync","run",o),r}stringify(t,n){this.freeze();const r=Gn(n),o=this.compiler||this.Compiler;return go("stringify",o),Os(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(mo("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else{if(typeof t!="object")throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?A(t):s(t)}return this;function i(l){if(typeof l=="function")a(l,[]);else{if(typeof l!="object")throw new TypeError("Expected usable value, not `"+l+"`");if(Array.isArray(l)){const[c,...u]=l;a(c,u)}else s(l)}}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");A(l.plugins),l.settings&&(o.settings=so(!0,o.settings,l.settings))}function A(l){let c=-1;if(l!=null){if(!Array.isArray(l))throw new TypeError("Expected a list of plugins, not `"+l+"`");for(;++c<l.length;)i(l[c])}}function a(l,c){let u=-1,d=-1;for(;++u<r.length;)if(r[u][0]===l){d=u;break}if(d===-1)r.push([l,...c]);else if(c.length>0){let[p,...h]=c;const m=r[d][1];Ao(m)&&Ao(p)&&(p=so(!0,m,p)),r[d]=[l,p,...h]}}}}const _d=new fo().freeze();function ho(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function go(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Os(e){if(!Ao(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ns(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gn(e){return function(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}(e)?e:new Qs(e)}const Ls=[],Rs={allowDangerousHtml:!0},kd=/^(https?|ircs?|mailto|xmpp)$/i,Pd=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Cd(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,s=e.disallowedElements,A=e.rehypePlugins||Ls,a=e.remarkPlugins||Ls,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Rs}:Rs,c=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||Dd,p=_d().use(td).use(a).use(md,l).use(A),h=new Qs;typeof r=="string"&&(h.value=r);for(const v of Pd)Object.hasOwn(e,v.from)&&(v.from,v.to&&v.to,v.id);const m=p.parse(h);let f=p.runSync(m,h);return o&&(f={type:"element",tagName:"div",properties:{className:o},children:f.type==="root"?f.children:[f]}),Ds(f,function(v,y,g){if(v.type==="raw"&&g&&typeof y=="number")return c?g.children.splice(y,1):g.children[y]={type:"text",value:v.value},y;if(v.type==="element"){let x;for(x in Kr)if(Object.hasOwn(Kr,x)&&Object.hasOwn(v.properties,x)){const k=v.properties[x],E=Kr[x];(E===null||E.includes(v.tagName))&&(v.properties[x]=d(String(k||""),x,v))}}if(v.type==="element"){let x=t?!t.includes(v.tagName):!!s&&s.includes(v.tagName);if(!x&&n&&typeof y=="number"&&(x=!n(v,y,g)),x&&g&&typeof y=="number")return u&&v.children?g.children.splice(y,1,...v.children):g.children.splice(y,1),y}}),Zc(f,{Fragment:Ae,components:i,ignoreInvalidStyle:!0,jsx:_,jsxs:_,passKeys:!0,passNode:!0})}function Dd(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||kd.test(e.slice(0,t))?e:""}const Sd=({children:e})=>_("div",{style:{whiteSpace:"normal"},children:_(Cd,{components:{p:({...t})=>_("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:t.children}),ul:({...t})=>_("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),ol:({...t})=>_("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),li:({...t})=>_("li",{style:{marginBottom:"1px",lineHeight:1.4},children:t.children}),code:({inline:t,children:n})=>t?_("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):_("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:_("code",{children:n})}),blockquote:({...t})=>_("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:t.children})},children:typeof e=="string"?e:""})}),Bd={autoConfig:!0},Id=e=>()=>(t=>{const{getFlow:n}=Ln(),{messages:r,replaceMessages:o}=ln(),{settings:i}=ha(),{hasChatHistoryLoaded:s}=ma(),A={...t,...Bd},a=A.markdownComponent?A.markdownComponent:Sd;Z(()=>{var u,d;if(s){const p=[...r];for(let h=0;h<p.length&&h<(((u=i.chatHistory)==null?void 0:u.maxEntries)??30);h++){const m=p[h];(d=m.tags)!=null&&d.includes("rcb-markdown-renderer-plugin:parsed")&&(m.contentWrapper=a)}o(p)}},[s]);const l=async u=>{var d;const p=(d=u.data.message)==null?void 0:d.sender.toUpperCase();((h,m,f)=>{var v;if(typeof h.data.message.content!="string"||!h.detail.currPath)return!1;const y=m[h.detail.currPath];return!!y&&(((v=y.renderMarkdown)==null?void 0:v.map(g=>g.toUpperCase()).includes(f))??!1)})(u,n(),p)&&(u.data.message.contentWrapper=a,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};je(j.PRE_INJECT_MESSAGE,l),je(j.CHUNK_STREAM_MESSAGE,l),je(j.START_STREAM_MESSAGE,l),je(j.START_SIMULATE_STREAM_MESSAGE,l);const c={name:"@rcb-plugins/markdown-renderer"};return A!=null&&A.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),c})(e),Yn={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},Hs=(e,t,n="validateTextInput")=>{var r;if((r=e.detail)==null||!r.currPath)return;const o=t[e.detail.currPath];if(!o)return;const i=o[n];return typeof i=="function"?i:void 0},Td=e=>{const{showToast:t}=(()=>{const{showToast:u,dismissToast:d,toasts:p,replaceToasts:h}=Ft();return{showToast:u,dismissToast:d,toasts:p,replaceToasts:h}})(),{getFlow:n}=Ln(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:u,replaceStyles:d,updateStyles:p}=ua();return{styles:u,replaceStyles:d,updateStyles:p}})(),s=(u=>({...Yn,...u,promptBaseColors:{...Yn.promptBaseColors},promptHoveredColors:{...Yn.promptHoveredColors},textAreaHighlightColors:{...Yn.textAreaHighlightColors}}))(e),[A,a]=J(0),l=ae({});je(j.USER_SUBMIT_TEXT,u=>{const d=u,p=Hs(d,n(),"validateTextInput");if(!p)return;const h=p(d.data.inputText);if(h!=null&&h.success||u.preventDefault(),!h.promptContent)return;A===0&&(l.current=structuredClone(r));const m=((f,v)=>{const y=f.promptType??"info";let g={};return v.advancedStyles&&(g=v.advancedStyles[y]),v.promptBaseColors&&(g.toastPromptStyle={color:v.promptBaseColors[y],borderColor:v.promptBaseColors[y]}),v.promptHoveredColors&&(g.toastPromptHoveredStyle={color:v.promptHoveredColors[y],borderColor:v.promptHoveredColors[y]}),v.textAreaHighlightColors&&(f.highlightTextArea??!0)&&(g.chatInputAreaStyle={boxShadow:`${v.textAreaHighlightColors[y]} 0px 0px 5px`}),g})(h,s);o(m),t(h.promptContent,h.promptDuration??3e3),a(f=>f+1)}),je(j.USER_UPLOAD_FILE,u=>{var d,p;const h=u,m=(p=(d=h.data)==null?void 0:d.files)==null?void 0:p[0];if(!m)return console.error("No file uploaded."),void u.preventDefault();const f=Hs(h,n(),"validateFileInput");if(!f)return void console.error("Validator not found for file input.");const v=f(m);if(!v.success)return console.error("Validation failed:",v),v.promptContent&&t(v.promptContent,v.promptDuration??3e3),void u.preventDefault();console.log("Validation successful:",v)}),je(j.DISMISS_TOAST,()=>{a(u=>u-1)}),Z(()=>{A===0&&setTimeout(()=>{i(l.current)})},[A,i]);const c={name:"@rcb-plugins/input-validator"};return s.autoConfig&&(c.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),c},Us=Ie((e,t)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=e;const s=ln(),A=(()=>{const{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:h}=Re();return{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:h}})(),a=ae(null),l=ae(!1);return Z(()=>{!n&&A&&A.toggleChatWindow&&(a.current===r||l.current||(setTimeout(()=>{A&&A.toggleChatWindow&&A.toggleChatWindow(r)},0),a.current=r),l.current=!1)},[r,n,A]),Z(()=>{const c=()=>{l.current=!0};return window.addEventListener("rcb-toggle-chat-window",c),()=>window.removeEventListener("rcb-toggle-chat-window",c)}),Pn(t,()=>({addMessage:c=>{s&&s.injectMessage&&s.injectMessage(c)},openChat:()=>{!n&&A&&A.toggleChatWindow&&A.toggleChatWindow(!0)},closeChat:()=>{!n&&A&&A.toggleChatWindow&&A.toggleChatWindow(!1)},toggleChat:()=>{!n&&A&&A.toggleChatWindow&&A.toggleChatWindow()},setBotEnabled:c=>{i&&i(c)}}),[s,A,n,i]),null});Us.displayName="BotController";const Fs=e=>{let{loginUrl:t,className:n="",style:r,isHeaderButton:o=!1}=e;const i=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return L.createElement(L.Fragment,null,o&&L.createElement("style",null,`
33
+ `},o),i}function md(e,t){return e&&"run"in e?async function(n,r){const o=Bs(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Bs(n,{file:r,...e||t})}}function Is(e){if(e)throw e}var ao,Ts,yd=function(){if(Ts)return ao;Ts=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(a){return typeof Array.isArray=="function"?Array.isArray(a):t.call(a)==="[object Array]"},i=function(a){if(!a||t.call(a)!=="[object Object]")return!1;var l,c=e.call(a,"constructor"),u=a.constructor&&a.constructor.prototype&&e.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!c&&!u)return!1;for(l in a);return typeof l>"u"||e.call(a,l)},s=function(a,l){n&&l.name==="__proto__"?n(a,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):a[l.name]=l.newValue},A=function(a,l){if(l==="__proto__"){if(!e.call(a,l))return;if(r)return r(a,l).value}return a[l]};return ao=function a(){var l,c,u,d,p,h,m=arguments[0],f=1,v=arguments.length,y=!1;for(typeof m=="boolean"&&(y=m,m=arguments[1]||{},f=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});f<v;++f)if((l=arguments[f])!=null)for(c in l)u=A(m,c),m!==(d=A(l,c))&&(y&&d&&(i(d)||(p=o(d)))?(p?(p=!1,h=u&&o(u)?u:[]):h=u&&i(u)?u:{},s(m,{name:c,newValue:a(y,h,d)})):typeof d<"u"&&s(m,{name:c,newValue:d}));return m},ao}();const so=Na(yd);function Ao(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function vd(){const e=[],t={run:function(...n){let r=-1;const o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function i(s,...A){const a=e[++r];let l=-1;if(s)o(s);else{for(;++l<n.length;)(A[l]===null||A[l]===void 0)&&(A[l]=n[l]);n=A,a?function(c,u){let d;return p;function p(...f){const v=c.length>f.length;let y;v&&f.push(h);try{y=c.apply(this,f)}catch(g){if(v&&d)throw g;return h(g)}v||(y&&y.then&&typeof y.then=="function"?y.then(m,h):y instanceof Error?h(y):m(y))}function h(f,...v){d||(d=!0,u(f,...v))}function m(f){h(null,f)}}(a,i)(...A):o(null,...A)}})(null,...n)},use:function(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const it={basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gn(e);let n,r=0,o=-1,i=e.length;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let s=-1,A=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),A>-1&&(e.codePointAt(i)===t.codePointAt(A--)?A<0&&(o=i):(A=-1,o=s));return r===o?o=s:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(gn(e),e.length===0)return".";let t,n=-1,r=e.length;for(;--r;)if(e.codePointAt(r)===47){if(t){n=r;break}}else t||(t=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)},extname:function(e){gn(e);let t,n=e.length,r=-1,o=0,i=-1,s=0;for(;n--;){const A=e.codePointAt(n);if(A!==47)r<0&&(t=!0,r=n+1),A===46?i<0?i=n:s!==1&&(s=1):i>-1&&(s=-1);else if(t){o=n+1;break}}return i<0||r<0||s===0||s===1&&i===r-1&&i===o+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)gn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":function(r){gn(r);const o=r.codePointAt(0)===47;let i=function(s,A){let a,l,c="",u=0,d=-1,p=0,h=-1;for(;++h<=s.length;){if(h<s.length)a=s.codePointAt(h);else{if(a===47)break;a=47}if(a===47){if(d!==h-1&&p!==1)if(d!==h-1&&p===2){if(c.length<2||u!==2||c.codePointAt(c.length-1)!==46||c.codePointAt(c.length-2)!==46){if(c.length>2){if(l=c.lastIndexOf("/"),l!==c.length-1){l<0?(c="",u=0):(c=c.slice(0,l),u=c.length-1-c.lastIndexOf("/")),d=h,p=0;continue}}else if(c.length>0){c="",u=0,d=h,p=0;continue}}A&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+s.slice(d+1,h):c=s.slice(d+1,h),u=h-d-1;d=h,p=0}else a===46&&p>-1?p++:p=-1}return c}(r,!o);return i.length===0&&!o&&(i="."),i.length>0&&r.codePointAt(r.length-1)===47&&(i+="/"),o?"/"+i:i}(t)},sep:"/"};function gn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bd={cwd:function(){return"/"}};function lo(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function wd(e){if(typeof e=="string")e=new URL(e);else if(!lo(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function(t){if(t.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const n=t.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const o=n.codePointAt(r+2);if(o===70||o===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}(e)}const co=["history","path","basename","stem","extname","dirname"];class Qs{constructor(t){let n;var r;n=t?lo(t)?{path:t}:typeof t=="string"||(r=t)&&typeof r=="object"&&"byteLength"in r&&"byteOffset"in r?{value:t}:t:{},this.cwd="cwd"in n?"":bd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<co.length;){const s=co[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}for(o in n)co.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?it.basename(this.path):void 0}set basename(t){po(t,"basename"),uo(t,"basename"),this.path=it.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?it.dirname(this.path):void 0}set dirname(t){Ms(this.basename,"dirname"),this.path=it.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?it.extname(this.path):void 0}set extname(t){if(uo(t,"extname"),Ms(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=it.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lo(t)&&(t=wd(t)),po(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?it.basename(this.path,this.extname):void 0}set stem(t){po(t,"stem"),uo(t,"stem"),this.path=it.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new Be(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function uo(e,t){if(e&&e.includes(it.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+it.sep+"`")}function po(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ms(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const xd=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Ed={}.hasOwnProperty;class fo extends xd{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vd()}copy(){const t=new fo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(so(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(mo("data",this.frozen),this.namespace[t]=n,this):Ed.call(this.namespace,t)&&this.namespace[t]||void 0:t?(mo("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Gn(t),r=this.parser||this.Parser;return ho("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ho("process",this.parser||this.Parser),go("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,s){const A=Gn(t),a=r.parse(A);function l(c,u){c||!u?s(c):i?i(u):n(void 0,u)}r.run(a,A,function(c,u,d){if(c||!u||!d)return l(c);const p=u,h=r.stringify(p,d);var m;typeof(m=h)=="string"||function(f){return!!(f&&typeof f=="object"&&"byteLength"in f&&"byteOffset"in f)}(m)?d.value=h:d.result=h,l(c,d)})}}processSync(t){let n,r=!1;return this.freeze(),ho("processSync",this.parser||this.Parser),go("processSync",this.compiler||this.Compiler),this.process(t,function(o,i){r=!0,Is(o),n=i}),Ns("processSync","process",r),n}run(t,n,r){Os(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,A){const a=Gn(n);o.run(t,a,function(l,c,u){const d=c||t;l?A(l):s?s(d):r(void 0,d,u)})}}runSync(t,n){let r,o=!1;return this.run(t,n,function(i,s){Is(i),r=s,o=!0}),Ns("runSync","run",o),r}stringify(t,n){this.freeze();const r=Gn(n),o=this.compiler||this.Compiler;return go("stringify",o),Os(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(mo("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else{if(typeof t!="object")throw new TypeError("Expected usable value, not `"+t+"`");Array.isArray(t)?A(t):s(t)}return this;function i(l){if(typeof l=="function")a(l,[]);else{if(typeof l!="object")throw new TypeError("Expected usable value, not `"+l+"`");if(Array.isArray(l)){const[c,...u]=l;a(c,u)}else s(l)}}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");A(l.plugins),l.settings&&(o.settings=so(!0,o.settings,l.settings))}function A(l){let c=-1;if(l!=null){if(!Array.isArray(l))throw new TypeError("Expected a list of plugins, not `"+l+"`");for(;++c<l.length;)i(l[c])}}function a(l,c){let u=-1,d=-1;for(;++u<r.length;)if(r[u][0]===l){d=u;break}if(d===-1)r.push([l,...c]);else if(c.length>0){let[p,...h]=c;const m=r[d][1];Ao(m)&&Ao(p)&&(p=so(!0,m,p)),r[d]=[l,p,...h]}}}}const _d=new fo().freeze();function ho(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function go(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Os(e){if(!Ao(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ns(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gn(e){return function(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}(e)?e:new Qs(e)}const Ls=[],Rs={allowDangerousHtml:!0},kd=/^(https?|ircs?|mailto|xmpp)$/i,Pd=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Cd(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,s=e.disallowedElements,A=e.rehypePlugins||Ls,a=e.remarkPlugins||Ls,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Rs}:Rs,c=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||Dd,p=_d().use(td).use(a).use(md,l).use(A),h=new Qs;typeof r=="string"&&(h.value=r);for(const v of Pd)Object.hasOwn(e,v.from)&&(v.from,v.to&&v.to,v.id);const m=p.parse(h);let f=p.runSync(m,h);return o&&(f={type:"element",tagName:"div",properties:{className:o},children:f.type==="root"?f.children:[f]}),Ds(f,function(v,y,g){if(v.type==="raw"&&g&&typeof y=="number")return c?g.children.splice(y,1):g.children[y]={type:"text",value:v.value},y;if(v.type==="element"){let x;for(x in Kr)if(Object.hasOwn(Kr,x)&&Object.hasOwn(v.properties,x)){const k=v.properties[x],E=Kr[x];(E===null||E.includes(v.tagName))&&(v.properties[x]=d(String(k||""),x,v))}}if(v.type==="element"){let x=t?!t.includes(v.tagName):!!s&&s.includes(v.tagName);if(!x&&n&&typeof y=="number"&&(x=!n(v,y,g)),x&&g&&typeof y=="number")return u&&v.children?g.children.splice(y,1,...v.children):g.children.splice(y,1),y}}),Zc(f,{Fragment:Ae,components:i,ignoreInvalidStyle:!0,jsx:_,jsxs:_,passKeys:!0,passNode:!0})}function Dd(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||kd.test(e.slice(0,t))?e:""}const Sd=({children:e})=>_("div",{style:{whiteSpace:"normal"},children:_(Cd,{components:{p:({...t})=>_("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:t.children}),ul:({...t})=>_("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),ol:({...t})=>_("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),li:({...t})=>_("li",{style:{marginBottom:"1px",lineHeight:1.4},children:t.children}),code:({inline:t,children:n})=>t?_("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):_("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:_("code",{children:n})}),blockquote:({...t})=>_("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:t.children})},children:typeof e=="string"?e:""})}),Bd={autoConfig:!0},Id=e=>()=>(t=>{const{getFlow:n}=Ln(),{messages:r,replaceMessages:o}=ln(),{settings:i}=ha(),{hasChatHistoryLoaded:s}=ma(),A={...t,...Bd},a=A.markdownComponent?A.markdownComponent:Sd;Z(()=>{var u,d;if(s){const p=[...r];for(let h=0;h<p.length&&h<(((u=i.chatHistory)==null?void 0:u.maxEntries)??30);h++){const m=p[h];(d=m.tags)!=null&&d.includes("rcb-markdown-renderer-plugin:parsed")&&(m.contentWrapper=a)}o(p)}},[s]);const l=async u=>{var d;const p=(d=u.data.message)==null?void 0:d.sender.toUpperCase();((h,m,f)=>{var v;if(typeof h.data.message.content!="string"||!h.detail.currPath)return!1;const y=m[h.detail.currPath];return!!y&&(((v=y.renderMarkdown)==null?void 0:v.map(g=>g.toUpperCase()).includes(f))??!1)})(u,n(),p)&&(u.data.message.contentWrapper=a,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};je(j.PRE_INJECT_MESSAGE,l),je(j.CHUNK_STREAM_MESSAGE,l),je(j.START_STREAM_MESSAGE,l),je(j.START_SIMULATE_STREAM_MESSAGE,l);const c={name:"@rcb-plugins/markdown-renderer"};return A!=null&&A.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),c})(e),Yn={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},Hs=(e,t,n="validateTextInput")=>{var r;if((r=e.detail)==null||!r.currPath)return;const o=t[e.detail.currPath];if(!o)return;const i=o[n];return typeof i=="function"?i:void 0},Td=e=>{const{showToast:t}=(()=>{const{showToast:u,dismissToast:d,toasts:p,replaceToasts:h}=Ft();return{showToast:u,dismissToast:d,toasts:p,replaceToasts:h}})(),{getFlow:n}=Ln(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:u,replaceStyles:d,updateStyles:p}=ua();return{styles:u,replaceStyles:d,updateStyles:p}})(),s=(u=>({...Yn,...u,promptBaseColors:{...Yn.promptBaseColors},promptHoveredColors:{...Yn.promptHoveredColors},textAreaHighlightColors:{...Yn.textAreaHighlightColors}}))(e),[A,a]=J(0),l=ae({});je(j.USER_SUBMIT_TEXT,u=>{const d=u,p=Hs(d,n(),"validateTextInput");if(!p)return;const h=p(d.data.inputText);if(h!=null&&h.success||u.preventDefault(),!h.promptContent)return;A===0&&(l.current=structuredClone(r));const m=((f,v)=>{const y=f.promptType??"info";let g={};return v.advancedStyles&&(g=v.advancedStyles[y]),v.promptBaseColors&&(g.toastPromptStyle={color:v.promptBaseColors[y],borderColor:v.promptBaseColors[y]}),v.promptHoveredColors&&(g.toastPromptHoveredStyle={color:v.promptHoveredColors[y],borderColor:v.promptHoveredColors[y]}),v.textAreaHighlightColors&&(f.highlightTextArea??!0)&&(g.chatInputAreaStyle={boxShadow:`${v.textAreaHighlightColors[y]} 0px 0px 5px`}),g})(h,s);o(m),t(h.promptContent,h.promptDuration??3e3),a(f=>f+1)}),je(j.USER_UPLOAD_FILE,u=>{var d,p;const h=u,m=(p=(d=h.data)==null?void 0:d.files)==null?void 0:p[0];if(!m)return console.error("No file uploaded."),void u.preventDefault();const f=Hs(h,n(),"validateFileInput");if(!f)return void console.error("Validator not found for file input.");const v=f(m);if(!v.success)return console.error("Validation failed:",v),v.promptContent&&t(v.promptContent,v.promptDuration??3e3),void u.preventDefault();console.log("Validation successful:",v)}),je(j.DISMISS_TOAST,()=>{a(u=>u-1)}),Z(()=>{A===0&&setTimeout(()=>{i(l.current)})},[A,i]);const c={name:"@rcb-plugins/input-validator"};return s.autoConfig&&(c.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),c},Us=Ie((e,t)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=e;const s=ln(),A=(()=>{const{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:h}=Re();return{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:p,getIsChatBotVisible:h}})(),a=ae(null),l=ae(!1);return Z(()=>{!n&&A&&A.toggleChatWindow&&(a.current===r||l.current||(setTimeout(()=>{A&&A.toggleChatWindow&&A.toggleChatWindow(r)},0),a.current=r),l.current=!1)},[r,n,A]),Z(()=>{const c=()=>{l.current=!0};return window.addEventListener("rcb-toggle-chat-window",c),()=>window.removeEventListener("rcb-toggle-chat-window",c)}),Pn(t,()=>({addMessage:c=>{s&&s.injectMessage&&s.injectMessage(c)},openChat:()=>{!n&&A&&A.toggleChatWindow&&A.toggleChatWindow(!0)},closeChat:()=>{!n&&A&&A.toggleChatWindow&&A.toggleChatWindow(!1)},toggleChat:()=>{!n&&A&&A.toggleChatWindow&&A.toggleChatWindow()},setBotEnabled:c=>{i&&i(c)}}),[s,A,n,i]),null});Us.displayName="BotController";const Fs=e=>{let{loginUrl:t,className:n="",style:r,isHeaderButton:o=!1}=e;const i=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return R.createElement(R.Fragment,null,o&&R.createElement("style",null,`
34
34
  .rcb-chat-header-container .qa-bot-header-login-button:hover {
35
35
  background-color: #0000001a !important;
36
36
  opacity: 1 !important;
37
37
  }
38
- `),L.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(n),style:Object.assign(Object.assign({},i),r)},"Log In"))},Qd=()=>L.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},L.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},L.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),L.createElement("circle",{cx:"12",cy:"7",r:"4"}))),Pe=[];for(let e=0;e<256;++e)Pe.push((e+256).toString(16).slice(1));let yo;const Md=new Uint8Array(16);var zs={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function js(e,t,n){var o;if(zs.randomUUID&&!e)return zs.randomUUID();const r=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!yo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yo=crypto.getRandomValues.bind(crypto)}return yo(Md)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(i,s=0){return(Pe[i[s+0]]+Pe[i[s+1]]+Pe[i[s+2]]+Pe[i[s+3]]+"-"+Pe[i[s+4]]+Pe[i[s+5]]+"-"+Pe[i[s+6]]+Pe[i[s+7]]+"-"+Pe[i[s+8]]+Pe[i[s+9]]+"-"+Pe[i[s+10]]+Pe[i[s+11]]+Pe[i[s+12]]+Pe[i[s+13]]+Pe[i[s+14]]+Pe[i[s+15]]).toLowerCase()}(r)}function Xn(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const Od="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",Nd="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",Ld="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",Rd="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",Hd="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",Ud=()=>{Xn()&&console.log("%c QA Bot Core %c v".concat("0.2.18"," "),Rd,Hd)},Vn=function(e){if(Xn()){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console.log("%c[Session]%c ".concat(e),Od,"",...n)}},at=function(e){if(Xn()){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console.log("%c[History]%c ".concat(e),Nd,"",...n)}},Fd=(e,t)=>{Xn()&&console.log("%c[Message]%c ".concat(e),Ld,"",t)},zd=function(){console.warn(...arguments)},St=function(){console.error(...arguments)},Ws="qa_bot_session_messages",qs=()=>"qa_bot_session_".concat(js()),mn=()=>{try{const e=localStorage.getItem(Ws);return e?JSON.parse(e):{}}catch{return{}}},jd=(e,t,n,r,o)=>{const i=mn();if(!i[e]&&(i[e]={messages:[],startedAt:new Date().toISOString(),preview:""},at("NEW session created",{sessionId:e.slice(-12)})),i[e].messages.some(l=>l.id===t))return void at("DUPLICATE message skipped",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r});const s={id:t,content:n,sender:r,type:o,timestamp:Date.now()};i[e].messages.push(s),at("MESSAGE added",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r,totalInSession:i[e].messages.length});const A=i[e].messages,a=A.find(l=>{var c;return l.sender.toLowerCase()==="bot"&&((c=l.content)===null||c===void 0?void 0:c.trim())&&l.content.length>=100});if(a){const l=a.content;i[e].preview=l.slice(0,50)+(l.length>50?"...":"")}else{const l=A.find(c=>{var u;return c.sender.toLowerCase()==="user"&&((u=c.content)===null||u===void 0?void 0:u.trim())});if(l&&!i[e].preview){const c=l.content;i[e].preview=c.slice(0,50)+(c.length>50?"...":"")}}(l=>{var c;const u=()=>Object.values(l).reduce((d,p)=>d+p.messages.length,0);for(;u()>100&&Object.keys(l).length>1;){const d=(c=Object.entries(l).sort((p,h)=>{let[,m]=p,[,f]=h;return new Date(m.startedAt).getTime()-new Date(f.startedAt).getTime()})[0])===null||c===void 0?void 0:c[0];if(!d)break;delete l[d]}localStorage.setItem(Ws,JSON.stringify(l))})(i),at("STORAGE state",{ourSessions:Object.keys(i).length,ourTotalMessages:Object.values(i).reduce((l,c)=>l+c.messages.length,0)})},Gs=e=>{var t,n;return(n=(t=mn()[e])===null||t===void 0?void 0:t.messages.length)!==null&&n!==void 0?n:0},Wd=e=>{const t=mn()[e];return t!=null&&t.startedAt?Date.now()-new Date(t.startedAt).getTime():0},Ys=Ye(void 0),qd=e=>{let{children:t,getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}=e;return L.createElement(Ys.Provider,{value:{getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}},t)},vo=()=>{const e=ze(Ys);if(!e)throw new Error("useSession must be used within a SessionProvider");return e},Gd=()=>{const[e,t]=J(!1),[n,r]=J([]),[o,i]=J(null),[s,A]=J(0),a=ae(null),l=ae(null),{replaceMessages:c}=ln(),{toggleTextAreaDisabled:u}=ga(),{setSessionId:d,getSessionId:p}=vo();Z(()=>{var m,f;const v=g=>{a.current&&!a.current.contains(g.target)&&l.current&&!l.current.contains(g.target)&&t(!1)},y=(f=(m=a.current)===null||m===void 0?void 0:m.getRootNode())!==null&&f!==void 0?f:document;return e&&y.addEventListener("mousedown",v),()=>{y.removeEventListener("mousedown",v)}},[e]);const h=m=>{var f;const v=p();if(at("RESTORE requested",{targetSession:m.slice(-12),currentSession:v==null?void 0:v.slice(-12)}),m===v)return at("RESTORE skipped - already on this session"),void t(!1);const y=(k=>{var E;return((E=mn()[k])===null||E===void 0?void 0:E.messages)||[]})(m).filter(k=>{var E;return(E=k.content)===null||E===void 0?void 0:E.trim()});at("Stored messages from our localStorage",{count:y.length,ids:y.map(k=>k.id.slice(-8))});const g=y.map(k=>({id:k.id,content:k.content,sender:k.sender.toUpperCase(),type:k.type||"string",timestamp:new Date(k.timestamp).toISOString()}));var x;c(g),at("replaceMessages called",{count:g.length}),x=(f=l.current)===null||f===void 0?void 0:f.getRootNode(),setTimeout(()=>{const k=(x||document).querySelector(".rcb-chat-body-container");k&&k.querySelectorAll(".rcb-bot-message").forEach(E=>{var C;let I=E.innerHTML,S=!1;I.includes("](")&&(I=I.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),S=!0),I.includes("&lt;a href=")&&(I=I.replace(/&lt;a\s+href=["']([^"']+)["'][^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),S=!0),(I.includes("&lt;a ")||!((C=E.textContent)===null||C===void 0)&&C.includes("<a href="))&&(E.textContent||"").includes("<a href=")&&(I=I.replace(/&lt;a\s+href="([^"]+)"[^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),S=!0),S&&(E.innerHTML=I)})},50),d(m),at("Session ID updated",{newSession:m.slice(-12)}),u(!1),at("Chat input enabled after restore"),t(!1)};return L.createElement("div",{style:{position:"relative"}},L.createElement("button",{ref:l,className:"history-button",onClick:()=>{if(!e&&(r((()=>{const m=mn();return Object.entries(m).map(f=>{let[v,y]=f;return Object.assign({sessionId:v},y)}).sort((f,v)=>new Date(v.startedAt).getTime()-new Date(f.startedAt).getTime())})()),l.current)){const m=l.current.closest(".rcb-chat-window");if(m){const f=m.getBoundingClientRect(),v=l.current.getBoundingClientRect();i(f.width+3),A(f.right-v.right-18+4)}}t(!e)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":e,"aria-haspopup":"menu"},L.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},L.createElement("circle",{cx:"12",cy:"12",r:"10"}),L.createElement("polyline",{points:"12 6 12 12 16 14"}))),e&&L.createElement("div",{ref:a,role:"menu",style:{position:"absolute",right:s?"-".concat(s,"px"):"-18px",top:"100%",marginTop:"8px",width:o?"".concat(o,"px"):"550px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},n.length===0?L.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(m=>L.createElement("button",{key:m.sessionId,role:"menuitem",onClick:()=>h(m.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:f=>{f.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent"}},L.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},m.preview||"New conversation"),L.createElement("span",{style:{fontSize:"12px",color:"#888"}},(f=>{const v=new Date(f),y=new Date().getTime()-v.getTime(),g=Math.floor(y/864e5);return g===0?v.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):g===1?"Yesterday":g<7?v.toLocaleDateString([],{weekday:"short"}):v.toLocaleDateString([],{month:"short",day:"numeric"})})(m.startedAt))))))};function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(null,arguments)}const Xs=({width:e=24,height:t=24,color:n="currentColor",children:r,...o})=>L.createElement("svg",bo({xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),r),Yd=e=>L.createElement(Xs,e,L.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),Vs=Ye(null),Xd=e=>{let{trackEvent:t,children:n}=e;const r=ae(t);return r.current=t,L.createElement(Vs.Provider,{value:{trackEvent:o=>r.current(o)}},n)},Vd=()=>{const{restartFlow:e}=Ln(),{setTextAreaValue:t}=ga(),{messages:n}=ln(),{getSessionId:r,resetSession:o,clearResettingFlag:i}=vo(),{trackEvent:s}=ze(Vs)||{trackEvent:()=>{}};return L.createElement("button",{onClick:async()=>{const A=r(),a=A?Gs(A):0;s({type:"chatbot_new_chat",previousMessageCount:a}),o(),await t(""),await e(),setTimeout(()=>{i()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:A=>{A.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:A=>{A.target.style.backgroundColor="var(--primaryColor, #107180)"}},L.createElement(Yd,{width:16,height:16}),"New Chat")};function wo(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(!e)return"";if(Array.isArray(e))return e.map(wo).join("");if(typeof e=="object"&&e!==null&&"props"in e){const t=e.props;if(t&&"children"in t)return wo(t.children)}return""}const Kd=()=>{const{getSessionId:e}=vo(),t=W(n=>{var r;const o=(r=n.data)===null||r===void 0?void 0:r.message;if(!(o!=null&&o.id))return;const i=o.sender,s=o.type||"string";let A;if(A=typeof o.content=="string"?o.content:wo(o.content),Fd("TRACKED",{id:o.id,sender:i,content:A.substring(0,50)+(A.length>50?"...":"")}),A.includes("rcb-options-container")||!A.trim())return;const a=e();jd(a,o.id,A,i,s)},[e]);return Z(()=>(window.addEventListener("rcb-pre-inject-message",t),()=>{window.removeEventListener("rcb-pre-inject-message",t)}),[t]),null},$d=()=>(Z(()=>{const e=i=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(i.key))return;const s=document.activeElement;if(s&&(s.tagName==="INPUT"||s.tagName==="TEXTAREA"||s.contentEditable==="true"||s.classList.contains("rcb-chat-input-textarea")))return;const A=document.querySelector(".rcb-chat-window");if(!A)return;const a=Array.from(A.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(u=>u.offsetParent!==null);if(a.length>0){const u=a[a.length-1].querySelector(".rcb-checkbox-container");if(u&&u.offsetParent!==null){const d=Array.from(u.querySelectorAll(".rcb-checkbox-row-container")),p=u.querySelector(".rcb-checkbox-next-button");if(d.length>0){const h=[...d];return p&&h.push(p),void((m,f)=>{m.preventDefault();let v=-1;for(let g=0;g<f.length;g++)if(f[g]===document.activeElement||f[g].contains(document.activeElement)){v=g;break}v===-1&&(v=0);let y=v;switch(m.key){case"ArrowDown":case"ArrowRight":y=v<f.length-1?v+1:0;break;case"ArrowUp":case"ArrowLeft":y=v>0?v-1:f.length-1;break;case"Home":y=0;break;case"End":y=f.length-1;break;case"Enter":case" ":{const g=f[v],x=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void g.dispatchEvent(x)}default:return}f[y].focus(),f[y].setAttribute("tabindex","0"),f[y].classList.add("keyboard-focused"),f.forEach((g,x)=>{x!==y&&(g.setAttribute("tabindex","-1"),g.classList.remove("keyboard-focused"))})})(i,h)}}}let l=[];if(a.length>0){const u=a[a.length-1],d=Array.from(u.querySelectorAll(".rcb-options-container")).filter(p=>p.offsetParent!==null);if(d.length>0){const p=d[d.length-1];l=Array.from(p.querySelectorAll(".rcb-options"))}}if(l.length===0)return;const c=l.findIndex(u=>u===document.activeElement);switch(i.key){case"ArrowDown":case"ArrowRight":{let u;i.preventDefault(),u=c<l.length-1?c+1:0,l[u].setAttribute("tabindex","0"),l.forEach((d,p)=>{p!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus();break}case"ArrowUp":case"ArrowLeft":{let u;i.preventDefault(),u=c>0?c-1:l.length-1,l[u].setAttribute("tabindex","0"),l.forEach((d,p)=>{p!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus();break}case"Enter":case" ":if(i.preventDefault(),document.activeElement&&l.includes(document.activeElement)){const u=document.activeElement;if(u.classList.contains("rcb-checkbox-row-container")||u.closest(".rcb-checkbox-row-container")){const d=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});u.dispatchEvent(d);const p=u.querySelector(".rcb-checkbox-label"),h=p?p.textContent:u.textContent||"checkbox",m=u.querySelector(".rcb-checkbox-mark"),f=m&&m.style.backgroundColor?"checked":"unchecked";t(`${h} ${f}`)}else{const d=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});u.dispatchEvent(d);const p=u.textContent||u.innerText;t(`Selected: ${p}`)}}break;case"Home":i.preventDefault(),l.length>0&&(l[0].setAttribute("tabindex","0"),l.forEach((u,d)=>{d!==0&&(u.setAttribute("tabindex","-1"),u.classList.remove("keyboard-focused"))}),l[0].classList.add("keyboard-focused"),l[0].focus());break;case"End":if(i.preventDefault(),l.length>0){const u=l.length-1;l[u].setAttribute("tabindex","0"),l.forEach((d,p)=>{p!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus()}}},t=i=>{const s=document.createElement("div");s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true"),s.className="sr-only",s.textContent=i,document.body.appendChild(s),setTimeout(()=>{document.body.contains(s)&&document.body.removeChild(s)},1e3)},n=(i=null)=>{let s=i;if(s||(s=document.querySelector(".rcb-chat-window"),s||(s=document.querySelector('[class*="rcb-chat"]')),s||(s=document.querySelector(".qa-bot"))),!s)return;const A=s.closest(".embedded-qa-bot")!==null,a=Array.from(s.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(d=>d.offsetParent!==null);if(a.length===0)return;const l=a[a.length-1],c=Array.from(l.querySelectorAll(".rcb-options-container")).filter(d=>d.offsetParent!==null);let u=[];if(c.length>0){const d=c[c.length-1];u=Array.from(d.querySelectorAll(".rcb-options"))}if(u.length===0){let d=l.querySelector(".rcb-checkbox-container");if(!d&&s&&(d=s.querySelector(".rcb-checkbox-container")),d&&d.offsetParent!==null){const p=Array.from(d.querySelectorAll(".rcb-checkbox-row-container")).filter(h=>h.offsetParent!==null&&h.style.display!=="none");if(p.length>0){const h=d.querySelector(".rcb-checkbox-next-button"),m=[...p];if(h&&h.offsetParent!==null&&m.push(h),m.forEach((f,v)=>{f.setAttribute("tabindex",v===0?"0":"-1"),v===0?f.classList.add("keyboard-focused"):f.classList.remove("keyboard-focused")}),p.length>1){d.querySelectorAll(".keyboard-nav-hint").forEach(v=>v.remove());const f=document.createElement("div");f.className="keyboard-nav-hint",f.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",f.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",d.insertBefore(f,d.firstChild)}return void setTimeout(()=>{m[0]&&m[0].offsetParent!==null&&!A&&m[0].focus()},150)}}}if(u.length>0){if(u.forEach((d,p)=>{const h=p===0?"0":"-1";d.setAttribute("tabindex",h),d.setAttribute("role","option"),d.setAttribute("aria-posinset",p+1),d.setAttribute("aria-setsize",u.length),p===0?d.classList.add("keyboard-focused"):d.classList.remove("keyboard-focused")}),u.length>1){const d=c.length>0?c[c.length-1]:null;if(d){d.querySelectorAll(".keyboard-nav-hint").forEach(h=>h.remove());const p=document.createElement("div");p.className="keyboard-nav-hint",p.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",p.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",d.insertBefore(p,d.firstChild)}}else{const d=c.length>0?c[c.length-1]:null;d&&d.querySelectorAll(".keyboard-nav-hint").forEach(p=>p.remove())}setTimeout(()=>{u[0]&&u[0].offsetParent!==null&&!A&&(u[0].focus(),u.length>1&&t(`${u.length} options available. Use arrow keys to navigate.`))},200)}},r=new MutationObserver(i=>{i.forEach(s=>{var A,a;if(s.type==="childList"){const l=Array.from(s.addedNodes),c=l.some(d=>{var p,h,m,f;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-options-container"))||((h=d.classList)==null?void 0:h.contains("rcb-options"))||((m=d.querySelector)==null?void 0:m.call(d,".rcb-options-container"))||((f=d.querySelector)==null?void 0:f.call(d,".rcb-options")))}),u=l.some(d=>{var p,h;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-checkbox-container"))||((h=d.querySelector)==null?void 0:h.call(d,".rcb-checkbox-container")))});if(c||u){let d=s.target;for(;d&&!((A=d.classList)!=null&&A.contains("qa-bot"))&&!((a=d.classList)!=null&&a.contains("rcb-chat-window"));)d=d.parentElement;(d||document).querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(p=>{p.setAttribute("tabindex","-1"),p.classList.remove("keyboard-focused")}),setTimeout(()=>n(d),100)}}})});r.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),n();const o=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(i=>{const s=i.querySelectorAll(".rcb-options-container .rcb-options").length>0,A=i.querySelectorAll(".rcb-checkbox-row-container").length>0;if(s){const a=i.querySelectorAll(".rcb-options[tabindex]").length;i.querySelectorAll(".rcb-options").length>a&&n(i)}if(A){const a=i.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;i.querySelectorAll(".rcb-checkbox-row-container").length>a&&n(i)}})},1e3);return()=>{document.removeEventListener("keydown",e),r.disconnect(),clearInterval(o)}},[]),null),Jd="#1a5b6e",Zd="#107180",ep="Arial, sans-serif",Ks="Q&A Bot",tp="/chat-icon.svg",np="Type your question here...",rp="Select an option to continue",op=!1,ip="Ask me a question!",$s="/login",ap={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},xo=Ie((e,t)=>{var n,r;const{apiKey:o,qaEndpoint:i,ratingEndpoint:s,welcomeMessage:A,open:a,onOpenChange:l,isLoggedIn:c,allowAnonAccess:u=!1,actingUser:d,primaryColor:p,secondaryColor:h,botName:m,logo:f,placeholder:v,errorMessage:y,embedded:g,footerText:x,footerLink:k,tooltipText:E,loginUrl:C,customFlow:I,onAnalyticsEvent:S}=e,P=ae("bot_".concat(Math.random().toString(36).substr(2,9)));Z(()=>{Ud()},[]);const D=ae(null);D.current===null&&(D.current=qs(),Vn("CREATED",D.current));const B=ae(!1),R=ae({getSessionId:()=>D.current,isResetting:()=>B.current}),[N,Q]=J(c);Z(()=>{Q(c)},[c]);const z=g!==void 0?g:op,M=W(F=>{var H;S&&S(Object.assign(Object.assign({},F),{timestamp:Date.now(),sessionId:(H=D.current)!==null&&H!==void 0?H:void 0,pageUrl:typeof window<"u"?window.location.href:void 0,isEmbedded:z}))},[S,z]),U=be(()=>{const F=Object.assign({},ap);F.general=Object.assign(Object.assign({},F.general),{primaryColor:p||Jd,secondaryColor:h||Zd,fontFamily:ep,embedded:z});const H=N===!1?[L.createElement(Fs,{key:"login-button",loginUrl:C||$s,isHeaderButton:!0})]:[L.createElement(Gd,{key:"history-button"}),L.createElement(Qd,{key:"user-icon"})];F.header={title:L.createElement("span",{style:{fontSize:14,fontWeight:500}},m||Ks),showAvatar:!0,avatar:f||tp,buttons:[...H,ye.CLOSE_CHAT_BUTTON]},F.chatInput=Object.assign(Object.assign({},F.chatInput),{disabled:!1,enabledPlaceholderText:v||np,disabledPlaceholderText:y||rp}),F.tooltip=Object.assign(Object.assign({},F.tooltip),{text:E||ip});const Y=x?k?L.createElement("a",{href:k,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},x):L.createElement("span",{key:"footer-text"},x):null;return F.footer={text:Y,buttons:[L.createElement(Vd,{key:"new-chat-button"})]},F.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},F},[p,h,m,f,v,y,z,E,N,C,x,k]),b=ae(null),re=function(F){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return be(()=>{const Y=(te,oe)=>{if(F.current){const ce=getComputedStyle(F.current).getPropertyValue(te);if(ce&&ce.trim()!=="")return ce.trim();if(F.current.parentElement){const pe=getComputedStyle(F.current.parentElement).getPropertyValue(te);if(pe&&pe.trim()!=="")return pe.trim()}}return oe};return{primaryColor:Y("--primaryColor",H.primaryColor),secondaryColor:Y("--secondaryColor",H.secondaryColor),fontFamily:Y("--fontFamily",H.fontFamily)}},[F,H])}(b,U.general);((F,H)=>{Z(()=>{H.current&&(F?H.current.classList.add("bot-logged-in"):H.current.classList.remove("bot-logged-in"))},[F,H])})(N!==!1,b),(F=>{let{settings:H,themeColors:Y}=F;Z(()=>{Y&&(Object.entries(Y).forEach(te=>{let[oe,ce]=te;ce&&document.documentElement.style.setProperty("--".concat(oe),ce)}),Y.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",Y.primaryColor),Y.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",Y.secondaryColor))},[Y]),Z(()=>{var te,oe,ce;!((te=H.header)===null||te===void 0)&&te.title&&typeof H.header.title=="string"&&(H.header.title=L.createElement("div",{key:"header-title"},L.createElement("h1",{className:"sr-only"},H.header.title),L.createElement("span",{"aria-hidden":"true"},H.header.title))),!((oe=H.general)===null||oe===void 0)&&oe.embedded&&H.chatWindow&&(H.chatWindow.defaultOpen=!0),H.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},H.chatHistory={disabled:!1},H.chatButton=Object.assign(Object.assign({},H.chatButton),{icon:(ce=H.header)===null||ce===void 0?void 0:ce.avatar}),H.event={rcbToggleChatWindow:!0}},[H])})({settings:U,themeColors:re});const w=be(()=>{const F=(Y=>{let{endpoint:te,ratingEndpoint:oe,apiKey:ce,sessionId:pe,isResetting:ve=()=>!1,isLoggedIn:Ve,allowAnonAccess:Tt=!1,loginUrl:Qt="/login",actingUser:st,trackEvent:Ne}=Y;if(Ve===!1&&!Tt)return Ne==null||Ne({type:"chatbot_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:L.createElement(Fs,{loginUrl:Qt}),chatDisabled:!0,path:"qa_loop"}};let Ke=null,er=!1;if(!te)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async ut=>{const{userInput:At}=ut;if(ve&&ve()||!At||At.trim()==="")return null;if(At==="👍 Helpful"||At==="👎 Not helpful"){if(oe&&Ke)try{const ke=At==="👍 Helpful",Ge={"Content-Type":"application/json"};ce&&(Ge["X-API-KEY"]=ce);const $e=pe();$e&&(Ge["X-Session-ID"]=$e,Ge["X-Query-ID"]=Ke),await fetch(oe,{method:"POST",headers:Ge,body:JSON.stringify({sessionId:$e,queryId:Ke,rating:ke?1:0})}),Ne==null||Ne({type:"chatbot_rating_sent",queryId:Ke,rating:ke?"helpful":"not_helpful"})}catch(ke){St("Error sending feedback:",ke)}return"Thanks for the feedback! Feel free to ask another question."}try{const ke=js();Ke=ke,Ne==null||Ne({type:"chatbot_question_sent",queryId:ke,questionLength:At.length});const Ge={"Content-Type":"application/json"};ce&&(Ge["X-API-KEY"]=ce);const $e=pe();$e&&(Ge["X-Session-ID"]=$e,Ge["X-Query-ID"]=ke),st&&(Ge["X-Acting-User"]=st);const bn={query:At,session_id:$e,question_id:ke};st&&(bn.acting_user=st),Vn("SENT to API",{session_id:$e,question_id:ke,acting_user:st||"(not set)"});const So=Date.now(),wn=await fetch(te,{method:"POST",headers:Ge,body:JSON.stringify(bn)}),Bo=Date.now()-So;if(!wn.ok)throw new Error("API returned ".concat(wn.status));const Mt=await wn.json(),xn=Mt.response||Mt.answer||Mt.text||Mt.message;if(!xn)throw new Error("Invalid response format from API");const T=(le=>{if(!le||typeof le!="string")return le;let se=le.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return se=se.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),_e=>{let Qe=_e,Se="";const wt=Qe.match(/([.,;:!?]+)$/);return wt&&(Se=wt[1],Qe=Qe.slice(0,-Se.length)),"[".concat(Qe,"](").concat(Qe,")").concat(Se)}),se})(xn),G=function(le){const{confidence:se,tools_used:_e,metadata:Qe}=le;if(!(se||_e&&_e.length!==0))return"";const Se=[];return se&&Se.push("• Confidence: ".concat(se)),_e&&_e.length>0&&Se.push("• Tools used: ".concat(_e.join(", "))),Qe!=null&&Qe.agent&&Se.push("• Agent: ".concat(Qe.agent)),`---
38
+ `),R.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(n),style:Object.assign(Object.assign({},i),r)},"Log In"))},Qd=()=>R.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},R.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},R.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),R.createElement("circle",{cx:"12",cy:"7",r:"4"}))),Pe=[];for(let e=0;e<256;++e)Pe.push((e+256).toString(16).slice(1));let yo;const Md=new Uint8Array(16);var zs={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function js(e,t,n){var o;if(zs.randomUUID&&!e)return zs.randomUUID();const r=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!yo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");yo=crypto.getRandomValues.bind(crypto)}return yo(Md)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(i,s=0){return(Pe[i[s+0]]+Pe[i[s+1]]+Pe[i[s+2]]+Pe[i[s+3]]+"-"+Pe[i[s+4]]+Pe[i[s+5]]+"-"+Pe[i[s+6]]+Pe[i[s+7]]+"-"+Pe[i[s+8]]+Pe[i[s+9]]+"-"+Pe[i[s+10]]+Pe[i[s+11]]+Pe[i[s+12]]+Pe[i[s+13]]+Pe[i[s+14]]+Pe[i[s+15]]).toLowerCase()}(r)}function Xn(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const Od="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",Nd="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",Ld="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",Rd="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",Hd="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",Ud=()=>{Xn()&&console.log("%c QA Bot Core %c v".concat("0.2.19"," "),Rd,Hd)},Vn=function(e){if(Xn()){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console.log("%c[Session]%c ".concat(e),Od,"",...n)}},at=function(e){if(Xn()){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];console.log("%c[History]%c ".concat(e),Nd,"",...n)}},Fd=(e,t)=>{Xn()&&console.log("%c[Message]%c ".concat(e),Ld,"",t)},zd=function(){console.warn(...arguments)},St=function(){console.error(...arguments)},Ws="qa_bot_session_messages",qs=()=>"qa_bot_session_".concat(js()),mn=()=>{try{const e=localStorage.getItem(Ws);return e?JSON.parse(e):{}}catch{return{}}},jd=(e,t,n,r,o)=>{const i=mn();if(!i[e]&&(i[e]={messages:[],startedAt:new Date().toISOString(),preview:""},at("NEW session created",{sessionId:e.slice(-12)})),i[e].messages.some(l=>l.id===t))return void at("DUPLICATE message skipped",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r});const s={id:t,content:n,sender:r,type:o,timestamp:Date.now()};i[e].messages.push(s),at("MESSAGE added",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r,totalInSession:i[e].messages.length});const A=i[e].messages,a=A.find(l=>{var c;return l.sender.toLowerCase()==="bot"&&((c=l.content)===null||c===void 0?void 0:c.trim())&&l.content.length>=100});if(a){const l=a.content;i[e].preview=l.slice(0,50)+(l.length>50?"...":"")}else{const l=A.find(c=>{var u;return c.sender.toLowerCase()==="user"&&((u=c.content)===null||u===void 0?void 0:u.trim())});if(l&&!i[e].preview){const c=l.content;i[e].preview=c.slice(0,50)+(c.length>50?"...":"")}}(l=>{var c;const u=()=>Object.values(l).reduce((d,p)=>d+p.messages.length,0);for(;u()>100&&Object.keys(l).length>1;){const d=(c=Object.entries(l).sort((p,h)=>{let[,m]=p,[,f]=h;return new Date(m.startedAt).getTime()-new Date(f.startedAt).getTime()})[0])===null||c===void 0?void 0:c[0];if(!d)break;delete l[d]}localStorage.setItem(Ws,JSON.stringify(l))})(i),at("STORAGE state",{ourSessions:Object.keys(i).length,ourTotalMessages:Object.values(i).reduce((l,c)=>l+c.messages.length,0)})},Gs=e=>{var t,n;return(n=(t=mn()[e])===null||t===void 0?void 0:t.messages.length)!==null&&n!==void 0?n:0},Wd=e=>{const t=mn()[e];return t!=null&&t.startedAt?Date.now()-new Date(t.startedAt).getTime():0},Ys=Ye(void 0),qd=e=>{let{children:t,getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}=e;return R.createElement(Ys.Provider,{value:{getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}},t)},vo=()=>{const e=ze(Ys);if(!e)throw new Error("useSession must be used within a SessionProvider");return e},Gd=()=>{const[e,t]=J(!1),[n,r]=J([]),[o,i]=J(null),[s,A]=J(0),a=ae(null),l=ae(null),{replaceMessages:c}=ln(),{toggleTextAreaDisabled:u}=ga(),{setSessionId:d,getSessionId:p}=vo();Z(()=>{var m,f;const v=g=>{a.current&&!a.current.contains(g.target)&&l.current&&!l.current.contains(g.target)&&t(!1)},y=(f=(m=a.current)===null||m===void 0?void 0:m.getRootNode())!==null&&f!==void 0?f:document;return e&&y.addEventListener("mousedown",v),()=>{y.removeEventListener("mousedown",v)}},[e]);const h=m=>{var f;const v=p();if(at("RESTORE requested",{targetSession:m.slice(-12),currentSession:v==null?void 0:v.slice(-12)}),m===v)return at("RESTORE skipped - already on this session"),void t(!1);const y=(k=>{var E;return((E=mn()[k])===null||E===void 0?void 0:E.messages)||[]})(m).filter(k=>{var E;return(E=k.content)===null||E===void 0?void 0:E.trim()});at("Stored messages from our localStorage",{count:y.length,ids:y.map(k=>k.id.slice(-8))});const g=y.map(k=>({id:k.id,content:k.content,sender:k.sender.toUpperCase(),type:k.type||"string",timestamp:new Date(k.timestamp).toISOString()}));var x;c(g),at("replaceMessages called",{count:g.length}),x=(f=l.current)===null||f===void 0?void 0:f.getRootNode(),setTimeout(()=>{const k=(x||document).querySelector(".rcb-chat-body-container");k&&k.querySelectorAll(".rcb-bot-message").forEach(E=>{var C;let I=E.innerHTML,S=!1;I.includes("](")&&(I=I.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),S=!0),I.includes("&lt;a href=")&&(I=I.replace(/&lt;a\s+href=["']([^"']+)["'][^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),S=!0),(I.includes("&lt;a ")||!((C=E.textContent)===null||C===void 0)&&C.includes("<a href="))&&(E.textContent||"").includes("<a href=")&&(I=I.replace(/&lt;a\s+href="([^"]+)"[^&]*&gt;([^&]+)&lt;\/a&gt;/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),S=!0),S&&(E.innerHTML=I)})},50),d(m),at("Session ID updated",{newSession:m.slice(-12)}),u(!1),at("Chat input enabled after restore"),t(!1)};return R.createElement("div",{style:{position:"relative"}},R.createElement("button",{ref:l,className:"history-button",onClick:()=>{if(!e&&(r((()=>{const m=mn();return Object.entries(m).map(f=>{let[v,y]=f;return Object.assign({sessionId:v},y)}).sort((f,v)=>new Date(v.startedAt).getTime()-new Date(f.startedAt).getTime())})()),l.current)){const m=l.current.closest(".rcb-chat-window");if(m){const f=m.getBoundingClientRect(),v=l.current.getBoundingClientRect();i(f.width+3),A(f.right-v.right-18+4)}}t(!e)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":e,"aria-haspopup":"menu"},R.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},R.createElement("circle",{cx:"12",cy:"12",r:"10"}),R.createElement("polyline",{points:"12 6 12 12 16 14"}))),e&&R.createElement("div",{ref:a,role:"menu",style:{position:"absolute",right:s?"-".concat(s,"px"):"-18px",top:"100%",marginTop:"8px",width:o?"".concat(o,"px"):"550px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},n.length===0?R.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(m=>R.createElement("button",{key:m.sessionId,role:"menuitem",onClick:()=>h(m.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:f=>{f.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent"}},R.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},m.preview||"New conversation"),R.createElement("span",{style:{fontSize:"12px",color:"#888"}},(f=>{const v=new Date(f),y=new Date().getTime()-v.getTime(),g=Math.floor(y/864e5);return g===0?v.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):g===1?"Yesterday":g<7?v.toLocaleDateString([],{weekday:"short"}):v.toLocaleDateString([],{month:"short",day:"numeric"})})(m.startedAt))))))};function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(null,arguments)}const Xs=({width:e=24,height:t=24,color:n="currentColor",children:r,...o})=>R.createElement("svg",bo({xmlns:"http://www.w3.org/2000/svg",width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),r),Yd=e=>R.createElement(Xs,e,R.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),Vs=Ye(null),Xd=e=>{let{trackEvent:t,children:n}=e;const r=ae(t);return r.current=t,R.createElement(Vs.Provider,{value:{trackEvent:o=>r.current(o)}},n)},Vd=()=>{const{restartFlow:e}=Ln(),{setTextAreaValue:t}=ga(),{messages:n}=ln(),{getSessionId:r,resetSession:o,clearResettingFlag:i}=vo(),{trackEvent:s}=ze(Vs)||{trackEvent:()=>{}};return R.createElement("button",{onClick:async()=>{const A=r(),a=A?Gs(A):0;s({type:"chatbot_new_chat",previousMessageCount:a}),o(),await t(""),await e(),setTimeout(()=>{i()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:A=>{A.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:A=>{A.target.style.backgroundColor="var(--primaryColor, #107180)"}},R.createElement(Yd,{width:16,height:16}),"New Chat")};function wo(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(!e)return"";if(Array.isArray(e))return e.map(wo).join("");if(typeof e=="object"&&e!==null&&"props"in e){const t=e.props;if(t&&"children"in t)return wo(t.children)}return""}const Kd=()=>{const{getSessionId:e}=vo(),t=W(n=>{var r;const o=(r=n.data)===null||r===void 0?void 0:r.message;if(!(o!=null&&o.id))return;const i=o.sender,s=o.type||"string";let A;if(A=typeof o.content=="string"?o.content:wo(o.content),Fd("TRACKED",{id:o.id,sender:i,content:A.substring(0,50)+(A.length>50?"...":"")}),A.includes("rcb-options-container")||!A.trim())return;const a=e();jd(a,o.id,A,i,s)},[e]);return Z(()=>(window.addEventListener("rcb-pre-inject-message",t),()=>{window.removeEventListener("rcb-pre-inject-message",t)}),[t]),null},$d=()=>(Z(()=>{const e=i=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(i.key))return;const s=document.activeElement;if(s&&(s.tagName==="INPUT"||s.tagName==="TEXTAREA"||s.contentEditable==="true"||s.classList.contains("rcb-chat-input-textarea")))return;const A=document.querySelector(".rcb-chat-window");if(!A)return;const a=Array.from(A.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(u=>u.offsetParent!==null);if(a.length>0){const u=a[a.length-1].querySelector(".rcb-checkbox-container");if(u&&u.offsetParent!==null){const d=Array.from(u.querySelectorAll(".rcb-checkbox-row-container")),p=u.querySelector(".rcb-checkbox-next-button");if(d.length>0){const h=[...d];return p&&h.push(p),void((m,f)=>{m.preventDefault();let v=-1;for(let g=0;g<f.length;g++)if(f[g]===document.activeElement||f[g].contains(document.activeElement)){v=g;break}v===-1&&(v=0);let y=v;switch(m.key){case"ArrowDown":case"ArrowRight":y=v<f.length-1?v+1:0;break;case"ArrowUp":case"ArrowLeft":y=v>0?v-1:f.length-1;break;case"Home":y=0;break;case"End":y=f.length-1;break;case"Enter":case" ":{const g=f[v],x=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void g.dispatchEvent(x)}default:return}f[y].focus(),f[y].setAttribute("tabindex","0"),f[y].classList.add("keyboard-focused"),f.forEach((g,x)=>{x!==y&&(g.setAttribute("tabindex","-1"),g.classList.remove("keyboard-focused"))})})(i,h)}}}let l=[];if(a.length>0){const u=a[a.length-1],d=Array.from(u.querySelectorAll(".rcb-options-container")).filter(p=>p.offsetParent!==null);if(d.length>0){const p=d[d.length-1];l=Array.from(p.querySelectorAll(".rcb-options"))}}if(l.length===0)return;const c=l.findIndex(u=>u===document.activeElement);switch(i.key){case"ArrowDown":case"ArrowRight":{let u;i.preventDefault(),u=c<l.length-1?c+1:0,l[u].setAttribute("tabindex","0"),l.forEach((d,p)=>{p!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus();break}case"ArrowUp":case"ArrowLeft":{let u;i.preventDefault(),u=c>0?c-1:l.length-1,l[u].setAttribute("tabindex","0"),l.forEach((d,p)=>{p!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus();break}case"Enter":case" ":if(i.preventDefault(),document.activeElement&&l.includes(document.activeElement)){const u=document.activeElement;if(u.classList.contains("rcb-checkbox-row-container")||u.closest(".rcb-checkbox-row-container")){const d=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});u.dispatchEvent(d);const p=u.querySelector(".rcb-checkbox-label"),h=p?p.textContent:u.textContent||"checkbox",m=u.querySelector(".rcb-checkbox-mark"),f=m&&m.style.backgroundColor?"checked":"unchecked";t(`${h} ${f}`)}else{const d=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});u.dispatchEvent(d);const p=u.textContent||u.innerText;t(`Selected: ${p}`)}}break;case"Home":i.preventDefault(),l.length>0&&(l[0].setAttribute("tabindex","0"),l.forEach((u,d)=>{d!==0&&(u.setAttribute("tabindex","-1"),u.classList.remove("keyboard-focused"))}),l[0].classList.add("keyboard-focused"),l[0].focus());break;case"End":if(i.preventDefault(),l.length>0){const u=l.length-1;l[u].setAttribute("tabindex","0"),l.forEach((d,p)=>{p!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus()}}},t=i=>{const s=document.createElement("div");s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true"),s.className="sr-only",s.textContent=i,document.body.appendChild(s),setTimeout(()=>{document.body.contains(s)&&document.body.removeChild(s)},1e3)},n=(i=null)=>{let s=i;if(s||(s=document.querySelector(".rcb-chat-window"),s||(s=document.querySelector('[class*="rcb-chat"]')),s||(s=document.querySelector(".qa-bot"))),!s)return;const A=s.closest(".embedded-qa-bot")!==null,a=Array.from(s.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(d=>d.offsetParent!==null);if(a.length===0)return;const l=a[a.length-1],c=Array.from(l.querySelectorAll(".rcb-options-container")).filter(d=>d.offsetParent!==null);let u=[];if(c.length>0){const d=c[c.length-1];u=Array.from(d.querySelectorAll(".rcb-options"))}if(u.length===0){let d=l.querySelector(".rcb-checkbox-container");if(!d&&s&&(d=s.querySelector(".rcb-checkbox-container")),d&&d.offsetParent!==null){const p=Array.from(d.querySelectorAll(".rcb-checkbox-row-container")).filter(h=>h.offsetParent!==null&&h.style.display!=="none");if(p.length>0){const h=d.querySelector(".rcb-checkbox-next-button"),m=[...p];if(h&&h.offsetParent!==null&&m.push(h),m.forEach((f,v)=>{f.setAttribute("tabindex",v===0?"0":"-1"),v===0?f.classList.add("keyboard-focused"):f.classList.remove("keyboard-focused")}),p.length>1){d.querySelectorAll(".keyboard-nav-hint").forEach(v=>v.remove());const f=document.createElement("div");f.className="keyboard-nav-hint",f.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",f.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",d.insertBefore(f,d.firstChild)}return void setTimeout(()=>{m[0]&&m[0].offsetParent!==null&&!A&&m[0].focus()},150)}}}if(u.length>0){if(u.forEach((d,p)=>{const h=p===0?"0":"-1";d.setAttribute("tabindex",h),d.setAttribute("role","option"),d.setAttribute("aria-posinset",p+1),d.setAttribute("aria-setsize",u.length),p===0?d.classList.add("keyboard-focused"):d.classList.remove("keyboard-focused")}),u.length>1){const d=c.length>0?c[c.length-1]:null;if(d){d.querySelectorAll(".keyboard-nav-hint").forEach(h=>h.remove());const p=document.createElement("div");p.className="keyboard-nav-hint",p.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",p.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",d.insertBefore(p,d.firstChild)}}else{const d=c.length>0?c[c.length-1]:null;d&&d.querySelectorAll(".keyboard-nav-hint").forEach(p=>p.remove())}setTimeout(()=>{u[0]&&u[0].offsetParent!==null&&!A&&(u[0].focus(),u.length>1&&t(`${u.length} options available. Use arrow keys to navigate.`))},200)}},r=new MutationObserver(i=>{i.forEach(s=>{var A,a;if(s.type==="childList"){const l=Array.from(s.addedNodes),c=l.some(d=>{var p,h,m,f;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-options-container"))||((h=d.classList)==null?void 0:h.contains("rcb-options"))||((m=d.querySelector)==null?void 0:m.call(d,".rcb-options-container"))||((f=d.querySelector)==null?void 0:f.call(d,".rcb-options")))}),u=l.some(d=>{var p,h;return d.nodeType===Node.ELEMENT_NODE&&(((p=d.classList)==null?void 0:p.contains("rcb-checkbox-container"))||((h=d.querySelector)==null?void 0:h.call(d,".rcb-checkbox-container")))});if(c||u){let d=s.target;for(;d&&!((A=d.classList)!=null&&A.contains("qa-bot"))&&!((a=d.classList)!=null&&a.contains("rcb-chat-window"));)d=d.parentElement;(d||document).querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(p=>{p.setAttribute("tabindex","-1"),p.classList.remove("keyboard-focused")}),setTimeout(()=>n(d),100)}}})});r.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",e),n();const o=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(i=>{const s=i.querySelectorAll(".rcb-options-container .rcb-options").length>0,A=i.querySelectorAll(".rcb-checkbox-row-container").length>0;if(s){const a=i.querySelectorAll(".rcb-options[tabindex]").length;i.querySelectorAll(".rcb-options").length>a&&n(i)}if(A){const a=i.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;i.querySelectorAll(".rcb-checkbox-row-container").length>a&&n(i)}})},1e3);return()=>{document.removeEventListener("keydown",e),r.disconnect(),clearInterval(o)}},[]),null),Jd="#1a5b6e",Zd="#107180",ep="Arial, sans-serif",Ks="Q&A Bot",tp="/chat-icon.svg",np="Type your question here...",rp="Select an option to continue",op=!1,ip="Ask me a question!",$s="/login",ap={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},xo=Ie((e,t)=>{var n,r;const{apiKey:o,qaEndpoint:i,ratingEndpoint:s,welcomeMessage:A,open:a,onOpenChange:l,isLoggedIn:c,allowAnonAccess:u=!1,actingUser:d,primaryColor:p,secondaryColor:h,botName:m,logo:f,placeholder:v,errorMessage:y,embedded:g,footerText:x,footerLink:k,tooltipText:E,loginUrl:C,customFlow:I,onAnalyticsEvent:S}=e,P=ae("bot_".concat(Math.random().toString(36).substr(2,9)));Z(()=>{Ud()},[]);const D=ae(null);D.current===null&&(D.current=qs(),Vn("CREATED",D.current));const B=ae(!1),N=ae({getSessionId:()=>D.current,isResetting:()=>B.current}),[L,Q]=J(c);Z(()=>{Q(c)},[c]);const z=g!==void 0?g:op,M=W(F=>{var H;S&&S(Object.assign(Object.assign({},F),{timestamp:Date.now(),sessionId:(H=D.current)!==null&&H!==void 0?H:void 0,pageUrl:typeof window<"u"?window.location.href:void 0,isEmbedded:z}))},[S,z]),U=be(()=>{const F=Object.assign({},ap);F.general=Object.assign(Object.assign({},F.general),{primaryColor:p||Jd,secondaryColor:h||Zd,fontFamily:ep,embedded:z});const H=L===!1?[R.createElement(Fs,{key:"login-button",loginUrl:C||$s,isHeaderButton:!0})]:[R.createElement(Gd,{key:"history-button"}),R.createElement(Qd,{key:"user-icon"})];F.header={title:R.createElement("span",{style:{fontSize:14,fontWeight:500}},m||Ks),showAvatar:!0,avatar:f||tp,buttons:[...H,ye.CLOSE_CHAT_BUTTON]},F.chatInput=Object.assign(Object.assign({},F.chatInput),{disabled:!1,enabledPlaceholderText:v||np,disabledPlaceholderText:y||rp}),F.tooltip=Object.assign(Object.assign({},F.tooltip),{text:E||ip});const Y=x?k?R.createElement("a",{href:k,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},x):R.createElement("span",{key:"footer-text"},x):null;return F.footer={text:Y,buttons:[R.createElement(Vd,{key:"new-chat-button"})]},F.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},F},[p,h,m,f,v,y,z,E,L,C,x,k]),b=ae(null),re=function(F){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return be(()=>{const Y=(te,oe)=>{if(F.current){const ce=getComputedStyle(F.current).getPropertyValue(te);if(ce&&ce.trim()!=="")return ce.trim();if(F.current.parentElement){const pe=getComputedStyle(F.current.parentElement).getPropertyValue(te);if(pe&&pe.trim()!=="")return pe.trim()}}return oe};return{primaryColor:Y("--primaryColor",H.primaryColor),secondaryColor:Y("--secondaryColor",H.secondaryColor),fontFamily:Y("--fontFamily",H.fontFamily)}},[F,H])}(b,U.general);((F,H)=>{Z(()=>{H.current&&(F?H.current.classList.add("bot-logged-in"):H.current.classList.remove("bot-logged-in"))},[F,H])})(L!==!1,b),(F=>{let{settings:H,themeColors:Y}=F;Z(()=>{Y&&(Object.entries(Y).forEach(te=>{let[oe,ce]=te;ce&&document.documentElement.style.setProperty("--".concat(oe),ce)}),Y.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",Y.primaryColor),Y.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",Y.secondaryColor))},[Y]),Z(()=>{var te,oe,ce;!((te=H.header)===null||te===void 0)&&te.title&&typeof H.header.title=="string"&&(H.header.title=R.createElement("div",{key:"header-title"},R.createElement("h1",{className:"sr-only"},H.header.title),R.createElement("span",{"aria-hidden":"true"},H.header.title))),!((oe=H.general)===null||oe===void 0)&&oe.embedded&&H.chatWindow&&(H.chatWindow.defaultOpen=!0),H.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},H.chatHistory={disabled:!1},H.chatButton=Object.assign(Object.assign({},H.chatButton),{icon:(ce=H.header)===null||ce===void 0?void 0:ce.avatar}),H.event={rcbToggleChatWindow:!0}},[H])})({settings:U,themeColors:re});const w=be(()=>{const F=(Y=>{let{endpoint:te,ratingEndpoint:oe,apiKey:ce,sessionId:pe,isResetting:ve=()=>!1,isLoggedIn:Ve,allowAnonAccess:Tt=!1,loginUrl:Qt="/login",actingUser:st,trackEvent:Ne}=Y;if(Ve===!1&&!Tt)return Ne==null||Ne({type:"chatbot_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:R.createElement(Fs,{loginUrl:Qt}),chatDisabled:!0,path:"qa_loop"}};let Ke=null,er=!1;if(!te)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async ut=>{const{userInput:At}=ut;if(ve&&ve()||!At||At.trim()==="")return null;if(At==="👍 Helpful"||At==="👎 Not helpful"){if(oe&&Ke)try{const ke=At==="👍 Helpful",Ge={"Content-Type":"application/json"};ce&&(Ge["X-API-KEY"]=ce);const $e=pe();$e&&(Ge["X-Session-ID"]=$e,Ge["X-Query-ID"]=Ke),await fetch(oe,{method:"POST",headers:Ge,body:JSON.stringify({sessionId:$e,queryId:Ke,rating:ke?1:0})}),Ne==null||Ne({type:"chatbot_rating_sent",queryId:Ke,rating:ke?"helpful":"not_helpful"})}catch(ke){St("Error sending feedback:",ke)}return"Thanks for the feedback! Feel free to ask another question."}try{const ke=js();Ke=ke,Ne==null||Ne({type:"chatbot_question_sent",queryId:ke,questionLength:At.length});const Ge={"Content-Type":"application/json"};ce&&(Ge["X-API-KEY"]=ce);const $e=pe();$e&&(Ge["X-Session-ID"]=$e,Ge["X-Query-ID"]=ke),st&&(Ge["X-Acting-User"]=st);const bn={query:At,session_id:$e,question_id:ke};st&&(bn.acting_user=st),Vn("SENT to API",{session_id:$e,question_id:ke,acting_user:st||"(not set)"});const So=Date.now(),wn=await fetch(te,{method:"POST",headers:Ge,body:JSON.stringify(bn)}),Bo=Date.now()-So;if(!wn.ok)throw new Error("API returned ".concat(wn.status));const Mt=await wn.json(),xn=Mt.response||Mt.answer||Mt.text||Mt.message;if(!xn)throw new Error("Invalid response format from API");const T=(le=>{if(!le||typeof le!="string")return le;let se=le.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return se=se.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),_e=>{let Qe=_e,Se="";const wt=Qe.match(/([.,;:!?]+)$/);return wt&&(Se=wt[1],Qe=Qe.slice(0,-Se.length)),"[".concat(Qe,"](").concat(Qe,")").concat(Se)}),se})(xn),G=function(le){const{confidence:se,tools_used:_e,metadata:Qe}=le;if(!(se||_e&&_e.length!==0))return"";const Se=[];return se&&Se.push("• Confidence: ".concat(se)),_e&&_e.length>0&&Se.push("• Tools used: ".concat(_e.join(", "))),Qe!=null&&Qe.agent&&Se.push("• Agent: ".concat(Qe.agent)),`---
39
39
  `.concat(Se.join(`
40
40
  `))}(Mt),K=G?"".concat(T,`
41
41
 
42
- `).concat(G):T;return await ut.injectMessage(K),Ne==null||Ne({type:"chatbot_answer_received",queryId:ke,responseTimeMs:Bo,success:!0,responseLength:xn.length,hasMetadata:!!G}),er=!0,setTimeout(async()=>{await ut.injectMessage("Feel free to ask another question.")},100),null}catch(ke){return St("Error in Q&A flow:",ke),Ne==null||Ne({type:"chatbot_answer_error",queryId:Ke??void 0,errorType:ke instanceof Error?ke.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:ut=>ve&&ve()||ut.userInput==="👍 Helpful"||ut.userInput==="👎 Not helpful"?[]:oe&&er?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:i,ratingEndpoint:s,apiKey:o,sessionId:R.current.getSessionId,isResetting:R.current.isResetting,isLoggedIn:N,allowAnonAccess:u,loginUrl:C||$s,actingUser:d,trackEvent:M});return Object.assign(Object.assign({start:{message:A,transition:{duration:0},path:"qa_loop"}},F),I||{})},[o,i,s,A,N,u,C,I,d,M]),$=be(()=>{return[()=>Ic(H),Id(),()=>Td(F)];var F,H},[]);return Z(()=>{const F=()=>{const Y=document.querySelector(".rcb-chat-window");if(!Y)return;const te=Y.querySelector(".rcb-send-button");te&&(te.hasAttribute("tabindex")||te.setAttribute("tabindex","0"),te.hasAttribute("data-keyboard-enabled")||(te.setAttribute("data-keyboard-enabled","true"),te.addEventListener("keydown",oe=>{if(oe.key==="Enter"||oe.key===" "){oe.preventDefault();const ce=te&&Object.keys(te).find(ve=>ve.startsWith("__reactProps"));if(ce){const ve=te[ce],Ve=ve==null?void 0:ve.onMouseDown;if(Ve&&typeof Ve=="function")return void Ve(oe)}const pe=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});te.dispatchEvent(pe)}})))},H=setInterval(F,1e3);return F(),()=>clearInterval(H)},[]),$d(),Z(()=>{if(!z){const F=H=>{const Y=H.data.newState;l==null||l(Y);const te=D.current;M(Y?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:te?Gs(te):0,durationMs:te?Wd(te):0})};return window.addEventListener("rcb-toggle-chat-window",F),()=>{window.removeEventListener("rcb-toggle-chat-window",F)}}},[z,l,M]),L.createElement("div",{className:"qa-bot ".concat(!((n=U.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:b,role:"region","aria-label":m||Ks},L.createElement(qd,{getSessionId:()=>D.current,setSessionId:F=>{const H=D.current;D.current=F,Vn("RESTORED","".concat(H==null?void 0:H.slice(-12)," -> ").concat(F.slice(-12)))},resetSession:()=>{const F=D.current;B.current=!0,D.current=qs(),Vn("RESET","".concat(F==null?void 0:F.slice(-12)," -> ").concat(D.current.slice(-12)))},clearResettingFlag:()=>{B.current=!1}},L.createElement(Xd,{trackEvent:M},L.createElement(fa,null,L.createElement("div",null,L.createElement(Kd,null),L.createElement(Us,{ref:t,embedded:((r=U.general)===null||r===void 0?void 0:r.embedded)||!1,currentOpen:a||!1,enabled:N!==!1,onSetEnabled:F=>Q(!!F&&void 0)}),L.createElement(dc,{key:"chatbot-".concat(P.current,"-").concat(N),settings:U,flow:w,plugins:$}),L.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),L.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});xo.displayName="QABot",Li('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset:2px}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const sp=()=>{const[e,t]=J(!1),n=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!n())throw new Error("Screen capture is not available in this environment");try{t(!0);const r=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=r,await new Promise(c=>{o.onloadedmetadata=()=>{o.play(),c()}});const i=document.createElement("canvas");i.width=o.videoWidth,i.height=o.videoHeight;const s=i.getContext("2d");if(!s)throw new Error("Could not get canvas context");s.drawImage(o,0,0,i.width,i.height);const A=await new Promise(c=>i.toBlob(c,"image/png"));if(!A)throw new Error("Could not create image blob");const a=new Date().toISOString().replace(/[:.]/g,"-"),l=new File([A],"screenshot-".concat(a,".png"),{type:"image/png"});return r.getTracks().forEach(c=>c.stop()),t(!1),l}catch(r){throw St("Error capturing screenshot:",r),t(!1),r}},isCapturing:e,isScreenCaptureAvailable:n()}},Ap=e=>L.createElement(Xs,e,L.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),L.createElement("polyline",{points:"17 8 12 3 7 8"}),L.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),lp=e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{if(typeof r.result!="string")return void n(new Error("Failed to read file ".concat(e.name)));const o=r.result.split(",")[1];t({fileName:e.name,contentType:e.type,size:e.size,fileData:o})},r.onerror=()=>n(new Error("Failed to read file ".concat(e.name))),r.readAsDataURL(e)}),cp=e=>Promise.all(e.map(lp)),up=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),Kn=e=>{let{onFileUpload:t,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=e;const[s,A]=J(!1),[a,l]=J([]),[c,u]=J(null),d=ae(null),{captureScreenshot:p,isCapturing:h,isScreenCaptureAvailable:m}=sp(),f=E=>{const C=document.createElement("div");C.setAttribute("aria-live","assertive"),C.setAttribute("aria-atomic","true"),C.className="sr-only",C.textContent=E,document.body.appendChild(C),setTimeout(()=>document.body.removeChild(C),1e3)},v=E=>{if(!E||E.length===0)return void zd("FileUploadComponent: No valid files provided to handleFiles");let C;try{C=Array.from(E)}catch(D){return St("FileUploadComponent: Error converting files to array:",D),void f("Error processing selected files. Please try again.")}const I=[...a,...C];l(I);const S=C.length,P=C.map(D=>D.name).join(", ");f("".concat(S," file").concat(S>1?"s":""," selected: ").concat(P)),setTimeout(()=>{const D=document.querySelector(".rcb-chat-content");D&&(D.scrollTop=D.scrollHeight)},100),t&&t(I)},y=E=>{E.preventDefault(),E.stopPropagation(),E.type==="dragenter"||E.type==="dragover"?A(!0):E.type==="dragleave"&&A(!1)},g=()=>{try{d.current&&d.current.click()}catch(E){St("FileUploadComponent: Error in handleButtonClick:",E),f("Error opening file selection dialog. Please try again.")}},x=()=>{u(null)},k=o&&m;return L.createElement("div",{className:"file-upload-container ".concat(i||""),style:{padding:"16px",margin:"8px 0"}},k&&L.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},L.createElement("button",{onClick:E=>{E.preventDefault(),(async()=>{try{const C=await p();v([C]),f("Screenshot captured successfully")}catch{f("Error capturing screenshot. Please try again.")}})()},disabled:h,"aria-describedby":"screenshot-help","aria-label":h?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:h?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},L.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),L.createElement("circle",{cx:"12",cy:"13",r:"4"})),h?"Taking screenshot...":"Take screenshot..."),L.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),L.createElement("div",{className:"file-upload-dropzone ".concat(s?"active":""),onDragEnter:y,onDragLeave:y,onDragOver:y,onDrop:E=>{var C;E.preventDefault(),E.stopPropagation(),A(!1);try{!((C=E.dataTransfer)===null||C===void 0)&&C.files&&E.dataTransfer.files.length>0&&v(E.dataTransfer.files)}catch(I){St("FileUploadComponent: Error in handleDrop:",I),f("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),g())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:s?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},L.createElement("input",{ref:d,type:"file",className:"file-input",onChange:E=>{var C;try{!((C=E.target)===null||C===void 0)&&C.files&&E.target.files.length>0&&v(E.target.files)}catch(I){St("FileUploadComponent: Error in handleFileSelect:",I),f("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),L.createElement("div",{className:"upload-content",onClick:g,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},L.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},L.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},L.createElement(Ap,null),L.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),L.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",n,"MB each)")),a.length>0&&L.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},L.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),a.map((E,C)=>L.createElement("span",{key:C,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:I=>{I.stopPropagation(),(S=>{u(S)})(E)}},L.createElement("span",{onClick:I=>{I.stopPropagation(),(S=>{const P=a.filter((D,B)=>B!==S);l(P),t&&t(P)})(C)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(E.name)},"×"),E.name," (",up(E.size),")"))))),(()=>{if(!c)return null;const E=c.type.startsWith("image/"),C=c.type.startsWith("text/"),I=c.type==="application/pdf";return L.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:x},L.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:S=>S.stopPropagation()},L.createElement("button",{onClick:x,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),L.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},c.name),E&&L.createElement("img",{src:URL.createObjectURL(c),alt:c.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),C&&L.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(c)),I&&L.createElement("iframe",{src:URL.createObjectURL(c),style:{width:"100%",height:"70vh",border:"none"},title:c.name}),!E&&!C&&!I&&L.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function dp(e,t){if(!t||Object.keys(t).length===0)return e;const n={};for(const[r,o]of Object.entries(e)){let i=Object.assign({},o);if(i.chatDisabled===void 0){const s=!(!i.options&&!i.checkboxes);i.chatDisabled=s}n[r]=i}return n}function $n(e){return async t=>{const n=await e(t);await t.injectMessage(n)}}const pp=L.forwardRef((e,t)=>{const[n,r]=L.useState(e.defaultOpen||!1),o=L.useRef(null);return L.useImperativeHandle(t,()=>({addMessage:i=>{var s;(s=o.current)===null||s===void 0||s.addMessage(i)},setBotEnabled:i=>{var s;(s=o.current)===null||s===void 0||s.setBotEnabled(i)},openChat:()=>{var i;r(!0),(i=o.current)===null||i===void 0||i.openChat()},closeChat:()=>{var i;r(!1),(i=o.current)===null||i===void 0||i.closeChat()},toggleChat:()=>{var i;r(s=>!s),(i=o.current)===null||i===void 0||i.toggleChat()}}),[]),L.createElement(xo,{ref:o,apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,open:n,onOpenChange:r,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText,onAnalyticsEvent:e.onAnalyticsEvent})});pp.displayName="ProgrammaticQABot";const Bt={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"4nn5l4T4TnkMdzsK0AwAtnGRcheBDnjawuAT42LaOLc"},bt={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},Js={SESSION_ID:"access-qa-bot-session-id"};function fp({welcome:e,setTicketForm:t,isLoggedIn:n,trackEvent:r}){return{start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:o=>(r({type:"chatbot_menu_selected",selection:o.userInput}),o.userInput==="Ask a question about ACCESS"?n?"go_ahead_and_ask":"qa_loop":o.userInput==="Open a Help Ticket"?(t({}),"help_ticket"):o.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":o.userInput==="Report a security issue"?(t({}),r({type:"chatbot_security_started"}),"security_incident"):"start")},go_ahead_and_ask:{message:"Go ahead and ask your question! I'll do my best to help.",path:"qa_loop"}}}let Eo=null;function hp(e){Eo=e}function X(){return Eo?Eo.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Ce(e={}){const t=X();return{...t,email:e.email||t.email,name:e.name||t.name,accessId:e.accessId||t.accessId}}function _o(e){return e&&e.length>0?`
42
+ `).concat(G):T;return await ut.injectMessage(K),Ne==null||Ne({type:"chatbot_answer_received",queryId:ke,responseTimeMs:Bo,success:!0,responseLength:xn.length,hasMetadata:!!G}),er=!0,setTimeout(async()=>{await ut.injectMessage("Feel free to ask another question.")},100),null}catch(ke){return St("Error in Q&A flow:",ke),Ne==null||Ne({type:"chatbot_answer_error",queryId:Ke??void 0,errorType:ke instanceof Error?ke.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:ut=>ve&&ve()||ut.userInput==="👍 Helpful"||ut.userInput==="👎 Not helpful"?[]:oe&&er?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:i,ratingEndpoint:s,apiKey:o,sessionId:N.current.getSessionId,isResetting:N.current.isResetting,isLoggedIn:L,allowAnonAccess:u,loginUrl:C||$s,actingUser:d,trackEvent:M});return Object.assign(Object.assign({start:{message:A,transition:{duration:0},path:"qa_loop"}},F),I||{})},[o,i,s,A,L,u,C,I,d,M]),$=be(()=>{return[()=>Ic(H),Id(),()=>Td(F)];var F,H},[]);return Z(()=>{const F=()=>{const Y=document.querySelector(".rcb-chat-window");if(!Y)return;const te=Y.querySelector(".rcb-send-button");te&&(te.hasAttribute("tabindex")||te.setAttribute("tabindex","0"),te.hasAttribute("data-keyboard-enabled")||(te.setAttribute("data-keyboard-enabled","true"),te.addEventListener("keydown",oe=>{if(oe.key==="Enter"||oe.key===" "){oe.preventDefault();const ce=te&&Object.keys(te).find(ve=>ve.startsWith("__reactProps"));if(ce){const ve=te[ce],Ve=ve==null?void 0:ve.onMouseDown;if(Ve&&typeof Ve=="function")return void Ve(oe)}const pe=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});te.dispatchEvent(pe)}})))},H=setInterval(F,1e3);return F(),()=>clearInterval(H)},[]),$d(),Z(()=>{if(!z){const F=H=>{const Y=H.data.newState;l==null||l(Y);const te=D.current;M(Y?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:te?Gs(te):0,durationMs:te?Wd(te):0})};return window.addEventListener("rcb-toggle-chat-window",F),()=>{window.removeEventListener("rcb-toggle-chat-window",F)}}},[z,l,M]),R.createElement("div",{className:"qa-bot ".concat(!((n=U.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:b,role:"region","aria-label":m||Ks},R.createElement(qd,{getSessionId:()=>D.current,setSessionId:F=>{const H=D.current;D.current=F,Vn("RESTORED","".concat(H==null?void 0:H.slice(-12)," -> ").concat(F.slice(-12)))},resetSession:()=>{const F=D.current;B.current=!0,D.current=qs(),Vn("RESET","".concat(F==null?void 0:F.slice(-12)," -> ").concat(D.current.slice(-12)))},clearResettingFlag:()=>{B.current=!1}},R.createElement(Xd,{trackEvent:M},R.createElement(fa,null,R.createElement("div",null,R.createElement(Kd,null),R.createElement(Us,{ref:t,embedded:((r=U.general)===null||r===void 0?void 0:r.embedded)||!1,currentOpen:a||!1,enabled:L!==!1,onSetEnabled:F=>Q(!!F&&void 0)}),R.createElement(dc,{key:"chatbot-".concat(P.current,"-").concat(L),settings:U,flow:w,plugins:$}),R.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),R.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});xo.displayName="QABot",Li('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset:2px}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const sp=()=>{const[e,t]=J(!1),n=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!n())throw new Error("Screen capture is not available in this environment");try{t(!0);const r=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=r,await new Promise(c=>{o.onloadedmetadata=()=>{o.play(),c()}});const i=document.createElement("canvas");i.width=o.videoWidth,i.height=o.videoHeight;const s=i.getContext("2d");if(!s)throw new Error("Could not get canvas context");s.drawImage(o,0,0,i.width,i.height);const A=await new Promise(c=>i.toBlob(c,"image/png"));if(!A)throw new Error("Could not create image blob");const a=new Date().toISOString().replace(/[:.]/g,"-"),l=new File([A],"screenshot-".concat(a,".png"),{type:"image/png"});return r.getTracks().forEach(c=>c.stop()),t(!1),l}catch(r){throw St("Error capturing screenshot:",r),t(!1),r}},isCapturing:e,isScreenCaptureAvailable:n()}},Ap=e=>R.createElement(Xs,e,R.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),R.createElement("polyline",{points:"17 8 12 3 7 8"}),R.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),lp=e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{if(typeof r.result!="string")return void n(new Error("Failed to read file ".concat(e.name)));const o=r.result.split(",")[1];t({fileName:e.name,contentType:e.type,size:e.size,fileData:o})},r.onerror=()=>n(new Error("Failed to read file ".concat(e.name))),r.readAsDataURL(e)}),cp=e=>Promise.all(e.map(lp)),up=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB"),Kn=e=>{let{onFileUpload:t,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=e;const[s,A]=J(!1),[a,l]=J([]),[c,u]=J(null),d=ae(null),{captureScreenshot:p,isCapturing:h,isScreenCaptureAvailable:m}=sp(),f=E=>{const C=document.createElement("div");C.setAttribute("aria-live","assertive"),C.setAttribute("aria-atomic","true"),C.className="sr-only",C.textContent=E,document.body.appendChild(C),setTimeout(()=>document.body.removeChild(C),1e3)},v=E=>{if(!E||E.length===0)return void zd("FileUploadComponent: No valid files provided to handleFiles");let C;try{C=Array.from(E)}catch(D){return St("FileUploadComponent: Error converting files to array:",D),void f("Error processing selected files. Please try again.")}const I=[...a,...C];l(I);const S=C.length,P=C.map(D=>D.name).join(", ");f("".concat(S," file").concat(S>1?"s":""," selected: ").concat(P)),setTimeout(()=>{const D=document.querySelector(".rcb-chat-content");D&&(D.scrollTop=D.scrollHeight)},100),t&&t(I)},y=E=>{E.preventDefault(),E.stopPropagation(),E.type==="dragenter"||E.type==="dragover"?A(!0):E.type==="dragleave"&&A(!1)},g=()=>{try{d.current&&d.current.click()}catch(E){St("FileUploadComponent: Error in handleButtonClick:",E),f("Error opening file selection dialog. Please try again.")}},x=()=>{u(null)},k=o&&m;return R.createElement("div",{className:"file-upload-container ".concat(i||""),style:{padding:"16px",margin:"8px 0"}},k&&R.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},R.createElement("button",{onClick:E=>{E.preventDefault(),(async()=>{try{const C=await p();v([C]),f("Screenshot captured successfully")}catch{f("Error capturing screenshot. Please try again.")}})()},disabled:h,"aria-describedby":"screenshot-help","aria-label":h?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:h?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),R.createElement("circle",{cx:"12",cy:"13",r:"4"})),h?"Taking screenshot...":"Take screenshot..."),R.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),R.createElement("div",{className:"file-upload-dropzone ".concat(s?"active":""),onDragEnter:y,onDragLeave:y,onDragOver:y,onDrop:E=>{var C;E.preventDefault(),E.stopPropagation(),A(!1);try{!((C=E.dataTransfer)===null||C===void 0)&&C.files&&E.dataTransfer.files.length>0&&v(E.dataTransfer.files)}catch(I){St("FileUploadComponent: Error in handleDrop:",I),f("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),g())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:s?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},R.createElement("input",{ref:d,type:"file",className:"file-input",onChange:E=>{var C;try{!((C=E.target)===null||C===void 0)&&C.files&&E.target.files.length>0&&v(E.target.files)}catch(I){St("FileUploadComponent: Error in handleFileSelect:",I),f("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),R.createElement("div",{className:"upload-content",onClick:g,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},R.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},R.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},R.createElement(Ap,null),R.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),R.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",n,"MB each)")),a.length>0&&R.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},R.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),a.map((E,C)=>R.createElement("span",{key:C,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:I=>{I.stopPropagation(),(S=>{u(S)})(E)}},R.createElement("span",{onClick:I=>{I.stopPropagation(),(S=>{const P=a.filter((D,B)=>B!==S);l(P),t&&t(P)})(C)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(E.name)},"×"),E.name," (",up(E.size),")"))))),(()=>{if(!c)return null;const E=c.type.startsWith("image/"),C=c.type.startsWith("text/"),I=c.type==="application/pdf";return R.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:x},R.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:S=>S.stopPropagation()},R.createElement("button",{onClick:x,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),R.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},c.name),E&&R.createElement("img",{src:URL.createObjectURL(c),alt:c.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),C&&R.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(c)),I&&R.createElement("iframe",{src:URL.createObjectURL(c),style:{width:"100%",height:"70vh",border:"none"},title:c.name}),!E&&!C&&!I&&R.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function dp(e,t){if(!t||Object.keys(t).length===0)return e;const n={};for(const[r,o]of Object.entries(e)){let i=Object.assign({},o);if(i.chatDisabled===void 0){const s=!(!i.options&&!i.checkboxes);i.chatDisabled=s}n[r]=i}return n}function $n(e){return async t=>{const n=await e(t);await t.injectMessage(n)}}const pp=R.forwardRef((e,t)=>{const[n,r]=R.useState(e.defaultOpen||!1),o=R.useRef(null);return R.useImperativeHandle(t,()=>({addMessage:i=>{var s;(s=o.current)===null||s===void 0||s.addMessage(i)},setBotEnabled:i=>{var s;(s=o.current)===null||s===void 0||s.setBotEnabled(i)},openChat:()=>{var i;r(!0),(i=o.current)===null||i===void 0||i.openChat()},closeChat:()=>{var i;r(!1),(i=o.current)===null||i===void 0||i.closeChat()},toggleChat:()=>{var i;r(s=>!s),(i=o.current)===null||i===void 0||i.toggleChat()}}),[]),R.createElement(xo,{ref:o,apiKey:e.apiKey,qaEndpoint:e.qaEndpoint,ratingEndpoint:e.ratingEndpoint,welcomeMessage:e.welcomeMessage,primaryColor:e.primaryColor,secondaryColor:e.secondaryColor,botName:e.botName,logo:e.logo,placeholder:e.placeholder,errorMessage:e.errorMessage,embedded:e.embedded,isLoggedIn:e.isLoggedIn,allowAnonAccess:e.allowAnonAccess,open:n,onOpenChange:r,footerText:e.footerText,footerLink:e.footerLink,tooltipText:e.tooltipText,onAnalyticsEvent:e.onAnalyticsEvent})});pp.displayName="ProgrammaticQABot";const Bt={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"4nn5l4T4TnkMdzsK0AwAtnGRcheBDnjawuAT42LaOLc"},bt={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},Js={SESSION_ID:"access-qa-bot-session-id"};function fp({welcome:e,setTicketForm:t,isLoggedIn:n,trackEvent:r}){return{start:{message:e,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:o=>(r({type:"chatbot_menu_selected",selection:o.userInput}),o.userInput==="Ask a question about ACCESS"?n?"go_ahead_and_ask":"qa_loop":o.userInput==="Open a Help Ticket"?(t({}),"help_ticket"):o.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":o.userInput==="Report a security issue"?(t({}),r({type:"chatbot_security_started"}),"security_incident"):"start")},go_ahead_and_ask:{message:"Go ahead and ask your question! I'll do my best to help.",path:"qa_loop"}}}let Eo=null;function hp(e){Eo=e}function X(){return Eo?Eo.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Ce(e={}){const t=X();return{...t,email:e.email||t.email,name:e.name||t.name,accessId:e.accessId||t.accessId}}function _o(e){return e&&e.length>0?`
43
43
  Attachments: ${e.length} file(s) attached`:""}const Vt={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function gp(e,t="support",n=[]){const o={support:Vt.SUPPORT,general_help:Vt.SUPPORT,loginAccess:Vt.LOGIN_ACCESS,loginProvider:Vt.LOGIN_PROVIDER,security:Vt.SECURITY}[t]||Vt.SUPPORT,s={serviceDeskId:t==="security"?3:2,requestTypeId:o,requestFieldValues:{...e}};return n.length>0&&(s.attachments=await cp(n)),s}async function mp(e,t){var o,i;const r=`${Bt.NETLIFY_BASE_URL}/api/v1/${t}`;try{const s=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!s.ok){let a="";try{const l=await s.text();try{const c=JSON.parse(l);a=c.message||c.error||l}catch{a=l}}catch{a=`HTTP ${s.status} ${s.statusText}`}return s.status===403?a="The ticket service is temporarily unavailable. Please try again later or contact support directly.":s.status===404?a="Ticket service not found. Please try again later.":s.status===500?a="Server error. Please try again later.":s.status===401&&(a="Authentication error with the ticket service. Please contact support."),{success:!1,status:s.status,error:a}}const A=await s.json();return{success:!0,ticketKey:(o=A.data)==null?void 0:o.ticketKey,ticketUrl:(i=A.data)==null?void 0:i.ticketUrl}}catch(s){return{success:!1,error:s instanceof Error?s.message:"Unknown error"}}}async function Jn(e,t,n=[]){try{const r=await gp(e,t,n);return await mp(r,t==="security"?"security-incidents":"tickets")}catch(r){return{success:!1,error:r instanceof Error?r.message:"Unknown error"}}}function ko(e,t="ticket"){return e?e.success?e.ticketUrl&&e.ticketKey?`Your ${t} has been submitted successfully.
44
44
 
45
45
  Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
@@ -244,5 +244,5 @@ Would you like to submit this security incident report?`},options:["Submit Secur
244
244
  color: white !important;
245
245
  transform: translateY(0) !important;
246
246
  }
247
- `;function Qp(e){if(!e)return;const t=e.getRootNode();if(!(t instanceof ShadowRoot)||t.getElementById(eA))return;const n=document.createElement("style");n.id=eA,n.textContent=Tp,t.appendChild(n)}const tA=Ie((e,t)=>{const{apiKey:n=Bt.DEFAULT_API_KEY,isLoggedIn:r=!1,loginUrl:o=bt.LOGIN_URL,userEmail:i,userName:s,accessId:A,ringEffect:a,defaultOpen:l,onClose:c,open:u,onOpenChange:d,embedded:p=!1,welcome:h,onAnalyticsEvent:m}=e,f=ae(null),v=ae(null),[y,g]=J({}),x=be(()=>({email:i,name:s,accessId:A}),[i,s,A]);Z(()=>{Qp(v.current)},[]),Z(()=>{hp({ticketForm:y,setTicketForm:g})},[y]),Pn(t,()=>({addMessage:P=>{var D,B;(B=(D=f.current)==null?void 0:D.addMessage)==null||B.call(D,P)}}));const k=h||(r?bt.WELCOME_MESSAGE:bt.WELCOME_MESSAGE_LOGGED_OUT),E=be(()=>Ip(),[]),C=W(P=>{m&&m({...P,type:P.type,timestamp:P.timestamp??Date.now(),sessionId:P.sessionId??E})},[m,E]),I=W(P=>{m&&m({...P,type:P.type,timestamp:typeof P.timestamp=="number"?P.timestamp:Date.now(),sessionId:typeof P.sessionId=="string"?P.sessionId:E})},[m,E]),S=be(()=>{const P=fp({welcome:k,setTicketForm:g,isLoggedIn:r,trackEvent:C}),D=_p({ticketForm:y,setTicketForm:g,userInfo:x,trackEvent:C}),B=Pp({ticketForm:y,setTicketForm:g,userInfo:x,trackEvent:C}),R=Bp({sessionId:E,apiKey:n,trackEvent:C}),N={...P,...D,...B,...R};return dp(N,{disableOnOptions:!0})},[k,y,x,E,n,r,C]);return _("div",{ref:v,children:_(xo,{ref:f,isLoggedIn:r,onAnalyticsEvent:I,apiKey:n,qaEndpoint:Bt.QA_ENDPOINT,ratingEndpoint:Bt.RATING_ENDPOINT,botName:bt.BOT_NAME,logo:bt.LOGO,primaryColor:bt.PRIMARY_COLOR,secondaryColor:bt.SECONDARY_COLOR,welcomeMessage:k,tooltipText:bt.TOOLTIP,loginUrl:o,open:u,onOpenChange:d,embedded:p,footerText:"Need more help?",footerLink:"https://support.access-ci.org",customFlow:S})})});tA.displayName="AccessQABot";function Do(e){const{target:t,...n}=e;if(!t)throw new Error("qaBot: target element is required");const r=Ro();let o=n.isLoggedIn||!1,i=n.open!==void 0?n.open:n.defaultOpen||!1;const s=UA(t),A=()=>{s.render(_(tA,{ref:r,...n,isLoggedIn:o,open:i,onOpenChange:a=>{var l;i=a,(l=n.onOpenChange)==null||l.call(n,a)}}))};return A(),{addMessage(a){var l;(l=r.current)==null||l.addMessage(a)},setBotIsLoggedIn(a){o=a,A()},openChat(){i=!0,A()},closeChat(){i=!1,A()},toggleChat(){i=!i,A()},destroy(){s.unmount()}}}return typeof window<"u"&&(window.qaBot=Do),En.default=Do,En.qaBot=Do,Object.defineProperties(En,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),En}({});
247
+ `;function Qp(e){if(!e)return;const t=e.getRootNode();if(!(t instanceof ShadowRoot)||t.getElementById(eA))return;const n=document.createElement("style");n.id=eA,n.textContent=Tp,t.appendChild(n)}const tA=Ie((e,t)=>{const{apiKey:n=Bt.DEFAULT_API_KEY,isLoggedIn:r=!1,loginUrl:o=bt.LOGIN_URL,userEmail:i,userName:s,accessId:A,actingUser:a,ringEffect:l,defaultOpen:c,onClose:u,open:d,onOpenChange:p,embedded:h=!1,welcome:m,onAnalyticsEvent:f}=e,v=ae(null),y=ae(null),[g,x]=J({}),k=be(()=>({email:i,name:s,accessId:A}),[i,s,A]);Z(()=>{Qp(y.current)},[]),Z(()=>{hp({ticketForm:g,setTicketForm:x})},[g]),Pn(t,()=>({addMessage:D=>{var B,N;(N=(B=v.current)==null?void 0:B.addMessage)==null||N.call(B,D)}}));const E=m||(r?bt.WELCOME_MESSAGE:bt.WELCOME_MESSAGE_LOGGED_OUT),C=be(()=>Ip(),[]),I=W(D=>{f&&f({...D,type:D.type,timestamp:D.timestamp??Date.now(),sessionId:D.sessionId??C})},[f,C]),S=W(D=>{f&&f({...D,type:D.type,timestamp:typeof D.timestamp=="number"?D.timestamp:Date.now(),sessionId:typeof D.sessionId=="string"?D.sessionId:C})},[f,C]),P=be(()=>{const D=fp({welcome:E,setTicketForm:x,isLoggedIn:r,trackEvent:I}),B=_p({ticketForm:g,setTicketForm:x,userInfo:k,trackEvent:I}),N=Pp({ticketForm:g,setTicketForm:x,userInfo:k,trackEvent:I}),L=Bp({sessionId:C,apiKey:n,trackEvent:I}),Q={...D,...B,...N,...L};return dp(Q,{disableOnOptions:!0})},[E,g,k,C,n,r,I]);return _("div",{ref:y,children:_(xo,{ref:v,isLoggedIn:r,actingUser:a,onAnalyticsEvent:S,apiKey:n,qaEndpoint:Bt.QA_ENDPOINT,ratingEndpoint:Bt.RATING_ENDPOINT,botName:bt.BOT_NAME,logo:bt.LOGO,primaryColor:bt.PRIMARY_COLOR,secondaryColor:bt.SECONDARY_COLOR,welcomeMessage:E,tooltipText:bt.TOOLTIP,loginUrl:o,open:d,onOpenChange:p,embedded:h,footerText:"Need more help?",footerLink:"https://support.access-ci.org",customFlow:P})})});tA.displayName="AccessQABot";function Do(e){const{target:t,...n}=e;if(!t)throw new Error("qaBot: target element is required");const r=Ro();let o=n.isLoggedIn||!1,i=n.open!==void 0?n.open:n.defaultOpen||!1;const s=UA(t),A=()=>{s.render(_(tA,{ref:r,...n,isLoggedIn:o,open:i,onOpenChange:a=>{var l;i=a,(l=n.onOpenChange)==null||l.call(n,a)}}))};return A(),{addMessage(a){var l;(l=r.current)==null||l.addMessage(a)},setBotIsLoggedIn(a){o=a,A()},openChat(){i=!0,A()},closeChat(){i=!1,A()},toggleChat(){i=!i,A()},destroy(){s.unmount()}}}return typeof window<"u"&&(window.qaBot=Do),En.default=Do,En.qaBot=Do,Object.defineProperties(En,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),En}({});
248
248
  //# sourceMappingURL=access-qa-bot.standalone.js.map