@snf/access-qa-bot 3.7.4 โ 3.7.5
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,64 +1,64 @@
|
|
|
1
|
-
var AccessQABot=function(Yn){"use strict";var bn,Y,si,xt,Ai,li,ci,Qr,$n,_n,ui,Mr,Or,Nr,di,Vn={},Kn=[],RA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,En=Array.isArray;function dt(e,t){for(var n in t)e[n]=t[n];return e}function Lr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ae(e,t,n){var r,o,i,A={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:A[i]=t[i];if(arguments.length>2&&(A.children=arguments.length>3?bn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)A[i]===void 0&&(A[i]=e.defaultProps[i]);return Pn(e,A,r,o,null)}function Pn(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??++si,__i:-1,__u:0};return o==null&&Y.vnode!=null&&Y.vnode(i),i}function fi(){return{current:null}}function ce(e){return e.children}function ft(e,t){this.props=e,this.context=t}function Xt(e,t){if(t==null)return e.__?Xt(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"?Xt(e):null}function HA(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=dt({},t);i.__v=t.__v+1,Y.vnode&&Y.vnode(i),Hr(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Xt(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,vi(r,i,o),t.__e=t.__=null,i.__e!=n&&pi(i)}}function pi(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),pi(e)}function Rr(e){(!e.__d&&(e.__d=!0)&&xt.push(e)&&!Xn.__r++||Ai!=Y.debounceRendering)&&((Ai=Y.debounceRendering)||li)(Xn)}function Xn(){try{for(var e,t=1;xt.length;)xt.length>t&&xt.sort(ci),e=xt.shift(),t=xt.length,HA(e)}finally{xt.length=Xn.__r=0}}function hi(e,t,n,r,o,i,A,s,a,l,c){var u,d,f,h,m,p,v,y=r&&r.__k||Kn,g=t.length;for(a=UA(n,t,y,a,g),u=0;u<g;u++)(f=n.__k[u])!=null&&(d=f.__i!=-1&&y[f.__i]||Vn,f.__i=u,p=Hr(e,f,d,o,i,A,s,a,l,c),h=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&Fr(d.ref,null,f),c.push(f.ref,f.__c||h,f)),m==null&&h!=null&&(m=h),(v=!!(4&f.__u))||d.__k===f.__k?(a=gi(f,a,e,v),v&&d.__e&&(d.__e=null)):typeof f.type=="function"&&p!==void 0?a=p:h&&(a=h.nextSibling),f.__u&=-7);return n.__e=m,a}function UA(e,t,n,r,o){var i,A,s,a,l,c=n.length,u=c,d=0;for(e.__k=new Array(o),i=0;i<o;i++)(A=t[i])!=null&&typeof A!="boolean"&&typeof A!="function"?(typeof A=="string"||typeof A=="number"||typeof A=="bigint"||A.constructor==String?A=e.__k[i]=Pn(null,A,null,null,null):En(A)?A=e.__k[i]=Pn(ce,{children:A},null,null,null):A.constructor===void 0&&A.__b>0?A=e.__k[i]=Pn(A.type,A.props,A.key,A.ref?A.ref:null,A.__v):e.__k[i]=A,a=i+d,A.__=e,A.__b=e.__b+1,s=null,(l=A.__i=FA(A,n,a,u))!=-1&&(u--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(o>c?d--:o<c&&d++),typeof A.type!="function"&&(A.__u|=4)):l!=a&&(l==a-1?d--:l==a+1?d++:(l>a?d--:d++,A.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<c;i++)(s=n[i])!=null&&!(2&s.__u)&&(s.__e==r&&(r=Xt(s)),bi(s,s));return r}function gi(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=gi(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Xt(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ct(e,t){return t=t||[],e==null||typeof e=="boolean"||(En(e)?e.some(function(n){Ct(n,t)}):t.push(e)),t}function FA(e,t,n,r){var o,i,A,s=e.key,a=e.type,l=t[n],c=l!=null&&(2&l.__u)==0;if(l===null&&s==null||c&&s==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[A=o>=0?o--:i++])!=null&&!(2&l.__u)&&s==l.key&&a==l.type)return A}return-1}function mi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||RA.test(t)?n:n+"px"}function Jn(e,t,n,r,o){var i,A;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||mi(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||mi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ui,"$1")),A=t.toLowerCase(),t=A in e||t=="onFocusOut"||t=="onFocusIn"?A.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n[_n]=r[_n]:(n[_n]=Mr,e.addEventListener(t,i?Nr:Or,i)):e.removeEventListener(t,i?Nr:Or,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 yi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[$n]==null)t[$n]=Mr++;else if(t[$n]<n[_n])return;return n(Y.event?Y.event(t):t)}}}function Hr(e,t,n,r,o,i,A,s,a,l){var c,u,d,f,h,m,p,v,y,g,_,P,E,k,B,T=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(a=!!(32&n.__u),i=[s=t.__e=n.__e]),(c=Y.__b)&&c(t);e:if(typeof T=="function")try{if(v=t.props,y=T.prototype&&T.prototype.render,g=(c=T.contextType)&&r[c.__c],_=c?g?g.props.value:c.__:r,n.__c?p=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new T(v,_):(t.__c=u=new ft(v,_),u.constructor=T,u.render=jA),g&&g.sub(u),u.state||(u.state={}),u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&T.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=dt({},u.__s)),dt(u.__s,T.getDerivedStateFromProps(v,u.__s))),f=u.props,h=u.state,u.__v=t,d)y&&T.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&T.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,_),t.__v==n.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,_)===!1){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(D){D&&(D.__=t)}),Kn.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&A.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,_),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,m)})}if(u.context=_,u.props=v,u.__P=e,u.__e=!1,P=Y.__r,E=0,y)u.state=u.__s,u.__d=!1,P&&P(t),c=u.render(u.props,u.state,u.context),Kn.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,P&&P(t),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(r=dt(dt({},r),u.getChildContext())),y&&!d&&u.getSnapshotBeforeUpdate!=null&&(m=u.getSnapshotBeforeUpdate(f,h)),k=c!=null&&c.type===ce&&c.key==null?wi(c.props.children):c,s=hi(e,En(k)?k:[k],t,n,r,o,i,A,s,a,l),u.base=t.__e,t.__u&=-161,u.__h.length&&A.push(u),p&&(u.__E=u.__=null)}catch(D){if(t.__v=null,a||i!=null)if(D.then){for(t.__u|=a?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else{for(B=i.length;B--;)Lr(i[B]);Ur(t)}else t.__e=n.__e,t.__k=n.__k,D.then||Ur(t);Y.__e(D,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=zA(n.__e,t,n,r,o,i,A,a,l);return(c=Y.diffed)&&c(t),128&t.__u?void 0:s}function Ur(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Ur))}function vi(e,t,n){for(var r=0;r<n.length;r++)Fr(n[r],n[++r],n[++r]);Y.__c&&Y.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){Y.__e(i,o.__v)}})}function wi(e){return typeof e!="object"||e==null||e.__b>0?e:En(e)?e.map(wi):dt({},e)}function zA(e,t,n,r,o,i,A,s,a){var l,c,u,d,f,h,m,p=n.props||Vn,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((f=i[l])&&"setAttribute"in f==!!y&&(y?f.localName==y:f.nodeType==3)){e=f,i[l]=null;break}}if(e==null){if(y==null)return document.createTextNode(v);e=document.createElementNS(o,y,v.is&&v),s&&(Y.__m&&Y.__m(t,i),s=!1),i=null}if(y==null)p===v||s&&e.data==v||(e.data=v);else{if(i=i&&bn.call(e.childNodes),!s&&i!=null)for(p={},l=0;l<e.attributes.length;l++)p[(f=e.attributes[l]).name]=f.value;for(l in p)f=p[l],l=="dangerouslySetInnerHTML"?u=f:l=="children"||l in v||l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v||Jn(e,l,null,f,o);for(l in v)f=v[l],l=="children"?d=f:l=="dangerouslySetInnerHTML"?c=f:l=="value"?h=f:l=="checked"?m=f:s&&typeof f!="function"||p[l]===f||Jn(e,l,f,p[l],o);if(c)s||u&&(c.__html==u.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(u&&(e.innerHTML=""),hi(t.type=="template"?e.content:e,En(d)?d:[d],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,A,i?i[0]:n.__k&&Xt(n,0),s,a),i!=null)for(l=i.length;l--;)Lr(i[l]);s||(l="value",y=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[l]||y=="progress"&&!h||y=="option"&&h!=p[l])&&Jn(e,l,h,p[l],o),l="checked",m!=null&&m!=e[l]&&Jn(e,l,m,p[l],o))}return e}function Fr(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){Y.__e(o,n)}}function bi(e,t,n){var r,o;if(Y.unmount&&Y.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Fr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Y.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&bi(r[o],t,n||typeof e.type!="function");n||Lr(e.__e),e.__c=e.__=e.__e=void 0}function jA(e,t,n){return this.constructor(e,n)}function Cn(e,t,n){var r,o,i,A;t==document&&(t=document.documentElement),Y.__&&Y.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],A=[],Hr(t,e=(!r&&n||t).__k=Ae(ce,null,[e]),o||Vn,Vn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?bn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,A),vi(i,e,A)}function _i(e,t){Cn(e,t,_i)}function qA(e,t,n){var r,o,i,A,s=dt({},e.props);for(i in e.type&&e.type.defaultProps&&(A=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&A!=null?A[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?bn.call(arguments,2):n),Pn(e.type,s,r||e.key,o||e.ref,null)}function At(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(A){A.__e=!0,Rr(A)})},this.sub=function(i){r.add(i);var A=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),A&&A.call(i)}}),n.children}return t.__c="__cC"+di++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}bn=Kn.slice,Y={__e:function(e,t,n,r){for(var o,i,A;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),A=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),A=o.__d),A)return o.__E=o}catch(s){e=s}throw e}},si=0,ft.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=dt({},this.state),typeof e=="function"&&(e=e(dt({},n),this.props)),e&&dt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Rr(this))},ft.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Rr(this))},ft.prototype.render=ce,xt=[],li=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ci=function(e,t){return e.__v.__b-t.__v.__b},Xn.__r=0,Qr=Math.random().toString(8),$n="__d"+Qr,_n="__a"+Qr,ui=/(PointerCapture)$|Capture$/i,Mr=0,Or=yi(!1),Nr=yi(!0),di=0;var It,Pe,zr,Ei,Jt=0,Pi=[],Se=Y,Ci=Se.__b,ki=Se.__r,Si=Se.diffed,Di=Se.__c,Bi=Se.unmount,xi=Se.__;function Zt(e,t){Se.__h&&Se.__h(Pe,e,Jt||t),Jt=0;var n=Pe.__H||(Pe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ee(e){return Jt=1,jr(Mi,e)}function jr(e,t,n){var r=Zt(It++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Mi(void 0,t),function(s){var a=r.__N?r.__N[0]:r.__[0],l=r.t(a,s);a!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=Pe,!Pe.__f)){var o=function(s,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,s,a,l);var u=r.__c.props!==s;return c.some(function(d){if(d.__N){var f=d.__[0];d.__=d.__N,d.__N=void 0,f!==d.__[0]&&(u=!0)}}),i&&i.call(this,s,a,l)||u};Pe.__f=!0;var i=Pe.shouldComponentUpdate,A=Pe.componentWillUpdate;Pe.componentWillUpdate=function(s,a,l){if(this.__e){var c=i;i=void 0,o(s,a,l),i=c}A&&A.call(this,s,a,l)},Pe.shouldComponentUpdate=o}return r.__N||r.__}function X(e,t){var n=Zt(It++,3);!Se.__s&&Wr(n.__H,t)&&(n.__=e,n.u=t,Pe.__H.__h.push(n))}function kn(e,t){var n=Zt(It++,4);!Se.__s&&Wr(n.__H,t)&&(n.__=e,n.u=t,Pe.__h.push(n))}function ne(e){return Jt=5,Ie(function(){return{current:e}},[])}function Zn(e,t,n){Jt=6,kn(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 Ie(e,t){var n=Zt(It++,7);return Wr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function q(e,t){return Jt=8,Ie(function(){return e},t)}function rt(e){var t=Pe.context[e.__c],n=Zt(It++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pe)),t.props.value):e.__}function Ii(e,t){Se.useDebugValue&&Se.useDebugValue(t?t(e):e)}function Ti(){var e=Zt(It++,11);if(!e.__){for(var t=Pe.__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 WA(){for(var e;e=Pi.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(er),t.__h.some(qr),t.__h=[]}catch(n){t.__h=[],Se.__e(n,e.__v)}}}Se.__b=function(e){Pe=null,Ci&&Ci(e)},Se.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),xi&&xi(e,t)},Se.__r=function(e){ki&&ki(e),It=0;var t=(Pe=e.__c).__H;t&&(zr===Pe?(t.__h=[],Pe.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(er),t.__h.some(qr),t.__h=[],It=0)),zr=Pe},Se.diffed=function(e){Si&&Si(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Pi.push(t)!==1&&Ei===Se.requestAnimationFrame||((Ei=Se.requestAnimationFrame)||GA)(WA)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),zr=Pe=null},Se.__c=function(e,t){t.some(function(n){try{n.__h.some(er),n.__h=n.__h.filter(function(r){return!r.__||qr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Se.__e(r,n.__v)}}),Di&&Di(e,t)},Se.unmount=function(e){Bi&&Bi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{er(r)}catch(o){t=o}}),n.__H=void 0,t&&Se.__e(t,n.__v))};var Qi=typeof requestAnimationFrame=="function";function GA(e){var t,n=function(){clearTimeout(r),Qi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Qi&&(t=requestAnimationFrame(n))}function er(e){var t=Pe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pe=t}function qr(e){var t=Pe;e.__c=e.__(),Pe=t}function Wr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Mi(e,t){return typeof t=="function"?t(e):t}function Oi(e,t){for(var n in t)e[n]=t[n];return e}function Gr(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 Ni(e,t){var n=t(),r=ee({t:{__:n,u:t}}),o=r[0].t,i=r[1];return kn(function(){o.__=n,o.u=t,Yr(o)&&i({t:o})},[e,n,t]),X(function(){return Yr(o)&&i({t:o}),e(function(){Yr(o)&&i({t:o})})},[e]),n}function Yr(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function Li(e){e()}function Ri(e){return e}function Hi(){return[!1,Li]}var Ui=kn;function $r(e,t){this.props=e,this.context=t}function YA(e,t){function n(o){var i=this.props.ref;return i!=o.ref&&i&&(typeof i=="function"?i(null):i.current=null),t?!t(this.props,o)||i!=o.ref:Gr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,Ae(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=e,r}($r.prototype=new ft).isPureReactComponent=!0,$r.prototype.shouldComponentUpdate=function(e,t){return Gr(this.props,e)||Gr(this.state,t)};var Fi=Y.__b;Y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Fi&&Fi(e)};var $A=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ye(e){function t(n){var r=Oi({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=$A,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var zi=function(e,t){return e==null?null:Ct(Ct(e).map(t))},VA={map:zi,forEach:zi,count:function(e){return e?Ct(e).length:0},only:function(e){var t=Ct(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ct},KA=Y.__e;Y.__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)}KA(e,t,n,r)};var ji=Y.unmount;function qi(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=Oi({},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 qi(r,t,n)})),e}function Wi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Wi(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 tr(){this.__u=0,this.o=null,this.__b=null}function Gi(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function XA(e){var t,n,r,o=null;function i(A){if(t||(t=e()).then(function(s){s&&(o=s.default||s),r=!0},function(s){n=s,r=!0}),n)throw n;if(!r)throw t;return o?Ae(o,A):null}return i.displayName="Lazy",i.__f=!0,i}function Sn(){this.i=null,this.l=null}Y.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ji&&ji(e)},(tr.prototype=new ft).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Gi(r.__v),i=!1,A=function(){i||r.__z||(i=!0,n.__R=null,o?o(a):a())};n.__R=A;var s=n.__P;n.__P=null;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Wi(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.__P=s,c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(A,A)},tr.prototype.componentWillUnmount=function(){this.o=[]},tr.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]=qi(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&Ae(ce,null,e.fallback);return o&&(o.__u&=-33),[Ae(ce,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 JA(e){return this.getChildContext=function(){return e.context},e.children}function ZA(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Cn(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},namespaceURI:n.namespaceURI,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)}}}Cn(Ae(JA,{context:t.context},e.__v),t.v)}function $i(e,t){var n=Ae(ZA,{__v:e,h:t});return n.containerInfo=t,n}(Sn.prototype=new ft).__a=function(e){var t=this,n=Gi(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()}},Sn.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ct(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},Sn.prototype.componentDidUpdate=Sn.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,el=/^(?: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]/,tl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nl=/[A-Z0-9]/g,rl=typeof document<"u",ol=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ki(e,t,n){return t.__k==null&&(t.textContent=""),Cn(e,t),typeof n=="function"&&n(),e?e.__c:null}function il(e,t,n){return _i(e,t),typeof n=="function"&&n(),e?e.__c:null}ft.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ft.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Xi=Y.event;Y.event=function(e){return Xi&&(e=Xi(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Vr,al={configurable:!0,get:function(){return this.class}},Ji=Y.vnode;Y.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")==-1;for(var A in n){var s=n[A];if(!(A==="value"&&"defaultValue"in n&&s==null||rl&&A==="children"&&r==="noscript"||A==="class"||A==="className")){var a=A.toLowerCase();A==="defaultValue"&&"value"in n&&n.value==null?A="value":A==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a[0]==="o"&&a[1]==="n"?a==="ondoubleclick"?A="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||ol(n.type)?a==="onfocus"?A="onfocusin":a==="onblur"?A="onfocusout":tl.test(A)&&(A=a):a=A="oninput":i&&el.test(A)?A=A.replace(nl,"-$&").toLowerCase():s===null&&(s=void 0),a==="oninput"&&o[A=a]&&(A="oninputCapture"),o[A]=s}}r=="select"&&(o.multiple&&Array.isArray(o.value)&&(o.value=Ct(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),o.defaultValue!=null&&(o.value=Ct(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",al)):n.className&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Vi,Ji&&Ji(e)};var Zi=Y.__r;Y.__r=function(e){Zi&&Zi(e),Vr=e.__c};var ea=Y.diffed;Y.diffed=function(e){ea&&ea(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),Vr=null};var sl={ReactCurrentDispatcher:{current:{readContext:function(e){return Vr.__n[e.__c].props.value},useCallback:q,useContext:rt,useDebugValue:Ii,useDeferredValue:Ri,useEffect:X,useId:Ti,useImperativeHandle:Zn,useInsertionEffect:Ui,useLayoutEffect:kn,useMemo:Ie,useReducer:jr,useRef:ne,useState:ee,useSyncExternalStore:Ni,useTransition:Hi}}};function Al(e){return Ae.bind(null,e)}function zt(e){return!!e&&e.$$typeof===Vi}function ll(e){return zt(e)&&e.type===ce}function cl(e){return!!e&&typeof e.displayName=="string"&&e.displayName.indexOf("Memo(")==0}function ul(e){return zt(e)?qA.apply(null,arguments):e}function ta(e){return!!e.__k&&(Cn(null,e),!0)}function dl(e){return e&&(e.base||e.nodeType===1&&e)||null}var fl=function(e,t){return e(t)},pl=function(e,t){var n=Y.debounceRendering;Y.debounceRendering=function(o){return o()};var r=e(t);return Y.debounceRendering=n,r},hl=zt,M={useState:ee,useId:Ti,useReducer:jr,useEffect:X,useLayoutEffect:kn,useInsertionEffect:Ui,useTransition:Hi,useDeferredValue:Ri,useSyncExternalStore:Ni,startTransition:Li,useRef:ne,useImperativeHandle:Zn,useMemo:Ie,useCallback:q,useContext:rt,useDebugValue:Ii,version:"18.3.1",Children:VA,render:Ki,hydrate:il,unmountComponentAtNode:ta,createPortal:$i,createElement:Ae,createContext:At,createFactory:Al,cloneElement:ul,createRef:fi,Fragment:ce,isValidElement:zt,isElement:hl,isFragment:ll,isMemo:cl,findDOMNode:dl,Component:ft,PureComponent:$r,memo:YA,forwardRef:Ye,flushSync:pl,unstable_batchedUpdates:fl,StrictMode:ce,Suspense:tr,SuspenseList:Sn,lazy:XA,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sl},gl=0;function C(e,t,n,r,o,i){t||(t={});var A,s,a=t;if("ref"in a)for(s in a={},t)s=="ref"?A=t[s]:a[s]=t[s];var l={type:e,props:a,key:n,ref:A,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--gl,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(A=e.defaultProps))for(s in A)a[s]===void 0&&(a[s]=A[s]);return Y.vnode&&Y.vnode(l),l}function ml(e){return{render:function(t){Ki(t,e)},unmount:function(){ta(e)}}}var yl="diffed",na="__c",Kr="__s",en="__c",ra="__k",Xr="__d",tn="__s",oa=/[\s\n\\/='"\0<>]/,ia=/^(xlink|xmlns|xml)([A-Z])/,vl=/^(?: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])/,wl=/^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/,bl=new Set(["draggable","spellcheck"]);function aa(e){e.__g!==void 0?e.__g|=8:e[Xr]=!0}function _l(e){e.__g!==void 0?e.__g&=-9:e[Xr]=!1}function sa(e){return e.__g!==void 0?!!(8&e.__g):e[Xr]===!0}var El=/["&<]/;function nr(e){if(e.length===0||El.test(e)===!1)return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";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 Aa={},Pl=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"]),Cl=/[A-Z]/g;function kl(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:Aa[n]||(Aa[n]=n.replace(Cl,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||Pl.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function la(){this.__d=!0}function Sl(e,t){return{__v:e,context:t,props:e.props,setState:la,forceUpdate:la,__d:!0,__h:new Array(0)}}var Jr,jt,Dn,Bn,Zr={},ca=[],nn=Array.isArray,eo=Object.assign,$e="",to="<!--$s-->",no="<!--/$s-->";function ua(e,t,n){var r=Y[Kr];Y[Kr]=!0,Jr=Y.__b,jt=Y[yl],Dn=Y.__r,Bn=Y.unmount;var o=Ae(ce,null);o[ra]=[e];try{var i=Tt(e,t||Zr,!1,void 0,o,!1,n);return nn(i)?i.join($e):i}catch(A){throw A.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):A}finally{Y[na]&&Y[na](e,ca),Y[Kr]=r,ca.length=0}}function da(e,t){var n,r=e.type,o=!0;return e[en]?(o=!1,(n=e[en]).state=n[tn]):n=new r(e.props,t),e[en]=n,n.__v=e,n.props=e.props,n.context=t,aa(n),n.state==null&&(n.state=Zr),n[tn]==null&&(n[tn]=n.state),r.getDerivedStateFromProps?n.state=eo({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n[tn]!==n.state?n[tn]:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),Dn&&Dn(e),n.render(n.props,n.state,t)}function Tt(e,t,n,r,o,i,A){if(e==null||e===!0||e===!1||e===$e)return $e;var s=typeof e;if(s!="object")return s=="function"?$e:s=="string"?nr(e):e+$e;if(nn(e)){var a,l=$e;o[ra]=e;for(var c=e.length,u=0;u<c;u++){var d=e[u];if(d!=null&&typeof d!="boolean"){var f,h=Tt(d,t,n,r,o,i,A);typeof h=="string"?l+=h:(a||(a=new Array(c)),l&&a.push(l),l=$e,nn(h)?(f=a).push.apply(f,h):a.push(h))}}return a?(l&&a.push(l),a):l}if(e.constructor!==void 0)return $e;e.__=o,Jr&&Jr(e);var m=e.type,p=e.props;if(typeof m=="function"){var v,y,g,_=t;if(m===ce){if("tpl"in p){for(var P=$e,E=0;E<p.tpl.length;E++)if(P+=p.tpl[E],p.exprs&&E<p.exprs.length){var k=p.exprs[E];if(k==null)continue;typeof k!="object"||k.constructor!==void 0&&!nn(k)?P+=k:P+=Tt(k,t,n,r,e,i,A)}return P}if("UNSTABLE_comment"in p)return"<!--"+nr(p.UNSTABLE_comment)+"-->";y=p.children}else{if((v=m.contextType)!=null){var B=t[v.__c];_=B?B.props.value:v.__}var T=m.prototype&&typeof m.prototype.render=="function";if(T)y=da(e,_),g=e[en];else{e[en]=g=Sl(e,_);for(var D=0;sa(g)&&D++<25;){_l(g),Dn&&Dn(e);try{y=m.call(g,p,_)}catch(b){throw b}}aa(g)}if(g.getChildContext!=null&&(t=eo({},t,g.getChildContext())),T&&Y.errorBoundaries&&(m.getDerivedStateFromError||g.componentDidCatch)){y=y!=null&&y.type===ce&&y.key==null&&y.props.tpl==null?y.props.children:y;try{return Tt(y,t,n,r,e,i,!1)}catch(b){return m.getDerivedStateFromError&&(g[tn]=m.getDerivedStateFromError(b)),g.componentDidCatch&&g.componentDidCatch(b,Zr),sa(g)?(y=da(e,t),(g=e[en]).getChildContext!=null&&(t=eo({},t,g.getChildContext())),Tt(y=y!=null&&y.type===ce&&y.key==null&&y.props.tpl==null?y.props.children:y,t,n,r,e,i,A)):$e}finally{jt&&jt(e),Bn&&Bn(e)}}}y=y!=null&&y.type===ce&&y.key==null&&y.props.tpl==null?y.props.children:y;try{var O=Tt(y,t,n,r,e,i,A);return jt&&jt(e),Y.unmount&&Y.unmount(e),e._suspended?typeof O=="string"?to+O+no:nn(O)?(O.unshift(to),O.push(no),O):O.then(function(b){return to+b+no}):O}catch(b){if(A&&A.onError){var S=A.onError(b,e,function(F,J){return Tt(F,t,n,r,J,i,A)});if(S!==void 0)return S;var N=Y.__e;return N&&N(b,e),$e}throw b}}var R,L="<"+m,U=$e;for(var x in p){var Q=p[x];if(typeof(Q=Bl(Q)?Q.value:Q)!="function"||x==="class"||x==="className"){switch(x){case"children":R=Q;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in p)continue;x="for";break;case"className":if("class"in p)continue;x="class";break;case"defaultChecked":x="checked";break;case"defaultSelected":x="selected";break;case"defaultValue":case"value":switch(x="value",m){case"textarea":R=Q;continue;case"select":r=Q;continue;case"option":r!=Q||"selected"in p||(L+=" selected")}break;case"dangerouslySetInnerHTML":U=Q&&Q.__html;continue;case"style":typeof Q=="object"&&(Q=kl(Q));break;case"acceptCharset":x="accept-charset";break;case"httpEquiv":x="http-equiv";break;default:if(ia.test(x))x=x.replace(ia,"$1:$2").toLowerCase();else{if(oa.test(x))continue;x[4]!=="-"&&!bl.has(x)||Q==null?n?wl.test(x)&&(x=x==="panose1"?"panose-1":x.replace(/([A-Z])/g,"-$1").toLowerCase()):vl.test(x)&&(x=x.toLowerCase()):Q+=$e}}Q!=null&&Q!==!1&&(L=Q===!0||Q===$e?L+" "+x:L+" "+x+'="'+(typeof Q=="string"?nr(Q):Q+$e)+'"')}}if(oa.test(m))throw new Error(m+" is not a valid HTML tag name in "+L+">");if(U||(typeof R=="string"?U=nr(R):R!=null&&R!==!1&&R!==!0&&(U=Tt(R,t,m==="svg"||m!=="foreignObject"&&n,r,e,i,A))),jt&&jt(e),Bn&&Bn(e),!U&&Dl.has(m))return L+"/>";var w="</"+m+">",V=L+">";return nn(U)?[V].concat(U,[w]):typeof U!="string"?[V,U,w]:V+U+w}var Dl=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Bl(e){return e!==null&&typeof e=="object"&&typeof e.peek=="function"&&"value"in e}const xl={renderToString:ua,renderToStaticMarkup:ua},Il={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_AGENT_ENDPOINT:"https://qa.access-ci.org/api/v1",VITE_ALLOW_ANON_ACCESS:"true",VITE_API_KEY:"4nn5l4T4TnkMdzsK0AwAtnGRcheBDnjawuAT42LaOLc",VITE_NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",VITE_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",VITE_TURNSTILE_SITE_KEY:"0x4AAAAAAC2toq7FThjGplVx"};function rr(){return rr=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},rr.apply(null,arguments)}function fa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}typeof SuppressedError=="function"&&SuppressedError;const De={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"},pa="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",ha=Ye((e,t)=>Ae("svg",{viewBox:"0 0 637 637",ref:t,...e},Ae("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"}),Ae("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"}))),ga=Ye((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("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"}))),Tl=Ye((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("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"}))),Ql=Ye((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("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"}))),Ml=Ye((e,t)=>Ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},Ae("g",{strokeLinecap:"round",strokeWidth:10},Ae("path",{d:"m19 19 61 61M80 19 19 80"})))),Ol=Ye((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),Nl=Ye((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("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"}))),Ll=Ye((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("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"}))),ma=Ye((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("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"}))),Rl=Ye((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("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"}))),Hl=Ye((e,t)=>Ae("svg",{viewBox:"0 -960 960 960",ref:t,...e},Ae("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"}))),ya={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:ha},header:{title:C("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/","_blank","noopener,noreferrer"),children:"Tan Jin"}),showAvatar:!0,avatar:pa,buttons:[De.NOTIFICATION_BUTTON,De.AUDIO_BUTTON,De.CLOSE_CHAT_BUTTON],closeChatIcon:Ml},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:Tl,iconDisabled:Ql,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/lQ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HAAjADQAHAAkAP//GQDy/wQA5v/i//b/0P/7/8f/AADh/wMAAAD+/yUAAAA7AAEAOAAAABwAAAD6/wAA1/8CAMr/AADb/+3/5f8BAAIACAAVABcALwAfACgA+/8XAPn/DgDe/+//7v/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:Rl,iconDisabled:Hl},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:Ol,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[De.VOICE_MESSAGE_BUTTON,De.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:pa,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:Nl,iconDisabled:Ll},footer:{text:C("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com","_blank","noopener,noreferrer"),children:[C("span",{children:"Powered By "},0),C("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:C(ha,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),C("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[De.FILE_ATTACHMENT_BUTTON,De.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:ga,iconDisabled:ga,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:ma,iconDisabled:ma,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,rcbSaveChatHistory:!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}},va=At({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),ae=()=>rt(va),Ul=({children:e,settings:t=ya,setSyncedSettings:n,syncedSettingsRef:r})=>C(va.Provider,{value:{settings:t,setSyncedSettings:n,syncedSettingsRef:r},children:e}),wa={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:{}},ba=At({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),ye=()=>rt(ba),Fl=({children:e,styles:t=wa,setSyncedStyles:n,syncedStylesRef:r})=>C(ba.Provider,{value:{styles:t,setSyncedStyles:n,syncedStylesRef:r},children:e}),zl=({buttons:e})=>{var t,n,r,o,i,A,s;const{settings:a}=ae(),{styles:l}=ye(),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 C("div",{style:c,className:"rcb-chat-header-container",children:[C("div",{className:"rcb-chat-header",children:[((r=a.header)==null?void 0:r.showAvatar)&&C("div",{style:{backgroundImage:`url("${(o=a.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),zt((i=a.header)==null?void 0:i.title)?(A=a.header)==null?void 0:A.title:C("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(s=a.header)==null?void 0:s.title})]}),C("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((u,d)=>C(ce,{children:u},d))})]})},_a=At({}),Te=()=>rt(_a),jl=({children:e,botIdRef:t,flowRef:n})=>{const r=ne(null),o=ne(""),i=ne(null),A=ne(new Map),s=ne(null),a=ne(""),l=ne(!1),c=ne(null),u=ne(null),d=ne(null);return C(_a.Provider,{value:{botIdRef:t,flowRef:n,inputRef:r,timeoutIdRef:i,streamMessageMap:A,chatBodyRef:s,paramsInputRef:a,keepVoiceOnRef:l,audioContextRef:c,audioBufferRef:u,gainNodeRef:d,prevInputRef:o},children:e})},Je=e=>{const[t,n]=ee(e),r=ne(e);return[t,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},Ea=At({}),Oe=()=>rt(Ea),ql=({children:e,settings:t})=>{var n,r,o,i,A,s;const[a,l,c]=Je(!1),[u,d,f]=Je(((n=t==null?void 0:t.chatWindow)==null?void 0:n.defaultOpen)??!1),[h,m,p]=Je(((r=t==null?void 0:t.audio)==null?void 0:r.defaultToggledOn)??!1),[v,y,g]=Je(((o=t==null?void 0:t.voice)==null?void 0:o.defaultToggledOn)??!1),[_,P,E]=Je(((i=t==null?void 0:t.notification)==null?void 0:i.defaultToggledOn)??!0),[k,B]=ee(!1),[T,D]=ee(!1),[O,S,N]=Je(!1),[R,L,U]=Je(!0),[x,Q,w]=Je(!1),[V,b]=ee(!1),[F,J]=ee(!1),[K,oe]=ee(0),[ve,ue]=ee(0),[Ve,Me]=ee(!1),[Re,st]=ee(((A=window.visualViewport)==null?void 0:A.height)??window.innerHeight),[j,W]=ee(((s=window.visualViewport)==null?void 0:s.width)??window.innerWidth);return C(Ea.Provider,{value:{isBotTyping:a,setSyncedIsBotTyping:l,syncedIsBotTypingRef:c,isChatWindowOpen:u,setSyncedIsChatWindowOpen:d,syncedIsChatWindowOpenRef:f,audioToggledOn:h,setSyncedAudioToggledOn:m,syncedAudioToggledOnRef:p,voiceToggledOn:v,setSyncedVoiceToggledOn:y,syncedVoiceToggledOnRef:g,notificationsToggledOn:_,setSyncedNotificationsToggledOn:P,syncedNotificationsToggledOnRef:E,isLoadingChatHistory:k,setIsLoadingChatHistory:B,hasChatHistoryLoaded:T,setHasChatHistoryLoaded:D,isScrolling:O,setSyncedIsScrolling:S,syncedIsScrollingRef:N,textAreaDisabled:R,setSyncedTextAreaDisabled:L,syncedTextAreaDisabledRef:U,textAreaSensitiveMode:x,setSyncedTextAreaSensitiveMode:Q,syncedTextAreaSensitiveModeRef:w,hasInteractedPage:V,setHasInteractedPage:b,hasFlowStarted:F,setHasFlowStarted:J,unreadCount:K,setUnreadCount:oe,inputLength:ve,setInputLength:ue,blockAllowsAttachment:Ve,setBlockAllowsAttachment:Me,viewportHeight:Re,setViewportHeight:st,viewportWidth:j,setViewportWidth:W},children:e})};var z=(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.SAVE_CHAT_HISTORY="rcb-save-chat-history",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))(z||{});const Wl={[z.START_SPEAK_AUDIO]:!0,[z.TOGGLE_AUDIO]:!0,[z.TOGGLE_VOICE]:!0,[z.TOGGLE_NOTIFICATIONS]:!0,[z.TOGGLE_CHAT_WINDOW]:!0,[z.PRE_INJECT_MESSAGE]:!0,[z.POST_INJECT_MESSAGE]:!1,[z.PRE_LOAD_CHATBOT]:!0,[z.POST_LOAD_CHATBOT]:!1,[z.START_SIMULATE_STREAM_MESSAGE]:!0,[z.STOP_SIMULATE_STREAM_MESSAGE]:!1,[z.START_STREAM_MESSAGE]:!0,[z.CHUNK_STREAM_MESSAGE]:!0,[z.STOP_STREAM_MESSAGE]:!0,[z.REMOVE_MESSAGE]:!0,[z.SAVE_CHAT_HISTORY]:!0,[z.LOAD_CHAT_HISTORY]:!0,[z.CHANGE_PATH]:!0,[z.SHOW_TOAST]:!0,[z.DISMISS_TOAST]:!0,[z.USER_SUBMIT_TEXT]:!0,[z.USER_UPLOAD_FILE]:!0,[z.TEXT_AREA_CHANGE_VALUE]:!0,[z.PRE_PROCESS_BLOCK]:!0,[z.POST_PROCESS_BLOCK]:!0},ro=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:Wl[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Pa=At({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),xn=()=>rt(Pa),Gl=({children:e})=>{const[t,n,r]=Je([]);return C(Pa.Provider,{value:{paths:t,setSyncedPaths:n,syncedPathsRef:r},children:e})},lt=()=>{const{botIdRef:e}=Te(),{syncedPathsRef:t}=xn(),n=q(()=>t.current.length>0?t.current.at(-1)??null:null,[]),r=q(()=>t.current.length>1?t.current.at(-2)??null:null,[]);return{dispatchRcbEvent:q(async(o,i)=>{const A={botId:e.current,currPath:n(),prevPath:r()};return await ro(o,A,i)},[e])}},Ze=()=>{const{settings:e}=ae(),{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:A,setUnreadCount:s,setSyncedIsBotTyping:a,setSyncedIsScrolling:l,syncedIsBotTypingRef:c,syncedIsChatWindowOpenRef:u}=Oe(),{chatBodyRef:d}=Te(),{dispatchRcbEvent:f}=lt(),h=q(()=>{if(!d.current)return!1;const g=d.current.getBoundingClientRect(),_=window.innerHeight??document.documentElement.clientHeight,P=window.innerWidth??document.documentElement.clientWidth;return g.top>=0&&g.left>=0&&g.bottom<=_&&g.right<=P},[d]),m=q(async g=>{var _;g!==u.current&&((_=e.event)!=null&&_.rcbToggleChatWindow&&(await f(z.TOGGLE_CHAT_WINDOW,{currState:u.current,newState:!u.current})).defaultPrevented||n(P=>(P||s(0),!P)))},[u]),p=q(async g=>{g!==c.current&&a(_=>!_)},[c]),v=q((g,_,P,E)=>(g/=E/2)<1?P/2*g*g+_:-P/2*(--g*(g-2)-1)+_,[]),y=q((g=0)=>{if(!d.current)return;const _=d.current.scrollHeight-d.current.clientHeight;if(g<=0)return d.current.scrollTop=_,void l(!1);const P=d.current.scrollTop,E=_-P;let k=0;const B=()=>{if(!d.current)return;k+=20;const T=v(k,P,E,g);d.current.scrollTop=T,k<g?requestAnimationFrame(B):l(!1)};B()},[d]);return{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,toggleChatWindow:m,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:A,toggleIsBotTyping:p,scrollToBottom:y,getIsChatBotVisible:h}},Yl=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{unreadCount:i,isScrolling:A}=Oe(),{chatBodyRef:s}=Te(),{scrollToBottom:a}=Ze(),[l,c]=ee(!1),u={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatMessagePromptHoveredStyle};return C("div",{className:"rcb-message-prompt-container "+(s.current&&((d=r.chatWindow)!=null&&d.showMessagePrompt)&&A&&i>0?"visible":"hidden"),children:C("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:{...o.chatMessagePromptStyle},onMouseDown:f=>{f.preventDefault(),a(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var d},Ca=At({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),oo=()=>rt(Ca),$l=({children:e})=>{const[t,n,r]=Je([]);return C(Ca.Provider,{value:{messages:t,setSyncedMessages:n,syncedMessagesRef:r},children:e})},Vl=({message:e,isNewSender:t})=>{var n,r,o,i,A,s;const{settings:a}=ae(),{styles:l}=ye(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?C(e.contentWrapper,{children:u}):u,f={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,p="rcb-user-message"+(!t&&(A=a.userBubble)!=null&&A.showAvatar?" rcb-user-message-offset":"");return C("div",{className:"rcb-user-message-container",children:[c?C("div",{style:f,className:`${p} ${h}`,children:d}):C(ce,{children:d}),m&&C("div",{style:{backgroundImage:`url("${(s=a.userBubble)==null?void 0:s.avatar}")`},className:"rcb-message-user-avatar"})]})},Kl=({message:e,isNewSender:t})=>{var n,r,o,i,A,s;const{settings:a}=ae(),{styles:l}=ye(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?C(e.contentWrapper,{children:u}):u,f={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,p="rcb-bot-message"+(!t&&(A=a.botBubble)!=null&&A.showAvatar?" rcb-bot-message-offset":"");return C("div",{className:"rcb-bot-message-container",children:[m&&C("div",{style:{backgroundImage:`url("${(s=a.botBubble)==null?void 0:s.avatar}")`},className:"rcb-message-bot-avatar"}),c?C("div",{style:f,className:`${p} ${h}`,children:d}):C(ce,{children:d})]})},Xl=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),i=(e=r.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return C("div",{className:"rcb-bot-message-container",children:[((t=r.botBubble)==null?void 0:t.showAvatar)&&C("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),C("div",{onMouseDown:A=>{A.preventDefault()},className:`rcb-bot-message ${i}`,children:C("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[C("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),C("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),C("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Jl=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{messages:i}=oo(),{scrollToBottom:A}=Ze(),{isBotTyping:s,syncedIsScrollingRef:a}=Oe(),{chatBodyRef:l}=Te(),c={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=r.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return X(()=>{a.current||A()},[(t=l.current)==null?void 0:t.scrollHeight]),C("div",{style:c,className:"rcb-chat-body-container",ref:l,children:[i.map((u,d)=>{const f=(h=>h===0||i[h].sender!==i[h-1].sender)(d);return u.sender.toUpperCase()==="USER"?C(Vl,{message:u,isNewSender:f},d):u.sender.toUpperCase()==="BOT"?C(Kl,{message:u,isNewSender:f},d):C("div",{children:u.content},d)}),s&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&C(Xl,{}),C(Yl,{})]})},Zl=({checkboxes:e,checkedItems:t,path:n})=>{var r,o,i,A,s,a,l,c,u,d,f;const{settings:h}=ae(),{styles:m}=ye(),{paths:p}=xn(),{handleSubmitText:v}=on(),[y,g]=ee(new Set),[_,P]=ee(!1),E={cursor:_?`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},k={cursor:_||y.size<e.min?`url("${(A=h.general)==null?void 0:A.actionDisabledIcon}"), auto`:"pointer",color:(s=h.general)==null?void 0:s.primaryColor,borderColor:(a=h.general)==null?void 0:a.primaryColor,...m.botCheckboxNextStyle},B={cursor:_?`url("${(l=h.general)==null?void 0:l.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...m.botCheckMarkStyle},T={cursor:_?`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 X(()=>{p.length>0&&p[p.length-1]!==n&&P(!e.reusable)},[p]),C("div",{className:"rcb-checkbox-container "+((f=h.botBubble)!=null&&f.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(D=>C("div",{onMouseDown:O=>{O.preventDefault(),(S=>{_||g(N=>{const R=new Set(N);if(R.has(S))t.delete(S),R.delete(S);else{if(y.size==e.max)return N;t.add(S),R.add(S)}return R})})(D)},style:E,className:"rcb-checkbox-row-container",children:C("div",{className:"rcb-checkbox-row",children:[C("div",{style:y.has(D)?T:B,className:"rcb-checkbox-mark"}),C("div",{className:"rcb-checkbox-label",children:D})]})},D)),C("div",{style:k,className:"rcb-checkbox-next-button",onMouseDown:D=>{var O;if(D.preventDefault(),_||y.size<e.min)return;const S=Array.from(t).join(", ");let N;P(!e.reusable),N=e.sendOutput!=null?e.sendOutput:((O=h.chatInput)==null?void 0:O.sendCheckboxOutput)??!0,v(S,N)}})]})},ec=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,A=C(Zl,{checkboxes:r,checkedItems:o,path:i});await t.injectMessage(A)},tc=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},nc=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))},rc=({options:e,path:t})=>{var n,r,o,i,A,s;const{settings:a}=ae(),{styles:l}=ye(),{paths:c}=xn(),{handleSubmitText:u}=on(),[d,f]=ee([]),[h,m]=ee(!1),p={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:(A=a.general)==null?void 0:A.primaryColor,...l.botOptionHoveredStyle};return X(()=>{c.length>0&&c[c.length-1]!==t&&m(!e.reusable)},[c]),C("div",{className:"rcb-options-container "+((s=a.botBubble)!=null&&s.showAvatar?"rcb-options-offset":""),children:e.items.map((y,g)=>{const _=d[g]&&!h;return C("div",{className:"rcb-options",style:_?v:p,onMouseEnter:()=>(P=>{f(E=>{const k=[...E];return k[P]=!0,k})})(g),onMouseLeave:()=>(P=>{f(E=>{const k=[...E];return k[P]=!1,k})})(g),onMouseDown:P=>{var E;if(P.preventDefault(),h)return;let k;m(!e.reusable),k=e.sendOutput!=null?e.sendOutput:((E=a.chatInput)==null?void 0:E.sendOptionOutput)??!0,u(y,k)},children:y},y)})})},oc=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=C(rc,{options:r,path:o});await t.injectMessage(i)},ic=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)}},ac=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 A=setTimeout(async()=>{const s=await r(e);s&&await Sa(s,t)},i.duration);i.interruptable&&(n.current=A)},sc=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)},ka=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)},Sa=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 tc(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 A=i(o);if(A instanceof Promise&&(A=await A),!A)return!1;const s=A;return await o.goToPath(s),!0})(e,t)},Ac=()=>{var e;const{settings:t}=ae(),{styles:n}=ye();return C("div",{className:"rcb-line-break-container",children:C("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})})},lc=()=>{var e;const{settings:t}=ae(),{styles:n}=ye(),r={borderTop:`4px solid ${(e=t.general)==null?void 0:e.primaryColor}`,...n.loadingSpinnerStyle};return C("div",{className:"rcb-spinner-container",children:C("div",{style:r,className:"rcb-spinner"})})},or=()=>{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")}},Qt=(e,t)=>({id:or(),content:e,sender:t,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let Mt,Da=!1,ir="rcb-history",ar=30,Ba=!1,sr=[];const In=()=>sr,io=e=>{xa(e),sr=e},xa=e=>{Mt&&Mt.setItem(ir,JSON.stringify(e))},ao=e=>{var t,n,r,o,i;Mt=((n=(t=e.chatHistory)==null?void 0:t.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,ir=(r=e.chatHistory)==null?void 0:r.storageKey,ar=(o=e.chatHistory)==null?void 0:o.maxEntries,Ba=(i=e.chatHistory)==null?void 0:i.disabled,sr=(A=>{if(A!=null)try{return JSON.parse(A)}catch{return[]}return[]})(Mt.getItem(ir))},cc=e=>zt(e.content)?structuredClone({id:e.id,content:xl.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,Ia=(e,t,n)=>{const r=new DOMParser().parseFromString(e,"text/html");return Array.from(r.body.childNodes).map((o,i)=>{var A;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const s=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()!==""),f={};d.forEach(h=>{const[m,p]=h.split(":").map(y=>y.trim()),v=m.replace(/-([a-z])/g,(y,g)=>g.toUpperCase());f[v]=p}),l[u]=f}else s!=="audio"&&s!=="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,(A=t.botBubble)!=null&&A.showAvatar&&(a=uc(l,a)),a=dc(l,a,t,n),a=fc(l,a,t,n),a=pc(l,a,t,n),a=hc(l,a,t,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(s))return Ae(s,{key:i,...a});{const l=Ia(o.innerHTML,t,n);return Ae(s,{key:i,...a},...l)}}})},uc=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),dc=(e,t,n,r)=>{var o,i,A,s,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:((A=r.botOptionStyle)==null?void 0:A.color)??((s=n.general)==null?void 0:s.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botOptionStyle}),t},fc=(e,t,n,r)=>{var o,i,A,s,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:((A=r.botCheckboxRowStyle)==null?void 0:A.color)??((s=n.general)==null?void 0:s.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),t},pc=(e,t,n,r)=>{var o,i,A,s,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:((A=r.botCheckboxNextStyle)==null?void 0:A.color)??((s=n.general)==null?void 0:s.primaryColor),cursor:`url("${(a=n.general)==null?void 0:a.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),t},hc=(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},so=()=>{const{settings:e}=ae(),{notificationsToggledOn:t,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:A}=Oe(),{audioBufferRef:s,audioContextRef:a,gainNodeRef:l}=Te(),{dispatchRcbEvent:c}=lt(),u=q(async()=>{var f,h;const m=(f=e.notification)==null?void 0:f.sound;a.current=new AudioContext;const p=a.current.createGain();let v;if(p.gain.value=((h=e.notification)==null?void 0:h.volume)??.2,l.current=p,m!=null&&m.startsWith("data:audio")){const y=atob(m.split(",")[1]),g=new ArrayBuffer(y.length),_=new Uint8Array(g);for(let P=0;P<y.length;P++)_[P]=y.charCodeAt(P);v=g}else v=await(await fetch(m)).arrayBuffer();s.current=await a.current.decodeAudioData(v)},[e.notification]),d=q(()=>{var f;if((f=e.notification)!=null&&f.disabled||!A.current||!r||!a.current||!s.current)return;const h=a.current.createBufferSource();h.buffer=s.current,h.connect(l.current).connect(a.current.destination),h.start()},[e.notification,A,r,a,s,l]);return{unreadCount:o,setUnreadCount:i,notificationsToggledOn:t,toggleNotifications:q(async f=>{var h;f!==A.current&&((h=e.event)!=null&&h.rcbToggleNotifications&&(await c(z.TOGGLE_NOTIFICATIONS,{currState:A.current,newState:!A.current})).defaultPrevented||n(m=>!m))},[A]),playNotificationSound:d,setUpNotifications:u}},gc=(e,t)=>{var n,r,o,i;((A,s,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=A,u.lang=s,u.rate=l,u.volume=c;let d=!1;for(const f of a){const h=window.speechSynthesis.getVoices().find(m=>m.name===f);if(h){u.voice=h,window.speechSynthesis.speak(u),d=!0;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)},Ta=()=>{const{settings:e}=ae(),{audioToggledOn:t,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=Oe(),{dispatchRcbEvent:o}=lt(),i=q(async s=>{var a;s!==r.current&&((a=e.event)!=null&&a.rcbToggleAudio&&(await o(z.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),A=q(async s=>{var a,l;if((a=e.audio)!=null&&a.disabled||!r.current)return;let c=s;if((l=e.event)!=null&&l.rcbStartSpeakAudio){const u=await o(z.START_SPEAK_AUDIO,{textToRead:c});if(u.defaultPrevented)return;c=u.data.textToRead}gc(e,c)},[e,r]);return{audioToggledOn:t,speakAudio:A,toggleAudio:i}},qt=()=>{var e,t,n;const{settings:r}=ae(),{messages:o,setSyncedMessages:i,syncedMessagesRef:A}=oo(),{setSyncedIsBotTyping:s,setUnreadCount:a,syncedIsScrollingRef:l,syncedIsChatWindowOpenRef:c}=Oe(),{streamMessageMap:u,chatBodyRef:d,paramsInputRef:f}=Te(),{scrollToBottom:h,getIsChatBotVisible:m}=Ze(),{dispatchRcbEvent:p}=lt(),{speakAudio:v}=Ta(),{playNotificationSound:y}=so(),g=q(async S=>{var N,R;if((N=r.event)!=null&&N.rcbSaveChatHistory){const L=await p(z.SAVE_CHAT_HISTORY,{messages:S});if(L.defaultPrevented)return;S=((R=L.data)==null?void 0:R.messages)??S}await(async L=>{if(Ba||!Mt)return;const U=[];for(let Q=L.length-1;Q>=0;Q--){const w=L[Q];if(w.sender.toUpperCase()!=="SYSTEM"&&(w.content!==""&&U.unshift(w),U.length===ar))break}let x=U.map(cc);if(!Da&&x.length<ar){const Q=ar-x.length;x=[...sr.slice(-Q),...x]}xa(x)})(S)},[p,(e=r.event)==null?void 0:e.rcbSaveChatHistory]),_=q((S,N=!1)=>{var R,L;g(S);let U=!0;const x=S[S.length-1];if(!x)return;const Q=x.sender.toUpperCase();Q==="USER"&&(U=!1),(R=r.general)!=null&&R.embedded&&m()&&(U=!1),(c.current&&!l.current||N)&&(U=!1),U&&y(),!N&&(Q!=="USER"&&(L=r.chatWindow)!=null&&L.autoJumpToBottom||Q==="USER"||!l.current)&&setTimeout(()=>h(),1)},[r,d,c,l,y,h,m]),P=q(async(S,N="BOT",R=null)=>{var L,U,x,Q,w;if(typeof S!="string")throw new Error("Content must be of type string to simulate stream.");N=N.toUpperCase();let V=Qt(S,N);if((L=r.event)!=null&&L.rcbStartSimulateStreamMessage){const ue=await p(z.START_SIMULATE_STREAM_MESSAGE,{message:V});if(ue.defaultPrevented)return null;R=ue.data.simulateStreamChunker||R,V=ue.data.message}s(!1);let b=30;b=N==="BOT"?(U=r.botBubble)==null?void 0:U.streamSpeed:(x=r.userBubble)==null?void 0:x.streamSpeed;const F={...V,content:""};i(ue=>[...ue,F]),_(A.current);let J=V.content;R&&(J=R(J));let K=0;const oe=J.length;V.sender.toUpperCase()==="BOT"&&(c.current||(Q=r.general)!=null&&Q.embedded)&&typeof V.content=="string"&&V.content.trim()!==""&&v(V.content);const ve=new Promise(ue=>{const Ve=setInterval(()=>{if(K>=oe)return clearInterval(Ve),void ue();i(Me=>{const Re=[...Me];for(let st=Re.length-1;st>=0;st--)if(Re[st].id===F.id){const j=J[K];j&&(F.content+=j,Re[st]=F),K++;break}return Re})},b)});return(l.current||!c.current)&&a(ue=>ue+1),await ve,g(A.current),(w=r.event)!=null&&w.rcbStopSimulateStreamMessage&&await p(z.STOP_SIMULATE_STREAM_MESSAGE,{message:V}),N==="USER"&&(f.current=S),V},[r,p,_,A,f,s,a,c,v]),E=q(async(S,N="BOT")=>{var R,L,U;N=N.toUpperCase();let x=Qt(S,N);if((R=r.event)!=null&&R.rcbPreInjectMessage){const Q=await p(z.PRE_INJECT_MESSAGE,{message:x});if(Q.defaultPrevented)return null;x=Q.data.message}return x.sender.toUpperCase()==="BOT"&&(c.current||(L=r.general)!=null&&L.embedded)&&typeof x.content=="string"&&x.content.trim()!==""&&v(x.content),(l.current||!c.current)&&a(Q=>Q+1),(U=r.event)!=null&&U.rcbPostInjectMessage&&await p(z.POST_INJECT_MESSAGE,{message:x}),i(Q=>[...Q,x]),_(A.current),N==="USER"&&typeof S=="string"&&(f.current=S),x},[r,p,_,f,A,c,v,a]),k=q(async S=>{var N;let R=A.current.find(x=>x.id===S),L=null,U=!1;return R||(L=In(),R=L.find(x=>x.id===S),R&&(U=!0)),!R||(N=r.event)!=null&&N.rcbRemoveMessage&&(await p(z.REMOVE_MESSAGE,{message:R})).defaultPrevented?null:U?(L&&io(L.filter(x=>x.id!==S)),R):(i(x=>x.filter(Q=>Q.id!==S)),_(A.current),a(x=>Math.max(x-1,0)),R)},[p,(t=r.event)==null?void 0:t.rcbRemoveMessage,_,A,a,In,io]),B=q(async(S,N="BOT")=>{var R,L;if(N=N.toUpperCase(),!u.current.has(N)){const x=Qt(S,N);return(R=r.event)!=null&&R.rcbStartStreamMessage&&(await p(z.START_STREAM_MESSAGE,{message:x})).defaultPrevented?null:(s(!1),i(Q=>[...Q,x]),_(A.current),u.current.set(N,x.id),(l.current||!c.current)&&a(Q=>Q+1),x)}const U={...Qt(S,N),id:u.current.get(N)};return(L=r.event)!=null&&L.rcbChunkStreamMessage&&(await p(z.CHUNK_STREAM_MESSAGE,{message:U})).defaultPrevented?null:(i(x=>x.map(Q=>Q.id===U.id?U:Q)),_(A.current,!0),U)},[p,r.event,_,A,s,a,u]),T=q(async(S="BOT")=>{var N;if(S=S.toUpperCase(),!u.current.has(S))return!0;const R=u.current.get(S);let L;for(let U=0;U<3;U++){const x=A.current.find(Q=>Q.id===R);x&&(L=x),await new Promise(Q=>setTimeout(Q,20))}return((N=r.event)==null||!N.rcbStopStreamMessage||!(await p(z.STOP_STREAM_MESSAGE,{message:L})).defaultPrevented)&&(u.current.delete(S),g(A.current),S==="USER"&&typeof(L==null?void 0:L.content)=="string"&&(f.current=L.content),!0)},[p,(n=r.event)==null?void 0:n.rcbStopStreamMessage,u,f]),D=q(S=>{const N=typeof S=="function"?S(A.current):S;i(N),_(N)},[_,A]),O=q((S,N,R=0)=>{var L;const U=A.current,x=S?S.toUpperCase():null,Q=[];let w=R;for(let V=U.length-1;V>=0;V--){const b=U[V];if(!x||((L=b==null?void 0:b.sender)==null?void 0:L.toUpperCase())===x){if(w>0){w--;continue}if(Q.push(b),N!==void 0&&Q.length===N)break}}return Q.length>0?Q:null},[A]);return{simulateStreamMessage:P,injectMessage:E,removeMessage:k,streamMessage:B,endStreamMessage:T,replaceMessages:D,getMessages:O,messages:o}};let Ao,pt,Ar,Ot=!1,ht=null;const lo=()=>{if(!Ao){const e=window.SpeechRecognition||window.webkitSpeechRecognition;Ao=e!=null?new e:null}return Ao},mc=(e,t,n,r,o,i)=>{var A,s,a;const l=lo();if(!l)return;if(!Ot)try{Ot=!0,l.lang=(A=e.voice)==null?void 0:A.language,l.start()}catch{}const c=(s=e.voice)==null?void 0:s.timeoutPeriod,u=(a=e.voice)==null?void 0:a.autoSendPeriod;l.onresult=d=>{var f,h;clearTimeout(pt),pt=null,clearTimeout(Ar);const m=d.results[d.results.length-1][0].transcript;if(i.current){const p=(f=e.chatInput)==null?void 0:f.characterLimit,v=i.current.value+m;p!=null&&p>=0&&v.length>p?r(v.slice(0,p)):r(v),o(i.current.value.length)}c&&(pt=setTimeout(async()=>await uo(t,i),c)),(h=e.voice)!=null&&h.autoSendDisabled||(Ar=setTimeout(n,u))},l.onend=()=>{Ot?(l.start(),!pt&&c&&(pt=setTimeout(async()=>await uo(t,i),c))):(clearTimeout(pt),pt=null,clearTimeout(Ar))},c&&(pt=setTimeout(async()=>await uo(t,i),c))},yc=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(ht=new MediaRecorder(n),!Ot)try{Ot=!0,ht.start()}catch{}ht.ondataavailable=r=>{t.current&&t.current.push(r.data)},ht.onstop=()=>{e(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},co=()=>{const e=lo();e&&(Ot=!1,e&&e.stop(),ht&&ht.state!=="inactive"&&(ht.stop(),ht=null),clearTimeout(pt),pt=null,clearTimeout(Ar))},uo=async(e,t)=>{var n;(n=t.current)!=null&&n.disabled||await e(),co()},fo=()=>{const{settings:e}=ae(),{voiceToggledOn:t,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=Oe(),{dispatchRcbEvent:o}=lt(),i=q(async s=>{var a;s!==r.current&&((a=e.event)!=null&&a.rcbToggleVoice&&(await o(z.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),A=q(s=>{((a,l)=>{var c,u,d;const f=lo();(c=l.voice)!=null&&c.disabled||(u=l.chatInput)==null||!u.blockSpam||!f||(a&&!Ot?(Ot=!0,(d=l.voice)!=null&&d.sendAsAudio?ht==null||ht.start():f.start()):a||co())})(s,e)},[e]);return{voiceToggledOn:t,toggleVoice:i,syncVoice:A}},Wt=()=>{var e;const{settings:t}=ae(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:A,setSyncedTextAreaSensitiveMode:s,syncedTextAreaDisabledRef:a,syncedTextAreaSensitiveModeRef:l}=Oe(),{inputRef:c,chatBodyRef:u,prevInputRef:d}=Te(),{dispatchRcbEvent:f}=lt(),{getIsChatBotVisible:h}=Ze(),m=q(async E=>{var k,B,T;if(a.current&&c.current)c.current.value="";else if(c.current&&d.current!==null){const D=(k=t.chatInput)==null?void 0:k.characterLimit,O=(B=t.chatInput)!=null&&B.allowNewline?E:E.replace(/\n/g," ");if(D!=null&&D>=0&&O.length>D?c.current.value=O.slice(0,D):c.current.value=O,(T=t.event)!=null&&T.rcbTextAreaChangeValue&&(await f(z.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,f]),p=q(E=>{var k;(k=c.current)!=null&&k.disabled||setTimeout(()=>{var B,T,D;(B=t.general)!=null&&B.embedded?h()&&((T=c.current)==null||T.focus()):E!=="start"&&((D=c.current)==null||D.focus())},100)},[c,(e=t.general)==null?void 0:e.embedded,u,h]),v=q(()=>{c.current&&c.current.focus()},[]),y=q(()=>{c.current&&c.current.blur()},[]),g=q(()=>c&&c.current?c.current.value:"",[]),_=q(E=>{E!==a.current&&i(k=>!k)},[a]),P=q(E=>{E!==l.current&&s(k=>!k)},[l]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:A,setSyncedTextAreaSensitiveMode:s,inputLength:n,setInputLength:r,getTextAreaValue:g,setTextAreaValue:m,updateTextAreaFocus:p,focusTextArea:v,blurTextArea:y,toggleTextAreaDisabled:_,toggleTextAreaSensitiveMode:P}},Qa=At({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),Ma=()=>rt(Qa),vc=({children:e})=>{const[t,n,r]=Je([]);return C(Qa.Provider,{value:{toasts:t,setSyncedToasts:n,syncedToastsRef:r},children:e})},rn=()=>{const{settings:e}=ae(),{toasts:t,setSyncedToasts:n,syncedToastsRef:r}=Ma(),{dispatchRcbEvent:o}=lt(),i=q(async(a,l)=>{var c,u,d,f;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=or();let p={id:h,content:a,timeout:l};if((d=e.event)!=null&&d.rcbShowToast){const v=await o(z.SHOW_TOAST,{toast:p});if(v.defaultPrevented)return null;p=v.data.toast}return n(v=>[...v.slice(1),p]),h}h=or();let m={id:h,content:a,timeout:l};if((f=e.event)!=null&&f.rcbShowToast){const p=await o(z.SHOW_TOAST,{toast:m});if(p.defaultPrevented)return null;m=p.data.toast}return n(p=>[...p,m]),h},[e,o]),A=q(async a=>{var l;const c=r.current.find(u=>u.id===a);return!c||(l=e.event)!=null&&l.rcbDismissToast&&(await o(z.DISMISS_TOAST,{toast:c})).defaultPrevented?null:(n(u=>u.filter(d=>d.id!==a)),a)},[o]),s=q(a=>{const l=typeof a=="function"?a(r.current):a;n(l)},[r]);return{showToast:i,dismissToast:A,toasts:t,replaceToasts:s}},lr=()=>{var e,t,n,r,o;const{settings:i}=ae(),{paths:A,setSyncedPaths:s,syncedPathsRef:a}=xn(),{flowRef:l,streamMessageMap:c,paramsInputRef:u,keepVoiceOnRef:d,timeoutIdRef:f}=Te(),{setSyncedIsBotTyping:h,setSyncedTextAreaDisabled:m,setSyncedTextAreaSensitiveMode:p,blockAllowsAttachment:v,setBlockAllowsAttachment:y}=Oe(),{dispatchRcbEvent:g}=lt(),{endStreamMessage:_,injectMessage:P,removeMessage:E,simulateStreamMessage:k,streamMessage:B}=qt(),{showToast:T,dismissToast:D}=rn(),{toggleChatWindow:O}=Ze(),{updateTextAreaFocus:S,setTextAreaValue:N}=Wt(),{syncVoice:R}=fo(),L=q(async b=>{var F;if((F=i.event)!=null&&F.rcbPostProcessBlock){const J=await g(z.POST_PROCESS_BLOCK,{block:b});if(J.defaultPrevented)return null;b=J.data.block}return b},[(e=i.event)==null?void 0:e.rcbPostProcessBlock,g]),U=q(async(b,F)=>{var J,K,oe,ve;if(!b)return;let ue=l.current[b];if(!ue)return void h(!1);if((J=i.event)!=null&&J.rcbPreProcessBlock){const Me=await g(z.PRE_PROCESS_BLOCK,{block:ue});if(Me.defaultPrevented)return;ue=Me.data.block}h(!0),(K=i.chatInput)!=null&&K.blockSpam&&m(!0),p(!1);const Ve={prevPath:F,currPath:b,goToPath:w,setTextAreaValue:N,userInput:u.current,endStreamMessage:_,injectMessage:P,removeMessage:E,simulateStreamMessage:k,streamMessage:B,toggleChatWindow:O,showToast:T,dismissToast:D};await(async(Me,Re,st,j,W,he,se)=>{if(!Me)throw new Error("Block is not valid.");for(const Ce of Object.keys(Me))switch(Ce){case"message":await nc(Me,Re,st);break;case"options":await oc(Me,Re);break;case"checkboxes":await ec(Me,Re);break;case"component":await ic(Me,Re);break;case"chatDisabled":await sc(Me,Re,W);break;case"isSensitive":await ka(Me,Re,he);break;case"transition":await ac(Me,Re,j,se)}})(ue,Ve,((oe=i.botBubble)==null?void 0:oe.simulateStream)??!1,f,m,p,L),h(!1),"chatDisabled"in ue||m((ve=i.chatInput)==null?void 0:ve.disabled),"isSensitive"in ue||p(!1),y(typeof ue.file=="function"),S(b),R(d.current&&!ue.chatDisabled),b!==F&&c.current.clear()},[l,S,R,(t=i.botBubble)==null?void 0:t.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,u,_,P,E,k,B,O,T,D,d,c]),x=q(()=>a.current.length>0?a.current.at(-1)??null:null,[]),Q=q(()=>a.current.length>1?a.current.at(-2)??null:null,[]),w=q(async b=>{var F;const J=x(),K=Q();return((F=i.event)==null||!F.rcbChangePath||!(await g(z.CHANGE_PATH,{currPath:J,prevPath:K,nextPath:b})).defaultPrevented)&&(s(oe=>[...oe,b]),await U(b,J),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,U,g]),V=q(b=>{const F=typeof b=="function"?b(a.current):b;s(F)},[a]);return{getCurrPath:x,getPrevPath:Q,goToPath:w,blockAllowsAttachment:v,setBlockAllowsAttachment:y,paths:A,replacePaths:V,firePostProcessBlockEvent:L}},on=()=>{var e,t,n,r;const{settings:o}=ae(),{endStreamMessage:i,injectMessage:A,removeMessage:s,simulateStreamMessage:a,streamMessage:l}=qt(),{syncedPathsRef:c}=xn(),{getCurrPath:u,getPrevPath:d,goToPath:f,firePostProcessBlockEvent:h}=lr(),{setSyncedTextAreaSensitiveMode:m,setSyncedTextAreaDisabled:p,setSyncedIsBotTyping:v,setBlockAllowsAttachment:y,setInputLength:g,syncedVoiceToggledOnRef:_,syncedTextAreaSensitiveModeRef:P}=Oe(),{flowRef:E,inputRef:k,keepVoiceOnRef:B,paramsInputRef:T,timeoutIdRef:D}=Te(),{showToast:O,dismissToast:S}=rn(),{dispatchRcbEvent:N}=lt(),{syncVoice:R}=fo(),{setTextAreaValue:L}=Wt(),{toggleChatWindow:U}=Ze(),x=q(async w=>{var V,b,F,J,K,oe;const ve=u();if(ve&&E.current[ve]){if(P.current){if((V=o==null?void 0:o.sensitiveInput)!=null&&V.hideInUserBubble)return;if((b=o==null?void 0:o.sensitiveInput)!=null&&b.maskInUserBubble)return void((F=o.userBubble)!=null&&F.simulateStream?await a("*".repeat(((J=o.sensitiveInput)==null?void 0:J.asterisksCount)??10),"USER"):await A("*".repeat(((K=o.sensitiveInput)==null?void 0:K.asterisksCount)??10),"USER"))}(oe=o.userBubble)!=null&&oe.simulateStream?await a(w,"USER"):await A(w,"USER")}},[E,u,o,A,a,P]),Q=q(async(w,V=!0)=>{var b,F;if((w=w.trim())==="")return;V&&await x(w),D.current&&clearTimeout(D.current),k.current&&(L(""),g(0));const J=u();if(!J)return;let K=E.current[J];const oe=await h(K);oe&&((b=o.chatInput)!=null&&b.blockSpam&&p(!0),B.current=_.current,R(!1),setTimeout(()=>{v(!0)},400),m(!1),setTimeout(async()=>{var ve;const ue={prevPath:d(),currPath:u(),goToPath:f,setTextAreaValue:L,userInput:T.current,injectMessage:A,simulateStreamMessage:a,streamMessage:l,removeMessage:s,endStreamMessage:i,toggleChatWindow:U,showToast:O,dismissToast:S},Ve=c.current.length;await Sa(oe,ue),c.current.length===Ve&&(p("chatDisabled"in K?!!K.chatDisabled:!((ve=o.chatInput)==null||!ve.disabled)),ka(K,ue,m),y(typeof K.file=="function"),R(B.current),v(!1))},(F=o.chatInput)==null?void 0:F.botDelay))},[D,(e=o.chatInput)==null?void 0:e.blockSpam,(t=o.chatInput)==null?void 0:t.botDelay,(n=o.chatInput)==null?void 0:n.disabled,B,_,R,x,d,u,f,A,a,l,s,i,U,O,S,E]);return{handleSubmitText:q(async(w,V=!0)=>{var b,F;w=w??((b=k.current)==null?void 0:b.value),!((F=o.event)!=null&&F.rcbUserSubmitText&&(await N(z.USER_SUBMIT_TEXT,{inputText:w,sendInChat:V})).defaultPrevented||!u())&&Q(w,V)},[N,u,Q,k,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},cr=()=>{var e;const{settings:t}=ae();return Ie(()=>{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])},wc=({buttons:e})=>{var t,n,r,o,i,A,s,a,l,c,u;const d=cr(),{settings:f}=ae(),{styles:h}=ye(),{textAreaDisabled:m,textAreaSensitiveMode:p,inputLength:v,hasFlowStarted:y,setHasFlowStarted:g,setInputLength:_}=Oe(),{inputRef:P}=Te(),[E,k]=ee(!1),[B,T]=ee(!1),{handleSubmitText:D}=on(),{setTextAreaValue:O}=Wt(),S={boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle},N={outline:m?"":"none",boxShadow:m?"":`0 0 5px ${(t=f.general)==null?void 0:t.primaryColor}`,boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaFocusedStyle},R={cursor:`url("${(n=f.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaDisabledStyle},L={color:"#989898",...h.characterLimitStyle},U={color:"#ff0000",...h.characterLimitReachedStyle},x=m?(r=f.chatInput)==null?void 0:r.disabledPlaceholderText:(o=f.chatInput)==null?void 0:o.enabledPlaceholderText,Q=()=>{m||k(!0)},w=()=>{k(!1)},V=()=>{T(!0)},b=()=>{T(!1)},F=async K=>{var oe;if(!B&&K.key==="Enter"){if(K.shiftKey)return void((oe=f.chatInput)!=null&&oe.allowNewline||K.preventDefault());K.preventDefault(),await D()}},J=K=>{P.current&&(O(K.target.value),_(P.current.value.length))};return C("div",{"aria-label":((i=f.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:K=>{var oe;K.stopPropagation(),!y&&((oe=f.general)==null?void 0:oe.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&g(!0)},style:{...h.chatInputContainerStyle},className:"rcb-chat-input",children:[p&&(A=f.sensitiveInput)!=null&&A.maskInTextArea?C("input",{ref:P,type:"password",className:"rcb-chat-input-textarea",style:m?R:E?N:S,placeholder:x,onChange:J,onKeyDown:F,onFocus:Q,onBlur:w,onCompositionStart:V,onCompositionEnd:b}):C("textarea",{ref:P,style:m?R:E?N:S,rows:1,className:"rcb-chat-input-textarea",placeholder:x,onChange:J,onKeyDown:F,onFocus:Q,onBlur:w,onCompositionStart:V,onCompositionEnd:b}),C(ce,{children:[e==null?void 0:e.map((K,oe)=>C(ce,{children:K},oe)),((s=f.chatInput)==null?void 0:s.showCharacterCount)&&((a=f.chatInput)==null?void 0:a.characterLimit)!=null&&((l=f.chatInput)==null?void 0:l.characterLimit)>0&&C("div",{className:"rcb-chat-input-char-counter",style:v>=((c=f.chatInput)==null?void 0:c.characterLimit)?U:L,children:[v,"/",(u=f.chatInput)==null?void 0:u.characterLimit]})]})]})},bc=({buttons:e})=>{var t;const{settings:n}=ae(),{styles:r}=ye();return C("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[C("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,i)=>C(ce,{children:o},i))}),C("span",{children:(t=n.footer)==null?void 0:t.text})]})},_c=()=>{var e,t,n,r,o,i,A;const{settings:s}=ae(),{styles:a}=ye(),{unreadCount:l}=Oe(),{isChatWindowOpen:c,toggleChatWindow:u}=Ze(),[d,f]=ee(!1),h={backgroundImage:`linear-gradient(to right, ${(e=s.general)==null?void 0:e.secondaryColor},
|
|
3
|
-
${(t=s.general)==null?void 0:t.primaryColor})`,...a.chatButtonStyle},m={transform:"scale(1.05)",...h,...a.chatButtonHoveredStyle},p={backgroundImage:`url(${(n=s.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...a.chatIconStyle};return C(ce,{children:!((r=s.general)!=null&&r.embedded)&&C("div",{"aria-label":((o=s.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:()=>{f(!0)},onMouseLeave:()=>{f(!1)},onClick:()=>u(!0),children:[(()=>{var v;const y=(v=s.chatButton)==null?void 0:v.icon;return y&&typeof y!="string"?y&&C("span",{className:"rcb-toggle-icon",children:C(y,{style:p})}):C("span",{className:"rcb-toggle-icon",style:p})})(),!((i=s.notification)!=null&&i.disabled)&&((A=s.notification)==null?void 0:A.showCount)&&C("span",{style:{...a.notificationBadgeStyle},className:"rcb-badge",children:l})]})})},Ec=()=>{var e,t,n,r,o,i;const A=cr(),{settings:s}=ae(),{styles:a}=ye(),{chatBodyRef:l}=Te(),{isChatWindowOpen:c,toggleChatWindow:u}=Ze(),[d,f]=ee(!1),[h,m]=ee(!1),[p,v]=ee(0);X(()=>{var _,P,E;const k=(_=s.tooltip)==null?void 0:_.mode;if(k==="ALWAYS")if(A){let B;B=c?(((P=l.current)==null?void 0:P.offsetWidth)??375)-(typeof((E=a.chatButtonStyle)==null?void 0:E.width)=="number"?a.chatButtonStyle.width:75):0,v(B),f(!0)}else f(!c);else k==="NEVER"?f(!1):k==="START"?h?f(!1):(m(!0),f(!0)):k==="CLOSE"&&f(!c)},[c,A,h,(e=a.chatButtonStyle)==null?void 0:e.width,(t=s.tooltip)==null?void 0:t.mode]);const y={transform:`translateX(-${p}px)`,right:(((n=a.chatButtonStyle)==null?void 0:n.width)??75)+40,bottom:30,backgroundColor:(r=s.general)==null?void 0:r.secondaryColor,color:"#fff",...a.tooltipStyle},g={borderColor:`transparent transparent transparent ${y.backgroundColor}`};return C(ce,{children:!((o=s.general)!=null&&o.embedded)&&C("div",{"data-testid":"chat-tooltip",style:y,className:"rcb-chat-tooltip "+(d?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>u(!0),children:[C("span",{children:(i=s.tooltip)==null?void 0:i.text}),C("span",{className:"rcb-chat-tooltip-tail",style:g})]})})},Pc=({id:e,content:t,timeout:n})=>{var r,o;const{settings:i}=ae(),{styles:A}=ye(),[s]=ee({toastPromptStyle:{...A.toastPromptStyle},toastPromptHoveredStyle:{...A.toastPromptHoveredStyle}}),{dismissToast:a}=rn(),[l,c]=ee(!1),u={color:(r=i.general)==null?void 0:r.primaryColor,borderColor:(o=i.general)==null?void 0:o.primaryColor,...s.toastPromptHoveredStyle};return X(()=>{if(n){const d=setTimeout(()=>{a(e)},n);return()=>clearTimeout(d)}},[e,a,n]),typeof t=="string"?C("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:s.toastPromptStyle,onMouseDown:async d=>{var f;(f=i.toast)!=null&&f.dismissOnClick&&(d.preventDefault(),await a(e))},className:"rcb-toast-prompt",children:t}):C(ce,{children:t})},Cc=()=>{var e,t,n,r,o,i,A,s,a,l,c,u;const{styles:d}=ye(),{toasts:f}=Ma(),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((A=d.chatWindowStyle)==null?void 0:A.width)=="number"?`${(s=d.chatWindowStyle)==null?void 0:s.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 C("div",{className:"rcb-toast-prompt-container",style:h,children:f.map(m=>C(Pc,{id:m.id,content:m.content,timeout:m.timeout},m.id))})},Oa=({file:e,fileType:t,fileUrl:n})=>{var r,o,i;const{settings:A}=ae(),{styles:s}=ye(),a={backgroundColor:(r=A.general)==null?void 0:r.primaryColor,maxWidth:(o=A.userBubble)!=null&&o.showAvatar?"65%":"70%",...s.mediaDisplayContainerStyle};return C(ce,{children:n?C(ce,{children:[t==="image"&&n&&C("div",{style:a,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:C("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),t==="video"&&n&&C("div",{style:a,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:C("video",{controls:!0,className:"rcb-media-display-video",children:[C("source",{src:n,type:e.type}),"Your browser does not support the video tag."]})}),t==="audio"&&n&&C("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(i=A.userBubble)!=null&&i.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[C("source",{src:n,type:e.type}),"Your browser does not support the audio tag."]})]}):C(ce,{})})},Na=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}}},kc=()=>{var e,t,n,r,o,i;const{settings:A}=ae(),{styles:s}=ye(),{injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d}=qt(),{getCurrPath:f,getPrevPath:h,goToPath:m,blockAllowsAttachment:p}=lr(),{flowRef:v,inputRef:y}=Te(),g=v.current,{showToast:_,dismissToast:P}=rn(),{dispatchRcbEvent:E}=lt(),{toggleChatWindow:k}=Ze(),{setTextAreaValue:B}=Wt(),{handleSubmitText:T}=on(),D={cursor:`url("${(e=A.general)==null?void 0:e.actionDisabledIcon}"), auto`,...s.fileAttachmentButtonStyle,...s.fileAttachmentButtonDisabledStyle},O={backgroundImage:`url(${(t=A.fileAttachment)==null?void 0:t.icon})`,fill:"#a6a6a6",...s.fileAttachmentIconStyle},S={backgroundImage:`url(${(n=A.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...s.fileAttachmentIconStyle,...s.fileAttachmentIconDisabledStyle};return C("label",{"aria-label":((r=A.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:p?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:p?{...s.fileAttachmentButtonStyle}:D,children:[C("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async N=>{var R,L,U,x;const Q=N.target.files;if(!Q)return;const w=Array.from(Q);if(N.target.value="",(R=A.event)!=null&&R.rcbUserUploadFile&&(await E(z.USER_UPLOAD_FILE,{files:w})).defaultPrevented)return;const V=f();if(!V)return;const b=g[V];if(!b)return;const F=b.file;if(F!=null){const J=[];for(let K=0;K<w.length;K++){if(J.push(w[K].name),(L=A.fileAttachment)==null||!L.showMediaDisplay)continue;const oe=await Na(w[K]);!oe.fileType||!oe.fileUrl||await a(C(Oa,{file:w[K],fileType:oe.fileType,fileUrl:oe.fileUrl}),"USER")}await T("๐ "+J.join(", "),(U=A.fileAttachment)==null?void 0:U.sendFileName),await F({userInput:(x=y.current)==null?void 0:x.value,prevPath:h(),currPath:f(),goToPath:m,setTextAreaValue:B,injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d,toggleChatWindow:k,showToast:_,dismissToast:P,files:w})}},multiple:(o=A.fileAttachment)==null?void 0:o.multiple,accept:(i=A.fileAttachment)==null?void 0:i.accept,disabled:!p}),(()=>{var N,R;const L=p?(N=A.fileAttachment)==null?void 0:N.icon:(R=A.fileAttachment)==null?void 0:R.iconDisabled;return L&&typeof L!="string"?L&&C("span",{className:p?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:C(L,{style:p?O:S})}):C("span",{className:p?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:p?O:S})})()]})},Sc=()=>{var e,t,n,r,o,i;const{settings:A}=ae(),{styles:s}=ye(),{syncedTextAreaDisabledRef:a}=Oe(),{inputRef:l}=Te(),{textAreaDisabled:c,setTextAreaValue:u}=Wt(),d=ne(null),f=ne(null),[h,m]=ee(!1),p={cursor:`url("${(e=A.general)==null?void 0:e.actionDisabledIcon}"), auto`,...s.emojiButtonStyle,...s.emojiButtonDisabledStyle},v={backgroundImage:`url(${(t=A.emoji)==null?void 0:t.icon})`,fill:"#a6a6a6",...s.emojiIconStyle},y={backgroundImage:`url(${(n=A.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...s.emojiIconStyle,...s.emojiIconDisabledStyle};return X(()=>{const g=P=>{const E=P.composedPath();d.current&&!E.includes(d.current)&&f.current&&!E.includes(f.current)&&m(!1)},_=()=>{(()=>{if(d.current&&f.current){const P=f.current.getBoundingClientRect(),E=d.current.offsetHeight,k=P.top-E-8;d.current.style.left=`${P.left}px`,d.current.style.top=`${k}px`}})()};return document.addEventListener("mousedown",g),window.addEventListener("resize",_),()=>{document.removeEventListener("mousedown",g),window.removeEventListener("resize",_)}},[]),C(ce,{children:[C("div",{"aria-label":((r=A.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:f,className:c?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:c?p:{...s.emojiButtonStyle},onMouseDown:g=>{g.preventDefault(),a.current?m(!1):m(_=>!_)},children:(()=>{var g,_;const P=c?(g=A.emoji)==null?void 0:g.iconDisabled:(_=A.emoji)==null?void 0:_.icon;return P&&typeof P!="string"?P&&C("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:C(P,{style:c?y:v})}):C("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:c?y:v})})()}),h&&C("div",{className:"rcb-emoji-button-popup",ref:d,children:(i=(o=A.emoji)==null?void 0:o.list)==null?void 0:i.map((g,_)=>C("span",{className:"rcb-emoji",onMouseDown:P=>((E,k)=>{E.preventDefault(),l.current&&(u(l.current.value+k),setTimeout(()=>{const B=l.current;if(B){B.focus();const T=B.value.length;B.setSelectionRange(T,T)}},50)),m(!1)})(P,g),children:g},_))})]})},Dc=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{audioToggledOn:i,toggleAudio:A}=Ta(),s={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 C("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async l=>{l.preventDefault(),await A()},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&&C("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:C(u,{style:i?s:a,"data-testid":"rcb-audio-icon-svg"})}):C("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?s:a})})()})},Bc=()=>{var e,t;const{settings:n}=ae(),{styles:r}=ye(),{toggleChatWindow:o}=Ze(),i={backgroundImage:`url(${(e=n.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return C("div",{"aria-label":((t=n.ariaLabel)==null?void 0:t.closeChatButton)??"close chat",role:"button",onMouseDown:A=>{A.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var A;const s=(A=n.header)==null?void 0:A.closeChatIcon;return s&&typeof s!="string"?s&&C("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:C(s,{style:i})}):C("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},xc=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{notificationsToggledOn:i,toggleNotifications:A}=(()=>{const{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}=so();return{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}})(),s={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 C("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async l=>{l.preventDefault(),await A()},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&&C("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:C(u,{style:i?s:a,"data-testid":"rcb-notification-icon-svg"})}):C("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?s:a})})()})},Ic=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{injectMessage:i}=qt(),{inputRef:A}=Te(),{voiceToggledOn:s,toggleVoice:a}=fo(),{setInputLength:l,setTextAreaValue:c,textAreaDisabled:u}=Wt(),{handleSubmitText:d}=on(),f=ne([]),[h,m]=ee(!1);X(()=>{var _;(_=r.voice)!=null&&_.sendAsAudio?(g(),f.current=[]):d()},[h]),X(()=>{s?((_,P,E,k,B,T,D)=>{var O;(O=_.voice)!=null&&O.sendAsAudio?yc(E,T):mc(_,P,E,k,B,D)})(r,a,y,c,l,f,A):co()},[s]);const p={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(_=>!_)},g=async()=>{const _=new Blob(f.current,{type:"audio/wav"}),P=new File([_],"voice-input.wav",{type:"audio/wav"}),E=await Na(P);!E.fileType||!E.fileUrl||await i(C(Oa,{file:P,fileType:E.fileType,fileUrl:E.fileUrl}),"USER")};return C("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async _=>{_.preventDefault(),!u&&await a()},style:s&&!u?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:s&&!u?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var _,P;const E=s?(_=r.voice)==null?void 0:_.icon:(P=r.voice)==null?void 0:P.iconDisabled;return E&&typeof E!="string"?E&&C("span",{className:"rcb-voice-icon "+(s&&!u?"on":""),children:C(E,{style:s&&!u?p:v})}):C("span",{className:"rcb-voice-icon"+(s&&!u?"-on":""),"data-testid":"rcb-voice-icon",style:s&&!u?p:v})})()})},Tc=()=>{var e,t,n,r,o,i,A,s;const{settings:a}=ae(),{styles:l}=ye(),{textAreaDisabled:c}=Oe(),[u,d]=ee(!1),{handleSubmitText:f}=on(),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},p={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(${(A=a.chatInput)==null?void 0:A.sendButtonIcon})`,fill:"#fff",...l.sendIconStyle,...l.sendIconHoveredStyle};return C("div",{"aria-label":((s=a.ariaLabel)==null?void 0:s.sendButton)??"send message",role:"button",onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},onMouseDown:async _=>{_==null||_.preventDefault(),!c&&await f()},style:c?m:u?p:h,className:"rcb-send-button",children:(()=>{var _;const P=(_=a.chatInput)==null?void 0:_.sendButtonIcon;return P&&typeof P!="string"?P&&C("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:C(P,{style:c?y:u?g:v})}):C("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:c?y:u?g:v})})()})},Qc=(e,t)=>{var n,r,o,i,A,s,a,l,c;const u={[De.AUDIO_BUTTON]:(n=e.audio)==null?void 0:n.disabled,[De.CLOSE_CHAT_BUTTON]:(r=e.general)==null?void 0:r.embedded,[De.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[De.FILE_ATTACHMENT_BUTTON]:(i=e.fileAttachment)==null?void 0:i.disabled,[De.NOTIFICATION_BUTTON]:(A=e.notification)==null?void 0:A.disabled,[De.SEND_MESSAGE_BUTTON]:!1,[De.VOICE_MESSAGE_BUTTON]:(s=e.voice)==null?void 0:s.disabled},d={},f=h=>h?h.map(m=>{if(typeof m=="string"){if((p=>Object.values(De).includes(p))(m)&&!u[m]){if(d[m])return d[m];const p=t[m];if(typeof p=="function"){const v=p();return d[m]=v,v}return null}return null}return m}).filter(m=>m!==null):[];return{header:f((a=e.header)==null?void 0:a.buttons),chatInput:f((l=e.chatInput)==null?void 0:l.buttons),footer:f((c=e.footer)==null?void 0:c.buttons)}},Mc=()=>{const{settings:e}=ae(),t=Ie(()=>({[De.CLOSE_CHAT_BUTTON]:()=>C(Bc,{}),[De.AUDIO_BUTTON]:()=>C(Dc,{}),[De.NOTIFICATION_BUTTON]:()=>C(xc,{}),[De.EMOJI_PICKER_BUTTON]:()=>C(Sc,{}),[De.FILE_ATTACHMENT_BUTTON]:()=>C(kc,{}),[De.SEND_MESSAGE_BUTTON]:()=>C(Tc,{}),[De.VOICE_MESSAGE_BUTTON]:()=>C(Ic,{})}),[]),{header:n,chatInput:r,footer:o}=Ie(()=>Qc(e,t),[e,t]);return{headerButtons:Ie(()=>n,[n]),chatInputButtons:Ie(()=>r,[r]),footerButtons:Ie(()=>o,[o])}},po=()=>{const{settings:e}=ae(),{styles:t}=ye(),{setSyncedMessages:n,syncedMessagesRef:r}=oo(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:A,setHasChatHistoryLoaded:s}=Oe(),{chatBodyRef:a}=Te(),{dispatchRcbEvent:l}=lt(),c=q(async()=>{var u,d;const f=In();if(!f||(u=e.event)!=null&&u.rcbLoadChatHistory&&(await l(z.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const h=((d=a.current)==null?void 0:d.scrollHeight)??0;((m,p,v,y,g,_,P,E,k)=>{var B;if(Da=!0,v!=null)try{const T=Qt(C(lc,{}),"SYSTEM"),D=g.current.slice(1);y([T,...D]);const O=v.map(S=>{if(S.type==="object"){const N=Ia(S.content,m,p);return{...S,content:N}}return S});setTimeout(()=>{var S;const N=g.current.slice(1);let R=(S=m.chatHistory)!=null&&S.autoLoad?Qt(C(ce,{}),"SYSTEM"):Qt(C(Ac,{}),"SYSTEM");y([...O,R,...N]),k(!0)},500),setTimeout(()=>{if(!_.current)return;const{scrollHeight:S}=_.current,N=S-P;_.current.scrollTop+=N,E(!1)},510)}catch{Mt.removeItem((B=m.chatHistory)==null?void 0:B.storageKey)}})(e,t,f,n,r,a,h,i,s)},[e,t,l,r,a,i,s]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:A,showChatHistory:c}},Oc=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{showChatHistory:i}=po(),[A,s]=ee(!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 C("div",{className:"rcb-view-history-container",children:C("div",{onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)},style:A?a:{...o.chatHistoryButtonStyle},onMouseDown:l=>{l.preventDefault(),i()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:C("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},Nc=()=>{var e,t,n,r;const o=cr(),{settings:i}=ae(),{replaceMessages:A}=qt(),{isBotTyping:s,isChatWindowOpen:a,setUnreadCount:l,setSyncedIsChatWindowOpen:c,setSyncedTextAreaDisabled:u,setSyncedAudioToggledOn:d,setSyncedVoiceToggledOn:f,setSyncedIsScrolling:h,syncedIsScrollingRef:m,syncedIsChatWindowOpenRef:p}=Oe(),{chatBodyRef:v}=Te(),{viewportHeight:y,setViewportHeight:g,setViewportWidth:_,scrollToBottom:P}=Ze(),{setUpNotifications:E}=so(),{handleFirstInteraction:k}=(()=>{var O;const{settings:S}=ae(),{hasInteractedPage:N,setHasInteractedPage:R,hasFlowStarted:L,setHasFlowStarted:U}=Oe(),x=q(()=>{var Q;if(R(!0),!L&&((Q=S.general)==null?void 0:Q.flowStartTrigger)==="ON_PAGE_INTERACT"&&U(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const w=new window.SpeechSynthesisUtterance;w.text="",w.onend=()=>{window.removeEventListener("click",x),window.removeEventListener("keydown",x),window.removeEventListener("touchstart",x)},window.speechSynthesis.speak(w)},[L,(O=S.general)==null?void 0:O.flowStartTrigger]);return{hasInteractedPage:N,handleFirstInteraction:x}})(),{showChatHistory:B}=po(),T=ne(0),D=ne(!1);X(()=>(window.addEventListener("click",k),window.addEventListener("keydown",k),window.addEventListener("touchstart",k),()=>{window.removeEventListener("click",k),window.removeEventListener("keydown",k),window.removeEventListener("touchstart",k)}),[]),X(()=>{const O=v.current;if(!O)return;const S=()=>{D.current||(D.current=!0,requestAnimationFrame(()=>{var N,R;if(!O)return;const{scrollTop:L,clientHeight:U,scrollHeight:x}=O,Q=L+U<x-(((N=i.chatWindow)==null?void 0:N.messagePromptOffset)??30);h(Q),m.current=Q,Q||(L+U>=x-1&&(O.scrollTop=x-U-1),(p.current||(R=i.general)!=null&&R.embedded)&&l(0)),D.current=!1}))};return O.addEventListener("wheel",S,{passive:!0}),O.addEventListener("touchmove",S,{passive:!0}),()=>{O.removeEventListener("wheel",S),O.removeEventListener("touchmove",S)}},[]),X(()=>{var O,S,N;u((O=i.chatInput)==null?void 0:O.disabled),c((S=i.chatWindow)==null?void 0:S.defaultOpen),d((N=i.audio)==null?void 0:N.defaultToggledOn),setTimeout(()=>{var R;f((R=i.voice)==null?void 0:R.defaultToggledOn)},1)},[]),X(()=>{var O;(O=i.notification)!=null&&O.disabled||E()},[(e=i.notification)==null?void 0:e.disabled]),X(()=>{!m.current&&v!=null&&v.current&&P()},[s]),X(()=>{var O,S;if((O=i.chatHistory)!=null&&O.disabled)Mt&&Mt.removeItem(ir);else if(ao(i),In().length>0){const N=Qt(C(Oc,{}),"SYSTEM");A([N]),(S=i.chatHistory)!=null&&S.autoLoad&&B()}},[(t=i.chatHistory)==null?void 0:t.storageKey,(n=i.chatHistory)==null?void 0:n.maxEntries,(r=i.chatHistory)==null?void 0:r.disabled]),X(()=>{var O;o||(O=i.general)!=null&&O.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",S=>{if(!S.target)return;const{x:N,y:R,width:L,height:U}=S.target.boundingRect;N==0&&R==0&&L==0&&U==0?(setTimeout(()=>{var x;g((x=window.visualViewport)==null?void 0:x.height)},101),setTimeout(()=>{var x,Q;y!=((x=window.visualViewport)==null?void 0:x.height)&&g((Q=window.visualViewport)==null?void 0:Q.height)},1001)):setTimeout(()=>{var x;g(((x=window.visualViewport)==null?void 0:x.height)-U)},101)}))},[o]),X(()=>{var O,S,N,R;if(o)return;a&&(g((O=window.visualViewport)==null?void 0:O.height),_((S=window.visualViewport)==null?void 0:S.width));const L=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),U=()=>T.current=window.scrollY,x=()=>{var w,V;g((w=window.visualViewport)==null?void 0:w.height),_((V=window.visualViewport)==null?void 0:V.width)},Q=()=>{var w;window.removeEventListener("scroll",L),window.removeEventListener("scroll",U),(w=window.visualViewport)==null||w.removeEventListener("resize",x)};return a?(Q(),document.body.style.position="fixed",window.addEventListener("scroll",L),(N=window.visualViewport)==null||N.addEventListener("resize",x)):(document.body.style.position="static",Q(),window.scrollTo({top:T.current,left:0,behavior:"auto"}),window.addEventListener("scroll",U),(R=window.visualViewport)==null||R.removeEventListener("resize",x)),Q},[a,o])},Lc="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",Rc="2592000",La="RCB_THEME_CACHE_DATA",Ra=async(e,t)=>{const{id:n,version:r,baseUrl:o=Lc,cacheDuration:i=Rc}=t,A=r||await(async(v,y)=>{const g=`${y}/${v}/meta.json`;try{const _=await fetch(g);return _.ok?(await _.json()).version:(console.error(`Failed to fetch meta.json from ${g}`),null)}catch(_){return console.error(`Failed to fetch meta.json from ${g}`,_),null}})(n,o);if(!A)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const s=((v,y,g)=>{const _=localStorage.getItem(`${La}_${v}_${y}`);if(!_)return null;try{const P=JSON.parse(_),E=new Date().getTime(),k=Math.floor(E/1e3);return P.cacheDate+g>=k?P:null}catch(P){return console.error(`Unable to fetch cache for ${v}`,P),null}})(n,A,i);if(s){const v=Ha(e,s.cssStylesText);return{settings:s.settings,inlineStyles:s.inlineStyles,cssStylesText:v}}const a=`${o}/${n}/${A}/styles.css`,l=`${o}/${n}/${A}/settings.json`,c=`${o}/${n}/${A}/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 f=await fetch(l);let h={};f.ok?h=await f.json():console.info(`Could not fetch settings.json from ${l}`);const m=await fetch(c);let p={};return m.ok?p=await m.json():console.info(`Could not fetch styles.json from ${c}`),((v,y,g,_,P)=>{const E=new Date().getTime(),k={settings:g,inlineStyles:_,cssStylesText:P,cacheDate:Math.floor(E/1e3)};localStorage.setItem(`${La}_${v}_${y}`,JSON.stringify(k))})(n,A,h,p,u),{settings:h,inlineStyles:p,cssStylesText:Ha(e,u)}},Ha=(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
|
-
`),Hc=async(e,t,n,r)=>{var o,i;let
|
|
1
|
+
var AccessQABot=function(Yn){"use strict";var bn,Y,Ai,xt,si,li,ci,Qr,$n,En,ui,Mr,Or,Nr,di,Vn={},Kn=[],Rs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_n=Array.isArray;function dt(e,t){for(var n in t)e[n]=t[n];return e}function Lr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function se(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?bn.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 Pn(e,s,r,o,null)}function Pn(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??++Ai,__i:-1,__u:0};return o==null&&Y.vnode!=null&&Y.vnode(i),i}function fi(){return{current:null}}function ce(e){return e.children}function ft(e,t){this.props=e,this.context=t}function Xt(e,t){if(t==null)return e.__?Xt(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"?Xt(e):null}function Hs(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=dt({},t);i.__v=t.__v+1,Y.vnode&&Y.vnode(i),Hr(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??Xt(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,vi(r,i,o),t.__e=t.__=null,i.__e!=n&&pi(i)}}function pi(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),pi(e)}function Rr(e){(!e.__d&&(e.__d=!0)&&xt.push(e)&&!Xn.__r++||si!=Y.debounceRendering)&&((si=Y.debounceRendering)||li)(Xn)}function Xn(){try{for(var e,t=1;xt.length;)xt.length>t&&xt.sort(ci),e=xt.shift(),t=xt.length,Hs(e)}finally{xt.length=Xn.__r=0}}function hi(e,t,n,r,o,i,s,A,a,l,c){var u,d,f,h,m,p,v,y=r&&r.__k||Kn,g=t.length;for(a=Us(n,t,y,a,g),u=0;u<g;u++)(f=n.__k[u])!=null&&(d=f.__i!=-1&&y[f.__i]||Vn,f.__i=u,p=Hr(e,f,d,o,i,s,A,a,l,c),h=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&Fr(d.ref,null,f),c.push(f.ref,f.__c||h,f)),m==null&&h!=null&&(m=h),(v=!!(4&f.__u))||d.__k===f.__k?(a=gi(f,a,e,v),v&&d.__e&&(d.__e=null)):typeof f.type=="function"&&p!==void 0?a=p:h&&(a=h.nextSibling),f.__u&=-7);return n.__e=m,a}function Us(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"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=Pn(null,s,null,null,null):_n(s)?s=e.__k[i]=Pn(ce,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=Pn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,a=i+d,s.__=e,s.__b=e.__b+1,A=null,(l=s.__i=Fs(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=Xt(A)),bi(A,A));return r}function gi(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=gi(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=Xt(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ct(e,t){return t=t||[],e==null||typeof e=="boolean"||(_n(e)?e.some(function(n){Ct(n,t)}):t.push(e)),t}function Fs(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&&A==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 mi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Rs.test(t)?n:n+"px"}function Jn(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||mi(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||mi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ui,"$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[En]=r[En]:(n[En]=Mr,e.addEventListener(t,i?Nr:Or,i)):e.removeEventListener(t,i?Nr:Or,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 yi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[$n]==null)t[$n]=Mr++;else if(t[$n]<n[En])return;return n(Y.event?Y.event(t):t)}}}function Hr(e,t,n,r,o,i,s,A,a,l){var c,u,d,f,h,m,p,v,y,g,E,P,_,k,B,T=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(a=!!(32&n.__u),i=[A=t.__e=n.__e]),(c=Y.__b)&&c(t);e:if(typeof T=="function")try{if(v=t.props,y=T.prototype&&T.prototype.render,g=(c=T.contextType)&&r[c.__c],E=c?g?g.props.value:c.__:r,n.__c?p=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new T(v,E):(t.__c=u=new ft(v,E),u.constructor=T,u.render=js),g&&g.sub(u),u.state||(u.state={}),u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&T.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=dt({},u.__s)),dt(u.__s,T.getDerivedStateFromProps(v,u.__s))),f=u.props,h=u.state,u.__v=t,d)y&&T.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&T.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,E),t.__v==n.__v||!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,E)===!1){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(D){D&&(D.__=t)}),Kn.push.apply(u.__h,u._sb),u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,E),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,m)})}if(u.context=E,u.props=v,u.__P=e,u.__e=!1,P=Y.__r,_=0,y)u.state=u.__s,u.__d=!1,P&&P(t),c=u.render(u.props,u.state,u.context),Kn.push.apply(u.__h,u._sb),u._sb=[];else do u.__d=!1,P&&P(t),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++_<25);u.state=u.__s,u.getChildContext!=null&&(r=dt(dt({},r),u.getChildContext())),y&&!d&&u.getSnapshotBeforeUpdate!=null&&(m=u.getSnapshotBeforeUpdate(f,h)),k=c!=null&&c.type===ce&&c.key==null?wi(c.props.children):c,A=hi(e,_n(k)?k:[k],t,n,r,o,i,s,A,a,l),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),p&&(u.__E=u.__=null)}catch(D){if(t.__v=null,a||i!=null)if(D.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(B=i.length;B--;)Lr(i[B]);Ur(t)}else t.__e=n.__e,t.__k=n.__k,D.then||Ur(t);Y.__e(D,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):A=t.__e=zs(n.__e,t,n,r,o,i,s,a,l);return(c=Y.diffed)&&c(t),128&t.__u?void 0:A}function Ur(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Ur))}function vi(e,t,n){for(var r=0;r<n.length;r++)Fr(n[r],n[++r],n[++r]);Y.__c&&Y.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){Y.__e(i,o.__v)}})}function wi(e){return typeof e!="object"||e==null||e.__b>0?e:_n(e)?e.map(wi):dt({},e)}function zs(e,t,n,r,o,i,s,A,a){var l,c,u,d,f,h,m,p=n.props||Vn,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((f=i[l])&&"setAttribute"in f==!!y&&(y?f.localName==y:f.nodeType==3)){e=f,i[l]=null;break}}if(e==null){if(y==null)return document.createTextNode(v);e=document.createElementNS(o,y,v.is&&v),A&&(Y.__m&&Y.__m(t,i),A=!1),i=null}if(y==null)p===v||A&&e.data==v||(e.data=v);else{if(i=i&&bn.call(e.childNodes),!A&&i!=null)for(p={},l=0;l<e.attributes.length;l++)p[(f=e.attributes[l]).name]=f.value;for(l in p)f=p[l],l=="dangerouslySetInnerHTML"?u=f:l=="children"||l in v||l=="value"&&"defaultValue"in v||l=="checked"&&"defaultChecked"in v||Jn(e,l,null,f,o);for(l in v)f=v[l],l=="children"?d=f:l=="dangerouslySetInnerHTML"?c=f:l=="value"?h=f:l=="checked"?m=f:A&&typeof f!="function"||p[l]===f||Jn(e,l,f,p[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=""),hi(t.type=="template"?e.content:e,_n(d)?d:[d],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Xt(n,0),A,a),i!=null)for(l=i.length;l--;)Lr(i[l]);A||(l="value",y=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[l]||y=="progress"&&!h||y=="option"&&h!=p[l])&&Jn(e,l,h,p[l],o),l="checked",m!=null&&m!=e[l]&&Jn(e,l,m,p[l],o))}return e}function Fr(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){Y.__e(o,n)}}function bi(e,t,n){var r,o;if(Y.unmount&&Y.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Fr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Y.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&bi(r[o],t,n||typeof e.type!="function");n||Lr(e.__e),e.__c=e.__=e.__e=void 0}function js(e,t,n){return this.constructor(e,n)}function Cn(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),Y.__&&Y.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Hr(t,e=(!r&&n||t).__k=se(ce,null,[e]),o||Vn,Vn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?bn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),vi(i,e,s)}function Ei(e,t){Cn(e,t,Ei)}function Ws(e,t,n){var r,o,i,s,A=dt({},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?bn.call(arguments,2):n),Pn(e.type,A,r||e.key,o||e.ref,null)}function st(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,Rr(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"+di++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}bn=Kn.slice,Y={__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}},Ai=0,ft.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=dt({},this.state),typeof e=="function"&&(e=e(dt({},n),this.props)),e&&dt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Rr(this))},ft.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Rr(this))},ft.prototype.render=ce,xt=[],li=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ci=function(e,t){return e.__v.__b-t.__v.__b},Xn.__r=0,Qr=Math.random().toString(8),$n="__d"+Qr,En="__a"+Qr,ui=/(PointerCapture)$|Capture$/i,Mr=0,Or=yi(!1),Nr=yi(!0),di=0;var It,Pe,zr,_i,Jt=0,Pi=[],Se=Y,Ci=Se.__b,ki=Se.__r,Si=Se.diffed,Di=Se.__c,Bi=Se.unmount,xi=Se.__;function Zt(e,t){Se.__h&&Se.__h(Pe,e,Jt||t),Jt=0;var n=Pe.__H||(Pe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ee(e){return Jt=1,jr(Mi,e)}function jr(e,t,n){var r=Zt(It++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Mi(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=Pe,!Pe.__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.some(function(d){if(d.__N){var f=d.__[0];d.__=d.__N,d.__N=void 0,f!==d.__[0]&&(u=!0)}}),i&&i.call(this,A,a,l)||u};Pe.__f=!0;var i=Pe.shouldComponentUpdate,s=Pe.componentWillUpdate;Pe.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)},Pe.shouldComponentUpdate=o}return r.__N||r.__}function X(e,t){var n=Zt(It++,3);!Se.__s&&qr(n.__H,t)&&(n.__=e,n.u=t,Pe.__H.__h.push(n))}function kn(e,t){var n=Zt(It++,4);!Se.__s&&qr(n.__H,t)&&(n.__=e,n.u=t,Pe.__h.push(n))}function ne(e){return Jt=5,Ie(function(){return{current:e}},[])}function Zn(e,t,n){Jt=6,kn(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 Ie(e,t){var n=Zt(It++,7);return qr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function W(e,t){return Jt=8,Ie(function(){return e},t)}function rt(e){var t=Pe.context[e.__c],n=Zt(It++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Pe)),t.props.value):e.__}function Ii(e,t){Se.useDebugValue&&Se.useDebugValue(t?t(e):e)}function Ti(){var e=Zt(It++,11);if(!e.__){for(var t=Pe.__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 qs(){for(var e;e=Pi.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(er),t.__h.some(Wr),t.__h=[]}catch(n){t.__h=[],Se.__e(n,e.__v)}}}Se.__b=function(e){Pe=null,Ci&&Ci(e)},Se.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),xi&&xi(e,t)},Se.__r=function(e){ki&&ki(e),It=0;var t=(Pe=e.__c).__H;t&&(zr===Pe?(t.__h=[],Pe.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(er),t.__h.some(Wr),t.__h=[],It=0)),zr=Pe},Se.diffed=function(e){Si&&Si(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Pi.push(t)!==1&&_i===Se.requestAnimationFrame||((_i=Se.requestAnimationFrame)||Gs)(qs)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),zr=Pe=null},Se.__c=function(e,t){t.some(function(n){try{n.__h.some(er),n.__h=n.__h.filter(function(r){return!r.__||Wr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Se.__e(r,n.__v)}}),Di&&Di(e,t)},Se.unmount=function(e){Bi&&Bi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{er(r)}catch(o){t=o}}),n.__H=void 0,t&&Se.__e(t,n.__v))};var Qi=typeof requestAnimationFrame=="function";function Gs(e){var t,n=function(){clearTimeout(r),Qi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Qi&&(t=requestAnimationFrame(n))}function er(e){var t=Pe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Pe=t}function Wr(e){var t=Pe;e.__c=e.__(),Pe=t}function qr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Mi(e,t){return typeof t=="function"?t(e):t}function Oi(e,t){for(var n in t)e[n]=t[n];return e}function Gr(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 Ni(e,t){var n=t(),r=ee({t:{__:n,u:t}}),o=r[0].t,i=r[1];return kn(function(){o.__=n,o.u=t,Yr(o)&&i({t:o})},[e,n,t]),X(function(){return Yr(o)&&i({t:o}),e(function(){Yr(o)&&i({t:o})})},[e]),n}function Yr(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function Li(e){e()}function Ri(e){return e}function Hi(){return[!1,Li]}var Ui=kn;function $r(e,t){this.props=e,this.context=t}function Ys(e,t){function n(o){var i=this.props.ref;return i!=o.ref&&i&&(typeof i=="function"?i(null):i.current=null),t?!t(this.props,o)||i!=o.ref:Gr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,se(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=e,r}($r.prototype=new ft).isPureReactComponent=!0,$r.prototype.shouldComponentUpdate=function(e,t){return Gr(this.props,e)||Gr(this.state,t)};var Fi=Y.__b;Y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Fi&&Fi(e)};var $s=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ye(e){function t(n){var r=Oi({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=$s,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var zi=function(e,t){return e==null?null:Ct(Ct(e).map(t))},Vs={map:zi,forEach:zi,count:function(e){return e?Ct(e).length:0},only:function(e){var t=Ct(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ct},Ks=Y.__e;Y.__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)}Ks(e,t,n,r)};var ji=Y.unmount;function Wi(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=Oi({},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 Wi(r,t,n)})),e}function qi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return qi(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 tr(){this.__u=0,this.o=null,this.__b=null}function Gi(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Xs(e){var t,n,r,o=null;function i(s){if(t||(t=e()).then(function(A){A&&(o=A.default||A),r=!0},function(A){n=A,r=!0}),n)throw n;if(!r)throw t;return o?se(o,s):null}return i.displayName="Lazy",i.__f=!0,i}function Sn(){this.i=null,this.l=null}Y.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ji&&ji(e)},(tr.prototype=new ft).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Gi(r.__v),i=!1,s=function(){i||r.__z||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var A=n.__P;n.__P=null;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=qi(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.__P=A,c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},tr.prototype.componentWillUnmount=function(){this.o=[]},tr.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]=Wi(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&se(ce,null,e.fallback);return o&&(o.__u&=-33),[se(ce,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 Js(e){return this.getChildContext=function(){return e.context},e.children}function Zs(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Cn(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},namespaceURI:n.namespaceURI,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)}}}Cn(se(Js,{context:t.context},e.__v),t.v)}function $i(e,t){var n=se(Zs,{__v:e,h:t});return n.containerInfo=t,n}(Sn.prototype=new ft).__a=function(e){var t=this,n=Gi(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()}},Sn.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ct(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},Sn.prototype.componentDidUpdate=Sn.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,el=/^(?: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]/,tl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,nl=/[A-Z0-9]/g,rl=typeof document<"u",ol=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ki(e,t,n){return t.__k==null&&(t.textContent=""),Cn(e,t),typeof n=="function"&&n(),e?e.__c:null}function il(e,t,n){return Ei(e,t),typeof n=="function"&&n(),e?e.__c:null}ft.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ft.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Xi=Y.event;Y.event=function(e){return Xi&&(e=Xi(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Vr,al={configurable:!0,get:function(){return this.class}},Ji=Y.vnode;Y.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||rl&&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"||ol(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":tl.test(s)&&(s=a):a=s="oninput":i&&el.test(s)?s=s.replace(nl,"-$&").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=Ct(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),o.defaultValue!=null&&(o.value=Ct(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",al)):n.className&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Vi,Ji&&Ji(e)};var Zi=Y.__r;Y.__r=function(e){Zi&&Zi(e),Vr=e.__c};var ea=Y.diffed;Y.diffed=function(e){ea&&ea(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),Vr=null};var Al={ReactCurrentDispatcher:{current:{readContext:function(e){return Vr.__n[e.__c].props.value},useCallback:W,useContext:rt,useDebugValue:Ii,useDeferredValue:Ri,useEffect:X,useId:Ti,useImperativeHandle:Zn,useInsertionEffect:Ui,useLayoutEffect:kn,useMemo:Ie,useReducer:jr,useRef:ne,useState:ee,useSyncExternalStore:Ni,useTransition:Hi}}};function sl(e){return se.bind(null,e)}function zt(e){return!!e&&e.$$typeof===Vi}function ll(e){return zt(e)&&e.type===ce}function cl(e){return!!e&&typeof e.displayName=="string"&&e.displayName.indexOf("Memo(")==0}function ul(e){return zt(e)?Ws.apply(null,arguments):e}function ta(e){return!!e.__k&&(Cn(null,e),!0)}function dl(e){return e&&(e.base||e.nodeType===1&&e)||null}var fl=function(e,t){return e(t)},pl=function(e,t){var n=Y.debounceRendering;Y.debounceRendering=function(o){return o()};var r=e(t);return Y.debounceRendering=n,r},hl=zt,M={useState:ee,useId:Ti,useReducer:jr,useEffect:X,useLayoutEffect:kn,useInsertionEffect:Ui,useTransition:Hi,useDeferredValue:Ri,useSyncExternalStore:Ni,startTransition:Li,useRef:ne,useImperativeHandle:Zn,useMemo:Ie,useCallback:W,useContext:rt,useDebugValue:Ii,version:"18.3.1",Children:Vs,render:Ki,hydrate:il,unmountComponentAtNode:ta,createPortal:$i,createElement:se,createContext:st,createFactory:sl,cloneElement:ul,createRef:fi,Fragment:ce,isValidElement:zt,isElement:hl,isFragment:ll,isMemo:cl,findDOMNode:dl,Component:ft,PureComponent:$r,memo:Ys,forwardRef:Ye,flushSync:pl,unstable_batchedUpdates:fl,StrictMode:ce,Suspense:tr,SuspenseList:Sn,lazy:Xs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Al},gl=0;function C(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:--gl,__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 Y.vnode&&Y.vnode(l),l}function ml(e){return{render:function(t){Ki(t,e)},unmount:function(){ta(e)}}}var yl="diffed",na="__c",Kr="__s",en="__c",ra="__k",Xr="__d",tn="__s",oa=/[\s\n\\/='"\0<>]/,ia=/^(xlink|xmlns|xml)([A-Z])/,vl=/^(?: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])/,wl=/^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/,bl=new Set(["draggable","spellcheck"]);function aa(e){e.__g!==void 0?e.__g|=8:e[Xr]=!0}function El(e){e.__g!==void 0?e.__g&=-9:e[Xr]=!1}function Aa(e){return e.__g!==void 0?!!(8&e.__g):e[Xr]===!0}var _l=/["&<]/;function nr(e){if(e.length===0||_l.test(e)===!1)return e;for(var t=0,n=0,r="",o="";n<e.length;n++){switch(e.charCodeAt(n)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";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 sa={},Pl=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"]),Cl=/[A-Z]/g;function kl(e){var t="";for(var n in e){var r=e[n];if(r!=null&&r!==""){var o=n[0]=="-"?n:sa[n]||(sa[n]=n.replace(Cl,"-$&").toLowerCase()),i=";";typeof r!="number"||o.startsWith("--")||Pl.has(o)||(i="px;"),t=t+o+":"+r+i}}return t||void 0}function la(){this.__d=!0}function Sl(e,t){return{__v:e,context:t,props:e.props,setState:la,forceUpdate:la,__d:!0,__h:new Array(0)}}var Jr,jt,Dn,Bn,Zr={},ca=[],nn=Array.isArray,eo=Object.assign,$e="",to="<!--$s-->",no="<!--/$s-->";function ua(e,t,n){var r=Y[Kr];Y[Kr]=!0,Jr=Y.__b,jt=Y[yl],Dn=Y.__r,Bn=Y.unmount;var o=se(ce,null);o[ra]=[e];try{var i=Tt(e,t||Zr,!1,void 0,o,!1,n);return nn(i)?i.join($e):i}catch(s){throw s.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):s}finally{Y[na]&&Y[na](e,ca),Y[Kr]=r,ca.length=0}}function da(e,t){var n,r=e.type,o=!0;return e[en]?(o=!1,(n=e[en]).state=n[tn]):n=new r(e.props,t),e[en]=n,n.__v=e,n.props=e.props,n.context=t,aa(n),n.state==null&&(n.state=Zr),n[tn]==null&&(n[tn]=n.state),r.getDerivedStateFromProps?n.state=eo({},n.state,r.getDerivedStateFromProps(n.props,n.state)):o&&n.componentWillMount?(n.componentWillMount(),n.state=n[tn]!==n.state?n[tn]:n.state):!o&&n.componentWillUpdate&&n.componentWillUpdate(),Dn&&Dn(e),n.render(n.props,n.state,t)}function Tt(e,t,n,r,o,i,s){if(e==null||e===!0||e===!1||e===$e)return $e;var A=typeof e;if(A!="object")return A=="function"?$e:A=="string"?nr(e):e+$e;if(nn(e)){var a,l=$e;o[ra]=e;for(var c=e.length,u=0;u<c;u++){var d=e[u];if(d!=null&&typeof d!="boolean"){var f,h=Tt(d,t,n,r,o,i,s);typeof h=="string"?l+=h:(a||(a=new Array(c)),l&&a.push(l),l=$e,nn(h)?(f=a).push.apply(f,h):a.push(h))}}return a?(l&&a.push(l),a):l}if(e.constructor!==void 0)return $e;e.__=o,Jr&&Jr(e);var m=e.type,p=e.props;if(typeof m=="function"){var v,y,g,E=t;if(m===ce){if("tpl"in p){for(var P=$e,_=0;_<p.tpl.length;_++)if(P+=p.tpl[_],p.exprs&&_<p.exprs.length){var k=p.exprs[_];if(k==null)continue;typeof k!="object"||k.constructor!==void 0&&!nn(k)?P+=k:P+=Tt(k,t,n,r,e,i,s)}return P}if("UNSTABLE_comment"in p)return"<!--"+nr(p.UNSTABLE_comment)+"-->";y=p.children}else{if((v=m.contextType)!=null){var B=t[v.__c];E=B?B.props.value:v.__}var T=m.prototype&&typeof m.prototype.render=="function";if(T)y=da(e,E),g=e[en];else{e[en]=g=Sl(e,E);for(var D=0;Aa(g)&&D++<25;){El(g),Dn&&Dn(e);try{y=m.call(g,p,E)}catch(b){throw b}}aa(g)}if(g.getChildContext!=null&&(t=eo({},t,g.getChildContext())),T&&Y.errorBoundaries&&(m.getDerivedStateFromError||g.componentDidCatch)){y=y!=null&&y.type===ce&&y.key==null&&y.props.tpl==null?y.props.children:y;try{return Tt(y,t,n,r,e,i,!1)}catch(b){return m.getDerivedStateFromError&&(g[tn]=m.getDerivedStateFromError(b)),g.componentDidCatch&&g.componentDidCatch(b,Zr),Aa(g)?(y=da(e,t),(g=e[en]).getChildContext!=null&&(t=eo({},t,g.getChildContext())),Tt(y=y!=null&&y.type===ce&&y.key==null&&y.props.tpl==null?y.props.children:y,t,n,r,e,i,s)):$e}finally{jt&&jt(e),Bn&&Bn(e)}}}y=y!=null&&y.type===ce&&y.key==null&&y.props.tpl==null?y.props.children:y;try{var O=Tt(y,t,n,r,e,i,s);return jt&&jt(e),Y.unmount&&Y.unmount(e),e._suspended?typeof O=="string"?to+O+no:nn(O)?(O.unshift(to),O.push(no),O):O.then(function(b){return to+b+no}):O}catch(b){if(s&&s.onError){var S=s.onError(b,e,function(F,J){return Tt(F,t,n,r,J,i,s)});if(S!==void 0)return S;var N=Y.__e;return N&&N(b,e),$e}throw b}}var R,L="<"+m,U=$e;for(var x in p){var Q=p[x];if(typeof(Q=Bl(Q)?Q.value:Q)!="function"||x==="class"||x==="className"){switch(x){case"children":R=Q;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in p)continue;x="for";break;case"className":if("class"in p)continue;x="class";break;case"defaultChecked":x="checked";break;case"defaultSelected":x="selected";break;case"defaultValue":case"value":switch(x="value",m){case"textarea":R=Q;continue;case"select":r=Q;continue;case"option":r!=Q||"selected"in p||(L+=" selected")}break;case"dangerouslySetInnerHTML":U=Q&&Q.__html;continue;case"style":typeof Q=="object"&&(Q=kl(Q));break;case"acceptCharset":x="accept-charset";break;case"httpEquiv":x="http-equiv";break;default:if(ia.test(x))x=x.replace(ia,"$1:$2").toLowerCase();else{if(oa.test(x))continue;x[4]!=="-"&&!bl.has(x)||Q==null?n?wl.test(x)&&(x=x==="panose1"?"panose-1":x.replace(/([A-Z])/g,"-$1").toLowerCase()):vl.test(x)&&(x=x.toLowerCase()):Q+=$e}}Q!=null&&Q!==!1&&(L=Q===!0||Q===$e?L+" "+x:L+" "+x+'="'+(typeof Q=="string"?nr(Q):Q+$e)+'"')}}if(oa.test(m))throw new Error(m+" is not a valid HTML tag name in "+L+">");if(U||(typeof R=="string"?U=nr(R):R!=null&&R!==!1&&R!==!0&&(U=Tt(R,t,m==="svg"||m!=="foreignObject"&&n,r,e,i,s))),jt&&jt(e),Bn&&Bn(e),!U&&Dl.has(m))return L+"/>";var w="</"+m+">",V=L+">";return nn(U)?[V].concat(U,[w]):typeof U!="string"?[V,U,w]:V+U+w}var Dl=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Bl(e){return e!==null&&typeof e=="object"&&typeof e.peek=="function"&&"value"in e}const xl={renderToString:ua,renderToStaticMarkup:ua},Il={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_AGENT_ENDPOINT:"https://qa.access-ci.org/api/v1",VITE_ALLOW_ANON_ACCESS:"true",VITE_API_KEY:"4nn5l4T4TnkMdzsK0AwAtnGRcheBDnjawuAT42LaOLc",VITE_NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",VITE_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",VITE_TURNSTILE_SITE_KEY:"0x4AAAAAAC2toq7FThjGplVx"};function rr(){return rr=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},rr.apply(null,arguments)}function fa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}typeof SuppressedError=="function"&&SuppressedError;const De={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"},pa="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",ha=Ye((e,t)=>se("svg",{viewBox:"0 0 637 637",ref:t,...e},se("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"}),se("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"}))),ga=Ye((e,t)=>se("svg",{viewBox:"0 -960 960 960",ref:t,...e},se("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"}))),Tl=Ye((e,t)=>se("svg",{viewBox:"0 -960 960 960",ref:t,...e},se("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"}))),Ql=Ye((e,t)=>se("svg",{viewBox:"0 -960 960 960",ref:t,...e},se("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"}))),Ml=Ye((e,t)=>se("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:t,...e},se("g",{strokeLinecap:"round",strokeWidth:10},se("path",{d:"m19 19 61 61M80 19 19 80"})))),Ol=Ye((e,t)=>se("svg",{viewBox:"0 -960 960 960",ref:t,...e},se("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),Nl=Ye((e,t)=>se("svg",{viewBox:"0 -960 960 960",ref:t,...e},se("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"}))),Ll=Ye((e,t)=>se("svg",{viewBox:"0 -960 960 960",ref:t,...e},se("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"}))),ma=Ye((e,t)=>se("svg",{viewBox:"0 -960 960 960",ref:t,...e},se("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"}))),Rl=Ye((e,t)=>se("svg",{viewBox:"0 -960 960 960",ref:t,...e},se("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"}))),Hl=Ye((e,t)=>se("svg",{viewBox:"0 -960 960 960",ref:t,...e},se("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"}))),ya={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:ha},header:{title:C("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/","_blank","noopener,noreferrer"),children:"Tan Jin"}),showAvatar:!0,avatar:pa,buttons:[De.NOTIFICATION_BUTTON,De.AUDIO_BUTTON,De.CLOSE_CHAT_BUTTON],closeChatIcon:Ml},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:Tl,iconDisabled:Ql,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/////wAABAAAA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4APgAiAFUACABDANr/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/wMADgAQAC4AIwAyABMAJwD8/xcA3v8LANP/5v/f/8j/AgC4/w4A1P8eAA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m/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:Rl,iconDisabled:Hl},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:Ol,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[De.VOICE_MESSAGE_BUTTON,De.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:pa,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:Nl,iconDisabled:Ll},footer:{text:C("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com","_blank","noopener,noreferrer"),children:[C("span",{children:"Powered By "},0),C("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:C(ha,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),C("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[De.FILE_ATTACHMENT_BUTTON,De.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:ga,iconDisabled:ga,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:ma,iconDisabled:ma,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,rcbSaveChatHistory:!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}},va=st({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),ae=()=>rt(va),Ul=({children:e,settings:t=ya,setSyncedSettings:n,syncedSettingsRef:r})=>C(va.Provider,{value:{settings:t,setSyncedSettings:n,syncedSettingsRef:r},children:e}),wa={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:{}},ba=st({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),ye=()=>rt(ba),Fl=({children:e,styles:t=wa,setSyncedStyles:n,syncedStylesRef:r})=>C(ba.Provider,{value:{styles:t,setSyncedStyles:n,syncedStylesRef:r},children:e}),zl=({buttons:e})=>{var t,n,r,o,i,s,A;const{settings:a}=ae(),{styles:l}=ye(),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 C("div",{style:c,className:"rcb-chat-header-container",children:[C("div",{className:"rcb-chat-header",children:[((r=a.header)==null?void 0:r.showAvatar)&&C("div",{style:{backgroundImage:`url("${(o=a.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),zt((i=a.header)==null?void 0:i.title)?(s=a.header)==null?void 0:s.title:C("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(A=a.header)==null?void 0:A.title})]}),C("div",{className:"rcb-chat-header",children:e==null?void 0:e.map((u,d)=>C(ce,{children:u},d))})]})},Ea=st({}),Te=()=>rt(Ea),jl=({children:e,botIdRef:t,flowRef:n})=>{const r=ne(null),o=ne(""),i=ne(null),s=ne(new Map),A=ne(null),a=ne(""),l=ne(!1),c=ne(null),u=ne(null),d=ne(null);return C(Ea.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})},Je=e=>{const[t,n]=ee(e),r=ne(e);return[t,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},_a=st({}),Oe=()=>rt(_a),Wl=({children:e,settings:t})=>{var n,r,o,i,s,A;const[a,l,c]=Je(!1),[u,d,f]=Je(((n=t==null?void 0:t.chatWindow)==null?void 0:n.defaultOpen)??!1),[h,m,p]=Je(((r=t==null?void 0:t.audio)==null?void 0:r.defaultToggledOn)??!1),[v,y,g]=Je(((o=t==null?void 0:t.voice)==null?void 0:o.defaultToggledOn)??!1),[E,P,_]=Je(((i=t==null?void 0:t.notification)==null?void 0:i.defaultToggledOn)??!0),[k,B]=ee(!1),[T,D]=ee(!1),[O,S,N]=Je(!1),[R,L,U]=Je(!0),[x,Q,w]=Je(!1),[V,b]=ee(!1),[F,J]=ee(!1),[K,oe]=ee(0),[ve,ue]=ee(0),[Ve,Me]=ee(!1),[Re,At]=ee(((s=window.visualViewport)==null?void 0:s.height)??window.innerHeight),[j,q]=ee(((A=window.visualViewport)==null?void 0:A.width)??window.innerWidth);return C(_a.Provider,{value:{isBotTyping:a,setSyncedIsBotTyping:l,syncedIsBotTypingRef:c,isChatWindowOpen:u,setSyncedIsChatWindowOpen:d,syncedIsChatWindowOpenRef:f,audioToggledOn:h,setSyncedAudioToggledOn:m,syncedAudioToggledOnRef:p,voiceToggledOn:v,setSyncedVoiceToggledOn:y,syncedVoiceToggledOnRef:g,notificationsToggledOn:E,setSyncedNotificationsToggledOn:P,syncedNotificationsToggledOnRef:_,isLoadingChatHistory:k,setIsLoadingChatHistory:B,hasChatHistoryLoaded:T,setHasChatHistoryLoaded:D,isScrolling:O,setSyncedIsScrolling:S,syncedIsScrollingRef:N,textAreaDisabled:R,setSyncedTextAreaDisabled:L,syncedTextAreaDisabledRef:U,textAreaSensitiveMode:x,setSyncedTextAreaSensitiveMode:Q,syncedTextAreaSensitiveModeRef:w,hasInteractedPage:V,setHasInteractedPage:b,hasFlowStarted:F,setHasFlowStarted:J,unreadCount:K,setUnreadCount:oe,inputLength:ve,setInputLength:ue,blockAllowsAttachment:Ve,setBlockAllowsAttachment:Me,viewportHeight:Re,setViewportHeight:At,viewportWidth:j,setViewportWidth:q},children:e})};var z=(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.SAVE_CHAT_HISTORY="rcb-save-chat-history",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))(z||{});const ql={[z.START_SPEAK_AUDIO]:!0,[z.TOGGLE_AUDIO]:!0,[z.TOGGLE_VOICE]:!0,[z.TOGGLE_NOTIFICATIONS]:!0,[z.TOGGLE_CHAT_WINDOW]:!0,[z.PRE_INJECT_MESSAGE]:!0,[z.POST_INJECT_MESSAGE]:!1,[z.PRE_LOAD_CHATBOT]:!0,[z.POST_LOAD_CHATBOT]:!1,[z.START_SIMULATE_STREAM_MESSAGE]:!0,[z.STOP_SIMULATE_STREAM_MESSAGE]:!1,[z.START_STREAM_MESSAGE]:!0,[z.CHUNK_STREAM_MESSAGE]:!0,[z.STOP_STREAM_MESSAGE]:!0,[z.REMOVE_MESSAGE]:!0,[z.SAVE_CHAT_HISTORY]:!0,[z.LOAD_CHAT_HISTORY]:!0,[z.CHANGE_PATH]:!0,[z.SHOW_TOAST]:!0,[z.DISMISS_TOAST]:!0,[z.USER_SUBMIT_TEXT]:!0,[z.USER_UPLOAD_FILE]:!0,[z.TEXT_AREA_CHANGE_VALUE]:!0,[z.PRE_PROCESS_BLOCK]:!0,[z.POST_PROCESS_BLOCK]:!0},ro=async(e,t,n)=>{const r=new CustomEvent(e,{detail:t,cancelable:ql[e]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Pa=st({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),xn=()=>rt(Pa),Gl=({children:e})=>{const[t,n,r]=Je([]);return C(Pa.Provider,{value:{paths:t,setSyncedPaths:n,syncedPathsRef:r},children:e})},lt=()=>{const{botIdRef:e}=Te(),{syncedPathsRef:t}=xn(),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 ro(o,s,i)},[e])}},Ze=()=>{const{settings:e}=ae(),{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,setUnreadCount:A,setSyncedIsBotTyping:a,setSyncedIsScrolling:l,syncedIsBotTypingRef:c,syncedIsChatWindowOpenRef:u}=Oe(),{chatBodyRef:d}=Te(),{dispatchRcbEvent:f}=lt(),h=W(()=>{if(!d.current)return!1;const g=d.current.getBoundingClientRect(),E=window.innerHeight??document.documentElement.clientHeight,P=window.innerWidth??document.documentElement.clientWidth;return g.top>=0&&g.left>=0&&g.bottom<=E&&g.right<=P},[d]),m=W(async g=>{var E;g!==u.current&&((E=e.event)!=null&&E.rcbToggleChatWindow&&(await f(z.TOGGLE_CHAT_WINDOW,{currState:u.current,newState:!u.current})).defaultPrevented||n(P=>(P||A(0),!P)))},[u]),p=W(async g=>{g!==c.current&&a(E=>!E)},[c]),v=W((g,E,P,_)=>(g/=_/2)<1?P/2*g*g+E:-P/2*(--g*(g-2)-1)+E,[]),y=W((g=0)=>{if(!d.current)return;const E=d.current.scrollHeight-d.current.clientHeight;if(g<=0)return d.current.scrollTop=E,void l(!1);const P=d.current.scrollTop,_=E-P;let k=0;const B=()=>{if(!d.current)return;k+=20;const T=v(k,P,_,g);d.current.scrollTop=T,k<g?requestAnimationFrame(B):l(!1)};B()},[d]);return{isChatWindowOpen:t,setSyncedIsChatWindowOpen:n,toggleChatWindow:m,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:s,toggleIsBotTyping:p,scrollToBottom:y,getIsChatBotVisible:h}},Yl=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{unreadCount:i,isScrolling:s}=Oe(),{chatBodyRef:A}=Te(),{scrollToBottom:a}=Ze(),[l,c]=ee(!1),u={color:(e=r.general)==null?void 0:e.primaryColor,borderColor:(t=r.general)==null?void 0:t.primaryColor,...o.chatMessagePromptHoveredStyle};return C("div",{className:"rcb-message-prompt-container "+(A.current&&((d=r.chatWindow)!=null&&d.showMessagePrompt)&&s&&i>0?"visible":"hidden"),children:C("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:{...o.chatMessagePromptStyle},onMouseDown:f=>{f.preventDefault(),a(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var d},Ca=st({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),oo=()=>rt(Ca),$l=({children:e})=>{const[t,n,r]=Je([]);return C(Ca.Provider,{value:{messages:t,setSyncedMessages:n,syncedMessagesRef:r},children:e})},Vl=({message:e,isNewSender:t})=>{var n,r,o,i,s,A;const{settings:a}=ae(),{styles:l}=ye(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?C(e.contentWrapper,{children:u}):u,f={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,p="rcb-user-message"+(!t&&(s=a.userBubble)!=null&&s.showAvatar?" rcb-user-message-offset":"");return C("div",{className:"rcb-user-message-container",children:[c?C("div",{style:f,className:`${p} ${h}`,children:d}):C(ce,{children:d}),m&&C("div",{style:{backgroundImage:`url("${(A=a.userBubble)==null?void 0:A.avatar}")`},className:"rcb-message-user-avatar"})]})},Kl=({message:e,isNewSender:t})=>{var n,r,o,i,s,A;const{settings:a}=ae(),{styles:l}=ye(),c=typeof e.content=="string",u=e.content,d=e.contentWrapper?C(e.contentWrapper,{children:u}):u,f={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,p="rcb-bot-message"+(!t&&(s=a.botBubble)!=null&&s.showAvatar?" rcb-bot-message-offset":"");return C("div",{className:"rcb-bot-message-container",children:[m&&C("div",{style:{backgroundImage:`url("${(A=a.botBubble)==null?void 0:A.avatar}")`},className:"rcb-message-bot-avatar"}),c?C("div",{style:f,className:`${p} ${h}`,children:d}):C(ce,{children:d})]})},Xl=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),i=(e=r.botBubble)!=null&&e.animate?"rcb-bot-message-entry":"";return C("div",{className:"rcb-bot-message-container",children:[((t=r.botBubble)==null?void 0:t.showAvatar)&&C("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),C("div",{onMouseDown:s=>{s.preventDefault()},className:`rcb-bot-message ${i}`,children:C("div",{className:"rcb-typing-indicator",style:{...o==null?void 0:o.rcbTypingIndicatorContainerStyle},children:[C("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),C("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}}),C("span",{className:"rcb-dot",style:{...o==null?void 0:o.rcbTypingIndicatorDotStyle}})]})})]})},Jl=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{messages:i}=oo(),{scrollToBottom:s}=Ze(),{isBotTyping:A,syncedIsScrollingRef:a}=Oe(),{chatBodyRef:l}=Te(),c={...o==null?void 0:o.bodyStyle,scrollbarWidth:(e=r.chatWindow)!=null&&e.showScrollbar?"auto":"none"};return X(()=>{a.current||s()},[(t=l.current)==null?void 0:t.scrollHeight]),C("div",{style:c,className:"rcb-chat-body-container",ref:l,children:[i.map((u,d)=>{const f=(h=>h===0||i[h].sender!==i[h-1].sender)(d);return u.sender.toUpperCase()==="USER"?C(Vl,{message:u,isNewSender:f},d):u.sender.toUpperCase()==="BOT"?C(Kl,{message:u,isNewSender:f},d):C("div",{children:u.content},d)}),A&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&C(Xl,{}),C(Yl,{})]})},Zl=({checkboxes:e,checkedItems:t,path:n})=>{var r,o,i,s,A,a,l,c,u,d,f;const{settings:h}=ae(),{styles:m}=ye(),{paths:p}=xn(),{handleSubmitText:v}=on(),[y,g]=ee(new Set),[E,P]=ee(!1),_={cursor:E?`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},k={cursor:E||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},B={cursor:E?`url("${(l=h.general)==null?void 0:l.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...m.botCheckMarkStyle},T={cursor:E?`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 X(()=>{p.length>0&&p[p.length-1]!==n&&P(!e.reusable)},[p]),C("div",{className:"rcb-checkbox-container "+((f=h.botBubble)!=null&&f.showAvatar?"rcb-checkbox-offset":""),children:[e.items.map(D=>C("div",{onMouseDown:O=>{O.preventDefault(),(S=>{E||g(N=>{const R=new Set(N);if(R.has(S))t.delete(S),R.delete(S);else{if(y.size==e.max)return N;t.add(S),R.add(S)}return R})})(D)},style:_,className:"rcb-checkbox-row-container",children:C("div",{className:"rcb-checkbox-row",children:[C("div",{style:y.has(D)?T:B,className:"rcb-checkbox-mark"}),C("div",{className:"rcb-checkbox-label",children:D})]})},D)),C("div",{style:k,className:"rcb-checkbox-next-button",onMouseDown:D=>{var O;if(D.preventDefault(),E||y.size<e.min)return;const S=Array.from(t).join(", ");let N;P(!e.reusable),N=e.sendOutput!=null?e.sendOutput:((O=h.chatInput)==null?void 0:O.sendCheckboxOutput)??!0,v(S,N)}})]})},ec=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=C(Zl,{checkboxes:r,checkedItems:o,path:i});await t.injectMessage(s)},tc=async(e,t)=>{const n=e.function;if(!n)return;const r=n(t);return r instanceof Promise?await r:r},nc=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))},rc=({options:e,path:t})=>{var n,r,o,i,s,A;const{settings:a}=ae(),{styles:l}=ye(),{paths:c}=xn(),{handleSubmitText:u}=on(),[d,f]=ee([]),[h,m]=ee(!1),p={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 X(()=>{c.length>0&&c[c.length-1]!==t&&m(!e.reusable)},[c]),C("div",{className:"rcb-options-container "+((A=a.botBubble)!=null&&A.showAvatar?"rcb-options-offset":""),children:e.items.map((y,g)=>{const E=d[g]&&!h;return C("div",{className:"rcb-options",style:E?v:p,onMouseEnter:()=>(P=>{f(_=>{const k=[..._];return k[P]=!0,k})})(g),onMouseLeave:()=>(P=>{f(_=>{const k=[..._];return k[P]=!1,k})})(g),onMouseDown:P=>{var _;if(P.preventDefault(),h)return;let k;m(!e.reusable),k=e.sendOutput!=null?e.sendOutput:((_=a.chatInput)==null?void 0:_.sendOptionOutput)??!0,u(y,k)},children:y},y)})})},oc=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=C(rc,{options:r,path:o});await t.injectMessage(i)},ic=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)}},ac=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 Sa(A,t)},i.duration);i.interruptable&&(n.current=s)},Ac=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)},ka=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)},Sa=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 tc(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)},sc=()=>{var e;const{settings:t}=ae(),{styles:n}=ye();return C("div",{className:"rcb-line-break-container",children:C("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})})},lc=()=>{var e;const{settings:t}=ae(),{styles:n}=ye(),r={borderTop:`4px solid ${(e=t.general)==null?void 0:e.primaryColor}`,...n.loadingSpinnerStyle};return C("div",{className:"rcb-spinner-container",children:C("div",{style:r,className:"rcb-spinner"})})},or=()=>{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")}},Qt=(e,t)=>({id:or(),content:e,sender:t,type:typeof e=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let Mt,Da=!1,ir="rcb-history",ar=30,Ba=!1,Ar=[];const In=()=>Ar,io=e=>{xa(e),Ar=e},xa=e=>{Mt&&Mt.setItem(ir,JSON.stringify(e))},ao=e=>{var t,n,r,o,i;Mt=((n=(t=e.chatHistory)==null?void 0:t.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,ir=(r=e.chatHistory)==null?void 0:r.storageKey,ar=(o=e.chatHistory)==null?void 0:o.maxEntries,Ba=(i=e.chatHistory)==null?void 0:i.disabled,Ar=(s=>{if(s!=null)try{return JSON.parse(s)}catch{return[]}return[]})(Mt.getItem(ir))},cc=e=>zt(e.content)?structuredClone({id:e.id,content:xl.renderToString(e.content),type:e.type,sender:e.sender.toUpperCase(),timestamp:e.timestamp,tags:e.tags}):e,Ia=(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()!==""),f={};d.forEach(h=>{const[m,p]=h.split(":").map(y=>y.trim()),v=m.replace(/-([a-z])/g,(y,g)=>g.toUpperCase());f[v]=p}),l[u]=f}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=uc(l,a)),a=dc(l,a,t,n),a=fc(l,a,t,n),a=pc(l,a,t,n),a=hc(l,a,t,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(A))return se(A,{key:i,...a});{const l=Ia(o.innerHTML,t,n);return se(A,{key:i,...a},...l)}}})},uc=(e,t)=>((e.contains("rcb-options-container")||e.contains("rcb-checkbox-container"))&&(t.className=`${e.toString()} rcb-options-offset`),t),dc=(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},fc=(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},pc=(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},hc=(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},Ao=()=>{const{settings:e}=ae(),{notificationsToggledOn:t,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:s}=Oe(),{audioBufferRef:A,audioContextRef:a,gainNodeRef:l}=Te(),{dispatchRcbEvent:c}=lt(),u=W(async()=>{var f,h;const m=(f=e.notification)==null?void 0:f.sound;a.current=new AudioContext;const p=a.current.createGain();let v;if(p.gain.value=((h=e.notification)==null?void 0:h.volume)??.2,l.current=p,m!=null&&m.startsWith("data:audio")){const y=atob(m.split(",")[1]),g=new ArrayBuffer(y.length),E=new Uint8Array(g);for(let P=0;P<y.length;P++)E[P]=y.charCodeAt(P);v=g}else v=await(await fetch(m)).arrayBuffer();A.current=await a.current.decodeAudioData(v)},[e.notification]),d=W(()=>{var f;if((f=e.notification)!=null&&f.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 f=>{var h;f!==s.current&&((h=e.event)!=null&&h.rcbToggleNotifications&&(await c(z.TOGGLE_NOTIFICATIONS,{currState:s.current,newState:!s.current})).defaultPrevented||n(m=>!m))},[s]),playNotificationSound:d,setUpNotifications:u}},gc=(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 f of a){const h=window.speechSynthesis.getVoices().find(m=>m.name===f);if(h){u.voice=h,window.speechSynthesis.speak(u),d=!0;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)},Ta=()=>{const{settings:e}=ae(),{audioToggledOn:t,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=Oe(),{dispatchRcbEvent:o}=lt(),i=W(async A=>{var a;A!==r.current&&((a=e.event)!=null&&a.rcbToggleAudio&&(await o(z.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(z.START_SPEAK_AUDIO,{textToRead:c});if(u.defaultPrevented)return;c=u.data.textToRead}gc(e,c)},[e,r]);return{audioToggledOn:t,speakAudio:s,toggleAudio:i}},Wt=()=>{var e,t,n;const{settings:r}=ae(),{messages:o,setSyncedMessages:i,syncedMessagesRef:s}=oo(),{setSyncedIsBotTyping:A,setUnreadCount:a,syncedIsScrollingRef:l,syncedIsChatWindowOpenRef:c}=Oe(),{streamMessageMap:u,chatBodyRef:d,paramsInputRef:f}=Te(),{scrollToBottom:h,getIsChatBotVisible:m}=Ze(),{dispatchRcbEvent:p}=lt(),{speakAudio:v}=Ta(),{playNotificationSound:y}=Ao(),g=W(async S=>{var N,R;if((N=r.event)!=null&&N.rcbSaveChatHistory){const L=await p(z.SAVE_CHAT_HISTORY,{messages:S});if(L.defaultPrevented)return;S=((R=L.data)==null?void 0:R.messages)??S}await(async L=>{if(Ba||!Mt)return;const U=[];for(let Q=L.length-1;Q>=0;Q--){const w=L[Q];if(w.sender.toUpperCase()!=="SYSTEM"&&(w.content!==""&&U.unshift(w),U.length===ar))break}let x=U.map(cc);if(!Da&&x.length<ar){const Q=ar-x.length;x=[...Ar.slice(-Q),...x]}xa(x)})(S)},[p,(e=r.event)==null?void 0:e.rcbSaveChatHistory]),E=W((S,N=!1)=>{var R,L;g(S);let U=!0;const x=S[S.length-1];if(!x)return;const Q=x.sender.toUpperCase();Q==="USER"&&(U=!1),(R=r.general)!=null&&R.embedded&&m()&&(U=!1),(c.current&&!l.current||N)&&(U=!1),U&&y(),!N&&(Q!=="USER"&&(L=r.chatWindow)!=null&&L.autoJumpToBottom||Q==="USER"||!l.current)&&setTimeout(()=>h(),1)},[r,d,c,l,y,h,m]),P=W(async(S,N="BOT",R=null)=>{var L,U,x,Q,w;if(typeof S!="string")throw new Error("Content must be of type string to simulate stream.");N=N.toUpperCase();let V=Qt(S,N);if((L=r.event)!=null&&L.rcbStartSimulateStreamMessage){const ue=await p(z.START_SIMULATE_STREAM_MESSAGE,{message:V});if(ue.defaultPrevented)return null;R=ue.data.simulateStreamChunker||R,V=ue.data.message}A(!1);let b=30;b=N==="BOT"?(U=r.botBubble)==null?void 0:U.streamSpeed:(x=r.userBubble)==null?void 0:x.streamSpeed;const F={...V,content:""};i(ue=>[...ue,F]),E(s.current);let J=V.content;R&&(J=R(J));let K=0;const oe=J.length;V.sender.toUpperCase()==="BOT"&&(c.current||(Q=r.general)!=null&&Q.embedded)&&typeof V.content=="string"&&V.content.trim()!==""&&v(V.content);const ve=new Promise(ue=>{const Ve=setInterval(()=>{if(K>=oe)return clearInterval(Ve),void ue();i(Me=>{const Re=[...Me];for(let At=Re.length-1;At>=0;At--)if(Re[At].id===F.id){const j=J[K];j&&(F.content+=j,Re[At]=F),K++;break}return Re})},b)});return(l.current||!c.current)&&a(ue=>ue+1),await ve,g(s.current),(w=r.event)!=null&&w.rcbStopSimulateStreamMessage&&await p(z.STOP_SIMULATE_STREAM_MESSAGE,{message:V}),N==="USER"&&(f.current=S),V},[r,p,E,s,f,A,a,c,v]),_=W(async(S,N="BOT")=>{var R,L,U;N=N.toUpperCase();let x=Qt(S,N);if((R=r.event)!=null&&R.rcbPreInjectMessage){const Q=await p(z.PRE_INJECT_MESSAGE,{message:x});if(Q.defaultPrevented)return null;x=Q.data.message}return x.sender.toUpperCase()==="BOT"&&(c.current||(L=r.general)!=null&&L.embedded)&&typeof x.content=="string"&&x.content.trim()!==""&&v(x.content),(l.current||!c.current)&&a(Q=>Q+1),(U=r.event)!=null&&U.rcbPostInjectMessage&&await p(z.POST_INJECT_MESSAGE,{message:x}),i(Q=>[...Q,x]),E(s.current),N==="USER"&&typeof S=="string"&&(f.current=S),x},[r,p,E,f,s,c,v,a]),k=W(async S=>{var N;let R=s.current.find(x=>x.id===S),L=null,U=!1;return R||(L=In(),R=L.find(x=>x.id===S),R&&(U=!0)),!R||(N=r.event)!=null&&N.rcbRemoveMessage&&(await p(z.REMOVE_MESSAGE,{message:R})).defaultPrevented?null:U?(L&&io(L.filter(x=>x.id!==S)),R):(i(x=>x.filter(Q=>Q.id!==S)),E(s.current),a(x=>Math.max(x-1,0)),R)},[p,(t=r.event)==null?void 0:t.rcbRemoveMessage,E,s,a,In,io]),B=W(async(S,N="BOT")=>{var R,L;if(N=N.toUpperCase(),!u.current.has(N)){const x=Qt(S,N);return(R=r.event)!=null&&R.rcbStartStreamMessage&&(await p(z.START_STREAM_MESSAGE,{message:x})).defaultPrevented?null:(A(!1),i(Q=>[...Q,x]),E(s.current),u.current.set(N,x.id),(l.current||!c.current)&&a(Q=>Q+1),x)}const U={...Qt(S,N),id:u.current.get(N)};return(L=r.event)!=null&&L.rcbChunkStreamMessage&&(await p(z.CHUNK_STREAM_MESSAGE,{message:U})).defaultPrevented?null:(i(x=>x.map(Q=>Q.id===U.id?U:Q)),E(s.current,!0),U)},[p,r.event,E,s,A,a,u]),T=W(async(S="BOT")=>{var N;if(S=S.toUpperCase(),!u.current.has(S))return!0;const R=u.current.get(S);let L;for(let U=0;U<3;U++){const x=s.current.find(Q=>Q.id===R);x&&(L=x),await new Promise(Q=>setTimeout(Q,20))}return((N=r.event)==null||!N.rcbStopStreamMessage||!(await p(z.STOP_STREAM_MESSAGE,{message:L})).defaultPrevented)&&(u.current.delete(S),g(s.current),S==="USER"&&typeof(L==null?void 0:L.content)=="string"&&(f.current=L.content),!0)},[p,(n=r.event)==null?void 0:n.rcbStopStreamMessage,u,f]),D=W(S=>{const N=typeof S=="function"?S(s.current):S;i(N),E(N)},[E,s]),O=W((S,N,R=0)=>{var L;const U=s.current,x=S?S.toUpperCase():null,Q=[];let w=R;for(let V=U.length-1;V>=0;V--){const b=U[V];if(!x||((L=b==null?void 0:b.sender)==null?void 0:L.toUpperCase())===x){if(w>0){w--;continue}if(Q.push(b),N!==void 0&&Q.length===N)break}}return Q.length>0?Q:null},[s]);return{simulateStreamMessage:P,injectMessage:_,removeMessage:k,streamMessage:B,endStreamMessage:T,replaceMessages:D,getMessages:O,messages:o}};let so,pt,sr,Ot=!1,ht=null;const lo=()=>{if(!so){const e=window.SpeechRecognition||window.webkitSpeechRecognition;so=e!=null?new e:null}return so},mc=(e,t,n,r,o,i)=>{var s,A,a;const l=lo();if(!l)return;if(!Ot)try{Ot=!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 f,h;clearTimeout(pt),pt=null,clearTimeout(sr);const m=d.results[d.results.length-1][0].transcript;if(i.current){const p=(f=e.chatInput)==null?void 0:f.characterLimit,v=i.current.value+m;p!=null&&p>=0&&v.length>p?r(v.slice(0,p)):r(v),o(i.current.value.length)}c&&(pt=setTimeout(async()=>await uo(t,i),c)),(h=e.voice)!=null&&h.autoSendDisabled||(sr=setTimeout(n,u))},l.onend=()=>{Ot?(l.start(),!pt&&c&&(pt=setTimeout(async()=>await uo(t,i),c))):(clearTimeout(pt),pt=null,clearTimeout(sr))},c&&(pt=setTimeout(async()=>await uo(t,i),c))},yc=(e,t)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(ht=new MediaRecorder(n),!Ot)try{Ot=!0,ht.start()}catch{}ht.ondataavailable=r=>{t.current&&t.current.push(r.data)},ht.onstop=()=>{e(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},co=()=>{const e=lo();e&&(Ot=!1,e&&e.stop(),ht&&ht.state!=="inactive"&&(ht.stop(),ht=null),clearTimeout(pt),pt=null,clearTimeout(sr))},uo=async(e,t)=>{var n;(n=t.current)!=null&&n.disabled||await e(),co()},fo=()=>{const{settings:e}=ae(),{voiceToggledOn:t,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=Oe(),{dispatchRcbEvent:o}=lt(),i=W(async A=>{var a;A!==r.current&&((a=e.event)!=null&&a.rcbToggleVoice&&(await o(z.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(l=>!l))},[r]),s=W(A=>{((a,l)=>{var c,u,d;const f=lo();(c=l.voice)!=null&&c.disabled||(u=l.chatInput)==null||!u.blockSpam||!f||(a&&!Ot?(Ot=!0,(d=l.voice)!=null&&d.sendAsAudio?ht==null||ht.start():f.start()):a||co())})(A,e)},[e]);return{voiceToggledOn:t,toggleVoice:i,syncVoice:s}},qt=()=>{var e;const{settings:t}=ae(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:A,syncedTextAreaDisabledRef:a,syncedTextAreaSensitiveModeRef:l}=Oe(),{inputRef:c,chatBodyRef:u,prevInputRef:d}=Te(),{dispatchRcbEvent:f}=lt(),{getIsChatBotVisible:h}=Ze(),m=W(async _=>{var k,B,T;if(a.current&&c.current)c.current.value="";else if(c.current&&d.current!==null){const D=(k=t.chatInput)==null?void 0:k.characterLimit,O=(B=t.chatInput)!=null&&B.allowNewline?_:_.replace(/\n/g," ");if(D!=null&&D>=0&&O.length>D?c.current.value=O.slice(0,D):c.current.value=O,(T=t.event)!=null&&T.rcbTextAreaChangeValue&&(await f(z.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,f]),p=W(_=>{var k;(k=c.current)!=null&&k.disabled||setTimeout(()=>{var B,T,D;(B=t.general)!=null&&B.embedded?h()&&((T=c.current)==null||T.focus()):_!=="start"&&((D=c.current)==null||D.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:"",[]),E=W(_=>{_!==a.current&&i(k=>!k)},[a]),P=W(_=>{_!==l.current&&A(k=>!k)},[l]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:s,setSyncedTextAreaSensitiveMode:A,inputLength:n,setInputLength:r,getTextAreaValue:g,setTextAreaValue:m,updateTextAreaFocus:p,focusTextArea:v,blurTextArea:y,toggleTextAreaDisabled:E,toggleTextAreaSensitiveMode:P}},Qa=st({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),Ma=()=>rt(Qa),vc=({children:e})=>{const[t,n,r]=Je([]);return C(Qa.Provider,{value:{toasts:t,setSyncedToasts:n,syncedToastsRef:r},children:e})},rn=()=>{const{settings:e}=ae(),{toasts:t,setSyncedToasts:n,syncedToastsRef:r}=Ma(),{dispatchRcbEvent:o}=lt(),i=W(async(a,l)=>{var c,u,d,f;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=or();let p={id:h,content:a,timeout:l};if((d=e.event)!=null&&d.rcbShowToast){const v=await o(z.SHOW_TOAST,{toast:p});if(v.defaultPrevented)return null;p=v.data.toast}return n(v=>[...v.slice(1),p]),h}h=or();let m={id:h,content:a,timeout:l};if((f=e.event)!=null&&f.rcbShowToast){const p=await o(z.SHOW_TOAST,{toast:m});if(p.defaultPrevented)return null;m=p.data.toast}return n(p=>[...p,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(z.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}},lr=()=>{var e,t,n,r,o;const{settings:i}=ae(),{paths:s,setSyncedPaths:A,syncedPathsRef:a}=xn(),{flowRef:l,streamMessageMap:c,paramsInputRef:u,keepVoiceOnRef:d,timeoutIdRef:f}=Te(),{setSyncedIsBotTyping:h,setSyncedTextAreaDisabled:m,setSyncedTextAreaSensitiveMode:p,blockAllowsAttachment:v,setBlockAllowsAttachment:y}=Oe(),{dispatchRcbEvent:g}=lt(),{endStreamMessage:E,injectMessage:P,removeMessage:_,simulateStreamMessage:k,streamMessage:B}=Wt(),{showToast:T,dismissToast:D}=rn(),{toggleChatWindow:O}=Ze(),{updateTextAreaFocus:S,setTextAreaValue:N}=qt(),{syncVoice:R}=fo(),L=W(async b=>{var F;if((F=i.event)!=null&&F.rcbPostProcessBlock){const J=await g(z.POST_PROCESS_BLOCK,{block:b});if(J.defaultPrevented)return null;b=J.data.block}return b},[(e=i.event)==null?void 0:e.rcbPostProcessBlock,g]),U=W(async(b,F)=>{var J,K,oe,ve;if(!b)return;let ue=l.current[b];if(!ue)return void h(!1);if((J=i.event)!=null&&J.rcbPreProcessBlock){const Me=await g(z.PRE_PROCESS_BLOCK,{block:ue});if(Me.defaultPrevented)return;ue=Me.data.block}h(!0),(K=i.chatInput)!=null&&K.blockSpam&&m(!0),p(!1);const Ve={prevPath:F,currPath:b,goToPath:w,setTextAreaValue:N,userInput:u.current,endStreamMessage:E,injectMessage:P,removeMessage:_,simulateStreamMessage:k,streamMessage:B,toggleChatWindow:O,showToast:T,dismissToast:D};await(async(Me,Re,At,j,q,he,Ae)=>{if(!Me)throw new Error("Block is not valid.");for(const Ce of Object.keys(Me))switch(Ce){case"message":await nc(Me,Re,At);break;case"options":await oc(Me,Re);break;case"checkboxes":await ec(Me,Re);break;case"component":await ic(Me,Re);break;case"chatDisabled":await Ac(Me,Re,q);break;case"isSensitive":await ka(Me,Re,he);break;case"transition":await ac(Me,Re,j,Ae)}})(ue,Ve,((oe=i.botBubble)==null?void 0:oe.simulateStream)??!1,f,m,p,L),h(!1),"chatDisabled"in ue||m((ve=i.chatInput)==null?void 0:ve.disabled),"isSensitive"in ue||p(!1),y(typeof ue.file=="function"),S(b),R(d.current&&!ue.chatDisabled),b!==F&&c.current.clear()},[l,S,R,(t=i.botBubble)==null?void 0:t.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,u,E,P,_,k,B,O,T,D,d,c]),x=W(()=>a.current.length>0?a.current.at(-1)??null:null,[]),Q=W(()=>a.current.length>1?a.current.at(-2)??null:null,[]),w=W(async b=>{var F;const J=x(),K=Q();return((F=i.event)==null||!F.rcbChangePath||!(await g(z.CHANGE_PATH,{currPath:J,prevPath:K,nextPath:b})).defaultPrevented)&&(A(oe=>[...oe,b]),await U(b,J),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,U,g]),V=W(b=>{const F=typeof b=="function"?b(a.current):b;A(F)},[a]);return{getCurrPath:x,getPrevPath:Q,goToPath:w,blockAllowsAttachment:v,setBlockAllowsAttachment:y,paths:s,replacePaths:V,firePostProcessBlockEvent:L}},on=()=>{var e,t,n,r;const{settings:o}=ae(),{endStreamMessage:i,injectMessage:s,removeMessage:A,simulateStreamMessage:a,streamMessage:l}=Wt(),{syncedPathsRef:c}=xn(),{getCurrPath:u,getPrevPath:d,goToPath:f,firePostProcessBlockEvent:h}=lr(),{setSyncedTextAreaSensitiveMode:m,setSyncedTextAreaDisabled:p,setSyncedIsBotTyping:v,setBlockAllowsAttachment:y,setInputLength:g,syncedVoiceToggledOnRef:E,syncedTextAreaSensitiveModeRef:P}=Oe(),{flowRef:_,inputRef:k,keepVoiceOnRef:B,paramsInputRef:T,timeoutIdRef:D}=Te(),{showToast:O,dismissToast:S}=rn(),{dispatchRcbEvent:N}=lt(),{syncVoice:R}=fo(),{setTextAreaValue:L}=qt(),{toggleChatWindow:U}=Ze(),x=W(async w=>{var V,b,F,J,K,oe;const ve=u();if(ve&&_.current[ve]){if(P.current){if((V=o==null?void 0:o.sensitiveInput)!=null&&V.hideInUserBubble)return;if((b=o==null?void 0:o.sensitiveInput)!=null&&b.maskInUserBubble)return void((F=o.userBubble)!=null&&F.simulateStream?await a("*".repeat(((J=o.sensitiveInput)==null?void 0:J.asterisksCount)??10),"USER"):await s("*".repeat(((K=o.sensitiveInput)==null?void 0:K.asterisksCount)??10),"USER"))}(oe=o.userBubble)!=null&&oe.simulateStream?await a(w,"USER"):await s(w,"USER")}},[_,u,o,s,a,P]),Q=W(async(w,V=!0)=>{var b,F;if((w=w.trim())==="")return;V&&await x(w),D.current&&clearTimeout(D.current),k.current&&(L(""),g(0));const J=u();if(!J)return;let K=_.current[J];const oe=await h(K);oe&&((b=o.chatInput)!=null&&b.blockSpam&&p(!0),B.current=E.current,R(!1),setTimeout(()=>{v(!0)},400),m(!1),setTimeout(async()=>{var ve;const ue={prevPath:d(),currPath:u(),goToPath:f,setTextAreaValue:L,userInput:T.current,injectMessage:s,simulateStreamMessage:a,streamMessage:l,removeMessage:A,endStreamMessage:i,toggleChatWindow:U,showToast:O,dismissToast:S},Ve=c.current.length;await Sa(oe,ue),c.current.length===Ve&&(p("chatDisabled"in K?!!K.chatDisabled:!((ve=o.chatInput)==null||!ve.disabled)),ka(K,ue,m),y(typeof K.file=="function"),R(B.current),v(!1))},(F=o.chatInput)==null?void 0:F.botDelay))},[D,(e=o.chatInput)==null?void 0:e.blockSpam,(t=o.chatInput)==null?void 0:t.botDelay,(n=o.chatInput)==null?void 0:n.disabled,B,E,R,x,d,u,f,s,a,l,A,i,U,O,S,_]);return{handleSubmitText:W(async(w,V=!0)=>{var b,F;w=w??((b=k.current)==null?void 0:b.value),!((F=o.event)!=null&&F.rcbUserSubmitText&&(await N(z.USER_SUBMIT_TEXT,{inputText:w,sendInChat:V})).defaultPrevented||!u())&&Q(w,V)},[N,u,Q,k,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},cr=()=>{var e;const{settings:t}=ae();return Ie(()=>{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])},wc=({buttons:e})=>{var t,n,r,o,i,s,A,a,l,c,u;const d=cr(),{settings:f}=ae(),{styles:h}=ye(),{textAreaDisabled:m,textAreaSensitiveMode:p,inputLength:v,hasFlowStarted:y,setHasFlowStarted:g,setInputLength:E}=Oe(),{inputRef:P}=Te(),[_,k]=ee(!1),[B,T]=ee(!1),{handleSubmitText:D}=on(),{setTextAreaValue:O}=qt(),S={boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle},N={outline:m?"":"none",boxShadow:m?"":`0 0 5px ${(t=f.general)==null?void 0:t.primaryColor}`,boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaFocusedStyle},R={cursor:`url("${(n=f.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:d?"content-box":"border-box",...h.chatInputAreaStyle,...h.chatInputAreaDisabledStyle},L={color:"#989898",...h.characterLimitStyle},U={color:"#ff0000",...h.characterLimitReachedStyle},x=m?(r=f.chatInput)==null?void 0:r.disabledPlaceholderText:(o=f.chatInput)==null?void 0:o.enabledPlaceholderText,Q=()=>{m||k(!0)},w=()=>{k(!1)},V=()=>{T(!0)},b=()=>{T(!1)},F=async K=>{var oe;if(!B&&K.key==="Enter"){if(K.shiftKey)return void((oe=f.chatInput)!=null&&oe.allowNewline||K.preventDefault());K.preventDefault(),await D()}},J=K=>{P.current&&(O(K.target.value),E(P.current.value.length))};return C("div",{"aria-label":((i=f.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:K=>{var oe;K.stopPropagation(),!y&&((oe=f.general)==null?void 0:oe.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&g(!0)},style:{...h.chatInputContainerStyle},className:"rcb-chat-input",children:[p&&(s=f.sensitiveInput)!=null&&s.maskInTextArea?C("input",{ref:P,type:"password",className:"rcb-chat-input-textarea",style:m?R:_?N:S,placeholder:x,onChange:J,onKeyDown:F,onFocus:Q,onBlur:w,onCompositionStart:V,onCompositionEnd:b}):C("textarea",{ref:P,style:m?R:_?N:S,rows:1,className:"rcb-chat-input-textarea",placeholder:x,onChange:J,onKeyDown:F,onFocus:Q,onBlur:w,onCompositionStart:V,onCompositionEnd:b}),C(ce,{children:[e==null?void 0:e.map((K,oe)=>C(ce,{children:K},oe)),((A=f.chatInput)==null?void 0:A.showCharacterCount)&&((a=f.chatInput)==null?void 0:a.characterLimit)!=null&&((l=f.chatInput)==null?void 0:l.characterLimit)>0&&C("div",{className:"rcb-chat-input-char-counter",style:v>=((c=f.chatInput)==null?void 0:c.characterLimit)?U:L,children:[v,"/",(u=f.chatInput)==null?void 0:u.characterLimit]})]})]})},bc=({buttons:e})=>{var t;const{settings:n}=ae(),{styles:r}=ye();return C("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[C("div",{className:"rcb-chat-footer",children:e==null?void 0:e.map((o,i)=>C(ce,{children:o},i))}),C("span",{children:(t=n.footer)==null?void 0:t.text})]})},Ec=()=>{var e,t,n,r,o,i,s;const{settings:A}=ae(),{styles:a}=ye(),{unreadCount:l}=Oe(),{isChatWindowOpen:c,toggleChatWindow:u}=Ze(),[d,f]=ee(!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)",...h,...a.chatButtonHoveredStyle},p={backgroundImage:`url(${(n=A.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...a.chatIconStyle};return C(ce,{children:!((r=A.general)!=null&&r.embedded)&&C("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:()=>{f(!0)},onMouseLeave:()=>{f(!1)},onClick:()=>u(!0),children:[(()=>{var v;const y=(v=A.chatButton)==null?void 0:v.icon;return y&&typeof y!="string"?y&&C("span",{className:"rcb-toggle-icon",children:C(y,{style:p})}):C("span",{className:"rcb-toggle-icon",style:p})})(),!((i=A.notification)!=null&&i.disabled)&&((s=A.notification)==null?void 0:s.showCount)&&C("span",{style:{...a.notificationBadgeStyle},className:"rcb-badge",children:l})]})})},_c=()=>{var e,t,n,r,o,i;const s=cr(),{settings:A}=ae(),{styles:a}=ye(),{chatBodyRef:l}=Te(),{isChatWindowOpen:c,toggleChatWindow:u}=Ze(),[d,f]=ee(!1),[h,m]=ee(!1),[p,v]=ee(0);X(()=>{var E,P,_;const k=(E=A.tooltip)==null?void 0:E.mode;if(k==="ALWAYS")if(s){let B;B=c?(((P=l.current)==null?void 0:P.offsetWidth)??375)-(typeof((_=a.chatButtonStyle)==null?void 0:_.width)=="number"?a.chatButtonStyle.width:75):0,v(B),f(!0)}else f(!c);else k==="NEVER"?f(!1):k==="START"?h?f(!1):(m(!0),f(!0)):k==="CLOSE"&&f(!c)},[c,s,h,(e=a.chatButtonStyle)==null?void 0:e.width,(t=A.tooltip)==null?void 0:t.mode]);const y={transform:`translateX(-${p}px)`,right:(((n=a.chatButtonStyle)==null?void 0:n.width)??75)+40,bottom:30,backgroundColor:(r=A.general)==null?void 0:r.secondaryColor,color:"#fff",...a.tooltipStyle},g={borderColor:`transparent transparent transparent ${y.backgroundColor}`};return C(ce,{children:!((o=A.general)!=null&&o.embedded)&&C("div",{"data-testid":"chat-tooltip",style:y,className:"rcb-chat-tooltip "+(d?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>u(!0),children:[C("span",{children:(i=A.tooltip)==null?void 0:i.text}),C("span",{className:"rcb-chat-tooltip-tail",style:g})]})})},Pc=({id:e,content:t,timeout:n})=>{var r,o;const{settings:i}=ae(),{styles:s}=ye(),[A]=ee({toastPromptStyle:{...s.toastPromptStyle},toastPromptHoveredStyle:{...s.toastPromptHoveredStyle}}),{dismissToast:a}=rn(),[l,c]=ee(!1),u={color:(r=i.general)==null?void 0:r.primaryColor,borderColor:(o=i.general)==null?void 0:o.primaryColor,...A.toastPromptHoveredStyle};return X(()=>{if(n){const d=setTimeout(()=>{a(e)},n);return()=>clearTimeout(d)}},[e,a,n]),typeof t=="string"?C("div",{onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},style:l?u:A.toastPromptStyle,onMouseDown:async d=>{var f;(f=i.toast)!=null&&f.dismissOnClick&&(d.preventDefault(),await a(e))},className:"rcb-toast-prompt",children:t}):C(ce,{children:t})},Cc=()=>{var e,t,n,r,o,i,s,A,a,l,c,u;const{styles:d}=ye(),{toasts:f}=Ma(),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 C("div",{className:"rcb-toast-prompt-container",style:h,children:f.map(m=>C(Pc,{id:m.id,content:m.content,timeout:m.timeout},m.id))})},Oa=({file:e,fileType:t,fileUrl:n})=>{var r,o,i;const{settings:s}=ae(),{styles:A}=ye(),a={backgroundColor:(r=s.general)==null?void 0:r.primaryColor,maxWidth:(o=s.userBubble)!=null&&o.showAvatar?"65%":"70%",...A.mediaDisplayContainerStyle};return C(ce,{children:n?C(ce,{children:[t==="image"&&n&&C("div",{style:a,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:C("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),t==="video"&&n&&C("div",{style:a,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:C("video",{controls:!0,className:"rcb-media-display-video",children:[C("source",{src:n,type:e.type}),"Your browser does not support the video tag."]})}),t==="audio"&&n&&C("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:[C("source",{src:n,type:e.type}),"Your browser does not support the audio tag."]})]}):C(ce,{})})},Na=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}}},kc=()=>{var e,t,n,r,o,i;const{settings:s}=ae(),{styles:A}=ye(),{injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d}=Wt(),{getCurrPath:f,getPrevPath:h,goToPath:m,blockAllowsAttachment:p}=lr(),{flowRef:v,inputRef:y}=Te(),g=v.current,{showToast:E,dismissToast:P}=rn(),{dispatchRcbEvent:_}=lt(),{toggleChatWindow:k}=Ze(),{setTextAreaValue:B}=qt(),{handleSubmitText:T}=on(),D={cursor:`url("${(e=s.general)==null?void 0:e.actionDisabledIcon}"), auto`,...A.fileAttachmentButtonStyle,...A.fileAttachmentButtonDisabledStyle},O={backgroundImage:`url(${(t=s.fileAttachment)==null?void 0:t.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle},S={backgroundImage:`url(${(n=s.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...A.fileAttachmentIconStyle,...A.fileAttachmentIconDisabledStyle};return C("label",{"aria-label":((r=s.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:p?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:p?{...A.fileAttachmentButtonStyle}:D,children:[C("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async N=>{var R,L,U,x;const Q=N.target.files;if(!Q)return;const w=Array.from(Q);if(N.target.value="",(R=s.event)!=null&&R.rcbUserUploadFile&&(await _(z.USER_UPLOAD_FILE,{files:w})).defaultPrevented)return;const V=f();if(!V)return;const b=g[V];if(!b)return;const F=b.file;if(F!=null){const J=[];for(let K=0;K<w.length;K++){if(J.push(w[K].name),(L=s.fileAttachment)==null||!L.showMediaDisplay)continue;const oe=await Na(w[K]);!oe.fileType||!oe.fileUrl||await a(C(Oa,{file:w[K],fileType:oe.fileType,fileUrl:oe.fileUrl}),"USER")}await T("๐ "+J.join(", "),(U=s.fileAttachment)==null?void 0:U.sendFileName),await F({userInput:(x=y.current)==null?void 0:x.value,prevPath:h(),currPath:f(),goToPath:m,setTextAreaValue:B,injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:u,endStreamMessage:d,toggleChatWindow:k,showToast:E,dismissToast:P,files:w})}},multiple:(o=s.fileAttachment)==null?void 0:o.multiple,accept:(i=s.fileAttachment)==null?void 0:i.accept,disabled:!p}),(()=>{var N,R;const L=p?(N=s.fileAttachment)==null?void 0:N.icon:(R=s.fileAttachment)==null?void 0:R.iconDisabled;return L&&typeof L!="string"?L&&C("span",{className:p?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:C(L,{style:p?O:S})}):C("span",{className:p?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:p?O:S})})()]})},Sc=()=>{var e,t,n,r,o,i;const{settings:s}=ae(),{styles:A}=ye(),{syncedTextAreaDisabledRef:a}=Oe(),{inputRef:l}=Te(),{textAreaDisabled:c,setTextAreaValue:u}=qt(),d=ne(null),f=ne(null),[h,m]=ee(!1),p={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 X(()=>{const g=P=>{const _=P.composedPath();d.current&&!_.includes(d.current)&&f.current&&!_.includes(f.current)&&m(!1)},E=()=>{(()=>{if(d.current&&f.current){const P=f.current.getBoundingClientRect(),_=d.current.offsetHeight,k=P.top-_-8;d.current.style.left=`${P.left}px`,d.current.style.top=`${k}px`}})()};return document.addEventListener("mousedown",g),window.addEventListener("resize",E),()=>{document.removeEventListener("mousedown",g),window.removeEventListener("resize",E)}},[]),C(ce,{children:[C("div",{"aria-label":((r=s.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:f,className:c?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:c?p:{...A.emojiButtonStyle},onMouseDown:g=>{g.preventDefault(),a.current?m(!1):m(E=>!E)},children:(()=>{var g,E;const P=c?(g=s.emoji)==null?void 0:g.iconDisabled:(E=s.emoji)==null?void 0:E.icon;return P&&typeof P!="string"?P&&C("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:C(P,{style:c?y:v})}):C("span",{className:c?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:c?y:v})})()}),h&&C("div",{className:"rcb-emoji-button-popup",ref:d,children:(i=(o=s.emoji)==null?void 0:o.list)==null?void 0:i.map((g,E)=>C("span",{className:"rcb-emoji",onMouseDown:P=>((_,k)=>{_.preventDefault(),l.current&&(u(l.current.value+k),setTimeout(()=>{const B=l.current;if(B){B.focus();const T=B.value.length;B.setSelectionRange(T,T)}},50)),m(!1)})(P,g),children:g},E))})]})},Dc=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{audioToggledOn:i,toggleAudio:s}=Ta(),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 C("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&&C("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:C(u,{style:i?A:a,"data-testid":"rcb-audio-icon-svg"})}):C("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?A:a})})()})},Bc=()=>{var e,t;const{settings:n}=ae(),{styles:r}=ye(),{toggleChatWindow:o}=Ze(),i={backgroundImage:`url(${(e=n.header)==null?void 0:e.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return C("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&&C("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:C(A,{style:i})}):C("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},xc=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{notificationsToggledOn:i,toggleNotifications:s}=(()=>{const{notificationsToggledOn:l,toggleNotifications:c,playNotificationSound:u}=Ao();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 C("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&&C("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:C(u,{style:i?A:a,"data-testid":"rcb-notification-icon-svg"})}):C("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?A:a})})()})},Ic=()=>{var e,t,n;const{settings:r}=ae(),{styles:o}=ye(),{injectMessage:i}=Wt(),{inputRef:s}=Te(),{voiceToggledOn:A,toggleVoice:a}=fo(),{setInputLength:l,setTextAreaValue:c,textAreaDisabled:u}=qt(),{handleSubmitText:d}=on(),f=ne([]),[h,m]=ee(!1);X(()=>{var E;(E=r.voice)!=null&&E.sendAsAudio?(g(),f.current=[]):d()},[h]),X(()=>{A?((E,P,_,k,B,T,D)=>{var O;(O=E.voice)!=null&&O.sendAsAudio?yc(_,T):mc(E,P,_,k,B,D)})(r,a,y,c,l,f,s):co()},[A]);const p={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(E=>!E)},g=async()=>{const E=new Blob(f.current,{type:"audio/wav"}),P=new File([E],"voice-input.wav",{type:"audio/wav"}),_=await Na(P);!_.fileType||!_.fileUrl||await i(C(Oa,{file:P,fileType:_.fileType,fileUrl:_.fileUrl}),"USER")};return C("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async E=>{E.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 E,P;const _=A?(E=r.voice)==null?void 0:E.icon:(P=r.voice)==null?void 0:P.iconDisabled;return _&&typeof _!="string"?_&&C("span",{className:"rcb-voice-icon "+(A&&!u?"on":""),children:C(_,{style:A&&!u?p:v})}):C("span",{className:"rcb-voice-icon"+(A&&!u?"-on":""),"data-testid":"rcb-voice-icon",style:A&&!u?p:v})})()})},Tc=()=>{var e,t,n,r,o,i,s,A;const{settings:a}=ae(),{styles:l}=ye(),{textAreaDisabled:c}=Oe(),[u,d]=ee(!1),{handleSubmitText:f}=on(),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},p={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 C("div",{"aria-label":((A=a.ariaLabel)==null?void 0:A.sendButton)??"send message",role:"button",onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},onMouseDown:async E=>{E==null||E.preventDefault(),!c&&await f()},style:c?m:u?p:h,className:"rcb-send-button",children:(()=>{var E;const P=(E=a.chatInput)==null?void 0:E.sendButtonIcon;return P&&typeof P!="string"?P&&C("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:C(P,{style:c?y:u?g:v})}):C("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:c?y:u?g:v})})()})},Qc=(e,t)=>{var n,r,o,i,s,A,a,l,c;const u={[De.AUDIO_BUTTON]:(n=e.audio)==null?void 0:n.disabled,[De.CLOSE_CHAT_BUTTON]:(r=e.general)==null?void 0:r.embedded,[De.EMOJI_PICKER_BUTTON]:(o=e.emoji)==null?void 0:o.disabled,[De.FILE_ATTACHMENT_BUTTON]:(i=e.fileAttachment)==null?void 0:i.disabled,[De.NOTIFICATION_BUTTON]:(s=e.notification)==null?void 0:s.disabled,[De.SEND_MESSAGE_BUTTON]:!1,[De.VOICE_MESSAGE_BUTTON]:(A=e.voice)==null?void 0:A.disabled},d={},f=h=>h?h.map(m=>{if(typeof m=="string"){if((p=>Object.values(De).includes(p))(m)&&!u[m]){if(d[m])return d[m];const p=t[m];if(typeof p=="function"){const v=p();return d[m]=v,v}return null}return null}return m}).filter(m=>m!==null):[];return{header:f((a=e.header)==null?void 0:a.buttons),chatInput:f((l=e.chatInput)==null?void 0:l.buttons),footer:f((c=e.footer)==null?void 0:c.buttons)}},Mc=()=>{const{settings:e}=ae(),t=Ie(()=>({[De.CLOSE_CHAT_BUTTON]:()=>C(Bc,{}),[De.AUDIO_BUTTON]:()=>C(Dc,{}),[De.NOTIFICATION_BUTTON]:()=>C(xc,{}),[De.EMOJI_PICKER_BUTTON]:()=>C(Sc,{}),[De.FILE_ATTACHMENT_BUTTON]:()=>C(kc,{}),[De.SEND_MESSAGE_BUTTON]:()=>C(Tc,{}),[De.VOICE_MESSAGE_BUTTON]:()=>C(Ic,{})}),[]),{header:n,chatInput:r,footer:o}=Ie(()=>Qc(e,t),[e,t]);return{headerButtons:Ie(()=>n,[n]),chatInputButtons:Ie(()=>r,[r]),footerButtons:Ie(()=>o,[o])}},po=()=>{const{settings:e}=ae(),{styles:t}=ye(),{setSyncedMessages:n,syncedMessagesRef:r}=oo(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:s,setHasChatHistoryLoaded:A}=Oe(),{chatBodyRef:a}=Te(),{dispatchRcbEvent:l}=lt(),c=W(async()=>{var u,d;const f=In();if(!f||(u=e.event)!=null&&u.rcbLoadChatHistory&&(await l(z.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const h=((d=a.current)==null?void 0:d.scrollHeight)??0;((m,p,v,y,g,E,P,_,k)=>{var B;if(Da=!0,v!=null)try{const T=Qt(C(lc,{}),"SYSTEM"),D=g.current.slice(1);y([T,...D]);const O=v.map(S=>{if(S.type==="object"){const N=Ia(S.content,m,p);return{...S,content:N}}return S});setTimeout(()=>{var S;const N=g.current.slice(1);let R=(S=m.chatHistory)!=null&&S.autoLoad?Qt(C(ce,{}),"SYSTEM"):Qt(C(sc,{}),"SYSTEM");y([...O,R,...N]),k(!0)},500),setTimeout(()=>{if(!E.current)return;const{scrollHeight:S}=E.current,N=S-P;E.current.scrollTop+=N,_(!1)},510)}catch{Mt.removeItem((B=m.chatHistory)==null?void 0:B.storageKey)}})(e,t,f,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}=ae(),{styles:o}=ye(),{showChatHistory:i}=po(),[s,A]=ee(!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 C("div",{className:"rcb-view-history-container",children:C("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:C("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},Nc=()=>{var e,t,n,r;const o=cr(),{settings:i}=ae(),{replaceMessages:s}=Wt(),{isBotTyping:A,isChatWindowOpen:a,setUnreadCount:l,setSyncedIsChatWindowOpen:c,setSyncedTextAreaDisabled:u,setSyncedAudioToggledOn:d,setSyncedVoiceToggledOn:f,setSyncedIsScrolling:h,syncedIsScrollingRef:m,syncedIsChatWindowOpenRef:p}=Oe(),{chatBodyRef:v}=Te(),{viewportHeight:y,setViewportHeight:g,setViewportWidth:E,scrollToBottom:P}=Ze(),{setUpNotifications:_}=Ao(),{handleFirstInteraction:k}=(()=>{var O;const{settings:S}=ae(),{hasInteractedPage:N,setHasInteractedPage:R,hasFlowStarted:L,setHasFlowStarted:U}=Oe(),x=W(()=>{var Q;if(R(!0),!L&&((Q=S.general)==null?void 0:Q.flowStartTrigger)==="ON_PAGE_INTERACT"&&U(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const w=new window.SpeechSynthesisUtterance;w.text="",w.onend=()=>{window.removeEventListener("click",x),window.removeEventListener("keydown",x),window.removeEventListener("touchstart",x)},window.speechSynthesis.speak(w)},[L,(O=S.general)==null?void 0:O.flowStartTrigger]);return{hasInteractedPage:N,handleFirstInteraction:x}})(),{showChatHistory:B}=po(),T=ne(0),D=ne(!1);X(()=>(window.addEventListener("click",k),window.addEventListener("keydown",k),window.addEventListener("touchstart",k),()=>{window.removeEventListener("click",k),window.removeEventListener("keydown",k),window.removeEventListener("touchstart",k)}),[]),X(()=>{const O=v.current;if(!O)return;const S=()=>{D.current||(D.current=!0,requestAnimationFrame(()=>{var N,R;if(!O)return;const{scrollTop:L,clientHeight:U,scrollHeight:x}=O,Q=L+U<x-(((N=i.chatWindow)==null?void 0:N.messagePromptOffset)??30);h(Q),m.current=Q,Q||(L+U>=x-1&&(O.scrollTop=x-U-1),(p.current||(R=i.general)!=null&&R.embedded)&&l(0)),D.current=!1}))};return O.addEventListener("wheel",S,{passive:!0}),O.addEventListener("touchmove",S,{passive:!0}),()=>{O.removeEventListener("wheel",S),O.removeEventListener("touchmove",S)}},[]),X(()=>{var O,S,N;u((O=i.chatInput)==null?void 0:O.disabled),c((S=i.chatWindow)==null?void 0:S.defaultOpen),d((N=i.audio)==null?void 0:N.defaultToggledOn),setTimeout(()=>{var R;f((R=i.voice)==null?void 0:R.defaultToggledOn)},1)},[]),X(()=>{var O;(O=i.notification)!=null&&O.disabled||_()},[(e=i.notification)==null?void 0:e.disabled]),X(()=>{!m.current&&v!=null&&v.current&&P()},[A]),X(()=>{var O,S;if((O=i.chatHistory)!=null&&O.disabled)Mt&&Mt.removeItem(ir);else if(ao(i),In().length>0){const N=Qt(C(Oc,{}),"SYSTEM");s([N]),(S=i.chatHistory)!=null&&S.autoLoad&&B()}},[(t=i.chatHistory)==null?void 0:t.storageKey,(n=i.chatHistory)==null?void 0:n.maxEntries,(r=i.chatHistory)==null?void 0:r.disabled]),X(()=>{var O;o||(O=i.general)!=null&&O.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",S=>{if(!S.target)return;const{x:N,y:R,width:L,height:U}=S.target.boundingRect;N==0&&R==0&&L==0&&U==0?(setTimeout(()=>{var x;g((x=window.visualViewport)==null?void 0:x.height)},101),setTimeout(()=>{var x,Q;y!=((x=window.visualViewport)==null?void 0:x.height)&&g((Q=window.visualViewport)==null?void 0:Q.height)},1001)):setTimeout(()=>{var x;g(((x=window.visualViewport)==null?void 0:x.height)-U)},101)}))},[o]),X(()=>{var O,S,N,R;if(o)return;a&&(g((O=window.visualViewport)==null?void 0:O.height),E((S=window.visualViewport)==null?void 0:S.width));const L=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),U=()=>T.current=window.scrollY,x=()=>{var w,V;g((w=window.visualViewport)==null?void 0:w.height),E((V=window.visualViewport)==null?void 0:V.width)},Q=()=>{var w;window.removeEventListener("scroll",L),window.removeEventListener("scroll",U),(w=window.visualViewport)==null||w.removeEventListener("resize",x)};return a?(Q(),document.body.style.position="fixed",window.addEventListener("scroll",L),(N=window.visualViewport)==null||N.addEventListener("resize",x)):(document.body.style.position="static",Q(),window.scrollTo({top:T.current,left:0,behavior:"auto"}),window.addEventListener("scroll",U),(R=window.visualViewport)==null||R.removeEventListener("resize",x)),Q},[a,o])},Lc="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",Rc="2592000",La="RCB_THEME_CACHE_DATA",Ra=async(e,t)=>{const{id:n,version:r,baseUrl:o=Lc,cacheDuration:i=Rc}=t,s=r||await(async(v,y)=>{const g=`${y}/${v}/meta.json`;try{const E=await fetch(g);return E.ok?(await E.json()).version:(console.error(`Failed to fetch meta.json from ${g}`),null)}catch(E){return console.error(`Failed to fetch meta.json from ${g}`,E),null}})(n,o);if(!s)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const A=((v,y,g)=>{const E=localStorage.getItem(`${La}_${v}_${y}`);if(!E)return null;try{const P=JSON.parse(E),_=new Date().getTime(),k=Math.floor(_/1e3);return P.cacheDate+g>=k?P:null}catch(P){return console.error(`Unable to fetch cache for ${v}`,P),null}})(n,s,i);if(A){const v=Ha(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 f=await fetch(l);let h={};f.ok?h=await f.json():console.info(`Could not fetch settings.json from ${l}`);const m=await fetch(c);let p={};return m.ok?p=await m.json():console.info(`Could not fetch styles.json from ${c}`),((v,y,g,E,P)=>{const _=new Date().getTime(),k={settings:g,inlineStyles:E,cssStylesText:P,cacheDate:Math.floor(_/1e3)};localStorage.setItem(`${La}_${v}_${y}`,JSON.stringify(k))})(n,s,h,p,u),{settings:h,inlineStyles:p,cssStylesText:Ha(e,u)}},Ha=(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
|
+
`),Hc=async(e,t,n,r)=>{var o,i;let s=ur(ya),A=ur(wa),a="";if(r!=null)if(Array.isArray(r))for(const l of r){const c=await Ra(e,l);s=gt(c.settings,s),A=gt(c.inlineStyles,A),a+=c.cssStylesText}else{const l=await Ra(e,r);s=gt(l.settings,s),A=gt(l.inlineStyles,A),a+=l.cssStylesText}return t!=null&&(s=gt(t,s)),n!=null&&(A=gt(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}},gt=(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(zt(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},ur=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},Ua=()=>{const{settings:e,setSyncedSettings:t,syncedSettingsRef:n}=ae(),r=W(i=>{!i||Object.keys(i).length===0||t(ur(gt(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}},Fa=()=>{const{styles:e,setSyncedStyles:t,syncedStylesRef:n}=ye(),r=W(i=>{!i||Object.keys(i).length===0||t(ur(gt(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}},Uc=({plugins:e,slots:t})=>{var n,r;const o=cr(),{settings:i}=ae(),{styles:s}=ye(),{hasFlowStarted:A,setHasFlowStarted:a}=Oe(),{inputRef:l}=Te(),{viewportHeight:c,viewportWidth:u,isChatWindowOpen:d}=Ze(),{goToPath:f}=lr(),{headerButtons:h,chatInputButtons:m,footerButtons:p}=Mc();Nc(),(y=>{const{updateSettings:g}=Ua(),{updateStyles:E}=Fa(),P=y==null?void 0:y.map(_=>_());X(()=>{let _={},k={};P==null||P.forEach(B=>{B!=null&&B.settings&&Object.keys(B==null?void 0:B.settings).length!==0&&(_=gt(B.settings,_)),B!=null&&B.styles&&Object.keys(B==null?void 0:B.styles).length!==0&&(k=gt(B.styles,k))}),g(_),E(k)},[])})(e),X(()=>{var y;(A||((y=i.general)==null?void 0:y.flowStartTrigger)==="ON_LOAD")&&f("start")},[A,(n=i.general)==null?void 0:n.flowStartTrigger]);const v=Ie(()=>{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 C(ce,{children:(()=>{var y,g;return o&&((y=i.device)==null?void 0:y.desktopEnabled)||!o&&((g=i.device)==null?void 0:g.mobileEnabled)})()&&C("div",{onMouseDown:y=>{var g,E;!A&&((g=i.general)==null?void 0:g.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&a(!0),o?(E=l.current)==null||E.blur():y==null||y.preventDefault()},className:v,children:[C(_c,{}),C(Ec,{}),d&&!o&&!((r=i.general)!=null&&r.embedded)&&C(ce,{children:[C("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
|
-
`}),C("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),C("div",{style:(()=>{var y,g;return o||(y=i.general)!=null&&y.embedded?(g=i.general)!=null&&g.embedded?{...
|
|
10
|
+
`}),C("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),C("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,E;const P=(t==null?void 0:t.chatBotHeader)||zl,_=(t==null?void 0:t.chatBotBody)||Jl,k=(t==null?void 0:t.chatBotInput)||wc,B=(t==null?void 0:t.chatBotFooter)||bc;return C(ce,{children:[((y=i.general)==null?void 0:y.showHeader)&&C(P,{buttons:h}),C(_,{}),C(Cc,{}),((g=i.general)==null?void 0:g.showInputRow)&&C(k,{buttons:m}),((E=i.general)==null?void 0:E.showFooter)&&C(B,{buttons:p})]})})()})]})})},za=st(void 0),ja=()=>rt(za),Wa=({children:e})=>{var t;const n=ne(""),r=ne({}),[o,i,s]=Je({}),[A,a,l]=Je({}),[c,u]=ee(!1);return X(()=>{u(!0)},[]),c?C("div",{style:{fontFamily:(t=o.general)==null?void 0:t.fontFamily},children:C(za.Provider,{value:{loadConfig:async(d,f,h,m,p,v)=>{n.current=d,r.current=f;const y=await Hc(d,h,m,p);v.current&&(v.current.textContent=y.cssStylesText),i(y.settings),a(y.inlineStyles)}},children:C(Ul,{settings:o,setSyncedSettings:i,syncedSettingsRef:s,children:C(Fl,{styles:A,setSyncedStyles:a,syncedStylesRef:l,children:C(vc,{children:C(jl,{botIdRef:n,flowRef:r,children:C(Gl,{children:C(Wl,{settings:o,children:C($l,{children:e})})})})})})})})}):null},Fc=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,setConfigLoaded:s,styleRootRef:A})=>{const a=Ie(()=>e,[]),l=ja(),{flowRef:c}=Te();return c&&c.current!==t&&(c.current=t),X(()=>{(async()=>{var u,d;(u=n.event)!=null&&u.rcbPreLoadChatBot&&(await ro(z.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&&ro(z.POST_LOAD_CHATBOT,{botId:a,currPath:null,prevPath:null},{flow:t,settings:n,styles:r,themes:o,plugins:i}))})()},[o]),null},ho=["Quickstart","API Docs","Examples","Github","Discord"],zc={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:ho,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:ho,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:ho,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"}},jc=({id:e,flow:t,settings:n,styles:r,themes:o,plugins:i,slots:s})=>{const A=Ie(()=>e||"rcb-"+or(),[]),a=t&&Object.keys(t).length!==0?t:zc,l=n||{},c=r||{},u=i||[],[d,f]=ee(!1),h=ja(),m=ne(null),[p,v]=ee(o||[]);X(()=>{o&&v(o)},[o]);const y=()=>C(ce,{children:[C(Fc,{styleRootRef:m,id:A,flow:a,settings:l,styles:c,themes:p,plugins:u,setConfigLoaded:f}),d&&C(Uc,{plugins:i,slots:s})]});return C(h==null?Wa:ce,{children:[C("style",{ref:m}),C("div",{id:A,children:y()})]})},Wc=()=>{const{getBotId:e}=(()=>{const{botIdRef:t}=Te();return{getBotId:W(()=>t.current,[t])}})();return{getBotId:e}},dr=()=>{const{hasFlowStarted:e,restartFlow:t,getFlow:n}=(()=>{const{replaceMessages:r}=Wt(),{replacePaths:o,goToPath:i}=lr(),{replaceToasts:s}=rn(),{hasFlowStarted:A}=Oe(),{flowRef:a,timeoutIdRef:l}=Te(),{settings:c}=ae();return{hasFlowStarted:A,restartFlow:W(async()=>{ao(c),l.current&&clearTimeout(l.current),r([]),s([]),o([]),await i("start")},[l,c,r,s,o,ao,i]),getFlow:W(()=>(a==null?void 0:a.current)??{},[a])}})();return{hasFlowStarted:e,restartFlow:t,getFlow:n}},Tn=()=>{const{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s,getMessages:A}=Wt();return{endStreamMessage:e,injectMessage:t,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:s,getMessages:A}},ot=(e,t)=>{const{getBotId:n}=Wc();X(()=>{const r=o=>{o.detail.botId===n()&&t(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[n,e,t])},qa=()=>{const{settings:e,replaceSettings:t,updateSettings:n}=Ua();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}=qt();return{textAreaDisabled:e,toggleTextAreaDisabled:t,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:s,blurTextArea:A}},Ya=()=>{const{showChatHistory:e,hasChatHistoryLoaded:t}=po();return{showChatHistory:e,getHistoryMessages:In,setHistoryMessages:io,hasChatHistoryLoaded:t}},go={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 Gt(e){return t=>{go[t]={...e,...go[t]}}}["address","main","div","figure","p","pre"].forEach(Gt({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(Gt({content:8,type:73})),["p","pre"].forEach(Gt({content:8,type:65})),["s","small","span","del","ins"].forEach(Gt({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(Gt({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(Gt({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(Gt({type:89}));const mo=Object.freeze(go),qc=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],Gc=Object.keys(mo).filter(e=>e!=="canvas"&&e!=="iframe"),$a=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}),Yc=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function fr(){return fr=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},fr.apply(this,arguments)}function Va({attributes:e={},className:t,children:n=null,selfClose:r=!1,tagName:o}){const i=o;return r?M.createElement(i,fr({className:t},e)):M.createElement(i,fr({className:t},e),n)}class $c{attribute(t,n){return n}node(t,n){return n}}function Vc(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
|
|
14
14
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
15
15
|
* MIT Licensed
|
|
16
|
-
*/var Ka,Xa;const Kc=Vc(function(){if(Xa)return Ka;Xa=1;var e=/["'&<>]/;return Ka=function(t){var n=""+t,r=e.exec(n);if(!r)return n;var o,i="",
|
|
16
|
+
*/var Ka,Xa;const Kc=Vc(function(){if(Xa)return Ka;Xa=1;var e=/["'&<>]/;return Ka=function(t){var n=""+t,r=e.exec(n);if(!r)return n;var o,i="",s=0,A=0;for(s=r.index;s<n.length;s++){switch(n.charCodeAt(s)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}A!==s&&(i+=n.substring(A,s)),A=s+1,i+=o}return A!==s?i+n.substring(A,s):i}}());function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xc=/(url|image|image-set)\(/i;class Jc extends $c{attribute(t,n){return t==="style"&&Object.keys(n).forEach(r=>{String(n[r]).match(Xc)&&delete n[r]}),n}}const Zc=/^<(!doctype|(html|head|body)(\s|>))/i,eu=/^(aria-|data-|\w+:)/iu,tu=/{{{(\w+)\/?}}}/;function nu(){if(!(typeof window>"u"||typeof document>"u"))return document.implementation.createHTMLDocument("Interweave")}let Ja=class{constructor(e,t={},n=[],r=[]){var o;if(kt(this,"allowed",void 0),kt(this,"banned",void 0),kt(this,"blocked",void 0),kt(this,"container",void 0),kt(this,"content",[]),kt(this,"props",void 0),kt(this,"matchers",void 0),kt(this,"filters",void 0),kt(this,"keyIndex",void 0),process.env.NODE_ENV!=="production"&&e&&typeof e!="string")throw new TypeError("Interweave parser requires a valid string.");this.props=t,this.matchers=n,this.filters=[...r,new Jc],this.keyIndex=-1,this.container=this.createContainer(e||""),this.allowed=new Set((o=t.allowList)!==null&&o!==void 0?o:Gc),this.banned=new Set(qc),this.blocked=new Set(t.blockList)}applyAttributeFilters(e,t){return this.filters.reduce((n,r)=>n!==null&&typeof r.attribute=="function"?r.attribute(e,n):n,t)}applyNodeFilters(e,t){return this.filters.reduce((n,r)=>n!==null&&typeof r.node=="function"?r.node(e,n):n,t)}applyMatchers(e,t){const n={},{props:r}=this;let o=e,i=0,s=null;return this.matchers.forEach(A=>{const a=A.asTag().toLowerCase(),l=this.getTagConfig(a);if(r[A.inverseName]||!this.isTagAllowed(a)||!this.canRenderChild(t,l))return;let c="";for(;o&&(s=A.match(o));){const{index:u,length:d,match:f,valid:h,void:m,...p}=s,v=A.propName+String(i);u>0&&(c+=o.slice(0,u)),h?(c+=m?`{{{${v}/}}}`:`{{{${v}}}}${f}{{{/${v}}}}`,this.keyIndex+=1,i+=1,n[v]={children:f,matcher:A,props:{...r,...p,key:this.keyIndex}}):c+=f,A.greedy?(o=c+o.slice(u+d),c=""):o=o.slice(u+(d||f.length))}A.greedy||(o=c+o)}),i===0?e:this.replaceTokens(o,n)}canRenderChild(e,t){return!(!e.tagName||!t.tagName||e.void)&&(e.children.length>0?e.children.includes(t.tagName):!(e.invalid.length>0&&e.invalid.includes(t.tagName))&&(t.parent.length>0?t.parent.includes(e.tagName):!(!e.self&&e.tagName===t.tagName)&&!!(e&&e.content&t.type)))}convertLineBreaks(e){const{noHtml:t,disableLineBreaks:n}=this.props;if(t||n||e.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return e;let r=e.replace(/\r\n/g,`
|
|
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||nu)();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(Zc)){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?Kc(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:A}=o,s=i.toLowerCase(),a=$a[s]||$a[i];if(!this.isSafe(e)||!s.match(eu)&&(!t&&(!a||a===2)||s.startsWith("on")||A.replace(/(\s|\0|�([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let l=s==="style"?this.extractStyleAttribute(e):A;a===4?l=!0:a===3?l=Number.parseFloat(String(l)):a!==5&&(l=String(l)),n[Yc[s]||s]=this.applyAttributeFilters(s,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 mo[e]?{...t,...mo[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:A}=this.props;let s=[],a="";return[...e.childNodes].forEach(l=>{if(l.nodeType===1){const u=l.nodeName.toLowerCase(),d=this.getTagConfig(u);a&&(s.push(a),a="");const f=this.applyNodeFilters(u,l);if(!f)return;let h;if(i&&(!A||this.isTagAllowed(u))){this.keyIndex+=1;const m=this.keyIndex;h=this.parseNode(f,d);const p=i(f,h,d);if(p===null)return;if(typeof p<"u")return void s.push(M.cloneElement(p,{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))s=[...s,...this.parseNode(f,d.tagName?d:t)];else{var c;this.keyIndex+=1;const m=this.extractAttributes(f),p={tagName:u};m&&(p.attributes=m),d.void&&(p.selfClose=d.void),s.push(M.createElement(Va,{...p,key:this.keyIndex},(c=h)!==null&&c!==void 0?c:this.parseNode(f,d)))}}else if(l.nodeType===3){const u=n&&!r?l.textContent:this.applyMatchers(l.textContent||"",t);Array.isArray(u)?s=[...s,...u]:a+=u}}),a&&s.push(a),s}replaceTokens(e,t){if(!e.includes("{{{"))return e;const n=[];let r=e,o=null;for(;o=r.match(tu);){const[i,A]=o,s=o.index,a=i.includes("/");if(process.env.NODE_ENV!=="production"&&!t[A])throw new Error(`Token "${A}" found but no matching element to replace with.`);s>0&&(n.push(r.slice(0,s)),r=r.slice(s));const{children:l,matcher:c,props:u}=t[A];let d;if(a)d=i.length,n.push(c.createElement(l,u));else{const f=r.match(new RegExp(`{{{/${A}}}}`));if(process.env.NODE_ENV!=="production"&&!f)throw new Error(`Closing token missing for interpolated element "${A}".`);d=f.index+f[0].length,n.push(c.createElement(this.replaceTokens(r.slice(i.length,f.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 ru(e){var t;const{attributes:n,className:r,containerTagName:o,content:i,emptyContent:A,parsedContent:s,tagName:a,noWrap:l}=e,c=(t=o??a)!==null&&t!==void 0?t:"span",u=c==="fragment"||l;let d;if(s)d=s;else{const f=new Ja(i??"",e).parse();f.length>0&&(d=f)}return d||(d=A),u?M.createElement(M.Fragment,null,d):M.createElement(Va,{attributes:n,className:r,tagName:c},d)}function ou(e){const{attributes:t,className:n,content:r="",disableFilters:o=!1,disableMatchers:i=!1,emptyContent:A=null,filters:s=[],matchers:a=[],onAfterParse:l=null,onBeforeParse:c=null,tagName:u="span",noWrap:d=!1,...f}=e,h=i?[]:a,m=o?[]:s,p=c?[c]:[],v=l?[l]:[];h.forEach(P=>{P.onBeforeParse&&p.push(P.onBeforeParse.bind(P)),P.onAfterParse&&v.push(P.onAfterParse.bind(P))});const y=p.reduce((P,E)=>{const k=E(P,e);if(process.env.NODE_ENV!=="production"&&typeof k!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return k},r??""),g=new Ja(y,f,h,m),_=v.reduce((P,E)=>{const k=E(P,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(k))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return k},g.parse());return M.createElement(ru,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:A,noWrap:d,parsedContent:_.length===0?void 0:_,tagName:u})}const iu=({children:e})=>C("div",{style:{whiteSpace:"normal"},children:C(ou,{content:typeof e=="string"?e:""})}),au={autoConfig:!0},Za=(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)},su=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},Au=e=>{const{getFlow:t}=dr(),{messages:n,replaceMessages:r}=Tn(),{settings:o}=Wa(),{hasChatHistoryLoaded:i}=Ya(),A={...e,...au},s=A.htmlComponent?A.htmlComponent:iu;X(()=>{var c,u;if(i){const d=[...n];for(let f=0;f<d.length&&f<(((c=o.chatHistory)==null?void 0:c.maxEntries)??30);f++){const h=d[f];(u=h.tags)!=null&&u.includes("rcb-html-renderer-plugin:parsed")&&(h.contentWrapper=s)}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"&&Za(c,t(),d)&&(c.type==="rcb-start-simulate-stream-message"&&(c.data.simulateStreamChunker=su),c.data.message.contentWrapper=s,c.data.message.tags||(c.data.message.tags=[]),c.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};ot(z.PRE_INJECT_MESSAGE,a),ot(z.CHUNK_STREAM_MESSAGE,a),ot(z.START_STREAM_MESSAGE,a),ot(z.START_SIMULATE_STREAM_MESSAGE,a),ot(z.START_SPEAK_AUDIO,async c=>{Za(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 A!=null&&A.autoConfig&&(l.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),l},lu=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cu=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uu={};function es(e,t){return(uu.jsx?cu:lu).test(e)}const du=/[ \t\n\f\r]/g;function ts(e){return e.replace(du,"")===""}class Qn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}function ns(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 Qn(n,r,t)}function yo(e){return e.toLowerCase()}Qn.prototype.property={},Qn.prototype.normal={},Qn.prototype.space=null;class it{constructor(t,n){this.property=t,this.attribute=n}}it.prototype.space=null,it.prototype.boolean=!1,it.prototype.booleanish=!1,it.prototype.overloadedBoolean=!1,it.prototype.number=!1,it.prototype.commaSeparated=!1,it.prototype.spaceSeparated=!1,it.prototype.commaOrSpaceSeparated=!1,it.prototype.mustUseProperty=!1,it.prototype.defined=!1;let fu=0;const ie=Yt(),Qe=Yt(),rs=Yt(),H=Yt(),_e=Yt(),an=Yt(),et=Yt();function Yt(){return 2**++fu}const vo=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Qe,commaOrSpaceSeparated:et,commaSeparated:an,number:H,overloadedBoolean:rs,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),wo=Object.keys(vo);class bo extends it{constructor(t,n,r,o){let i=-1;if(super(t,n),os(this,"space",o),typeof r=="number")for(;++i<wo.length;){const A=wo[i];os(this,wo[i],(r&vo[A])===vo[A])}}}function os(e,t,n){n&&(e[t]=n)}bo.prototype.defined=!0;const pu={}.hasOwnProperty;function sn(e){const t={},n={};let r;for(r in e.properties)if(pu.call(e.properties,r)){const o=e.properties[r],i=new bo(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[yo(r)]=r,n[yo(i.attribute)]=r}return new Qn(t,n,e.space)}const is=sn({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}}),as=sn({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ss(e,t){return t in e?e[t]:t}function As(e,t){return ss(e,t.toLowerCase())}const ls=sn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:As,properties:{xmlns:null,xmlnsXLink:null}}),cs=sn({transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:_e,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:H,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:_e,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:Qe,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null}}),hu=sn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:As,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:an,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:_e,autoFocus:ie,autoPlay:ie,blocking:_e,capture:null,charSet:null,checked:ie,cite:null,className:_e,cols:H,colSpan:null,content:null,contentEditable:Qe,controls:ie,controlsList:_e,coords:H|an,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:rs,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:_e,height:H,hidden:ie,high:H,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:_e,itemRef:_e,itemScope:ie,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,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:ie,optimum:H,pattern:null,ping:_e,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:_e,required:ie,reversed:ie,rows:H,rowSpan:H,sandbox:_e,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Qe,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:H,security:null,unselectable:null}}),gu=sn({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:ss,properties:{about:et,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:_e,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:an,g2:an,glyphName:an,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,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:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),mu=/^data[-\w.:]+$/i,us=/-[a-z]/g,yu=/[A-Z]/g;function vu(e){return"-"+e.toLowerCase()}function wu(e){return e.charAt(1).toUpperCase()}const bu={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"},_u=ns([as,is,ls,cs,hu],"html"),_o=ns([as,is,ls,cs,gu],"svg");function ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eo,fs,ps,An={},Eu=function(){if(ps)return An;ps=1;var e=An&&An.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(An,"__esModule",{value:!0}),An.default=function(n,r){var o=null;if(!n||typeof n!="string")return o;var i=(0,t.default)(n),A=typeof r=="function";return i.forEach(function(s){if(s.type==="declaration"){var a=s.property,l=s.value;A?r(a,l,s):l&&((o=o||{})[a]=l)}}),o};var t=e(function(){if(fs)return Eo;fs=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,A=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(d){return d?d.replace(l,c):c}return Eo=function(d,f){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];f=f||{};var h=1,m=1;function p(T){var D=T.match(r);D&&(h+=D.length);var O=T.lastIndexOf(`
|
|
21
|
-
`);m=~O?T.length-O:m+T.length}function v(){var T={line:h,column:m};return function(D){return D.position=new y(T),P(),D}}function y(T){this.start=T,this.end={line:h,column:m},this.source=f.source}function g(T){var D=new Error(f.source+":"+h+":"+m+": "+T);if(D.reason=T,D.filename=f.source,D.line=h,D.column=m,D.source=d,!f.silent)throw D}function _(T){var D=T.exec(d);if(D){var O=D[0];return p(O),d=d.slice(O.length),D}}function P(){_(o)}function E(T){var D;for(T=T||[];D=k();)D!==!1&&T.push(D);return T}function k(){var T=v();if(d.charAt(0)=="/"&&d.charAt(1)=="*"){for(var D=2;c!=d.charAt(D)&&(d.charAt(D)!="*"||d.charAt(D+1)!="/");)++D;if(D+=2,c===d.charAt(D-1))return g("End of comment missing");var O=d.slice(2,D-2);return m+=2,p(O),d=d.slice(D),m+=2,T({type:"comment",comment:O})}}function B(){var T=v(),D=_(i);if(D){if(k(),!_(A))return g("property missing ':'");var O=_(s),S=T({type:"declaration",property:u(D[0].replace(n,c)),value:O?u(O[0].replace(n,c)):c});return _(a),S}}return y.prototype.content=d,P(),function(){var T,D=[];for(E(D);T=B();)T!==!1&&(D.push(T),E(D));return D}()},Eo}());return An}();const hs=ds(Eu),Pu=hs.default||hs,gs=ms("end"),Po=ms("start");function ms(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 Mn(e){return e&&typeof e=="object"?"position"in e||"type"in e?ys(e.position):"start"in e||"end"in e?ys(e):"line"in e||"column"in e?Co(e):"":""}function Co(e){return vs(e&&e.line)+":"+vs(e&&e.column)}function ys(e){return Co(e&&e.start)+"-"+Co(e&&e.end)}function vs(e){return e&&typeof e=="number"?e:1}class We extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},A=!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&&(A=!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 s=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=s?s.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=s?s.line:void 0,this.name=Mn(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=A&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}We.prototype.file="",We.prototype.name="",We.prototype.reason="",We.prototype.message="",We.prototype.stack="",We.prototype.column=void 0,We.prototype.line=void 0,We.prototype.ancestors=void 0,We.prototype.cause=void 0,We.prototype.fatal=void 0,We.prototype.place=void 0,We.prototype.ruleId=void 0,We.prototype.source=void 0;const ko={}.hasOwnProperty,Cu=new Map,ku=/[A-Z]/g,Su=/-([a-z])/g,Du=new Set(["table","tbody","thead","tfoot","tr"]),Bu=new Set(["td","th"]),ws="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xu(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(A,s){return a;function a(l,c,u,d){const f=Array.isArray(u.children),h=Po(l);return s(c,u,d,f,{columnNumber:h?h.column-1:void 0,fileName:A,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(A,s,a){return l;function l(c,u,d,f){const h=Array.isArray(d.children)?a:s;return f?h(u,d,f):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"?_o:_u,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=bs(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function bs(e,t,n){return t.type==="element"?function(r,o,i){const A=r.schema;let s=A;o.tagName.toLowerCase()==="svg"&&A.space==="html"&&(s=_o,r.schema=s),r.ancestors.push(o);const a=Es(r,o.tagName,!1),l=function(u,d){const f={};let h,m;for(m in d.properties)if(m!=="children"&&ko.call(d.properties,m)){const p=Iu(u,m,d.properties[m]);if(p){const[v,y]=p;u.tableCellAlignToStyle&&v==="align"&&typeof y=="string"&&Bu.has(d.tagName)?h=y:f[v]=y}}return h&&((f.style||(f.style={}))[u.stylePropertyNameCase==="css"?"text-align":"textAlign"]=h),f}(r,o);let c=Do(r,o);return Du.has(o.tagName)&&(c=c.filter(function(u){return typeof u!="string"||!function(d){return typeof d=="object"?d.type==="text"&&ts(d.value):ts(d)}(u)})),_s(r,l,a,o),So(l,c),r.ancestors.pop(),r.schema=A,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)}On(r,o.position)}(e,t):t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement"?function(r,o,i){const A=r.schema;let s=A;o.name==="svg"&&A.space==="html"&&(s=_o,r.schema=s),r.ancestors.push(o);const a=o.name===null?r.Fragment:Es(r,o.name,!0),l=function(u,d){const f={};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 p=m.expression;p.type;const v=p.properties[0];v.type,Object.assign(f,u.evaluater.evaluateExpression(v.argument))}else On(u,d.position);else{const m=h.name;let p;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,p=u.evaluater.evaluateExpression(v.expression)}else On(u,d.position);else p=h.value===null||h.value;f[m]=p}return f}(r,o),c=Do(r,o);return _s(r,l,a,o),So(l,c),r.ancestors.pop(),r.schema=A,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);On(r,o.position)}(e,t):t.type==="root"?function(r,o,i){const A={};return So(A,Do(r,o)),r.create(o,r.Fragment,A,i)}(e,t,n):t.type==="text"?function(r,o){return o.value}(0,t):void 0}function _s(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function So(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Do(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Cu;for(;++r<t.children.length;){const i=t.children[r];let A;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;A=a+"-"+l,o.set(a,l+1)}}const s=bs(e,i,A);s!==void 0&&n.push(s)}return n}function Iu(e,t,n){const r=function(o,i){const A=yo(i);let s=i,a=it;if(A in o.normal)return o.property[o.normal[A]];if(A.length>4&&A.slice(0,4)==="data"&&mu.test(i)){if(i.charAt(4)==="-"){const l=i.slice(5).replace(us,wu);s="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=i.slice(4);if(!us.test(l)){let c=l.replace(yu,vu);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}a=bo}return new a(s,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,A){const s={};try{Pu(A,a)}catch(l){if(!i.ignoreInvalidStyle){const c=l,u=new We("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=ws+"#cannot-parse-style-attribute",u}}return s;function a(l,c){let u=l;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(Su,Qu)),s[u]=c}}(e,String(n));return e.stylePropertyNameCase==="css"&&(o=function(i){const A={};let s;for(s in i)ko.call(i,s)&&(A[Tu(s)]=i[s]);return A}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?bu[r.property]||r.property:r.attribute,n]}}function Es(e,t,n){let r;if(n)if(t.includes(".")){const o=t.split(".");let i,A=-1;for(;++A<o.length;){const s=es(o[A])?{type:"Identifier",name:o[A]}:{type:"Literal",value:o[A]};i=i?{type:"MemberExpression",object:i,property:s,computed:!(!A||s.type!=="Literal"),optional:!1}:s}r=i}else r=es(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 ko.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);On(e)}function On(e,t){const n=new We("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=ws+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Tu(e){let t=e.replace(ku,Mu);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Qu(e,t){return t.toUpperCase()}function Mu(e){return"-"+e.toLowerCase()}const Bo={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"]},pr={};function Ps(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 Cs(e.children,t,n)}return Array.isArray(e)?Cs(e,t,n):""}function Cs(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=Ps(e[o],t,n);return r.join("")}const ks=document.createElement("i");function xo(e){const t="&"+e+";";ks.innerHTML=t;const n=ks.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function mt(e,t,n,r){const o=e.length;let i,A=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);A<r.length;)i=r.slice(A,A+1e4),i.unshift(t,0),e.splice(...i),A+=1e4,t+=1e4}function at(e,t){return e.length>0?(mt(e,e.length,0,t),e):t}const Ss={}.hasOwnProperty;function Ou(e){const t={};let n=-1;for(;++n<e.length;)Nu(t,e[n]);return t}function Nu(e,t){let n;for(n in t){const r=(Ss.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Ss.call(r,i)||(r[i]=[]);const A=o[i];Lu(r[i],Array.isArray(A)?A:A?[A]:[])}}}function Lu(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);mt(e,0,0,r)}function Ds(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 ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yt=Nt(/[A-Za-z]/),tt=Nt(/[\dA-Za-z]/),Ru=Nt(/[#-'*+\--9=?A-Z^-~]/);function Io(e){return e!==null&&(e<32||e===127)}const To=Nt(/\d/),Hu=Nt(/[\dA-Fa-f]/),Uu=Nt(/[!-/:-@[-`{-~]/);function re(e){return e!==null&&e<-2}function Ke(e){return e!==null&&(e<0||e===32)}function pe(e){return e===-2||e===-1||e===32}const Fu=Nt(new RegExp("\\p{P}|\\p{S}","u")),zu=Nt(/\s/);function Nt(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function cn(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let A="";if(i===37&&tt(e.charCodeAt(n+1))&&tt(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(A=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(A=String.fromCharCode(i,s),o=1):A="๏ฟฝ"}else A=String.fromCharCode(i);A&&(t.push(e.slice(r,n),encodeURIComponent(A)),r=n+o+1,A=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Ee(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(s){return pe(s)?(e.enter(n),A(s)):t(s)};function A(s){return pe(s)&&i++<o?(e.consume(s),A):(e.exit(n),t(s))}}const ju={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"),Ee(e,t,"linePrefix"))},function(i){return e.enter("paragraph"),r(i)});let n;return t;function r(i){const A=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=A),n=A,o(i)}function o(i){return i===null?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(i)):re(i)?(e.consume(i),e.exit("chunkText"),r):(e.consume(i),o)}}},qu={tokenize:function(e){const t=this,n=[];let r,o,i,A=0;return s;function s(g){if(A<n.length){const _=n[A];return t.containerState=_[1],e.attempt(_[0].continuation,a,l)(g)}return l(g)}function a(g){if(A++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const _=t.events.length;let P,E=_;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){P=t.events[E][1].end;break}v(A);let k=_;for(;k<t.events.length;)t.events[k][1].end={...P},k++;return mt(t.events,E+1,0,t.events.slice(_)),t.events.length=k,l(g)}return s(g)}function l(g){if(A===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(Bs,c,u)(g)}function c(g){return r&&y(),v(A),d(g)}function u(g){return t.parser.lazy[t.now().line]=A!==n.length,i=t.now().offset,h(g)}function d(g){return t.containerState={},e.attempt(Bs,f,h)(g)}function f(g){return A++,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?(p(e.exit("chunkFlow"),!0),v(0),void e.consume(g)):re(g)?(e.consume(g),p(e.exit("chunkFlow")),A=0,t.interrupt=void 0,s):(e.consume(g),m)}function p(g,_){const P=t.sliceStream(g);if(_&&P.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(P),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 k=t.events.length;let B,T,D=k;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(B){T=t.events[D][1].end;break}B=!0}for(v(A),E=k;E<t.events.length;)t.events[E][1].end={...T},E++;mt(t.events,D+1,0,t.events.slice(k)),t.events.length=E}}function v(g){let _=n.length;for(;_-- >g;){const P=n[_];t.containerState=P[1],P[0].exit.call(t,e)}n.length=g}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Bs={tokenize:function(e,t,n){return Ee(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function xs(e){return e===null||Ke(e)||zu(e)?1:Fu(e)?2:void 0}function Qo(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 Mo={name:"attention",resolveAll:function(e,t){let n,r,o,i,A,s,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;s=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};Is(u,-s),Is(d,s),i={type:s>1?"strongSequence":"emphasisSequence",start:u,end:{...e[n][1].end}},A={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...A.end}},e[n][1].end={...i.start},e[c][1].start={...A.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=at(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=at(a,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),a=at(a,Qo(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=at(a,[["exit",o,t],["enter",A,t],["exit",A,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,a=at(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,mt(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=xs(r);let i;return function(s){return i=s,e.enter("attentionSequence"),A(s)};function A(s){if(s===i)return e.consume(s),A;const a=e.exit("attentionSequence"),l=xs(s),c=!l||l===2&&o||n.includes(s),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(s)}}};function Is(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Wu={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 yt(d)?(e.consume(d),i):d===64?n(d):a(d)}function i(d){return d===43||d===45||d===46||tt(d)?(r=1,A(d)):a(d)}function A(d){return d===58?(e.consume(d),r=0,s):(d===43||d===45||d===46||tt(d))&&r++<32?(e.consume(d),A):(r=0,a(d))}function s(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||Io(d)?n(d):(e.consume(d),s)}function a(d){return d===64?(e.consume(d),l):Ru(d)?(e.consume(d),a):n(d)}function l(d){return tt(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||tt(d))&&r++<63){const f=d===45?u:c;return e.consume(d),f}return n(d)}}},hr={partial:!0,tokenize:function(e,t,n){return function(o){return pe(o)?Ee(e,r,"linePrefix")(o):r(o)};function r(o){return o===null||re(o)?t(o):n(o)}}},Ts={continuation:{tokenize:function(e,t,n){const r=this;return function(i){return pe(i)?Ee(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return e.attempt(Ts,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 A=r.containerState;return A.open||(e.enter("blockQuote",{_container:!0}),A.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return n(i)};function o(i){return pe(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}},Qs={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 Uu(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}},Ms={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,A=0;return function(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s};function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,i=tt,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=Hu,l):(e.enter("characterReferenceValue"),o=7,i=To,l(c))}function l(c){if(c===59&&A){const u=e.exit("characterReferenceValue");return i!==tt||xo(r.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(c)}return i(c)&&A++<o?(e.consume(c),l):n(c)}}},Os={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)}}},Ns={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(g,_,P){let E=0;return k;function k(S){return g.enter("lineEnding"),g.consume(S),g.exit("lineEnding"),B}function B(S){return g.enter("codeFencedFence"),pe(S)?Ee(g,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):T(S)}function T(S){return S===i?(g.enter("codeFencedFenceSequence"),D(S)):P(S)}function D(S){return S===i?(E++,g.consume(S),D):E>=s?(g.exit("codeFencedFenceSequence"),pe(S)?Ee(g,O,"whitespace")(S):O(S)):P(S)}function O(S){return S===null||re(S)?(g.exit("codeFencedFence"),_(S)):P(S)}}};let i,A=0,s=0;return function(g){return function(_){const P=r.events[r.events.length-1];return A=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,i=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(_)}(g)};function a(g){return g===i?(s++,e.consume(g),a):s<3?n(g):(e.exit("codeFencedFenceSequence"),pe(g)?Ee(e,l,"whitespace")(g):l(g))}function l(g){return g===null||re(g)?(e.exit("codeFencedFence"),r.interrupt?t(g):e.check(Os,f,y)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===null||re(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(g)):pe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ee(e,u,"whitespace")(g)):g===96&&g===i?n(g):(e.consume(g),c)}function u(g){return g===null||re(g)?l(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||re(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(g)):g===96&&g===i?n(g):(e.consume(g),d)}function f(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 A>0&&pe(g)?Ee(e,p,"linePrefix",A+1)(g):p(g)}function p(g){return g===null||re(g)?e.check(Os,f,y)(g):(e.enter("codeFlowValue"),v(g))}function v(g){return g===null||re(g)?(e.exit("codeFlowValue"),p(g)):(e.consume(g),v)}function y(g){return e.exit("codeFenced"),t(g)}}},Oo={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(a){return e.enter("codeIndented"),Ee(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?s(a):re(a)?e.attempt(Gu,i,s)(a):(e.enter("codeFlowValue"),A(a))}function A(a){return a===null||re(a)?(e.exit("codeFlowValue"),i(a)):(e.consume(a),A)}function s(a){return e.exit("codeIndented"),t(a)}}},Gu={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(A){return r.parser.lazy[r.now().line]?n(A):re(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),o):Ee(e,i,"linePrefix",5)(A)}function i(A){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(A):re(A)?o(A):n(A)}}},Yu={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"),A(c)};function A(c){return c===96?(e.consume(c),i++,A):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),r=0,l(c)):re(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||re(c)?(e.exit("codeTextData"),s(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 $u{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&&Nn(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),Nn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Nn(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);Nn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Nn(this.left,n.reverse())}}}function Nn(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 Ls(e){const t={};let n,r,o,i,A,s,a,l=-1;const c=new $u(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"&&(s=n[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Vu(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},A=c.slice(r,l),A.unshift(n),c.splice(r,l-r+1,A))}}return mt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}function Vu(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[],A=n._tokenizer||r.parser[n.contentType](n.start),s=A.events,a=[],l={};let c,u,d=-1,f=n,h=0,m=0;const p=[m];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),u&&A.defineSkip(f.start),f._isInFirstContentOfListItem&&(A._gfmTasklistFirstContentOfListItem=!0),A.write(c),f._isInFirstContentOfListItem&&(A._gfmTasklistFirstContentOfListItem=void 0)),u=f,f=f.next}for(f=n;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(m=d+1,p.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(A.events=[],f?(f._tokenizer=void 0,f.previous=void 0):p.pop(),d=p.length;d--;){const v=s.slice(p[d],p[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 Ku={resolve:function(e){return Ls(e),e},tokenize:function(e,t){let n;return function(A){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(A)};function r(A){return A===null?o(A):re(A)?e.check(Xu,i,o)(A):(e.consume(A),r)}function o(A){return e.exit("chunkContent"),e.exit("content"),t(A)}function i(A){return e.consume(A),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Xu={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"),Ee(e,o,"linePrefix")};function o(i){if(i===null||re(i))return n(i);const A=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&A&&A[1].type==="linePrefix"&&A[2].sliceSerialize(A[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function Rs(e,t,n,r,o,i,A,s,a){const l=a||Number.POSITIVE_INFINITY;let c=0;return function(p){return p===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(p),e.exit(i),u):p===null||p===32||p===41||Io(p)?n(p):(e.enter(r),e.enter(A),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(p))};function u(p){return p===62?(e.enter(i),e.consume(p),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===62?(e.exit("chunkString"),e.exit(s),u(p)):p===null||p===60||re(p)?n(p):(e.consume(p),p===92?f:d)}function f(p){return p===60||p===62||p===92?(e.consume(p),d):d(p)}function h(p){return c||p!==null&&p!==41&&!Ke(p)?c<l&&p===40?(e.consume(p),c++,h):p===41?(e.consume(p),c--,h):p===null||p===32||p===40||Io(p)?n(p):(e.consume(p),p===92?m:h):(e.exit("chunkString"),e.exit(s),e.exit(A),e.exit(r),t(p))}function m(p){return p===40||p===41||p===92?(e.consume(p),h):h(p)}}function Hs(e,t,n,r,o,i){const A=this;let s,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&&!s||d===94&&!a&&"_hiddenFootnoteSupport"in A.parser.constructs?n(d):d===93?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):re(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||re(d)||a++>999?(e.exit("chunkString"),l(d)):(e.consume(d),s||(s=!pe(d)),d===92?u:c)}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function Us(e,t,n,r,o,i){let A;return function(u){return u===34||u===39||u===40?(e.enter(r),e.enter(o),e.consume(u),e.exit(o),A=u===40?41:u,s):n(u)};function s(u){return u===A?(e.enter(o),e.consume(u),e.exit(o),e.exit(r),t):(e.enter(i),a(u))}function a(u){return u===A?(e.exit(i),s(A)):u===null?n(u):re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ee(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(u){return u===A||u===null||re(u)?(e.exit("chunkString"),a(u)):(e.consume(u),u===92?c:l)}function c(u){return u===A||u===92?(e.consume(u),l):l(u)}}function Ln(e,t){let n;return function r(o){return re(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):pe(o)?Ee(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const Ju={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(u){return e.enter("definition"),function(d){return Hs.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}(u)};function i(u){return o=ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(e.enter("definitionMarker"),e.consume(u),e.exit("definitionMarker"),A):n(u)}function A(u){return Ke(u)?Ln(e,s)(u):s(u)}function s(u){return Rs(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(u)}function a(u){return e.attempt(Zu,l,l)(u)}function l(u){return pe(u)?Ee(e,c,"whitespace")(u):c(u)}function c(u){return u===null||re(u)?(e.exit("definition"),r.parser.defined.push(o),t(u)):n(u)}}},Zu={partial:!0,tokenize:function(e,t,n){return function(A){return Ke(A)?Ln(e,r)(A):n(A)};function r(A){return Us(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(A)}function o(A){return pe(A)?Ee(e,i,"whitespace")(A):i(A)}function i(A){return A===null||re(A)?t(A):n(A)}}},ed={name:"hardBreakEscape",tokenize:function(e,t,n){return function(o){return e.enter("hardBreakEscape"),e.consume(o),r};function r(o){return re(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}},td={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"},mt(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||Ke(a)?(e.exit("atxHeadingSequence"),i(a)):n(a)}function i(a){return a===35?(e.enter("atxHeadingSequence"),A(a)):a===null||re(a)?(e.exit("atxHeading"),t(a)):pe(a)?Ee(e,i,"whitespace")(a):(e.enter("atxHeadingText"),s(a))}function A(a){return a===35?(e.consume(a),A):(e.exit("atxHeadingSequence"),i(a))}function s(a){return a===null||a===35||Ke(a)?(e.exit("atxHeadingText"),i(a)):(e.consume(a),s)}}},nd=["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"],Fs=["pre","script","style","textarea"],rd={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,A,s,a;return function(b){return function(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),l}(b)};function l(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),i=!0,f):b===63?(e.consume(b),o=3,r.interrupt?t:Q):yt(b)?(e.consume(b),A=String.fromCharCode(b),h):n(b)}function c(b){return b===45?(e.consume(b),o=2,u):b===91?(e.consume(b),o=5,s=0,d):yt(b)?(e.consume(b),o=4,r.interrupt?t:Q):n(b)}function u(b){return b===45?(e.consume(b),r.interrupt?t:Q):n(b)}function d(b){return b==="CDATA[".charCodeAt(s++)?(e.consume(b),s===6?r.interrupt?t:D:d):n(b)}function f(b){return yt(b)?(e.consume(b),A=String.fromCharCode(b),h):n(b)}function h(b){if(b===null||b===47||b===62||Ke(b)){const F=b===47,J=A.toLowerCase();return F||i||!Fs.includes(J)?nd.includes(A.toLowerCase())?(o=6,F?(e.consume(b),m):r.interrupt?t(b):D(b)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):i?p(b):v(b)):(o=1,r.interrupt?t(b):D(b))}return b===45||tt(b)?(e.consume(b),A+=String.fromCharCode(b),h):n(b)}function m(b){return b===62?(e.consume(b),r.interrupt?t:D):n(b)}function p(b){return pe(b)?(e.consume(b),p):B(b)}function v(b){return b===47?(e.consume(b),B):b===58||b===95||yt(b)?(e.consume(b),y):pe(b)?(e.consume(b),v):B(b)}function y(b){return b===45||b===46||b===58||b===95||tt(b)?(e.consume(b),y):g(b)}function g(b){return b===61?(e.consume(b),_):pe(b)?(e.consume(b),g):v(b)}function _(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),a=b,P):pe(b)?(e.consume(b),_):E(b)}function P(b){return b===a?(e.consume(b),a=null,k):b===null||re(b)?n(b):(e.consume(b),P)}function E(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||Ke(b)?g(b):(e.consume(b),E)}function k(b){return b===47||b===62||pe(b)?v(b):n(b)}function B(b){return b===62?(e.consume(b),T):n(b)}function T(b){return b===null||re(b)?D(b):pe(b)?(e.consume(b),T):n(b)}function D(b){return b===45&&o===2?(e.consume(b),R):b===60&&o===1?(e.consume(b),L):b===62&&o===4?(e.consume(b),w):b===63&&o===3?(e.consume(b),Q):b===93&&o===5?(e.consume(b),x):!re(b)||o!==6&&o!==7?b===null||re(b)?(e.exit("htmlFlowData"),O(b)):(e.consume(b),D):(e.exit("htmlFlowData"),e.check(od,V,O)(b))}function O(b){return e.check(id,S,V)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),N}function N(b){return b===null||re(b)?O(b):(e.enter("htmlFlowData"),D(b))}function R(b){return b===45?(e.consume(b),Q):D(b)}function L(b){return b===47?(e.consume(b),A="",U):D(b)}function U(b){if(b===62){const F=A.toLowerCase();return Fs.includes(F)?(e.consume(b),w):D(b)}return yt(b)&&A.length<8?(e.consume(b),A+=String.fromCharCode(b),U):D(b)}function x(b){return b===93?(e.consume(b),Q):D(b)}function Q(b){return b===62?(e.consume(b),w):b===45&&o===2?(e.consume(b),Q):D(b)}function w(b){return b===null||re(b)?(e.exit("htmlFlowData"),V(b)):(e.consume(b),w)}function V(b){return e.exit("htmlFlow"),t(b)}}},od={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(hr,t,n)}}},id={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return re(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)}}},ad={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,A;return function(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),s};function s(w){return w===33?(e.consume(w),a):w===47?(e.consume(w),_):w===63?(e.consume(w),y):yt(w)?(e.consume(w),k):n(w)}function a(w){return w===45?(e.consume(w),l):w===91?(e.consume(w),i=0,f):yt(w)?(e.consume(w),v):n(w)}function l(w){return w===45?(e.consume(w),d):n(w)}function c(w){return w===null?n(w):w===45?(e.consume(w),u):re(w)?(A=c,U(w)):(e.consume(w),c)}function u(w){return w===45?(e.consume(w),d):c(w)}function d(w){return w===62?L(w):w===45?u(w):c(w)}function f(w){return w==="CDATA[".charCodeAt(i++)?(e.consume(w),i===6?h:f):n(w)}function h(w){return w===null?n(w):w===93?(e.consume(w),m):re(w)?(A=h,U(w)):(e.consume(w),h)}function m(w){return w===93?(e.consume(w),p):h(w)}function p(w){return w===62?L(w):w===93?(e.consume(w),p):h(w)}function v(w){return w===null||w===62?L(w):re(w)?(A=v,U(w)):(e.consume(w),v)}function y(w){return w===null?n(w):w===63?(e.consume(w),g):re(w)?(A=y,U(w)):(e.consume(w),y)}function g(w){return w===62?L(w):y(w)}function _(w){return yt(w)?(e.consume(w),P):n(w)}function P(w){return w===45||tt(w)?(e.consume(w),P):E(w)}function E(w){return re(w)?(A=E,U(w)):pe(w)?(e.consume(w),E):L(w)}function k(w){return w===45||tt(w)?(e.consume(w),k):w===47||w===62||Ke(w)?B(w):n(w)}function B(w){return w===47?(e.consume(w),L):w===58||w===95||yt(w)?(e.consume(w),T):re(w)?(A=B,U(w)):pe(w)?(e.consume(w),B):L(w)}function T(w){return w===45||w===46||w===58||w===95||tt(w)?(e.consume(w),T):D(w)}function D(w){return w===61?(e.consume(w),O):re(w)?(A=D,U(w)):pe(w)?(e.consume(w),D):B(w)}function O(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),o=w,S):re(w)?(A=O,U(w)):pe(w)?(e.consume(w),O):(e.consume(w),N)}function S(w){return w===o?(e.consume(w),o=void 0,R):w===null?n(w):re(w)?(A=S,U(w)):(e.consume(w),S)}function N(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||Ke(w)?B(w):(e.consume(w),N)}function R(w){return w===47||w===62||Ke(w)?B(w):n(w)}function L(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function U(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return pe(w)?Ee(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):Q(w)}function Q(w){return e.enter("htmlTextData"),A(w)}}},No={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&&mt(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,o,i,A=e.length,s=0;for(;A--;)if(n=e[A][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[A][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(e[A][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=A,n.type!=="labelLink")){s=2;break}}else n.type==="labelEnd"&&(o=A);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+s+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",a,t],["enter",l,t]],i=at(i,e.slice(r+1,r+s+3)),i=at(i,[["enter",c,t]]),i=at(i,Qo(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=at(i,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),i=at(i,e.slice(o+1)),i=at(i,[["exit",a,t]]),mt(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,A=r.events.length;for(;A--;)if((r.events[A][1].type==="labelImage"||r.events[A][1].type==="labelLink")&&!r.events[A][1]._balanced){o=r.events[A][1];break}return function(u){return o?o._inactive?c(u):(i=r.parser.defined.includes(ln(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelEnd"),s):n(u)};function s(u){return u===40?e.attempt(sd,l,i?l:c)(u):u===91?e.attempt(Ad,l,i?a:c)(u):i?l(u):c(u)}function a(u){return e.attempt(ld,l,c)(u)}function l(u){return t(u)}function c(u){return o._balanced=!0,n(u)}}},sd={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 Ke(c)?Ln(e,o)(c):o(c)}function o(c){return c===41?l(c):Rs(e,i,A,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return Ke(c)?Ln(e,s)(c):l(c)}function A(c){return n(c)}function s(c){return c===34||c===39||c===40?Us(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):l(c)}function a(c){return Ke(c)?Ln(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)}}},Ad={tokenize:function(e,t,n){const r=this;return function(A){return Hs.call(r,e,o,i,"reference","referenceMarker","referenceString")(A)};function o(A){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(A):n(A)}function i(A){return n(A)}}},ld={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)}}},cd={name:"labelStartImage",resolveAll:No.resolveAll,tokenize:function(e,t,n){const r=this;return function(A){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(A),e.exit("labelImageMarker"),o};function o(A){return A===91?(e.enter("labelMarker"),e.consume(A),e.exit("labelMarker"),e.exit("labelImage"),i):n(A)}function i(A){return A===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(A):t(A)}}},ud={name:"labelStartLink",resolveAll:No.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)}}},Lo={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Ee(e,t,"linePrefix")}}},gr={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(s){return e.enter("thematicBreak"),function(a){return r=a,i(a)}(s)};function i(s){return s===r?(e.enter("thematicBreakSequence"),A(s)):o>=3&&(s===null||re(s))?(e.exit("thematicBreak"),t(s)):n(s)}function A(s){return s===r?(e.consume(s),o++,A):(e.exit("thematicBreakSequence"),pe(s)?Ee(e,i,"whitespace")(s):i(s))}}},Xe={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(hr,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ee(e,t,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!pe(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(fd,t,o)(i))});function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ee(e,e.attempt(Xe,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,A=0;return function(d){const f=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(f==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:To(d)){if(r.containerState.type||(r.containerState.type=f,e.enter(f,{_container:!0})),f==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(gr,n,a)(d):a(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(d)}return n(d)};function s(d){return To(d)&&++A<10?(e.consume(d),s):(!r.interrupt||A<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(hr,r.interrupt?n:l,e.attempt(dd,u,c))}function l(d){return r.containerState.initialBlankLine=!0,i++,u(d)}function c(d){return pe(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)}}},dd={partial:!0,tokenize:function(e,t,n){const r=this;return Ee(e,function(o){const i=r.events[r.events.length-1];return!pe(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):n(o)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},fd={partial:!0,tokenize:function(e,t,n){const r=this;return Ee(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)}},zs={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 A={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",A,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=A,e.push(["exit",A,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(s){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(s):(e.enter("setextHeadingLine"),o=s,function(c){return e.enter("setextHeadingLineSequence"),i(c)}(s))};function i(s){return s===o?(e.consume(s),i):(e.exit("setextHeadingLineSequence"),pe(s)?Ee(e,A,"lineSuffix")(s):A(s))}function A(s){return s===null||re(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}},pd={tokenize:function(e){const t=this,n=e.attempt(hr,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,Ee(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ku,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)}}},hd={resolveAll:qs()},gd=js("string"),md=js("text");function js(e){return{resolveAll:qs(e==="text"?yd:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,A);return i;function i(l){return a(l)?o(l):A(l)}function A(l){if(l!==null)return t.enter("data"),t.consume(l),s;t.consume(l)}function s(l){return a(l)?(t.exit("data"),o(l)):(t.consume(l),s)}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 qs(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 yd(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,A=o.length,s=-1,a=0;for(;A--;){const l=o[A];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(l===-2)i=!0,a++;else if(l!==-1){A++;break}}if(a){const l={type:n===e.length||i||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:A?s:r.start._bufferIndex+s,_index:r.start._index+A,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 vd={42:Xe,43:Xe,45:Xe,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,62:Ts},wd={91:Ju},bd={[-2]:Oo,[-1]:Oo,32:Oo},_d={35:td,42:gr,45:[zs,gr],60:rd,61:zs,95:gr,96:Ns,126:Ns},Ed={38:Ms,92:Qs},Pd={[-5]:Lo,[-4]:Lo,[-3]:Lo,33:cd,38:Ms,42:Mo,60:[Wu,ad],91:ud,92:[ed,Qs],93:No,95:Mo,96:Yu},Cd={null:[Mo,hd]},kd=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:wd,disable:{null:[]},document:vd,flow:_d,flowInitial:bd,insideSpan:Cd,string:Ed,text:Pd},Symbol.toStringTag,{value:"Module"}));function Sd(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 A=[],s=[];const a={attempt:m(function(y,g){p(y,g.from)}),check:m(h),consume:function(y){re(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===A[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=y},enter:function(y,g){const _=g||{};return _.type=y,_.start=d(),l.events.push(["enter",_,l]),s.push(_),_},exit:function(y){const g=s.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(_,P){let E=-1;const k=[];let B;for(;++E<_.length;){const T=_[E];let D;if(typeof T=="string")D=T;else switch(T){case-5:D="\r";break;case-4:D=`
|
|
20
|
+
`),r=r.replace(/\n/g,"<br/>"),r}createContainer(e){var t;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||nu)();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(Zc)){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?Kc(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=$a[A]||$a[i];if(!this.isSafe(e)||!A.match(eu)&&(!t&&(!a||a===2)||A.startsWith("on")||s.replace(/(\s|\0|�([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[Yc[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 mo[e]?{...t,...mo[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 f=this.applyNodeFilters(u,l);if(!f)return;let h;if(i&&(!s||this.isTagAllowed(u))){this.keyIndex+=1;const m=this.keyIndex;h=this.parseNode(f,d);const p=i(f,h,d);if(p===null)return;if(typeof p<"u")return void A.push(M.cloneElement(p,{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(f,d.tagName?d:t)];else{var c;this.keyIndex+=1;const m=this.extractAttributes(f),p={tagName:u};m&&(p.attributes=m),d.void&&(p.selfClose=d.void),A.push(M.createElement(Va,{...p,key:this.keyIndex},(c=h)!==null&&c!==void 0?c:this.parseNode(f,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(tu);){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 f=r.match(new RegExp(`{{{/${s}}}}`));if(process.env.NODE_ENV!=="production"&&!f)throw new Error(`Closing token missing for interpolated element "${s}".`);d=f.index+f[0].length,n.push(c.createElement(this.replaceTokens(r.slice(i.length,f.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 ru(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 f=new Ja(i??"",e).parse();f.length>0&&(d=f)}return d||(d=s),u?M.createElement(M.Fragment,null,d):M.createElement(Va,{attributes:n,className:r,tagName:c},d)}function ou(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,...f}=e,h=i?[]:a,m=o?[]:A,p=c?[c]:[],v=l?[l]:[];h.forEach(P=>{P.onBeforeParse&&p.push(P.onBeforeParse.bind(P)),P.onAfterParse&&v.push(P.onAfterParse.bind(P))});const y=p.reduce((P,_)=>{const k=_(P,e);if(process.env.NODE_ENV!=="production"&&typeof k!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return k},r??""),g=new Ja(y,f,h,m),E=v.reduce((P,_)=>{const k=_(P,e);if(process.env.NODE_ENV!=="production"&&!Array.isArray(k))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return k},g.parse());return M.createElement(ru,{attributes:t,className:n,containerTagName:e.containerTagName,emptyContent:s,noWrap:d,parsedContent:E.length===0?void 0:E,tagName:u})}const iu=({children:e})=>C("div",{style:{whiteSpace:"normal"},children:C(ou,{content:typeof e=="string"?e:""})}),au={autoConfig:!0},Za=(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)},Au=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},su=e=>{const{getFlow:t}=dr(),{messages:n,replaceMessages:r}=Tn(),{settings:o}=qa(),{hasChatHistoryLoaded:i}=Ya(),s={...e,...au},A=s.htmlComponent?s.htmlComponent:iu;X(()=>{var c,u;if(i){const d=[...n];for(let f=0;f<d.length&&f<(((c=o.chatHistory)==null?void 0:c.maxEntries)??30);f++){const h=d[f];(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"&&Za(c,t(),d)&&(c.type==="rcb-start-simulate-stream-message"&&(c.data.simulateStreamChunker=Au),c.data.message.contentWrapper=A,c.data.message.tags||(c.data.message.tags=[]),c.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};ot(z.PRE_INJECT_MESSAGE,a),ot(z.CHUNK_STREAM_MESSAGE,a),ot(z.START_STREAM_MESSAGE,a),ot(z.START_SIMULATE_STREAM_MESSAGE,a),ot(z.START_SPEAK_AUDIO,async c=>{Za(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},lu=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cu=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,uu={};function eA(e,t){return(uu.jsx?cu:lu).test(e)}const du=/[ \t\n\f\r]/g;function tA(e){return e.replace(du,"")===""}class Qn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}function nA(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 Qn(n,r,t)}function yo(e){return e.toLowerCase()}Qn.prototype.property={},Qn.prototype.normal={},Qn.prototype.space=null;class it{constructor(t,n){this.property=t,this.attribute=n}}it.prototype.space=null,it.prototype.boolean=!1,it.prototype.booleanish=!1,it.prototype.overloadedBoolean=!1,it.prototype.number=!1,it.prototype.commaSeparated=!1,it.prototype.spaceSeparated=!1,it.prototype.commaOrSpaceSeparated=!1,it.prototype.mustUseProperty=!1,it.prototype.defined=!1;let fu=0;const ie=Yt(),Qe=Yt(),rA=Yt(),H=Yt(),Ee=Yt(),an=Yt(),et=Yt();function Yt(){return 2**++fu}const vo=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Qe,commaOrSpaceSeparated:et,commaSeparated:an,number:H,overloadedBoolean:rA,spaceSeparated:Ee},Symbol.toStringTag,{value:"Module"})),wo=Object.keys(vo);class bo extends it{constructor(t,n,r,o){let i=-1;if(super(t,n),oA(this,"space",o),typeof r=="number")for(;++i<wo.length;){const s=wo[i];oA(this,wo[i],(r&vo[s])===vo[s])}}}function oA(e,t,n){n&&(e[t]=n)}bo.prototype.defined=!0;const pu={}.hasOwnProperty;function An(e){const t={},n={};let r;for(r in e.properties)if(pu.call(e.properties,r)){const o=e.properties[r],i=new bo(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[yo(r)]=r,n[yo(i.attribute)]=r}return new Qn(t,n,e.space)}const iA=An({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}}),aA=An({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function AA(e,t){return t in e?e[t]:t}function sA(e,t){return AA(e,t.toLowerCase())}const lA=An({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:sA,properties:{xmlns:null,xmlnsXLink:null}}),cA=An({transform:(e,t)=>t==="role"?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:Ee,ariaCurrent:null,ariaDescribedBy:Ee,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:Ee,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:Ee,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ee,ariaLevel:H,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:Ee,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:Ee,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:Qe,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null}}),hu=An({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:sA,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:an,acceptCharset:Ee,accessKey:Ee,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:Ee,autoFocus:ie,autoPlay:ie,blocking:Ee,capture:null,charSet:null,checked:ie,cite:null,className:Ee,cols:H,colSpan:null,content:null,contentEditable:Qe,controls:ie,controlsList:Ee,coords:H|an,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:rA,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:Ee,height:H,hidden:ie,high:H,href:null,hrefLang:null,htmlFor:Ee,httpEquiv:Ee,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:Ee,itemRef:Ee,itemScope:ie,itemType:Ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,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:ie,optimum:H,pattern:null,ping:Ee,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:Ee,required:ie,reversed:ie,rows:H,rowSpan:H,sandbox:Ee,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Qe,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ee,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:H,security:null,unselectable:null}}),gu=An({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:AA,properties:{about:et,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:Ee,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:an,g2:an,glyphName:an,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,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:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),mu=/^data[-\w.:]+$/i,uA=/-[a-z]/g,yu=/[A-Z]/g;function vu(e){return"-"+e.toLowerCase()}function wu(e){return e.charAt(1).toUpperCase()}const bu={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"},Eu=nA([aA,iA,lA,cA,hu],"html"),Eo=nA([aA,iA,lA,cA,gu],"svg");function dA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _o,fA,pA,sn={},_u=function(){if(pA)return sn;pA=1;var e=sn&&sn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(sn,"__esModule",{value:!0}),sn.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(fA)return _o;fA=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 _o=function(d,f){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];f=f||{};var h=1,m=1;function p(T){var D=T.match(r);D&&(h+=D.length);var O=T.lastIndexOf(`
|
|
21
|
+
`);m=~O?T.length-O:m+T.length}function v(){var T={line:h,column:m};return function(D){return D.position=new y(T),P(),D}}function y(T){this.start=T,this.end={line:h,column:m},this.source=f.source}function g(T){var D=new Error(f.source+":"+h+":"+m+": "+T);if(D.reason=T,D.filename=f.source,D.line=h,D.column=m,D.source=d,!f.silent)throw D}function E(T){var D=T.exec(d);if(D){var O=D[0];return p(O),d=d.slice(O.length),D}}function P(){E(o)}function _(T){var D;for(T=T||[];D=k();)D!==!1&&T.push(D);return T}function k(){var T=v();if(d.charAt(0)=="/"&&d.charAt(1)=="*"){for(var D=2;c!=d.charAt(D)&&(d.charAt(D)!="*"||d.charAt(D+1)!="/");)++D;if(D+=2,c===d.charAt(D-1))return g("End of comment missing");var O=d.slice(2,D-2);return m+=2,p(O),d=d.slice(D),m+=2,T({type:"comment",comment:O})}}function B(){var T=v(),D=E(i);if(D){if(k(),!E(s))return g("property missing ':'");var O=E(A),S=T({type:"declaration",property:u(D[0].replace(n,c)),value:O?u(O[0].replace(n,c)):c});return E(a),S}}return y.prototype.content=d,P(),function(){var T,D=[];for(_(D);T=B();)T!==!1&&(D.push(T),_(D));return D}()},_o}());return sn}();const hA=dA(_u),Pu=hA.default||hA,gA=mA("end"),Po=mA("start");function mA(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 Mn(e){return e&&typeof e=="object"?"position"in e||"type"in e?yA(e.position):"start"in e||"end"in e?yA(e):"line"in e||"column"in e?Co(e):"":""}function Co(e){return vA(e&&e.line)+":"+vA(e&&e.column)}function yA(e){return Co(e&&e.start)+"-"+Co(e&&e.end)}function vA(e){return e&&typeof e=="number"?e:1}class qe 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=Mn(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}}qe.prototype.file="",qe.prototype.name="",qe.prototype.reason="",qe.prototype.message="",qe.prototype.stack="",qe.prototype.column=void 0,qe.prototype.line=void 0,qe.prototype.ancestors=void 0,qe.prototype.cause=void 0,qe.prototype.fatal=void 0,qe.prototype.place=void 0,qe.prototype.ruleId=void 0,qe.prototype.source=void 0;const ko={}.hasOwnProperty,Cu=new Map,ku=/[A-Z]/g,Su=/-([a-z])/g,Du=new Set(["table","tbody","thead","tfoot","tr"]),Bu=new Set(["td","th"]),wA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xu(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 f=Array.isArray(u.children),h=Po(l);return A(c,u,d,f,{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,f){const h=Array.isArray(d.children)?a:A;return f?h(u,d,f):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"?Eo:Eu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=bA(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function bA(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=Eo,r.schema=A),r.ancestors.push(o);const a=_A(r,o.tagName,!1),l=function(u,d){const f={};let h,m;for(m in d.properties)if(m!=="children"&&ko.call(d.properties,m)){const p=Iu(u,m,d.properties[m]);if(p){const[v,y]=p;u.tableCellAlignToStyle&&v==="align"&&typeof y=="string"&&Bu.has(d.tagName)?h=y:f[v]=y}}return h&&((f.style||(f.style={}))[u.stylePropertyNameCase==="css"?"text-align":"textAlign"]=h),f}(r,o);let c=Do(r,o);return Du.has(o.tagName)&&(c=c.filter(function(u){return typeof u!="string"||!function(d){return typeof d=="object"?d.type==="text"&&tA(d.value):tA(d)}(u)})),EA(r,l,a,o),So(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)}On(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=Eo,r.schema=A),r.ancestors.push(o);const a=o.name===null?r.Fragment:_A(r,o.name,!0),l=function(u,d){const f={};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 p=m.expression;p.type;const v=p.properties[0];v.type,Object.assign(f,u.evaluater.evaluateExpression(v.argument))}else On(u,d.position);else{const m=h.name;let p;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,p=u.evaluater.evaluateExpression(v.expression)}else On(u,d.position);else p=h.value===null||h.value;f[m]=p}return f}(r,o),c=Do(r,o);return EA(r,l,a,o),So(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);On(r,o.position)}(e,t):t.type==="root"?function(r,o,i){const s={};return So(s,Do(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 EA(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function So(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Do(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Cu;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=bA(e,i,s);A!==void 0&&n.push(A)}return n}function Iu(e,t,n){const r=function(o,i){const s=yo(i);let A=i,a=it;if(s in o.normal)return o.property[o.normal[s]];if(s.length>4&&s.slice(0,4)==="data"&&mu.test(i)){if(i.charAt(4)==="-"){const l=i.slice(5).replace(uA,wu);A="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=i.slice(4);if(!uA.test(l)){let c=l.replace(yu,vu);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}a=bo}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{Pu(s,a)}catch(l){if(!i.ignoreInvalidStyle){const c=l,u=new qe("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(Su,Qu)),A[u]=c}}(e,String(n));return e.stylePropertyNameCase==="css"&&(o=function(i){const s={};let A;for(A in i)ko.call(i,A)&&(s[Tu(A)]=i[A]);return s}(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?bu[r.property]||r.property:r.attribute,n]}}function _A(e,t,n){let r;if(n)if(t.includes(".")){const o=t.split(".");let i,s=-1;for(;++s<o.length;){const A=eA(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=eA(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 ko.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);On(e)}function On(e,t){const n=new qe("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(ku,Mu);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Qu(e,t){return t.toUpperCase()}function Mu(e){return"-"+e.toLowerCase()}const Bo={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"]},pr={};function PA(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 CA(e.children,t,n)}return Array.isArray(e)?CA(e,t,n):""}function CA(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=PA(e[o],t,n);return r.join("")}const kA=document.createElement("i");function xo(e){const t="&"+e+";";kA.innerHTML=t;const n=kA.textContent;return(n.charCodeAt(n.length-1)!==59||e==="semi")&&n!==t&&n}function mt(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 at(e,t){return e.length>0?(mt(e,e.length,0,t),e):t}const SA={}.hasOwnProperty;function Ou(e){const t={};let n=-1;for(;++n<e.length;)Nu(t,e[n]);return t}function Nu(e,t){let n;for(n in t){const r=(SA.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){SA.call(r,i)||(r[i]=[]);const s=o[i];Lu(r[i],Array.isArray(s)?s:s?[s]:[])}}}function Lu(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);mt(e,0,0,r)}function DA(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 ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const yt=Nt(/[A-Za-z]/),tt=Nt(/[\dA-Za-z]/),Ru=Nt(/[#-'*+\--9=?A-Z^-~]/);function Io(e){return e!==null&&(e<32||e===127)}const To=Nt(/\d/),Hu=Nt(/[\dA-Fa-f]/),Uu=Nt(/[!-/:-@[-`{-~]/);function re(e){return e!==null&&e<-2}function Ke(e){return e!==null&&(e<0||e===32)}function pe(e){return e===-2||e===-1||e===32}const Fu=Nt(new RegExp("\\p{P}|\\p{S}","u")),zu=Nt(/\s/);function Nt(e){return function(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function cn(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&tt(e.charCodeAt(n+1))&&tt(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 _e(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(A){return pe(A)?(e.enter(n),s(A)):t(A)};function s(A){return pe(A)&&i++<o?(e.consume(A),s):(e.exit(n),t(A))}}const ju={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"),_e(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)):re(i)?(e.consume(i),e.exit("chunkText"),r):(e.consume(i),o)}}},Wu={tokenize:function(e){const t=this,n=[];let r,o,i,s=0;return A;function A(g){if(s<n.length){const E=n[s];return t.containerState=E[1],e.attempt(E[0].continuation,a,l)(g)}return l(g)}function a(g){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const E=t.events.length;let P,_=E;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){P=t.events[_][1].end;break}v(s);let k=E;for(;k<t.events.length;)t.events[k][1].end={...P},k++;return mt(t.events,_+1,0,t.events.slice(E)),t.events.length=k,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(BA,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(BA,f,h)(g)}function f(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?(p(e.exit("chunkFlow"),!0),v(0),void e.consume(g)):re(g)?(e.consume(g),p(e.exit("chunkFlow")),s=0,t.interrupt=void 0,A):(e.consume(g),m)}function p(g,E){const P=t.sliceStream(g);if(E&&P.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(P),t.parser.lazy[g.start.line]){let _=r.events.length;for(;_--;)if(r.events[_][1].start.offset<i&&(!r.events[_][1].end||r.events[_][1].end.offset>i))return;const k=t.events.length;let B,T,D=k;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(B){T=t.events[D][1].end;break}B=!0}for(v(s),_=k;_<t.events.length;)t.events[_][1].end={...T},_++;mt(t.events,D+1,0,t.events.slice(k)),t.events.length=_}}function v(g){let E=n.length;for(;E-- >g;){const P=n[E];t.containerState=P[1],P[0].exit.call(t,e)}n.length=g}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},BA={tokenize:function(e,t,n){return _e(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function xA(e){return e===null||Ke(e)||zu(e)?1:Fu(e)?2:void 0}function Qo(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 Mo={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};IA(u,-A),IA(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=at(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=at(a,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),a=at(a,Qo(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=at(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=at(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,mt(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=xA(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=xA(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 IA(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const qu={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 yt(d)?(e.consume(d),i):d===64?n(d):a(d)}function i(d){return d===43||d===45||d===46||tt(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||tt(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||Io(d)?n(d):(e.consume(d),A)}function a(d){return d===64?(e.consume(d),l):Ru(d)?(e.consume(d),a):n(d)}function l(d){return tt(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||tt(d))&&r++<63){const f=d===45?u:c;return e.consume(d),f}return n(d)}}},hr={partial:!0,tokenize:function(e,t,n){return function(o){return pe(o)?_e(e,r,"linePrefix")(o):r(o)};function r(o){return o===null||re(o)?t(o):n(o)}}},TA={continuation:{tokenize:function(e,t,n){const r=this;return function(i){return pe(i)?_e(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return e.attempt(TA,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 pe(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}},QA={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 Uu(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}},MA={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=tt,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=Hu,l):(e.enter("characterReferenceValue"),o=7,i=To,l(c))}function l(c){if(c===59&&s){const u=e.exit("characterReferenceValue");return i!==tt||xo(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)}}},OA={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)}}},NA={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(g,E,P){let _=0;return k;function k(S){return g.enter("lineEnding"),g.consume(S),g.exit("lineEnding"),B}function B(S){return g.enter("codeFencedFence"),pe(S)?_e(g,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):T(S)}function T(S){return S===i?(g.enter("codeFencedFenceSequence"),D(S)):P(S)}function D(S){return S===i?(_++,g.consume(S),D):_>=A?(g.exit("codeFencedFenceSequence"),pe(S)?_e(g,O,"whitespace")(S):O(S)):P(S)}function O(S){return S===null||re(S)?(g.exit("codeFencedFence"),E(S)):P(S)}}};let i,s=0,A=0;return function(g){return function(E){const P=r.events[r.events.length-1];return s=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,i=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(E)}(g)};function a(g){return g===i?(A++,e.consume(g),a):A<3?n(g):(e.exit("codeFencedFenceSequence"),pe(g)?_e(e,l,"whitespace")(g):l(g))}function l(g){return g===null||re(g)?(e.exit("codeFencedFence"),r.interrupt?t(g):e.check(OA,f,y)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(g))}function c(g){return g===null||re(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(g)):pe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_e(e,u,"whitespace")(g)):g===96&&g===i?n(g):(e.consume(g),c)}function u(g){return g===null||re(g)?l(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||re(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(g)):g===96&&g===i?n(g):(e.consume(g),d)}function f(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&&pe(g)?_e(e,p,"linePrefix",s+1)(g):p(g)}function p(g){return g===null||re(g)?e.check(OA,f,y)(g):(e.enter("codeFlowValue"),v(g))}function v(g){return g===null||re(g)?(e.exit("codeFlowValue"),p(g)):(e.consume(g),v)}function y(g){return e.exit("codeFenced"),t(g)}}},Oo={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(a){return e.enter("codeIndented"),_e(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):re(a)?e.attempt(Gu,i,A)(a):(e.enter("codeFlowValue"),s(a))}function s(a){return a===null||re(a)?(e.exit("codeFlowValue"),i(a)):(e.consume(a),s)}function A(a){return e.exit("codeIndented"),t(a)}}},Gu={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):re(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):_e(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):re(s)?o(s):n(s)}}},Yu={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)):re(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||re(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 $u{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&&Nn(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),Nn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Nn(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);Nn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Nn(this.left,n.reverse())}}}function Nn(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 LA(e){const t={};let n,r,o,i,s,A,a,l=-1;const c=new $u(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,Vu(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 mt(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}function Vu(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,f=n,h=0,m=0;const p=[m];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),u&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),u=f,f=f.next}for(f=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,p.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):p.pop(),d=p.length;d--;){const v=A.slice(p[d],p[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 Ku={resolve:function(e){return LA(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):re(s)?e.check(Xu,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}}},Xu={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"),_e(e,o,"linePrefix")};function o(i){if(i===null||re(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 RA(e,t,n,r,o,i,s,A,a){const l=a||Number.POSITIVE_INFINITY;let c=0;return function(p){return p===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(p),e.exit(i),u):p===null||p===32||p===41||Io(p)?n(p):(e.enter(r),e.enter(s),e.enter(A),e.enter("chunkString",{contentType:"string"}),h(p))};function u(p){return p===62?(e.enter(i),e.consume(p),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(A),e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===62?(e.exit("chunkString"),e.exit(A),u(p)):p===null||p===60||re(p)?n(p):(e.consume(p),p===92?f:d)}function f(p){return p===60||p===62||p===92?(e.consume(p),d):d(p)}function h(p){return c||p!==null&&p!==41&&!Ke(p)?c<l&&p===40?(e.consume(p),c++,h):p===41?(e.consume(p),c--,h):p===null||p===32||p===40||Io(p)?n(p):(e.consume(p),p===92?m:h):(e.exit("chunkString"),e.exit(A),e.exit(s),e.exit(r),t(p))}function m(p){return p===40||p===41||p===92?(e.consume(p),h):h(p)}}function HA(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):re(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||re(d)||a++>999?(e.exit("chunkString"),l(d)):(e.consume(d),A||(A=!pe(d)),d===92?u:c)}function u(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function UA(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):re(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),_e(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(u))}function l(u){return u===s||u===null||re(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 Ln(e,t){let n;return function r(o){return re(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):pe(o)?_e(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const Ju={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(u){return e.enter("definition"),function(d){return HA.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}(u)};function i(u){return o=ln(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 Ke(u)?Ln(e,A)(u):A(u)}function A(u){return RA(e,a,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(u)}function a(u){return e.attempt(Zu,l,l)(u)}function l(u){return pe(u)?_e(e,c,"whitespace")(u):c(u)}function c(u){return u===null||re(u)?(e.exit("definition"),r.parser.defined.push(o),t(u)):n(u)}}},Zu={partial:!0,tokenize:function(e,t,n){return function(s){return Ke(s)?Ln(e,r)(s):n(s)};function r(s){return UA(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return pe(s)?_e(e,i,"whitespace")(s):i(s)}function i(s){return s===null||re(s)?t(s):n(s)}}},ed={name:"hardBreakEscape",tokenize:function(e,t,n){return function(o){return e.enter("hardBreakEscape"),e.consume(o),r};function r(o){return re(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}},td={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"},mt(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||Ke(a)?(e.exit("atxHeadingSequence"),i(a)):n(a)}function i(a){return a===35?(e.enter("atxHeadingSequence"),s(a)):a===null||re(a)?(e.exit("atxHeading"),t(a)):pe(a)?_e(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||Ke(a)?(e.exit("atxHeadingText"),i(a)):(e.consume(a),A)}}},nd=["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"],FA=["pre","script","style","textarea"],rd={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(b){return function(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),l}(b)};function l(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),i=!0,f):b===63?(e.consume(b),o=3,r.interrupt?t:Q):yt(b)?(e.consume(b),s=String.fromCharCode(b),h):n(b)}function c(b){return b===45?(e.consume(b),o=2,u):b===91?(e.consume(b),o=5,A=0,d):yt(b)?(e.consume(b),o=4,r.interrupt?t:Q):n(b)}function u(b){return b===45?(e.consume(b),r.interrupt?t:Q):n(b)}function d(b){return b==="CDATA[".charCodeAt(A++)?(e.consume(b),A===6?r.interrupt?t:D:d):n(b)}function f(b){return yt(b)?(e.consume(b),s=String.fromCharCode(b),h):n(b)}function h(b){if(b===null||b===47||b===62||Ke(b)){const F=b===47,J=s.toLowerCase();return F||i||!FA.includes(J)?nd.includes(s.toLowerCase())?(o=6,F?(e.consume(b),m):r.interrupt?t(b):D(b)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):i?p(b):v(b)):(o=1,r.interrupt?t(b):D(b))}return b===45||tt(b)?(e.consume(b),s+=String.fromCharCode(b),h):n(b)}function m(b){return b===62?(e.consume(b),r.interrupt?t:D):n(b)}function p(b){return pe(b)?(e.consume(b),p):B(b)}function v(b){return b===47?(e.consume(b),B):b===58||b===95||yt(b)?(e.consume(b),y):pe(b)?(e.consume(b),v):B(b)}function y(b){return b===45||b===46||b===58||b===95||tt(b)?(e.consume(b),y):g(b)}function g(b){return b===61?(e.consume(b),E):pe(b)?(e.consume(b),g):v(b)}function E(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),a=b,P):pe(b)?(e.consume(b),E):_(b)}function P(b){return b===a?(e.consume(b),a=null,k):b===null||re(b)?n(b):(e.consume(b),P)}function _(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||Ke(b)?g(b):(e.consume(b),_)}function k(b){return b===47||b===62||pe(b)?v(b):n(b)}function B(b){return b===62?(e.consume(b),T):n(b)}function T(b){return b===null||re(b)?D(b):pe(b)?(e.consume(b),T):n(b)}function D(b){return b===45&&o===2?(e.consume(b),R):b===60&&o===1?(e.consume(b),L):b===62&&o===4?(e.consume(b),w):b===63&&o===3?(e.consume(b),Q):b===93&&o===5?(e.consume(b),x):!re(b)||o!==6&&o!==7?b===null||re(b)?(e.exit("htmlFlowData"),O(b)):(e.consume(b),D):(e.exit("htmlFlowData"),e.check(od,V,O)(b))}function O(b){return e.check(id,S,V)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),N}function N(b){return b===null||re(b)?O(b):(e.enter("htmlFlowData"),D(b))}function R(b){return b===45?(e.consume(b),Q):D(b)}function L(b){return b===47?(e.consume(b),s="",U):D(b)}function U(b){if(b===62){const F=s.toLowerCase();return FA.includes(F)?(e.consume(b),w):D(b)}return yt(b)&&s.length<8?(e.consume(b),s+=String.fromCharCode(b),U):D(b)}function x(b){return b===93?(e.consume(b),Q):D(b)}function Q(b){return b===62?(e.consume(b),w):b===45&&o===2?(e.consume(b),Q):D(b)}function w(b){return b===null||re(b)?(e.exit("htmlFlowData"),V(b)):(e.consume(b),w)}function V(b){return e.exit("htmlFlow"),t(b)}}},od={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(hr,t,n)}}},id={partial:!0,tokenize:function(e,t,n){const r=this;return function(i){return re(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)}}},ad={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,s;return function(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),A};function A(w){return w===33?(e.consume(w),a):w===47?(e.consume(w),E):w===63?(e.consume(w),y):yt(w)?(e.consume(w),k):n(w)}function a(w){return w===45?(e.consume(w),l):w===91?(e.consume(w),i=0,f):yt(w)?(e.consume(w),v):n(w)}function l(w){return w===45?(e.consume(w),d):n(w)}function c(w){return w===null?n(w):w===45?(e.consume(w),u):re(w)?(s=c,U(w)):(e.consume(w),c)}function u(w){return w===45?(e.consume(w),d):c(w)}function d(w){return w===62?L(w):w===45?u(w):c(w)}function f(w){return w==="CDATA[".charCodeAt(i++)?(e.consume(w),i===6?h:f):n(w)}function h(w){return w===null?n(w):w===93?(e.consume(w),m):re(w)?(s=h,U(w)):(e.consume(w),h)}function m(w){return w===93?(e.consume(w),p):h(w)}function p(w){return w===62?L(w):w===93?(e.consume(w),p):h(w)}function v(w){return w===null||w===62?L(w):re(w)?(s=v,U(w)):(e.consume(w),v)}function y(w){return w===null?n(w):w===63?(e.consume(w),g):re(w)?(s=y,U(w)):(e.consume(w),y)}function g(w){return w===62?L(w):y(w)}function E(w){return yt(w)?(e.consume(w),P):n(w)}function P(w){return w===45||tt(w)?(e.consume(w),P):_(w)}function _(w){return re(w)?(s=_,U(w)):pe(w)?(e.consume(w),_):L(w)}function k(w){return w===45||tt(w)?(e.consume(w),k):w===47||w===62||Ke(w)?B(w):n(w)}function B(w){return w===47?(e.consume(w),L):w===58||w===95||yt(w)?(e.consume(w),T):re(w)?(s=B,U(w)):pe(w)?(e.consume(w),B):L(w)}function T(w){return w===45||w===46||w===58||w===95||tt(w)?(e.consume(w),T):D(w)}function D(w){return w===61?(e.consume(w),O):re(w)?(s=D,U(w)):pe(w)?(e.consume(w),D):B(w)}function O(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),o=w,S):re(w)?(s=O,U(w)):pe(w)?(e.consume(w),O):(e.consume(w),N)}function S(w){return w===o?(e.consume(w),o=void 0,R):w===null?n(w):re(w)?(s=S,U(w)):(e.consume(w),S)}function N(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||Ke(w)?B(w):(e.consume(w),N)}function R(w){return w===47||w===62||Ke(w)?B(w):n(w)}function L(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function U(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return pe(w)?_e(e,Q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):Q(w)}function Q(w){return e.enter("htmlTextData"),s(w)}}},No={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&&mt(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=at(i,e.slice(r+1,r+A+3)),i=at(i,[["enter",c,t]]),i=at(i,Qo(t.parser.constructs.insideSpan.null,e.slice(r+A+4,o-3),t)),i=at(i,[["exit",c,t],e[o-2],e[o-1],["exit",l,t]]),i=at(i,e.slice(o+1)),i=at(i,[["exit",a,t]]),mt(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(ln(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(Ad,l,i?l:c)(u):u===91?e.attempt(sd,l,i?a:c)(u):i?l(u):c(u)}function a(u){return e.attempt(ld,l,c)(u)}function l(u){return t(u)}function c(u){return o._balanced=!0,n(u)}}},Ad={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 Ke(c)?Ln(e,o)(c):o(c)}function o(c){return c===41?l(c):RA(e,i,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return Ke(c)?Ln(e,A)(c):l(c)}function s(c){return n(c)}function A(c){return c===34||c===39||c===40?UA(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):l(c)}function a(c){return Ke(c)?Ln(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)}}},sd={tokenize:function(e,t,n){const r=this;return function(s){return HA.call(r,e,o,i,"reference","referenceMarker","referenceString")(s)};function o(s){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function i(s){return n(s)}}},ld={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)}}},cd={name:"labelStartImage",resolveAll:No.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)}}},ud={name:"labelStartLink",resolveAll:No.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)}}},Lo={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),_e(e,t,"linePrefix")}}},gr={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||re(A))?(e.exit("thematicBreak"),t(A)):n(A)}function s(A){return A===r?(e.consume(A),o++,s):(e.exit("thematicBreakSequence"),pe(A)?_e(e,i,"whitespace")(A):i(A))}}},Xe={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(hr,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_e(e,t,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!pe(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(fd,t,o)(i))});function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,_e(e,e.attempt(Xe,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 f=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(f==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:To(d)){if(r.containerState.type||(r.containerState.type=f,e.enter(f,{_container:!0})),f==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(gr,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 To(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(hr,r.interrupt?n:l,e.attempt(dd,u,c))}function l(d){return r.containerState.initialBlankLine=!0,i++,u(d)}function c(d){return pe(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)}}},dd={partial:!0,tokenize:function(e,t,n){const r=this;return _e(e,function(o){const i=r.events[r.events.length-1];return!pe(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):n(o)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},fd={partial:!0,tokenize:function(e,t,n){const r=this;return _e(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)}},zA={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"),pe(A)?_e(e,s,"lineSuffix")(A):s(A))}function s(A){return A===null||re(A)?(e.exit("setextHeadingLine"),t(A)):n(A)}}},pd={tokenize:function(e){const t=this,n=e.attempt(hr,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,_e(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Ku,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)}}},hd={resolveAll:WA()},gd=jA("string"),md=jA("text");function jA(e){return{resolveAll:WA(e==="text"?yd: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 WA(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 yd(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 vd={42:Xe,43:Xe,45:Xe,48:Xe,49:Xe,50:Xe,51:Xe,52:Xe,53:Xe,54:Xe,55:Xe,56:Xe,57:Xe,62:TA},wd={91:Ju},bd={[-2]:Oo,[-1]:Oo,32:Oo},Ed={35:td,42:gr,45:[zA,gr],60:rd,61:zA,95:gr,96:NA,126:NA},_d={38:MA,92:QA},Pd={[-5]:Lo,[-4]:Lo,[-3]:Lo,33:cd,38:MA,42:Mo,60:[qu,ad],91:ud,92:[ed,QA],93:No,95:Mo,96:Yu},Cd={null:[Mo,hd]},kd=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:wd,disable:{null:[]},document:vd,flow:Ed,flowInitial:bd,insideSpan:Cd,string:_d,text:Pd},Symbol.toStringTag,{value:"Module"}));function Sd(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){p(y,g.from)}),check:m(h),consume:function(y){re(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 E=g||{};return E.type=y,E.start=d(),l.events.push(["enter",E,l]),A.push(E),E},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(E,P){let _=-1;const k=[];let B;for(;++_<E.length;){const T=E[_];let D;if(typeof T=="string")D=T;else switch(T){case-5:D="\r";break;case-4:D=`
|
|
22
22
|
`;break;case-3:D=`\r
|
|
23
|
-
`;break;case-2:D=P?" ":" ";break;case-1:if(!P&&B)continue;D=" ";break;default:D=String.fromCharCode(T)}B=T===-2,k.push(D)}return k.join("")}(u(y),g)},sliceStream:u,write:function(y){return A=at(A,y),function(){let g;for(;r._index<A.length;){const _=A[r._index];if(typeof _=="string")for(g=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===g&&r._bufferIndex<_.length;)f(_.charCodeAt(r._bufferIndex));else f(_)}}(),A[A.length-1]!==null?[]:(p(t,0),l.events=Qo(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,_){const P=_.start._index,E=_.start._bufferIndex,k=_.end._index,B=_.end._bufferIndex;let T;if(P===k)T=[g[P].slice(E,B)];else{if(T=g.slice(P,k),E>-1){const D=T[0];typeof D=="string"?T[0]=D.slice(E):T.shift()}B>0&&T.push(g[k].slice(0,B))}return T}(A,y)}function d(){const{_bufferIndex:y,_index:g,line:_,column:P,offset:E}=r;return{_bufferIndex:y,_index:g,line:_,column:P,offset:E}}function f(y){c=c(y)}function h(y,g){g.restore()}function m(y,g){return function(_,P,E){let k,B,T,D;return Array.isArray(_)?O(_):"tokenize"in _?O([_]):function(L){return U;function U(x){const Q=x!==null&&L[x],w=x!==null&&L.null;return O([...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(w)?w:w?[w]:[]])(x)}}(_);function O(L){return k=L,B=0,L.length===0?E:S(L[B])}function S(L){return function(U){return D=function(){const x=d(),Q=l.previous,w=l.currentConstruct,V=l.events.length,b=Array.from(s);return{from:V,restore:F};function F(){r=x,l.previous=Q,l.currentConstruct=w,l.events.length=V,s=b,v()}}(),T=L,L.partial||(l.currentConstruct=L),L.name&&l.parser.constructs.disable.null.includes(L.name)?R():L.tokenize.call(g?Object.assign(Object.create(l),g):l,a,N,R)(U)}}function N(L){return y(T,D),P}function R(L){return D.restore(),++B<k.length?S(k[B]):E}}}function p(y,g){y.resolveAll&&!i.includes(y)&&i.push(y),y.resolve&&mt(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 Ws=/[\0\t\n\r]/g,Dd=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Bd(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Ds(n.slice(o?2:1),o?16:10)}return xo(n)||e}const Gs={}.hasOwnProperty;function xd(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(xe),autolinkProtocol:S,autolinkEmail:S,atxHeading:a(ge),blockQuote:a(W),characterEscape:S,characterReference:S,codeFenced:a(he),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(he,l),codeText:a(se,l),codeTextData:S,data:S,codeFlowValue:S,definition:a(Ce),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(we),hardBreakEscape:a(ze),hardBreakTrailing:a(ze),htmlFlow:a(Ne,l),htmlFlowData:S,htmlText:a(Ne,l),htmlTextData:S,image:a(fn),label:l,link:a(xe),listItem:a(Be),listItemValue:m,listOrdered:a(ut,h),listUnordered:a(ut),paragraph:a(St),reference:ve,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(ge),strong:a(pn),thematicBreak:a(bt)},exit:{atxHeading:u(),atxHeadingSequence:B,autolink:u(),autolinkEmail:j,autolinkProtocol:st,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:Ve,characterReferenceMarkerNumeric:Ve,characterReferenceValue:Me,characterReference:Re,codeFenced:u(g),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:N,codeIndented:u(_),codeText:u(Q),codeTextData:N,data:N,definition:u(),definitionDestinationString:k,definitionLabelString:P,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(L),hardBreakTrailing:u(L),htmlFlow:u(U),htmlFlowData:N,htmlText:u(x),htmlTextData:N,image:u(V),label:F,labelText:b,lineEnding:R,link:u(w),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ue,resourceDestinationString:J,resourceTitleString:K,resource:oe,setextHeading:u(O),setextHeadingLineSequence:D,setextHeadingText:T,strong:u(),thematicBreak:u()}};Ys(o,(r||{}).mdastExtensions||[]);const i={};return A;function A(I){let G={type:"root",children:[]};const Z={stack:[G],tokenStack:[],config:o,enter:c,exit:d,buffer:l,resume:f,data:i},$=[];let le=-1;for(;++le<I.length;)(I[le][1].type==="listOrdered"||I[le][1].type==="listUnordered")&&(I[le][0]==="enter"?$.push(le):le=s(I,$.pop(),le));for(le=-1;++le<I.length;){const de=o[I[le][0]];Gs.call(de,I[le][1].type)&&de[I[le][1].type].call(Object.assign({sliceSerialize:I[le][2].sliceSerialize},Z),I[le][1])}if(Z.tokenStack.length>0){const de=Z.tokenStack[Z.tokenStack.length-1];(de[1]||$s).call(Z,void 0,de[0])}for(G.position={start:Lt(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:Lt(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<o.transforms.length;)G=o.transforms[le](G)||G;return G}function s(I,G,Z){let $,le,de,nt,ke=G-1,me=-1,je=!1;for(;++ke<=Z;){const fe=I[ke];switch(fe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":fe[0]==="enter"?me++:me--,nt=void 0;break;case"lineEndingBlank":fe[0]==="enter"&&($&&!nt&&!me&&!de&&(de=ke),nt=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:nt=void 0}if(!me&&fe[0]==="enter"&&fe[1].type==="listItemPrefix"||me===-1&&fe[0]==="exit"&&(fe[1].type==="listUnordered"||fe[1].type==="listOrdered")){if($){let be=ke;for(le=void 0;be--;){const qe=I[be];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;le&&(I[le][1].type="lineEndingBlank",je=!0),qe[1].type="lineEnding",le=be}else if(qe[1].type!=="linePrefix"&&qe[1].type!=="blockQuotePrefix"&&qe[1].type!=="blockQuotePrefixWhitespace"&&qe[1].type!=="blockQuoteMarker"&&qe[1].type!=="listItemIndent")break}de&&(!le||de<le)&&($._spread=!0),$.end=Object.assign({},le?I[le][1].start:fe[1].end),I.splice(le||ke,0,["exit",$,fe[2]]),ke++,Z++}if(fe[1].type==="listItemPrefix"){const be={type:"listItem",_spread:!1,start:Object.assign({},fe[1].start),end:void 0};$=be,I.splice(ke,0,["enter",be,fe[2]]),ke++,Z++,de=void 0,nt=!0}}}return I[G][1]._spread=je,Z}function a(I,G){return Z;function Z($){c.call(this,I($),$),G&&G.call(this,$)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(I,G,Z){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([G,Z||void 0]),I.position={start:Lt(G.start),end:void 0}}function u(I){return G;function G(Z){I&&I.call(this,Z),d.call(this,Z)}}function d(I,G){const Z=this.stack.pop(),$=this.tokenStack.pop();if(!$)throw new Error("Cannot close `"+I.type+"` ("+Mn({start:I.start,end:I.end})+"): itโs not open");$[0].type!==I.type&&(G?G.call(this,I,$[0]):($[1]||$s).call(this,I,$[0])),Z.position.end=Lt(I.end)}function f(){return function(I){return Ps(I,typeof pr.includeImageAlt!="boolean"||pr.includeImageAlt,typeof pr.includeHtml!="boolean"||pr.includeHtml)}(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function m(I){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0)}function p(){const I=this.resume();this.stack[this.stack.length-1].lang=I}function v(){const I=this.resume();this.stack[this.stack.length-1].meta=I}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const I=this.resume();this.stack[this.stack.length-1].value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const I=this.resume();this.stack[this.stack.length-1].value=I.replace(/(\r?\n|\r)$/g,"")}function P(I){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.label=G,Z.identifier=ln(this.sliceSerialize(I)).toLowerCase()}function E(){const I=this.resume();this.stack[this.stack.length-1].title=I}function k(){const I=this.resume();this.stack[this.stack.length-1].url=I}function B(I){const G=this.stack[this.stack.length-1];if(!G.depth){const Z=this.sliceSerialize(I).length;G.depth=Z}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function D(I){this.stack[this.stack.length-1].depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function S(I){const G=this.stack[this.stack.length-1].children;let Z=G[G.length-1];(!Z||Z.type!=="text")&&(Z=hn(),Z.position={start:Lt(I.start),end:void 0},G.push(Z)),this.stack.push(Z)}function N(I){const G=this.stack.pop();G.value+=this.sliceSerialize(I),G.position.end=Lt(I.end)}function R(I){const G=this.stack[this.stack.length-1];if(this.data.atHardBreak)return G.children[G.children.length-1].position.end=Lt(I.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(G.type)&&(S.call(this,I),N.call(this,I))}function L(){this.data.atHardBreak=!0}function U(){const I=this.resume();this.stack[this.stack.length-1].value=I}function x(){const I=this.resume();this.stack[this.stack.length-1].value=I}function Q(){const I=this.resume();this.stack[this.stack.length-1].value=I}function w(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=G,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function V(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=G,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function b(I){const G=this.sliceSerialize(I),Z=this.stack[this.stack.length-2];Z.label=function($){return $.replace(Dd,Bd)}(G),Z.identifier=ln(G).toLowerCase()}function F(){const I=this.stack[this.stack.length-1],G=this.resume(),Z=this.stack[this.stack.length-1];if(this.data.inReference=!0,Z.type==="link"){const $=I.children;Z.children=$}else Z.alt=G}function J(){const I=this.resume();this.stack[this.stack.length-1].url=I}function K(){const I=this.resume();this.stack[this.stack.length-1].title=I}function oe(){this.data.inReference=void 0}function ve(){this.data.referenceType="collapsed"}function ue(I){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.label=G,Z.identifier=ln(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function Ve(I){this.data.characterReferenceType=I.type}function Me(I){const G=this.sliceSerialize(I),Z=this.data.characterReferenceType;let $;Z?($=Ds(G,Z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$=xo(G),this.stack[this.stack.length-1].value+=$}function Re(I){this.stack.pop().position.end=Lt(I.end)}function st(I){N.call(this,I),this.stack[this.stack.length-1].url=this.sliceSerialize(I)}function j(I){N.call(this,I),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(I)}function W(){return{type:"blockquote",children:[]}}function he(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function Ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function we(){return{type:"emphasis",children:[]}}function ge(){return{type:"heading",depth:0,children:[]}}function ze(){return{type:"break"}}function Ne(){return{type:"html",value:""}}function fn(){return{type:"image",title:null,url:"",alt:null}}function xe(){return{type:"link",title:null,url:"",children:[]}}function ut(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function Be(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function St(){return{type:"paragraph",children:[]}}function pn(){return{type:"strong",children:[]}}function hn(){return{type:"text",value:""}}function bt(){return{type:"thematicBreak"}}}(n)(function(r){for(;!Ls(r););return r}(function(r){const o={constructs:Ou([kd,...(r||{}).extensions||[]]),content:i(ju),defined:[],document:i(qu),flow:i(pd),lazy:{},string:i(gd),text:i(md)};return o;function i(A){return function(s){return Sd(o,A,s)}}}(n).document().write(function(){let r,o=1,i="",A=!0;return function(s,a,l){const c=[];let u,d,f,h,m;for(s=i+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),f=0,i="",A&&(s.charCodeAt(0)===65279&&f++,A=void 0);f<s.length;){if(Ws.lastIndex=f,u=Ws.exec(s),h=u&&u.index!==void 0?u.index:s.length,m=s.charCodeAt(h),!u){i=s.slice(f);break}if(m===10&&f===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<h&&(c.push(s.slice(f,h)),o+=h-f),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}f=h+1}return l&&(r&&c.push(-5),i&&c.push(i),c.push(null)),c}}()(e,t,!0))))}function Lt(e){return{line:e.line,column:e.column,offset:e.offset}}function Ys(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ys(e,r):Id(e,r)}}function Id(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 $s(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Mn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Mn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Mn({start:t.start,end:t.end})+") is still open")}function Td(e){const t=this;t.parser=function(n){return xd(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 A=o[o.length-1];return A&&A.type==="text"?A.value+=r:o.push({type:"text",value:r}),o}function Ks(e){return e.spread??e.children.length>1}function Qd(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Xs(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Xs(t.slice(o),o>0,!1)),i.join("")}function Xs(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 Md={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:D=P?" ":" ";break;case-1:if(!P&&B)continue;D=" ";break;default:D=String.fromCharCode(T)}B=T===-2,k.push(D)}return k.join("")}(u(y),g)},sliceStream:u,write:function(y){return s=at(s,y),function(){let g;for(;r._index<s.length;){const E=s[r._index];if(typeof E=="string")for(g=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===g&&r._bufferIndex<E.length;)f(E.charCodeAt(r._bufferIndex));else f(E)}}(),s[s.length-1]!==null?[]:(p(t,0),l.events=Qo(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,E){const P=E.start._index,_=E.start._bufferIndex,k=E.end._index,B=E.end._bufferIndex;let T;if(P===k)T=[g[P].slice(_,B)];else{if(T=g.slice(P,k),_>-1){const D=T[0];typeof D=="string"?T[0]=D.slice(_):T.shift()}B>0&&T.push(g[k].slice(0,B))}return T}(s,y)}function d(){const{_bufferIndex:y,_index:g,line:E,column:P,offset:_}=r;return{_bufferIndex:y,_index:g,line:E,column:P,offset:_}}function f(y){c=c(y)}function h(y,g){g.restore()}function m(y,g){return function(E,P,_){let k,B,T,D;return Array.isArray(E)?O(E):"tokenize"in E?O([E]):function(L){return U;function U(x){const Q=x!==null&&L[x],w=x!==null&&L.null;return O([...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(w)?w:w?[w]:[]])(x)}}(E);function O(L){return k=L,B=0,L.length===0?_:S(L[B])}function S(L){return function(U){return D=function(){const x=d(),Q=l.previous,w=l.currentConstruct,V=l.events.length,b=Array.from(A);return{from:V,restore:F};function F(){r=x,l.previous=Q,l.currentConstruct=w,l.events.length=V,A=b,v()}}(),T=L,L.partial||(l.currentConstruct=L),L.name&&l.parser.constructs.disable.null.includes(L.name)?R():L.tokenize.call(g?Object.assign(Object.create(l),g):l,a,N,R)(U)}}function N(L){return y(T,D),P}function R(L){return D.restore(),++B<k.length?S(k[B]):_}}}function p(y,g){y.resolveAll&&!i.includes(y)&&i.push(y),y.resolve&&mt(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 qA=/[\0\t\n\r]/g,Dd=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Bd(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return DA(n.slice(o?2:1),o?16:10)}return xo(n)||e}const GA={}.hasOwnProperty;function xd(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(xe),autolinkProtocol:S,autolinkEmail:S,atxHeading:a(ge),blockQuote:a(q),characterEscape:S,characterReference:S,codeFenced:a(he),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(he,l),codeText:a(Ae,l),codeTextData:S,data:S,codeFlowValue:S,definition:a(Ce),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(we),hardBreakEscape:a(ze),hardBreakTrailing:a(ze),htmlFlow:a(Ne,l),htmlFlowData:S,htmlText:a(Ne,l),htmlTextData:S,image:a(fn),label:l,link:a(xe),listItem:a(Be),listItemValue:m,listOrdered:a(ut,h),listUnordered:a(ut),paragraph:a(St),reference:ve,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(ge),strong:a(pn),thematicBreak:a(bt)},exit:{atxHeading:u(),atxHeadingSequence:B,autolink:u(),autolinkEmail:j,autolinkProtocol:At,blockQuote:u(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:Ve,characterReferenceMarkerNumeric:Ve,characterReferenceValue:Me,characterReference:Re,codeFenced:u(g),codeFencedFence:y,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:N,codeIndented:u(E),codeText:u(Q),codeTextData:N,data:N,definition:u(),definitionDestinationString:k,definitionLabelString:P,definitionTitleString:_,emphasis:u(),hardBreakEscape:u(L),hardBreakTrailing:u(L),htmlFlow:u(U),htmlFlowData:N,htmlText:u(x),htmlTextData:N,image:u(V),label:F,labelText:b,lineEnding:R,link:u(w),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ue,resourceDestinationString:J,resourceTitleString:K,resource:oe,setextHeading:u(O),setextHeadingLineSequence:D,setextHeadingText:T,strong:u(),thematicBreak:u()}};YA(o,(r||{}).mdastExtensions||[]);const i={};return s;function s(I){let G={type:"root",children:[]};const Z={stack:[G],tokenStack:[],config:o,enter:c,exit:d,buffer:l,resume:f,data:i},$=[];let le=-1;for(;++le<I.length;)(I[le][1].type==="listOrdered"||I[le][1].type==="listUnordered")&&(I[le][0]==="enter"?$.push(le):le=A(I,$.pop(),le));for(le=-1;++le<I.length;){const de=o[I[le][0]];GA.call(de,I[le][1].type)&&de[I[le][1].type].call(Object.assign({sliceSerialize:I[le][2].sliceSerialize},Z),I[le][1])}if(Z.tokenStack.length>0){const de=Z.tokenStack[Z.tokenStack.length-1];(de[1]||$A).call(Z,void 0,de[0])}for(G.position={start:Lt(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:Lt(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<o.transforms.length;)G=o.transforms[le](G)||G;return G}function A(I,G,Z){let $,le,de,nt,ke=G-1,me=-1,je=!1;for(;++ke<=Z;){const fe=I[ke];switch(fe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":fe[0]==="enter"?me++:me--,nt=void 0;break;case"lineEndingBlank":fe[0]==="enter"&&($&&!nt&&!me&&!de&&(de=ke),nt=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:nt=void 0}if(!me&&fe[0]==="enter"&&fe[1].type==="listItemPrefix"||me===-1&&fe[0]==="exit"&&(fe[1].type==="listUnordered"||fe[1].type==="listOrdered")){if($){let be=ke;for(le=void 0;be--;){const We=I[be];if(We[1].type==="lineEnding"||We[1].type==="lineEndingBlank"){if(We[0]==="exit")continue;le&&(I[le][1].type="lineEndingBlank",je=!0),We[1].type="lineEnding",le=be}else if(We[1].type!=="linePrefix"&&We[1].type!=="blockQuotePrefix"&&We[1].type!=="blockQuotePrefixWhitespace"&&We[1].type!=="blockQuoteMarker"&&We[1].type!=="listItemIndent")break}de&&(!le||de<le)&&($._spread=!0),$.end=Object.assign({},le?I[le][1].start:fe[1].end),I.splice(le||ke,0,["exit",$,fe[2]]),ke++,Z++}if(fe[1].type==="listItemPrefix"){const be={type:"listItem",_spread:!1,start:Object.assign({},fe[1].start),end:void 0};$=be,I.splice(ke,0,["enter",be,fe[2]]),ke++,Z++,de=void 0,nt=!0}}}return I[G][1]._spread=je,Z}function a(I,G){return Z;function Z($){c.call(this,I($),$),G&&G.call(this,$)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(I,G,Z){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([G,Z||void 0]),I.position={start:Lt(G.start),end:void 0}}function u(I){return G;function G(Z){I&&I.call(this,Z),d.call(this,Z)}}function d(I,G){const Z=this.stack.pop(),$=this.tokenStack.pop();if(!$)throw new Error("Cannot close `"+I.type+"` ("+Mn({start:I.start,end:I.end})+"): itโs not open");$[0].type!==I.type&&(G?G.call(this,I,$[0]):($[1]||$A).call(this,I,$[0])),Z.position.end=Lt(I.end)}function f(){return function(I){return PA(I,typeof pr.includeImageAlt!="boolean"||pr.includeImageAlt,typeof pr.includeHtml!="boolean"||pr.includeHtml)}(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function m(I){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0)}function p(){const I=this.resume();this.stack[this.stack.length-1].lang=I}function v(){const I=this.resume();this.stack[this.stack.length-1].meta=I}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const I=this.resume();this.stack[this.stack.length-1].value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const I=this.resume();this.stack[this.stack.length-1].value=I.replace(/(\r?\n|\r)$/g,"")}function P(I){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.label=G,Z.identifier=ln(this.sliceSerialize(I)).toLowerCase()}function _(){const I=this.resume();this.stack[this.stack.length-1].title=I}function k(){const I=this.resume();this.stack[this.stack.length-1].url=I}function B(I){const G=this.stack[this.stack.length-1];if(!G.depth){const Z=this.sliceSerialize(I).length;G.depth=Z}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function D(I){this.stack[this.stack.length-1].depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function S(I){const G=this.stack[this.stack.length-1].children;let Z=G[G.length-1];(!Z||Z.type!=="text")&&(Z=hn(),Z.position={start:Lt(I.start),end:void 0},G.push(Z)),this.stack.push(Z)}function N(I){const G=this.stack.pop();G.value+=this.sliceSerialize(I),G.position.end=Lt(I.end)}function R(I){const G=this.stack[this.stack.length-1];if(this.data.atHardBreak)return G.children[G.children.length-1].position.end=Lt(I.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(G.type)&&(S.call(this,I),N.call(this,I))}function L(){this.data.atHardBreak=!0}function U(){const I=this.resume();this.stack[this.stack.length-1].value=I}function x(){const I=this.resume();this.stack[this.stack.length-1].value=I}function Q(){const I=this.resume();this.stack[this.stack.length-1].value=I}function w(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=G,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function V(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=G,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function b(I){const G=this.sliceSerialize(I),Z=this.stack[this.stack.length-2];Z.label=function($){return $.replace(Dd,Bd)}(G),Z.identifier=ln(G).toLowerCase()}function F(){const I=this.stack[this.stack.length-1],G=this.resume(),Z=this.stack[this.stack.length-1];if(this.data.inReference=!0,Z.type==="link"){const $=I.children;Z.children=$}else Z.alt=G}function J(){const I=this.resume();this.stack[this.stack.length-1].url=I}function K(){const I=this.resume();this.stack[this.stack.length-1].title=I}function oe(){this.data.inReference=void 0}function ve(){this.data.referenceType="collapsed"}function ue(I){const G=this.resume(),Z=this.stack[this.stack.length-1];Z.label=G,Z.identifier=ln(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function Ve(I){this.data.characterReferenceType=I.type}function Me(I){const G=this.sliceSerialize(I),Z=this.data.characterReferenceType;let $;Z?($=DA(G,Z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$=xo(G),this.stack[this.stack.length-1].value+=$}function Re(I){this.stack.pop().position.end=Lt(I.end)}function At(I){N.call(this,I),this.stack[this.stack.length-1].url=this.sliceSerialize(I)}function j(I){N.call(this,I),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(I)}function q(){return{type:"blockquote",children:[]}}function he(){return{type:"code",lang:null,meta:null,value:""}}function Ae(){return{type:"inlineCode",value:""}}function Ce(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function we(){return{type:"emphasis",children:[]}}function ge(){return{type:"heading",depth:0,children:[]}}function ze(){return{type:"break"}}function Ne(){return{type:"html",value:""}}function fn(){return{type:"image",title:null,url:"",alt:null}}function xe(){return{type:"link",title:null,url:"",children:[]}}function ut(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function Be(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function St(){return{type:"paragraph",children:[]}}function pn(){return{type:"strong",children:[]}}function hn(){return{type:"text",value:""}}function bt(){return{type:"thematicBreak"}}}(n)(function(r){for(;!LA(r););return r}(function(r){const o={constructs:Ou([kd,...(r||{}).extensions||[]]),content:i(ju),defined:[],document:i(Wu),flow:i(pd),lazy:{},string:i(gd),text:i(md)};return o;function i(s){return function(A){return Sd(o,s,A)}}}(n).document().write(function(){let r,o=1,i="",s=!0;return function(A,a,l){const c=[];let u,d,f,h,m;for(A=i+(typeof A=="string"?A.toString():new TextDecoder(a||void 0).decode(A)),f=0,i="",s&&(A.charCodeAt(0)===65279&&f++,s=void 0);f<A.length;){if(qA.lastIndex=f,u=qA.exec(A),h=u&&u.index!==void 0?u.index:A.length,m=A.charCodeAt(h),!u){i=A.slice(f);break}if(m===10&&f===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),f<h&&(c.push(A.slice(f,h)),o+=h-f),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}f=h+1}return l&&(r&&c.push(-5),i&&c.push(i),c.push(null)),c}}()(e,t,!0))))}function Lt(e){return{line:e.line,column:e.column,offset:e.offset}}function YA(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?YA(e,r):Id(e,r)}}function Id(e,t){let n;for(n in t)if(GA.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 $A(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Mn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Mn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Mn({start:t.start,end:t.end})+") is still open")}function Td(e){const t=this;t.parser=function(n){return xd(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function VA(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 KA(e){return e.spread??e.children.length>1}function Qd(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(XA(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(XA(t.slice(o),o>0,!1)),i.join("")}function XA(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 Md={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
|
-
`:"",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=cn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let A
|
|
26
|
-
`}),c.type!=="element"||c.tagName!=="p"||o?
|
|
27
|
-
`});const l={type:"element",tagName:"li",properties:i,children:
|
|
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=cn(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 VA(e,t);const o={src:cn(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:cn(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 VA(e,t);const o={href:cn(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:cn(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 f=-1;for(;!u&&++f<d.length;)u=KA(d[f])}return u}(n):KA(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
|
+
`}),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:`
|
|
27
|
+
`});const l={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,l),e.applyData(t,l)},list:function(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const s=r[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),o.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},A=Po(t.children[1]),a=gA(t.children[t.children.length-1]);A&&a&&(s.position={start:A,end:a}),o.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",i=n&&n.type==="table"?n.align:void 0,s=i?i.length:t.children.length;let A=-1;const a=[];for(;++A<s;){const c=t.children[A],u={},d=i?i[A]:void 0;d&&(u.align=d);let f={type:"element",tagName:o,properties:u,children:[]};c&&(f.children=e.all(c),e.patch(c,f),f=e.applyData(c,f)),a.push(f)}const l={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,l),e.applyData(t,l)},text:function(e,t){const n={type:"text",value:Qd(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:mr,yaml:mr,definition:mr,footnoteDefinition:mr};function mr(){}const JA=typeof self=="object"?self:globalThis,ZA=e=>((t,n)=>{const r=(i,s)=>(t.set(s,i),i),o=i=>{if(t.has(i))return t.get(i);const[s,A]=n[i];switch(s){case 0:case-1:return r(A,i);case 1:{const a=r([],i);for(const l of A)a.push(o(l));return a}case 2:{const a=r({},i);for(const[l,c]of A)a[o(l)]=o(c);return a}case 3:return r(new Date(A),i);case 4:{const{source:a,flags:l}=A;return r(new RegExp(a,l),i)}case 5:{const a=r(new Map,i);for(const[l,c]of A)a.set(o(l),o(c));return a}case 6:{const a=r(new Set,i);for(const l of A)a.add(o(l));return a}case 7:{const{name:a,message:l}=A;return r(new JA[a](l),i)}case 8:return r(BigInt(A),i);case"BigInt":return r(Object(BigInt(A)),i);case"ArrayBuffer":return r(new Uint8Array(A).buffer,A);case"DataView":{const{buffer:a}=new Uint8Array(A);return r(new DataView(a),A)}}return r(new JA[s](A),i)};return o})(new Map,e)(0),un="",{toString:Od}={},{keys:Nd}=Object,Rn=e=>{const t=typeof e;if(t!=="object"||!e)return[0,t];const n=Od.call(e).slice(8,-1);switch(n){case"Array":return[1,un];case"Object":return[2,un];case"Date":return[3,un];case"RegExp":return[4,un];case"Map":return[5,un];case"Set":return[6,un];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},yr=([e,t])=>e===0&&(t==="function"||t==="symbol"),es=(e,{json:t,lossy:n}={})=>{const r=[];return((o,i,s,A)=>{const a=(c,u)=>{const d=A.push(c)-1;return s.set(u,d),d},l=c=>{if(s.has(c))return s.get(c);let[u,d]=Rn(c);switch(u){case 0:{let h=c;switch(d){case"bigint":u=8,h=c.toString();break;case"function":case"symbol":if(o)throw new TypeError("unable to serialize "+d);h=null;break;case"undefined":return a([-1],c)}return a([u,h],c)}case 1:{if(d){let p=c;return d==="DataView"?p=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(p=new Uint8Array(c)),a([d,[...p]],c)}const h=[],m=a([u,h],c);for(const p of c)h.push(l(p));return m}case 2:{if(d)switch(d){case"BigInt":return a([d,c.toString()],c);case"Boolean":case"Number":case"String":return a([d,c.valueOf()],c)}if(i&&"toJSON"in c)return l(c.toJSON());const h=[],m=a([u,h],c);for(const p of Nd(c))(o||!yr(Rn(c[p])))&&h.push([l(p),l(c[p])]);return m}case 3:return a([u,c.toISOString()],c);case 4:{const{source:h,flags:m}=c;return a([u,{source:h,flags:m}],c)}case 5:{const h=[],m=a([u,h],c);for(const[p,v]of c)(o||!yr(Rn(p))&&!yr(Rn(v)))&&h.push([l(p),l(v)]);return m}case 6:{const h=[],m=a([u,h],c);for(const p of c)(o||!yr(Rn(p)))&&h.push(l(p));return m}}const{message:f}=c;return a([u,{name:d,message:f}],c)};return l})(!(t||n),!!t,new Map,r)(e),r},vr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ZA(es(e,t)):structuredClone(e):(e,t)=>ZA(es(e,t));function Ld(e,t){const n=[{type:"text",value:"โฉ"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Rd(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const ts=function(e){if(e==null)return Hd;if(typeof e=="function")return wr(e);if(typeof e=="object")return Array.isArray(e)?function(t){const n=[];let r=-1;for(;++r<t.length;)n[r]=ts(t[r]);return wr(o);function o(...i){let s=-1;for(;++s<n.length;)if(n[s].apply(this,i))return!0;return!1}}(e):function(t){const n=t;return wr(r);function r(o){const i=o;let s;for(s in t)if(i[s]!==n[s])return!1;return!0}}(e);if(typeof e=="string")return function(t){return wr(n);function n(r){return r&&r.type===t}}(e);throw new Error("Expected function, string, or object as test")};function wr(e){return function(t,n,r){return!(!function(o){return o!==null&&typeof o=="object"&&"type"in o}(t)||!e.call(this,t,typeof n=="number"?n:void 0,r||void 0))}}function Hd(){return!0}const ns=[],Ud=!0,rs=!1;function Fd(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const i=ts(o),s=r?-1:1;(function A(a,l,c){const u=a&&typeof a=="object"?a:{};if(typeof u.type=="string"){const f=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+a.type+(f?"<"+f+">":"")+")"})}return d;function d(){let f,h,m,p=ns;if((!t||i(a,l,c[c.length-1]||void 0))&&(p=function(v){return Array.isArray(v)?v:typeof v=="number"?[Ud,v]:v==null?ns:[v]}(n(a,c)),p[0]===rs))return p;if("children"in a&&a.children){const v=a;if(v.children&&p[0]!=="skip")for(h=(r?v.children.length:-1)+s,m=c.concat(v);h>-1&&h<v.children.length;){const y=v.children[h];if(f=A(y,h,m)(),f[0]===rs)return f;h=typeof f[1]=="number"?f[1]:h+s}}return p}})(e,void 0,[])()}function os(e,t,n,r){let o,i,s;typeof t=="function"?(i=void 0,s=t,o=n):(i=t,s=n,o=r),Fd(e,i,function(A,a){const l=a[a.length-1],c=l?l.children.indexOf(A):void 0;return s(A,c,l)},o)}const Ro={}.hasOwnProperty,zd={};function jd(e,t){const n=t||zd,r=new Map,o=new Map,i=new Map,s={...Md,...n.handlers},A={all:function(a){const l=[];if("children"in a){const c=a.children;let u=-1;for(;++u<c.length;){const d=A.one(c[u],a);if(d){if(u&&c[u-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=is(d.value)),!Array.isArray(d)&&d.type==="element")){const f=d.children[0];f&&f.type==="text"&&(f.value=is(f.value))}Array.isArray(d)?l.push(...d):l.push(d)}}}return l},applyData:qd,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:function(a,l){const c=a.type,u=A.handlers[c];if(Ro.call(A.handlers,c)&&u)return u(A,a,l);if(A.options.passThrough&&A.options.passThrough.includes(c)){if("children"in a){const{children:d,...f}=a,h=vr(f);return h.children=A.all(a),h}return vr(a)}return(A.options.unknownHandler||Gd)(A,a,l)},options:n,patch:Wd,wrap:Yd};return os(e,function(a){if(a.type==="definition"||a.type==="footnoteDefinition"){const l=a.type==="definition"?r:o,c=String(a.identifier).toUpperCase();l.has(c)||l.set(c,a)}}),A}function Wd(e,t){e.position&&(t.position=function(n){const r=Po(n),o=gA(n);if(r&&o)return{start:r,end:o}}(e))}function qd(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:"children"in n?n.children:[n]}),n.type==="element"&&i&&Object.assign(n.properties,vr(i)),"children"in n&&n.children&&o!=null&&(n.children=o)}return n}function Gd(e,t){const n=t.data||{},r=!("value"in t)||Ro.call(n,"hProperties")||Ro.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Yd(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
28
28
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
29
29
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
30
|
-
`}),n}function
|
|
31
|
-
`},{type:"element",tagName:"ol",properties:{},children:
|
|
30
|
+
`}),n}function is(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function as(e,t){const n=jd(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||Ld,l=s.options.footnoteBackLabel||Rd,c=s.options.footnoteLabel||"Footnotes",u=s.options.footnoteLabelTagName||"h2",d=s.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<s.footnoteOrder.length;){const m=s.footnoteById.get(s.footnoteOrder[h]);if(!m)continue;const p=s.all(m),v=String(m.identifier).toUpperCase(),y=cn(v.toLowerCase());let g=0;const E=[],P=s.footnoteCounts.get(v);for(;P!==void 0&&++g<=P;){E.length>0&&E.push({type:"text",value:" "});let B=typeof a=="string"?a:a(h,g);typeof B=="string"&&(B={type:"text",value:B}),E.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(B)?B:[B]})}const _=p[p.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const B=_.children[_.children.length-1];B&&B.type==="text"?B.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...E)}else p.push(...E);const k={type:"element",tagName:"li",properties:{id:A+"fn-"+y},children:s.wrap(p,!0)};s.patch(m,k),f.push(k)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...vr(d),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:`
|
|
31
|
+
`},{type:"element",tagName:"ol",properties:{},children:s.wrap(f,!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 $d(e,t){return e&&"run"in e?async function(n,r){const o=aA(n,{file:r,...t});await e.run(o,r)}:function(n,r){return aA(n,{file:r,...e||t})}}function sA(e){if(e)throw e}var Ho,AA,Vd=function(){if(AA)return Ho;AA=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)},A=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},s=function(a,l){if(l==="__proto__"){if(!e.call(a,l))return;if(r)return r(a,l).value}return a[l]};return Ho=function a(){var l,c,u,d,f,h,m=arguments[0],p=1,v=arguments.length,y=!1;for(typeof m=="boolean"&&(y=m,m=arguments[1]||{},p=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});p<v;++p)if((l=arguments[p])!=null)for(c in l)u=s(m,c),m!==(d=s(l,c))&&(y&&d&&(i(d)||(f=o(d)))?(f?(f=!1,h=u&&o(u)?u:[]):h=u&&i(u)?u:{},A(m,{name:c,newValue:a(y,h,d)})):typeof d<"u"&&A(m,{name:c,newValue:d}));return m},Ho}();const Uo=ds(Vd);function Fo(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 Kd(){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(A,...s){const a=e[++r];let l=-1;if(A)o(A);else{for(;++l<n.length;)(s[l]===null||s[l]===void 0)&&(s[l]=n[l]);n=s,a?function(c,u){let d;return f;function f(...p){const v=c.length>p.length;let y;v&&p.push(h);try{y=c.apply(this,p)}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(p,...v){d||(d=!0,u(p,...v))}function m(p){h(null,p)}}(a,i)(...s):o(null,...s)}})(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 vt={basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hn(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 A=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else A<0&&(n=!0,A=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=A));return r===o?o=A:o<0&&(o=e.length),e.slice(r,o)},dirname:function(e){if(Hn(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){Hn(e);let t,n=e.length,r=-1,o=0,i=-1,A=0;for(;n--;){const s=e.codePointAt(n);if(s!==47)r<0&&(t=!0,r=n+1),s===46?i<0?i=n:A!==1&&(A=1):i>-1&&(A=-1);else if(t){o=n+1;break}}return i<0||r<0||A===0||A===1&&i===r-1&&i===o+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)Hn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":function(r){Hn(r);const o=r.codePointAt(0)===47;let i=function(A,s){let a,l,c="",u=0,d=-1,f=0,h=-1;for(;++h<=A.length;){if(h<A.length)a=A.codePointAt(h);else{if(a===47)break;a=47}if(a===47){if(d!==h-1&&f!==1)if(d!==h-1&&f===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,f=0;continue}}else if(c.length>0){c="",u=0,d=h,f=0;continue}}s&&(c=c.length>0?c+"/..":"..",u=2)}else c.length>0?c+="/"+A.slice(d+1,h):c=A.slice(d+1,h),u=h-d-1;d=h,f=0}else a===46&&f>-1?f++:f=-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 Hn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xd={cwd:function(){return"/"}};function zo(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Jd(e){if(typeof e=="string")e=new URL(e);else if(!zo(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 jo=["history","path","basename","stem","extname","dirname"];class lA{constructor(t){let n;var r;n=t?zo(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?"":Xd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<jo.length;){const A=jo[i];A in n&&n[A]!==void 0&&n[A]!==null&&(this[A]=A==="history"?[...n[A]]:n[A])}for(o in n)jo.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?vt.basename(this.path):void 0}set basename(t){Wo(t,"basename"),qo(t,"basename"),this.path=vt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?vt.dirname(this.path):void 0}set dirname(t){cA(this.basename,"dirname"),this.path=vt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?vt.extname(this.path):void 0}set extname(t){if(qo(t,"extname"),cA(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=vt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){zo(t)&&(t=Jd(t)),Wo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?vt.basename(this.path,this.extname):void 0}set stem(t){Wo(t,"stem"),qo(t,"stem"),this.path=vt.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 We(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 qo(e,t){if(e&&e.includes(vt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vt.sep+"`")}function Wo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cA(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Zd=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ef={}.hasOwnProperty;class Go extends Zd{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=Kd()}copy(){const t=new Go;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Uo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Vo("data",this.frozen),this.namespace[t]=n,this):ef.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Vo("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=br(t),r=this.parser||this.Parser;return Yo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Yo("process",this.parser||this.Parser),$o("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,A){const s=br(t),a=r.parse(s);function l(c,u){c||!u?A(c):i?i(u):n(void 0,u)}r.run(a,s,function(c,u,d){if(c||!u||!d)return l(c);const f=u,h=r.stringify(f,d);var m;typeof(m=h)=="string"||function(p){return!!(p&&typeof p=="object"&&"byteLength"in p&&"byteOffset"in p)}(m)?d.value=h:d.result=h,l(c,d)})}}processSync(t){let n,r=!1;return this.freeze(),Yo("processSync",this.parser||this.Parser),$o("processSync",this.compiler||this.Compiler),this.process(t,function(o,i){r=!0,sA(o),n=i}),dA("processSync","process",r),n}run(t,n,r){uA(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(A,s){const a=br(n);o.run(t,a,function(l,c,u){const d=c||t;l?s(l):A?A(d):r(void 0,d,u)})}}runSync(t,n){let r,o=!1;return this.run(t,n,function(i,A){sA(i),r=A,o=!0}),dA("runSync","run",o),r}stringify(t,n){this.freeze();const r=br(n),o=this.compiler||this.Compiler;return $o("stringify",o),uA(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Vo("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)?s(t):A(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 A(l)}}function A(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");s(l.plugins),l.settings&&(o.settings=Uo(!0,o.settings,l.settings))}function s(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[f,...h]=c;const m=r[d][1];Fo(m)&&Fo(f)&&(f=Uo(!0,m,f)),r[d]=[l,f,...h]}}}}const tf=new Go().freeze();function Yo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $o(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Vo(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 uA(e){if(!Fo(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function dA(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function br(e){return function(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}(e)?e:new lA(e)}const fA=[],pA={allowDangerousHtml:!0},nf=/^(https?|ircs?|mailto|xmpp)$/i,rf=[{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 of(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,A=e.disallowedElements,s=e.rehypePlugins||fA,a=e.remarkPlugins||fA,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...pA}:pA,c=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||af,f=tf().use(Td).use(a).use($d,l).use(s),h=new lA;typeof r=="string"&&(h.value=r);for(const v of rf)Object.hasOwn(e,v.from)&&(v.from,v.to&&v.to,v.id);const m=f.parse(h);let p=f.runSync(m,h);return o&&(p={type:"element",tagName:"div",properties:{className:o},children:p.type==="root"?p.children:[p]}),oA(p,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 _;for(_ in Bo)if(Object.hasOwn(Bo,_)&&Object.hasOwn(v.properties,_)){const P=v.properties[_],E=Bo[_];(E===null||E.includes(v.tagName))&&(v.properties[_]=d(String(P||""),_,v))}}if(v.type==="element"){let _=t?!t.includes(v.tagName):!!A&&A.includes(v.tagName);if(!_&&n&&typeof y=="number"&&(_=!n(v,y,g)),_&&g&&typeof y=="number")return u&&v.children?g.children.splice(y,1,...v.children):g.children.splice(y,1),y}}),xu(p,{Fragment:ce,components:i,ignoreInvalidStyle:!0,jsx:C,jsxs:C,passKeys:!0,passNode:!0})}function af(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||nf.test(e.slice(0,t))?e:""}const sf=({children:e})=>C("div",{style:{whiteSpace:"normal"},children:C(of,{components:{p:({...t})=>C("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:t.children}),ul:({...t})=>C("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),ol:({...t})=>C("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),li:({...t})=>C("li",{style:{marginBottom:"1px",lineHeight:1.4},children:t.children}),code:({inline:t,children:n})=>t?C("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):C("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:C("code",{children:n})}),blockquote:({...t})=>C("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:t.children})},children:typeof e=="string"?e:""})}),Af={autoConfig:!0},lf=e=>()=>(t=>{const{getFlow:n}=dr(),{messages:r,replaceMessages:o}=Tn(),{settings:i}=Wa(),{hasChatHistoryLoaded:A}=Ya(),s={...t,...Af},a=s.markdownComponent?s.markdownComponent:sf;X(()=>{var u,d;if(A){const f=[...r];for(let h=0;h<f.length&&h<(((u=i.chatHistory)==null?void 0:u.maxEntries)??30);h++){const m=f[h];(d=m.tags)!=null&&d.includes("rcb-markdown-renderer-plugin:parsed")&&(m.contentWrapper=a)}o(f)}},[A]);const l=async u=>{var d;const f=(d=u.data.message)==null?void 0:d.sender.toUpperCase();((h,m,p)=>{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(p))??!1)})(u,n(),f)&&(u.data.message.contentWrapper=a,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};ot(z.PRE_INJECT_MESSAGE,l),ot(z.CHUNK_STREAM_MESSAGE,l),ot(z.START_STREAM_MESSAGE,l),ot(z.START_SIMULATE_STREAM_MESSAGE,l);const c={name:"@rcb-plugins/markdown-renderer"};return s!=null&&s.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),c})(e),_r={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"}},hA=(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},cf=e=>{const{showToast:t}=(()=>{const{showToast:u,dismissToast:d,toasts:f,replaceToasts:h}=rn();return{showToast:u,dismissToast:d,toasts:f,replaceToasts:h}})(),{getFlow:n}=dr(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:u,replaceStyles:d,updateStyles:f}=Fa();return{styles:u,replaceStyles:d,updateStyles:f}})(),A=(u=>({..._r,...u,promptBaseColors:{..._r.promptBaseColors},promptHoveredColors:{..._r.promptHoveredColors},textAreaHighlightColors:{..._r.textAreaHighlightColors}}))(e),[s,a]=ee(0),l=ne({});ot(z.USER_SUBMIT_TEXT,u=>{const d=u,f=hA(d,n(),"validateTextInput");if(!f)return;const h=f(d.data.inputText);if(h!=null&&h.success||u.preventDefault(),!h.promptContent)return;s===0&&(l.current=structuredClone(r));const m=((p,v)=>{const y=p.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&&(p.highlightTextArea??!0)&&(g.chatInputAreaStyle={boxShadow:`${v.textAreaHighlightColors[y]} 0px 0px 5px`}),g})(h,A);o(m),t(h.promptContent,h.promptDuration??3e3),a(p=>p+1)}),ot(z.USER_UPLOAD_FILE,u=>{var d,f;const h=u,m=(f=(d=h.data)==null?void 0:d.files)==null?void 0:f[0];if(!m)return console.error("No file uploaded."),void u.preventDefault();const p=hA(h,n(),"validateFileInput");if(!p)return void console.error("Validator not found for file input.");const v=p(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)}),ot(z.DISMISS_TOAST,()=>{a(u=>u-1)}),X(()=>{s===0&&setTimeout(()=>{i(l.current)})},[s,i]);const c={name:"@rcb-plugins/input-validator"};return A.autoConfig&&(c.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),c},gA=Ye((e,t)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=e;const A=Tn(),s=(()=>{const{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:f,getIsChatBotVisible:h}=Ze();return{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:f,getIsChatBotVisible:h}})(),a=ne(!1),l=ne(!1);return X(()=>{!n&&s&&s.toggleChatWindow&&(a.current===r||l.current||(setTimeout(()=>{s&&s.toggleChatWindow&&s.toggleChatWindow(r)},0),a.current=r!=null&&r),l.current=!1)},[r,n,s]),X(()=>{const c=()=>{l.current=!0};return window.addEventListener("rcb-toggle-chat-window",c),()=>window.removeEventListener("rcb-toggle-chat-window",c)}),Zn(t,()=>({addMessage:c=>{A&&A.injectMessage&&A.injectMessage(c)},openChat:()=>{!n&&s&&s.toggleChatWindow&&s.toggleChatWindow(!0)},closeChat:()=>{!n&&s&&s.toggleChatWindow&&s.toggleChatWindow(!1)},toggleChat:()=>{!n&&s&&s.toggleChatWindow&&s.toggleChatWindow()},setBotEnabled:c=>{i&&i(c)}}),[A,s,n,i]),null});gA.displayName="BotController";const mA=At(null),uf=e=>{let{trackEvent:t,children:n}=e;const r=ne(t);return r.current=t,M.createElement(mA.Provider,{value:{trackEvent:o=>r.current(o)}},n)},yA=()=>rt(mA)||{trackEvent:()=>{}},vA=e=>{let{loginUrl:t,className:n="",style:r,isHeaderButton:o=!1}=e;const{trackEvent:i}=yA(),A=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 M.createElement(M.Fragment,null,o&&M.createElement("style",null,`
|
|
33
|
+
`},o),i}function $d(e,t){return e&&"run"in e?async function(n,r){const o=as(n,{file:r,...t});await e.run(o,r)}:function(n,r){return as(n,{file:r,...e||t})}}function As(e){if(e)throw e}var Ho,ss,Vd=function(){if(ss)return Ho;ss=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 Ho=function a(){var l,c,u,d,f,h,m=arguments[0],p=1,v=arguments.length,y=!1;for(typeof m=="boolean"&&(y=m,m=arguments[1]||{},p=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});p<v;++p)if((l=arguments[p])!=null)for(c in l)u=A(m,c),m!==(d=A(l,c))&&(y&&d&&(i(d)||(f=o(d)))?(f?(f=!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},Ho}();const Uo=dA(Vd);function Fo(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 Kd(){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 f;function f(...p){const v=c.length>p.length;let y;v&&p.push(h);try{y=c.apply(this,p)}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(p,...v){d||(d=!0,u(p,...v))}function m(p){h(null,p)}}(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 vt={basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Hn(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(Hn(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){Hn(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;)Hn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":function(r){Hn(r);const o=r.codePointAt(0)===47;let i=function(s,A){let a,l,c="",u=0,d=-1,f=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&&f!==1)if(d!==h-1&&f===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,f=0;continue}}else if(c.length>0){c="",u=0,d=h,f=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,f=0}else a===46&&f>-1?f++:f=-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 Hn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xd={cwd:function(){return"/"}};function zo(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Jd(e){if(typeof e=="string")e=new URL(e);else if(!zo(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 jo=["history","path","basename","stem","extname","dirname"];class ls{constructor(t){let n;var r;n=t?zo(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?"":Xd.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<jo.length;){const s=jo[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}for(o in n)jo.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?vt.basename(this.path):void 0}set basename(t){qo(t,"basename"),Wo(t,"basename"),this.path=vt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?vt.dirname(this.path):void 0}set dirname(t){cs(this.basename,"dirname"),this.path=vt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?vt.extname(this.path):void 0}set extname(t){if(Wo(t,"extname"),cs(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=vt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){zo(t)&&(t=Jd(t)),qo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?vt.basename(this.path,this.extname):void 0}set stem(t){qo(t,"stem"),Wo(t,"stem"),this.path=vt.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 qe(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 Wo(e,t){if(e&&e.includes(vt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vt.sep+"`")}function qo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cs(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Zd=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},ef={}.hasOwnProperty;class Go extends Zd{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=Kd()}copy(){const t=new Go;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Uo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Vo("data",this.frozen),this.namespace[t]=n,this):ef.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Vo("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=br(t),r=this.parser||this.Parser;return Yo("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Yo("process",this.parser||this.Parser),$o("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,s){const A=br(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 f=u,h=r.stringify(f,d);var m;typeof(m=h)=="string"||function(p){return!!(p&&typeof p=="object"&&"byteLength"in p&&"byteOffset"in p)}(m)?d.value=h:d.result=h,l(c,d)})}}processSync(t){let n,r=!1;return this.freeze(),Yo("processSync",this.parser||this.Parser),$o("processSync",this.compiler||this.Compiler),this.process(t,function(o,i){r=!0,As(o),n=i}),ds("processSync","process",r),n}run(t,n,r){us(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=br(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){As(i),r=s,o=!0}),ds("runSync","run",o),r}stringify(t,n){this.freeze();const r=br(n),o=this.compiler||this.Compiler;return $o("stringify",o),us(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Vo("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=Uo(!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[f,...h]=c;const m=r[d][1];Fo(m)&&Fo(f)&&(f=Uo(!0,m,f)),r[d]=[l,f,...h]}}}}const tf=new Go().freeze();function Yo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $o(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Vo(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 us(e){if(!Fo(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ds(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function br(e){return function(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}(e)?e:new ls(e)}const fs=[],ps={allowDangerousHtml:!0},nf=/^(https?|ircs?|mailto|xmpp)$/i,rf=[{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 of(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,s=e.disallowedElements,A=e.rehypePlugins||fs,a=e.remarkPlugins||fs,l=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ps}:ps,c=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||af,f=tf().use(Td).use(a).use($d,l).use(A),h=new ls;typeof r=="string"&&(h.value=r);for(const v of rf)Object.hasOwn(e,v.from)&&(v.from,v.to&&v.to,v.id);const m=f.parse(h);let p=f.runSync(m,h);return o&&(p={type:"element",tagName:"div",properties:{className:o},children:p.type==="root"?p.children:[p]}),os(p,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 E;for(E in Bo)if(Object.hasOwn(Bo,E)&&Object.hasOwn(v.properties,E)){const P=v.properties[E],_=Bo[E];(_===null||_.includes(v.tagName))&&(v.properties[E]=d(String(P||""),E,v))}}if(v.type==="element"){let E=t?!t.includes(v.tagName):!!s&&s.includes(v.tagName);if(!E&&n&&typeof y=="number"&&(E=!n(v,y,g)),E&&g&&typeof y=="number")return u&&v.children?g.children.splice(y,1,...v.children):g.children.splice(y,1),y}}),xu(p,{Fragment:ce,components:i,ignoreInvalidStyle:!0,jsx:C,jsxs:C,passKeys:!0,passNode:!0})}function af(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||nf.test(e.slice(0,t))?e:""}const Af=({children:e})=>C("div",{style:{whiteSpace:"normal"},children:C(of,{components:{p:({...t})=>C("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:t.children}),ul:({...t})=>C("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),ol:({...t})=>C("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:t.children}),li:({...t})=>C("li",{style:{marginBottom:"1px",lineHeight:1.4},children:t.children}),code:({inline:t,children:n})=>t?C("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):C("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:C("code",{children:n})}),blockquote:({...t})=>C("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:t.children})},children:typeof e=="string"?e:""})}),sf={autoConfig:!0},lf=e=>()=>(t=>{const{getFlow:n}=dr(),{messages:r,replaceMessages:o}=Tn(),{settings:i}=qa(),{hasChatHistoryLoaded:s}=Ya(),A={...t,...sf},a=A.markdownComponent?A.markdownComponent:Af;X(()=>{var u,d;if(s){const f=[...r];for(let h=0;h<f.length&&h<(((u=i.chatHistory)==null?void 0:u.maxEntries)??30);h++){const m=f[h];(d=m.tags)!=null&&d.includes("rcb-markdown-renderer-plugin:parsed")&&(m.contentWrapper=a)}o(f)}},[s]);const l=async u=>{var d;const f=(d=u.data.message)==null?void 0:d.sender.toUpperCase();((h,m,p)=>{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(p))??!1)})(u,n(),f)&&(u.data.message.contentWrapper=a,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};ot(z.PRE_INJECT_MESSAGE,l),ot(z.CHUNK_STREAM_MESSAGE,l),ot(z.START_STREAM_MESSAGE,l),ot(z.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),Er={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},cf=e=>{const{showToast:t}=(()=>{const{showToast:u,dismissToast:d,toasts:f,replaceToasts:h}=rn();return{showToast:u,dismissToast:d,toasts:f,replaceToasts:h}})(),{getFlow:n}=dr(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:u,replaceStyles:d,updateStyles:f}=Fa();return{styles:u,replaceStyles:d,updateStyles:f}})(),s=(u=>({...Er,...u,promptBaseColors:{...Er.promptBaseColors},promptHoveredColors:{...Er.promptHoveredColors},textAreaHighlightColors:{...Er.textAreaHighlightColors}}))(e),[A,a]=ee(0),l=ne({});ot(z.USER_SUBMIT_TEXT,u=>{const d=u,f=hs(d,n(),"validateTextInput");if(!f)return;const h=f(d.data.inputText);if(h!=null&&h.success||u.preventDefault(),!h.promptContent)return;A===0&&(l.current=structuredClone(r));const m=((p,v)=>{const y=p.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&&(p.highlightTextArea??!0)&&(g.chatInputAreaStyle={boxShadow:`${v.textAreaHighlightColors[y]} 0px 0px 5px`}),g})(h,s);o(m),t(h.promptContent,h.promptDuration??3e3),a(p=>p+1)}),ot(z.USER_UPLOAD_FILE,u=>{var d,f;const h=u,m=(f=(d=h.data)==null?void 0:d.files)==null?void 0:f[0];if(!m)return console.error("No file uploaded."),void u.preventDefault();const p=hs(h,n(),"validateFileInput");if(!p)return void console.error("Validator not found for file input.");const v=p(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)}),ot(z.DISMISS_TOAST,()=>{a(u=>u-1)}),X(()=>{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},gs=Ye((e,t)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=e;const s=Tn(),A=(()=>{const{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:f,getIsChatBotVisible:h}=Ze();return{isChatWindowOpen:c,toggleChatWindow:u,toggleIsBotTyping:d,scrollToBottom:f,getIsChatBotVisible:h}})(),a=ne(!1),l=ne(!1);return X(()=>{!n&&A&&A.toggleChatWindow&&(a.current===r||l.current||(setTimeout(()=>{A&&A.toggleChatWindow&&A.toggleChatWindow(r)},0),a.current=r!=null&&r),l.current=!1)},[r,n,A]),X(()=>{const c=()=>{l.current=!0};return window.addEventListener("rcb-toggle-chat-window",c),()=>window.removeEventListener("rcb-toggle-chat-window",c)}),Zn(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});gs.displayName="BotController";const ms=st(null),uf=e=>{let{trackEvent:t,children:n}=e;const r=ne(t);return r.current=t,M.createElement(ms.Provider,{value:{trackEvent:o=>r.current(o)}},n)},ys=()=>rt(ms)||{trackEvent:()=>{}},vs=e=>{let{loginUrl:t,className:n="",style:r,isHeaderButton:o=!1}=e;const{trackEvent:i}=ys(),s=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 M.createElement(M.Fragment,null,o&&M.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
|
-
`),M.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:`qa-bot-login-button ${o?"qa-bot-header-login-button":""} ${n}`,style:Object.assign(Object.assign({},A),r),onClick:()=>{i({type:"chatbot_login_clicked",loginUrl:t})}},"Log In"))},df=()=>M.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"},M.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"},M.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),M.createElement("circle",{cx:"12",cy:"7",r:"4"}))),He=[];for(let e=0;e<256;++e)He.push((e+256).toString(16).slice(1));let Ko;const ff=new Uint8Array(16);var wA={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function bA(e,t,n){var o;if(wA.randomUUID&&!e)return wA.randomUUID();const r=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!Ko){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ko=crypto.getRandomValues.bind(crypto)}return Ko(ff)}();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,A=0){return(He[i[A+0]]+He[i[A+1]]+He[i[A+2]]+He[i[A+3]]+"-"+He[i[A+4]]+He[i[A+5]]+"-"+He[i[A+6]]+He[i[A+7]]+"-"+He[i[A+8]]+He[i[A+9]]+"-"+He[i[A+10]]+He[i[A+11]]+He[i[A+12]]+He[i[A+13]]+He[i[A+14]]+He[i[A+15]]).toLowerCase()}(r)}function $t(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const pf="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",hf="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",gf="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",mf="background: #f97316; color: white; padding: 2px 6px; border-radius: 3px;",yf="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",vf="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",wf=()=>{$t()&&console.log("%c QA Bot Core %c v0.2.35 ",yf,vf)},Er=function(e){if($t()){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 ${e}`,pf,"",...n)}},wt=function(e){if($t()){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 ${e}`,hf,"",...n)}},bf=(e,t)=>{$t()&&console.log(`%c[Message]%c ${e}`,gf,"",t)},Un=function(e){if($t()){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[Turnstile]%c ${e}`,mf,"",...n)}},_A=function(){console.warn(...arguments)},Le=function(){console.error(...arguments)},EA="qa_bot_session_messages",PA=()=>`qa_bot_session_${bA()}`,Fn=()=>{try{const e=localStorage.getItem(EA);return e?JSON.parse(e):{}}catch{return{}}},_f=(e,t,n,r,o)=>{const i=Fn();if(!i[e]&&(i[e]={messages:[],startedAt:new Date().toISOString(),preview:""},wt("NEW session created",{sessionId:e.slice(-12)})),i[e].messages.some(l=>l.id===t))return void wt("DUPLICATE message skipped",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r});const A={id:t,content:n,sender:r,type:o,timestamp:Date.now()};i[e].messages.push(A),wt("MESSAGE added",{sessionId:e.slice(-12),messageId:t.slice(-8),sender:r,totalInSession:i[e].messages.length});const s=i[e].messages,a=s.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=s.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,f)=>d+f.messages.length,0);for(;u()>100&&Object.keys(l).length>1;){const d=(c=Object.entries(l).sort((f,h)=>{let[,m]=f,[,p]=h;return new Date(m.startedAt).getTime()-new Date(p.startedAt).getTime()})[0])===null||c===void 0?void 0:c[0];if(!d)break;delete l[d]}localStorage.setItem(EA,JSON.stringify(l))})(i),wt("STORAGE state",{ourSessions:Object.keys(i).length,ourTotalMessages:Object.values(i).reduce((l,c)=>l+c.messages.length,0)})},CA=e=>{var t,n;return(n=(t=Fn()[e])===null||t===void 0?void 0:t.messages.length)!==null&&n!==void 0?n:0},Ef=e=>{const t=Fn()[e];return t!=null&&t.startedAt?Date.now()-new Date(t.startedAt).getTime():0},kA=At(void 0),Pf=e=>{let{children:t,getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}=e;return M.createElement(kA.Provider,{value:{getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}},t)},Xo=()=>{const e=rt(kA);if(!e)throw new Error("useSession must be used within a SessionProvider");return e},Cf=()=>{const[e,t]=ee(!1),[n,r]=ee([]),[o,i]=ee(null),[A,s]=ee(0),a=ne(null),l=ne(null),{replaceMessages:c}=Tn(),{toggleTextAreaDisabled:u}=Ga(),{setSessionId:d,getSessionId:f}=Xo();X(()=>{var m,p;const v=g=>{a.current&&!a.current.contains(g.target)&&l.current&&!l.current.contains(g.target)&&t(!1)},y=(p=(m=a.current)===null||m===void 0?void 0:m.getRootNode())!==null&&p!==void 0?p:document;return e&&y.addEventListener("mousedown",v),()=>{y.removeEventListener("mousedown",v)}},[e]);const h=m=>{var p;const v=f();if(wt("RESTORE requested",{targetSession:m.slice(-12),currentSession:v==null?void 0:v.slice(-12)}),m===v)return wt("RESTORE skipped - already on this session"),void t(!1);const y=(P=>{var E;return((E=Fn()[P])===null||E===void 0?void 0:E.messages)||[]})(m).filter(P=>{var E;return(E=P.content)===null||E===void 0?void 0:E.trim()});wt("Stored messages from our localStorage",{count:y.length,ids:y.map(P=>P.id.slice(-8))});const g=y.map(P=>({id:P.id,content:P.content,sender:P.sender.toUpperCase(),type:P.type||"string",timestamp:new Date(P.timestamp).toISOString()}));var _;d(m),wt("Session ID updated",{newSession:m.slice(-12)}),c(g),wt("replaceMessages called",{count:g.length}),_=(p=l.current)===null||p===void 0?void 0:p.getRootNode(),setTimeout(()=>{const P=(_||document).querySelector(".rcb-chat-body-container");P&&P.querySelectorAll(".rcb-bot-message").forEach(E=>{var k;let B=E.innerHTML,T=!1;B.includes("](")&&(B=B.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),T=!0),B.includes("<a href=")&&(B=B.replace(/<a\s+href=["']([^"']+)["'][^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),T=!0),(B.includes("<a ")||!((k=E.textContent)===null||k===void 0)&&k.includes("<a href="))&&(E.textContent||"").includes("<a href=")&&(B=B.replace(/<a\s+href="([^"]+)"[^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),T=!0),T&&(E.innerHTML=B)})},50),u(!1),wt("Chat input enabled after restore"),t(!1)};return M.createElement("div",{style:{position:"relative"}},M.createElement("button",{ref:l,className:"history-button",onClick:()=>{if(!e&&(r((()=>{const m=Fn();return Object.entries(m).map(p=>{let[v,y]=p;return Object.assign({sessionId:v},y)}).sort((p,v)=>new Date(v.startedAt).getTime()-new Date(p.startedAt).getTime())})()),l.current)){const m=l.current.closest(".rcb-chat-window");if(m){const p=m.getBoundingClientRect(),v=l.current.getBoundingClientRect();i(p.width+3),s(p.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"},M.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"},M.createElement("circle",{cx:"12",cy:"12",r:"10"}),M.createElement("polyline",{points:"12 6 12 12 16 14"}))),e&&M.createElement("div",{ref:a,role:"menu",style:{position:"absolute",right:A?`-${A}px`:"-18px",top:"100%",marginTop:"8px",width:o?`${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?M.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(m=>M.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:p=>{p.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="transparent"}},M.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},m.preview||"New conversation"),M.createElement("span",{style:{fontSize:"12px",color:"#888"}},(p=>{const v=new Date(p),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))))))},SA=e=>{var{width:t=24,height:n=24,color:r="currentColor",children:o}=e,i=fa(e,["width","height","color","children"]);return M.createElement("svg",rr({xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},i),o)},kf=e=>M.createElement(SA,e,M.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"})),Sf=()=>{const{restartFlow:e}=dr(),{setTextAreaValue:t}=Ga(),{messages:n}=Tn(),{getSessionId:r,resetSession:o,clearResettingFlag:i}=Xo(),{trackEvent:A}=yA();return M.createElement("button",{onClick:async()=>{const s=r(),a=s?CA(s):0;A({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:s=>{s.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:s=>{s.target.style.backgroundColor="var(--primaryColor, #107180)"}},M.createElement(kf,{width:16,height:16}),"New Chat")};function Jo(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(!e)return"";if(Array.isArray(e))return e.map(Jo).join("");if(typeof e=="object"&&e!==null&&"props"in e){const t=e.props;if(t&&"children"in t)return Jo(t.children)}return""}const Df=()=>{const{getSessionId:e}=Xo(),t=q(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,A=o.type||"string";let s;if(s=typeof o.content=="string"?o.content:Jo(o.content),bf("TRACKED",{id:o.id,sender:i,content:s.substring(0,50)+(s.length>50?"...":"")}),s.includes("rcb-options-container")||!s.trim())return;const a=e();_f(a,o.id,s,i,A)},[e]);return X(()=>(window.addEventListener("rcb-pre-inject-message",t),()=>{window.removeEventListener("rcb-pre-inject-message",t)}),[t]),null},Bf=()=>(X(()=>{const e=i=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(i.key))return;const A=document.activeElement;if(A&&(A.tagName==="INPUT"||A.tagName==="TEXTAREA"||A.contentEditable==="true"||A.classList.contains("rcb-chat-input-textarea")))return;const s=document.querySelector(".rcb-chat-window");if(!s)return;const a=Array.from(s.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")),f=u.querySelector(".rcb-checkbox-next-button");if(d.length>0){const h=[...d];return f&&h.push(f),void((m,p)=>{m.preventDefault();let v=-1;for(let g=0;g<p.length;g++)if(p[g]===document.activeElement||p[g].contains(document.activeElement)){v=g;break}v===-1&&(v=0);let y=v;switch(m.key){case"ArrowDown":case"ArrowRight":y=v<p.length-1?v+1:0;break;case"ArrowUp":case"ArrowLeft":y=v>0?v-1:p.length-1;break;case"Home":y=0;break;case"End":y=p.length-1;break;case"Enter":case" ":{const g=p[v],_=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void g.dispatchEvent(_)}default:return}p[y].focus(),p[y].setAttribute("tabindex","0"),p[y].classList.add("keyboard-focused"),p.forEach((g,_)=>{_!==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(f=>f.offsetParent!==null);if(d.length>0){const f=d[d.length-1];l=Array.from(f.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,f)=>{f!==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,f)=>{f!==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 f=u.querySelector(".rcb-checkbox-label"),h=f?f.textContent:u.textContent||"checkbox",m=u.querySelector(".rcb-checkbox-mark"),p=m&&m.style.backgroundColor?"checked":"unchecked";t(`${h} ${p}`)}else{const d=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});u.dispatchEvent(d);const f=u.textContent||u.innerText;t(`Selected: ${f}`)}}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,f)=>{f!==u&&(d.setAttribute("tabindex","-1"),d.classList.remove("keyboard-focused"))}),l[u].classList.add("keyboard-focused"),l[u].focus()}}},t=i=>{const A=document.createElement("div");A.setAttribute("aria-live","assertive"),A.setAttribute("aria-atomic","true"),A.className="sr-only",A.textContent=i,document.body.appendChild(A),setTimeout(()=>{document.body.contains(A)&&document.body.removeChild(A)},1e3)},n=(i=null)=>{let A=i;if(A||(A=document.querySelector(".rcb-chat-window"),A||(A=document.querySelector('[class*="rcb-chat"]')),A||(A=document.querySelector(".qa-bot"))),!A)return;const s=A.closest(".embedded-qa-bot")!==null,a=Array.from(A.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&&A&&(d=A.querySelector(".rcb-checkbox-container")),d&&d.offsetParent!==null){const f=Array.from(d.querySelectorAll(".rcb-checkbox-row-container")).filter(h=>h.offsetParent!==null&&h.style.display!=="none");if(f.length>0){const h=d.querySelector(".rcb-checkbox-next-button"),m=[...f];if(h&&h.offsetParent!==null&&m.push(h),m.forEach((p,v)=>{p.setAttribute("tabindex",v===0?"0":"-1"),v===0?p.classList.add("keyboard-focused"):p.classList.remove("keyboard-focused")}),f.length>1){d.querySelectorAll(".keyboard-nav-hint").forEach(v=>v.remove());const p=document.createElement("div");p.className="keyboard-nav-hint",p.textContent="Use arrow keys โ to navigate, Enter to select/deselect, 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)}return void setTimeout(()=>{m[0]&&m[0].offsetParent!==null&&!s&&m[0].focus()},150)}}}if(u.length>0){if(u.forEach((d,f)=>{const h=f===0?"0":"-1";d.setAttribute("tabindex",h),d.setAttribute("role","option"),d.setAttribute("aria-posinset",f+1),d.setAttribute("aria-setsize",u.length),f===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 f=document.createElement("div");f.className="keyboard-nav-hint",f.textContent="Use arrow keys โ to navigate, Enter to select, 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)}}else{const d=c.length>0?c[c.length-1]:null;d&&d.querySelectorAll(".keyboard-nav-hint").forEach(f=>f.remove())}setTimeout(()=>{u[0]&&u[0].offsetParent!==null&&!s&&(u[0].focus(),u.length>1&&t(`${u.length} options available. Use arrow keys to navigate.`))},200)}},r=new MutationObserver(i=>{i.forEach(A=>{var s,a;if(A.type==="childList"){const l=Array.from(A.addedNodes),c=l.some(d=>{var f,h,m,p;return d.nodeType===Node.ELEMENT_NODE&&(((f=d.classList)==null?void 0:f.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"))||((p=d.querySelector)==null?void 0:p.call(d,".rcb-options")))}),u=l.some(d=>{var f,h;return d.nodeType===Node.ELEMENT_NODE&&(((f=d.classList)==null?void 0:f.contains("rcb-checkbox-container"))||((h=d.querySelector)==null?void 0:h.call(d,".rcb-checkbox-container")))});if(c||u){let d=A.target;for(;d&&!((s=d.classList)!=null&&s.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(f=>{f.setAttribute("tabindex","-1"),f.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 A=i.querySelectorAll(".rcb-options-container .rcb-options").length>0,s=i.querySelectorAll(".rcb-checkbox-row-container").length>0;if(A){const a=i.querySelectorAll(".rcb-options[tabindex]").length;i.querySelectorAll(".rcb-options").length>a&&n(i)}if(s){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);let DA=!1,Pr=null;function BA(){return DA?Promise.resolve():Pr||(Pr=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",n.async=!0,n.onload=()=>{DA=!0,Un("Script loaded"),e()},n.onerror=()=>{Pr=null,t(new Error("Failed to load Turnstile script"))},document.head.appendChild(n)}),Pr)}const zn=e=>{if(!e||typeof e!="string")return e;let t=e.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return t=t.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),n=>{let r=n,o="";const i=r.match(/([.,;:!?]+)$/);return i&&(o=i[1],r=r.slice(0,-o.length)),`[${r}](${r})${o}`}),t},xf=e=>{let{siteKey:t,onVerify:n,onError:r,loginUrl:o}=e;const i=ne(null),A=ne(null),s=ne(!1),a=ne(null),l=ne(null),[c,u]=ee(!1),[d,f]=ee(0),h=ne("widget_error"),m=ne(null),p=o&&o!=="/login",v=q(()=>{const _=window.turnstile;if(a.current&&(_!=null&&_.remove)){try{_.remove(a.current)}catch{}a.current=null}},[]),y=q(()=>{var _;v(),c?r==null||r(h.current,(_=m.current)!==null&&_!==void 0?_:void 0):r==null||r("user_cancelled")},[r,v,c]);X(()=>()=>{v()},[v]),X(()=>{var _;return l.current=document.activeElement,(_=A.current)===null||_===void 0||_.focus(),()=>{l.current&&typeof l.current.focus=="function"&&l.current.focus()}},[]),X(()=>{const _=P=>{if(P.key==="Escape")return P.preventDefault(),void y();if(P.key==="Tab"&&A.current){const E=A.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(E.length===0)return;const k=E[0],B=E[E.length-1];P.shiftKey&&document.activeElement===k?(P.preventDefault(),B.focus()):P.shiftKey||document.activeElement!==B||(P.preventDefault(),k.focus())}};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[y]),X(()=>{s.current||!i.current||c||(s.current=!0,BA().then(()=>{const _=window.turnstile;if(!_||!i.current)return Le("Turnstile API not available after script load"),h.current="api_unavailable",void u(!0);a.current=_.render(i.current,{sitekey:t,callback:P=>{Un("Visible challenge completed"),n(P)},"error-callback":P=>(Le("Turnstile challenge failed:",P),m.current=P,h.current="widget_error",v(),u(!0),!0),"expired-callback":()=>{Le("Turnstile token expired"),h.current="token_expired",v(),u(!0)}})}).catch(_=>{Le("Failed to load Turnstile script:",_),h.current="script_load_failed",u(!0)}))},[t,n,c]);const g=M.createElement(M.Fragment,null,M.createElement("div",{"aria-hidden":"true",style:{position:"fixed",inset:0,background:"rgba(0, 0, 0, 0.5)",zIndex:999998}}),M.createElement("div",{ref:A,role:"dialog","aria-modal":"true","aria-labelledby":"qa-bot-turnstile-label",tabIndex:-1,style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:999999,background:"white",padding:"24px",borderRadius:"8px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)",maxWidth:"90vw",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'}},M.createElement("span",{id:"qa-bot-turnstile-label",className:"sr-only",style:{position:"absolute",width:"1px",height:"1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap"}},"Verification challenge"),c?M.createElement("div",{style:{fontSize:"14px",lineHeight:"1.5",color:"#333"}},d===0?M.createElement("p",{style:{margin:"0 0 16px 0"}},"Verification failed. You can try again",p&&M.createElement(M.Fragment,null,", or"," ",M.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer",style:{color:"var(--primaryColor, #107180)",fontWeight:"bold"}},"log in")," ","to skip verification"),"."):M.createElement(M.Fragment,null,M.createElement("p",{style:{margin:"0 0 8px 0"}},"Verification is still not working. This can be caused by browser extensions (ad blockers, privacy tools) or VPN connections."),M.createElement("p",{style:{margin:"0 0 16px 0"}},"Try disabling extensions, using a private/incognito window,",p&&M.createElement(M.Fragment,null," ",M.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer",style:{color:"var(--primaryColor, #107180)",fontWeight:"bold"}},"logging in"),",")," ","or using a different browser.")),M.createElement("div",{style:{display:"flex",gap:"8px"}},M.createElement("button",{type:"button",onClick:()=>{v(),s.current=!1,f(_=>_+1),u(!1)},style:{padding:"8px 16px",background:"var(--primaryColor, #107180)",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"14px"}},"Try again"),M.createElement("button",{type:"button",onClick:y,style:{padding:"8px 16px",background:"#f0f0f0",color:"#333",border:"1px solid #ccc",borderRadius:"4px",cursor:"pointer",fontSize:"14px"}},"Close"))):M.createElement(M.Fragment,null,M.createElement("div",{ref:i,style:{borderRadius:"8px",overflow:"hidden"}}),M.createElement("button",{type:"button",onClick:y,style:{marginTop:"16px",padding:"8px 16px",background:"#f0f0f0",color:"#333",border:"1px solid #ccc",borderRadius:"4px",cursor:"pointer",fontSize:"14px"}},"Cancel"))));return $i(g,document.body)};function xA(e){const{confidence:t,tools_used:n,metadata:r}=e;if(!(t||n&&n.length!==0))return"";const o=[];return t&&o.push(`โข Confidence: ${t}`),n&&n.length>0&&o.push(`โข Tools used: ${n.join(", ")}`),r!=null&&r.agent&&o.push(`โข Agent: ${r.agent}`),`---
|
|
38
|
+
`),M.createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:`qa-bot-login-button ${o?"qa-bot-header-login-button":""} ${n}`,style:Object.assign(Object.assign({},s),r),onClick:()=>{i({type:"chatbot_login_clicked",loginUrl:t})}},"Log In"))},df=()=>M.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"},M.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"},M.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),M.createElement("circle",{cx:"12",cy:"7",r:"4"}))),He=[];for(let e=0;e<256;++e)He.push((e+256).toString(16).slice(1));let Ko;const ff=new Uint8Array(16);var ws={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function bs(e,t,n){var o;if(ws.randomUUID&&!e)return ws.randomUUID();const r=(e=e||{}).random??((o=e.rng)==null?void 0:o.call(e))??function(){if(!Ko){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ko=crypto.getRandomValues.bind(crypto)}return Ko(ff)}();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(He[i[s+0]]+He[i[s+1]]+He[i[s+2]]+He[i[s+3]]+"-"+He[i[s+4]]+He[i[s+5]]+"-"+He[i[s+6]]+He[i[s+7]]+"-"+He[i[s+8]]+He[i[s+9]]+"-"+He[i[s+10]]+He[i[s+11]]+He[i[s+12]]+He[i[s+13]]+He[i[s+14]]+He[i[s+15]]).toLowerCase()}(r)}function $t(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const pf="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",hf="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",gf="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",mf="background: #f97316; color: white; padding: 2px 6px; border-radius: 3px;",yf="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",vf="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",wf=()=>{$t()&&console.log("%c QA Bot Core %c v0.2.35 ",yf,vf)},_r=function(e){if($t()){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 ${e}`,pf,"",...n)}},wt=function(e){if($t()){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 ${e}`,hf,"",...n)}},bf=(e,t)=>{$t()&&console.log(`%c[Message]%c ${e}`,gf,"",t)},Un=function(e){if($t()){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[Turnstile]%c ${e}`,mf,"",...n)}},Es=function(){console.warn(...arguments)},Le=function(){console.error(...arguments)},_s="qa_bot_session_messages",Ps=()=>`qa_bot_session_${bs()}`,Fn=()=>{try{const e=localStorage.getItem(_s);return e?JSON.parse(e):{}}catch{return{}}},Ef=(e,t,n,r,o)=>{const i=Fn();if(!i[e]&&(i[e]={messages:[],startedAt:new Date().toISOString(),preview:""},wt("NEW session created",{sessionId:e.slice(-12)})),i[e].messages.some(l=>l.id===t))return void wt("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),wt("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,f)=>d+f.messages.length,0);for(;u()>100&&Object.keys(l).length>1;){const d=(c=Object.entries(l).sort((f,h)=>{let[,m]=f,[,p]=h;return new Date(m.startedAt).getTime()-new Date(p.startedAt).getTime()})[0])===null||c===void 0?void 0:c[0];if(!d)break;delete l[d]}localStorage.setItem(_s,JSON.stringify(l))})(i),wt("STORAGE state",{ourSessions:Object.keys(i).length,ourTotalMessages:Object.values(i).reduce((l,c)=>l+c.messages.length,0)})},Cs=e=>{var t,n;return(n=(t=Fn()[e])===null||t===void 0?void 0:t.messages.length)!==null&&n!==void 0?n:0},_f=e=>{const t=Fn()[e];return t!=null&&t.startedAt?Date.now()-new Date(t.startedAt).getTime():0},ks=st(void 0),Pf=e=>{let{children:t,getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}=e;return M.createElement(ks.Provider,{value:{getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}},t)},Xo=()=>{const e=rt(ks);if(!e)throw new Error("useSession must be used within a SessionProvider");return e},Cf=()=>{const[e,t]=ee(!1),[n,r]=ee([]),[o,i]=ee(null),[s,A]=ee(0),a=ne(null),l=ne(null),{replaceMessages:c}=Tn(),{toggleTextAreaDisabled:u}=Ga(),{setSessionId:d,getSessionId:f}=Xo();X(()=>{var m,p;const v=g=>{a.current&&!a.current.contains(g.target)&&l.current&&!l.current.contains(g.target)&&t(!1)},y=(p=(m=a.current)===null||m===void 0?void 0:m.getRootNode())!==null&&p!==void 0?p:document;return e&&y.addEventListener("mousedown",v),()=>{y.removeEventListener("mousedown",v)}},[e]);const h=m=>{var p;const v=f();if(wt("RESTORE requested",{targetSession:m.slice(-12),currentSession:v==null?void 0:v.slice(-12)}),m===v)return wt("RESTORE skipped - already on this session"),void t(!1);const y=(P=>{var _;return((_=Fn()[P])===null||_===void 0?void 0:_.messages)||[]})(m).filter(P=>{var _;return(_=P.content)===null||_===void 0?void 0:_.trim()});wt("Stored messages from our localStorage",{count:y.length,ids:y.map(P=>P.id.slice(-8))});const g=y.map(P=>({id:P.id,content:P.content,sender:P.sender.toUpperCase(),type:P.type||"string",timestamp:new Date(P.timestamp).toISOString()}));var E;d(m),wt("Session ID updated",{newSession:m.slice(-12)}),c(g),wt("replaceMessages called",{count:g.length}),E=(p=l.current)===null||p===void 0?void 0:p.getRootNode(),setTimeout(()=>{const P=(E||document).querySelector(".rcb-chat-body-container");P&&P.querySelectorAll(".rcb-bot-message").forEach(_=>{var k;let B=_.innerHTML,T=!1;B.includes("](")&&(B=B.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),T=!0),B.includes("<a href=")&&(B=B.replace(/<a\s+href=["']([^"']+)["'][^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),T=!0),(B.includes("<a ")||!((k=_.textContent)===null||k===void 0)&&k.includes("<a href="))&&(_.textContent||"").includes("<a href=")&&(B=B.replace(/<a\s+href="([^"]+)"[^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),T=!0),T&&(_.innerHTML=B)})},50),u(!1),wt("Chat input enabled after restore"),t(!1)};return M.createElement("div",{style:{position:"relative"}},M.createElement("button",{ref:l,className:"history-button",onClick:()=>{if(!e&&(r((()=>{const m=Fn();return Object.entries(m).map(p=>{let[v,y]=p;return Object.assign({sessionId:v},y)}).sort((p,v)=>new Date(v.startedAt).getTime()-new Date(p.startedAt).getTime())})()),l.current)){const m=l.current.closest(".rcb-chat-window");if(m){const p=m.getBoundingClientRect(),v=l.current.getBoundingClientRect();i(p.width+3),A(p.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"},M.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"},M.createElement("circle",{cx:"12",cy:"12",r:"10"}),M.createElement("polyline",{points:"12 6 12 12 16 14"}))),e&&M.createElement("div",{ref:a,role:"menu",style:{position:"absolute",right:s?`-${s}px`:"-18px",top:"100%",marginTop:"8px",width:o?`${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?M.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(m=>M.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:p=>{p.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="transparent"}},M.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},m.preview||"New conversation"),M.createElement("span",{style:{fontSize:"12px",color:"#888"}},(p=>{const v=new Date(p),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))))))},Ss=e=>{var{width:t=24,height:n=24,color:r="currentColor",children:o}=e,i=fa(e,["width","height","color","children"]);return M.createElement("svg",rr({xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},i),o)},kf=e=>M.createElement(Ss,e,M.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"})),Sf=()=>{const{restartFlow:e}=dr(),{setTextAreaValue:t}=Ga(),{messages:n}=Tn(),{getSessionId:r,resetSession:o,clearResettingFlag:i}=Xo(),{trackEvent:s}=ys();return M.createElement("button",{onClick:async()=>{const A=r(),a=A?Cs(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)"}},M.createElement(kf,{width:16,height:16}),"New Chat")};function Jo(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(!e)return"";if(Array.isArray(e))return e.map(Jo).join("");if(typeof e=="object"&&e!==null&&"props"in e){const t=e.props;if(t&&"children"in t)return Jo(t.children)}return""}const Df=()=>{const{getSessionId:e}=Xo(),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:Jo(o.content),bf("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();Ef(a,o.id,A,i,s)},[e]);return X(()=>(window.addEventListener("rcb-pre-inject-message",t),()=>{window.removeEventListener("rcb-pre-inject-message",t)}),[t]),null},Bf=()=>(X(()=>{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")),f=u.querySelector(".rcb-checkbox-next-button");if(d.length>0){const h=[...d];return f&&h.push(f),void((m,p)=>{m.preventDefault();let v=-1;for(let g=0;g<p.length;g++)if(p[g]===document.activeElement||p[g].contains(document.activeElement)){v=g;break}v===-1&&(v=0);let y=v;switch(m.key){case"ArrowDown":case"ArrowRight":y=v<p.length-1?v+1:0;break;case"ArrowUp":case"ArrowLeft":y=v>0?v-1:p.length-1;break;case"Home":y=0;break;case"End":y=p.length-1;break;case"Enter":case" ":{const g=p[v],E=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void g.dispatchEvent(E)}default:return}p[y].focus(),p[y].setAttribute("tabindex","0"),p[y].classList.add("keyboard-focused"),p.forEach((g,E)=>{E!==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(f=>f.offsetParent!==null);if(d.length>0){const f=d[d.length-1];l=Array.from(f.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,f)=>{f!==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,f)=>{f!==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 f=u.querySelector(".rcb-checkbox-label"),h=f?f.textContent:u.textContent||"checkbox",m=u.querySelector(".rcb-checkbox-mark"),p=m&&m.style.backgroundColor?"checked":"unchecked";t(`${h} ${p}`)}else{const d=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});u.dispatchEvent(d);const f=u.textContent||u.innerText;t(`Selected: ${f}`)}}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,f)=>{f!==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 f=Array.from(d.querySelectorAll(".rcb-checkbox-row-container")).filter(h=>h.offsetParent!==null&&h.style.display!=="none");if(f.length>0){const h=d.querySelector(".rcb-checkbox-next-button"),m=[...f];if(h&&h.offsetParent!==null&&m.push(h),m.forEach((p,v)=>{p.setAttribute("tabindex",v===0?"0":"-1"),v===0?p.classList.add("keyboard-focused"):p.classList.remove("keyboard-focused")}),f.length>1){d.querySelectorAll(".keyboard-nav-hint").forEach(v=>v.remove());const p=document.createElement("div");p.className="keyboard-nav-hint",p.textContent="Use arrow keys โ to navigate, Enter to select/deselect, 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)}return void setTimeout(()=>{m[0]&&m[0].offsetParent!==null&&!A&&m[0].focus()},150)}}}if(u.length>0){if(u.forEach((d,f)=>{const h=f===0?"0":"-1";d.setAttribute("tabindex",h),d.setAttribute("role","option"),d.setAttribute("aria-posinset",f+1),d.setAttribute("aria-setsize",u.length),f===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 f=document.createElement("div");f.className="keyboard-nav-hint",f.textContent="Use arrow keys โ to navigate, Enter to select, 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)}}else{const d=c.length>0?c[c.length-1]:null;d&&d.querySelectorAll(".keyboard-nav-hint").forEach(f=>f.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 f,h,m,p;return d.nodeType===Node.ELEMENT_NODE&&(((f=d.classList)==null?void 0:f.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"))||((p=d.querySelector)==null?void 0:p.call(d,".rcb-options")))}),u=l.some(d=>{var f,h;return d.nodeType===Node.ELEMENT_NODE&&(((f=d.classList)==null?void 0:f.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(f=>{f.setAttribute("tabindex","-1"),f.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);let Ds=!1,Pr=null;function Bs(){return Ds?Promise.resolve():Pr||(Pr=new Promise((e,t)=>{const n=document.createElement("script");n.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",n.async=!0,n.onload=()=>{Ds=!0,Un("Script loaded"),e()},n.onerror=()=>{Pr=null,t(new Error("Failed to load Turnstile script"))},document.head.appendChild(n)}),Pr)}const zn=e=>{if(!e||typeof e!="string")return e;let t=e.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return t=t.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),n=>{let r=n,o="";const i=r.match(/([.,;:!?]+)$/);return i&&(o=i[1],r=r.slice(0,-o.length)),`[${r}](${r})${o}`}),t},xf=e=>{let{siteKey:t,onVerify:n,onError:r,loginUrl:o}=e;const i=ne(null),s=ne(null),A=ne(!1),a=ne(null),l=ne(null),[c,u]=ee(!1),[d,f]=ee(0),h=ne("widget_error"),m=ne(null),p=o&&o!=="/login",v=W(()=>{const E=window.turnstile;if(a.current&&(E!=null&&E.remove)){try{E.remove(a.current)}catch{}a.current=null}},[]),y=W(()=>{var E;v(),c?r==null||r(h.current,(E=m.current)!==null&&E!==void 0?E:void 0):r==null||r("user_cancelled")},[r,v,c]);X(()=>()=>{v()},[v]),X(()=>{var E;return l.current=document.activeElement,(E=s.current)===null||E===void 0||E.focus(),()=>{l.current&&typeof l.current.focus=="function"&&l.current.focus()}},[]),X(()=>{const E=P=>{if(P.key==="Escape")return P.preventDefault(),void y();if(P.key==="Tab"&&s.current){const _=s.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(_.length===0)return;const k=_[0],B=_[_.length-1];P.shiftKey&&document.activeElement===k?(P.preventDefault(),B.focus()):P.shiftKey||document.activeElement!==B||(P.preventDefault(),k.focus())}};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[y]),X(()=>{A.current||!i.current||c||(A.current=!0,Bs().then(()=>{const E=window.turnstile;if(!E||!i.current)return Le("Turnstile API not available after script load"),h.current="api_unavailable",void u(!0);a.current=E.render(i.current,{sitekey:t,callback:P=>{Un("Visible challenge completed"),n(P)},"error-callback":P=>(Le("Turnstile challenge failed:",P),m.current=P,h.current="widget_error",v(),u(!0),!0),"expired-callback":()=>{Le("Turnstile token expired"),h.current="token_expired",v(),u(!0)}})}).catch(E=>{Le("Failed to load Turnstile script:",E),h.current="script_load_failed",u(!0)}))},[t,n,c]);const g=M.createElement(M.Fragment,null,M.createElement("div",{"aria-hidden":"true",style:{position:"fixed",inset:0,background:"rgba(0, 0, 0, 0.5)",zIndex:999998}}),M.createElement("div",{ref:s,role:"dialog","aria-modal":"true","aria-labelledby":"qa-bot-turnstile-label",tabIndex:-1,style:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:999999,background:"white",padding:"24px",borderRadius:"8px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)",maxWidth:"90vw",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'}},M.createElement("span",{id:"qa-bot-turnstile-label",className:"sr-only",style:{position:"absolute",width:"1px",height:"1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap"}},"Verification challenge"),c?M.createElement("div",{style:{fontSize:"14px",lineHeight:"1.5",color:"#333"}},d===0?M.createElement("p",{style:{margin:"0 0 16px 0"}},"Verification failed. You can try again",p&&M.createElement(M.Fragment,null,", or"," ",M.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer",style:{color:"var(--primaryColor, #107180)",fontWeight:"bold"}},"log in")," ","to skip verification"),"."):M.createElement(M.Fragment,null,M.createElement("p",{style:{margin:"0 0 8px 0"}},"Verification is still not working. This can be caused by browser extensions (ad blockers, privacy tools) or VPN connections."),M.createElement("p",{style:{margin:"0 0 16px 0"}},"Try disabling extensions, using a private/incognito window,",p&&M.createElement(M.Fragment,null," ",M.createElement("a",{href:o,target:"_blank",rel:"noopener noreferrer",style:{color:"var(--primaryColor, #107180)",fontWeight:"bold"}},"logging in"),",")," ","or using a different browser.")),M.createElement("div",{style:{display:"flex",gap:"8px"}},M.createElement("button",{type:"button",onClick:()=>{v(),A.current=!1,f(E=>E+1),u(!1)},style:{padding:"8px 16px",background:"var(--primaryColor, #107180)",color:"white",border:"none",borderRadius:"4px",cursor:"pointer",fontSize:"14px"}},"Try again"),M.createElement("button",{type:"button",onClick:y,style:{padding:"8px 16px",background:"#f0f0f0",color:"#333",border:"1px solid #ccc",borderRadius:"4px",cursor:"pointer",fontSize:"14px"}},"Close"))):M.createElement(M.Fragment,null,M.createElement("div",{ref:i,style:{borderRadius:"8px",overflow:"hidden"}}),M.createElement("button",{type:"button",onClick:y,style:{marginTop:"16px",padding:"8px 16px",background:"#f0f0f0",color:"#333",border:"1px solid #ccc",borderRadius:"4px",cursor:"pointer",fontSize:"14px"}},"Cancel"))));return $i(g,document.body)};function xs(e){const{confidence:t,tools_used:n,metadata:r}=e;if(!(t||n&&n.length!==0))return"";const o=[];return t&&o.push(`โข Confidence: ${t}`),n&&n.length>0&&o.push(`โข Tools used: ${n.join(", ")}`),r!=null&&r.agent&&o.push(`โข Agent: ${r.agent}`),`---
|
|
39
39
|
${o.join(`
|
|
40
|
-
`)}`}function If(e){let{getState:t,onResubmit:n,trackEvent:r,loginUrl:o}=e;var i,
|
|
40
|
+
`)}`}function If(e){let{getState:t,onResubmit:n,trackEvent:r,loginUrl:o}=e;var i,s;const[A,a]=M.useState(null),[l,c]=M.useState(0),u=t(),d=(i=Il)!==null&&i!==void 0?i:{},f=d.VITE_FORCE_TURNSTILE_WIDGET==="true",h=(s=u.siteKey)!==null&&s!==void 0?s:f?d.VITE_TURNSTILE_SITE_KEY:null;return h&&(f||A!==h)?M.createElement(xf,{key:l,siteKey:h,loginUrl:o,onVerify:async m=>{const p=h;u.token=m,r==null||r({type:"chatbot_turnstile_completed"}),await n(m)==="needs_another_challenge"?c(v=>v+1):a(p)},onError:(m,p)=>{var v;const y=(v=u.pendingQuery)===null||v===void 0?void 0:v.queryId,g=h;u.token=null,u.pendingQuery=null,u.needsChallenge=!1,u.siteKey=null,a(g),r==null||r({type:"chatbot_turnstile_error",queryId:y,failureReason:m,cloudflareErrorCode:p})}}):null}const Tf="#1a5b6e",Qf="#107180",Mf="Arial, sans-serif",Is="Q&A Bot",Of="/chat-icon.svg",Nf="Type your question here...",Lf="Select an option to continue",Rf=!1,Hf="Ask me a question!",Ts="/login",Uf={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:5e3,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}},Zo=Ye((e,t)=>{var n,r,o;const{apiKey:i,qaEndpoint:s,ratingEndpoint:A,capabilitiesEndpoint:a,agentRatingEndpoint:l,welcomeMessage:c,open:u,onOpenChange:d,isLoggedIn:f,allowAnonAccess:h=!1,actingUser:m,primaryColor:p,secondaryColor:v,botName:y,logo:g,placeholder:E,errorMessage:P,embedded:_,footerText:k,footerLink:B,tooltipText:T,loginUrl:D,turnstileSiteKey:O,backendId:S,resourceContext:N,customFlow:R,onAnalyticsEvent:L}=e,U=ne(`bot_${Math.random().toString(36).substr(2,9)}`);X(()=>{wf()},[]);const x=ne(null);x.current===null&&(x.current=Ps(),_r("CREATED",x.current));const Q=ne(!1),w=ne({getSessionId:()=>x.current,isResetting:()=>Q.current}),V=ne(null),b=function(j,q){const[he,Ae]=ee(null),[Ce,we]=ee("idle"),ge=ne(null),ze=ne(null),Ne=ne(!0),fn=W(()=>{const xe=window.turnstile;if(ze.current&&(xe!=null&&xe.remove)){try{xe.remove(ze.current)}catch{}ze.current=null}ge.current&&(ge.current.remove(),ge.current=null)},[]);return X(()=>{if(Ne.current=!0,!j)return we("idle"),void Ae(null);we("loading");const xe=document.createElement("div");return xe.style.position="fixed",xe.style.left="-9999px",xe.style.top="-9999px",xe.style.width="0",xe.style.height="0",xe.style.overflow="hidden",xe.setAttribute("aria-hidden","true"),document.body.appendChild(xe),ge.current=xe,Bs().then(()=>{if(!Ne.current)return;const ut=window.turnstile;if(!ut||!ge.current)return Le("Turnstile API not available for silent verification"),we("failed"),void(q==null||q({type:"chatbot_turnstile_silent_failed",failureReason:"api_unavailable"}));const Be=ut.render(ge.current,{sitekey:j,execution:"render","refresh-expired":"auto",callback:St=>{Ne.current&&(Un("Silent verification succeeded"),Ae(St),we("verified"))},"error-callback":St=>!Ne.current||(Le("Turnstile silent verification failed:",St),Ae(null),we("failed"),q==null||q({type:"chatbot_turnstile_silent_failed",failureReason:"widget_error",cloudflareErrorCode:St}),!0),"expired-callback":()=>{Ne.current&&(Un("Token expired, awaiting refresh"),Ae(null),we("loading"))}});ze.current=Be}).catch(ut=>{Ne.current&&(Le("Failed to load Turnstile script for silent verification:",ut),we("failed"),q==null||q({type:"chatbot_turnstile_silent_failed",failureReason:"script_load_failed"}))}),()=>{Ne.current=!1,fn()}},[j,fn]),{token:he,status:Ce,reset:W(()=>{const xe=window.turnstile;ze.current&&(xe!=null&&xe.reset)&&(Ae(null),we("loading"),xe.reset(ze.current),Un("Token consumed, resetting widget for fresh token"))},[])}}(O,j=>{var q;(q=V.current)===null||q===void 0||q.call(V,j)}),F=ne(null);F.current=b.token;const[J,K]=ee(f);X(()=>{K(f)},[f]);const oe=_!==void 0?_:Rf,ve=W(j=>{var q;L&&L(Object.assign(Object.assign({},j),{timestamp:Date.now(),sessionId:(q=x.current)!==null&&q!==void 0?q:void 0,pageUrl:typeof window<"u"?window.location.href:void 0,isEmbedded:oe}))},[L,oe]);X(()=>{V.current=j=>ve(j)},[ve]);const ue=Ie(()=>{const j=Object.assign({},Uf);j.general=Object.assign(Object.assign({},j.general),{primaryColor:p||Tf,secondaryColor:v||Qf,fontFamily:Mf,embedded:oe});const q=J===!1?[M.createElement(vs,{key:"login-button",loginUrl:D||Ts,isHeaderButton:!0})]:[M.createElement(Cf,{key:"history-button"}),M.createElement(df,{key:"user-icon"})];j.header={title:M.createElement("span",{style:{fontSize:14,fontWeight:500}},y||Is),showAvatar:!0,avatar:g||Of,buttons:[...q,De.CLOSE_CHAT_BUTTON]},j.chatInput=Object.assign(Object.assign({},j.chatInput),{disabled:!1,enabledPlaceholderText:E||Nf,disabledPlaceholderText:P||Lf}),j.tooltip=Object.assign(Object.assign({},j.tooltip),{text:T||Hf});const he=k?B?M.createElement("a",{href:B,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},k):M.createElement("span",{key:"footer-text"},k):null;return j.footer={text:he??void 0,buttons:[M.createElement(Sf,{key:"new-chat-button"})]},j.chatWindow=Object.assign(Object.assign({},j.chatWindow),{defaultOpen:!!oe}),j.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},j},[p,v,y,g,E,P,oe,T,J,D,k,B]),Ve=ne(null),Me=function(j){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ie(()=>{const he=(Ae,Ce)=>{if(j.current){const we=getComputedStyle(j.current).getPropertyValue(Ae);if(we&&we.trim()!=="")return we.trim();if(j.current.parentElement){const ge=getComputedStyle(j.current.parentElement).getPropertyValue(Ae);if(ge&&ge.trim()!=="")return ge.trim()}}return Ce};return{primaryColor:he("--primaryColor",q.primaryColor),secondaryColor:he("--secondaryColor",q.secondaryColor),fontFamily:he("--fontFamily",q.fontFamily)}},[j,q])}(Ve,ue.general);((j,q)=>{X(()=>{q.current&&(j?q.current.classList.add("bot-logged-in"):q.current.classList.remove("bot-logged-in"))},[j,q])})(J!==!1,Ve),(j=>{let{settings:q,themeColors:he}=j;X(()=>{he&&(Object.entries(he).forEach(Ae=>{let[Ce,we]=Ae;we&&document.documentElement.style.setProperty(`--${Ce}`,we)}),he.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",he.primaryColor),he.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",he.secondaryColor))},[he]),X(()=>{var Ae,Ce;!((Ae=q.header)===null||Ae===void 0)&&Ae.title&&typeof q.header.title=="string"&&(q.header.title=M.createElement("div",{key:"header-title"},M.createElement("h1",{className:"sr-only"},q.header.title),M.createElement("span",{"aria-hidden":"true"},q.header.title))),q.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},q.chatHistory={disabled:!0},q.chatButton=Object.assign(Object.assign({},q.chatButton),{icon:(Ce=q.header)===null||Ce===void 0?void 0:Ce.avatar}),q.event=Object.assign(Object.assign({},q.event),{rcbToggleChatWindow:!0})},[q])})({settings:ue,themeColors:Me});const Re=Ie(()=>{const j=(he=>{let{endpoint:Ae,ratingEndpoint:Ce,agentRatingEndpoint:we,apiKey:ge,sessionId:ze,isResetting:Ne=()=>!1,isLoggedIn:fn,allowAnonAccess:xe=!1,loginUrl:ut="/login",trackEvent:Be,getTurnstileToken:St,resetTurnstileToken:pn,backendId:hn,resourceContext:bt}=he;if(fn===!1&&!xe)return Be==null||Be({type:"chatbot_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:M.createElement(vs,{loginUrl:ut}),chatDisabled:!0,path:"qa_loop"}};let I=null,G=null,Z=!1;const $={siteKey:null,token:null,pendingQuery:null,needsChallenge:!1};let le=null;if(!Ae)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async de=>{var nt;le=de.injectMessage.bind(de);const{userInput:ke}=de;if((!Ne||!Ne())&&ke&&ke.trim()!==""){if(ke==="๐ Helpful"||ke==="๐ Not helpful"){if(I){const me=ke==="๐ Helpful",je=G==="agent"?we:Ce;if(je)try{const fe={"Content-Type":"application/json"};ge&&(fe["X-API-KEY"]=ge);const be=ze();be&&(fe["X-Session-ID"]=be,fe["X-Query-ID"]=I),await fetch(je,{method:"POST",headers:fe,credentials:"include",body:JSON.stringify(G==="agent"?{query_id:I,rating:me?"helpful":"not_helpful",session_id:be}:{sessionId:be,queryId:I,rating:me?1:0})}),Be==null||Be({type:"chatbot_rating_sent",queryId:I,rating:me?"helpful":"not_helpful"})}catch(fe){Le("Error sending feedback:",fe)}}return"Thanks for the feedback!"}try{const me=bs();I=me,Be==null||Be({type:"chatbot_question_sent",queryId:me,questionLength:ke.length});const je={"Content-Type":"application/json"};ge&&(je["X-API-KEY"]=ge);const fe=ze();fe&&(je["X-Session-ID"]=fe,je["X-Query-ID"]=me),je["X-Origin"]=bt||"access";const be={query:ke,question_id:me};fe&&(be.session_id=fe),hn&&(be._backend=hn),bt&&(be.rp_name=bt,be.resource_context=bt);const We=St==null?void 0:St();We&&(be.turnstile_token=We),_r("SENT to API",{session_id:fe,question_id:me});const qn=Date.now(),Rt=await fetch(Ae,{method:"POST",headers:je,credentials:"include",body:JSON.stringify(be)});if(!Rt.ok)throw new Error(`API returned ${Rt.status}`);if((Rt.headers.get("content-type")||"").includes("text/event-stream")){pn==null||pn();const Ir=(nt=Rt.body)===null||nt===void 0?void 0:nt.getReader();if(!Ir)throw new Error("Response body is not readable");const ai=new TextDecoder;let _t="",Bt="",Ut=!1;try{for(;;){const{done:Ft,value:Pt}=await Ir.read();if(Ft)break;_t+=ai.decode(Pt,{stream:!0});let yn=_t.indexOf(`
|
|
41
41
|
|
|
42
|
-
`);for(;yn!==-1;){const pp=
|
|
43
|
-
`))Ge.startsWith("event: ")?wn=Ge.slice(7):Ge.startsWith("data: ")&&(Tr=Ge.slice(6));if(wn&&Tr){try{vn=JSON.parse(Tr)}catch{
|
|
42
|
+
`);for(;yn!==-1;){const pp=_t.slice(0,yn);_t=_t.slice(yn+2);let vn,wn="",Tr="";for(const Ge of pp.split(`
|
|
43
|
+
`))Ge.startsWith("event: ")?wn=Ge.slice(7):Ge.startsWith("data: ")&&(Tr=Ge.slice(6));if(wn&&Tr){try{vn=JSON.parse(Tr)}catch{Es("Failed to parse SSE data:",Tr),yn=_t.indexOf(`
|
|
44
44
|
|
|
45
|
-
`);continue}if(wn==="status"){const Ge=vn.message||"Processing...";await de.streamMessage(`_${Ge}_`,"BOT"),Ut=!0}else if(wn==="token"){Bt+=vn.content||"";const Ge=zn(Bt);await de.streamMessage(Ge,"BOT")}else if(wn==="done"){const Ge=vn.metadata||{};if(G=Ge.rating_target||null,Z=Ge.is_final_response===!0,Bt)console.log("[SSE DEBUG] done: tokenContent exists, skipping streamMessage, calling endStreamMessage"),await de.endStreamMessage("BOT");else{const
|
|
45
|
+
`);continue}if(wn==="status"){const Ge=vn.message||"Processing...";await de.streamMessage(`_${Ge}_`,"BOT"),Ut=!0}else if(wn==="token"){Bt+=vn.content||"";const Ge=zn(Bt);await de.streamMessage(Ge,"BOT")}else if(wn==="done"){const Ge=vn.metadata||{};if(G=Ge.rating_target||null,Z=Ge.is_final_response===!0,Bt)console.log("[SSE DEBUG] done: tokenContent exists, skipping streamMessage, calling endStreamMessage"),await de.endStreamMessage("BOT");else{const Ls=vn.response||"";if(Ls){const hp=zn(Ls);await de.streamMessage(hp,"BOT"),Ut=!0}Ut&&await de.endStreamMessage("BOT")}}else if(wn==="error"){const Ge=vn.message||"An error occurred";Le("SSE error event:",Ge),Ut?(await de.streamMessage(Ge,"BOT"),await de.endStreamMessage("BOT")):await de.injectMessage(Ge)}yn=_t.indexOf(`
|
|
46
46
|
|
|
47
|
-
`)}else yn=
|
|
47
|
+
`)}else yn=_t.indexOf(`
|
|
48
48
|
|
|
49
|
-
`)}}Ut&&await de.endStreamMessage("BOT")}catch(Ft){if(Le("Error reading SSE stream:",Ft),!Ut)throw Ft;await de.streamMessage("I had trouble completing the response. Please try again.","BOT"),await de.endStreamMessage("BOT")}const mn=Date.now()-
|
|
49
|
+
`)}}Ut&&await de.endStreamMessage("BOT")}catch(Ft){if(Le("Error reading SSE stream:",Ft),!Ut)throw Ft;await de.streamMessage("I had trouble completing the response. Please try again.","BOT"),await de.endStreamMessage("BOT")}const mn=Date.now()-qn;return void(Be==null||Be({type:"chatbot_answer_received",queryId:me,responseTimeMs:mn,success:!0,responseLength:Bt.length}))}const Br=Date.now()-qn,Et=await Rt.json();if(Et.requires_turnstile)return Be==null||Be({type:"chatbot_turnstile_shown",queryId:me}),$.siteKey=Et.site_key,$.pendingQuery={query:ke,sessionId:fe,queryId:me},$.needsChallenge=!0,"One moment โ verifying your sessionโฆ";pn==null||pn();const gn=Et.response||Et.answer||Et.text||Et.message;if(!gn)throw new Error("Invalid response format from API");const xr=Et.metadata||{};G=xr.rating_target||null,Z=xr.is_final_response===!0;const Dt=zn(gn),Ht=$t()?xs(Et):"",Gn=Ht?`${Dt}
|
|
50
50
|
|
|
51
|
-
${Ht}`:Dt;return await de.injectMessage(Gn),void(Be==null||Be({type:"chatbot_answer_received",queryId:me,responseTimeMs:Br,success:!0,responseLength:gn.length,hasMetadata:!!Ht}))}catch(me){return Le("Error in Q&A flow:",me),Be==null||Be({type:"chatbot_answer_error",queryId:I??void 0,errorType:me instanceof Error?me.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}}},options:de=>Ne&&Ne()||de.userInput==="๐ Helpful"||de.userInput==="๐ Not helpful"||$.needsChallenge?[]:Z&&G&&(G==="agent"?we:Ce)?["๐ Helpful","๐ Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,component:M.createElement(If,{getState:()=>$,onResubmit:async de=>{var nt;if(!$.pendingQuery||!le)return Le("Turnstile resubmit called without pending query or injectMessage"),"error";try{const ke={"Content-Type":"application/json"};ge&&(ke["X-API-KEY"]=ge),$.pendingQuery.sessionId&&(ke["X-Session-ID"]=$.pendingQuery.sessionId,ke["X-Query-ID"]=$.pendingQuery.queryId),ke["X-Origin"]=bt||"access";const me={query:$.pendingQuery.query,question_id:$.pendingQuery.queryId,turnstile_token:de};$.pendingQuery.sessionId&&(me.session_id=$.pendingQuery.sessionId),hn&&(me._backend=hn),bt&&(me.rp_name=bt,me.resource_context=bt);const je=await fetch(
|
|
51
|
+
${Ht}`:Dt;return await de.injectMessage(Gn),void(Be==null||Be({type:"chatbot_answer_received",queryId:me,responseTimeMs:Br,success:!0,responseLength:gn.length,hasMetadata:!!Ht}))}catch(me){return Le("Error in Q&A flow:",me),Be==null||Be({type:"chatbot_answer_error",queryId:I??void 0,errorType:me instanceof Error?me.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}}},options:de=>Ne&&Ne()||de.userInput==="๐ Helpful"||de.userInput==="๐ Not helpful"||$.needsChallenge?[]:Z&&G&&(G==="agent"?we:Ce)?["๐ Helpful","๐ Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,component:M.createElement(If,{getState:()=>$,onResubmit:async de=>{var nt;if(!$.pendingQuery||!le)return Le("Turnstile resubmit called without pending query or injectMessage"),"error";try{const ke={"Content-Type":"application/json"};ge&&(ke["X-API-KEY"]=ge),$.pendingQuery.sessionId&&(ke["X-Session-ID"]=$.pendingQuery.sessionId,ke["X-Query-ID"]=$.pendingQuery.queryId),ke["X-Origin"]=bt||"access";const me={query:$.pendingQuery.query,question_id:$.pendingQuery.queryId,turnstile_token:de};$.pendingQuery.sessionId&&(me.session_id=$.pendingQuery.sessionId),hn&&(me._backend=hn),bt&&(me.rp_name=bt,me.resource_context=bt);const je=await fetch(Ae,{method:"POST",headers:ke,credentials:"include",body:JSON.stringify(me)}),fe=$.pendingQuery.queryId;if(!je.ok)throw new Error(`API returned ${je.status} after Turnstile`);if((je.headers.get("content-type")||"").includes("text/event-stream")){const gn=(nt=je.body)===null||nt===void 0?void 0:nt.getReader();if(!gn)throw new Error("Response body is not readable");const xr=new TextDecoder;let Dt="",Ht="",Gn={};for(;;){const{done:ai,value:_t}=await gn.read();if(ai)break;Dt+=xr.decode(_t,{stream:!0});let Bt=Dt.indexOf(`
|
|
52
52
|
|
|
53
53
|
`);for(;Bt!==-1;){const Ut=Dt.slice(0,Bt);Dt=Dt.slice(Bt+2);let mn="",Ft="";for(const Pt of Ut.split(`
|
|
54
54
|
`))Pt.startsWith("event: ")?mn=Pt.slice(7):Pt.startsWith("data: ")&&(Ft=Pt.slice(6));if(mn&&Ft)try{const Pt=JSON.parse(Ft);mn==="token"?Ht+=Pt.content||"":mn==="done"&&(Gn=Pt.metadata||{})}catch{}Bt=Dt.indexOf(`
|
|
55
55
|
|
|
56
|
-
`)}}if($.token=null,$.pendingQuery=null,$.needsChallenge=!1,$.siteKey=null,!Ht)throw new Error("No content received from stream");G=Gn.rating_target||null,Z=Gn.is_final_response===!0,I=fe;const Ir=zn(Ht);return await le(Ir),Be==null||Be({type:"chatbot_answer_received",queryId:fe,success:!0,responseLength:Ht.length}),"success"}const be=await je.json();if(be.requires_turnstile)return $.siteKey=be.site_key,$.token=null,await le("Still verifying โ please complete the challenge again."),"needs_another_challenge";$.token=null,$.pendingQuery=null,$.needsChallenge=!1,$.siteKey=null;const
|
|
56
|
+
`)}}if($.token=null,$.pendingQuery=null,$.needsChallenge=!1,$.siteKey=null,!Ht)throw new Error("No content received from stream");G=Gn.rating_target||null,Z=Gn.is_final_response===!0,I=fe;const Ir=zn(Ht);return await le(Ir),Be==null||Be({type:"chatbot_answer_received",queryId:fe,success:!0,responseLength:Ht.length}),"success"}const be=await je.json();if(be.requires_turnstile)return $.siteKey=be.site_key,$.token=null,await le("Still verifying โ please complete the challenge again."),"needs_another_challenge";$.token=null,$.pendingQuery=null,$.needsChallenge=!1,$.siteKey=null;const We=be.response||be.answer||be.text||be.message;if(!We)throw new Error("Invalid response format from API");const qn=be.metadata||{};G=qn.rating_target||null,Z=qn.is_final_response===!0,I=fe;const Rt=zn(We),Br=$t()?xs(be):"",Et=Br?`${Rt}
|
|
57
57
|
|
|
58
|
-
${Br}`:Rt;return await le(_t),Be==null||Be({type:"chatbot_answer_received",queryId:fe,success:!0,responseLength:qe.length}),"success"}catch(ke){return Le("Error resubmitting after Turnstile:",ke),$.token=null,$.pendingQuery=null,$.needsChallenge=!1,$.siteKey=null,await(le==null?void 0:le("I had trouble processing your question after verification. Please try again.")),"error"}},trackEvent:Be,loginUrl:ut}),path:"qa_loop"}}})({endpoint:A,ratingEndpoint:s,agentRatingEndpoint:l,apiKey:i,sessionId:w.current.getSessionId,isResetting:w.current.isResetting,isLoggedIn:J,allowAnonAccess:h,loginUrl:D||TA,trackEvent:ve,getTurnstileToken:()=>F.current,resetTurnstileToken:()=>b.reset(),backendId:S,resourceContext:N});return Object.assign(Object.assign({start:{message:c,renderMarkdown:["BOT"],transition:{duration:0},path:"qa_loop"}},j),R||{})},[i,A,s,l,c,J,h,D,R,m,ve,N,S]),st=Ie(()=>{return[()=>Au(W),lf(),()=>cf(j)];var j,W},[]);return X(()=>{const j=()=>{const he=document.querySelector(".rcb-chat-window");if(!he)return;const se=he.querySelector(".rcb-send-button");se&&(se.hasAttribute("tabindex")||se.setAttribute("tabindex","0"),se.hasAttribute("data-keyboard-enabled")||(se.setAttribute("data-keyboard-enabled","true"),se.addEventListener("keydown",Ce=>{if(Ce.key==="Enter"||Ce.key===" "){Ce.preventDefault();const we=se&&Object.keys(se).find(ze=>ze.startsWith("__reactProps"));if(we){const ze=se[we],Ne=ze==null?void 0:ze.onMouseDown;if(Ne&&typeof Ne=="function")return void Ne(Ce)}const ge=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});se.dispatchEvent(ge)}})))},W=setInterval(j,1e3);return j(),()=>clearInterval(W)},[]),Bf(),X(()=>{const j=Ve.current;if(!j)return;const W=he=>{var se,Ce,we;const ge=(Ce=(se=he.target).closest)===null||Ce===void 0?void 0:Ce.call(se,"a");ge&&ge.closest(".rcb-chat-body-container")&&(ge.classList.contains("qa-bot-login-button")||ge.closest(".rcb-options-container")||ve({type:"chatbot_link_clicked",linkUrl:ge.href,linkText:((we=ge.textContent)===null||we===void 0?void 0:we.trim())||""}))};return j.addEventListener("click",W),()=>j.removeEventListener("click",W)},[ve]),X(()=>{if(!oe){const j=W=>{const he=W.data.newState;d==null||d(he);const se=x.current;ve(he?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:se?CA(se):0,durationMs:se?Ef(se):0})};return window.addEventListener("rcb-toggle-chat-window",j),()=>{window.removeEventListener("rcb-toggle-chat-window",j)}}},[oe,d,ve]),M.createElement("div",{className:"qa-bot "+(!((n=ue.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:Ve,role:"region","aria-label":`${y||IA}${!((r=ue.general)===null||r===void 0)&&r.embedded?" - Embedded":""}`},M.createElement(Pf,{getSessionId:()=>x.current,setSessionId:j=>{const W=x.current;x.current=j,Er("RESTORED",`${W==null?void 0:W.slice(-12)} -> ${j.slice(-12)}`)},resetSession:()=>{const j=x.current;Q.current=!0,x.current=PA(),Er("RESET",`${j==null?void 0:j.slice(-12)} -> ${x.current.slice(-12)}`)},clearResettingFlag:()=>{Q.current=!1}},M.createElement(uf,{trackEvent:ve},M.createElement(qa,null,M.createElement("div",null,M.createElement(Df,null),M.createElement(gA,{ref:t,embedded:((o=ue.general)===null||o===void 0?void 0:o.embedded)||!1,currentOpen:u||!1,enabled:J!==!1,onSetEnabled:j=>K(!!j&&void 0)}),M.createElement(jc,{key:`chatbot-${U.current}-${J}`,settings:ue,flow:Re,plugins:st}),M.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}}),M.createElement("div",{id:"chat-input-help",className:"sr-only",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});Zo.displayName="QABot";const Ff=()=>{const[e,t]=ee(!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 A=i.getContext("2d");if(!A)throw new Error("Could not get canvas context");A.drawImage(o,0,0,i.width,i.height);const s=await new Promise(c=>i.toBlob(c,"image/png"));if(!s)throw new Error("Could not create image blob");const a=new Date().toISOString().replace(/[:.]/g,"-"),l=new File([s],`screenshot-${a}.png`,{type:"image/png"});return r.getTracks().forEach(c=>c.stop()),t(!1),l}catch(r){throw Le("Error capturing screenshot:",r),t(!1),r}},isCapturing:e,isScreenCaptureAvailable:n()}},zf=e=>M.createElement(SA,e,M.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),M.createElement("polyline",{points:"17 8 12 3 7 8"}),M.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),jf=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 ${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 ${e.name}`)),r.readAsDataURL(e)}),qf=e=>Promise.all(e.map(jf)),Wf=e=>e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`,Cr=e=>{let{onFileUpload:t,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=e;const[A,s]=ee(!1),[a,l]=ee([]),[c,u]=ee(null),d=ne(null),{captureScreenshot:f,isCapturing:h,isScreenCaptureAvailable:m}=Ff(),p=E=>{const k=document.createElement("div");k.setAttribute("aria-live","assertive"),k.setAttribute("aria-atomic","true"),k.className="sr-only",k.textContent=E,document.body.appendChild(k),setTimeout(()=>document.body.removeChild(k),1e3)},v=E=>{if(!E||E.length===0)return void _A("FileUploadComponent: No valid files provided to handleFiles");let k;try{k=Array.from(E)}catch(O){return Le("FileUploadComponent: Error converting files to array:",O),void p("Error processing selected files. Please try again.")}const B=[...a,...k];l(B);const T=k.length,D=k.map(O=>O.name).join(", ");p(`${T} file${T>1?"s":""} selected: ${D}`),setTimeout(()=>{const O=document.querySelector(".rcb-chat-content");O&&(O.scrollTop=O.scrollHeight)},100),t&&t(B)},y=E=>{E.preventDefault(),E.stopPropagation(),E.type==="dragenter"||E.type==="dragover"?s(!0):E.type==="dragleave"&&s(!1)},g=()=>{try{d.current&&d.current.click()}catch(E){Le("FileUploadComponent: Error in handleButtonClick:",E),p("Error opening file selection dialog. Please try again.")}},_=()=>{u(null)},P=o&&m;return M.createElement("div",{className:`file-upload-container ${i||""}`,style:{padding:"16px",margin:"8px 0"}},P&&M.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},M.createElement("button",{onClick:E=>{E.preventDefault(),(async()=>{try{const k=await f();v([k]),p("Screenshot captured successfully")}catch{p("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)"}},M.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"},M.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"}),M.createElement("circle",{cx:"12",cy:"13",r:"4"})),h?"Taking screenshot...":"Take screenshot..."),M.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),M.createElement("div",{className:"file-upload-dropzone "+(A?"active":""),onDragEnter:y,onDragLeave:y,onDragOver:y,onDrop:E=>{var k;E.preventDefault(),E.stopPropagation(),s(!1);try{!((k=E.dataTransfer)===null||k===void 0)&&k.files&&E.dataTransfer.files.length>0&&v(E.dataTransfer.files)}catch(B){Le("FileUploadComponent: Error in handleDrop:",B),p("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:A?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},M.createElement("input",{ref:d,type:"file",className:"file-input",onChange:E=>{var k;try{!((k=E.target)===null||k===void 0)&&k.files&&E.target.files.length>0&&v(E.target.files)}catch(B){Le("FileUploadComponent: Error in handleFileSelect:",B),p("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),M.createElement("div",{className:"upload-content",onClick:g,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},M.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},M.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},M.createElement(zf,null),M.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),M.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&&M.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},M.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),a.map((E,k)=>M.createElement("span",{key:k,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:B=>{B.stopPropagation(),(T=>{u(T)})(E)}},M.createElement("span",{onClick:B=>{B.stopPropagation(),(T=>{const D=a.filter((O,S)=>S!==T);l(D),t&&t(D)})(k)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":`Remove ${E.name}`},"ร"),E.name," (",Wf(E.size),")"))))),(()=>{if(!c)return null;const E=c.type.startsWith("image/"),k=c.type.startsWith("text/"),B=c.type==="application/pdf";return M.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:_},M.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:T=>T.stopPropagation()},M.createElement("button",{onClick:_,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"ร"),M.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},c.name),E&&M.createElement("img",{src:URL.createObjectURL(c),alt:c.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),k&&M.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(c)),B&&M.createElement("iframe",{src:URL.createObjectURL(c),style:{width:"100%",height:"70vh",border:"none"},title:c.name}),!E&&!k&&!B&&M.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Gf(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 A=!(!i.options&&!i.checkboxes);i.chatDisabled=A}n[r]=i}return n}function kr(e){return async t=>{const n=await e(t);await t.injectMessage(n)}}const Yf=M.forwardRef((e,t)=>{var{defaultOpen:n}=e,r=fa(e,["defaultOpen"]);const[o,i]=M.useState(n||!1),A=M.useRef(null);return M.useImperativeHandle(t,()=>({addMessage:s=>{var a;(a=A.current)===null||a===void 0||a.addMessage(s)},setBotEnabled:s=>{var a;(a=A.current)===null||a===void 0||a.setBotEnabled(s)},openChat:()=>{var s;i(!0),(s=A.current)===null||s===void 0||s.openChat()},closeChat:()=>{var s;i(!1),(s=A.current)===null||s===void 0||s.closeChat()},toggleChat:()=>{var s;i(a=>!a),(s=A.current)===null||s===void 0||s.toggleChat()}}),[]),M.createElement(Zo,rr({ref:A},r,{open:o,onOpenChange:i}))});Yf.displayName="ProgrammaticQABot";const ct={QA_ENDPOINT:"https://qa-bot-proxy.netlify.app/api/chat",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",BACKEND_ID:"access",AGENT_ENDPOINT:"https://qa.access-ci.org/api/v1",get CAPABILITIES_ENDPOINT(){return`${this.AGENT_ENDPOINT}/capabilities`},get AGENT_RATING_ENDPOINT(){return`${this.AGENT_ENDPOINT}/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",TURNSTILE_SITE_KEY:"0x4AAAAAAC2toq7FThjGplVx",ALLOW_ANON_ACCESS:!0},Vt={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:`Hello! I can answer questions about ACCESS resources, allocations, and more. Choose an option below or just type your question.
|
|
58
|
+
${Br}`:Rt;return await le(Et),Be==null||Be({type:"chatbot_answer_received",queryId:fe,success:!0,responseLength:We.length}),"success"}catch(ke){return Le("Error resubmitting after Turnstile:",ke),$.token=null,$.pendingQuery=null,$.needsChallenge=!1,$.siteKey=null,await(le==null?void 0:le("I had trouble processing your question after verification. Please try again.")),"error"}},trackEvent:Be,loginUrl:ut}),path:"qa_loop"}}})({endpoint:s,ratingEndpoint:A,agentRatingEndpoint:l,apiKey:i,sessionId:w.current.getSessionId,isResetting:w.current.isResetting,isLoggedIn:J,allowAnonAccess:h,loginUrl:D||Ts,trackEvent:ve,getTurnstileToken:()=>F.current,resetTurnstileToken:()=>b.reset(),backendId:S,resourceContext:N});return Object.assign(Object.assign({start:{message:c,renderMarkdown:["BOT"],transition:{duration:0},path:"qa_loop"}},j),R||{})},[i,s,A,l,c,J,h,D,R,m,ve,N,S]),At=Ie(()=>{return[()=>su(q),lf(),()=>cf(j)];var j,q},[]);return X(()=>{const j=()=>{const he=document.querySelector(".rcb-chat-window");if(!he)return;const Ae=he.querySelector(".rcb-send-button");Ae&&(Ae.hasAttribute("tabindex")||Ae.setAttribute("tabindex","0"),Ae.hasAttribute("data-keyboard-enabled")||(Ae.setAttribute("data-keyboard-enabled","true"),Ae.addEventListener("keydown",Ce=>{if(Ce.key==="Enter"||Ce.key===" "){Ce.preventDefault();const we=Ae&&Object.keys(Ae).find(ze=>ze.startsWith("__reactProps"));if(we){const ze=Ae[we],Ne=ze==null?void 0:ze.onMouseDown;if(Ne&&typeof Ne=="function")return void Ne(Ce)}const ge=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});Ae.dispatchEvent(ge)}})))},q=setInterval(j,1e3);return j(),()=>clearInterval(q)},[]),Bf(),X(()=>{const j=Ve.current;if(!j)return;const q=he=>{var Ae,Ce,we;const ge=(Ce=(Ae=he.target).closest)===null||Ce===void 0?void 0:Ce.call(Ae,"a");ge&&ge.closest(".rcb-chat-body-container")&&(ge.classList.contains("qa-bot-login-button")||ge.closest(".rcb-options-container")||ve({type:"chatbot_link_clicked",linkUrl:ge.href,linkText:((we=ge.textContent)===null||we===void 0?void 0:we.trim())||""}))};return j.addEventListener("click",q),()=>j.removeEventListener("click",q)},[ve]),X(()=>{if(!oe){const j=q=>{const he=q.data.newState;d==null||d(he);const Ae=x.current;ve(he?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:Ae?Cs(Ae):0,durationMs:Ae?_f(Ae):0})};return window.addEventListener("rcb-toggle-chat-window",j),()=>{window.removeEventListener("rcb-toggle-chat-window",j)}}},[oe,d,ve]),M.createElement("div",{className:"qa-bot "+(!((n=ue.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:Ve,role:"region","aria-label":`${y||Is}${!((r=ue.general)===null||r===void 0)&&r.embedded?" - Embedded":""}`},M.createElement(Pf,{getSessionId:()=>x.current,setSessionId:j=>{const q=x.current;x.current=j,_r("RESTORED",`${q==null?void 0:q.slice(-12)} -> ${j.slice(-12)}`)},resetSession:()=>{const j=x.current;Q.current=!0,x.current=Ps(),_r("RESET",`${j==null?void 0:j.slice(-12)} -> ${x.current.slice(-12)}`)},clearResettingFlag:()=>{Q.current=!1}},M.createElement(uf,{trackEvent:ve},M.createElement(Wa,null,M.createElement("div",null,M.createElement(Df,null),M.createElement(gs,{ref:t,embedded:((o=ue.general)===null||o===void 0?void 0:o.embedded)||!1,currentOpen:u||!1,enabled:J!==!1,onSetEnabled:j=>K(!!j&&void 0)}),M.createElement(jc,{key:`chatbot-${U.current}-${J}`,settings:ue,flow:Re,plugins:At}),M.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}}),M.createElement("div",{id:"chat-input-help",className:"sr-only",style:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:0}},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});Zo.displayName="QABot";const Ff=()=>{const[e,t]=ee(!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-${a}.png`,{type:"image/png"});return r.getTracks().forEach(c=>c.stop()),t(!1),l}catch(r){throw Le("Error capturing screenshot:",r),t(!1),r}},isCapturing:e,isScreenCaptureAvailable:n()}},zf=e=>M.createElement(Ss,e,M.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),M.createElement("polyline",{points:"17 8 12 3 7 8"}),M.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),jf=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 ${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 ${e.name}`)),r.readAsDataURL(e)}),Wf=e=>Promise.all(e.map(jf)),qf=e=>e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`,Cr=e=>{let{onFileUpload:t,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=e;const[s,A]=ee(!1),[a,l]=ee([]),[c,u]=ee(null),d=ne(null),{captureScreenshot:f,isCapturing:h,isScreenCaptureAvailable:m}=Ff(),p=_=>{const k=document.createElement("div");k.setAttribute("aria-live","assertive"),k.setAttribute("aria-atomic","true"),k.className="sr-only",k.textContent=_,document.body.appendChild(k),setTimeout(()=>document.body.removeChild(k),1e3)},v=_=>{if(!_||_.length===0)return void Es("FileUploadComponent: No valid files provided to handleFiles");let k;try{k=Array.from(_)}catch(O){return Le("FileUploadComponent: Error converting files to array:",O),void p("Error processing selected files. Please try again.")}const B=[...a,...k];l(B);const T=k.length,D=k.map(O=>O.name).join(", ");p(`${T} file${T>1?"s":""} selected: ${D}`),setTimeout(()=>{const O=document.querySelector(".rcb-chat-content");O&&(O.scrollTop=O.scrollHeight)},100),t&&t(B)},y=_=>{_.preventDefault(),_.stopPropagation(),_.type==="dragenter"||_.type==="dragover"?A(!0):_.type==="dragleave"&&A(!1)},g=()=>{try{d.current&&d.current.click()}catch(_){Le("FileUploadComponent: Error in handleButtonClick:",_),p("Error opening file selection dialog. Please try again.")}},E=()=>{u(null)},P=o&&m;return M.createElement("div",{className:`file-upload-container ${i||""}`,style:{padding:"16px",margin:"8px 0"}},P&&M.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},M.createElement("button",{onClick:_=>{_.preventDefault(),(async()=>{try{const k=await f();v([k]),p("Screenshot captured successfully")}catch{p("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)"}},M.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"},M.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"}),M.createElement("circle",{cx:"12",cy:"13",r:"4"})),h?"Taking screenshot...":"Take screenshot..."),M.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),M.createElement("div",{className:"file-upload-dropzone "+(s?"active":""),onDragEnter:y,onDragLeave:y,onDragOver:y,onDrop:_=>{var k;_.preventDefault(),_.stopPropagation(),A(!1);try{!((k=_.dataTransfer)===null||k===void 0)&&k.files&&_.dataTransfer.files.length>0&&v(_.dataTransfer.files)}catch(B){Le("FileUploadComponent: Error in handleDrop:",B),p("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:_=>{_.key!=="Enter"&&_.key!==" "||(_.preventDefault(),g())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:s?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},M.createElement("input",{ref:d,type:"file",className:"file-input",onChange:_=>{var k;try{!((k=_.target)===null||k===void 0)&&k.files&&_.target.files.length>0&&v(_.target.files)}catch(B){Le("FileUploadComponent: Error in handleFileSelect:",B),p("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),M.createElement("div",{className:"upload-content",onClick:g,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},M.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},M.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},M.createElement(zf,null),M.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),M.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&&M.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},M.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),a.map((_,k)=>M.createElement("span",{key:k,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:B=>{B.stopPropagation(),(T=>{u(T)})(_)}},M.createElement("span",{onClick:B=>{B.stopPropagation(),(T=>{const D=a.filter((O,S)=>S!==T);l(D),t&&t(D)})(k)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":`Remove ${_.name}`},"ร"),_.name," (",qf(_.size),")"))))),(()=>{if(!c)return null;const _=c.type.startsWith("image/"),k=c.type.startsWith("text/"),B=c.type==="application/pdf";return M.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:E},M.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:T=>T.stopPropagation()},M.createElement("button",{onClick:E,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"ร"),M.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},c.name),_&&M.createElement("img",{src:URL.createObjectURL(c),alt:c.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),k&&M.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(c)),B&&M.createElement("iframe",{src:URL.createObjectURL(c),style:{width:"100%",height:"70vh",border:"none"},title:c.name}),!_&&!k&&!B&&M.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Gf(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 kr(e){return async t=>{const n=await e(t);await t.injectMessage(n)}}const Yf=M.forwardRef((e,t)=>{var{defaultOpen:n}=e,r=fa(e,["defaultOpen"]);const[o,i]=M.useState(n||!1),s=M.useRef(null);return M.useImperativeHandle(t,()=>({addMessage:A=>{var a;(a=s.current)===null||a===void 0||a.addMessage(A)},setBotEnabled:A=>{var a;(a=s.current)===null||a===void 0||a.setBotEnabled(A)},openChat:()=>{var A;i(!0),(A=s.current)===null||A===void 0||A.openChat()},closeChat:()=>{var A;i(!1),(A=s.current)===null||A===void 0||A.closeChat()},toggleChat:()=>{var A;i(a=>!a),(A=s.current)===null||A===void 0||A.toggleChat()}}),[]),M.createElement(Zo,rr({ref:s},r,{open:o,onOpenChange:i}))});Yf.displayName="ProgrammaticQABot";const ct={QA_ENDPOINT:"https://qa-bot-proxy.netlify.app/api/chat",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",BACKEND_ID:"access",AGENT_ENDPOINT:"https://qa.access-ci.org/api/v1",get CAPABILITIES_ENDPOINT(){return`${this.AGENT_ENDPOINT}/capabilities`},get AGENT_RATING_ENDPOINT(){return`${this.AGENT_ENDPOINT}/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",TURNSTILE_SITE_KEY:"0x4AAAAAAC2toq7FThjGplVx",ALLOW_ANON_ACCESS:!0},Vt={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:`Hello! I can answer questions about ACCESS resources, allocations, and more. Choose an option below or just type your question.
|
|
59
59
|
|
|
60
|
-
<em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! ๐"},
|
|
61
|
-
Attachments: ${e.length} file(s) attached`:""}const dn={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function Kf(e,t="support",n=[]){const o={support:dn.SUPPORT,general_help:dn.SUPPORT,loginAccess:dn.LOGIN_ACCESS,loginProvider:dn.LOGIN_PROVIDER,security:dn.SECURITY}[t]||dn.SUPPORT,
|
|
60
|
+
<em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! ๐"},Qs={SESSION_ID:"access-qa-bot-session-id"};function $f({welcome:e,trackEvent:t}){return{start:{message:e,renderHtml:["BOT"],options:["Show my options"],chatDisabled:!1,path:n=>(t({type:"chatbot_menu_selected",selection:n.userInput}),"qa_loop")}}}let ei=null;function Vf(e){ei=e}function te(){return ei?ei.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function Ue(e={}){const t=te();return{...t,email:e.email||t.email,name:e.name||t.name,accessId:e.accessId||t.accessId}}function ti(e){return e&&e.length>0?`
|
|
61
|
+
Attachments: ${e.length} file(s) attached`:""}const dn={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function Kf(e,t="support",n=[]){const o={support:dn.SUPPORT,general_help:dn.SUPPORT,loginAccess:dn.LOGIN_ACCESS,loginProvider:dn.LOGIN_PROVIDER,security:dn.SECURITY}[t]||dn.SUPPORT,s={serviceDeskId:t==="security"?3:2,requestTypeId:o,requestFieldValues:{...e}};return n.length>0&&(s.attachments=await Wf(n)),s}async function Xf(e,t){var o,i;const r=`${ct.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 Sr(e,t,n=[]){try{const r=await Kf(e,t,n);return await Xf(r,t==="security"?"security-incidents":"tickets")}catch(r){return{success:!1,error:r instanceof Error?r.message:"Unknown error"}}}function ni(e,t="ticket"){return e?e.success?e.ticketUrl&&e.ticketKey?`Your ${t} has been submitted successfully.
|
|
62
62
|
|
|
63
63
|
Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
|
|
64
64
|
|
|
@@ -68,13 +68,13 @@ Our support team will review your request and respond accordingly. Thank you for
|
|
|
68
68
|
|
|
69
69
|
Please try again or contact our support team directly.`:`We apologize, but there was an error submitting your ${t}.
|
|
70
70
|
|
|
71
|
-
Please try again or contact our support team directly.`}function Dr(e){return!e||e.trim()===""?{success:!1,promptContent:"Email is required",promptDuration:3e3,promptType:"error"}:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{success:!0}:{success:!1,promptContent:"Please enter a valid email address",promptDuration:3e3,promptType:"error"}}function jn(){return()=>({success:!0})}function
|
|
71
|
+
Please try again or contact our support team directly.`}function Dr(e){return!e||e.trim()===""?{success:!1,promptContent:"Email is required",promptDuration:3e3,promptType:"error"}:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?{success:!0}:{success:!1,promptContent:"Please enter a valid email address",promptDuration:3e3,promptType:"error"}}function jn(){return()=>({success:!0})}function Wn(e){return!e||e.trim()===""||e.trim().toLowerCase()==="skip"?"":e.trim()}function Jf({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null;const i=async(A,a=[])=>{o=await Sr(A,"loginAccess",a),o.success?(t(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"access_login",success:!0,ticketKey:o.ticketKey})):(t(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"access_login",errorType:o.error||"unknown"}))};return{access_help:{message:`If you're having trouble logging into the ACCESS website, here are some common issues:
|
|
72
72
|
|
|
73
73
|
โข Make sure you're using a supported browser (Chrome, Firefox, Safari)
|
|
74
74
|
โข Clear your browser cookies and cache
|
|
75
75
|
โข Check if you're using the correct identity provider
|
|
76
76
|
|
|
77
|
-
Would you like to submit a help ticket for ACCESS login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],path:
|
|
77
|
+
Would you like to submit a help ticket for ACCESS login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],path:A=>A.userInput==="Yes, let's create a ticket"?"access_login_description":"start"},access_login_description:{message:"Describe your login issue.",function:A=>{const a=te();t({...a,description:A.userInput,email:n.email||a.email,name:n.name||a.name,accessId:n.accessId||a.accessId}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"description"})},path:"access_login_identity"},access_login_identity:{message:"Which identity provider were you using?",options:["ACCESS","Github","Google","Institution","Microsoft","ORCID","Other"],function:A=>{const a=te();t({...a,identityProvider:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"identity_provider"})},path:"access_login_browser"},access_login_browser:{message:"Which browser were you using?",options:["Chrome","Firefox","Edge","Safari","Other"],function:A=>{const a=te();t({...a,browser:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"browser"})},path:"access_login_attachment"},access_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:A=>{const a=te();t({...a,wantsAttachment:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"attachment_choice"})},path:A=>{if(A.userInput==="Yes")return"access_login_upload";const a=Ue(n);return a.email?a.name?a.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_upload:{message:"Please upload your screenshot.",component:C(Cr,{onFileUpload:A=>{t(a=>({...a,uploadedFiles:A})),A.forEach(a=>{r({type:"chatbot_file_uploaded",fileType:a.type||"unknown",fileSize:a.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const A=te();t({...A,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"file_upload"})},path:()=>{const A=Ue(n);return A.email?A.name?A.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_email:{message:"What is your email?",validateTextInput:Dr,function:A=>{const a=te();t({...a,email:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"email"})},path:()=>{const A=Ue(n);return A.name?A.accessId?"access_login_summary":"access_login_accessid":"access_login_name"}},access_login_name:{message:"What is your name?",function:A=>{const a=te();t({...a,name:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"name"})},path:()=>Ue(n).accessId?"access_login_summary":"access_login_accessid"},access_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:jn(),function:A=>{const a=te();t({...a,accessId:Wn(A.userInput)}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"access_id"})},path:"access_login_summary"},access_login_summary:{message:A=>{const a=te(),l=Ue(n),c=ti(a.uploadedFiles);let u=l.accessId;return A.prevPath==="access_login_accessid"&&A.userInput&&(u=A.userInput),`Thank you for providing your ACCESS login issue details. Here's a summary:
|
|
78
78
|
|
|
79
79
|
Name: ${l.name||"Not provided"}
|
|
80
80
|
Email: ${l.email||"Not provided"}
|
|
@@ -83,13 +83,13 @@ Identity Provider: ${a.identityProvider||"Not provided"}
|
|
|
83
83
|
Browser: ${a.browser||"Not provided"}
|
|
84
84
|
Issue Description: ${a.description||"Not provided"}${c}
|
|
85
85
|
|
|
86
|
-
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],renderHtml:["BOT","USER"],function:async
|
|
86
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],renderHtml:["BOT","USER"],function:async A=>{if(A.userInput==="Submit Ticket"){const a=te(),l=Ue(n),c={email:l.email||"",name:l.name||"",accessId:l.accessId||"",description:a.description||"",identityProvider:a.identityProvider||"",browser:a.browser||""};await i(c,a.uploadedFiles||[])}},path:A=>A.userInput==="Submit Ticket"?"access_login_success":"start"},access_login_success:{message:kr(()=>ni(o,"ACCESS login ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}function Zf({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null;const i=async(A,a=[])=>{o=await Sr(A,"loginProvider",a),o.success?(t(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"resource_login",success:!0,ticketKey:o.ticketKey})):(t(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"resource_login",errorType:o.error||"unknown"}))};return{resource_help:{message:`If you're having trouble logging into an affiliated infrastructure or resource provider, here are some common issues:
|
|
87
87
|
|
|
88
88
|
โข Ensure your allocation is active
|
|
89
89
|
โข Confirm you have the correct username for that resource
|
|
90
90
|
โข Check <a href="https://operations.access-ci.org/infrastructure_news_view">System Status News</a> to see if the resource is undergoing maintenance
|
|
91
91
|
|
|
92
|
-
Would you like to submit a help ticket for resource provider login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],renderHtml:["BOT"],path:
|
|
92
|
+
Would you like to submit a help ticket for resource provider login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],renderHtml:["BOT"],path:A=>A.userInput==="Yes, let's create a ticket"?"resource_login_resource":"start"},resource_login_resource:{message:"Which ACCESS Resource are you trying to access?",options:["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"],function:A=>{const a=te();t({...a,resource:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"resource_selection"})},path:"resource_login_userid"},resource_login_userid:{message:"What is your user ID at the resource?",function:A=>{const a=te();t({...a,userIdResource:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"user_id"})},path:"resource_login_description"},resource_login_description:{message:"Please describe the issue you're having logging in.",function:A=>{const a=te();t({...a,description:A.userInput,email:n.email||a.email,name:n.name||a.name,accessId:n.accessId||a.accessId}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"description"})},path:"resource_login_attachment"},resource_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:A=>{const a=te();t({...a,wantsAttachment:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"attachment_choice"})},path:A=>{if(A.userInput==="Yes")return"resource_login_upload";const a=Ue(n);return a.email?a.name?a.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_upload:{message:"Please upload your screenshot.",component:C(Cr,{onFileUpload:A=>{t(a=>({...a,uploadedFiles:A})),A.forEach(a=>{r({type:"chatbot_file_uploaded",fileType:a.type||"unknown",fileSize:a.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const A=te();t({...A,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"file_upload"})},path:()=>{const A=Ue(n);return A.email?A.name?A.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_email:{message:"What is your email?",validateTextInput:Dr,function:A=>{const a=te();t({...a,email:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"email"})},path:()=>{const A=Ue(n);return A.name?A.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name"}},resource_login_name:{message:"What is your name?",function:A=>{const a=te();t({...a,name:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"name"})},path:()=>Ue(n).accessId?"resource_login_summary":"resource_login_accessid"},resource_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:jn(),function:A=>{const a=te();t({...a,accessId:Wn(A.userInput)}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"access_id"})},path:"resource_login_summary"},resource_login_summary:{message:A=>{const a=te(),l=Ue(n),c=ti(a.uploadedFiles);let u=l.accessId;return A.prevPath==="resource_login_accessid"&&A.userInput&&(u=A.userInput),`Thank you for providing your resource login issue details. Here's a summary:
|
|
93
93
|
|
|
94
94
|
Name: ${l.name||"Not provided"}
|
|
95
95
|
Email: ${l.email||"Not provided"}
|
|
@@ -98,7 +98,7 @@ Resource: ${a.resource||"Not provided"}
|
|
|
98
98
|
Resource User ID: ${a.userIdResource||"Not provided"}
|
|
99
99
|
Issue Description: ${a.description||"Not provided"}${c}
|
|
100
100
|
|
|
101
|
-
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async s=>{if(s.userInput==="Submit Ticket"){const a=te(),l=Ue(n),c={email:l.email||"",name:l.name||"",accessId:l.accessId||"",accessResource:a.resource||"",description:a.description||"",userIdAtResource:a.userIdResource||""};await i(c,a.uploadedFiles||[])}},path:s=>s.userInput==="Submit Ticket"?"resource_login_success":"start"},resource_login_success:{message:kr(()=>ni(o,"resource login ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const ep=[" C, C++","Abaqus","ACCESS","ACCESS-credits","ACCESS-website","Accounts","ACLS","Adding users","Affiliations","Affinity Groups","AI","Algorithms","Allocation extension","Allocation Management","Allocation proposal","Allocation Time","Allocation users","AMBER","AMIE","Anaconda","Analysis","API","Application Status","ARCGIS","Architecture","Archiving","Astrophysics","ATLAS","Authentication","AWS","AZURE","Backup","BASH","Batch Jobs","Benchmarking","Big Data","Bioinformatics","Biology","Ceph","CFD","cgroups","CHARMM","Checkpoint","cilogon","citation","Cloud","Cloud Computing","Cloud Lab","Cloud Storage","Cluster Management","Cluster Support","CMMC","Community Outreach","Compiling","Composible Systems","Computataional Chemistry","COMSOL","Conda","Condo","Containers","Core dump","Core hours","CP2K","CPU architecture","CPU bound","CUDA","Cybersecurity","CYVERSE","Data","Data Storage","Data-access-protocols","Data-analysis","Data-compliance","Data-lifecycle","Data-management","Data-management-software","Data-provenance","Data-reproducibility","Data-retention","Data-science","Data-sharing","Data-transfer","Data-wrangling","Database-update","Debugging","Debugging, Optimizatio and Profiling","Deep-learning","Dependencies","Deployment","DFT","Distributed-computing","DNS","Docker","Documentation","DOI","DTN","Easybuild","Email","Encryption","Environment-modules","Errors","Extension","FastX","Federated-authentication","File transfers","File-formats","File-limits","File-systems","File-transfer","Finite-element-analysis","Firewall","Fortran","Frameworks and IDE's","GAMESS","Gateways","GATK","Gaussian","GCC","Genomics","GIS","Git","Globus","GPFS","GPU","Gravitational-waves","Gridengine","GROMACS","Hadoop","Hardware","Image-processing","Infiniband","Interactive-mode","Interconnect","IO-Issue","ISILON","Java","Jekyll","Jetstream","Job-accounting","Job-array","Job-charging","Job-failure","Job-sizing","Job-submission","Julia","Jupyterhub","Key-management","Kubernetes","KyRIC","LAMMPS","Library-paths","License","Linear-programming","Linux","LMOD","login","LSF","Lustre","Machine-learning","Management","Materials-science","Mathematica","MATLAB","Memory","Metadata","Modules","Molecular-dynamics","Monte-carlo","MPI","NAMD","NetCDF","Networking","Neural-networks","NFS","NLP","NoMachine","Nvidia","Oceanography","OnDemnad","Open-science-grid","Open-storage-network","OpenCV","Openfoam","OpenMP","OpenMPI","OpenSHIFT","Openstack","Optimization","OS","OSG","Parallelization","Parameter-sweeps","Paraview","Particle-physics","password","PBS","Pegasus","Pending-jobs","Performance-tuning","Permissions","Physiology","PIP","PODMAN","Portals","Pre-emption","Professional and Workforce Development","Professional-development","Profile","Profiling","Programming","Programming Languages","Programming-best-practices","Project-management","Project-renewal","Provisioning","Pthreads","Publication-database","Putty","Python","Pytorch","Quantum-computing","Quantum-mechanics","Quota","R","RDP","React","Reporting","Research-facilitation","Research-grants","Resources","Rstudio-server","S3","Samba","SAS","Scaling","Schedulers","Scheduling","Science DMZ","Science Gateways","Scikit-learn","Scratch","screen","scripting","SDN","Secure Computing and Data","Secure-data-architecture","Serverless-hpc","setup","sftp","SGE","Shell Scripting","Shifter","Singularity","SLURM","SMB","Smrtanalysis","Software Installations","Software-carpentry","SPACK","SPARK","Spectrum-scale","SPSS","SQL","SSH","Stampede2","STATA","Storage","Supplement","Support","TCP","Technical-training-for-hpc","Tensorflow","Terminal-emulation-and-window-management","Tickets","Timing-issue","TMUX","Tools","Training","Transfer SUs","Trinity","Tuning","Unix-environment","Upgrading","Vectorization","Version-control","vim","VNC","VPN","Workflow","Workforce-development","X11","Xalt","XDMoD","XML","XSEDE","I don't see a relevant keyword"],tp=["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"];function np({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null;const i=async(s,a=[])=>{o=await Sr(s,"support",a),o.success?(t(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"general_help",success:!0,ticketKey:o.ticketKey})):(t(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"general_help",errorType:o.error||"unknown"}))};return{general_help_summary_subject:{message:"Provide a short title for your ticket.",function:s=>{const a=te();t({...a,summary:s.userInput,email:n.email||a.email,name:n.name||a.name,accessId:n.accessId||a.accessId}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"title"})},path:"general_help_category"},general_help_category:{message:"What type of issue are you experiencing?",options:["User Account Question","Allocation Question","User Support Question","CSSN/CCEP Question","Training Question","Metrics Question","OnDemand Question","Pegasus Question","XDMoD Question","Some Other Question"],function:s=>{const a=te();t({...a,category:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"category"})},path:"general_help_description"},general_help_description:{message:"Please describe your issue.",function:s=>{const a=te();t({...a,description:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"description"})},path:"general_help_attachment"},general_help_attachment:{message:"Would you like to attach a file to your ticket?",options:["Yes","No"],function:s=>{const a=te();t({...a,wantsAttachment:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"attachment_choice"})},path:s=>s.userInput==="Yes"?"general_help_upload":"general_help_resource"},general_help_upload:{message:"Please upload your file.",component:C(Cr,{onFileUpload:s=>{t(a=>({...a,uploadedFiles:s})),s.forEach(a=>{r({type:"chatbot_file_uploaded",fileType:a.type||"unknown",fileSize:a.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const s=te();t({...s,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"file_upload"})},path:"general_help_resource"},general_help_resource:{message:"Does your problem involve an ACCESS Resource?",options:["Yes","No"],function:s=>{const a=te();t({...a,involvesResource:s.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_choice"})},path:s=>s.userInput==="Yes"?"general_help_resource_details":"general_help_keywords"},general_help_resource_details:{message:"Please select the ACCESS Resource involved with your issue:",options:tp,function:s=>{const a=te();t({...a,resourceDetails:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_selection"})},path:"general_help_user_id_at_resource"},general_help_user_id_at_resource:{message:"What is your User ID at the selected resource(s)? (Optional - press Enter to skip)",validateTextInput:jn(),function:s=>{const a=te();t({...a,userIdAtResource:qn(s.userInput)}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_user_id"})},path:"general_help_keywords"},general_help_keywords:{message:"Please add up to 5 keywords to help route your ticket.",checkboxes:{items:ep,min:0,max:5},function:s=>{const a=te();t({...a,keywords:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"keywords"})},path:s=>s.userInput&&s.userInput.includes("I don't see a relevant keyword")?"general_help_additional_keywords":"general_help_priority"},general_help_additional_keywords:{message:"Please enter additional keywords, separated by commas:",function:s=>{const a=te(),l=a.keywords||[],c=s.userInput,d=(Array.isArray(l)?[...l]:String(l).split(",").map(h=>h.trim())).filter(h=>h!=="I don't see a relevant keyword"),f=d.length>0?[...d,c].join(", "):c;t({...a,keywords:f,suggestedKeyword:c}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"additional_keywords"})},path:"general_help_priority"},general_help_priority:{message:"Please select a priority for your issue:",options:["Lowest","Low","Medium","High","Highest"],function:s=>{const a=te();t({...a,priority:s.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"priority"})},path:()=>{const s=Ue(n);return s.email?s.name?s.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name":"general_help_email"}},general_help_email:{message:"What is your email address?",validateTextInput:Dr,function:s=>{const a=te();t({...a,email:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"email"})},path:()=>{const s=Ue(n);return s.name?s.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name"}},general_help_name:{message:"What is your name?",function:s=>{const a=te();t({...a,name:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"name"})},path:()=>Ue(n).accessId?"general_help_ticket_summary":"general_help_accessid"},general_help_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:jn(),function:s=>{const a=te();t({...a,accessId:qn(s.userInput)}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"access_id"})},path:"general_help_ticket_summary"},general_help_ticket_summary:{message:s=>{const a=te(),l=Ue(n),c=ti(a.uploadedFiles);let u=l.accessId;s.prevPath==="general_help_accessid"&&s.userInput&&(u=s.userInput);let d="";return a.involvesResource==="yes"&&(d=`
|
|
101
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async A=>{if(A.userInput==="Submit Ticket"){const a=te(),l=Ue(n),c={email:l.email||"",name:l.name||"",accessId:l.accessId||"",accessResource:a.resource||"",description:a.description||"",userIdAtResource:a.userIdResource||""};await i(c,a.uploadedFiles||[])}},path:A=>A.userInput==="Submit Ticket"?"resource_login_success":"start"},resource_login_success:{message:kr(()=>ni(o,"resource login ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const ep=[" C, C++","Abaqus","ACCESS","ACCESS-credits","ACCESS-website","Accounts","ACLS","Adding users","Affiliations","Affinity Groups","AI","Algorithms","Allocation extension","Allocation Management","Allocation proposal","Allocation Time","Allocation users","AMBER","AMIE","Anaconda","Analysis","API","Application Status","ARCGIS","Architecture","Archiving","Astrophysics","ATLAS","Authentication","AWS","AZURE","Backup","BASH","Batch Jobs","Benchmarking","Big Data","Bioinformatics","Biology","Ceph","CFD","cgroups","CHARMM","Checkpoint","cilogon","citation","Cloud","Cloud Computing","Cloud Lab","Cloud Storage","Cluster Management","Cluster Support","CMMC","Community Outreach","Compiling","Composible Systems","Computataional Chemistry","COMSOL","Conda","Condo","Containers","Core dump","Core hours","CP2K","CPU architecture","CPU bound","CUDA","Cybersecurity","CYVERSE","Data","Data Storage","Data-access-protocols","Data-analysis","Data-compliance","Data-lifecycle","Data-management","Data-management-software","Data-provenance","Data-reproducibility","Data-retention","Data-science","Data-sharing","Data-transfer","Data-wrangling","Database-update","Debugging","Debugging, Optimizatio and Profiling","Deep-learning","Dependencies","Deployment","DFT","Distributed-computing","DNS","Docker","Documentation","DOI","DTN","Easybuild","Email","Encryption","Environment-modules","Errors","Extension","FastX","Federated-authentication","File transfers","File-formats","File-limits","File-systems","File-transfer","Finite-element-analysis","Firewall","Fortran","Frameworks and IDE's","GAMESS","Gateways","GATK","Gaussian","GCC","Genomics","GIS","Git","Globus","GPFS","GPU","Gravitational-waves","Gridengine","GROMACS","Hadoop","Hardware","Image-processing","Infiniband","Interactive-mode","Interconnect","IO-Issue","ISILON","Java","Jekyll","Jetstream","Job-accounting","Job-array","Job-charging","Job-failure","Job-sizing","Job-submission","Julia","Jupyterhub","Key-management","Kubernetes","KyRIC","LAMMPS","Library-paths","License","Linear-programming","Linux","LMOD","login","LSF","Lustre","Machine-learning","Management","Materials-science","Mathematica","MATLAB","Memory","Metadata","Modules","Molecular-dynamics","Monte-carlo","MPI","NAMD","NetCDF","Networking","Neural-networks","NFS","NLP","NoMachine","Nvidia","Oceanography","OnDemnad","Open-science-grid","Open-storage-network","OpenCV","Openfoam","OpenMP","OpenMPI","OpenSHIFT","Openstack","Optimization","OS","OSG","Parallelization","Parameter-sweeps","Paraview","Particle-physics","password","PBS","Pegasus","Pending-jobs","Performance-tuning","Permissions","Physiology","PIP","PODMAN","Portals","Pre-emption","Professional and Workforce Development","Professional-development","Profile","Profiling","Programming","Programming Languages","Programming-best-practices","Project-management","Project-renewal","Provisioning","Pthreads","Publication-database","Putty","Python","Pytorch","Quantum-computing","Quantum-mechanics","Quota","R","RDP","React","Reporting","Research-facilitation","Research-grants","Resources","Rstudio-server","S3","Samba","SAS","Scaling","Schedulers","Scheduling","Science DMZ","Science Gateways","Scikit-learn","Scratch","screen","scripting","SDN","Secure Computing and Data","Secure-data-architecture","Serverless-hpc","setup","sftp","SGE","Shell Scripting","Shifter","Singularity","SLURM","SMB","Smrtanalysis","Software Installations","Software-carpentry","SPACK","SPARK","Spectrum-scale","SPSS","SQL","SSH","Stampede2","STATA","Storage","Supplement","Support","TCP","Technical-training-for-hpc","Tensorflow","Terminal-emulation-and-window-management","Tickets","Timing-issue","TMUX","Tools","Training","Transfer SUs","Trinity","Tuning","Unix-environment","Upgrading","Vectorization","Version-control","vim","VNC","VPN","Workflow","Workforce-development","X11","Xalt","XDMoD","XML","XSEDE","I don't see a relevant keyword"],tp=["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"];function np({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null;const i=async(A,a=[])=>{o=await Sr(A,"support",a),o.success?(t(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"general_help",success:!0,ticketKey:o.ticketKey})):(t(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"general_help",errorType:o.error||"unknown"}))};return{general_help_summary_subject:{message:"Provide a short title for your ticket.",function:A=>{const a=te();t({...a,summary:A.userInput,email:n.email||a.email,name:n.name||a.name,accessId:n.accessId||a.accessId}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"title"})},path:"general_help_category"},general_help_category:{message:"What type of issue are you experiencing?",options:["User Account Question","Allocation Question","User Support Question","CSSN/CCEP Question","Training Question","Metrics Question","OnDemand Question","Pegasus Question","XDMoD Question","Some Other Question"],function:A=>{const a=te();t({...a,category:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"category"})},path:"general_help_description"},general_help_description:{message:"Please describe your issue.",function:A=>{const a=te();t({...a,description:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"description"})},path:"general_help_attachment"},general_help_attachment:{message:"Would you like to attach a file to your ticket?",options:["Yes","No"],function:A=>{const a=te();t({...a,wantsAttachment:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"attachment_choice"})},path:A=>A.userInput==="Yes"?"general_help_upload":"general_help_resource"},general_help_upload:{message:"Please upload your file.",component:C(Cr,{onFileUpload:A=>{t(a=>({...a,uploadedFiles:A})),A.forEach(a=>{r({type:"chatbot_file_uploaded",fileType:a.type||"unknown",fileSize:a.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const A=te();t({...A,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"file_upload"})},path:"general_help_resource"},general_help_resource:{message:"Does your problem involve an ACCESS Resource?",options:["Yes","No"],function:A=>{const a=te();t({...a,involvesResource:A.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_choice"})},path:A=>A.userInput==="Yes"?"general_help_resource_details":"general_help_keywords"},general_help_resource_details:{message:"Please select the ACCESS Resource involved with your issue:",options:tp,function:A=>{const a=te();t({...a,resourceDetails:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_selection"})},path:"general_help_user_id_at_resource"},general_help_user_id_at_resource:{message:"What is your User ID at the selected resource(s)? (Optional - press Enter to skip)",validateTextInput:jn(),function:A=>{const a=te();t({...a,userIdAtResource:Wn(A.userInput)}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_user_id"})},path:"general_help_keywords"},general_help_keywords:{message:"Please add up to 5 keywords to help route your ticket.",checkboxes:{items:ep,min:0,max:5},function:A=>{const a=te();t({...a,keywords:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"keywords"})},path:A=>A.userInput&&A.userInput.includes("I don't see a relevant keyword")?"general_help_additional_keywords":"general_help_priority"},general_help_additional_keywords:{message:"Please enter additional keywords, separated by commas:",function:A=>{const a=te(),l=a.keywords||[],c=A.userInput,d=(Array.isArray(l)?[...l]:String(l).split(",").map(h=>h.trim())).filter(h=>h!=="I don't see a relevant keyword"),f=d.length>0?[...d,c].join(", "):c;t({...a,keywords:f,suggestedKeyword:c}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"additional_keywords"})},path:"general_help_priority"},general_help_priority:{message:"Please select a priority for your issue:",options:["Lowest","Low","Medium","High","Highest"],function:A=>{const a=te();t({...a,priority:A.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"priority"})},path:()=>{const A=Ue(n);return A.email?A.name?A.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name":"general_help_email"}},general_help_email:{message:"What is your email address?",validateTextInput:Dr,function:A=>{const a=te();t({...a,email:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"email"})},path:()=>{const A=Ue(n);return A.name?A.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name"}},general_help_name:{message:"What is your name?",function:A=>{const a=te();t({...a,name:A.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"name"})},path:()=>Ue(n).accessId?"general_help_ticket_summary":"general_help_accessid"},general_help_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:jn(),function:A=>{const a=te();t({...a,accessId:Wn(A.userInput)}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"access_id"})},path:"general_help_ticket_summary"},general_help_ticket_summary:{message:A=>{const a=te(),l=Ue(n),c=ti(a.uploadedFiles);let u=l.accessId;A.prevPath==="general_help_accessid"&&A.userInput&&(u=A.userInput);let d="";return a.involvesResource==="yes"&&(d=`
|
|
102
102
|
Resource: ${a.resourceDetails||"Not specified"}`,a.userIdAtResource&&(d+=`
|
|
103
103
|
User ID at Resource: ${a.userIdAtResource}`)),`Thank you for providing your issue details. Here's a summary:
|
|
104
104
|
|
|
@@ -111,7 +111,7 @@ Priority: ${a.priority||"Not provided"}
|
|
|
111
111
|
Keywords: ${a.keywords||"Not provided"}
|
|
112
112
|
Issue Description: ${a.description||"Not provided"}${d}${c}
|
|
113
113
|
|
|
114
|
-
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async
|
|
114
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async A=>{if(A.userInput==="Submit Ticket"){const a=te(),l=Ue(n),c={email:l.email||"",summary:a.summary||"General Support Ticket",description:a.description||"",priority:a.priority||"medium",accessId:l.accessId||"",name:l.name||"",issueType:a.category||"",hasResourceProblem:a.involvesResource==="yes"?"Yes":"No",userIdAtResource:a.userIdAtResource||"",resourceName:a.resourceDetails||"",keywords:a.keywords||"",noRelevantKeyword:a.suggestedKeyword?"checked":"",suggestedKeyword:a.suggestedKeyword||""};await i(c,a.uploadedFiles||[])}},path:A=>A.userInput==="Submit Ticket"?"general_help_success":"start"},general_help_success:{message:kr(()=>ni(o,"support ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const rp={"Logging into ACCESS website":"access_login","Logging into a resource":"resource_login","Another question":"general_help"};function op({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){const o=Jf({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}),i=Zf({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}),s=np({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r});return{help_ticket:{message:"What is your help ticket related to?",options:["Logging into ACCESS website","Logging into a resource","Another question"],function:A=>{t(a=>({...a,ticketType:A.userInput})),r({type:"chatbot_ticket_started",ticketType:rp[A.userInput]||A.userInput})},path:A=>A.userInput==="Logging into ACCESS website"?"access_help":A.userInput==="Logging into a resource"?"resource_help":A.userInput==="Another question"?"general_help_summary_subject":"help_ticket"},...o,...i,...s}}function Kt(e){const t=te();return{...t,email:e.email||t.email,name:e.name||t.name,accessId:e.accessId||t.accessId}}function ip(e){return e?e.success?e.ticketUrl&&e.ticketKey?`Your security incident report has been submitted successfully.
|
|
115
115
|
|
|
116
116
|
Ticket: <a href="${e.ticketUrl}" target="_blank">${e.ticketKey}</a>
|
|
117
117
|
|
|
@@ -121,13 +121,13 @@ Our cybersecurity team will review your report and respond accordingly. Thank yo
|
|
|
121
121
|
|
|
122
122
|
Please try again or contact our cybersecurity team directly.`:`We apologize, but there was an error submitting your security incident report.
|
|
123
123
|
|
|
124
|
-
Please try again or contact our cybersecurity team directly.`}function ap({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null,i=null;const
|
|
124
|
+
Please try again or contact our cybersecurity team directly.`}function ap({ticketForm:e,setTicketForm:t,userInfo:n,trackEvent:r}){let o=null,i=null;const s=async(a,l=[],c)=>{i=await Sr(a,"security",l),i.success?(t(u=>({...u,ticketKey:i.ticketKey,ticketUrl:i.ticketUrl})),r({type:"chatbot_security_submitted",success:!0,priority:c||"unknown",ticketKey:i.ticketKey})):(t(u=>({...u,submissionError:i.error})),r({type:"chatbot_ticket_error",ticketType:"security",errorType:i.error||"unknown"}))};return{security_incident:{message:"You're reporting a security incident. Please provide a brief summary of the security concern.",function:a=>{const l=te();t({...l,summary:a.userInput,email:n.email||l.email,name:n.name||l.name,accessId:n.accessId||l.accessId}),r({type:"chatbot_ticket_step",ticketType:"security",step:"summary"})},path:"security_priority"},security_priority:{message:"What is the priority level of this security incident?",options:["Critical","High","Medium","Low"],function:a=>{const l=te();t({...l,priority:a.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"security",step:"priority"})},path:"security_description"},security_description:{message:"Please provide a detailed description of the security incident or concern.",function:a=>{const l=te();t({...l,description:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"description"})},path:"security_attachment"},security_attachment:{message:"Do you have any files (screenshots, logs, etc.) that would help with this security incident?",options:["Yes","No"],function:a=>{const l=te();t({...l,wantsAttachment:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"attachment_choice"})},path:a=>a.userInput==="Yes"?"security_upload":"security_contact_check"},security_upload:{message:"Please upload your files.",component:C(Cr,{onFileUpload:a=>{t(l=>({...l,uploadedFiles:a})),a.forEach(l=>{r({type:"chatbot_file_uploaded",fileType:l.type||"unknown",fileSize:l.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=te();t({...a,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"security",step:"file_upload"})},path:"security_contact_check"},security_contact_check:{message:()=>{const a=Kt(n);return a.name&&a.email&&a.accessId?`I have your contact information:
|
|
125
125
|
|
|
126
126
|
Name: ${a.name}
|
|
127
127
|
Email: ${a.email}
|
|
128
128
|
ACCESS ID: ${a.accessId}
|
|
129
129
|
|
|
130
|
-
Is this correct?`:"I need your contact information."},options:()=>{const a=Kt(n);return a.name&&a.email&&a.accessId?["Yes, that's correct","Let me update it"]:[]},chatDisabled:()=>{const a=Kt(n);return!!(a.name&&a.email&&a.accessId)},path:a=>a.userInput==="Yes, that's correct"?"security_summary":a.userInput==="Let me update it"?"security_name":"security_email"},security_email:{message:"What is your email address?",validateTextInput:Dr,function:a=>{const l=te();t({...l,email:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"email"})},path:()=>{const a=Kt(n);return a.name?a.accessId?"security_summary":"security_accessid":"security_name"}},security_name:{message:"What is your name?",function:a=>{const l=te();t({...l,name:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"name"})},path:()=>{const a=Kt(n);return a.email?a.accessId?"security_summary":"security_accessid":"security_email"}},security_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:jn(),function:a=>{const l=
|
|
130
|
+
Is this correct?`:"I need your contact information."},options:()=>{const a=Kt(n);return a.name&&a.email&&a.accessId?["Yes, that's correct","Let me update it"]:[]},chatDisabled:()=>{const a=Kt(n);return!!(a.name&&a.email&&a.accessId)},path:a=>a.userInput==="Yes, that's correct"?"security_summary":a.userInput==="Let me update it"?"security_name":"security_email"},security_email:{message:"What is your email address?",validateTextInput:Dr,function:a=>{const l=te();t({...l,email:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"email"})},path:()=>{const a=Kt(n);return a.name?a.accessId?"security_summary":"security_accessid":"security_name"}},security_name:{message:"What is your name?",function:a=>{const l=te();t({...l,name:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"name"})},path:()=>{const a=Kt(n);return a.email?a.accessId?"security_summary":"security_accessid":"security_email"}},security_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:jn(),function:a=>{const l=Wn(a.userInput);o=l;const c=te();t({...c,accessId:l}),r({type:"chatbot_ticket_step",ticketType:"security",step:"access_id"})},path:"security_summary"},security_summary:{message:()=>{const a=te(),l=Kt(n),c={...a,name:l.name||a.name,email:l.email||a.email,accessId:o||l.accessId||a.accessId};let u="";a.uploadedFiles&&a.uploadedFiles.length>0&&(u=`
|
|
131
131
|
Attachments: ${a.uploadedFiles.length} file(s) attached`);const d=c.accessId||"Not provided";return`Here's a summary of your security incident report:
|
|
132
132
|
|
|
133
133
|
Summary: ${c.summary||"Not provided"}
|
|
@@ -137,9 +137,9 @@ Email: ${c.email||"Not provided"}
|
|
|
137
137
|
ACCESS ID: ${d}
|
|
138
138
|
Description: ${c.description||"Not provided"}${u}
|
|
139
139
|
|
|
140
|
-
Would you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],function:async a=>{if(a.userInput==="Submit Security Report"){const l=te(),c=Kt(n),u={...l,name:c.name||l.name,email:c.email||l.email,accessId:o||c.accessId||l.accessId},d={summary:u.summary||"",priority:u.priority||"",description:u.description||"",name:u.name||"",email:u.email||"",accessId:u.accessId||""};await
|
|
140
|
+
Would you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],function:async a=>{if(a.userInput==="Submit Security Report"){const l=te(),c=Kt(n),u={...l,name:c.name||l.name,email:c.email||l.email,accessId:o||c.accessId||l.accessId},d={summary:u.summary||"",priority:u.priority||"",description:u.description||"",name:u.name||"",email:u.email||"",accessId:u.accessId||""};await s(d,l.uploadedFiles||[],u.priority)}},path:a=>a.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:kr(()=>ip(i)),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const Fe=[];for(let e=0;e<256;++e)Fe.push((e+256).toString(16).slice(1));function Ap(e,t=0){return(Fe[e[t+0]]+Fe[e[t+1]]+Fe[e[t+2]]+Fe[e[t+3]]+"-"+Fe[e[t+4]]+Fe[e[t+5]]+"-"+Fe[e[t+6]]+Fe[e[t+7]]+"-"+Fe[e[t+8]]+Fe[e[t+9]]+"-"+Fe[e[t+10]]+Fe[e[t+11]]+Fe[e[t+12]]+Fe[e[t+13]]+Fe[e[t+14]]+Fe[e[t+15]]).toLowerCase()}let ri;const sp=new Uint8Array(16);function lp(){if(!ri){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ri=crypto.getRandomValues.bind(crypto)}return ri(sp)}const Ms={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function oi(e,t,n){var o;if(Ms.randomUUID&&!e)return Ms.randomUUID();e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??lp();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ap(r)}function mp(e){return e}function cp({sessionId:e,apiKey:t,trackEvent:n}){let r=null;return{metrics_intro:{message:`Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${ct.METRICS_QUESTIONS_URL}">examples here</a>.
|
|
141
141
|
|
|
142
|
-
<em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async o=>{const{userInput:i}=o;if(i==="๐ Helpful"||i==="๐ Not helpful"){if(t&&e&&r){const
|
|
142
|
+
<em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async o=>{const{userInput:i}=o;if(i==="๐ Helpful"||i==="๐ Not helpful"){if(t&&e&&r){const A={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":r,"X-Feedback":i==="๐ Helpful"?"1":"0"};try{await fetch(ct.METRICS_RATING_ENDPOINT,{method:"POST",headers:A})}catch(a){console.error("Error sending metrics feedback:",a)}}return"Thanks for the feedback! Ask another question about usage and performance metrics (XDMoD) or start a new chat."}else try{const s=oi();r=s,n({type:"chatbot_metrics_question_sent",queryId:s});const A={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":t,"X-Session-ID":e,"X-Query-ID":s},c=(await(await fetch(ct.METRICS_API_ENDPOINT,{method:"POST",headers:A,body:JSON.stringify({query:i})})).json()).response,u=c;return await o.injectMessage(u),setTimeout(async()=>{await o.injectMessage("Ask another question about usage and performance metrics (XDMoD) or start a new chat.")},100),null}catch(s){return console.error("Error in metrics flow:",s),"I'm sorry, there was an error processing your question. Please try again."}},renderMarkdown:["BOT"],options:o=>o.userInput==="๐ Helpful"||o.userInput==="๐ Not helpful"?[]:["๐ Helpful","๐ Not helpful"],chatDisabled:!1,path:"metrics_loop"}}}function up(){if(typeof window>"u")return oi();let e=localStorage.getItem(Qs.SESSION_ID);return e||(e=oi(),localStorage.setItem(Qs.SESSION_ID,e)),e}const Os="access-qa-bot-shadow-overrides",dp=`
|
|
143
143
|
.rcb-checkbox-container {
|
|
144
144
|
display: flex !important;
|
|
145
145
|
flex-wrap: wrap !important;
|
|
@@ -292,5 +292,5 @@ Would you like to submit this security incident report?`},options:["Submit Secur
|
|
|
292
292
|
display: inline !important;
|
|
293
293
|
margin: 0 !important;
|
|
294
294
|
}
|
|
295
|
-
`;function fp(e){if(!e)return;const t=e.getRootNode();if(!(t instanceof ShadowRoot)||t.getElementById(
|
|
295
|
+
`;function fp(e){if(!e)return;const t=e.getRootNode();if(!(t instanceof ShadowRoot)||t.getElementById(Os))return;const n=document.createElement("style");n.id=Os,n.textContent=dp,t.appendChild(n)}const Ns=Ye((e,t)=>{const{apiKey:n=ct.DEFAULT_API_KEY,isLoggedIn:r=!1,loginUrl:o=Vt.LOGIN_URL,userEmail:i,userName:s,accessId:A,actingUser:a,ringEffect:l,defaultOpen:c,onClose:u,open:d,onOpenChange:f,embedded:h=!1,welcome:m,qaEndpoint:p,ratingEndpoint:v,agentEndpoint:y,backendId:g,resourceContext:E,onAnalyticsEvent:P}=e,_=g||ct.BACKEND_ID,k=ne(null),B=ne(null),[T,D]=ee({}),[O,S]=ee(null),N=Ie(()=>({email:i,name:s,accessId:A}),[i,s,A]);X(()=>{fp(B.current)},[]),X(()=>{Vf({ticketForm:T,setTicketForm:D})},[T]);const R=y||ct.AGENT_ENDPOINT,L=E?`${R}/capabilities?resource_context=${encodeURIComponent(E)}`:`${R}/capabilities`,U=`${R}/rating`;X(()=>{R.includes("localhost")&&!window.location.hostname.includes("localhost")&&console.warn("[AccessQABot] VITE_AGENT_ENDPOINT not set โ agent requests will go to localhost. Set VITE_AGENT_ENDPOINT in your environment.")},[R]),X(()=>{let F=!1;async function J(){try{const K=await fetch(L,{credentials:"include"});if(!K.ok)throw new Error(`Capabilities API returned ${K.status}`);const oe=await K.json();F||S(oe)}catch(K){console.warn("Failed to fetch capabilities:",K),F||S({categories:[],is_authenticated:!1})}}return J(),()=>{F=!0}},[L,r]),X(()=>{if(!r)return;let F=!1;const J=`${R}/capabilities/personalized`;async function K(){try{const oe=await fetch(J,{credentials:"include"});if(!oe.ok)return;const ve=await oe.json();F||console.debug("Personalized context loaded:",ve)}catch{}}return K(),()=>{F=!0}},[R,r]),Zn(t,()=>({addMessage:F=>{var J,K;(K=(J=k.current)==null?void 0:J.addMessage)==null||K.call(J,F)}}));const x=m||(O==null?void 0:O.welcome_message)||Vt.WELCOME_MESSAGE,Q=Ie(()=>up(),[]),w=W(F=>{P&&P({...F,type:F.type,timestamp:F.timestamp??Date.now(),sessionId:F.sessionId??Q})},[P,Q]),V=W(F=>{P&&P({...F,type:F.type,timestamp:typeof F.timestamp=="number"?F.timestamp:Date.now(),sessionId:typeof F.sessionId=="string"?F.sessionId:Q})},[P,Q]),b=Ie(()=>{const F=$f({welcome:x,trackEvent:w}),J=op({ticketForm:{},setTicketForm:D,userInfo:N,trackEvent:w}),K=ap({ticketForm:{},setTicketForm:D,userInfo:N,trackEvent:w}),oe=cp({sessionId:Q,apiKey:n,trackEvent:w}),ve={...F,...J,...K,...oe};return Gf(ve,{disableOnOptions:!0})},[x,N,Q,n,r,w,O]);return O?C("div",{ref:B,children:C(Zo,{ref:k,isLoggedIn:r,allowAnonAccess:ct.ALLOW_ANON_ACCESS,actingUser:a,onAnalyticsEvent:V,apiKey:n,qaEndpoint:p||ct.QA_ENDPOINT,ratingEndpoint:v||ct.RATING_ENDPOINT,backendId:_,capabilitiesEndpoint:L,agentRatingEndpoint:U,botName:Vt.BOT_NAME,logo:Vt.LOGO,primaryColor:Vt.PRIMARY_COLOR,secondaryColor:Vt.SECONDARY_COLOR,welcomeMessage:x,tooltipText:Vt.TOOLTIP,turnstileSiteKey:ct.TURNSTILE_SITE_KEY,loginUrl:o,open:d,onOpenChange:f,embedded:h,footerText:"AI-powered ยท Privacy Notice",footerLink:"https://support.access-ci.org/tools/access-qa-tool/privacy",resourceContext:E,customFlow:b})}):C("div",{ref:B})});Ns.displayName="AccessQABot";function ii(e){const{target:t,...n}=e;if(!t)throw new Error("qaBot: target element is required");const r=fi();let o=n.isLoggedIn||!1,i=n.open!==void 0?n.open:n.defaultOpen||!1;const s=ml(t),A=()=>{s.render(C(Ns,{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=ii),Yn.default=ii,Yn.qaBot=ii,Object.defineProperties(Yn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),Yn}({});
|
|
296
296
|
//# sourceMappingURL=access-qa-bot.standalone.js.map
|